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
/*! * @header CWNetwork.h * @copyright 2009-2014 Apple Inc. All rights reserved. */ #ifndef _CORE_WLAN_NETWORK_H_ #define _CORE_WLAN_NETWORK_H_ #import <Foundation/Foundation.h> #import <CoreWLAN/CoreWLANTypes.h> NS_ASSUME_NONNULL_BEGIN @class CWChannel; /*! * @class * * @abstract * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes. */ NS_CLASS_AVAILABLE_MAC(10_6) @interface CWNetwork : NSObject <NSCopying, NSSecureCoding> { @private NSDictionary *_scanRecord; } /*! * @property * * @abstract * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string. * * @discussion * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string. */ @property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6); /*! * @property * * @abstract * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object. * * @discussion * The SSID is defined as 1-32 octets. */ @property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string. * * @discussion * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX. */ @property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6); /*! * @property * * @abstract * The operating channel of the Wi-Fi device. */ @property(readonly) CWChannel *wlanChannel NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device. */ @property(readonly) NSInteger rssiValue NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns the noise measurement (dBm) for the Wi-Fi device. */ @property(readonly) NSInteger noiseMeasurement NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns information element data included in beacon or probe response frames. */ @property(readonly, nullable) NSData *informationElementData NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device. */ @property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7); /*! * @property * * @abstract * Returns the beacon interval (ms) for the Wi-Fi device. */ @property(readonly) NSInteger beaconInterval NS_AVAILABLE_MAC(10_7); /*! * @property * * @result * YES if the Wi-Fi device is part of an IBSS network, NO otherwise. * * @abstract * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network. */ @property(readonly) BOOL ibss NS_AVAILABLE_MAC(10_7); /*! @functiongroup Comparing Networks */ /*! * @method * * @param network * A CWNetwork object. * * @result * YES if the objects are equal, NO otherwise. * * @abstract * Determine CWNetwork equality. * * @discussion * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal. */ - (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6); /*! @methodgroup Getting Supported Security Types */ /*! * @method * * @param security * A CWSecurity type value. * * @result * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise. * * @abstract * Determine which security types a Wi-Fi device supports. */ - (BOOL)supportsSecurity:(CWSecurity)security NS_AVAILABLE_MAC(10_7); /*! @methodgroup Getting Supported PHY Modes */ /*! * @method * * @param phyMode * A CWPHYMode type value. * * @result * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise. * * @abstract * Determine which PHY modes a Wi-Fi device supports. */ - (BOOL)supportsPHYMode:(CWPHYMode)phyMode NS_AVAILABLE_MAC(10_8); @end NS_ASSUME_NONNULL_END #endif /* _CORE_WLAN_NETWORK_H_ */
25.22
154
(translation_unit) "/*!\n * @header CWNetwork.h\n * @copyright 2009-2014 Apple Inc. All rights reserved.\n */\n\n#ifndef _CORE_WLAN_NETWORK_H_\n#define _CORE_WLAN_NETWORK_H_\n\n#import <Foundation/Foundation.h>\n#import <CoreWLAN/CoreWLANTypes.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@class CWChannel;\n\n/*!\n * @class\n *\n * @abstract \n * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes.\n */\nNS_CLASS_AVAILABLE_MAC(10_6)\n@interface CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord;\n}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);\n\n\n/*!\n * @property\n *\n * @abstract \n * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object.\n *\n * @discussion\n * The SSID is defined as 1-32 octets.\n */\n@property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.\n *\n * @discussion\n * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.\n */\n@property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);\n\n/*!\n * @property\n *\n * @abstract \n * The operating channel of the Wi-Fi device.\n */\n@property(readonly) CWChannel *wlanChannel NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger rssiValue NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the noise measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger noiseMeasurement NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns information element data included in beacon or probe response frames.\n */\n@property(readonly, nullable) NSData *informationElementData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.\n */\n@property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract\n * Returns the beacon interval (ms) for the Wi-Fi device.\n */\n@property(readonly) NSInteger beaconInterval NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @result\n * YES if the Wi-Fi device is part of an IBSS network, NO otherwise.\n *\n * @abstract\n * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.\n */\n@property(readonly) BOOL ibss NS_AVAILABLE_MAC(10_7);\n\n/*! @functiongroup Comparing Networks */\n\n/*!\n * @method\n *\n * @param network \n * A CWNetwork object.\n *\n * @result\n * YES if the objects are equal, NO otherwise.\n *\n * @abstract \n * Determine CWNetwork equality.\n *\n * @discussion\n * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.\n */\n- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6);\n\n/*! @methodgroup Getting Supported Security Types */\n\n/*!\n * @method\n *\n * @param security\n * A CWSecurity type value.\n *\n * @result\n * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise.\n *\n * @abstract \n * Determine which security types a Wi-Fi device supports.\n */\n- (BOOL)supportsSecurity:(CWSecurity)security NS_AVAILABLE_MAC(10_7);\n\n/*! @methodgroup Getting Supported PHY Modes */\n\n/*!\n * @method\n *\n * @param phyMode\n * A CWPHYMode type value.\n *\n * @result \n * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise.\n *\n * @abstract\n * Determine which PHY modes a Wi-Fi device supports.\n */\n- (BOOL)supportsPHYMode:(CWPHYMode)phyMode NS_AVAILABLE_MAC(10_8);\n@end\nNS_ASSUME_NONNULL_END\n\n#endif /* _CORE_WLAN_NETWORK_H_ */\n" (comment) "/*!\n * @header CWNetwork.h\n * @copyright 2009-2014 Apple Inc. All rights reserved.\n */" (preproc_ifdef) "#ifndef _CORE_WLAN_NETWORK_H_\n#define _CORE_WLAN_NETWORK_H_\n\n#import <Foundation/Foundation.h>\n#import <CoreWLAN/CoreWLANTypes.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@class CWChannel;\n\n/*!\n * @class\n *\n * @abstract \n * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes.\n */\nNS_CLASS_AVAILABLE_MAC(10_6)\n@interface CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord;\n}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);\n\n\n/*!\n * @property\n *\n * @abstract \n * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object.\n *\n * @discussion\n * The SSID is defined as 1-32 octets.\n */\n@property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.\n *\n * @discussion\n * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.\n */\n@property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);\n\n/*!\n * @property\n *\n * @abstract \n * The operating channel of the Wi-Fi device.\n */\n@property(readonly) CWChannel *wlanChannel NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger rssiValue NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the noise measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger noiseMeasurement NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns information element data included in beacon or probe response frames.\n */\n@property(readonly, nullable) NSData *informationElementData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.\n */\n@property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract\n * Returns the beacon interval (ms) for the Wi-Fi device.\n */\n@property(readonly) NSInteger beaconInterval NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @result\n * YES if the Wi-Fi device is part of an IBSS network, NO otherwise.\n *\n * @abstract\n * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.\n */\n@property(readonly) BOOL ibss NS_AVAILABLE_MAC(10_7);\n\n/*! @functiongroup Comparing Networks */\n\n/*!\n * @method\n *\n * @param network \n * A CWNetwork object.\n *\n * @result\n * YES if the objects are equal, NO otherwise.\n *\n * @abstract \n * Determine CWNetwork equality.\n *\n * @discussion\n * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.\n */\n- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6);\n\n/*! @methodgroup Getting Supported Security Types */\n\n/*!\n * @method\n *\n * @param security\n * A CWSecurity type value.\n *\n * @result\n * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise.\n *\n * @abstract \n * Determine which security types a Wi-Fi device supports.\n */\n- (BOOL)supportsSecurity:(CWSecurity)security NS_AVAILABLE_MAC(10_7);\n\n/*! @methodgroup Getting Supported PHY Modes */\n\n/*!\n * @method\n *\n * @param phyMode\n * A CWPHYMode type value.\n *\n * @result \n * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise.\n *\n * @abstract\n * Determine which PHY modes a Wi-Fi device supports.\n */\n- (BOOL)supportsPHYMode:(CWPHYMode)phyMode NS_AVAILABLE_MAC(10_8);\n@end\nNS_ASSUME_NONNULL_END\n\n#endif" (#ifndef) "#ifndef" (identifier) "_CORE_WLAN_NETWORK_H_" (preproc_def) "#define _CORE_WLAN_NETWORK_H_\n" (#define) "#define" (identifier) "_CORE_WLAN_NETWORK_H_" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import <CoreWLAN/CoreWLANTypes.h>\n" (preproc_directive) "#import" (preproc_arg) "<CoreWLAN/CoreWLANTypes.h>" (declaration) "NS_ASSUME_NONNULL_BEGIN\n@class CWChannel;" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (ERROR) "@class" (ERROR) "@" (identifier) "class" (identifier) "CWChannel" (;) ";" (comment) "/*!\n * @class\n *\n * @abstract \n * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes.\n */" (ERROR) "NS_CLASS_AVAILABLE_MAC(10_6)\n@interface" (call_expression) "NS_CLASS_AVAILABLE_MAC(10_6)" (identifier) "NS_CLASS_AVAILABLE_MAC" (argument_list) "(10_6)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_6" ()) ")" (ERROR) "@" (identifier) "interface" (labeled_statement) "CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord;" (statement_identifier) "CWNetwork" (:) ":" (expression_statement) "NSObject <NSCopying, NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord;" (comma_expression) "NSObject <NSCopying, NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord" (binary_expression) "NSObject <NSCopying" (identifier) "NSObject" (<) "<" (identifier) "NSCopying" (,) "," (binary_expression) "NSSecureCoding>\n{\n @private\n \n NSDictionary *_scanRecord" (identifier) "NSSecureCoding" (>) ">" (ERROR) "{\n @private" ({) "{" (ERROR) "@" (identifier) "private" (binary_expression) "NSDictionary *_scanRecord" (identifier) "NSDictionary" (*) "*" (identifier) "_scanRecord" (;) ";" (ERROR) "}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@" (}) "}" (comment) "/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */" (ERROR) "@" (expression_statement) "property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);" (binary_expression) "property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6)" (call_expression) "property(readonly, nullable)" (identifier) "property" (argument_list) "(readonly, nullable)" (() "(" (identifier) "readonly" (,) "," (identifier) "nullable" ()) ")" (ERROR) "NSString" (identifier) "NSString" (*) "*" (ERROR) "ssid" (identifier) "ssid" (call_expression) "NS_AVAILABLE_MAC(10_6)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_6)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_6" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object.\n *\n * @discussion\n * The SSID is defined as 1-32 octets.\n */" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);" (binary_expression) "property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7)" (call_expression) "property(readonly, nullable)" (identifier) "property" (argument_list) "(readonly, nullable)" (() "(" (identifier) "readonly" (,) "," (identifier) "nullable" ()) ")" (ERROR) "NSData" (identifier) "NSData" (*) "*" (ERROR) "ssidData" (identifier) "ssidData" (call_expression) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.\n *\n * @discussion\n * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.\n */" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);" (binary_expression) "property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6)" (call_expression) "property(readonly, nullable)" (identifier) "property" (argument_list) "(readonly, nullable)" (() "(" (identifier) "readonly" (,) "," (identifier) "nullable" ()) ")" (ERROR) "NSString" (identifier) "NSString" (*) "*" (ERROR) "bssid" (identifier) "bssid" (call_expression) "NS_AVAILABLE_MAC(10_6)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_6)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_6" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * The operating channel of the Wi-Fi device.\n */" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) CWChannel *wlanChannel" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "CWChannel" (identifier) "CWChannel" (pointer_declarator) "*wlanChannel" (*) "*" (identifier) "wlanChannel" (;) "" (expression_statement) "NS_AVAILABLE_MAC(10_7);" (call_expression) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.\n */" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSInteger" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSInteger" (;) "" (declaration) "rssiValue NS_AVAILABLE_MAC(10_7);" (type_identifier) "rssiValue" (function_declarator) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_7" (type_identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns the noise measurement (dBm) for the Wi-Fi device.\n */" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSInteger" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSInteger" (;) "" (declaration) "noiseMeasurement NS_AVAILABLE_MAC(10_7);" (type_identifier) "noiseMeasurement" (function_declarator) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_7" (type_identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns information element data included in beacon or probe response frames.\n */" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, nullable) NSData *informationElementData" (binary_expression) "property(readonly, nullable) NSData *informationElementData" (call_expression) "property(readonly, nullable)" (identifier) "property" (argument_list) "(readonly, nullable)" (() "(" (identifier) "readonly" (,) "," (identifier) "nullable" ()) ")" (ERROR) "NSData" (identifier) "NSData" (*) "*" (identifier) "informationElementData" (;) "" (expression_statement) "NS_AVAILABLE_MAC(10_7);" (call_expression) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract \n * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.\n */" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, nullable) NSString *countryCode" (binary_expression) "property(readonly, nullable) NSString *countryCode" (call_expression) "property(readonly, nullable)" (identifier) "property" (argument_list) "(readonly, nullable)" (() "(" (identifier) "readonly" (,) "," (identifier) "nullable" ()) ")" (ERROR) "NSString" (identifier) "NSString" (*) "*" (identifier) "countryCode" (;) "" (expression_statement) "NS_AVAILABLE_MAC(10_7);" (call_expression) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @abstract\n * Returns the beacon interval (ms) for the Wi-Fi device.\n */" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSInteger" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSInteger" (;) "" (declaration) "beaconInterval NS_AVAILABLE_MAC(10_7);" (type_identifier) "beaconInterval" (function_declarator) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_7" (type_identifier) "_7" ()) ")" (;) ";" (comment) "/*!\n * @property\n *\n * @result\n * YES if the Wi-Fi device is part of an IBSS network, NO otherwise.\n *\n * @abstract\n * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.\n */" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) BOOL" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "BOOL" (;) "" (declaration) "ibss NS_AVAILABLE_MAC(10_7);" (type_identifier) "ibss" (function_declarator) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_7" (type_identifier) "_7" ()) ")" (;) ";" (comment) "/*! @functiongroup Comparing Networks */" (comment) "/*!\n * @method\n *\n * @param network \n * A CWNetwork object.\n *\n * @result\n * YES if the objects are equal, NO otherwise.\n *\n * @abstract \n * Determine CWNetwork equality.\n *\n * @discussion\n * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.\n */" (expression_statement) "- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6);" (binary_expression) "- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6)" (unary_expression) "- (BOOL)isEqualToNetwork" (-) "-" (cast_expression) "(BOOL)isEqualToNetwork" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isEqualToNetwork" (ERROR) ":(CWNetwork" (:) ":" (() "(" (identifier) "CWNetwork" (*) "*" (ERROR) ")network" ()) ")" (identifier) "network" (call_expression) "NS_AVAILABLE_MAC(10_6)" (identifier) "NS_AVAILABLE_MAC" (argument_list) "(10_6)" (() "(" (ERROR) "10" (number_literal) "10" (identifier) "_6" ()) ")" (;) ";" (comment) "/*! @methodgroup Getting Supported Security Types */" (comment) "/*!\n * @method\n *\n * @param security\n * A CWSecurity type value.\n *\n * @result\n * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise.\n *\n * @abstract \n * Determine which security types a Wi-Fi device supports.\n */" (ERROR) "- (BOOL)supportsSecurity:(CWSecurity)" (unary_expression) "- (BOOL)supportsSecurity" (-) "-" (cast_expression) "(BOOL)supportsSecurity" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "supportsSecurity" (:) ":" (() "(" (identifier) "CWSecurity" ()) ")" (declaration) "security NS_AVAILABLE_MAC(10_7);" (type_identifier) "security" (function_declarator) "NS_AVAILABLE_MAC(10_7)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_7)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_7" (type_identifier) "_7" ()) ")" (;) ";" (comment) "/*! @methodgroup Getting Supported PHY Modes */" (comment) "/*!\n * @method\n *\n * @param phyMode\n * A CWPHYMode type value.\n *\n * @result \n * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise.\n *\n * @abstract\n * Determine which PHY modes a Wi-Fi device supports.\n */" (ERROR) "- (BOOL)supportsPHYMode:(CWPHYMode)" (unary_expression) "- (BOOL)supportsPHYMode" (-) "-" (cast_expression) "(BOOL)supportsPHYMode" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "supportsPHYMode" (:) ":" (() "(" (identifier) "CWPHYMode" ()) ")" (declaration) "phyMode NS_AVAILABLE_MAC(10_8);" (type_identifier) "phyMode" (function_declarator) "NS_AVAILABLE_MAC(10_8)" (identifier) "NS_AVAILABLE_MAC" (parameter_list) "(10_8)" (() "(" (ERROR) "10" (number_literal) "10" (parameter_declaration) "_8" (type_identifier) "_8" ()) ")" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) "" (#endif) "#endif" (comment) "/* _CORE_WLAN_NETWORK_H_ */"
406
55
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 25.22, "nodes": 278, "errors": 0, "source_hash": "a8f6dd052f4c3feaa51d760a7a4ace3b82c7c2a5dc80dbb0e54270c4ebe9e2ef", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _CORE_WLAN_NETWORK_H_\n#define _CORE_WLAN_NETWORK_H_\n\n#import <Foundation/Foundation.h>\n#import <CoreWLAN/CoreWLANTypes.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@class CWChannel;\n\n/*!\n * @class\n *\n * @abstract \n * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes.\n */\nNS_CLASS_AVAILABLE_MAC(10_6)\n@interface CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n\t\n NSDictionary *_scanRecord;\n}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);\n\n\n/*!\n * @property\n *\n * @abstract \n * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object.\n *\n * @discussion\n * The SSID is defined as 1-32 octets.\n */\n@property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.\n *\n * @discussion\n * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.\n */\n@property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);\n\n/*!\n * @property\n *\n * @abstract \n * The operating channel of the Wi-Fi device.\n */\n@property(readonly) CWChannel *wlanChannel NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger rssiValue NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the noise measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger noiseMeasurement NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns information element data included in beacon or probe response frames.\n */\n@property(readonly, nullable) NSData *informationElementData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.\n */\n@property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract\n * Returns the beacon interval (ms) for the Wi-Fi device.\n */\n@property(readonly) NSInteger beaconInterval NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @result\n * YES if the Wi-Fi device is part of an IBSS network, NO otherwise.\n *\n * @abstract\n * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.\n */\n@property(readonly) BOOL ibss NS_AVAILABLE_MAC(10_7);\n\n/*! @functiongroup Comparing Networks */\n\n/*!\n * @method\n *\n * @param network \n * A CWNetwork object.\n *\n * @result\n * YES if the objects are equal, NO otherwise.\n *\n * @abstract \n * Determine CWNetwork equality.\n *\n * @discussion\n * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.\n */\n- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6);\n\n/*! @methodgroup Getting Supported Security Types */\n\n/*!\n * @method\n *\n * @param security\n * A CWSecurity type value.\n *\n * @result\n * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise.\n *\n * @abstract \n * Determine which security types a Wi-Fi device supports.\n */\n- (BOOL)supportsSecurity:(CWSecurity)security NS_AVAILABLE_MAC(10_7);\n\n/*! @methodgroup Getting Supported PHY Modes */\n\n/*!\n * @method\n *\n * @param phyMode\n * A CWPHYMode type value.\n *\n * @result \n * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise.\n *\n * @abstract\n * Determine which PHY modes a Wi-Fi device supports.\n */\n- (BOOL)supportsPHYMode:(CWPHYMode)phyMode NS_AVAILABLE_MAC(10_8);\n@end\nNS_ASSUME_NONNULL_END\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 26, 42, 61, 80, 99, 101, 117, 119, 125, 134, 136, 142, 151, 169, 187, 189, 195, 204, 206, 212, 239, 247, 256, 264, 273, 275, 277], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 174, "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": "_CORE_WLAN_NETWORK_H_", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define _CORE_WLAN_NETWORK_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": "_CORE_WLAN_NETWORK_H_", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 29}}, {"id": 6, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#import", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 6, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 9, "type": "preproc_call", "text": "#import <CoreWLAN/CoreWLANTypes.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#import", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "<CoreWLAN/CoreWLANTypes.h>", "parent": 9, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 34}}, {"id": 12, "type": "declaration", "text": "NS_ASSUME_NONNULL_BEGIN\n@class CWChannel;", "parent": 0, "children": [13, 14, 16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 17}}, {"id": 13, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 23}}, {"id": 14, "type": "ERROR", "text": "@class", "parent": 12, "children": [15], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 15, "type": "ERROR", "text": "@", "parent": 14, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 16, "type": "identifier", "text": "CWChannel", "parent": 12, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 16}}, {"id": 17, "type": "ERROR", "text": "NS_CLASS_AVAILABLE_MAC(10_6)\n@interface", "parent": 0, "children": [18, 24, 25], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 10}}, {"id": 18, "type": "call_expression", "text": "NS_CLASS_AVAILABLE_MAC(10_6)", "parent": 17, "children": [19, 20], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 28}}, {"id": 19, "type": "identifier", "text": "NS_CLASS_AVAILABLE_MAC", "parent": 18, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 22}}, {"id": 20, "type": "argument_list", "text": "(10_6)", "parent": 18, "children": [21, 23], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 28}}, {"id": 21, "type": "ERROR", "text": "10", "parent": 20, "children": [22], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 25}}, {"id": 22, "type": "number_literal", "text": "10", "parent": 21, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 25}}, {"id": 23, "type": "identifier", "text": "_6", "parent": 20, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 27}}, {"id": 24, "type": "ERROR", "text": "@", "parent": 17, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 25, "type": "identifier", "text": "interface", "parent": 17, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 10}}, {"id": 26, "type": "labeled_statement", "text": "CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n\t\n NSDictionary *_scanRecord;", "parent": 0, "children": [27], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 25, "column": 34}}, {"id": 27, "type": "statement_identifier", "text": "CWNetwork", "parent": 26, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 20}}, {"id": 28, "type": "comma_expression", "text": "NSObject <NSCopying, NSSecureCoding>\n{\n @private\n\t\n NSDictionary *_scanRecord", "parent": 26, "children": [29, 33], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 25, "column": 33}}, {"id": 29, "type": "binary_expression", "text": "NSObject <NSCopying", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 42}}, {"id": 30, "type": "identifier", "text": "NSObject", "parent": 29, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 31}}, {"id": 31, "type": "<", "text": "<", "parent": 29, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 33}}, {"id": 32, "type": "identifier", "text": "NSCopying", "parent": 29, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 42}}, {"id": 33, "type": "binary_expression", "text": "NSSecureCoding>\n{\n @private\n\t\n NSDictionary *_scanRecord", "parent": 28, "children": [34, 35, 36, 38], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 25, "column": 33}}, {"id": 34, "type": "identifier", "text": "NSSecureCoding", "parent": 33, "children": [], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 21, "column": 58}}, {"id": 35, "type": ">", "text": ">", "parent": 33, "children": [], "start_point": {"row": 21, "column": 58}, "end_point": {"row": 21, "column": 59}}, {"id": 36, "type": "ERROR", "text": "{\n @private", "parent": 33, "children": [37], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 12}}, {"id": 37, "type": "ERROR", "text": "@", "parent": 36, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 38, "type": "binary_expression", "text": "NSDictionary *_scanRecord", "parent": 33, "children": [39, 40, 41], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 33}}, {"id": 39, "type": "identifier", "text": "NSDictionary", "parent": 38, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 20}}, {"id": 40, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 22}}, {"id": 41, "type": "identifier", "text": "_scanRecord", "parent": 38, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 33}}, {"id": 42, "type": "ERROR", "text": "}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@", "parent": 0, "children": [43], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 43, "type": "ERROR", "text": "@", "parent": 42, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 44, "type": "binary_expression", "text": "property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6)", "parent": 0, "children": [45, 50, 52, 53, 55], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 67}}, {"id": 45, "type": "call_expression", "text": "property(readonly, nullable)", "parent": 44, "children": [46, 47], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 29}}, {"id": 46, "type": "identifier", "text": "property", "parent": 45, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 47, "type": "argument_list", "text": "(readonly, nullable)", "parent": 45, "children": [48, 49], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 29}}, {"id": 48, "type": "identifier", "text": "readonly", "parent": 47, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 18}}, {"id": 49, "type": "identifier", "text": "nullable", "parent": 47, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 28}}, {"id": 50, "type": "ERROR", "text": "NSString", "parent": 44, "children": [51], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 38}}, {"id": 51, "type": "identifier", "text": "NSString", "parent": 50, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 38}}, {"id": 52, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 40}}, {"id": 53, "type": "ERROR", "text": "ssid", "parent": 44, "children": [54], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 44}}, {"id": 54, "type": "identifier", "text": "ssid", "parent": 53, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 44}}, {"id": 55, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_6)", "parent": 44, "children": [56, 57], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 67}}, {"id": 56, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 55, "children": [], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 61}}, {"id": 57, "type": "argument_list", "text": "(10_6)", "parent": 55, "children": [58, 60], "start_point": {"row": 37, "column": 61}, "end_point": {"row": 37, "column": 67}}, {"id": 58, "type": "ERROR", "text": "10", "parent": 57, "children": [59], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 64}}, {"id": 59, "type": "number_literal", "text": "10", "parent": 58, "children": [], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 64}}, {"id": 60, "type": "identifier", "text": "_6", "parent": 57, "children": [], "start_point": {"row": 37, "column": 64}, "end_point": {"row": 37, "column": 66}}, {"id": 61, "type": "ERROR", "text": "@", "parent": 0, "children": [62], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 62, "type": "ERROR", "text": "@", "parent": 61, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 63, "type": "binary_expression", "text": "property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7)", "parent": 0, "children": [64, 69, 71, 72, 74], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 69}}, {"id": 64, "type": "call_expression", "text": "property(readonly, nullable)", "parent": 63, "children": [65, 66], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 29}}, {"id": 65, "type": "identifier", "text": "property", "parent": 64, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 9}}, {"id": 66, "type": "argument_list", "text": "(readonly, nullable)", "parent": 64, "children": [67, 68], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 29}}, {"id": 67, "type": "identifier", "text": "readonly", "parent": 66, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 18}}, {"id": 68, "type": "identifier", "text": "nullable", "parent": 66, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 28}}, {"id": 69, "type": "ERROR", "text": "NSData", "parent": 63, "children": [70], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 36}}, {"id": 70, "type": "identifier", "text": "NSData", "parent": 69, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 36}}, {"id": 71, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 49, "column": 37}, "end_point": {"row": 49, "column": 38}}, {"id": 72, "type": "ERROR", "text": "ssidData", "parent": 63, "children": [73], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 46}}, {"id": 73, "type": "identifier", "text": "ssidData", "parent": 72, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 46}}, {"id": 74, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 63, "children": [75, 76], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 69}}, {"id": 75, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 74, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 63}}, {"id": 76, "type": "argument_list", "text": "(10_7)", "parent": 74, "children": [77, 79], "start_point": {"row": 49, "column": 63}, "end_point": {"row": 49, "column": 69}}, {"id": 77, "type": "ERROR", "text": "10", "parent": 76, "children": [78], "start_point": {"row": 49, "column": 64}, "end_point": {"row": 49, "column": 66}}, {"id": 78, "type": "number_literal", "text": "10", "parent": 77, "children": [], "start_point": {"row": 49, "column": 64}, "end_point": {"row": 49, "column": 66}}, {"id": 79, "type": "identifier", "text": "_7", "parent": 76, "children": [], "start_point": {"row": 49, "column": 66}, "end_point": {"row": 49, "column": 68}}, {"id": 80, "type": "ERROR", "text": "@", "parent": 0, "children": [81], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 81, "type": "ERROR", "text": "@", "parent": 80, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 82, "type": "binary_expression", "text": "property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6)", "parent": 0, "children": [83, 88, 90, 91, 93], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 68}}, {"id": 83, "type": "call_expression", "text": "property(readonly, nullable)", "parent": 82, "children": [84, 85], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 29}}, {"id": 84, "type": "identifier", "text": "property", "parent": 83, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 9}}, {"id": 85, "type": "argument_list", "text": "(readonly, nullable)", "parent": 83, "children": [86, 87], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 29}}, {"id": 86, "type": "identifier", "text": "readonly", "parent": 85, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 18}}, {"id": 87, "type": "identifier", "text": "nullable", "parent": 85, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 28}}, {"id": 88, "type": "ERROR", "text": "NSString", "parent": 82, "children": [89], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 38}}, {"id": 89, "type": "identifier", "text": "NSString", "parent": 88, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 38}}, {"id": 90, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 60, "column": 39}, "end_point": {"row": 60, "column": 40}}, {"id": 91, "type": "ERROR", "text": "bssid", "parent": 82, "children": [92], "start_point": {"row": 60, "column": 40}, "end_point": {"row": 60, "column": 45}}, {"id": 92, "type": "identifier", "text": "bssid", "parent": 91, "children": [], "start_point": {"row": 60, "column": 40}, "end_point": {"row": 60, "column": 45}}, {"id": 93, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_6)", "parent": 82, "children": [94, 95], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 68}}, {"id": 94, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 93, "children": [], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 62}}, {"id": 95, "type": "argument_list", "text": "(10_6)", "parent": 93, "children": [96, 98], "start_point": {"row": 60, "column": 62}, "end_point": {"row": 60, "column": 68}}, {"id": 96, "type": "ERROR", "text": "10", "parent": 95, "children": [97], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 65}}, {"id": 97, "type": "number_literal", "text": "10", "parent": 96, "children": [], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 65}}, {"id": 98, "type": "identifier", "text": "_6", "parent": 95, "children": [], "start_point": {"row": 60, "column": 65}, "end_point": {"row": 60, "column": 67}}, {"id": 99, "type": "ERROR", "text": "@", "parent": 0, "children": [100], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 100, "type": "ERROR", "text": "@", "parent": 99, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 101, "type": "declaration", "text": "property(readonly) CWChannel *wlanChannel", "parent": 0, "children": [102, 106, 108], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 42}}, {"id": 102, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 101, "children": [103, 104], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 19}}, {"id": 103, "type": "identifier", "text": "property", "parent": 102, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 9}}, {"id": 104, "type": "type_descriptor", "text": "readonly", "parent": 102, "children": [105], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 18}}, {"id": 105, "type": "type_identifier", "text": "readonly", "parent": 104, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 18}}, {"id": 106, "type": "ERROR", "text": "CWChannel", "parent": 101, "children": [107], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 29}}, {"id": 107, "type": "identifier", "text": "CWChannel", "parent": 106, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 29}}, {"id": 108, "type": "pointer_declarator", "text": "*wlanChannel", "parent": 101, "children": [109, 110], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 42}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 31}}, {"id": 110, "type": "identifier", "text": "wlanChannel", "parent": 108, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 42}}, {"id": 111, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 0, "children": [112, 113], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 65}}, {"id": 112, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 111, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 59}}, {"id": 113, "type": "argument_list", "text": "(10_7)", "parent": 111, "children": [114, 116], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 65}}, {"id": 114, "type": "ERROR", "text": "10", "parent": 113, "children": [115], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 62}}, {"id": 115, "type": "number_literal", "text": "10", "parent": 114, "children": [], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 62}}, {"id": 116, "type": "identifier", "text": "_7", "parent": 113, "children": [], "start_point": {"row": 68, "column": 62}, "end_point": {"row": 68, "column": 64}}, {"id": 117, "type": "ERROR", "text": "@", "parent": 0, "children": [118], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 118, "type": "ERROR", "text": "@", "parent": 117, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 119, "type": "declaration", "text": "property(readonly) NSInteger", "parent": 0, "children": [120, 124], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 29}}, {"id": 120, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 119, "children": [121, 122], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 19}}, {"id": 121, "type": "identifier", "text": "property", "parent": 120, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 9}}, {"id": 122, "type": "type_descriptor", "text": "readonly", "parent": 120, "children": [123], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 18}}, {"id": 123, "type": "type_identifier", "text": "readonly", "parent": 122, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 18}}, {"id": 124, "type": "identifier", "text": "NSInteger", "parent": 119, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 29}}, {"id": 125, "type": "declaration", "text": "rssiValue NS_AVAILABLE_MAC(10_7);", "parent": 0, "children": [126, 127], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 63}}, {"id": 126, "type": "type_identifier", "text": "rssiValue", "parent": 125, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 39}}, {"id": 127, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 125, "children": [128, 129], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 62}}, {"id": 128, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 127, "children": [], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 56}}, {"id": 129, "type": "parameter_list", "text": "(10_7)", "parent": 127, "children": [130, 132], "start_point": {"row": 76, "column": 56}, "end_point": {"row": 76, "column": 62}}, {"id": 130, "type": "ERROR", "text": "10", "parent": 129, "children": [131], "start_point": {"row": 76, "column": 57}, "end_point": {"row": 76, "column": 59}}, {"id": 131, "type": "number_literal", "text": "10", "parent": 130, "children": [], "start_point": {"row": 76, "column": 57}, "end_point": {"row": 76, "column": 59}}, {"id": 132, "type": "parameter_declaration", "text": "_7", "parent": 129, "children": [133], "start_point": {"row": 76, "column": 59}, "end_point": {"row": 76, "column": 61}}, {"id": 133, "type": "type_identifier", "text": "_7", "parent": 132, "children": [], "start_point": {"row": 76, "column": 59}, "end_point": {"row": 76, "column": 61}}, {"id": 134, "type": "ERROR", "text": "@", "parent": 0, "children": [135], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 135, "type": "ERROR", "text": "@", "parent": 134, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 136, "type": "declaration", "text": "property(readonly) NSInteger", "parent": 0, "children": [137, 141], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 29}}, {"id": 137, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 136, "children": [138, 139], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 19}}, {"id": 138, "type": "identifier", "text": "property", "parent": 137, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 9}}, {"id": 139, "type": "type_descriptor", "text": "readonly", "parent": 137, "children": [140], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 18}}, {"id": 140, "type": "type_identifier", "text": "readonly", "parent": 139, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 18}}, {"id": 141, "type": "identifier", "text": "NSInteger", "parent": 136, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 29}}, {"id": 142, "type": "declaration", "text": "noiseMeasurement NS_AVAILABLE_MAC(10_7);", "parent": 0, "children": [143, 144], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 70}}, {"id": 143, "type": "type_identifier", "text": "noiseMeasurement", "parent": 142, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 46}}, {"id": 144, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 142, "children": [145, 146], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 69}}, {"id": 145, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 144, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 63}}, {"id": 146, "type": "parameter_list", "text": "(10_7)", "parent": 144, "children": [147, 149], "start_point": {"row": 84, "column": 63}, "end_point": {"row": 84, "column": 69}}, {"id": 147, "type": "ERROR", "text": "10", "parent": 146, "children": [148], "start_point": {"row": 84, "column": 64}, "end_point": {"row": 84, "column": 66}}, {"id": 148, "type": "number_literal", "text": "10", "parent": 147, "children": [], "start_point": {"row": 84, "column": 64}, "end_point": {"row": 84, "column": 66}}, {"id": 149, "type": "parameter_declaration", "text": "_7", "parent": 146, "children": [150], "start_point": {"row": 84, "column": 66}, "end_point": {"row": 84, "column": 68}}, {"id": 150, "type": "type_identifier", "text": "_7", "parent": 149, "children": [], "start_point": {"row": 84, "column": 66}, "end_point": {"row": 84, "column": 68}}, {"id": 151, "type": "ERROR", "text": "@", "parent": 0, "children": [152], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 152, "type": "ERROR", "text": "@", "parent": 151, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 153, "type": "binary_expression", "text": "property(readonly, nullable) NSData *informationElementData", "parent": 0, "children": [154, 159, 161, 162], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 60}}, {"id": 154, "type": "call_expression", "text": "property(readonly, nullable)", "parent": 153, "children": [155, 156], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 29}}, {"id": 155, "type": "identifier", "text": "property", "parent": 154, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 9}}, {"id": 156, "type": "argument_list", "text": "(readonly, nullable)", "parent": 154, "children": [157, 158], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 29}}, {"id": 157, "type": "identifier", "text": "readonly", "parent": 156, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 18}}, {"id": 158, "type": "identifier", "text": "nullable", "parent": 156, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 28}}, {"id": 159, "type": "ERROR", "text": "NSData", "parent": 153, "children": [160], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 36}}, {"id": 160, "type": "identifier", "text": "NSData", "parent": 159, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 36}}, {"id": 161, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 38}}, {"id": 162, "type": "identifier", "text": "informationElementData", "parent": 153, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 60}}, {"id": 163, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 0, "children": [164, 165], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 83}}, {"id": 164, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 163, "children": [], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 77}}, {"id": 165, "type": "argument_list", "text": "(10_7)", "parent": 163, "children": [166, 168], "start_point": {"row": 92, "column": 77}, "end_point": {"row": 92, "column": 83}}, {"id": 166, "type": "ERROR", "text": "10", "parent": 165, "children": [167], "start_point": {"row": 92, "column": 78}, "end_point": {"row": 92, "column": 80}}, {"id": 167, "type": "number_literal", "text": "10", "parent": 166, "children": [], "start_point": {"row": 92, "column": 78}, "end_point": {"row": 92, "column": 80}}, {"id": 168, "type": "identifier", "text": "_7", "parent": 165, "children": [], "start_point": {"row": 92, "column": 80}, "end_point": {"row": 92, "column": 82}}, {"id": 169, "type": "ERROR", "text": "@", "parent": 0, "children": [170], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 170, "type": "ERROR", "text": "@", "parent": 169, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 171, "type": "binary_expression", "text": "property(readonly, nullable) NSString *countryCode", "parent": 0, "children": [172, 177, 179, 180], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 51}}, {"id": 172, "type": "call_expression", "text": "property(readonly, nullable)", "parent": 171, "children": [173, 174], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 29}}, {"id": 173, "type": "identifier", "text": "property", "parent": 172, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 9}}, {"id": 174, "type": "argument_list", "text": "(readonly, nullable)", "parent": 172, "children": [175, 176], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 29}}, {"id": 175, "type": "identifier", "text": "readonly", "parent": 174, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 18}}, {"id": 176, "type": "identifier", "text": "nullable", "parent": 174, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 28}}, {"id": 177, "type": "ERROR", "text": "NSString", "parent": 171, "children": [178], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 38}}, {"id": 178, "type": "identifier", "text": "NSString", "parent": 177, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 38}}, {"id": 179, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 40}}, {"id": 180, "type": "identifier", "text": "countryCode", "parent": 171, "children": [], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 51}}, {"id": 181, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 0, "children": [182, 183], "start_point": {"row": 100, "column": 52}, "end_point": {"row": 100, "column": 74}}, {"id": 182, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 181, "children": [], "start_point": {"row": 100, "column": 52}, "end_point": {"row": 100, "column": 68}}, {"id": 183, "type": "argument_list", "text": "(10_7)", "parent": 181, "children": [184, 186], "start_point": {"row": 100, "column": 68}, "end_point": {"row": 100, "column": 74}}, {"id": 184, "type": "ERROR", "text": "10", "parent": 183, "children": [185], "start_point": {"row": 100, "column": 69}, "end_point": {"row": 100, "column": 71}}, {"id": 185, "type": "number_literal", "text": "10", "parent": 184, "children": [], "start_point": {"row": 100, "column": 69}, "end_point": {"row": 100, "column": 71}}, {"id": 186, "type": "identifier", "text": "_7", "parent": 183, "children": [], "start_point": {"row": 100, "column": 71}, "end_point": {"row": 100, "column": 73}}, {"id": 187, "type": "ERROR", "text": "@", "parent": 0, "children": [188], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 188, "type": "ERROR", "text": "@", "parent": 187, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 189, "type": "declaration", "text": "property(readonly) NSInteger", "parent": 0, "children": [190, 194], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 29}}, {"id": 190, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 189, "children": [191, 192], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 19}}, {"id": 191, "type": "identifier", "text": "property", "parent": 190, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 9}}, {"id": 192, "type": "type_descriptor", "text": "readonly", "parent": 190, "children": [193], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 18}}, {"id": 193, "type": "type_identifier", "text": "readonly", "parent": 192, "children": [], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 18}}, {"id": 194, "type": "identifier", "text": "NSInteger", "parent": 189, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 29}}, {"id": 195, "type": "declaration", "text": "beaconInterval NS_AVAILABLE_MAC(10_7);", "parent": 0, "children": [196, 197], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 68}}, {"id": 196, "type": "type_identifier", "text": "beaconInterval", "parent": 195, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 44}}, {"id": 197, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 195, "children": [198, 199], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 67}}, {"id": 198, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 197, "children": [], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 61}}, {"id": 199, "type": "parameter_list", "text": "(10_7)", "parent": 197, "children": [200, 202], "start_point": {"row": 108, "column": 61}, "end_point": {"row": 108, "column": 67}}, {"id": 200, "type": "ERROR", "text": "10", "parent": 199, "children": [201], "start_point": {"row": 108, "column": 62}, "end_point": {"row": 108, "column": 64}}, {"id": 201, "type": "number_literal", "text": "10", "parent": 200, "children": [], "start_point": {"row": 108, "column": 62}, "end_point": {"row": 108, "column": 64}}, {"id": 202, "type": "parameter_declaration", "text": "_7", "parent": 199, "children": [203], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 66}}, {"id": 203, "type": "type_identifier", "text": "_7", "parent": 202, "children": [], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 66}}, {"id": 204, "type": "ERROR", "text": "@", "parent": 0, "children": [205], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 205, "type": "ERROR", "text": "@", "parent": 204, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 206, "type": "declaration", "text": "property(readonly) BOOL", "parent": 0, "children": [207, 211], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 24}}, {"id": 207, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 206, "children": [208, 209], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 19}}, {"id": 208, "type": "identifier", "text": "property", "parent": 207, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 9}}, {"id": 209, "type": "type_descriptor", "text": "readonly", "parent": 207, "children": [210], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 18}}, {"id": 210, "type": "type_identifier", "text": "readonly", "parent": 209, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 18}}, {"id": 211, "type": "identifier", "text": "BOOL", "parent": 206, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 24}}, {"id": 212, "type": "declaration", "text": "ibss NS_AVAILABLE_MAC(10_7);", "parent": 0, "children": [213, 214], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 53}}, {"id": 213, "type": "type_identifier", "text": "ibss", "parent": 212, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 29}}, {"id": 214, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 212, "children": [215, 216], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 52}}, {"id": 215, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 214, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 46}}, {"id": 216, "type": "parameter_list", "text": "(10_7)", "parent": 214, "children": [217, 219], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 52}}, {"id": 217, "type": "ERROR", "text": "10", "parent": 216, "children": [218], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 49}}, {"id": 218, "type": "number_literal", "text": "10", "parent": 217, "children": [], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 49}}, {"id": 219, "type": "parameter_declaration", "text": "_7", "parent": 216, "children": [220], "start_point": {"row": 119, "column": 49}, "end_point": {"row": 119, "column": 51}}, {"id": 220, "type": "type_identifier", "text": "_7", "parent": 219, "children": [], "start_point": {"row": 119, "column": 49}, "end_point": {"row": 119, "column": 51}}, {"id": 221, "type": "binary_expression", "text": "- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6)", "parent": 0, "children": [222, 228, 230, 231, 233], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 68}}, {"id": 222, "type": "unary_expression", "text": "- (BOOL)isEqualToNetwork", "parent": 221, "children": [223, 224], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 24}}, {"id": 223, "type": "-", "text": "-", "parent": 222, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 224, "type": "cast_expression", "text": "(BOOL)isEqualToNetwork", "parent": 222, "children": [225, 227], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 24}}, {"id": 225, "type": "type_descriptor", "text": "BOOL", "parent": 224, "children": [226], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 7}}, {"id": 226, "type": "type_identifier", "text": "BOOL", "parent": 225, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 7}}, {"id": 227, "type": "identifier", "text": "isEqualToNetwork", "parent": 224, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 24}}, {"id": 228, "type": "ERROR", "text": ":(CWNetwork", "parent": 221, "children": [229], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 35}}, {"id": 229, "type": "identifier", "text": "CWNetwork", "parent": 228, "children": [], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 35}}, {"id": 230, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 138, "column": 36}, "end_point": {"row": 138, "column": 37}}, {"id": 231, "type": "ERROR", "text": ")network", "parent": 221, "children": [232], "start_point": {"row": 138, "column": 37}, "end_point": {"row": 138, "column": 45}}, {"id": 232, "type": "identifier", "text": "network", "parent": 231, "children": [], "start_point": {"row": 138, "column": 38}, "end_point": {"row": 138, "column": 45}}, {"id": 233, "type": "call_expression", "text": "NS_AVAILABLE_MAC(10_6)", "parent": 221, "children": [234, 235], "start_point": {"row": 138, "column": 46}, "end_point": {"row": 138, "column": 68}}, {"id": 234, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 233, "children": [], "start_point": {"row": 138, "column": 46}, "end_point": {"row": 138, "column": 62}}, {"id": 235, "type": "argument_list", "text": "(10_6)", "parent": 233, "children": [236, 238], "start_point": {"row": 138, "column": 62}, "end_point": {"row": 138, "column": 68}}, {"id": 236, "type": "ERROR", "text": "10", "parent": 235, "children": [237], "start_point": {"row": 138, "column": 63}, "end_point": {"row": 138, "column": 65}}, {"id": 237, "type": "number_literal", "text": "10", "parent": 236, "children": [], "start_point": {"row": 138, "column": 63}, "end_point": {"row": 138, "column": 65}}, {"id": 238, "type": "identifier", "text": "_6", "parent": 235, "children": [], "start_point": {"row": 138, "column": 65}, "end_point": {"row": 138, "column": 67}}, {"id": 239, "type": "ERROR", "text": "- (BOOL)supportsSecurity:(CWSecurity)", "parent": 0, "children": [240, 246], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 37}}, {"id": 240, "type": "unary_expression", "text": "- (BOOL)supportsSecurity", "parent": 239, "children": [241, 242], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 24}}, {"id": 241, "type": "-", "text": "-", "parent": 240, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 1}}, {"id": 242, "type": "cast_expression", "text": "(BOOL)supportsSecurity", "parent": 240, "children": [243, 245], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 24}}, {"id": 243, "type": "type_descriptor", "text": "BOOL", "parent": 242, "children": [244], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 7}}, {"id": 244, "type": "type_identifier", "text": "BOOL", "parent": 243, "children": [], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 7}}, {"id": 245, "type": "identifier", "text": "supportsSecurity", "parent": 242, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 24}}, {"id": 246, "type": "identifier", "text": "CWSecurity", "parent": 239, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 36}}, {"id": 247, "type": "declaration", "text": "security NS_AVAILABLE_MAC(10_7);", "parent": 0, "children": [248, 249], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 154, "column": 69}}, {"id": 248, "type": "type_identifier", "text": "security", "parent": 247, "children": [], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 154, "column": 45}}, {"id": 249, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_7)", "parent": 247, "children": [250, 251], "start_point": {"row": 154, "column": 46}, "end_point": {"row": 154, "column": 68}}, {"id": 250, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 249, "children": [], "start_point": {"row": 154, "column": 46}, "end_point": {"row": 154, "column": 62}}, {"id": 251, "type": "parameter_list", "text": "(10_7)", "parent": 249, "children": [252, 254], "start_point": {"row": 154, "column": 62}, "end_point": {"row": 154, "column": 68}}, {"id": 252, "type": "ERROR", "text": "10", "parent": 251, "children": [253], "start_point": {"row": 154, "column": 63}, "end_point": {"row": 154, "column": 65}}, {"id": 253, "type": "number_literal", "text": "10", "parent": 252, "children": [], "start_point": {"row": 154, "column": 63}, "end_point": {"row": 154, "column": 65}}, {"id": 254, "type": "parameter_declaration", "text": "_7", "parent": 251, "children": [255], "start_point": {"row": 154, "column": 65}, "end_point": {"row": 154, "column": 67}}, {"id": 255, "type": "type_identifier", "text": "_7", "parent": 254, "children": [], "start_point": {"row": 154, "column": 65}, "end_point": {"row": 154, "column": 67}}, {"id": 256, "type": "ERROR", "text": "- (BOOL)supportsPHYMode:(CWPHYMode)", "parent": 0, "children": [257, 263], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 35}}, {"id": 257, "type": "unary_expression", "text": "- (BOOL)supportsPHYMode", "parent": 256, "children": [258, 259], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 23}}, {"id": 258, "type": "-", "text": "-", "parent": 257, "children": [], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 1}}, {"id": 259, "type": "cast_expression", "text": "(BOOL)supportsPHYMode", "parent": 257, "children": [260, 262], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 23}}, {"id": 260, "type": "type_descriptor", "text": "BOOL", "parent": 259, "children": [261], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 7}}, {"id": 261, "type": "type_identifier", "text": "BOOL", "parent": 260, "children": [], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 7}}, {"id": 262, "type": "identifier", "text": "supportsPHYMode", "parent": 259, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 23}}, {"id": 263, "type": "identifier", "text": "CWPHYMode", "parent": 256, "children": [], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 34}}, {"id": 264, "type": "declaration", "text": "phyMode NS_AVAILABLE_MAC(10_8);", "parent": 0, "children": [265, 266], "start_point": {"row": 170, "column": 35}, "end_point": {"row": 170, "column": 66}}, {"id": 265, "type": "type_identifier", "text": "phyMode", "parent": 264, "children": [], "start_point": {"row": 170, "column": 35}, "end_point": {"row": 170, "column": 42}}, {"id": 266, "type": "function_declarator", "text": "NS_AVAILABLE_MAC(10_8)", "parent": 264, "children": [267, 268], "start_point": {"row": 170, "column": 43}, "end_point": {"row": 170, "column": 65}}, {"id": 267, "type": "identifier", "text": "NS_AVAILABLE_MAC", "parent": 266, "children": [], "start_point": {"row": 170, "column": 43}, "end_point": {"row": 170, "column": 59}}, {"id": 268, "type": "parameter_list", "text": "(10_8)", "parent": 266, "children": [269, 271], "start_point": {"row": 170, "column": 59}, "end_point": {"row": 170, "column": 65}}, {"id": 269, "type": "ERROR", "text": "10", "parent": 268, "children": [270], "start_point": {"row": 170, "column": 60}, "end_point": {"row": 170, "column": 62}}, {"id": 270, "type": "number_literal", "text": "10", "parent": 269, "children": [], "start_point": {"row": 170, "column": 60}, "end_point": {"row": 170, "column": 62}}, {"id": 271, "type": "parameter_declaration", "text": "_8", "parent": 268, "children": [272], "start_point": {"row": 170, "column": 62}, "end_point": {"row": 170, "column": 64}}, {"id": 272, "type": "type_identifier", "text": "_8", "parent": 271, "children": [], "start_point": {"row": 170, "column": 62}, "end_point": {"row": 170, "column": 64}}, {"id": 273, "type": "ERROR", "text": "@", "parent": 0, "children": [274], "start_point": {"row": 171, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 274, "type": "ERROR", "text": "@", "parent": 273, "children": [], "start_point": {"row": 171, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 275, "type": "declaration", "text": "end\nNS_ASSUME_NONNULL_END", "parent": 0, "children": [276], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 172, "column": 21}}, {"id": 276, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 275, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 21}}, {"id": 277, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 6}}]}, "node_categories": {"declarations": {"functions": [127, 144, 197, 214, 249, 266], "variables": [12, 101, 119, 125, 132, 136, 142, 149, 189, 195, 202, 206, 212, 219, 247, 254, 264, 271, 275], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [18, 28, 29, 33, 38, 44, 45, 55, 63, 64, 74, 82, 83, 93, 111, 153, 154, 163, 171, 172, 181, 221, 222, 224, 233, 240, 242, 257, 259], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 16, 19, 23, 25, 27, 30, 32, 34, 39, 41, 46, 48, 49, 51, 54, 56, 60, 65, 67, 68, 70, 73, 75, 79, 84, 86, 87, 89, 92, 94, 98, 102, 103, 105, 107, 110, 112, 116, 120, 121, 123, 124, 126, 128, 133, 137, 138, 140, 141, 143, 145, 150, 155, 157, 158, 160, 162, 164, 168, 173, 175, 176, 178, 180, 182, 186, 190, 191, 193, 194, 196, 198, 203, 207, 208, 210, 211, 213, 215, 220, 226, 227, 229, 232, 234, 238, 244, 245, 246, 248, 250, 255, 261, 262, 263, 265, 267, 272, 276, 277], "returns": [], "exceptions": []}, "expressions": {"calls": [6, 9], "literals": [22, 59, 78, 97, 115, 131, 148, 167, 185, 201, 218, 237, 253, 270], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_7)"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_7)"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_7)"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_7)"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_7)"}, {"node_id": 266, "universal_type": "function", "name": "unknown", "text_snippet": "NS_AVAILABLE_MAC(10_8)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*!\n * @header CWNetwork.h\n * @copyright 2009-2014 Apple Inc. All rights reserved.\n */\n\n#ifndef _CORE_WLAN_NETWORK_H_\n#define _CORE_WLAN_NETWORK_H_\n\n#import <Foundation/Foundation.h>\n#import <CoreWLAN/CoreWLANTypes.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@class CWChannel;\n\n/*!\n * @class\n *\n * @abstract \n * Represents a device participating in a Wi-Fi network, providing accessors to various network attributes.\n */\nNS_CLASS_AVAILABLE_MAC(10_6)\n@interface CWNetwork : NSObject <NSCopying, NSSecureCoding>\n{\n @private\n\t\n NSDictionary *_scanRecord;\n}\n\n/*!\n * @property\n *\n * @abstract\n * Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string.\n *\n * @discussion\n * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.\n */\n@property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);\n\n\n/*!\n * @property\n *\n * @abstract \n * Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object.\n *\n * @discussion\n * The SSID is defined as 1-32 octets.\n */\n@property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string.\n *\n * @discussion\n * Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.\n */\n@property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);\n\n/*!\n * @property\n *\n * @abstract \n * The operating channel of the Wi-Fi device.\n */\n@property(readonly) CWChannel *wlanChannel NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger rssiValue NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the noise measurement (dBm) for the Wi-Fi device.\n */\n@property(readonly) NSInteger noiseMeasurement NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns information element data included in beacon or probe response frames.\n */\n@property(readonly, nullable) NSData *informationElementData NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract \n * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.\n */\n@property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @abstract\n * Returns the beacon interval (ms) for the Wi-Fi device.\n */\n@property(readonly) NSInteger beaconInterval NS_AVAILABLE_MAC(10_7);\n\n/*!\n * @property\n *\n * @result\n * YES if the Wi-Fi device is part of an IBSS network, NO otherwise.\n *\n * @abstract\n * Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.\n */\n@property(readonly) BOOL ibss NS_AVAILABLE_MAC(10_7);\n\n/*! @functiongroup Comparing Networks */\n\n/*!\n * @method\n *\n * @param network \n * A CWNetwork object.\n *\n * @result\n * YES if the objects are equal, NO otherwise.\n *\n * @abstract \n * Determine CWNetwork equality.\n *\n * @discussion\n * CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.\n */\n- (BOOL)isEqualToNetwork:(CWNetwork *)network NS_AVAILABLE_MAC(10_6);\n\n/*! @methodgroup Getting Supported Security Types */\n\n/*!\n * @method\n *\n * @param security\n * A CWSecurity type value.\n *\n * @result\n * <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise.\n *\n * @abstract \n * Determine which security types a Wi-Fi device supports.\n */\n- (BOOL)supportsSecurity:(CWSecurity)security NS_AVAILABLE_MAC(10_7);\n\n/*! @methodgroup Getting Supported PHY Modes */\n\n/*!\n * @method\n *\n * @param phyMode\n * A CWPHYMode type value.\n *\n * @result \n * YES if the Wi-Fi device supports the specified PHY mode, NO otherwise.\n *\n * @abstract\n * Determine which PHY modes a Wi-Fi device supports.\n */\n- (BOOL)supportsPHYMode:(CWPHYMode)phyMode NS_AVAILABLE_MAC(10_8);\n@end\nNS_ASSUME_NONNULL_END\n\n#endif /* _CORE_WLAN_NETWORK_H_ */\n"}
100
c
#ifndef QUALITYLOGGER_H #define QUALITYLOGGER_H #include <vector> #include <map> typedef std::vector<std::pair<unsigned int, double>> LogVector; typedef std::map<int, LogVector> LogVectorMap; class QualityLogger { public: static QualityLogger& getInstance() { static QualityLogger instance; return instance; } int get_size() { return get_size(0); } int get_size(int tid); std::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); } std::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid); void insertEntry(std::pair<unsigned int, double>&); void insertEntry(std::pair<unsigned int, double>&, int tid); double get_max_cost() { return this->max_cost; } static QualityLogger* _instance; int get_no_of_vectors() { return (int)this->logbookmap.size(); } double get_max_cost_to_print(int stepsize); double get_max_cost_to_print(int stepsize, int tid); private: QualityLogger(); QualityLogger(const QualityLogger&); ~QualityLogger() {} LogVectorMap logbookmap; //LogVector logbook; double max_cost; int tn; }; #endif
31
34
(translation_unit) "#ifndef QUALITYLOGGER_H\n#define QUALITYLOGGER_H\n\n#include <vector>\n#include <map>\n\ntypedef std::vector<std::pair<unsigned int, double>> LogVector;\ntypedef std::map<int, LogVector> LogVectorMap;\n\nclass QualityLogger {\npublic:\n static QualityLogger& getInstance()\n {\n static QualityLogger instance;\n return instance;\n }\n\n int get_size() { return get_size(0); }\n int get_size(int tid);\n\n std::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }\n std::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);\n\n void insertEntry(std::pair<unsigned int, double>&);\n void insertEntry(std::pair<unsigned int, double>&, int tid);\n\n double get_max_cost() { return this->max_cost; }\n\n static QualityLogger* _instance;\n\n int get_no_of_vectors() { return (int)this->logbookmap.size(); }\n\n double get_max_cost_to_print(int stepsize);\n double get_max_cost_to_print(int stepsize, int tid);\n\nprivate: \n QualityLogger();\n QualityLogger(const QualityLogger&);\n ~QualityLogger() {}\n\n LogVectorMap logbookmap;\n //LogVector logbook;\n\n double max_cost;\n int tn;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef QUALITYLOGGER_H\n#define QUALITYLOGGER_H\n\n#include <vector>\n#include <map>\n\ntypedef std::vector<std::pair<unsigned int, double>> LogVector;\ntypedef std::map<int, LogVector> LogVectorMap;\n\nclass QualityLogger {\npublic:\n static QualityLogger& getInstance()\n {\n static QualityLogger instance;\n return instance;\n }\n\n int get_size() { return get_size(0); }\n int get_size(int tid);\n\n std::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }\n std::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);\n\n void insertEntry(std::pair<unsigned int, double>&);\n void insertEntry(std::pair<unsigned int, double>&, int tid);\n\n double get_max_cost() { return this->max_cost; }\n\n static QualityLogger* _instance;\n\n int get_no_of_vectors() { return (int)this->logbookmap.size(); }\n\n double get_max_cost_to_print(int stepsize);\n double get_max_cost_to_print(int stepsize, int tid);\n\nprivate: \n QualityLogger();\n QualityLogger(const QualityLogger&);\n ~QualityLogger() {}\n\n LogVectorMap logbookmap;\n //LogVector logbook;\n\n double max_cost;\n int tn;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "QUALITYLOGGER_H" (preproc_def) "#define QUALITYLOGGER_H\n" (#define) "#define" (identifier) "QUALITYLOGGER_H" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (type_definition) "typedef std::vector<std::pair<unsigned int, double>> LogVector;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::vector<std::pair<unsigned" (:) ":" (:) ":" (type_identifier) "vector" (<) "<" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "pair" (<) "<" (primitive_type) "unsigned" (primitive_type) "int" (,) "," (ERROR) "double>>" (primitive_type) "double" (>>) ">>" (type_identifier) "LogVector" (;) ";" (type_definition) "typedef std::map<int, LogVector> LogVectorMap;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::map<" (:) ":" (:) ":" (type_identifier) "map" (<) "<" (primitive_type) "int" (,) "," (ERROR) "LogVector>" (type_identifier) "LogVector" (>) ">" (type_identifier) "LogVectorMap" (;) ";" (function_definition) "class QualityLogger {\npublic:\n static QualityLogger& getInstance()\n {\n static QualityLogger instance;\n return instance;\n }" (type_identifier) "class" (identifier) "QualityLogger" (compound_statement) "{\npublic:\n static QualityLogger& getInstance()\n {\n static QualityLogger instance;\n return instance;\n }" ({) "{" (labeled_statement) "public:\n static QualityLogger& getInstance()\n {\n static QualityLogger instance;" (statement_identifier) "public" (:) ":" (declaration) "static QualityLogger& getInstance()\n {\n static QualityLogger instance;" (storage_class_specifier) "static" (static) "static" (type_identifier) "QualityLogger" (ERROR) "& getInstance()\n {\n static QualityLogger" (&) "&" (function_declarator) "getInstance()" (identifier) "getInstance" (parameter_list) "()" (() "(" ()) ")" ({) "{" (static) "static" (identifier) "QualityLogger" (identifier) "instance" (;) ";" (return_statement) "return instance;" (return) "return" (identifier) "instance" (;) ";" (}) "}" (function_definition) "int get_size() { return get_size(0); }" (primitive_type) "int" (function_declarator) "get_size()" (identifier) "get_size" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return get_size(0); }" ({) "{" (return_statement) "return get_size(0);" (return) "return" (call_expression) "get_size(0)" (identifier) "get_size" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (declaration) "int get_size(int tid);" (primitive_type) "int" (function_declarator) "get_size(int tid)" (identifier) "get_size" (parameter_list) "(int tid)" (() "(" (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" ()) ")" (;) ";" (labeled_statement) "std::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }" (statement_identifier) "std" (:) ":" (ERROR) ":pair<unsigned int, double> get_entry_at(unsigned int pos)" (:) ":" (comma_expression) "pair<unsigned int, double> get_entry_at(unsigned int pos)" (binary_expression) "pair<unsigned" (identifier) "pair" (<) "<" (identifier) "unsigned" (ERROR) "int" (identifier) "int" (,) "," (binary_expression) "double> get_entry_at(unsigned int pos)" (identifier) "double" (>) ">" (call_expression) "get_entry_at(unsigned int pos)" (identifier) "get_entry_at" (argument_list) "(unsigned int pos)" (() "(" (identifier) "unsigned" (ERROR) "int pos" (identifier) "int" (identifier) "pos" ()) ")" (compound_statement) "{ return get_entry_at(pos, 0); }" ({) "{" (return_statement) "return get_entry_at(pos, 0);" (return) "return" (call_expression) "get_entry_at(pos, 0)" (identifier) "get_entry_at" (argument_list) "(pos, 0)" (() "(" (identifier) "pos" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);" (comma_expression) "pair<unsigned int, double> get_entry_at(unsigned int pos, int tid)" (binary_expression) "pair<unsigned" (identifier) "pair" (<) "<" (identifier) "unsigned" (ERROR) "int" (identifier) "int" (,) "," (binary_expression) "double> get_entry_at(unsigned int pos, int tid)" (identifier) "double" (>) ">" (call_expression) "get_entry_at(unsigned int pos, int tid)" (identifier) "get_entry_at" (argument_list) "(unsigned int pos, int tid)" (() "(" (identifier) "unsigned" (ERROR) "int pos" (identifier) "int" (identifier) "pos" (,) "," (identifier) "int" (ERROR) "tid" (identifier) "tid" ()) ")" (;) ";" (declaration) "void insertEntry(std::pair<unsigned int, double>&);" (primitive_type) "void" (function_declarator) "insertEntry(std::pair<unsigned int, double>&)" (identifier) "insertEntry" (parameter_list) "(std::pair<unsigned int, double>&)" (() "(" (ERROR) "std::pair<" (parameter_declaration) "std::pair" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "pair" (<) "<" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (,) "," (parameter_declaration) "double" (primitive_type) "double" (ERROR) ">&" (>) ">" (&) "&" ()) ")" (;) ";" (declaration) "void insertEntry(std::pair<unsigned int, double>&, int tid);" (primitive_type) "void" (function_declarator) "insertEntry(std::pair<unsigned int, double>&, int tid)" (identifier) "insertEntry" (parameter_list) "(std::pair<unsigned int, double>&, int tid)" (() "(" (ERROR) "std::pair<" (parameter_declaration) "std::pair" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "pair" (<) "<" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (,) "," (parameter_declaration) "double" (primitive_type) "double" (ERROR) ">&" (>) ">" (&) "&" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" ()) ")" (;) ";" (function_definition) "double get_max_cost() { return this->max_cost; }" (primitive_type) "double" (function_declarator) "get_max_cost()" (identifier) "get_max_cost" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return this->max_cost; }" ({) "{" (return_statement) "return this->max_cost;" (return) "return" (field_expression) "this->max_cost" (identifier) "this" (->) "->" (field_identifier) "max_cost" (;) ";" (}) "}" (declaration) "static QualityLogger* _instance;" (storage_class_specifier) "static" (static) "static" (type_identifier) "QualityLogger" (pointer_declarator) "* _instance" (*) "*" (identifier) "_instance" (;) ";" (function_definition) "int get_no_of_vectors() { return (int)this->logbookmap.size(); }" (primitive_type) "int" (function_declarator) "get_no_of_vectors()" (identifier) "get_no_of_vectors" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return (int)this->logbookmap.size(); }" ({) "{" (return_statement) "return (int)this->logbookmap.size();" (return) "return" (cast_expression) "(int)this->logbookmap.size()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "this->logbookmap.size()" (field_expression) "this->logbookmap.size" (field_expression) "this->logbookmap" (identifier) "this" (->) "->" (field_identifier) "logbookmap" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "double get_max_cost_to_print(int stepsize);" (primitive_type) "double" (function_declarator) "get_max_cost_to_print(int stepsize)" (identifier) "get_max_cost_to_print" (parameter_list) "(int stepsize)" (() "(" (parameter_declaration) "int stepsize" (primitive_type) "int" (identifier) "stepsize" ()) ")" (;) ";" (declaration) "double get_max_cost_to_print(int stepsize, int tid);" (primitive_type) "double" (function_declarator) "get_max_cost_to_print(int stepsize, int tid)" (identifier) "get_max_cost_to_print" (parameter_list) "(int stepsize, int tid)" (() "(" (parameter_declaration) "int stepsize" (primitive_type) "int" (identifier) "stepsize" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" ()) ")" (;) ";" (labeled_statement) "private: \n QualityLogger();" (statement_identifier) "private" (:) ":" (expression_statement) "QualityLogger();" (call_expression) "QualityLogger()" (identifier) "QualityLogger" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "QualityLogger(const QualityLogger&)" (identifier) "QualityLogger" (() "(" (type_descriptor) "const QualityLogger" (type_qualifier) "const" (const) "const" (type_identifier) "QualityLogger" (ERROR) "&" (&) "&" ()) ")" (;) ";" (expression_statement) "~QualityLogger()" (unary_expression) "~QualityLogger()" (~) "~" (call_expression) "QualityLogger()" (identifier) "QualityLogger" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (declaration) "LogVectorMap logbookmap;" (type_identifier) "LogVectorMap" (identifier) "logbookmap" (;) ";" (comment) "//LogVector logbook;" (declaration) "double max_cost;" (primitive_type) "double" (identifier) "max_cost" (;) ";" (declaration) "int tn;" (primitive_type) "int" (identifier) "tn" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
365
20
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.0, "nodes": 228, "errors": 0, "source_hash": "c0a623a2e04afe3e76cf740e868a4422df3ef8ebeb94b0b221c668b8607e8716", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef QUALITYLOGGER_H\n#define QUALITYLOGGER_H\n\n#include <vector>\n#include <map>\n\ntypedef std::vector<std::pair<unsigned int, double>> LogVector;\ntypedef std::map<int, LogVector> LogVectorMap;\n\nclass QualityLogger {\npublic:\n\tstatic QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instance;\n\t\treturn instance;\n\t}\n\n\tint get_size() { return get_size(0); }\n\tint get_size(int tid);\n\n\tstd::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }\n\tstd::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);\n\n\tvoid insertEntry(std::pair<unsigned int, double>&);\n\tvoid insertEntry(std::pair<unsigned int, double>&, int tid);\n\n\tdouble get_max_cost() { return this->max_cost; }\n\n\tstatic QualityLogger* _instance;\n\n\tint get_no_of_vectors() { return (int)this->logbookmap.size(); }\n\n\tdouble get_max_cost_to_print(int stepsize);\n\tdouble get_max_cost_to_print(int stepsize, int tid);\n\nprivate:\t\n\tQualityLogger();\n\tQualityLogger(const QualityLogger&);\n\t~QualityLogger() {}\n\n\tLogVectorMap logbookmap;\n\t//LogVector logbook;\n\n\tdouble max_cost;\n\tint tn;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 27, 38, 51, 61, 69, 95, 117, 135, 156, 165, 170, 186, 194, 205, 209, 218, 221, 224, 227], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 47, "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": "QUALITYLOGGER_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "preproc_def", "text": "#define QUALITYLOGGER_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": "QUALITYLOGGER_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<vector>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <map>\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": "<map>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 14}}, {"id": 12, "type": "type_definition", "text": "typedef std::vector<std::pair<unsigned int, double>> LogVector;", "parent": 0, "children": [13, 14, 15, 22, 23, 26], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 63}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 14, "type": "type_identifier", "text": "std", "parent": 12, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 11}}, {"id": 15, "type": "ERROR", "text": "::vector<std::pair<unsigned", "parent": 12, "children": [16, 17, 18, 19, 20, 21], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 38}}, {"id": 16, "type": "type_identifier", "text": "vector", "parent": 15, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 19}}, {"id": 17, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 20}}, {"id": 18, "type": "type_identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 23}}, {"id": 19, "type": "type_identifier", "text": "pair", "parent": 15, "children": [], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 29}}, {"id": 20, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 6, "column": 29}, "end_point": {"row": 6, "column": 30}}, {"id": 21, "type": "primitive_type", "text": "unsigned", "parent": 15, "children": [], "start_point": {"row": 6, "column": 30}, "end_point": {"row": 6, "column": 38}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 6, "column": 39}, "end_point": {"row": 6, "column": 42}}, {"id": 23, "type": "ERROR", "text": "double>>", "parent": 12, "children": [24, 25], "start_point": {"row": 6, "column": 44}, "end_point": {"row": 6, "column": 52}}, {"id": 24, "type": "primitive_type", "text": "double", "parent": 23, "children": [], "start_point": {"row": 6, "column": 44}, "end_point": {"row": 6, "column": 50}}, {"id": 25, "type": ">>", "text": ">>", "parent": 23, "children": [], "start_point": {"row": 6, "column": 50}, "end_point": {"row": 6, "column": 52}}, {"id": 26, "type": "type_identifier", "text": "LogVector", "parent": 12, "children": [], "start_point": {"row": 6, "column": 53}, "end_point": {"row": 6, "column": 62}}, {"id": 27, "type": "type_definition", "text": "typedef std::map<int, LogVector> LogVectorMap;", "parent": 0, "children": [28, 29, 30, 33, 34, 37], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 46}}, {"id": 28, "type": "typedef", "text": "typedef", "parent": 27, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 29, "type": "type_identifier", "text": "std", "parent": 27, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 11}}, {"id": 30, "type": "ERROR", "text": "::map<", "parent": 27, "children": [31, 32], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 17}}, {"id": 31, "type": "type_identifier", "text": "map", "parent": 30, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 16}}, {"id": 32, "type": "<", "text": "<", "parent": 30, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 17}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 20}}, {"id": 34, "type": "ERROR", "text": "LogVector>", "parent": 27, "children": [35, 36], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 32}}, {"id": 35, "type": "type_identifier", "text": "LogVector", "parent": 34, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 31}}, {"id": 36, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 32}}, {"id": 37, "type": "type_identifier", "text": "LogVectorMap", "parent": 27, "children": [], "start_point": {"row": 7, "column": 33}, "end_point": {"row": 7, "column": 45}}, {"id": 38, "type": "function_definition", "text": "class QualityLogger {\npublic:\n\tstatic QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instance;\n\t\treturn instance;\n\t}", "parent": 0, "children": [39], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 15, "column": 2}}, {"id": 39, "type": "identifier", "text": "QualityLogger", "parent": 38, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 19}}, {"id": 40, "type": "labeled_statement", "text": "public:\n\tstatic QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instance;", "parent": 38, "children": [41], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 32}}, {"id": 41, "type": "declaration", "text": "static QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instance;", "parent": 40, "children": [42, 43, 48], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 13, "column": 32}}, {"id": 42, "type": "type_identifier", "text": "QualityLogger", "parent": 41, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 21}}, {"id": 43, "type": "ERROR", "text": "& getInstance()\n\t{\n\t\tstatic QualityLogger", "parent": 41, "children": [44, 47], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 44, "type": "function_declarator", "text": "getInstance()", "parent": 43, "children": [45, 46], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 36}}, {"id": 45, "type": "identifier", "text": "getInstance", "parent": 44, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 34}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 36}}, {"id": 47, "type": "identifier", "text": "QualityLogger", "parent": 43, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 22}}, {"id": 48, "type": "identifier", "text": "instance", "parent": 41, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 31}}, {"id": 49, "type": "return_statement", "text": "return instance;", "parent": 38, "children": [50], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 18}}, {"id": 50, "type": "identifier", "text": "instance", "parent": 49, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 51, "type": "function_definition", "text": "int get_size() { return get_size(0); }", "parent": 0, "children": [52, 53], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 39}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 53, "type": "function_declarator", "text": "get_size()", "parent": 51, "children": [54, 55], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 15}}, {"id": 54, "type": "identifier", "text": "get_size", "parent": 53, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 13}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 56, "type": "return_statement", "text": "return get_size(0);", "parent": 51, "children": [57], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 37}}, {"id": 57, "type": "call_expression", "text": "get_size(0)", "parent": 56, "children": [58, 59], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 36}}, {"id": 58, "type": "identifier", "text": "get_size", "parent": 57, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 33}}, {"id": 59, "type": "argument_list", "text": "(0)", "parent": 57, "children": [60], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 36}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 61, "type": "declaration", "text": "int get_size(int tid);", "parent": 0, "children": [62, 63], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 23}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}, {"id": 63, "type": "function_declarator", "text": "get_size(int tid)", "parent": 61, "children": [64, 65], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 22}}, {"id": 64, "type": "identifier", "text": "get_size", "parent": 63, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 13}}, {"id": 65, "type": "parameter_list", "text": "(int tid)", "parent": 63, "children": [66], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 22}}, {"id": 66, "type": "parameter_declaration", "text": "int tid", "parent": 65, "children": [67, 68], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 17}}, {"id": 68, "type": "identifier", "text": "tid", "parent": 66, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 21}}, {"id": 69, "type": "labeled_statement", "text": "std::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }", "parent": 0, "children": [70, 71], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 96}}, {"id": 70, "type": "statement_identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 4}}, {"id": 71, "type": "ERROR", "text": ":pair<unsigned int, double> get_entry_at(unsigned int pos)", "parent": 69, "children": [72], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 63}}, {"id": 72, "type": "comma_expression", "text": "pair<unsigned int, double> get_entry_at(unsigned int pos)", "parent": 71, "children": [73, 77, 79], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 63}}, {"id": 73, "type": "binary_expression", "text": "pair<unsigned", "parent": 72, "children": [74, 75, 76], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 19}}, {"id": 74, "type": "identifier", "text": "pair", "parent": 73, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 10}}, {"id": 75, "type": "<", "text": "<", "parent": 73, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 76, "type": "identifier", "text": "unsigned", "parent": 73, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 77, "type": "ERROR", "text": "int", "parent": 72, "children": [78], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 23}}, {"id": 78, "type": "identifier", "text": "int", "parent": 77, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 23}}, {"id": 79, "type": "binary_expression", "text": "double> get_entry_at(unsigned int pos)", "parent": 72, "children": [80, 81, 82], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 63}}, {"id": 80, "type": "identifier", "text": "double", "parent": 79, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 31}}, {"id": 81, "type": ">", "text": ">", "parent": 79, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 32}}, {"id": 82, "type": "call_expression", "text": "get_entry_at(unsigned int pos)", "parent": 79, "children": [83, 84], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 63}}, {"id": 83, "type": "identifier", "text": "get_entry_at", "parent": 82, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 45}}, {"id": 84, "type": "argument_list", "text": "(unsigned int pos)", "parent": 82, "children": [85, 86], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 63}}, {"id": 85, "type": "identifier", "text": "unsigned", "parent": 84, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 54}}, {"id": 86, "type": "ERROR", "text": "int pos", "parent": 84, "children": [87, 88], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 62}}, {"id": 87, "type": "identifier", "text": "int", "parent": 86, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 58}}, {"id": 88, "type": "identifier", "text": "pos", "parent": 86, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 62}}, {"id": 89, "type": "return_statement", "text": "return get_entry_at(pos, 0);", "parent": 69, "children": [90], "start_point": {"row": 20, "column": 66}, "end_point": {"row": 20, "column": 94}}, {"id": 90, "type": "call_expression", "text": "get_entry_at(pos, 0)", "parent": 89, "children": [91, 92], "start_point": {"row": 20, "column": 73}, "end_point": {"row": 20, "column": 93}}, {"id": 91, "type": "identifier", "text": "get_entry_at", "parent": 90, "children": [], "start_point": {"row": 20, "column": 73}, "end_point": {"row": 20, "column": 85}}, {"id": 92, "type": "argument_list", "text": "(pos, 0)", "parent": 90, "children": [93, 94], "start_point": {"row": 20, "column": 85}, "end_point": {"row": 20, "column": 93}}, {"id": 93, "type": "identifier", "text": "pos", "parent": 92, "children": [], "start_point": {"row": 20, "column": 86}, "end_point": {"row": 20, "column": 89}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 92, "children": [], "start_point": {"row": 20, "column": 91}, "end_point": {"row": 20, "column": 92}}, {"id": 95, "type": "labeled_statement", "text": "std::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);", "parent": 0, "children": [96], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 73}}, {"id": 96, "type": "statement_identifier", "text": "std", "parent": 95, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 97, "type": "comma_expression", "text": "pair<unsigned int, double> get_entry_at(unsigned int pos, int tid)", "parent": 95, "children": [98, 102, 104], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 72}}, {"id": 98, "type": "binary_expression", "text": "pair<unsigned", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 19}}, {"id": 99, "type": "identifier", "text": "pair", "parent": 98, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 10}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 101, "type": "identifier", "text": "unsigned", "parent": 98, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 19}}, {"id": 102, "type": "ERROR", "text": "int", "parent": 97, "children": [103], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 23}}, {"id": 103, "type": "identifier", "text": "int", "parent": 102, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 23}}, {"id": 104, "type": "binary_expression", "text": "double> get_entry_at(unsigned int pos, int tid)", "parent": 97, "children": [105, 106, 107], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 72}}, {"id": 105, "type": "identifier", "text": "double", "parent": 104, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 31}}, {"id": 106, "type": ">", "text": ">", "parent": 104, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 32}}, {"id": 107, "type": "call_expression", "text": "get_entry_at(unsigned int pos, int tid)", "parent": 104, "children": [108, 109], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 72}}, {"id": 108, "type": "identifier", "text": "get_entry_at", "parent": 107, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 45}}, {"id": 109, "type": "argument_list", "text": "(unsigned int pos, int tid)", "parent": 107, "children": [110, 111, 114, 115], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 72}}, {"id": 110, "type": "identifier", "text": "unsigned", "parent": 109, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 54}}, {"id": 111, "type": "ERROR", "text": "int pos", "parent": 109, "children": [112, 113], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 62}}, {"id": 112, "type": "identifier", "text": "int", "parent": 111, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 58}}, {"id": 113, "type": "identifier", "text": "pos", "parent": 111, "children": [], "start_point": {"row": 21, "column": 59}, "end_point": {"row": 21, "column": 62}}, {"id": 114, "type": "identifier", "text": "int", "parent": 109, "children": [], "start_point": {"row": 21, "column": 64}, "end_point": {"row": 21, "column": 67}}, {"id": 115, "type": "ERROR", "text": "tid", "parent": 109, "children": [116], "start_point": {"row": 21, "column": 68}, "end_point": {"row": 21, "column": 71}}, {"id": 116, "type": "identifier", "text": "tid", "parent": 115, "children": [], "start_point": {"row": 21, "column": 68}, "end_point": {"row": 21, "column": 71}}, {"id": 117, "type": "declaration", "text": "void insertEntry(std::pair<unsigned int, double>&);", "parent": 0, "children": [118, 119], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 52}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 5}}, {"id": 119, "type": "function_declarator", "text": "insertEntry(std::pair<unsigned int, double>&)", "parent": 117, "children": [120, 121], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 51}}, {"id": 120, "type": "identifier", "text": "insertEntry", "parent": 119, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 17}}, {"id": 121, "type": "parameter_list", "text": "(std::pair<unsigned int, double>&)", "parent": 119, "children": [122, 127, 131, 133], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 51}}, {"id": 122, "type": "ERROR", "text": "std::pair<", "parent": 121, "children": [123, 126], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 28}}, {"id": 123, "type": "parameter_declaration", "text": "std::pair", "parent": 122, "children": [124, 125], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 27}}, {"id": 124, "type": "type_identifier", "text": "std", "parent": 123, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 21}}, {"id": 125, "type": "identifier", "text": "pair", "parent": 123, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 27}}, {"id": 126, "type": "<", "text": "<", "parent": 122, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 28}}, {"id": 127, "type": "parameter_declaration", "text": "unsigned int", "parent": 121, "children": [128], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 40}}, {"id": 128, "type": "sized_type_specifier", "text": "unsigned int", "parent": 127, "children": [129, 130], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 40}}, {"id": 129, "type": "unsigned", "text": "unsigned", "parent": 128, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 36}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 40}}, {"id": 131, "type": "parameter_declaration", "text": "double", "parent": 121, "children": [132], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 48}}, {"id": 132, "type": "primitive_type", "text": "double", "parent": 131, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 48}}, {"id": 133, "type": "ERROR", "text": ">&", "parent": 121, "children": [134], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 50}}, {"id": 134, "type": ">", "text": ">", "parent": 133, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 49}}, {"id": 135, "type": "declaration", "text": "void insertEntry(std::pair<unsigned int, double>&, int tid);", "parent": 0, "children": [136, 137], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 61}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 135, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 137, "type": "function_declarator", "text": "insertEntry(std::pair<unsigned int, double>&, int tid)", "parent": 135, "children": [138, 139], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 60}}, {"id": 138, "type": "identifier", "text": "insertEntry", "parent": 137, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 17}}, {"id": 139, "type": "parameter_list", "text": "(std::pair<unsigned int, double>&, int tid)", "parent": 137, "children": [140, 145, 149, 151, 153], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 60}}, {"id": 140, "type": "ERROR", "text": "std::pair<", "parent": 139, "children": [141, 144], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 28}}, {"id": 141, "type": "parameter_declaration", "text": "std::pair", "parent": 140, "children": [142, 143], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 27}}, {"id": 142, "type": "type_identifier", "text": "std", "parent": 141, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 21}}, {"id": 143, "type": "identifier", "text": "pair", "parent": 141, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 27}}, {"id": 144, "type": "<", "text": "<", "parent": 140, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 145, "type": "parameter_declaration", "text": "unsigned int", "parent": 139, "children": [146], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 40}}, {"id": 146, "type": "sized_type_specifier", "text": "unsigned int", "parent": 145, "children": [147, 148], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 40}}, {"id": 147, "type": "unsigned", "text": "unsigned", "parent": 146, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 36}}, {"id": 148, "type": "primitive_type", "text": "int", "parent": 146, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 40}}, {"id": 149, "type": "parameter_declaration", "text": "double", "parent": 139, "children": [150], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 48}}, {"id": 150, "type": "primitive_type", "text": "double", "parent": 149, "children": [], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 48}}, {"id": 151, "type": "ERROR", "text": ">&", "parent": 139, "children": [152], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 50}}, {"id": 152, "type": ">", "text": ">", "parent": 151, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 49}}, {"id": 153, "type": "parameter_declaration", "text": "int tid", "parent": 139, "children": [154, 155], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 59}}, {"id": 154, "type": "primitive_type", "text": "int", "parent": 153, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 55}}, {"id": 155, "type": "identifier", "text": "tid", "parent": 153, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 59}}, {"id": 156, "type": "function_definition", "text": "double get_max_cost() { return this->max_cost; }", "parent": 0, "children": [157, 158], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 49}}, {"id": 157, "type": "primitive_type", "text": "double", "parent": 156, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 7}}, {"id": 158, "type": "function_declarator", "text": "get_max_cost()", "parent": 156, "children": [159, 160], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 22}}, {"id": 159, "type": "identifier", "text": "get_max_cost", "parent": 158, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 20}}, {"id": 160, "type": "parameter_list", "text": "()", "parent": 158, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 22}}, {"id": 161, "type": "return_statement", "text": "return this->max_cost;", "parent": 156, "children": [162], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 47}}, {"id": 162, "type": "field_expression", "text": "this->max_cost", "parent": 161, "children": [163, 164], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 46}}, {"id": 163, "type": "identifier", "text": "this", "parent": 162, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 36}}, {"id": 164, "type": "field_identifier", "text": "max_cost", "parent": 162, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 46}}, {"id": 165, "type": "declaration", "text": "static QualityLogger* _instance;", "parent": 0, "children": [166, 167], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 33}}, {"id": 166, "type": "type_identifier", "text": "QualityLogger", "parent": 165, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 167, "type": "pointer_declarator", "text": "* _instance", "parent": 165, "children": [168, 169], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 32}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 22}}, {"id": 169, "type": "identifier", "text": "_instance", "parent": 167, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 32}}, {"id": 170, "type": "function_definition", "text": "int get_no_of_vectors() { return (int)this->logbookmap.size(); }", "parent": 0, "children": [171, 172], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 65}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 4}}, {"id": 172, "type": "function_declarator", "text": "get_no_of_vectors()", "parent": 170, "children": [173, 174], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 24}}, {"id": 173, "type": "identifier", "text": "get_no_of_vectors", "parent": 172, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 22}}, {"id": 174, "type": "parameter_list", "text": "()", "parent": 172, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 24}}, {"id": 175, "type": "return_statement", "text": "return (int)this->logbookmap.size();", "parent": 170, "children": [176], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 63}}, {"id": 176, "type": "cast_expression", "text": "(int)this->logbookmap.size()", "parent": 175, "children": [177, 179], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 62}}, {"id": 177, "type": "type_descriptor", "text": "int", "parent": 176, "children": [178], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 38}}, {"id": 178, "type": "primitive_type", "text": "int", "parent": 177, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 38}}, {"id": 179, "type": "call_expression", "text": "this->logbookmap.size()", "parent": 176, "children": [180, 185], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 62}}, {"id": 180, "type": "field_expression", "text": "this->logbookmap.size", "parent": 179, "children": [181, 184], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 60}}, {"id": 181, "type": "field_expression", "text": "this->logbookmap", "parent": 180, "children": [182, 183], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 55}}, {"id": 182, "type": "identifier", "text": "this", "parent": 181, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 43}}, {"id": 183, "type": "field_identifier", "text": "logbookmap", "parent": 181, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 55}}, {"id": 184, "type": "field_identifier", "text": "size", "parent": 180, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 60}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 179, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 62}}, {"id": 186, "type": "declaration", "text": "double get_max_cost_to_print(int stepsize);", "parent": 0, "children": [187, 188], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 44}}, {"id": 187, "type": "primitive_type", "text": "double", "parent": 186, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 7}}, {"id": 188, "type": "function_declarator", "text": "get_max_cost_to_print(int stepsize)", "parent": 186, "children": [189, 190], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 43}}, {"id": 189, "type": "identifier", "text": "get_max_cost_to_print", "parent": 188, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 29}}, {"id": 190, "type": "parameter_list", "text": "(int stepsize)", "parent": 188, "children": [191], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 43}}, {"id": 191, "type": "parameter_declaration", "text": "int stepsize", "parent": 190, "children": [192, 193], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 42}}, {"id": 192, "type": "primitive_type", "text": "int", "parent": 191, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 33}}, {"id": 193, "type": "identifier", "text": "stepsize", "parent": 191, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 42}}, {"id": 194, "type": "declaration", "text": "double get_max_cost_to_print(int stepsize, int tid);", "parent": 0, "children": [195, 196], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 53}}, {"id": 195, "type": "primitive_type", "text": "double", "parent": 194, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 196, "type": "function_declarator", "text": "get_max_cost_to_print(int stepsize, int tid)", "parent": 194, "children": [197, 198], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 52}}, {"id": 197, "type": "identifier", "text": "get_max_cost_to_print", "parent": 196, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 29}}, {"id": 198, "type": "parameter_list", "text": "(int stepsize, int tid)", "parent": 196, "children": [199, 202], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 52}}, {"id": 199, "type": "parameter_declaration", "text": "int stepsize", "parent": 198, "children": [200, 201], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 42}}, {"id": 200, "type": "primitive_type", "text": "int", "parent": 199, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 33}}, {"id": 201, "type": "identifier", "text": "stepsize", "parent": 199, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 42}}, {"id": 202, "type": "parameter_declaration", "text": "int tid", "parent": 198, "children": [203, 204], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 51}}, {"id": 203, "type": "primitive_type", "text": "int", "parent": 202, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 47}}, {"id": 204, "type": "identifier", "text": "tid", "parent": 202, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 51}}, {"id": 205, "type": "labeled_statement", "text": "private:\t\n\tQualityLogger();", "parent": 0, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 17}}, {"id": 206, "type": "call_expression", "text": "QualityLogger()", "parent": 205, "children": [207, 208], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 16}}, {"id": 207, "type": "identifier", "text": "QualityLogger", "parent": 206, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 14}}, {"id": 208, "type": "argument_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 16}}, {"id": 209, "type": "macro_type_specifier", "text": "QualityLogger(const QualityLogger&)", "parent": 0, "children": [210, 211], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 36}}, {"id": 210, "type": "identifier", "text": "QualityLogger", "parent": 209, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 14}}, {"id": 211, "type": "type_descriptor", "text": "const QualityLogger", "parent": 209, "children": [212], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 34}}, {"id": 212, "type": "type_identifier", "text": "QualityLogger", "parent": 211, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 34}}, {"id": 213, "type": "unary_expression", "text": "~QualityLogger()", "parent": 0, "children": [214, 215], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 17}}, {"id": 214, "type": "~", "text": "~", "parent": 213, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 2}}, {"id": 215, "type": "call_expression", "text": "QualityLogger()", "parent": 213, "children": [216, 217], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 17}}, {"id": 216, "type": "identifier", "text": "QualityLogger", "parent": 215, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 217, "type": "argument_list", "text": "()", "parent": 215, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 17}}, {"id": 218, "type": "declaration", "text": "LogVectorMap logbookmap;", "parent": 0, "children": [219, 220], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 25}}, {"id": 219, "type": "type_identifier", "text": "LogVectorMap", "parent": 218, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 13}}, {"id": 220, "type": "identifier", "text": "logbookmap", "parent": 218, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 24}}, {"id": 221, "type": "declaration", "text": "double max_cost;", "parent": 0, "children": [222, 223], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 17}}, {"id": 222, "type": "primitive_type", "text": "double", "parent": 221, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 7}}, {"id": 223, "type": "identifier", "text": "max_cost", "parent": 221, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 224, "type": "declaration", "text": "int tn;", "parent": 0, "children": [225, 226], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 225, "type": "primitive_type", "text": "int", "parent": 224, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 226, "type": "identifier", "text": "tn", "parent": 224, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 7}}, {"id": 227, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [38, 44, 51, 53, 63, 119, 137, 156, 158, 170, 172, 188, 196], "variables": [12, 27, 41, 61, 66, 117, 123, 127, 131, 135, 141, 145, 149, 153, 165, 186, 191, 194, 199, 202, 218, 221, 224], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [57, 72, 73, 79, 82, 90, 97, 98, 104, 107, 162, 176, 179, 180, 181, 206, 213, 215], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 16, 18, 19, 26, 29, 31, 35, 37, 39, 42, 45, 47, 48, 50, 54, 58, 64, 68, 70, 74, 76, 78, 80, 83, 85, 87, 88, 91, 93, 96, 99, 101, 103, 105, 108, 110, 112, 113, 114, 116, 120, 124, 125, 128, 138, 142, 143, 146, 155, 159, 163, 164, 166, 169, 173, 182, 183, 184, 189, 193, 197, 201, 204, 207, 209, 210, 212, 216, 219, 220, 223, 226, 227], "returns": [49, 56, 89, 161, 175], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 60, 94], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 38, "universal_type": "function", "name": "QualityLogger", "text_snippet": "class QualityLogger {\npublic:\n\tstatic QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instanc"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "getInstance()"}, {"node_id": 51, "universal_type": "function", "name": "get_size", "text_snippet": "int get_size() { return get_size(0); }"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "get_size()"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "get_size(int tid)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "insertEntry(std::pair<unsigned int, double>&)"}, {"node_id": 137, "universal_type": "function", "name": "tid)", "text_snippet": "insertEntry(std::pair<unsigned int, double>&, int tid)"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "double get_max_cost() { return this->max_cost; }"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "get_max_cost()"}, {"node_id": 170, "universal_type": "function", "name": "get_no_of_vectors", "text_snippet": "int get_no_of_vectors() { return (int)this->logbookmap.size(); }"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "get_no_of_vectors()"}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "get_max_cost_to_print(int stepsize)"}, {"node_id": 196, "universal_type": "function", "name": "tid)", "text_snippet": "get_max_cost_to_print(int stepsize, int tid)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <vector>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <map>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef QUALITYLOGGER_H\n#define QUALITYLOGGER_H\n\n#include <vector>\n#include <map>\n\ntypedef std::vector<std::pair<unsigned int, double>> LogVector;\ntypedef std::map<int, LogVector> LogVectorMap;\n\nclass QualityLogger {\npublic:\n\tstatic QualityLogger& getInstance()\n\t{\n\t\tstatic QualityLogger instance;\n\t\treturn instance;\n\t}\n\n\tint get_size() { return get_size(0); }\n\tint get_size(int tid);\n\n\tstd::pair<unsigned int, double> get_entry_at(unsigned int pos) { return get_entry_at(pos, 0); }\n\tstd::pair<unsigned int, double> get_entry_at(unsigned int pos, int tid);\n\n\tvoid insertEntry(std::pair<unsigned int, double>&);\n\tvoid insertEntry(std::pair<unsigned int, double>&, int tid);\n\n\tdouble get_max_cost() { return this->max_cost; }\n\n\tstatic QualityLogger* _instance;\n\n\tint get_no_of_vectors() { return (int)this->logbookmap.size(); }\n\n\tdouble get_max_cost_to_print(int stepsize);\n\tdouble get_max_cost_to_print(int stepsize, int tid);\n\nprivate:\t\n\tQualityLogger();\n\tQualityLogger(const QualityLogger&);\n\t~QualityLogger() {}\n\n\tLogVectorMap logbookmap;\n\t//LogVector logbook;\n\n\tdouble max_cost;\n\tint tn;\n};\n\n#endif\n"}
101
c
/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "common/Dictionary.h" #include "decoder/LM.h" // KenLM forward declarations namespace lm { namespace base { class Model; class Vocabulary; } // namespace base namespace ngram { class State; } // namespace ngram } // namespace lm namespace w2l { /** * KenLMState is a state object from KenLM, which contains context length, * indicies and compare functions * https://github.com/kpu/kenlm/blob/master/lm/state.hh. */ using KenLMState = lm::ngram::State; /** * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/. */ class KenLM : public LM { public: KenLM(const std::string& path, const Dictionary& usrTknDict); LMStatePtr start(bool startWithNothing) override; std::pair<LMStatePtr, float> score( const LMStatePtr& state, const int usrTokenIdx) override; std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override; int compareState(const LMStatePtr& state1, const LMStatePtr& state2) const override; private: std::shared_ptr<lm::base::Model> model_; const lm::base::Vocabulary* vocab_; static KenLMState* getRawState(const LMStatePtr& state); }; } // namespace w2l
28.98
46
(translation_unit) "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include "common/Dictionary.h"\n#include "decoder/LM.h"\n\n// KenLM forward declarations\nnamespace lm {\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {\nclass State;\n} // namespace ngram\n} // namespace lm\n\nnamespace w2l {\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */\nusing KenLMState = lm::ngram::State;\n\n/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */\nclass KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n};\n\n} // namespace w2l\n" (comment) "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "common/Dictionary.h"\n" (#include) "#include" (string_literal) ""common/Dictionary.h"" (") """ (string_content) "common/Dictionary.h" (") """ (preproc_include) "#include "decoder/LM.h"\n" (#include) "#include" (string_literal) ""decoder/LM.h"" (") """ (string_content) "decoder/LM.h" (") """ (comment) "// KenLM forward declarations" (function_definition) "namespace lm {\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {\nclass State;\n} // namespace ngram\n}" (type_identifier) "namespace" (identifier) "lm" (compound_statement) "{\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {\nclass State;\n} // namespace ngram\n}" ({) "{" (function_definition) "namespace base {\nclass Model;\nclass Vocabulary;\n}" (type_identifier) "namespace" (identifier) "base" (compound_statement) "{\nclass Model;\nclass Vocabulary;\n}" ({) "{" (declaration) "class Model;" (type_identifier) "class" (identifier) "Model" (;) ";" (declaration) "class Vocabulary;" (type_identifier) "class" (identifier) "Vocabulary" (;) ";" (}) "}" (comment) "// namespace base" (function_definition) "namespace ngram {\nclass State;\n}" (type_identifier) "namespace" (identifier) "ngram" (compound_statement) "{\nclass State;\n}" ({) "{" (declaration) "class State;" (type_identifier) "class" (identifier) "State" (;) ";" (}) "}" (comment) "// namespace ngram" (}) "}" (comment) "// namespace lm" (function_definition) "namespace w2l {\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */\nusing KenLMState = lm::ngram::State;\n\n/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */\nclass KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n};\n\n}" (type_identifier) "namespace" (identifier) "w2l" (compound_statement) "{\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */\nusing KenLMState = lm::ngram::State;\n\n/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */\nclass KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n};\n\n}" ({) "{" (comment) "/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */" (declaration) "using KenLMState = lm::ngram::State;" (type_identifier) "using" (init_declarator) "KenLMState = lm::ngram::State" (identifier) "KenLMState" (=) "=" (ERROR) "lm::ngram::" (identifier) "lm" (:) ":" (:) ":" (identifier) "ngram" (:) ":" (:) ":" (identifier) "State" (;) ";" (comment) "/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */" (function_definition) "class KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n}" (type_identifier) "class" (ERROR) "KenLM : public" (identifier) "KenLM" (:) ":" (identifier) "public" (identifier) "LM" (compound_statement) "{\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n}" ({) "{" (labeled_statement) "public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);" (statement_identifier) "public" (:) ":" (labeled_statement) "KenLM(const std::string& path, const Dictionary& usrTknDict);" (statement_identifier) "KenLM" (ERROR) "(const std:" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string& path, const Dictionary& usrTknDict);" (comma_expression) "string& path, const Dictionary& usrTknDict" (binary_expression) "string& path" (identifier) "string" (&) "&" (identifier) "path" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "Dictionary& usrTknDict" (identifier) "Dictionary" (&) "&" (identifier) "usrTknDict" (ERROR) ")" ()) ")" (;) ";" (ERROR) "LMStatePtr start(bool startWithNothing) override" (type_identifier) "LMStatePtr" (function_declarator) "start(bool startWithNothing) override" (identifier) "start" (parameter_list) "(bool startWithNothing)" (() "(" (parameter_declaration) "bool startWithNothing" (primitive_type) "bool" (identifier) "startWithNothing" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;" (comma_expression) "pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx)" (binary_expression) "pair<LMStatePtr" (identifier) "pair" (<) "<" (identifier) "LMStatePtr" (,) "," (binary_expression) "float> score(\n const LMStatePtr& state,\n const int usrTokenIdx)" (identifier) "float" (>) ">" (call_expression) "score(\n const LMStatePtr& state,\n const int usrTokenIdx)" (identifier) "score" (argument_list) "(\n const LMStatePtr& state,\n const int usrTokenIdx)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "LMStatePtr& state" (identifier) "LMStatePtr" (&) "&" (identifier) "state" (,) "," (ERROR) "const int" (identifier) "const" (identifier) "int" (identifier) "usrTokenIdx" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (labeled_statement) "std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "pair<LMStatePtr, float> finish(const LMStatePtr& state) override;" (comma_expression) "pair<LMStatePtr, float> finish(const LMStatePtr& state)" (binary_expression) "pair<LMStatePtr" (identifier) "pair" (<) "<" (identifier) "LMStatePtr" (,) "," (binary_expression) "float> finish(const LMStatePtr& state)" (identifier) "float" (>) ">" (call_expression) "finish(const LMStatePtr& state)" (identifier) "finish" (argument_list) "(const LMStatePtr& state)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "LMStatePtr& state" (identifier) "LMStatePtr" (&) "&" (identifier) "state" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (ERROR) "int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override" (primitive_type) "int" (function_declarator) "compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override" (identifier) "compareState" (parameter_list) "(const LMStatePtr& state1, const LMStatePtr& state2)" (() "(" (parameter_declaration) "const LMStatePtr& state1" (type_qualifier) "const" (const) "const" (type_identifier) "LMStatePtr" (ERROR) "&" (&) "&" (identifier) "state1" (,) "," (parameter_declaration) "const LMStatePtr& state2" (type_qualifier) "const" (const) "const" (type_identifier) "LMStatePtr" (ERROR) "&" (&) "&" (identifier) "state2" ()) ")" (identifier) "const" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n std::shared_ptr<lm::base::Model> model_;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::shared_ptr<lm::base::Model> model_;" (statement_identifier) "std" (ERROR) "::shared_ptr<lm:" (:) ":" (:) ":" (binary_expression) "shared_ptr<lm" (identifier) "shared_ptr" (<) "<" (identifier) "lm" (:) ":" (:) ":" (labeled_statement) "base::Model> model_;" (statement_identifier) "base" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "Model> model_;" (binary_expression) "Model> model_" (identifier) "Model" (>) ">" (identifier) "model_" (;) ";" (declaration) "const lm::base::Vocabulary* vocab_;" (type_qualifier) "const" (const) "const" (type_identifier) "lm" (ERROR) "::base::Vocabulary" (:) ":" (:) ":" (identifier) "base" (:) ":" (:) ":" (identifier) "Vocabulary" (pointer_declarator) "* vocab_" (*) "*" (identifier) "vocab_" (;) ";" (declaration) "static KenLMState* getRawState(const LMStatePtr& state);" (storage_class_specifier) "static" (static) "static" (type_identifier) "KenLMState" (pointer_declarator) "* getRawState(const LMStatePtr& state)" (*) "*" (function_declarator) "getRawState(const LMStatePtr& state)" (identifier) "getRawState" (parameter_list) "(const LMStatePtr& state)" (() "(" (parameter_declaration) "const LMStatePtr& state" (type_qualifier) "const" (const) "const" (type_identifier) "LMStatePtr" (ERROR) "&" (&) "&" (identifier) "state" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace w2l"
276
20
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.98, "nodes": 145, "errors": 0, "source_hash": "d5bcdb8a1637bfe539ca1a434a47f9e5579f0a2be8c64093c847d6d160a94c46", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"common/Dictionary.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": "\"common/Dictionary.h\"", "parent": 3, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"decoder/LM.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": "\"decoder/LM.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 23}}, {"id": 9, "type": "function_definition", "text": "namespace lm {\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {\nclass State;\n} // namespace ngram\n}", "parent": null, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 11, "type": "identifier", "text": "lm", "parent": 9, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 12}}, {"id": 12, "type": "function_definition", "text": "namespace base {\nclass Model;\nclass Vocabulary;\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 14, "type": "identifier", "text": "base", "parent": 12, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 15, "type": "declaration", "text": "class Model;", "parent": 12, "children": [16], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 12}}, {"id": 16, "type": "identifier", "text": "Model", "parent": 15, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 11}}, {"id": 17, "type": "declaration", "text": "class Vocabulary;", "parent": 12, "children": [18], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 17}}, {"id": 18, "type": "identifier", "text": "Vocabulary", "parent": 17, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 16}}, {"id": 19, "type": "function_definition", "text": "namespace ngram {\nclass State;\n}", "parent": 9, "children": [20, 21], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 20, "type": "type_identifier", "text": "namespace", "parent": 19, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 9}}, {"id": 21, "type": "identifier", "text": "ngram", "parent": 19, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 15}}, {"id": 22, "type": "declaration", "text": "class State;", "parent": 19, "children": [23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 12}}, {"id": 23, "type": "identifier", "text": "State", "parent": 22, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 11}}, {"id": 24, "type": "function_definition", "text": "namespace w2l {\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */\nusing KenLMState = lm::ngram::State;\n\n/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */\nclass KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n};\n\n}", "parent": null, "children": [25, 26], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 26, "type": "identifier", "text": "w2l", "parent": 24, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 27, "type": "declaration", "text": "using KenLMState = lm::ngram::State;", "parent": 24, "children": [28, 29], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 36}}, {"id": 28, "type": "type_identifier", "text": "using", "parent": 27, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 5}}, {"id": 29, "type": "init_declarator", "text": "KenLMState = lm::ngram::State", "parent": 27, "children": [30, 31, 32, 35], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 35}}, {"id": 30, "type": "identifier", "text": "KenLMState", "parent": 29, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 16}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 32, "type": "ERROR", "text": "lm::ngram::", "parent": 29, "children": [33, 34], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 30}}, {"id": 33, "type": "identifier", "text": "lm", "parent": 32, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 21}}, {"id": 34, "type": "identifier", "text": "ngram", "parent": 32, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 28}}, {"id": 35, "type": "identifier", "text": "State", "parent": 29, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 35}}, {"id": 36, "type": "function_definition", "text": "class KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n}", "parent": 24, "children": [37, 39], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 37, "type": "ERROR", "text": "KenLM : public", "parent": 36, "children": [38], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 20}}, {"id": 38, "type": "identifier", "text": "KenLM", "parent": 37, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 11}}, {"id": 39, "type": "identifier", "text": "LM", "parent": 36, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 23}}, {"id": 40, "type": "labeled_statement", "text": "public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);", "parent": 36, "children": [41], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 37, "column": 63}}, {"id": 41, "type": "labeled_statement", "text": "KenLM(const std::string& path, const Dictionary& usrTknDict);", "parent": 40, "children": [42, 43], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 63}}, {"id": 42, "type": "statement_identifier", "text": "KenLM", "parent": 41, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 7}}, {"id": 43, "type": "ERROR", "text": "(const std:", "parent": 41, "children": [44], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 18}}, {"id": 44, "type": "type_descriptor", "text": "const std", "parent": 43, "children": [45], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 17}}, {"id": 45, "type": "type_identifier", "text": "std", "parent": 44, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 17}}, {"id": 46, "type": "comma_expression", "text": "string& path, const Dictionary& usrTknDict", "parent": 41, "children": [47, 50], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 61}}, {"id": 47, "type": "binary_expression", "text": "string& path", "parent": 46, "children": [48, 49], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 31}}, {"id": 48, "type": "identifier", "text": "string", "parent": 47, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 25}}, {"id": 49, "type": "identifier", "text": "path", "parent": 47, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 31}}, {"id": 50, "type": "binary_expression", "text": "Dictionary& usrTknDict", "parent": 46, "children": [51, 52], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 61}}, {"id": 51, "type": "identifier", "text": "Dictionary", "parent": 50, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 49}}, {"id": 52, "type": "identifier", "text": "usrTknDict", "parent": 50, "children": [], "start_point": {"row": 37, "column": 51}, "end_point": {"row": 37, "column": 61}}, {"id": 53, "type": "ERROR", "text": "LMStatePtr start(bool startWithNothing) override", "parent": 36, "children": [54, 55], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 50}}, {"id": 54, "type": "type_identifier", "text": "LMStatePtr", "parent": 53, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 12}}, {"id": 55, "type": "function_declarator", "text": "start(bool startWithNothing) override", "parent": 53, "children": [56, 57, 61], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 50}}, {"id": 56, "type": "identifier", "text": "start", "parent": 55, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 18}}, {"id": 57, "type": "parameter_list", "text": "(bool startWithNothing)", "parent": 55, "children": [58], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 41}}, {"id": 58, "type": "parameter_declaration", "text": "bool startWithNothing", "parent": 57, "children": [59, 60], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 40}}, {"id": 59, "type": "primitive_type", "text": "bool", "parent": 58, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 23}}, {"id": 60, "type": "identifier", "text": "startWithNothing", "parent": 58, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 40}}, {"id": 61, "type": "identifier", "text": "override", "parent": 55, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 50}}, {"id": 62, "type": "labeled_statement", "text": "std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;", "parent": 36, "children": [63], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 43, "column": 38}}, {"id": 63, "type": "statement_identifier", "text": "std", "parent": 62, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 5}}, {"id": 64, "type": "comma_expression", "text": "pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx)", "parent": 62, "children": [65, 69], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 43, "column": 28}}, {"id": 65, "type": "binary_expression", "text": "pair<LMStatePtr", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 22}}, {"id": 66, "type": "identifier", "text": "pair", "parent": 65, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 11}}, {"id": 67, "type": "<", "text": "<", "parent": 65, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 68, "type": "identifier", "text": "LMStatePtr", "parent": 65, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 22}}, {"id": 69, "type": "binary_expression", "text": "float> score(\n const LMStatePtr& state,\n const int usrTokenIdx)", "parent": 64, "children": [70, 71, 72], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 43, "column": 28}}, {"id": 70, "type": "identifier", "text": "float", "parent": 69, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 29}}, {"id": 71, "type": ">", "text": ">", "parent": 69, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 30}}, {"id": 72, "type": "call_expression", "text": "score(\n const LMStatePtr& state,\n const int usrTokenIdx)", "parent": 69, "children": [73, 74], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 43, "column": 28}}, {"id": 73, "type": "identifier", "text": "score", "parent": 72, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 36}}, {"id": 74, "type": "argument_list", "text": "(\n const LMStatePtr& state,\n const int usrTokenIdx)", "parent": 72, "children": [75, 78, 80], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 43, "column": 28}}, {"id": 75, "type": "binary_expression", "text": "LMStatePtr& state", "parent": 74, "children": [76, 77], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 29}}, {"id": 76, "type": "identifier", "text": "LMStatePtr", "parent": 75, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 22}}, {"id": 77, "type": "identifier", "text": "state", "parent": 75, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 29}}, {"id": 78, "type": "ERROR", "text": "const int", "parent": 74, "children": [79], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 15}}, {"id": 79, "type": "identifier", "text": "int", "parent": 78, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 15}}, {"id": 80, "type": "identifier", "text": "usrTokenIdx", "parent": 74, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 27}}, {"id": 81, "type": "ERROR", "text": "override", "parent": 62, "children": [82], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 37}}, {"id": 82, "type": "identifier", "text": "override", "parent": 81, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 37}}, {"id": 83, "type": "labeled_statement", "text": "std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;", "parent": 36, "children": [84], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 72}}, {"id": 84, "type": "statement_identifier", "text": "std", "parent": 83, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 5}}, {"id": 85, "type": "comma_expression", "text": "pair<LMStatePtr, float> finish(const LMStatePtr& state)", "parent": 83, "children": [86, 90], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 62}}, {"id": 86, "type": "binary_expression", "text": "pair<LMStatePtr", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 22}}, {"id": 87, "type": "identifier", "text": "pair", "parent": 86, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 11}}, {"id": 88, "type": "<", "text": "<", "parent": 86, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 89, "type": "identifier", "text": "LMStatePtr", "parent": 86, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 22}}, {"id": 90, "type": "binary_expression", "text": "float> finish(const LMStatePtr& state)", "parent": 85, "children": [91, 92, 93], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 62}}, {"id": 91, "type": "identifier", "text": "float", "parent": 90, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 29}}, {"id": 92, "type": ">", "text": ">", "parent": 90, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 30}}, {"id": 93, "type": "call_expression", "text": "finish(const LMStatePtr& state)", "parent": 90, "children": [94, 95], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 62}}, {"id": 94, "type": "identifier", "text": "finish", "parent": 93, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 37}}, {"id": 95, "type": "argument_list", "text": "(const LMStatePtr& state)", "parent": 93, "children": [96], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 62}}, {"id": 96, "type": "binary_expression", "text": "LMStatePtr& state", "parent": 95, "children": [97, 98], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 61}}, {"id": 97, "type": "identifier", "text": "LMStatePtr", "parent": 96, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 54}}, {"id": 98, "type": "identifier", "text": "state", "parent": 96, "children": [], "start_point": {"row": 45, "column": 56}, "end_point": {"row": 45, "column": 61}}, {"id": 99, "type": "ERROR", "text": "override", "parent": 83, "children": [100], "start_point": {"row": 45, "column": 63}, "end_point": {"row": 45, "column": 71}}, {"id": 100, "type": "identifier", "text": "override", "parent": 99, "children": [], "start_point": {"row": 45, "column": 63}, "end_point": {"row": 45, "column": 71}}, {"id": 101, "type": "ERROR", "text": "int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override", "parent": 36, "children": [102, 103], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 48, "column": 20}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 5}}, {"id": 103, "type": "function_declarator", "text": "compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override", "parent": 101, "children": [104, 105, 112], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 48, "column": 20}}, {"id": 104, "type": "identifier", "text": "compareState", "parent": 103, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 18}}, {"id": 105, "type": "parameter_list", "text": "(const LMStatePtr& state1, const LMStatePtr& state2)", "parent": 103, "children": [106, 109], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 70}}, {"id": 106, "type": "parameter_declaration", "text": "const LMStatePtr& state1", "parent": 105, "children": [107, 108], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 43}}, {"id": 107, "type": "type_identifier", "text": "LMStatePtr", "parent": 106, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 35}}, {"id": 108, "type": "identifier", "text": "state1", "parent": 106, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 43}}, {"id": 109, "type": "parameter_declaration", "text": "const LMStatePtr& state2", "parent": 105, "children": [110, 111], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 69}}, {"id": 110, "type": "type_identifier", "text": "LMStatePtr", "parent": 109, "children": [], "start_point": {"row": 47, "column": 51}, "end_point": {"row": 47, "column": 61}}, {"id": 111, "type": "identifier", "text": "state2", "parent": 109, "children": [], "start_point": {"row": 47, "column": 63}, "end_point": {"row": 47, "column": 69}}, {"id": 112, "type": "identifier", "text": "override", "parent": 103, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 20}}, {"id": 113, "type": "labeled_statement", "text": "private:\n std::shared_ptr<lm::base::Model> model_;", "parent": 36, "children": [114], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 51, "column": 42}}, {"id": 114, "type": "labeled_statement", "text": "std::shared_ptr<lm::base::Model> model_;", "parent": 113, "children": [115, 116, 121], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 42}}, {"id": 115, "type": "statement_identifier", "text": "std", "parent": 114, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 5}}, {"id": 116, "type": "ERROR", "text": "::shared_ptr<lm:", "parent": 114, "children": [117], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 21}}, {"id": 117, "type": "binary_expression", "text": "shared_ptr<lm", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 20}}, {"id": 118, "type": "identifier", "text": "shared_ptr", "parent": 117, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 17}}, {"id": 119, "type": "<", "text": "<", "parent": 117, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 120, "type": "identifier", "text": "lm", "parent": 117, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 20}}, {"id": 121, "type": "labeled_statement", "text": "base::Model> model_;", "parent": 114, "children": [122], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 42}}, {"id": 122, "type": "statement_identifier", "text": "base", "parent": 121, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 26}}, {"id": 123, "type": "binary_expression", "text": "Model> model_", "parent": 121, "children": [124, 125, 126], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 41}}, {"id": 124, "type": "identifier", "text": "Model", "parent": 123, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 33}}, {"id": 125, "type": ">", "text": ">", "parent": 123, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 34}}, {"id": 126, "type": "identifier", "text": "model_", "parent": 123, "children": [], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 51, "column": 41}}, {"id": 127, "type": "declaration", "text": "const lm::base::Vocabulary* vocab_;", "parent": 36, "children": [128, 129, 132], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 37}}, {"id": 128, "type": "type_identifier", "text": "lm", "parent": 127, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 10}}, {"id": 129, "type": "ERROR", "text": "::base::Vocabulary", "parent": 127, "children": [130, 131], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 28}}, {"id": 130, "type": "identifier", "text": "base", "parent": 129, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 131, "type": "identifier", "text": "Vocabulary", "parent": 129, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 28}}, {"id": 132, "type": "pointer_declarator", "text": "* vocab_", "parent": 127, "children": [133, 134], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 36}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 29}}, {"id": 134, "type": "identifier", "text": "vocab_", "parent": 132, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 36}}, {"id": 135, "type": "declaration", "text": "static KenLMState* getRawState(const LMStatePtr& state);", "parent": 36, "children": [136, 137], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 58}}, {"id": 136, "type": "type_identifier", "text": "KenLMState", "parent": 135, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 19}}, {"id": 137, "type": "pointer_declarator", "text": "* getRawState(const LMStatePtr& state)", "parent": 135, "children": [138, 139], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 57}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 139, "type": "function_declarator", "text": "getRawState(const LMStatePtr& state)", "parent": 137, "children": [140, 141], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 57}}, {"id": 140, "type": "identifier", "text": "getRawState", "parent": 139, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 32}}, {"id": 141, "type": "parameter_list", "text": "(const LMStatePtr& state)", "parent": 139, "children": [142], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 57}}, {"id": 142, "type": "parameter_declaration", "text": "const LMStatePtr& state", "parent": 141, "children": [143, 144], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 56}}, {"id": 143, "type": "type_identifier", "text": "LMStatePtr", "parent": 142, "children": [], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 49}}, {"id": 144, "type": "identifier", "text": "state", "parent": 142, "children": [], "start_point": {"row": 54, "column": 51}, "end_point": {"row": 54, "column": 56}}]}, "node_categories": {"declarations": {"functions": [9, 12, 19, 24, 36, 55, 103, 139], "variables": [15, 17, 22, 27, 58, 106, 109, 127, 135, 142], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [46, 47, 50, 64, 65, 69, 72, 75, 85, 86, 90, 93, 96, 117, 123], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 14, 16, 18, 20, 21, 23, 25, 26, 28, 30, 33, 34, 35, 38, 39, 42, 45, 48, 49, 51, 52, 54, 56, 60, 61, 63, 66, 68, 70, 73, 76, 77, 79, 80, 82, 84, 87, 89, 91, 94, 97, 98, 100, 104, 107, 108, 110, 111, 112, 115, 118, 120, 122, 124, 126, 128, 130, 131, 134, 136, 140, 143, 144], "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": "Model;", "text_snippet": "namespace lm {\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {"}, {"node_id": 12, "universal_type": "function", "name": "Model;", "text_snippet": "namespace base {\nclass Model;\nclass Vocabulary;\n}"}, {"node_id": 19, "universal_type": "function", "name": "State;", "text_snippet": "namespace ngram {\nclass State;\n}"}, {"node_id": 24, "universal_type": "function", "name": "KenLM", "text_snippet": "namespace w2l {\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * i"}, {"node_id": 36, "universal_type": "function", "name": "KenLM", "text_snippet": "class KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "start(bool startWithNothing) override"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "getRawState(const LMStatePtr& state)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"common/Dictionary.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"decoder/LM.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include \"common/Dictionary.h\"\n#include \"decoder/LM.h\"\n\n// KenLM forward declarations\nnamespace lm {\nnamespace base {\nclass Model;\nclass Vocabulary;\n} // namespace base\nnamespace ngram {\nclass State;\n} // namespace ngram\n} // namespace lm\n\nnamespace w2l {\n/**\n * KenLMState is a state object from KenLM, which contains context length,\n * indicies and compare functions\n * https://github.com/kpu/kenlm/blob/master/lm/state.hh.\n */\nusing KenLMState = lm::ngram::State;\n\n/**\n * KenLM extends LM by using the toolkit https://kheafield.com/code/kenlm/.\n */\nclass KenLM : public LM {\n public:\n KenLM(const std::string& path, const Dictionary& usrTknDict);\n\n LMStatePtr start(bool startWithNothing) override;\n\n std::pair<LMStatePtr, float> score(\n const LMStatePtr& state,\n const int usrTokenIdx) override;\n\n std::pair<LMStatePtr, float> finish(const LMStatePtr& state) override;\n\n int compareState(const LMStatePtr& state1, const LMStatePtr& state2)\n const override;\n\n private:\n std::shared_ptr<lm::base::Model> model_;\n const lm::base::Vocabulary* vocab_;\n\n static KenLMState* getRawState(const LMStatePtr& state);\n};\n\n} // namespace w2l\n"}
102
c
/* * Copyright (C) 2010 DiamondCore <http://easy-emu.de/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef DIAMOND_GRIDMAP_H #define DIAMOND_GRIDMAP_H #include "Platform/Define.h" #include "DBCStructure.h" #include "GridDefines.h" #include "Object.h" #include "SharedDefines.h" #include <bitset> #include <list> class Creature; class Unit; class WorldPacket; class InstanceData; class Group; class InstanceSave; struct ScriptInfo; struct ScriptAction; class BattleGround; struct GridMapFileHeader { uint32 mapMagic; uint32 versionMagic; uint32 buildMagic; uint32 areaMapOffset; uint32 areaMapSize; uint32 heightMapOffset; uint32 heightMapSize; uint32 liquidMapOffset; uint32 liquidMapSize; }; #define MAP_AREA_NO_AREA 0x0001 struct GridMapAreaHeader { uint32 fourcc; uint16 flags; uint16 gridArea; }; #define MAP_HEIGHT_NO_HEIGHT 0x0001 #define MAP_HEIGHT_AS_INT16 0x0002 #define MAP_HEIGHT_AS_INT8 0x0004 struct GridMapHeightHeader { uint32 fourcc; uint32 flags; float gridHeight; float gridMaxHeight; }; #define MAP_LIQUID_NO_TYPE 0x0001 #define MAP_LIQUID_NO_HEIGHT 0x0002 struct GridMapLiquidHeader { uint32 fourcc; uint16 flags; uint16 liquidType; uint8 offsetX; uint8 offsetY; uint8 width; uint8 height; float liquidLevel; }; enum GridMapLiquidStatus { LIQUID_MAP_NO_WATER = 0x00000000, LIQUID_MAP_ABOVE_WATER = 0x00000001, LIQUID_MAP_WATER_WALK = 0x00000002, LIQUID_MAP_IN_WATER = 0x00000004, LIQUID_MAP_UNDER_WATER = 0x00000008 }; #define MAP_LIQUID_TYPE_NO_WATER 0x00 #define MAP_LIQUID_TYPE_WATER 0x01 #define MAP_LIQUID_TYPE_OCEAN 0x02 #define MAP_LIQUID_TYPE_MAGMA 0x04 #define MAP_LIQUID_TYPE_SLIME 0x08 #define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME) #define MAP_LIQUID_TYPE_DARK_WATER 0x10 #define MAP_LIQUID_TYPE_WMO_WATER 0x20 struct GridMapLiquidData { uint32 type; float level; float depth_level; }; class GridMap { private: uint32 m_flags; // Area data uint16 m_gridArea; uint16 *m_area_map; // Height level data float m_gridHeight; float m_gridIntHeightMultiplier; union { float *m_V9; uint16 *m_uint16_V9; uint8 *m_uint8_V9; }; union { float *m_V8; uint16 *m_uint16_V8; uint8 *m_uint8_V8; }; // Liquid data uint16 m_liquidType; uint8 m_liquid_offX; uint8 m_liquid_offY; uint8 m_liquid_width; uint8 m_liquid_height; float m_liquidLevel; uint8 *m_liquid_type; float *m_liquid_map; bool loadAreaData(FILE *in, uint32 offset, uint32 size); bool loadHeightData(FILE *in, uint32 offset, uint32 size); bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size); // Get height functions and pointers typedef float (GridMap::*pGetHeightPtr) (float x, float y) const; pGetHeightPtr m_gridGetHeight; float getHeightFromFloat(float x, float y) const; float getHeightFromUint16(float x, float y) const; float getHeightFromUint8(float x, float y) const; float getHeightFromFlat(float x, float y) const; public: GridMap(); ~GridMap(); bool loadData(char *filaname); void unloadData(); static bool ExistMap(uint32 mapid, int gx, int gy); static bool ExistVMap(uint32 mapid, int gx, int gy); uint16 getArea(float x, float y); float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); } float getLiquidLevel(float x, float y); uint8 getTerrainType(float x, float y); GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0); }; #endif
29.4
154
(translation_unit) "/*\n * Copyright (C) 2010 DiamondCore <http://easy-emu.de/>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */\n\n#ifndef DIAMOND_GRIDMAP_H\n#define DIAMOND_GRIDMAP_H\n\n#include "Platform/Define.h"\n#include "DBCStructure.h"\n#include "GridDefines.h"\n#include "Object.h"\n#include "SharedDefines.h"\n\n#include <bitset>\n#include <list>\n\nclass Creature;\nclass Unit;\nclass WorldPacket;\nclass InstanceData;\nclass Group;\nclass InstanceSave;\nstruct ScriptInfo;\nstruct ScriptAction;\nclass BattleGround;\n\nstruct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n};\n\n#define MAP_AREA_NO_AREA 0x0001\n\nstruct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n};\n\n#define MAP_HEIGHT_NO_HEIGHT 0x0001\n#define MAP_HEIGHT_AS_INT16 0x0002\n#define MAP_HEIGHT_AS_INT8 0x0004\n\nstruct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n};\n\n#define MAP_LIQUID_NO_TYPE 0x0001\n#define MAP_LIQUID_NO_HEIGHT 0x0002\n\nstruct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n};\n\nenum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n};\n\n#define MAP_LIQUID_TYPE_NO_WATER 0x00\n#define MAP_LIQUID_TYPE_WATER 0x01\n#define MAP_LIQUID_TYPE_OCEAN 0x02\n#define MAP_LIQUID_TYPE_MAGMA 0x04\n#define MAP_LIQUID_TYPE_SLIME 0x08\n\n#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n\n#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n\nstruct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n};\n\nclass GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n};\n\n#endif\n" (comment) "/*\n * Copyright (C) 2010 DiamondCore <http://easy-emu.de/>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */" (preproc_ifdef) "#ifndef DIAMOND_GRIDMAP_H\n#define DIAMOND_GRIDMAP_H\n\n#include "Platform/Define.h"\n#include "DBCStructure.h"\n#include "GridDefines.h"\n#include "Object.h"\n#include "SharedDefines.h"\n\n#include <bitset>\n#include <list>\n\nclass Creature;\nclass Unit;\nclass WorldPacket;\nclass InstanceData;\nclass Group;\nclass InstanceSave;\nstruct ScriptInfo;\nstruct ScriptAction;\nclass BattleGround;\n\nstruct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n};\n\n#define MAP_AREA_NO_AREA 0x0001\n\nstruct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n};\n\n#define MAP_HEIGHT_NO_HEIGHT 0x0001\n#define MAP_HEIGHT_AS_INT16 0x0002\n#define MAP_HEIGHT_AS_INT8 0x0004\n\nstruct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n};\n\n#define MAP_LIQUID_NO_TYPE 0x0001\n#define MAP_LIQUID_NO_HEIGHT 0x0002\n\nstruct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n};\n\nenum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n};\n\n#define MAP_LIQUID_TYPE_NO_WATER 0x00\n#define MAP_LIQUID_TYPE_WATER 0x01\n#define MAP_LIQUID_TYPE_OCEAN 0x02\n#define MAP_LIQUID_TYPE_MAGMA 0x04\n#define MAP_LIQUID_TYPE_SLIME 0x08\n\n#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n\n#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n\nstruct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n};\n\nclass GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "DIAMOND_GRIDMAP_H" (preproc_def) "#define DIAMOND_GRIDMAP_H\n" (#define) "#define" (identifier) "DIAMOND_GRIDMAP_H" (preproc_include) "#include "Platform/Define.h"\n" (#include) "#include" (string_literal) ""Platform/Define.h"" (") """ (string_content) "Platform/Define.h" (") """ (preproc_include) "#include "DBCStructure.h"\n" (#include) "#include" (string_literal) ""DBCStructure.h"" (") """ (string_content) "DBCStructure.h" (") """ (preproc_include) "#include "GridDefines.h"\n" (#include) "#include" (string_literal) ""GridDefines.h"" (") """ (string_content) "GridDefines.h" (") """ (preproc_include) "#include "Object.h"\n" (#include) "#include" (string_literal) ""Object.h"" (") """ (string_content) "Object.h" (") """ (preproc_include) "#include "SharedDefines.h"\n" (#include) "#include" (string_literal) ""SharedDefines.h"" (") """ (string_content) "SharedDefines.h" (") """ (preproc_include) "#include <bitset>\n" (#include) "#include" (system_lib_string) "<bitset>" (preproc_include) "#include <list>\n" (#include) "#include" (system_lib_string) "<list>" (declaration) "class Creature;" (type_identifier) "class" (identifier) "Creature" (;) ";" (declaration) "class Unit;" (type_identifier) "class" (identifier) "Unit" (;) ";" (declaration) "class WorldPacket;" (type_identifier) "class" (identifier) "WorldPacket" (;) ";" (declaration) "class InstanceData;" (type_identifier) "class" (identifier) "InstanceData" (;) ";" (declaration) "class Group;" (type_identifier) "class" (identifier) "Group" (;) ";" (declaration) "class InstanceSave;" (type_identifier) "class" (identifier) "InstanceSave" (;) ";" (struct_specifier) "struct ScriptInfo" (struct) "struct" (type_identifier) "ScriptInfo" (;) ";" (struct_specifier) "struct ScriptAction" (struct) "struct" (type_identifier) "ScriptAction" (;) ";" (declaration) "class BattleGround;" (type_identifier) "class" (identifier) "BattleGround" (;) ";" (struct_specifier) "struct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n}" (struct) "struct" (type_identifier) "GridMapFileHeader" (field_declaration_list) "{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n}" ({) "{" (field_declaration) "uint32 mapMagic;" (type_identifier) "uint32" (field_identifier) "mapMagic" (;) ";" (field_declaration) "uint32 versionMagic;" (type_identifier) "uint32" (field_identifier) "versionMagic" (;) ";" (field_declaration) "uint32 buildMagic;" (type_identifier) "uint32" (field_identifier) "buildMagic" (;) ";" (field_declaration) "uint32 areaMapOffset;" (type_identifier) "uint32" (field_identifier) "areaMapOffset" (;) ";" (field_declaration) "uint32 areaMapSize;" (type_identifier) "uint32" (field_identifier) "areaMapSize" (;) ";" (field_declaration) "uint32 heightMapOffset;" (type_identifier) "uint32" (field_identifier) "heightMapOffset" (;) ";" (field_declaration) "uint32 heightMapSize;" (type_identifier) "uint32" (field_identifier) "heightMapSize" (;) ";" (field_declaration) "uint32 liquidMapOffset;" (type_identifier) "uint32" (field_identifier) "liquidMapOffset" (;) ";" (field_declaration) "uint32 liquidMapSize;" (type_identifier) "uint32" (field_identifier) "liquidMapSize" (;) ";" (}) "}" (;) ";" (preproc_def) "#define MAP_AREA_NO_AREA 0x0001\n" (#define) "#define" (identifier) "MAP_AREA_NO_AREA" (preproc_arg) "0x0001" (struct_specifier) "struct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n}" (struct) "struct" (type_identifier) "GridMapAreaHeader" (field_declaration_list) "{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n}" ({) "{" (field_declaration) "uint32 fourcc;" (type_identifier) "uint32" (field_identifier) "fourcc" (;) ";" (field_declaration) "uint16 flags;" (type_identifier) "uint16" (field_identifier) "flags" (;) ";" (field_declaration) "uint16 gridArea;" (type_identifier) "uint16" (field_identifier) "gridArea" (;) ";" (}) "}" (;) ";" (preproc_def) "#define MAP_HEIGHT_NO_HEIGHT 0x0001\n" (#define) "#define" (identifier) "MAP_HEIGHT_NO_HEIGHT" (preproc_arg) "0x0001" (preproc_def) "#define MAP_HEIGHT_AS_INT16 0x0002\n" (#define) "#define" (identifier) "MAP_HEIGHT_AS_INT16" (preproc_arg) "0x0002" (preproc_def) "#define MAP_HEIGHT_AS_INT8 0x0004\n" (#define) "#define" (identifier) "MAP_HEIGHT_AS_INT8" (preproc_arg) "0x0004" (struct_specifier) "struct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n}" (struct) "struct" (type_identifier) "GridMapHeightHeader" (field_declaration_list) "{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n}" ({) "{" (field_declaration) "uint32 fourcc;" (type_identifier) "uint32" (field_identifier) "fourcc" (;) ";" (field_declaration) "uint32 flags;" (type_identifier) "uint32" (field_identifier) "flags" (;) ";" (field_declaration) "float gridHeight;" (primitive_type) "float" (field_identifier) "gridHeight" (;) ";" (field_declaration) "float gridMaxHeight;" (primitive_type) "float" (field_identifier) "gridMaxHeight" (;) ";" (}) "}" (;) ";" (preproc_def) "#define MAP_LIQUID_NO_TYPE 0x0001\n" (#define) "#define" (identifier) "MAP_LIQUID_NO_TYPE" (preproc_arg) "0x0001" (preproc_def) "#define MAP_LIQUID_NO_HEIGHT 0x0002\n" (#define) "#define" (identifier) "MAP_LIQUID_NO_HEIGHT" (preproc_arg) "0x0002" (struct_specifier) "struct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n}" (struct) "struct" (type_identifier) "GridMapLiquidHeader" (field_declaration_list) "{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n}" ({) "{" (field_declaration) "uint32 fourcc;" (type_identifier) "uint32" (field_identifier) "fourcc" (;) ";" (field_declaration) "uint16 flags;" (type_identifier) "uint16" (field_identifier) "flags" (;) ";" (field_declaration) "uint16 liquidType;" (type_identifier) "uint16" (field_identifier) "liquidType" (;) ";" (field_declaration) "uint8 offsetX;" (type_identifier) "uint8" (field_identifier) "offsetX" (;) ";" (field_declaration) "uint8 offsetY;" (type_identifier) "uint8" (field_identifier) "offsetY" (;) ";" (field_declaration) "uint8 width;" (type_identifier) "uint8" (field_identifier) "width" (;) ";" (field_declaration) "uint8 height;" (type_identifier) "uint8" (field_identifier) "height" (;) ";" (field_declaration) "float liquidLevel;" (primitive_type) "float" (field_identifier) "liquidLevel" (;) ";" (}) "}" (;) ";" (enum_specifier) "enum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n}" (enum) "enum" (type_identifier) "GridMapLiquidStatus" (enumerator_list) "{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n}" ({) "{" (enumerator) "LIQUID_MAP_NO_WATER = 0x00000000" (identifier) "LIQUID_MAP_NO_WATER" (=) "=" (number_literal) "0x00000000" (,) "," (enumerator) "LIQUID_MAP_ABOVE_WATER = 0x00000001" (identifier) "LIQUID_MAP_ABOVE_WATER" (=) "=" (number_literal) "0x00000001" (,) "," (enumerator) "LIQUID_MAP_WATER_WALK = 0x00000002" (identifier) "LIQUID_MAP_WATER_WALK" (=) "=" (number_literal) "0x00000002" (,) "," (enumerator) "LIQUID_MAP_IN_WATER = 0x00000004" (identifier) "LIQUID_MAP_IN_WATER" (=) "=" (number_literal) "0x00000004" (,) "," (enumerator) "LIQUID_MAP_UNDER_WATER = 0x00000008" (identifier) "LIQUID_MAP_UNDER_WATER" (=) "=" (number_literal) "0x00000008" (}) "}" (;) ";" (preproc_def) "#define MAP_LIQUID_TYPE_NO_WATER 0x00\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_NO_WATER" (preproc_arg) "0x00" (preproc_def) "#define MAP_LIQUID_TYPE_WATER 0x01\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_WATER" (preproc_arg) "0x01" (preproc_def) "#define MAP_LIQUID_TYPE_OCEAN 0x02\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_OCEAN" (preproc_arg) "0x02" (preproc_def) "#define MAP_LIQUID_TYPE_MAGMA 0x04\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_MAGMA" (preproc_arg) "0x04" (preproc_def) "#define MAP_LIQUID_TYPE_SLIME 0x08\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_SLIME" (preproc_arg) "0x08" (preproc_def) "#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n" (#define) "#define" (identifier) "MAP_ALL_LIQUIDS" (preproc_arg) "(MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)" (preproc_def) "#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_DARK_WATER" (preproc_arg) "0x10" (preproc_def) "#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n" (#define) "#define" (identifier) "MAP_LIQUID_TYPE_WMO_WATER" (preproc_arg) "0x20" (struct_specifier) "struct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n}" (struct) "struct" (type_identifier) "GridMapLiquidData" (field_declaration_list) "{\n uint32 type;\n float level;\n float depth_level;\n}" ({) "{" (field_declaration) "uint32 type;" (type_identifier) "uint32" (field_identifier) "type" (;) ";" (field_declaration) "float level;" (primitive_type) "float" (field_identifier) "level" (;) ";" (field_declaration) "float depth_level;" (primitive_type) "float" (field_identifier) "depth_level" (;) ";" (}) "}" (;) ";" (function_definition) "class GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n}" (type_identifier) "class" (identifier) "GridMap" (compound_statement) "{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n}" ({) "{" (labeled_statement) "private:\n\n uint32 m_flags;" (statement_identifier) "private" (:) ":" (declaration) "uint32 m_flags;" (type_identifier) "uint32" (identifier) "m_flags" (;) ";" (comment) "// Area data" (declaration) "uint16 m_gridArea;" (type_identifier) "uint16" (identifier) "m_gridArea" (;) ";" (declaration) "uint16 *m_area_map;" (type_identifier) "uint16" (pointer_declarator) "*m_area_map" (*) "*" (identifier) "m_area_map" (;) ";" (comment) "// Height level data" (declaration) "float m_gridHeight;" (primitive_type) "float" (identifier) "m_gridHeight" (;) ";" (declaration) "float m_gridIntHeightMultiplier;" (primitive_type) "float" (identifier) "m_gridIntHeightMultiplier" (;) ";" (union_specifier) "union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n }" (union) "union" (field_declaration_list) "{\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n }" ({) "{" (field_declaration) "float *m_V9;" (primitive_type) "float" (pointer_declarator) "*m_V9" (*) "*" (field_identifier) "m_V9" (;) ";" (field_declaration) "uint16 *m_uint16_V9;" (type_identifier) "uint16" (pointer_declarator) "*m_uint16_V9" (*) "*" (field_identifier) "m_uint16_V9" (;) ";" (field_declaration) "uint8 *m_uint8_V9;" (type_identifier) "uint8" (pointer_declarator) "*m_uint8_V9" (*) "*" (field_identifier) "m_uint8_V9" (;) ";" (}) "}" (;) ";" (union_specifier) "union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n }" (union) "union" (field_declaration_list) "{\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n }" ({) "{" (field_declaration) "float *m_V8;" (primitive_type) "float" (pointer_declarator) "*m_V8" (*) "*" (field_identifier) "m_V8" (;) ";" (field_declaration) "uint16 *m_uint16_V8;" (type_identifier) "uint16" (pointer_declarator) "*m_uint16_V8" (*) "*" (field_identifier) "m_uint16_V8" (;) ";" (field_declaration) "uint8 *m_uint8_V8;" (type_identifier) "uint8" (pointer_declarator) "*m_uint8_V8" (*) "*" (field_identifier) "m_uint8_V8" (;) ";" (}) "}" (;) ";" (comment) "// Liquid data" (declaration) "uint16 m_liquidType;" (type_identifier) "uint16" (identifier) "m_liquidType" (;) ";" (declaration) "uint8 m_liquid_offX;" (type_identifier) "uint8" (identifier) "m_liquid_offX" (;) ";" (declaration) "uint8 m_liquid_offY;" (type_identifier) "uint8" (identifier) "m_liquid_offY" (;) ";" (declaration) "uint8 m_liquid_width;" (type_identifier) "uint8" (identifier) "m_liquid_width" (;) ";" (declaration) "uint8 m_liquid_height;" (type_identifier) "uint8" (identifier) "m_liquid_height" (;) ";" (declaration) "float m_liquidLevel;" (primitive_type) "float" (identifier) "m_liquidLevel" (;) ";" (declaration) "uint8 *m_liquid_type;" (type_identifier) "uint8" (pointer_declarator) "*m_liquid_type" (*) "*" (identifier) "m_liquid_type" (;) ";" (declaration) "float *m_liquid_map;" (primitive_type) "float" (pointer_declarator) "*m_liquid_map" (*) "*" (identifier) "m_liquid_map" (;) ";" (declaration) "bool loadAreaData(FILE *in, uint32 offset, uint32 size);" (primitive_type) "bool" (function_declarator) "loadAreaData(FILE *in, uint32 offset, uint32 size)" (identifier) "loadAreaData" (parameter_list) "(FILE *in, uint32 offset, uint32 size)" (() "(" (parameter_declaration) "FILE *in" (type_identifier) "FILE" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "uint32 offset" (type_identifier) "uint32" (identifier) "offset" (,) "," (parameter_declaration) "uint32 size" (type_identifier) "uint32" (identifier) "size" ()) ")" (;) ";" (declaration) "bool loadHeightData(FILE *in, uint32 offset, uint32 size);" (primitive_type) "bool" (function_declarator) "loadHeightData(FILE *in, uint32 offset, uint32 size)" (identifier) "loadHeightData" (parameter_list) "(FILE *in, uint32 offset, uint32 size)" (() "(" (parameter_declaration) "FILE *in" (type_identifier) "FILE" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "uint32 offset" (type_identifier) "uint32" (identifier) "offset" (,) "," (parameter_declaration) "uint32 size" (type_identifier) "uint32" (identifier) "size" ()) ")" (;) ";" (declaration) "bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);" (primitive_type) "bool" (function_declarator) "loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size)" (identifier) "loadGridMapLiquidData" (parameter_list) "(FILE *in, uint32 offset, uint32 size)" (() "(" (parameter_declaration) "FILE *in" (type_identifier) "FILE" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "uint32 offset" (type_identifier) "uint32" (identifier) "offset" (,) "," (parameter_declaration) "uint32 size" (type_identifier) "uint32" (identifier) "size" ()) ")" (;) ";" (comment) "// Get height functions and pointers" (type_definition) "typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;" (typedef) "typedef" (primitive_type) "float" (function_declarator) "(GridMap::*pGetHeightPtr) (float x, float y)" (parenthesized_declarator) "(GridMap::*pGetHeightPtr)" (() "(" (ERROR) "GridMap::" (type_identifier) "GridMap" (:) ":" (:) ":" (pointer_declarator) "*pGetHeightPtr" (*) "*" (type_identifier) "pGetHeightPtr" ()) ")" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (declaration) "pGetHeightPtr m_gridGetHeight;" (type_identifier) "pGetHeightPtr" (identifier) "m_gridGetHeight" (;) ";" (ERROR) "float getHeightFromFloat(float x, float y) const" (primitive_type) "float" (function_declarator) "getHeightFromFloat(float x, float y) const" (identifier) "getHeightFromFloat" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "float getHeightFromUint16(float x, float y) const" (primitive_type) "float" (function_declarator) "getHeightFromUint16(float x, float y) const" (identifier) "getHeightFromUint16" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "float getHeightFromUint8(float x, float y) const" (primitive_type) "float" (function_declarator) "getHeightFromUint8(float x, float y) const" (identifier) "getHeightFromUint8" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "float getHeightFromFlat(float x, float y) const" (primitive_type) "float" (function_declarator) "getHeightFromFlat(float x, float y) const" (identifier) "getHeightFromFlat" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "public:\n\n GridMap();" (statement_identifier) "public" (:) ":" (expression_statement) "GridMap();" (call_expression) "GridMap()" (identifier) "GridMap" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~GridMap();" (unary_expression) "~GridMap()" (~) "~" (call_expression) "GridMap()" (identifier) "GridMap" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool loadData(char *filaname);" (primitive_type) "bool" (function_declarator) "loadData(char *filaname)" (identifier) "loadData" (parameter_list) "(char *filaname)" (() "(" (parameter_declaration) "char *filaname" (primitive_type) "char" (pointer_declarator) "*filaname" (*) "*" (identifier) "filaname" ()) ")" (;) ";" (declaration) "void unloadData();" (primitive_type) "void" (function_declarator) "unloadData()" (identifier) "unloadData" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static bool ExistMap(uint32 mapid, int gx, int gy);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "ExistMap(uint32 mapid, int gx, int gy)" (identifier) "ExistMap" (parameter_list) "(uint32 mapid, int gx, int gy)" (() "(" (parameter_declaration) "uint32 mapid" (type_identifier) "uint32" (identifier) "mapid" (,) "," (parameter_declaration) "int gx" (primitive_type) "int" (identifier) "gx" (,) "," (parameter_declaration) "int gy" (primitive_type) "int" (identifier) "gy" ()) ")" (;) ";" (declaration) "static bool ExistVMap(uint32 mapid, int gx, int gy);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "ExistVMap(uint32 mapid, int gx, int gy)" (identifier) "ExistVMap" (parameter_list) "(uint32 mapid, int gx, int gy)" (() "(" (parameter_declaration) "uint32 mapid" (type_identifier) "uint32" (identifier) "mapid" (,) "," (parameter_declaration) "int gx" (primitive_type) "int" (identifier) "gx" (,) "," (parameter_declaration) "int gy" (primitive_type) "int" (identifier) "gy" ()) ")" (;) ";" (declaration) "uint16 getArea(float x, float y);" (type_identifier) "uint16" (function_declarator) "getArea(float x, float y)" (identifier) "getArea" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (;) ";" (function_definition) "float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }" (primitive_type) "float" (function_declarator) "getHeight(float x, float y)" (identifier) "getHeight" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (compound_statement) "{ return (this->*m_gridGetHeight)(x, y); }" ({) "{" (return_statement) "return (this->*m_gridGetHeight)(x, y);" (return) "return" (call_expression) "(this->*m_gridGetHeight)(x, y)" (parenthesized_expression) "(this->*m_gridGetHeight)" (() "(" (field_expression) "this->*m_gridGetHeight" (identifier) "this" (->) "->" (ERROR) "*" (*) "*" (field_identifier) "m_gridGetHeight" ()) ")" (argument_list) "(x, y)" (() "(" (identifier) "x" (,) "," (identifier) "y" ()) ")" (;) ";" (}) "}" (declaration) "float getLiquidLevel(float x, float y);" (primitive_type) "float" (function_declarator) "getLiquidLevel(float x, float y)" (identifier) "getLiquidLevel" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (;) ";" (declaration) "uint8 getTerrainType(float x, float y);" (type_identifier) "uint8" (function_declarator) "getTerrainType(float x, float y)" (identifier) "getTerrainType" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (;) ";" (declaration) "GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);" (type_identifier) "GridMapLiquidStatus" (init_declarator) "getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0" (function_declarator) "getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data" (identifier) "getLiquidStatus" (parameter_list) "(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" (,) "," (parameter_declaration) "float z" (primitive_type) "float" (identifier) "z" (,) "," (parameter_declaration) "uint8 ReqLiquidType" (type_identifier) "uint8" (identifier) "ReqLiquidType" (,) "," (parameter_declaration) "GridMapLiquidData *data" (type_identifier) "GridMapLiquidData" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
791
8
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 29.4, "nodes": 550, "errors": 0, "source_hash": "aa4d52bf0fc50435512c750a55992d86d84bd116e9f02aac0b29615390dc6f67", "categorized_nodes": 386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DIAMOND_GRIDMAP_H\n#define DIAMOND_GRIDMAP_H\n\n#include \"Platform/Define.h\"\n#include \"DBCStructure.h\"\n#include \"GridDefines.h\"\n#include \"Object.h\"\n#include \"SharedDefines.h\"\n\n#include <bitset>\n#include <list>\n\nclass Creature;\nclass Unit;\nclass WorldPacket;\nclass InstanceData;\nclass Group;\nclass InstanceSave;\nstruct ScriptInfo;\nstruct ScriptAction;\nclass BattleGround;\n\nstruct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n};\n\n#define MAP_AREA_NO_AREA 0x0001\n\nstruct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n};\n\n#define MAP_HEIGHT_NO_HEIGHT 0x0001\n#define MAP_HEIGHT_AS_INT16 0x0002\n#define MAP_HEIGHT_AS_INT8 0x0004\n\nstruct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n};\n\n#define MAP_LIQUID_NO_TYPE 0x0001\n#define MAP_LIQUID_NO_HEIGHT 0x0002\n\nstruct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n};\n\nenum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n};\n\n#define MAP_LIQUID_TYPE_NO_WATER 0x00\n#define MAP_LIQUID_TYPE_WATER 0x01\n#define MAP_LIQUID_TYPE_OCEAN 0x02\n#define MAP_LIQUID_TYPE_MAGMA 0x04\n#define MAP_LIQUID_TYPE_SLIME 0x08\n\n#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n\n#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n\nstruct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n};\n\nclass GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 29, 31, 33, 35, 37, 39, 42, 45, 47, 77, 81, 93, 97, 101, 105, 120, 124, 128, 155, 179, 183, 187, 191, 195, 199, 203, 207, 211, 223, 549], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 182, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 2, "type": "identifier", "text": "DIAMOND_GRIDMAP_H", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define DIAMOND_GRIDMAP_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 5, "type": "identifier", "text": "DIAMOND_GRIDMAP_H", "parent": 3, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"Platform/Define.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Platform/Define.h\"", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"DBCStructure.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"DBCStructure.h\"", "parent": 9, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include \"GridDefines.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": "string_literal", "text": "\"GridDefines.h\"", "parent": 12, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 24}}, {"id": 15, "type": "preproc_include", "text": "#include \"Object.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": "string_literal", "text": "\"Object.h\"", "parent": 15, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include \"SharedDefines.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": "string_literal", "text": "\"SharedDefines.h\"", "parent": 18, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 26}}, {"id": 21, "type": "preproc_include", "text": "#include <bitset>\n", "parent": 0, "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": "<bitset>", "parent": 21, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include <list>\n", "parent": 0, "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": "<list>", "parent": 24, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 15}}, {"id": 27, "type": "declaration", "text": "class Creature;", "parent": 0, "children": [28], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 15}}, {"id": 28, "type": "identifier", "text": "Creature", "parent": 27, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 29, "type": "declaration", "text": "class Unit;", "parent": 0, "children": [30], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 11}}, {"id": 30, "type": "identifier", "text": "Unit", "parent": 29, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 10}}, {"id": 31, "type": "declaration", "text": "class WorldPacket;", "parent": 0, "children": [32], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 18}}, {"id": 32, "type": "identifier", "text": "WorldPacket", "parent": 31, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 17}}, {"id": 33, "type": "declaration", "text": "class InstanceData;", "parent": 0, "children": [34], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 19}}, {"id": 34, "type": "identifier", "text": "InstanceData", "parent": 33, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 18}}, {"id": 35, "type": "declaration", "text": "class Group;", "parent": 0, "children": [36], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 12}}, {"id": 36, "type": "identifier", "text": "Group", "parent": 35, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 11}}, {"id": 37, "type": "declaration", "text": "class InstanceSave;", "parent": 0, "children": [38], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 19}}, {"id": 38, "type": "identifier", "text": "InstanceSave", "parent": 37, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 18}}, {"id": 39, "type": "struct_specifier", "text": "struct ScriptInfo", "parent": 0, "children": [40, 41], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 17}}, {"id": 40, "type": "struct", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 41, "type": "type_identifier", "text": "ScriptInfo", "parent": 39, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 17}}, {"id": 42, "type": "struct_specifier", "text": "struct ScriptAction", "parent": 0, "children": [43, 44], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 19}}, {"id": 43, "type": "struct", "text": "struct", "parent": 42, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 44, "type": "type_identifier", "text": "ScriptAction", "parent": 42, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 19}}, {"id": 45, "type": "declaration", "text": "class BattleGround;", "parent": 0, "children": [46], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 19}}, {"id": 46, "type": "identifier", "text": "BattleGround", "parent": 45, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 18}}, {"id": 47, "type": "struct_specifier", "text": "struct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n}", "parent": 0, "children": [48, 49], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}, {"id": 49, "type": "type_identifier", "text": "GridMapFileHeader", "parent": 47, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 24}}, {"id": 50, "type": "field_declaration", "text": "uint32 mapMagic;", "parent": 47, "children": [51, 52], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 20}}, {"id": 51, "type": "type_identifier", "text": "uint32", "parent": 50, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 52, "type": "field_identifier", "text": "mapMagic", "parent": 50, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 19}}, {"id": 53, "type": "field_declaration", "text": "uint32 versionMagic;", "parent": 47, "children": [54, 55], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 24}}, {"id": 54, "type": "type_identifier", "text": "uint32", "parent": 53, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 10}}, {"id": 55, "type": "field_identifier", "text": "versionMagic", "parent": 53, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 23}}, {"id": 56, "type": "field_declaration", "text": "uint32 buildMagic;", "parent": 47, "children": [57, 58], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 22}}, {"id": 57, "type": "type_identifier", "text": "uint32", "parent": 56, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 58, "type": "field_identifier", "text": "buildMagic", "parent": 56, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 21}}, {"id": 59, "type": "field_declaration", "text": "uint32 areaMapOffset;", "parent": 47, "children": [60, 61], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 25}}, {"id": 60, "type": "type_identifier", "text": "uint32", "parent": 59, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 10}}, {"id": 61, "type": "field_identifier", "text": "areaMapOffset", "parent": 59, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 24}}, {"id": 62, "type": "field_declaration", "text": "uint32 areaMapSize;", "parent": 47, "children": [63, 64], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 23}}, {"id": 63, "type": "type_identifier", "text": "uint32", "parent": 62, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 64, "type": "field_identifier", "text": "areaMapSize", "parent": 62, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 22}}, {"id": 65, "type": "field_declaration", "text": "uint32 heightMapOffset;", "parent": 47, "children": [66, 67], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 27}}, {"id": 66, "type": "type_identifier", "text": "uint32", "parent": 65, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 10}}, {"id": 67, "type": "field_identifier", "text": "heightMapOffset", "parent": 65, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 26}}, {"id": 68, "type": "field_declaration", "text": "uint32 heightMapSize;", "parent": 47, "children": [69, 70], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 25}}, {"id": 69, "type": "type_identifier", "text": "uint32", "parent": 68, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 70, "type": "field_identifier", "text": "heightMapSize", "parent": 68, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 24}}, {"id": 71, "type": "field_declaration", "text": "uint32 liquidMapOffset;", "parent": 47, "children": [72, 73], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 27}}, {"id": 72, "type": "type_identifier", "text": "uint32", "parent": 71, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 73, "type": "field_identifier", "text": "liquidMapOffset", "parent": 71, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 26}}, {"id": 74, "type": "field_declaration", "text": "uint32 liquidMapSize;", "parent": 47, "children": [75, 76], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 25}}, {"id": 75, "type": "type_identifier", "text": "uint32", "parent": 74, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 10}}, {"id": 76, "type": "field_identifier", "text": "liquidMapSize", "parent": 74, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 24}}, {"id": 77, "type": "preproc_def", "text": "#define MAP_AREA_NO_AREA 0x0001\n", "parent": 0, "children": [78, 79, 80], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 78, "type": "#define", "text": "#define", "parent": 77, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 79, "type": "identifier", "text": "MAP_AREA_NO_AREA", "parent": 77, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 24}}, {"id": 80, "type": "preproc_arg", "text": "0x0001", "parent": 77, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 36}}, {"id": 81, "type": "struct_specifier", "text": "struct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n}", "parent": 0, "children": [82, 83], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 82, "type": "struct", "text": "struct", "parent": 81, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 83, "type": "type_identifier", "text": "GridMapAreaHeader", "parent": 81, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 24}}, {"id": 84, "type": "field_declaration", "text": "uint32 fourcc;", "parent": 81, "children": [85, 86], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 18}}, {"id": 85, "type": "type_identifier", "text": "uint32", "parent": 84, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 86, "type": "field_identifier", "text": "fourcc", "parent": 84, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 17}}, {"id": 87, "type": "field_declaration", "text": "uint16 flags;", "parent": 81, "children": [88, 89], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 17}}, {"id": 88, "type": "type_identifier", "text": "uint16", "parent": 87, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 89, "type": "field_identifier", "text": "flags", "parent": 87, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 16}}, {"id": 90, "type": "field_declaration", "text": "uint16 gridArea;", "parent": 81, "children": [91, 92], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 20}}, {"id": 91, "type": "type_identifier", "text": "uint16", "parent": 90, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 10}}, {"id": 92, "type": "field_identifier", "text": "gridArea", "parent": 90, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 19}}, {"id": 93, "type": "preproc_def", "text": "#define MAP_HEIGHT_NO_HEIGHT 0x0001\n", "parent": 0, "children": [94, 95, 96], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 94, "type": "#define", "text": "#define", "parent": 93, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 95, "type": "identifier", "text": "MAP_HEIGHT_NO_HEIGHT", "parent": 93, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 28}}, {"id": 96, "type": "preproc_arg", "text": "0x0001", "parent": 93, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 36}}, {"id": 97, "type": "preproc_def", "text": "#define MAP_HEIGHT_AS_INT16 0x0002\n", "parent": 0, "children": [98, 99, 100], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 98, "type": "#define", "text": "#define", "parent": 97, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 99, "type": "identifier", "text": "MAP_HEIGHT_AS_INT16", "parent": 97, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 27}}, {"id": 100, "type": "preproc_arg", "text": "0x0002", "parent": 97, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 36}}, {"id": 101, "type": "preproc_def", "text": "#define MAP_HEIGHT_AS_INT8 0x0004\n", "parent": 0, "children": [102, 103, 104], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 103, "type": "identifier", "text": "MAP_HEIGHT_AS_INT8", "parent": 101, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 26}}, {"id": 104, "type": "preproc_arg", "text": "0x0004", "parent": 101, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 36}}, {"id": 105, "type": "struct_specifier", "text": "struct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n}", "parent": 0, "children": [106, 107], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 106, "type": "struct", "text": "struct", "parent": 105, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 107, "type": "type_identifier", "text": "GridMapHeightHeader", "parent": 105, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 26}}, {"id": 108, "type": "field_declaration", "text": "uint32 fourcc;", "parent": 105, "children": [109, 110], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 18}}, {"id": 109, "type": "type_identifier", "text": "uint32", "parent": 108, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 110, "type": "field_identifier", "text": "fourcc", "parent": 108, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 17}}, {"id": 111, "type": "field_declaration", "text": "uint32 flags;", "parent": 105, "children": [112, 113], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 17}}, {"id": 112, "type": "type_identifier", "text": "uint32", "parent": 111, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 10}}, {"id": 113, "type": "field_identifier", "text": "flags", "parent": 111, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 16}}, {"id": 114, "type": "field_declaration", "text": "float gridHeight;", "parent": 105, "children": [115, 116], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 21}}, {"id": 115, "type": "primitive_type", "text": "float", "parent": 114, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 9}}, {"id": 116, "type": "field_identifier", "text": "gridHeight", "parent": 114, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 20}}, {"id": 117, "type": "field_declaration", "text": "float gridMaxHeight;", "parent": 105, "children": [118, 119], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 24}}, {"id": 118, "type": "primitive_type", "text": "float", "parent": 117, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 9}}, {"id": 119, "type": "field_identifier", "text": "gridMaxHeight", "parent": 117, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 23}}, {"id": 120, "type": "preproc_def", "text": "#define MAP_LIQUID_NO_TYPE 0x0001\n", "parent": 0, "children": [121, 122, 123], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 121, "type": "#define", "text": "#define", "parent": 120, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 122, "type": "identifier", "text": "MAP_LIQUID_NO_TYPE", "parent": 120, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 26}}, {"id": 123, "type": "preproc_arg", "text": "0x0001", "parent": 120, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 36}}, {"id": 124, "type": "preproc_def", "text": "#define MAP_LIQUID_NO_HEIGHT 0x0002\n", "parent": 0, "children": [125, 126, 127], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 76, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 7}}, {"id": 126, "type": "identifier", "text": "MAP_LIQUID_NO_HEIGHT", "parent": 124, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 28}}, {"id": 127, "type": "preproc_arg", "text": "0x0002", "parent": 124, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 36}}, {"id": 128, "type": "struct_specifier", "text": "struct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n}", "parent": 0, "children": [129, 130], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 129, "type": "struct", "text": "struct", "parent": 128, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 130, "type": "type_identifier", "text": "GridMapLiquidHeader", "parent": 128, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 26}}, {"id": 131, "type": "field_declaration", "text": "uint32 fourcc;", "parent": 128, "children": [132, 133], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 18}}, {"id": 132, "type": "type_identifier", "text": "uint32", "parent": 131, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 10}}, {"id": 133, "type": "field_identifier", "text": "fourcc", "parent": 131, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 17}}, {"id": 134, "type": "field_declaration", "text": "uint16 flags;", "parent": 128, "children": [135, 136], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 17}}, {"id": 135, "type": "type_identifier", "text": "uint16", "parent": 134, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 10}}, {"id": 136, "type": "field_identifier", "text": "flags", "parent": 134, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 16}}, {"id": 137, "type": "field_declaration", "text": "uint16 liquidType;", "parent": 128, "children": [138, 139], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 22}}, {"id": 138, "type": "type_identifier", "text": "uint16", "parent": 137, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 10}}, {"id": 139, "type": "field_identifier", "text": "liquidType", "parent": 137, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 21}}, {"id": 140, "type": "field_declaration", "text": "uint8 offsetX;", "parent": 128, "children": [141, 142], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 18}}, {"id": 141, "type": "type_identifier", "text": "uint8", "parent": 140, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 9}}, {"id": 142, "type": "field_identifier", "text": "offsetX", "parent": 140, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 17}}, {"id": 143, "type": "field_declaration", "text": "uint8 offsetY;", "parent": 128, "children": [144, 145], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 18}}, {"id": 144, "type": "type_identifier", "text": "uint8", "parent": 143, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 9}}, {"id": 145, "type": "field_identifier", "text": "offsetY", "parent": 143, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 17}}, {"id": 146, "type": "field_declaration", "text": "uint8 width;", "parent": 128, "children": [147, 148], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 16}}, {"id": 147, "type": "type_identifier", "text": "uint8", "parent": 146, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 9}}, {"id": 148, "type": "field_identifier", "text": "width", "parent": 146, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 15}}, {"id": 149, "type": "field_declaration", "text": "uint8 height;", "parent": 128, "children": [150, 151], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 17}}, {"id": 150, "type": "type_identifier", "text": "uint8", "parent": 149, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 9}}, {"id": 151, "type": "field_identifier", "text": "height", "parent": 149, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 16}}, {"id": 152, "type": "field_declaration", "text": "float liquidLevel;", "parent": 128, "children": [153, 154], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 22}}, {"id": 153, "type": "primitive_type", "text": "float", "parent": 152, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 9}}, {"id": 154, "type": "field_identifier", "text": "liquidLevel", "parent": 152, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 21}}, {"id": 155, "type": "enum_specifier", "text": "enum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n}", "parent": 0, "children": [156, 157, 158], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 156, "type": "enum", "text": "enum", "parent": 155, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 4}}, {"id": 157, "type": "type_identifier", "text": "GridMapLiquidStatus", "parent": 155, "children": [], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 24}}, {"id": 158, "type": "enumerator_list", "text": "{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n}", "parent": 155, "children": [159, 163, 167, 171, 175], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 159, "type": "enumerator", "text": "LIQUID_MAP_NO_WATER = 0x00000000", "parent": 158, "children": [160, 161, 162], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 40}}, {"id": 160, "type": "identifier", "text": "LIQUID_MAP_NO_WATER", "parent": 159, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 23}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 162, "type": "number_literal", "text": "0x00000000", "parent": 159, "children": [], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 40}}, {"id": 163, "type": "enumerator", "text": "LIQUID_MAP_ABOVE_WATER = 0x00000001", "parent": 158, "children": [164, 165, 166], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 40}}, {"id": 164, "type": "identifier", "text": "LIQUID_MAP_ABOVE_WATER", "parent": 163, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 26}}, {"id": 165, "type": "=", "text": "=", "parent": 163, "children": [], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 29}}, {"id": 166, "type": "number_literal", "text": "0x00000001", "parent": 163, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 40}}, {"id": 167, "type": "enumerator", "text": "LIQUID_MAP_WATER_WALK = 0x00000002", "parent": 158, "children": [168, 169, 170], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 40}}, {"id": 168, "type": "identifier", "text": "LIQUID_MAP_WATER_WALK", "parent": 167, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 25}}, {"id": 169, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 29}}, {"id": 170, "type": "number_literal", "text": "0x00000002", "parent": 167, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 40}}, {"id": 171, "type": "enumerator", "text": "LIQUID_MAP_IN_WATER = 0x00000004", "parent": 158, "children": [172, 173, 174], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 40}}, {"id": 172, "type": "identifier", "text": "LIQUID_MAP_IN_WATER", "parent": 171, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 23}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 29}}, {"id": 174, "type": "number_literal", "text": "0x00000004", "parent": 171, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 40}}, {"id": 175, "type": "enumerator", "text": "LIQUID_MAP_UNDER_WATER = 0x00000008", "parent": 158, "children": [176, 177, 178], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 40}}, {"id": 176, "type": "identifier", "text": "LIQUID_MAP_UNDER_WATER", "parent": 175, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 26}}, {"id": 177, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 29}}, {"id": 178, "type": "number_literal", "text": "0x00000008", "parent": 175, "children": [], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 40}}, {"id": 179, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_NO_WATER 0x00\n", "parent": 0, "children": [180, 181, 182], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 180, "type": "#define", "text": "#define", "parent": 179, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 181, "type": "identifier", "text": "MAP_LIQUID_TYPE_NO_WATER", "parent": 179, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 32}}, {"id": 182, "type": "preproc_arg", "text": "0x00", "parent": 179, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 40}}, {"id": 183, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_WATER 0x01\n", "parent": 0, "children": [184, 185, 186], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 0}}, {"id": 184, "type": "#define", "text": "#define", "parent": 183, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 7}}, {"id": 185, "type": "identifier", "text": "MAP_LIQUID_TYPE_WATER", "parent": 183, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 29}}, {"id": 186, "type": "preproc_arg", "text": "0x01", "parent": 183, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 40}}, {"id": 187, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_OCEAN 0x02\n", "parent": 0, "children": [188, 189, 190], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 101, "column": 0}}, {"id": 188, "type": "#define", "text": "#define", "parent": 187, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 7}}, {"id": 189, "type": "identifier", "text": "MAP_LIQUID_TYPE_OCEAN", "parent": 187, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 29}}, {"id": 190, "type": "preproc_arg", "text": "0x02", "parent": 187, "children": [], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 40}}, {"id": 191, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_MAGMA 0x04\n", "parent": 0, "children": [192, 193, 194], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 102, "column": 0}}, {"id": 192, "type": "#define", "text": "#define", "parent": 191, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 193, "type": "identifier", "text": "MAP_LIQUID_TYPE_MAGMA", "parent": 191, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 29}}, {"id": 194, "type": "preproc_arg", "text": "0x04", "parent": 191, "children": [], "start_point": {"row": 101, "column": 36}, "end_point": {"row": 101, "column": 40}}, {"id": 195, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_SLIME 0x08\n", "parent": 0, "children": [196, 197, 198], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 196, "type": "#define", "text": "#define", "parent": 195, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 197, "type": "identifier", "text": "MAP_LIQUID_TYPE_SLIME", "parent": 195, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 29}}, {"id": 198, "type": "preproc_arg", "text": "0x08", "parent": 195, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 40}}, {"id": 199, "type": "preproc_def", "text": "#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n", "parent": 0, "children": [200, 201, 202], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 105, "column": 0}}, {"id": 200, "type": "#define", "text": "#define", "parent": 199, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 201, "type": "identifier", "text": "MAP_ALL_LIQUIDS", "parent": 199, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 23}}, {"id": 202, "type": "preproc_arg", "text": "(MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)", "parent": 199, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 121}}, {"id": 203, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n", "parent": 0, "children": [204, 205, 206], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 204, "type": "#define", "text": "#define", "parent": 203, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 205, "type": "identifier", "text": "MAP_LIQUID_TYPE_DARK_WATER", "parent": 203, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 34}}, {"id": 206, "type": "preproc_arg", "text": "0x10", "parent": 203, "children": [], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 40}}, {"id": 207, "type": "preproc_def", "text": "#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n", "parent": 0, "children": [208, 209, 210], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 208, "type": "#define", "text": "#define", "parent": 207, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 209, "type": "identifier", "text": "MAP_LIQUID_TYPE_WMO_WATER", "parent": 207, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 33}}, {"id": 210, "type": "preproc_arg", "text": "0x20", "parent": 207, "children": [], "start_point": {"row": 107, "column": 36}, "end_point": {"row": 107, "column": 40}}, {"id": 211, "type": "struct_specifier", "text": "struct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n}", "parent": 0, "children": [212, 213], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 212, "type": "struct", "text": "struct", "parent": 211, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 213, "type": "type_identifier", "text": "GridMapLiquidData", "parent": 211, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 24}}, {"id": 214, "type": "field_declaration", "text": "uint32 type;", "parent": 211, "children": [215, 216], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 16}}, {"id": 215, "type": "type_identifier", "text": "uint32", "parent": 214, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 10}}, {"id": 216, "type": "field_identifier", "text": "type", "parent": 214, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 15}}, {"id": 217, "type": "field_declaration", "text": "float level;", "parent": 211, "children": [218, 219], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 16}}, {"id": 218, "type": "primitive_type", "text": "float", "parent": 217, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 9}}, {"id": 219, "type": "field_identifier", "text": "level", "parent": 217, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 15}}, {"id": 220, "type": "field_declaration", "text": "float depth_level;", "parent": 211, "children": [221, 222], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 22}}, {"id": 221, "type": "primitive_type", "text": "float", "parent": 220, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 9}}, {"id": 222, "type": "field_identifier", "text": "depth_level", "parent": 220, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 21}}, {"id": 223, "type": "function_definition", "text": "class GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n}", "parent": 0, "children": [224], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 180, "column": 1}}, {"id": 224, "type": "identifier", "text": "GridMap", "parent": 223, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 13}}, {"id": 225, "type": "labeled_statement", "text": "private:\n\n uint32 m_flags;", "parent": 223, "children": [226], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 120, "column": 23}}, {"id": 226, "type": "declaration", "text": "uint32 m_flags;", "parent": 225, "children": [227, 228], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 23}}, {"id": 227, "type": "type_identifier", "text": "uint32", "parent": 226, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 14}}, {"id": 228, "type": "identifier", "text": "m_flags", "parent": 226, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 22}}, {"id": 229, "type": "declaration", "text": "uint16 m_gridArea;", "parent": 223, "children": [230, 231], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 26}}, {"id": 230, "type": "type_identifier", "text": "uint16", "parent": 229, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 14}}, {"id": 231, "type": "identifier", "text": "m_gridArea", "parent": 229, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 25}}, {"id": 232, "type": "declaration", "text": "uint16 *m_area_map;", "parent": 223, "children": [233, 234], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 27}}, {"id": 233, "type": "type_identifier", "text": "uint16", "parent": 232, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 14}}, {"id": 234, "type": "pointer_declarator", "text": "*m_area_map", "parent": 232, "children": [235, 236], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 26}}, {"id": 235, "type": "*", "text": "*", "parent": 234, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 16}}, {"id": 236, "type": "identifier", "text": "m_area_map", "parent": 234, "children": [], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 26}}, {"id": 237, "type": "declaration", "text": "float m_gridHeight;", "parent": 223, "children": [238, 239], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 27}}, {"id": 238, "type": "primitive_type", "text": "float", "parent": 237, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 13}}, {"id": 239, "type": "identifier", "text": "m_gridHeight", "parent": 237, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 26}}, {"id": 240, "type": "declaration", "text": "float m_gridIntHeightMultiplier;", "parent": 223, "children": [241, 242], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 40}}, {"id": 241, "type": "primitive_type", "text": "float", "parent": 240, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 13}}, {"id": 242, "type": "identifier", "text": "m_gridIntHeightMultiplier", "parent": 240, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 39}}, {"id": 243, "type": "union_specifier", "text": "union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n }", "parent": 223, "children": [244], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 134, "column": 9}}, {"id": 244, "type": "union", "text": "union", "parent": 243, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 13}}, {"id": 245, "type": "field_declaration", "text": "float *m_V9;", "parent": 243, "children": [246, 247], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 24}}, {"id": 246, "type": "primitive_type", "text": "float", "parent": 245, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 17}}, {"id": 247, "type": "pointer_declarator", "text": "*m_V9", "parent": 245, "children": [248, 249], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 23}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 19}}, {"id": 249, "type": "field_identifier", "text": "m_V9", "parent": 247, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 23}}, {"id": 250, "type": "field_declaration", "text": "uint16 *m_uint16_V9;", "parent": 243, "children": [251, 252], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 32}}, {"id": 251, "type": "type_identifier", "text": "uint16", "parent": 250, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 18}}, {"id": 252, "type": "pointer_declarator", "text": "*m_uint16_V9", "parent": 250, "children": [253, 254], "start_point": {"row": 132, "column": 19}, "end_point": {"row": 132, "column": 31}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 132, "column": 19}, "end_point": {"row": 132, "column": 20}}, {"id": 254, "type": "field_identifier", "text": "m_uint16_V9", "parent": 252, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 31}}, {"id": 255, "type": "field_declaration", "text": "uint8 *m_uint8_V9;", "parent": 243, "children": [256, 257], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 30}}, {"id": 256, "type": "type_identifier", "text": "uint8", "parent": 255, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 17}}, {"id": 257, "type": "pointer_declarator", "text": "*m_uint8_V9", "parent": 255, "children": [258, 259], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 29}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 259, "type": "field_identifier", "text": "m_uint8_V9", "parent": 257, "children": [], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 29}}, {"id": 260, "type": "union_specifier", "text": "union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n }", "parent": 223, "children": [261], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 140, "column": 9}}, {"id": 261, "type": "union", "text": "union", "parent": 260, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 13}}, {"id": 262, "type": "field_declaration", "text": "float *m_V8;", "parent": 260, "children": [263, 264], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 24}}, {"id": 263, "type": "primitive_type", "text": "float", "parent": 262, "children": [], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 17}}, {"id": 264, "type": "pointer_declarator", "text": "*m_V8", "parent": 262, "children": [265, 266], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 23}}, {"id": 265, "type": "*", "text": "*", "parent": 264, "children": [], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 19}}, {"id": 266, "type": "field_identifier", "text": "m_V8", "parent": 264, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 23}}, {"id": 267, "type": "field_declaration", "text": "uint16 *m_uint16_V8;", "parent": 260, "children": [268, 269], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 32}}, {"id": 268, "type": "type_identifier", "text": "uint16", "parent": 267, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 18}}, {"id": 269, "type": "pointer_declarator", "text": "*m_uint16_V8", "parent": 267, "children": [270, 271], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 31}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 20}}, {"id": 271, "type": "field_identifier", "text": "m_uint16_V8", "parent": 269, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 31}}, {"id": 272, "type": "field_declaration", "text": "uint8 *m_uint8_V8;", "parent": 260, "children": [273, 274], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 30}}, {"id": 273, "type": "type_identifier", "text": "uint8", "parent": 272, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 17}}, {"id": 274, "type": "pointer_declarator", "text": "*m_uint8_V8", "parent": 272, "children": [275, 276], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 29}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 19}}, {"id": 276, "type": "field_identifier", "text": "m_uint8_V8", "parent": 274, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 29}}, {"id": 277, "type": "declaration", "text": "uint16 m_liquidType;", "parent": 223, "children": [278, 279], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 28}}, {"id": 278, "type": "type_identifier", "text": "uint16", "parent": 277, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 14}}, {"id": 279, "type": "identifier", "text": "m_liquidType", "parent": 277, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 27}}, {"id": 280, "type": "declaration", "text": "uint8 m_liquid_offX;", "parent": 223, "children": [281, 282], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 28}}, {"id": 281, "type": "type_identifier", "text": "uint8", "parent": 280, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 13}}, {"id": 282, "type": "identifier", "text": "m_liquid_offX", "parent": 280, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 27}}, {"id": 283, "type": "declaration", "text": "uint8 m_liquid_offY;", "parent": 223, "children": [284, 285], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 28}}, {"id": 284, "type": "type_identifier", "text": "uint8", "parent": 283, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 13}}, {"id": 285, "type": "identifier", "text": "m_liquid_offY", "parent": 283, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 27}}, {"id": 286, "type": "declaration", "text": "uint8 m_liquid_width;", "parent": 223, "children": [287, 288], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 29}}, {"id": 287, "type": "type_identifier", "text": "uint8", "parent": 286, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 13}}, {"id": 288, "type": "identifier", "text": "m_liquid_width", "parent": 286, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 28}}, {"id": 289, "type": "declaration", "text": "uint8 m_liquid_height;", "parent": 223, "children": [290, 291], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 30}}, {"id": 290, "type": "type_identifier", "text": "uint8", "parent": 289, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 13}}, {"id": 291, "type": "identifier", "text": "m_liquid_height", "parent": 289, "children": [], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 29}}, {"id": 292, "type": "declaration", "text": "float m_liquidLevel;", "parent": 223, "children": [293, 294], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 28}}, {"id": 293, "type": "primitive_type", "text": "float", "parent": 292, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 13}}, {"id": 294, "type": "identifier", "text": "m_liquidLevel", "parent": 292, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 27}}, {"id": 295, "type": "declaration", "text": "uint8 *m_liquid_type;", "parent": 223, "children": [296, 297], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 29}}, {"id": 296, "type": "type_identifier", "text": "uint8", "parent": 295, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 13}}, {"id": 297, "type": "pointer_declarator", "text": "*m_liquid_type", "parent": 295, "children": [298, 299], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 28}}, {"id": 298, "type": "*", "text": "*", "parent": 297, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 15}}, {"id": 299, "type": "identifier", "text": "m_liquid_type", "parent": 297, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 28}}, {"id": 300, "type": "declaration", "text": "float *m_liquid_map;", "parent": 223, "children": [301, 302], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 28}}, {"id": 301, "type": "primitive_type", "text": "float", "parent": 300, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 13}}, {"id": 302, "type": "pointer_declarator", "text": "*m_liquid_map", "parent": 300, "children": [303, 304], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 27}}, {"id": 303, "type": "*", "text": "*", "parent": 302, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 15}}, {"id": 304, "type": "identifier", "text": "m_liquid_map", "parent": 302, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 27}}, {"id": 305, "type": "declaration", "text": "bool loadAreaData(FILE *in, uint32 offset, uint32 size);", "parent": 223, "children": [306, 307], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 64}}, {"id": 306, "type": "primitive_type", "text": "bool", "parent": 305, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 12}}, {"id": 307, "type": "function_declarator", "text": "loadAreaData(FILE *in, uint32 offset, uint32 size)", "parent": 305, "children": [308, 309], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 63}}, {"id": 308, "type": "identifier", "text": "loadAreaData", "parent": 307, "children": [], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 25}}, {"id": 309, "type": "parameter_list", "text": "(FILE *in, uint32 offset, uint32 size)", "parent": 307, "children": [310, 315, 318], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 63}}, {"id": 310, "type": "parameter_declaration", "text": "FILE *in", "parent": 309, "children": [311, 312], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 34}}, {"id": 311, "type": "type_identifier", "text": "FILE", "parent": 310, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 30}}, {"id": 312, "type": "pointer_declarator", "text": "*in", "parent": 310, "children": [313, 314], "start_point": {"row": 152, "column": 31}, "end_point": {"row": 152, "column": 34}}, {"id": 313, "type": "*", "text": "*", "parent": 312, "children": [], "start_point": {"row": 152, "column": 31}, "end_point": {"row": 152, "column": 32}}, {"id": 314, "type": "identifier", "text": "in", "parent": 312, "children": [], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 34}}, {"id": 315, "type": "parameter_declaration", "text": "uint32 offset", "parent": 309, "children": [316, 317], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 49}}, {"id": 316, "type": "type_identifier", "text": "uint32", "parent": 315, "children": [], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 42}}, {"id": 317, "type": "identifier", "text": "offset", "parent": 315, "children": [], "start_point": {"row": 152, "column": 43}, "end_point": {"row": 152, "column": 49}}, {"id": 318, "type": "parameter_declaration", "text": "uint32 size", "parent": 309, "children": [319, 320], "start_point": {"row": 152, "column": 51}, "end_point": {"row": 152, "column": 62}}, {"id": 319, "type": "type_identifier", "text": "uint32", "parent": 318, "children": [], "start_point": {"row": 152, "column": 51}, "end_point": {"row": 152, "column": 57}}, {"id": 320, "type": "identifier", "text": "size", "parent": 318, "children": [], "start_point": {"row": 152, "column": 58}, "end_point": {"row": 152, "column": 62}}, {"id": 321, "type": "declaration", "text": "bool loadHeightData(FILE *in, uint32 offset, uint32 size);", "parent": 223, "children": [322, 323], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 66}}, {"id": 322, "type": "primitive_type", "text": "bool", "parent": 321, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 12}}, {"id": 323, "type": "function_declarator", "text": "loadHeightData(FILE *in, uint32 offset, uint32 size)", "parent": 321, "children": [324, 325], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 65}}, {"id": 324, "type": "identifier", "text": "loadHeightData", "parent": 323, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 27}}, {"id": 325, "type": "parameter_list", "text": "(FILE *in, uint32 offset, uint32 size)", "parent": 323, "children": [326, 331, 334], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 65}}, {"id": 326, "type": "parameter_declaration", "text": "FILE *in", "parent": 325, "children": [327, 328], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 36}}, {"id": 327, "type": "type_identifier", "text": "FILE", "parent": 326, "children": [], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 32}}, {"id": 328, "type": "pointer_declarator", "text": "*in", "parent": 326, "children": [329, 330], "start_point": {"row": 153, "column": 33}, "end_point": {"row": 153, "column": 36}}, {"id": 329, "type": "*", "text": "*", "parent": 328, "children": [], "start_point": {"row": 153, "column": 33}, "end_point": {"row": 153, "column": 34}}, {"id": 330, "type": "identifier", "text": "in", "parent": 328, "children": [], "start_point": {"row": 153, "column": 34}, "end_point": {"row": 153, "column": 36}}, {"id": 331, "type": "parameter_declaration", "text": "uint32 offset", "parent": 325, "children": [332, 333], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 51}}, {"id": 332, "type": "type_identifier", "text": "uint32", "parent": 331, "children": [], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 44}}, {"id": 333, "type": "identifier", "text": "offset", "parent": 331, "children": [], "start_point": {"row": 153, "column": 45}, "end_point": {"row": 153, "column": 51}}, {"id": 334, "type": "parameter_declaration", "text": "uint32 size", "parent": 325, "children": [335, 336], "start_point": {"row": 153, "column": 53}, "end_point": {"row": 153, "column": 64}}, {"id": 335, "type": "type_identifier", "text": "uint32", "parent": 334, "children": [], "start_point": {"row": 153, "column": 53}, "end_point": {"row": 153, "column": 59}}, {"id": 336, "type": "identifier", "text": "size", "parent": 334, "children": [], "start_point": {"row": 153, "column": 60}, "end_point": {"row": 153, "column": 64}}, {"id": 337, "type": "declaration", "text": "bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);", "parent": 223, "children": [338, 339], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 73}}, {"id": 338, "type": "primitive_type", "text": "bool", "parent": 337, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 12}}, {"id": 339, "type": "function_declarator", "text": "loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size)", "parent": 337, "children": [340, 341], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 72}}, {"id": 340, "type": "identifier", "text": "loadGridMapLiquidData", "parent": 339, "children": [], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 34}}, {"id": 341, "type": "parameter_list", "text": "(FILE *in, uint32 offset, uint32 size)", "parent": 339, "children": [342, 347, 350], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 72}}, {"id": 342, "type": "parameter_declaration", "text": "FILE *in", "parent": 341, "children": [343, 344], "start_point": {"row": 154, "column": 35}, "end_point": {"row": 154, "column": 43}}, {"id": 343, "type": "type_identifier", "text": "FILE", "parent": 342, "children": [], "start_point": {"row": 154, "column": 35}, "end_point": {"row": 154, "column": 39}}, {"id": 344, "type": "pointer_declarator", "text": "*in", "parent": 342, "children": [345, 346], "start_point": {"row": 154, "column": 40}, "end_point": {"row": 154, "column": 43}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 154, "column": 40}, "end_point": {"row": 154, "column": 41}}, {"id": 346, "type": "identifier", "text": "in", "parent": 344, "children": [], "start_point": {"row": 154, "column": 41}, "end_point": {"row": 154, "column": 43}}, {"id": 347, "type": "parameter_declaration", "text": "uint32 offset", "parent": 341, "children": [348, 349], "start_point": {"row": 154, "column": 45}, "end_point": {"row": 154, "column": 58}}, {"id": 348, "type": "type_identifier", "text": "uint32", "parent": 347, "children": [], "start_point": {"row": 154, "column": 45}, "end_point": {"row": 154, "column": 51}}, {"id": 349, "type": "identifier", "text": "offset", "parent": 347, "children": [], "start_point": {"row": 154, "column": 52}, "end_point": {"row": 154, "column": 58}}, {"id": 350, "type": "parameter_declaration", "text": "uint32 size", "parent": 341, "children": [351, 352], "start_point": {"row": 154, "column": 60}, "end_point": {"row": 154, "column": 71}}, {"id": 351, "type": "type_identifier", "text": "uint32", "parent": 350, "children": [], "start_point": {"row": 154, "column": 60}, "end_point": {"row": 154, "column": 66}}, {"id": 352, "type": "identifier", "text": "size", "parent": 350, "children": [], "start_point": {"row": 154, "column": 67}, "end_point": {"row": 154, "column": 71}}, {"id": 353, "type": "type_definition", "text": "typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;", "parent": 223, "children": [354, 355, 356], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 73}}, {"id": 354, "type": "typedef", "text": "typedef", "parent": 353, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 15}}, {"id": 355, "type": "primitive_type", "text": "float", "parent": 353, "children": [], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 21}}, {"id": 356, "type": "function_declarator", "text": "(GridMap::*pGetHeightPtr) (float x, float y)", "parent": 353, "children": [357, 363], "start_point": {"row": 157, "column": 22}, "end_point": {"row": 157, "column": 66}}, {"id": 357, "type": "parenthesized_declarator", "text": "(GridMap::*pGetHeightPtr)", "parent": 356, "children": [358, 360], "start_point": {"row": 157, "column": 22}, "end_point": {"row": 157, "column": 47}}, {"id": 358, "type": "ERROR", "text": "GridMap::", "parent": 357, "children": [359], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 32}}, {"id": 359, "type": "type_identifier", "text": "GridMap", "parent": 358, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 30}}, {"id": 360, "type": "pointer_declarator", "text": "*pGetHeightPtr", "parent": 357, "children": [361, 362], "start_point": {"row": 157, "column": 32}, "end_point": {"row": 157, "column": 46}}, {"id": 361, "type": "*", "text": "*", "parent": 360, "children": [], "start_point": {"row": 157, "column": 32}, "end_point": {"row": 157, "column": 33}}, {"id": 362, "type": "type_identifier", "text": "pGetHeightPtr", "parent": 360, "children": [], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 46}}, {"id": 363, "type": "parameter_list", "text": "(float x, float y)", "parent": 356, "children": [364, 367], "start_point": {"row": 157, "column": 48}, "end_point": {"row": 157, "column": 66}}, {"id": 364, "type": "parameter_declaration", "text": "float x", "parent": 363, "children": [365, 366], "start_point": {"row": 157, "column": 49}, "end_point": {"row": 157, "column": 56}}, {"id": 365, "type": "primitive_type", "text": "float", "parent": 364, "children": [], "start_point": {"row": 157, "column": 49}, "end_point": {"row": 157, "column": 54}}, {"id": 366, "type": "identifier", "text": "x", "parent": 364, "children": [], "start_point": {"row": 157, "column": 55}, "end_point": {"row": 157, "column": 56}}, {"id": 367, "type": "parameter_declaration", "text": "float y", "parent": 363, "children": [368, 369], "start_point": {"row": 157, "column": 58}, "end_point": {"row": 157, "column": 65}}, {"id": 368, "type": "primitive_type", "text": "float", "parent": 367, "children": [], "start_point": {"row": 157, "column": 58}, "end_point": {"row": 157, "column": 63}}, {"id": 369, "type": "identifier", "text": "y", "parent": 367, "children": [], "start_point": {"row": 157, "column": 64}, "end_point": {"row": 157, "column": 65}}, {"id": 370, "type": "declaration", "text": "pGetHeightPtr m_gridGetHeight;", "parent": 223, "children": [371, 372], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 38}}, {"id": 371, "type": "type_identifier", "text": "pGetHeightPtr", "parent": 370, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 21}}, {"id": 372, "type": "identifier", "text": "m_gridGetHeight", "parent": 370, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 37}}, {"id": 373, "type": "ERROR", "text": "float getHeightFromFloat(float x, float y) const", "parent": 223, "children": [374, 375], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 56}}, {"id": 374, "type": "primitive_type", "text": "float", "parent": 373, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 13}}, {"id": 375, "type": "function_declarator", "text": "getHeightFromFloat(float x, float y) const", "parent": 373, "children": [376, 377], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 56}}, {"id": 376, "type": "identifier", "text": "getHeightFromFloat", "parent": 375, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 32}}, {"id": 377, "type": "parameter_list", "text": "(float x, float y)", "parent": 375, "children": [378, 381], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 50}}, {"id": 378, "type": "parameter_declaration", "text": "float x", "parent": 377, "children": [379, 380], "start_point": {"row": 159, "column": 33}, "end_point": {"row": 159, "column": 40}}, {"id": 379, "type": "primitive_type", "text": "float", "parent": 378, "children": [], "start_point": {"row": 159, "column": 33}, "end_point": {"row": 159, "column": 38}}, {"id": 380, "type": "identifier", "text": "x", "parent": 378, "children": [], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 40}}, {"id": 381, "type": "parameter_declaration", "text": "float y", "parent": 377, "children": [382, 383], "start_point": {"row": 159, "column": 42}, "end_point": {"row": 159, "column": 49}}, {"id": 382, "type": "primitive_type", "text": "float", "parent": 381, "children": [], "start_point": {"row": 159, "column": 42}, "end_point": {"row": 159, "column": 47}}, {"id": 383, "type": "identifier", "text": "y", "parent": 381, "children": [], "start_point": {"row": 159, "column": 48}, "end_point": {"row": 159, "column": 49}}, {"id": 384, "type": "ERROR", "text": "float getHeightFromUint16(float x, float y) const", "parent": 223, "children": [385, 386], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 57}}, {"id": 385, "type": "primitive_type", "text": "float", "parent": 384, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 13}}, {"id": 386, "type": "function_declarator", "text": "getHeightFromUint16(float x, float y) const", "parent": 384, "children": [387, 388], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 57}}, {"id": 387, "type": "identifier", "text": "getHeightFromUint16", "parent": 386, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 33}}, {"id": 388, "type": "parameter_list", "text": "(float x, float y)", "parent": 386, "children": [389, 392], "start_point": {"row": 160, "column": 33}, "end_point": {"row": 160, "column": 51}}, {"id": 389, "type": "parameter_declaration", "text": "float x", "parent": 388, "children": [390, 391], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 41}}, {"id": 390, "type": "primitive_type", "text": "float", "parent": 389, "children": [], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 39}}, {"id": 391, "type": "identifier", "text": "x", "parent": 389, "children": [], "start_point": {"row": 160, "column": 40}, "end_point": {"row": 160, "column": 41}}, {"id": 392, "type": "parameter_declaration", "text": "float y", "parent": 388, "children": [393, 394], "start_point": {"row": 160, "column": 43}, "end_point": {"row": 160, "column": 50}}, {"id": 393, "type": "primitive_type", "text": "float", "parent": 392, "children": [], "start_point": {"row": 160, "column": 43}, "end_point": {"row": 160, "column": 48}}, {"id": 394, "type": "identifier", "text": "y", "parent": 392, "children": [], "start_point": {"row": 160, "column": 49}, "end_point": {"row": 160, "column": 50}}, {"id": 395, "type": "ERROR", "text": "float getHeightFromUint8(float x, float y) const", "parent": 223, "children": [396, 397], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 56}}, {"id": 396, "type": "primitive_type", "text": "float", "parent": 395, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 13}}, {"id": 397, "type": "function_declarator", "text": "getHeightFromUint8(float x, float y) const", "parent": 395, "children": [398, 399], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 56}}, {"id": 398, "type": "identifier", "text": "getHeightFromUint8", "parent": 397, "children": [], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 32}}, {"id": 399, "type": "parameter_list", "text": "(float x, float y)", "parent": 397, "children": [400, 403], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 50}}, {"id": 400, "type": "parameter_declaration", "text": "float x", "parent": 399, "children": [401, 402], "start_point": {"row": 161, "column": 33}, "end_point": {"row": 161, "column": 40}}, {"id": 401, "type": "primitive_type", "text": "float", "parent": 400, "children": [], "start_point": {"row": 161, "column": 33}, "end_point": {"row": 161, "column": 38}}, {"id": 402, "type": "identifier", "text": "x", "parent": 400, "children": [], "start_point": {"row": 161, "column": 39}, "end_point": {"row": 161, "column": 40}}, {"id": 403, "type": "parameter_declaration", "text": "float y", "parent": 399, "children": [404, 405], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 49}}, {"id": 404, "type": "primitive_type", "text": "float", "parent": 403, "children": [], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 47}}, {"id": 405, "type": "identifier", "text": "y", "parent": 403, "children": [], "start_point": {"row": 161, "column": 48}, "end_point": {"row": 161, "column": 49}}, {"id": 406, "type": "ERROR", "text": "float getHeightFromFlat(float x, float y) const", "parent": 223, "children": [407, 408], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 55}}, {"id": 407, "type": "primitive_type", "text": "float", "parent": 406, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 13}}, {"id": 408, "type": "function_declarator", "text": "getHeightFromFlat(float x, float y) const", "parent": 406, "children": [409, 410], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 55}}, {"id": 409, "type": "identifier", "text": "getHeightFromFlat", "parent": 408, "children": [], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 31}}, {"id": 410, "type": "parameter_list", "text": "(float x, float y)", "parent": 408, "children": [411, 414], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 49}}, {"id": 411, "type": "parameter_declaration", "text": "float x", "parent": 410, "children": [412, 413], "start_point": {"row": 162, "column": 32}, "end_point": {"row": 162, "column": 39}}, {"id": 412, "type": "primitive_type", "text": "float", "parent": 411, "children": [], "start_point": {"row": 162, "column": 32}, "end_point": {"row": 162, "column": 37}}, {"id": 413, "type": "identifier", "text": "x", "parent": 411, "children": [], "start_point": {"row": 162, "column": 38}, "end_point": {"row": 162, "column": 39}}, {"id": 414, "type": "parameter_declaration", "text": "float y", "parent": 410, "children": [415, 416], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 48}}, {"id": 415, "type": "primitive_type", "text": "float", "parent": 414, "children": [], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 46}}, {"id": 416, "type": "identifier", "text": "y", "parent": 414, "children": [], "start_point": {"row": 162, "column": 47}, "end_point": {"row": 162, "column": 48}}, {"id": 417, "type": "labeled_statement", "text": "public:\n\n GridMap();", "parent": 223, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 166, "column": 18}}, {"id": 418, "type": "call_expression", "text": "GridMap()", "parent": 417, "children": [419, 420], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 17}}, {"id": 419, "type": "identifier", "text": "GridMap", "parent": 418, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 15}}, {"id": 420, "type": "argument_list", "text": "()", "parent": 418, "children": [], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 17}}, {"id": 421, "type": "unary_expression", "text": "~GridMap()", "parent": 223, "children": [422, 423], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 18}}, {"id": 422, "type": "~", "text": "~", "parent": 421, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 9}}, {"id": 423, "type": "call_expression", "text": "GridMap()", "parent": 421, "children": [424, 425], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 18}}, {"id": 424, "type": "identifier", "text": "GridMap", "parent": 423, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 16}}, {"id": 425, "type": "argument_list", "text": "()", "parent": 423, "children": [], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 18}}, {"id": 426, "type": "declaration", "text": "bool loadData(char *filaname);", "parent": 223, "children": [427, 428], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 38}}, {"id": 427, "type": "primitive_type", "text": "bool", "parent": 426, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 12}}, {"id": 428, "type": "function_declarator", "text": "loadData(char *filaname)", "parent": 426, "children": [429, 430], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 37}}, {"id": 429, "type": "identifier", "text": "loadData", "parent": 428, "children": [], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 21}}, {"id": 430, "type": "parameter_list", "text": "(char *filaname)", "parent": 428, "children": [431], "start_point": {"row": 169, "column": 21}, "end_point": {"row": 169, "column": 37}}, {"id": 431, "type": "parameter_declaration", "text": "char *filaname", "parent": 430, "children": [432, 433], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 36}}, {"id": 432, "type": "primitive_type", "text": "char", "parent": 431, "children": [], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 26}}, {"id": 433, "type": "pointer_declarator", "text": "*filaname", "parent": 431, "children": [434, 435], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 169, "column": 36}}, {"id": 434, "type": "*", "text": "*", "parent": 433, "children": [], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 169, "column": 28}}, {"id": 435, "type": "identifier", "text": "filaname", "parent": 433, "children": [], "start_point": {"row": 169, "column": 28}, "end_point": {"row": 169, "column": 36}}, {"id": 436, "type": "declaration", "text": "void unloadData();", "parent": 223, "children": [437, 438], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 26}}, {"id": 437, "type": "primitive_type", "text": "void", "parent": 436, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 12}}, {"id": 438, "type": "function_declarator", "text": "unloadData()", "parent": 436, "children": [439, 440], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 25}}, {"id": 439, "type": "identifier", "text": "unloadData", "parent": 438, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 23}}, {"id": 440, "type": "parameter_list", "text": "()", "parent": 438, "children": [], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 25}}, {"id": 441, "type": "declaration", "text": "static bool ExistMap(uint32 mapid, int gx, int gy);", "parent": 223, "children": [442, 443], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 59}}, {"id": 442, "type": "primitive_type", "text": "bool", "parent": 441, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 19}}, {"id": 443, "type": "function_declarator", "text": "ExistMap(uint32 mapid, int gx, int gy)", "parent": 441, "children": [444, 445], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 58}}, {"id": 444, "type": "identifier", "text": "ExistMap", "parent": 443, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 28}}, {"id": 445, "type": "parameter_list", "text": "(uint32 mapid, int gx, int gy)", "parent": 443, "children": [446, 449, 452], "start_point": {"row": 172, "column": 28}, "end_point": {"row": 172, "column": 58}}, {"id": 446, "type": "parameter_declaration", "text": "uint32 mapid", "parent": 445, "children": [447, 448], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 41}}, {"id": 447, "type": "type_identifier", "text": "uint32", "parent": 446, "children": [], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 35}}, {"id": 448, "type": "identifier", "text": "mapid", "parent": 446, "children": [], "start_point": {"row": 172, "column": 36}, "end_point": {"row": 172, "column": 41}}, {"id": 449, "type": "parameter_declaration", "text": "int gx", "parent": 445, "children": [450, 451], "start_point": {"row": 172, "column": 43}, "end_point": {"row": 172, "column": 49}}, {"id": 450, "type": "primitive_type", "text": "int", "parent": 449, "children": [], "start_point": {"row": 172, "column": 43}, "end_point": {"row": 172, "column": 46}}, {"id": 451, "type": "identifier", "text": "gx", "parent": 449, "children": [], "start_point": {"row": 172, "column": 47}, "end_point": {"row": 172, "column": 49}}, {"id": 452, "type": "parameter_declaration", "text": "int gy", "parent": 445, "children": [453, 454], "start_point": {"row": 172, "column": 51}, "end_point": {"row": 172, "column": 57}}, {"id": 453, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 172, "column": 51}, "end_point": {"row": 172, "column": 54}}, {"id": 454, "type": "identifier", "text": "gy", "parent": 452, "children": [], "start_point": {"row": 172, "column": 55}, "end_point": {"row": 172, "column": 57}}, {"id": 455, "type": "declaration", "text": "static bool ExistVMap(uint32 mapid, int gx, int gy);", "parent": 223, "children": [456, 457], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 60}}, {"id": 456, "type": "primitive_type", "text": "bool", "parent": 455, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 19}}, {"id": 457, "type": "function_declarator", "text": "ExistVMap(uint32 mapid, int gx, int gy)", "parent": 455, "children": [458, 459], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 59}}, {"id": 458, "type": "identifier", "text": "ExistVMap", "parent": 457, "children": [], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 29}}, {"id": 459, "type": "parameter_list", "text": "(uint32 mapid, int gx, int gy)", "parent": 457, "children": [460, 463, 466], "start_point": {"row": 173, "column": 29}, "end_point": {"row": 173, "column": 59}}, {"id": 460, "type": "parameter_declaration", "text": "uint32 mapid", "parent": 459, "children": [461, 462], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 42}}, {"id": 461, "type": "type_identifier", "text": "uint32", "parent": 460, "children": [], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 36}}, {"id": 462, "type": "identifier", "text": "mapid", "parent": 460, "children": [], "start_point": {"row": 173, "column": 37}, "end_point": {"row": 173, "column": 42}}, {"id": 463, "type": "parameter_declaration", "text": "int gx", "parent": 459, "children": [464, 465], "start_point": {"row": 173, "column": 44}, "end_point": {"row": 173, "column": 50}}, {"id": 464, "type": "primitive_type", "text": "int", "parent": 463, "children": [], "start_point": {"row": 173, "column": 44}, "end_point": {"row": 173, "column": 47}}, {"id": 465, "type": "identifier", "text": "gx", "parent": 463, "children": [], "start_point": {"row": 173, "column": 48}, "end_point": {"row": 173, "column": 50}}, {"id": 466, "type": "parameter_declaration", "text": "int gy", "parent": 459, "children": [467, 468], "start_point": {"row": 173, "column": 52}, "end_point": {"row": 173, "column": 58}}, {"id": 467, "type": "primitive_type", "text": "int", "parent": 466, "children": [], "start_point": {"row": 173, "column": 52}, "end_point": {"row": 173, "column": 55}}, {"id": 468, "type": "identifier", "text": "gy", "parent": 466, "children": [], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 58}}, {"id": 469, "type": "declaration", "text": "uint16 getArea(float x, float y);", "parent": 223, "children": [470, 471], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 41}}, {"id": 470, "type": "type_identifier", "text": "uint16", "parent": 469, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 14}}, {"id": 471, "type": "function_declarator", "text": "getArea(float x, float y)", "parent": 469, "children": [472, 473], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 40}}, {"id": 472, "type": "identifier", "text": "getArea", "parent": 471, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 22}}, {"id": 473, "type": "parameter_list", "text": "(float x, float y)", "parent": 471, "children": [474, 477], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 40}}, {"id": 474, "type": "parameter_declaration", "text": "float x", "parent": 473, "children": [475, 476], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 30}}, {"id": 475, "type": "primitive_type", "text": "float", "parent": 474, "children": [], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 28}}, {"id": 476, "type": "identifier", "text": "x", "parent": 474, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 30}}, {"id": 477, "type": "parameter_declaration", "text": "float y", "parent": 473, "children": [478, 479], "start_point": {"row": 175, "column": 32}, "end_point": {"row": 175, "column": 39}}, {"id": 478, "type": "primitive_type", "text": "float", "parent": 477, "children": [], "start_point": {"row": 175, "column": 32}, "end_point": {"row": 175, "column": 37}}, {"id": 479, "type": "identifier", "text": "y", "parent": 477, "children": [], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 39}}, {"id": 480, "type": "function_definition", "text": "float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }", "parent": 223, "children": [481, 482], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 84}}, {"id": 481, "type": "primitive_type", "text": "float", "parent": 480, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 13}}, {"id": 482, "type": "function_declarator", "text": "getHeight(float x, float y)", "parent": 480, "children": [483, 484], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 41}}, {"id": 483, "type": "identifier", "text": "getHeight", "parent": 482, "children": [], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 23}}, {"id": 484, "type": "parameter_list", "text": "(float x, float y)", "parent": 482, "children": [485, 488], "start_point": {"row": 176, "column": 23}, "end_point": {"row": 176, "column": 41}}, {"id": 485, "type": "parameter_declaration", "text": "float x", "parent": 484, "children": [486, 487], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 31}}, {"id": 486, "type": "primitive_type", "text": "float", "parent": 485, "children": [], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 29}}, {"id": 487, "type": "identifier", "text": "x", "parent": 485, "children": [], "start_point": {"row": 176, "column": 30}, "end_point": {"row": 176, "column": 31}}, {"id": 488, "type": "parameter_declaration", "text": "float y", "parent": 484, "children": [489, 490], "start_point": {"row": 176, "column": 33}, "end_point": {"row": 176, "column": 40}}, {"id": 489, "type": "primitive_type", "text": "float", "parent": 488, "children": [], "start_point": {"row": 176, "column": 33}, "end_point": {"row": 176, "column": 38}}, {"id": 490, "type": "identifier", "text": "y", "parent": 488, "children": [], "start_point": {"row": 176, "column": 39}, "end_point": {"row": 176, "column": 40}}, {"id": 491, "type": "return_statement", "text": "return (this->*m_gridGetHeight)(x, y);", "parent": 480, "children": [492], "start_point": {"row": 176, "column": 44}, "end_point": {"row": 176, "column": 82}}, {"id": 492, "type": "call_expression", "text": "(this->*m_gridGetHeight)(x, y)", "parent": 491, "children": [493, 499], "start_point": {"row": 176, "column": 51}, "end_point": {"row": 176, "column": 81}}, {"id": 493, "type": "parenthesized_expression", "text": "(this->*m_gridGetHeight)", "parent": 492, "children": [494], "start_point": {"row": 176, "column": 51}, "end_point": {"row": 176, "column": 75}}, {"id": 494, "type": "field_expression", "text": "this->*m_gridGetHeight", "parent": 493, "children": [495, 496, 498], "start_point": {"row": 176, "column": 52}, "end_point": {"row": 176, "column": 74}}, {"id": 495, "type": "identifier", "text": "this", "parent": 494, "children": [], "start_point": {"row": 176, "column": 52}, "end_point": {"row": 176, "column": 56}}, {"id": 496, "type": "ERROR", "text": "*", "parent": 494, "children": [497], "start_point": {"row": 176, "column": 58}, "end_point": {"row": 176, "column": 59}}, {"id": 497, "type": "*", "text": "*", "parent": 496, "children": [], "start_point": {"row": 176, "column": 58}, "end_point": {"row": 176, "column": 59}}, {"id": 498, "type": "field_identifier", "text": "m_gridGetHeight", "parent": 494, "children": [], "start_point": {"row": 176, "column": 59}, "end_point": {"row": 176, "column": 74}}, {"id": 499, "type": "argument_list", "text": "(x, y)", "parent": 492, "children": [500, 501], "start_point": {"row": 176, "column": 75}, "end_point": {"row": 176, "column": 81}}, {"id": 500, "type": "identifier", "text": "x", "parent": 499, "children": [], "start_point": {"row": 176, "column": 76}, "end_point": {"row": 176, "column": 77}}, {"id": 501, "type": "identifier", "text": "y", "parent": 499, "children": [], "start_point": {"row": 176, "column": 79}, "end_point": {"row": 176, "column": 80}}, {"id": 502, "type": "declaration", "text": "float getLiquidLevel(float x, float y);", "parent": 223, "children": [503, 504], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 47}}, {"id": 503, "type": "primitive_type", "text": "float", "parent": 502, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 13}}, {"id": 504, "type": "function_declarator", "text": "getLiquidLevel(float x, float y)", "parent": 502, "children": [505, 506], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 46}}, {"id": 505, "type": "identifier", "text": "getLiquidLevel", "parent": 504, "children": [], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 28}}, {"id": 506, "type": "parameter_list", "text": "(float x, float y)", "parent": 504, "children": [507, 510], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 46}}, {"id": 507, "type": "parameter_declaration", "text": "float x", "parent": 506, "children": [508, 509], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 36}}, {"id": 508, "type": "primitive_type", "text": "float", "parent": 507, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 34}}, {"id": 509, "type": "identifier", "text": "x", "parent": 507, "children": [], "start_point": {"row": 177, "column": 35}, "end_point": {"row": 177, "column": 36}}, {"id": 510, "type": "parameter_declaration", "text": "float y", "parent": 506, "children": [511, 512], "start_point": {"row": 177, "column": 38}, "end_point": {"row": 177, "column": 45}}, {"id": 511, "type": "primitive_type", "text": "float", "parent": 510, "children": [], "start_point": {"row": 177, "column": 38}, "end_point": {"row": 177, "column": 43}}, {"id": 512, "type": "identifier", "text": "y", "parent": 510, "children": [], "start_point": {"row": 177, "column": 44}, "end_point": {"row": 177, "column": 45}}, {"id": 513, "type": "declaration", "text": "uint8 getTerrainType(float x, float y);", "parent": 223, "children": [514, 515], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 47}}, {"id": 514, "type": "type_identifier", "text": "uint8", "parent": 513, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 13}}, {"id": 515, "type": "function_declarator", "text": "getTerrainType(float x, float y)", "parent": 513, "children": [516, 517], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 46}}, {"id": 516, "type": "identifier", "text": "getTerrainType", "parent": 515, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 28}}, {"id": 517, "type": "parameter_list", "text": "(float x, float y)", "parent": 515, "children": [518, 521], "start_point": {"row": 178, "column": 28}, "end_point": {"row": 178, "column": 46}}, {"id": 518, "type": "parameter_declaration", "text": "float x", "parent": 517, "children": [519, 520], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 36}}, {"id": 519, "type": "primitive_type", "text": "float", "parent": 518, "children": [], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 34}}, {"id": 520, "type": "identifier", "text": "x", "parent": 518, "children": [], "start_point": {"row": 178, "column": 35}, "end_point": {"row": 178, "column": 36}}, {"id": 521, "type": "parameter_declaration", "text": "float y", "parent": 517, "children": [522, 523], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 45}}, {"id": 522, "type": "primitive_type", "text": "float", "parent": 521, "children": [], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 43}}, {"id": 523, "type": "identifier", "text": "y", "parent": 521, "children": [], "start_point": {"row": 178, "column": 44}, "end_point": {"row": 178, "column": 45}}, {"id": 524, "type": "declaration", "text": "GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);", "parent": 223, "children": [525, 526], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 121}}, {"id": 525, "type": "type_identifier", "text": "GridMapLiquidStatus", "parent": 524, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 27}}, {"id": 526, "type": "init_declarator", "text": "getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0", "parent": 524, "children": [527, 547, 548], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 119}}, {"id": 527, "type": "function_declarator", "text": "getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data", "parent": 526, "children": [528, 529], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 115}}, {"id": 528, "type": "identifier", "text": "getLiquidStatus", "parent": 527, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 43}}, {"id": 529, "type": "parameter_list", "text": "(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data", "parent": 527, "children": [530, 533, 536, 539, 542], "start_point": {"row": 179, "column": 43}, "end_point": {"row": 179, "column": 115}}, {"id": 530, "type": "parameter_declaration", "text": "float x", "parent": 529, "children": [531, 532], "start_point": {"row": 179, "column": 44}, "end_point": {"row": 179, "column": 51}}, {"id": 531, "type": "primitive_type", "text": "float", "parent": 530, "children": [], "start_point": {"row": 179, "column": 44}, "end_point": {"row": 179, "column": 49}}, {"id": 532, "type": "identifier", "text": "x", "parent": 530, "children": [], "start_point": {"row": 179, "column": 50}, "end_point": {"row": 179, "column": 51}}, {"id": 533, "type": "parameter_declaration", "text": "float y", "parent": 529, "children": [534, 535], "start_point": {"row": 179, "column": 53}, "end_point": {"row": 179, "column": 60}}, {"id": 534, "type": "primitive_type", "text": "float", "parent": 533, "children": [], "start_point": {"row": 179, "column": 53}, "end_point": {"row": 179, "column": 58}}, {"id": 535, "type": "identifier", "text": "y", "parent": 533, "children": [], "start_point": {"row": 179, "column": 59}, "end_point": {"row": 179, "column": 60}}, {"id": 536, "type": "parameter_declaration", "text": "float z", "parent": 529, "children": [537, 538], "start_point": {"row": 179, "column": 62}, "end_point": {"row": 179, "column": 69}}, {"id": 537, "type": "primitive_type", "text": "float", "parent": 536, "children": [], "start_point": {"row": 179, "column": 62}, "end_point": {"row": 179, "column": 67}}, {"id": 538, "type": "identifier", "text": "z", "parent": 536, "children": [], "start_point": {"row": 179, "column": 68}, "end_point": {"row": 179, "column": 69}}, {"id": 539, "type": "parameter_declaration", "text": "uint8 ReqLiquidType", "parent": 529, "children": [540, 541], "start_point": {"row": 179, "column": 71}, "end_point": {"row": 179, "column": 90}}, {"id": 540, "type": "type_identifier", "text": "uint8", "parent": 539, "children": [], "start_point": {"row": 179, "column": 71}, "end_point": {"row": 179, "column": 76}}, {"id": 541, "type": "identifier", "text": "ReqLiquidType", "parent": 539, "children": [], "start_point": {"row": 179, "column": 77}, "end_point": {"row": 179, "column": 90}}, {"id": 542, "type": "parameter_declaration", "text": "GridMapLiquidData *data", "parent": 529, "children": [543, 544], "start_point": {"row": 179, "column": 92}, "end_point": {"row": 179, "column": 115}}, {"id": 543, "type": "type_identifier", "text": "GridMapLiquidData", "parent": 542, "children": [], "start_point": {"row": 179, "column": 92}, "end_point": {"row": 179, "column": 109}}, {"id": 544, "type": "pointer_declarator", "text": "*data", "parent": 542, "children": [545, 546], "start_point": {"row": 179, "column": 110}, "end_point": {"row": 179, "column": 115}}, {"id": 545, "type": "*", "text": "*", "parent": 544, "children": [], "start_point": {"row": 179, "column": 110}, "end_point": {"row": 179, "column": 111}}, {"id": 546, "type": "identifier", "text": "data", "parent": 544, "children": [], "start_point": {"row": 179, "column": 111}, "end_point": {"row": 179, "column": 115}}, {"id": 547, "type": "=", "text": "=", "parent": 526, "children": [], "start_point": {"row": 179, "column": 116}, "end_point": {"row": 179, "column": 117}}, {"id": 548, "type": "number_literal", "text": "0", "parent": 526, "children": [], "start_point": {"row": 179, "column": 118}, "end_point": {"row": 179, "column": 119}}, {"id": 549, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 6}}]}, "node_categories": {"declarations": {"functions": [223, 307, 323, 339, 356, 375, 386, 397, 408, 428, 438, 443, 457, 471, 480, 482, 504, 515, 527], "variables": [27, 29, 31, 33, 35, 37, 45, 50, 53, 56, 59, 62, 65, 68, 71, 74, 84, 87, 90, 108, 111, 114, 117, 131, 134, 137, 140, 143, 146, 149, 152, 214, 217, 220, 226, 229, 232, 237, 240, 245, 250, 255, 262, 267, 272, 277, 280, 283, 286, 289, 292, 295, 300, 305, 310, 315, 318, 321, 326, 331, 334, 337, 342, 347, 350, 353, 364, 367, 370, 378, 381, 389, 392, 400, 403, 411, 414, 426, 431, 436, 441, 446, 449, 452, 455, 460, 463, 466, 469, 474, 477, 485, 488, 502, 507, 510, 513, 518, 521, 524, 530, 533, 536, 539, 542], "classes": [39, 40, 42, 43, 47, 48, 81, 82, 105, 106, 128, 129, 211, 212, 243, 244, 260, 261], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": [155, 156, 158, 159, 163, 167, 171, 175]}, "statements": {"expressions": [418, 421, 423, 492, 493, 494], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 28, 30, 32, 34, 36, 38, 41, 44, 46, 49, 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 66, 67, 69, 70, 72, 73, 75, 76, 79, 83, 85, 86, 88, 89, 91, 92, 95, 99, 103, 107, 109, 110, 112, 113, 116, 119, 122, 126, 130, 132, 133, 135, 136, 138, 139, 141, 142, 144, 145, 147, 148, 150, 151, 154, 157, 160, 164, 168, 172, 176, 181, 185, 189, 193, 197, 201, 205, 209, 213, 215, 216, 219, 222, 224, 227, 228, 230, 231, 233, 236, 239, 242, 249, 251, 254, 256, 259, 266, 268, 271, 273, 276, 278, 279, 281, 282, 284, 285, 287, 288, 290, 291, 294, 296, 299, 304, 308, 311, 314, 316, 317, 319, 320, 324, 327, 330, 332, 333, 335, 336, 340, 343, 346, 348, 349, 351, 352, 359, 362, 366, 369, 371, 372, 376, 380, 383, 387, 391, 394, 398, 402, 405, 409, 413, 416, 419, 424, 429, 435, 439, 444, 447, 448, 451, 454, 458, 461, 462, 465, 468, 470, 472, 476, 479, 483, 487, 490, 495, 498, 500, 501, 505, 509, 512, 514, 516, 520, 523, 525, 528, 532, 535, 538, 540, 541, 543, 546, 549], "returns": [491], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 162, 166, 170, 174, 178, 548], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 223, "universal_type": "function", "name": "GridMap", "text_snippet": "class GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridAre"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "loadAreaData(FILE *in, uint32 offset, uint32 size)"}, {"node_id": 323, "universal_type": "function", "name": "unknown", "text_snippet": "loadHeightData(FILE *in, uint32 offset, uint32 size)"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size)"}, {"node_id": 356, "universal_type": "function", "name": "unknown", "text_snippet": "(GridMap::*pGetHeightPtr) (float x, float y)"}, {"node_id": 375, "universal_type": "function", "name": "unknown", "text_snippet": "getHeightFromFloat(float x, float y) const"}, {"node_id": 386, "universal_type": "function", "name": "unknown", "text_snippet": "getHeightFromUint16(float x, float y) const"}, {"node_id": 397, "universal_type": "function", "name": "unknown", "text_snippet": "getHeightFromUint8(float x, float y) const"}, {"node_id": 408, "universal_type": "function", "name": "unknown", "text_snippet": "getHeightFromFlat(float x, float y) const"}, {"node_id": 428, "universal_type": "function", "name": "unknown", "text_snippet": "loadData(char *filaname)"}, {"node_id": 438, "universal_type": "function", "name": "unknown", "text_snippet": "unloadData()"}, {"node_id": 443, "universal_type": "function", "name": "gx,", "text_snippet": "ExistMap(uint32 mapid, int gx, int gy)"}, {"node_id": 457, "universal_type": "function", "name": "gx,", "text_snippet": "ExistVMap(uint32 mapid, int gx, int gy)"}, {"node_id": 471, "universal_type": "function", "name": "unknown", "text_snippet": "getArea(float x, float y)"}, {"node_id": 480, "universal_type": "function", "name": "unknown", "text_snippet": "float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }"}, {"node_id": 482, "universal_type": "function", "name": "unknown", "text_snippet": "getHeight(float x, float y)"}, {"node_id": 504, "universal_type": "function", "name": "unknown", "text_snippet": "getLiquidLevel(float x, float y)"}, {"node_id": 515, "universal_type": "function", "name": "unknown", "text_snippet": "getTerrainType(float x, float y)"}, {"node_id": 527, "universal_type": "function", "name": "unknown", "text_snippet": "getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data"}], "class_declarations": [{"node_id": 39, "universal_type": "class", "name": "ScriptInfo", "text_snippet": "struct ScriptInfo"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 42, "universal_type": "class", "name": "ScriptAction", "text_snippet": "struct ScriptAction"}, {"node_id": 43, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "GridMapFileHeader", "text_snippet": "struct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n "}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 81, "universal_type": "class", "name": "GridMapAreaHeader", "text_snippet": "struct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n}"}, {"node_id": 82, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 105, "universal_type": "class", "name": "GridMapHeightHeader", "text_snippet": "struct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gr"}, {"node_id": 106, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 128, "universal_type": "class", "name": "GridMapLiquidHeader", "text_snippet": "struct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 o"}, {"node_id": 129, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 211, "universal_type": "class", "name": "GridMapLiquidData", "text_snippet": "struct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n}"}, {"node_id": 212, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 243, "universal_type": "class", "name": "{", "text_snippet": "union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8"}, {"node_id": 244, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 260, "universal_type": "class", "name": "{", "text_snippet": "union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8"}, {"node_id": 261, "universal_type": "class", "name": "unknown", "text_snippet": "union"}], "import_statements": [{"node_id": 6, "text": "#include \"Platform/Define.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"DBCStructure.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"GridDefines.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"Object.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"SharedDefines.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <bitset>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <list>\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2010 DiamondCore <http://easy-emu.de/>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n */\n\n#ifndef DIAMOND_GRIDMAP_H\n#define DIAMOND_GRIDMAP_H\n\n#include \"Platform/Define.h\"\n#include \"DBCStructure.h\"\n#include \"GridDefines.h\"\n#include \"Object.h\"\n#include \"SharedDefines.h\"\n\n#include <bitset>\n#include <list>\n\nclass Creature;\nclass Unit;\nclass WorldPacket;\nclass InstanceData;\nclass Group;\nclass InstanceSave;\nstruct ScriptInfo;\nstruct ScriptAction;\nclass BattleGround;\n\nstruct GridMapFileHeader\n{\n uint32 mapMagic;\n uint32 versionMagic;\n uint32 buildMagic;\n uint32 areaMapOffset;\n uint32 areaMapSize;\n uint32 heightMapOffset;\n uint32 heightMapSize;\n uint32 liquidMapOffset;\n uint32 liquidMapSize;\n};\n\n#define MAP_AREA_NO_AREA 0x0001\n\nstruct GridMapAreaHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 gridArea;\n};\n\n#define MAP_HEIGHT_NO_HEIGHT 0x0001\n#define MAP_HEIGHT_AS_INT16 0x0002\n#define MAP_HEIGHT_AS_INT8 0x0004\n\nstruct GridMapHeightHeader\n{\n uint32 fourcc;\n uint32 flags;\n float gridHeight;\n float gridMaxHeight;\n};\n\n#define MAP_LIQUID_NO_TYPE 0x0001\n#define MAP_LIQUID_NO_HEIGHT 0x0002\n\nstruct GridMapLiquidHeader\n{\n uint32 fourcc;\n uint16 flags;\n uint16 liquidType;\n uint8 offsetX;\n uint8 offsetY;\n uint8 width;\n uint8 height;\n float liquidLevel;\n};\n\nenum GridMapLiquidStatus\n{\n LIQUID_MAP_NO_WATER = 0x00000000,\n LIQUID_MAP_ABOVE_WATER = 0x00000001,\n LIQUID_MAP_WATER_WALK = 0x00000002,\n LIQUID_MAP_IN_WATER = 0x00000004,\n LIQUID_MAP_UNDER_WATER = 0x00000008\n};\n\n#define MAP_LIQUID_TYPE_NO_WATER 0x00\n#define MAP_LIQUID_TYPE_WATER 0x01\n#define MAP_LIQUID_TYPE_OCEAN 0x02\n#define MAP_LIQUID_TYPE_MAGMA 0x04\n#define MAP_LIQUID_TYPE_SLIME 0x08\n\n#define MAP_ALL_LIQUIDS (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)\n\n#define MAP_LIQUID_TYPE_DARK_WATER 0x10\n#define MAP_LIQUID_TYPE_WMO_WATER 0x20\n\nstruct GridMapLiquidData\n{\n uint32 type;\n float level;\n float depth_level;\n};\n\nclass GridMap\n{\n private:\n\n uint32 m_flags;\n\n // Area data\n uint16 m_gridArea;\n uint16 *m_area_map;\n\n // Height level data\n float m_gridHeight;\n float m_gridIntHeightMultiplier;\n union\n {\n float *m_V9;\n uint16 *m_uint16_V9;\n uint8 *m_uint8_V9;\n };\n union\n {\n float *m_V8;\n uint16 *m_uint16_V8;\n uint8 *m_uint8_V8;\n };\n\n // Liquid data\n uint16 m_liquidType;\n uint8 m_liquid_offX;\n uint8 m_liquid_offY;\n uint8 m_liquid_width;\n uint8 m_liquid_height;\n float m_liquidLevel;\n uint8 *m_liquid_type;\n float *m_liquid_map;\n\n bool loadAreaData(FILE *in, uint32 offset, uint32 size);\n bool loadHeightData(FILE *in, uint32 offset, uint32 size);\n bool loadGridMapLiquidData(FILE *in, uint32 offset, uint32 size);\n\n // Get height functions and pointers\n typedef float (GridMap::*pGetHeightPtr) (float x, float y) const;\n pGetHeightPtr m_gridGetHeight;\n float getHeightFromFloat(float x, float y) const;\n float getHeightFromUint16(float x, float y) const;\n float getHeightFromUint8(float x, float y) const;\n float getHeightFromFlat(float x, float y) const;\n\n public:\n\n GridMap();\n ~GridMap();\n\n bool loadData(char *filaname);\n void unloadData();\n\n static bool ExistMap(uint32 mapid, int gx, int gy);\n static bool ExistVMap(uint32 mapid, int gx, int gy);\n\n uint16 getArea(float x, float y);\n float getHeight(float x, float y) { return (this->*m_gridGetHeight)(x, y); }\n float getLiquidLevel(float x, float y);\n uint8 getTerrainType(float x, float y);\n GridMapLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, GridMapLiquidData *data = 0);\n};\n\n#endif\n"}
103
c
// // QHSStatAgent.h // QHSAnalyticsSdk // // Created by sunyimin on 16/5/23. // Copyright © 2016年 北京奇虎科技有限公司. All rights reserved. // #import <Foundation/Foundation.h> #import "QHSConfiguration.h" #import "QHSCustomEvent.h" #import "QHSLive.h" @interface QHSStatAgent : NSObject ///--------------------------------------------------------------------------------------- /// @name 设置 ///--------------------------------------------------------------------------------------- /** * 设置是否打印sdk的log信息 * * @param isEnabled BOOL类型 默认 NO 设置为YES,SDK 会输出log信息,记得release产品时要设置回NO. */ - (void)setLogEnabled:(BOOL)isEnabled; /** * 设置打印数据监控信息 * * @param debug BOOL类型 默认 NO */ - (void)setDebugMode:(BOOL)debug; /** * 设置启用广告监测功能开关 * * @param isReproted BOOL类型 默认 NO */ - (void)setReportADDataEnabled:(BOOL)isReproted; ///--------------------------------------------------------------------------------------- /// @name 开启统计 ///--------------------------------------------------------------------------------------- /** * 开启sdk统计,默认以下次启动方式发送log * * @param appKey 在QDAS上注册app的key * @param policy 发送策略 * @param channelId 渠道名称,为nil或@""时,默认会被被当作@"App Store"渠道 */ +(nonnull QHSStatAgent *)startWithappKey:(nonnull NSString *)appKey reportPolicy:(QHSReportPolicy)policy channelId:(nullable NSString *)channelId; /** * 获取m2值,只生成一次uuid存入keychain中,下次直接从keychain中获取。 * * @return 返回keychain中读取的uuid */ - (nullable NSString *)getM2; /** * 手动设置app当前版本信息 * * @param appVersion app当前版本信息 */ - (void)setappVersion:(nonnull NSString *)appVersion; /** * 为了更精确的统计用户地理位置,可以调用此方法传入经纬度信息 需要链接 CoreLocation.framework 并且 #import <CoreLocation/CoreLocation.h> * * @param latitude 纬度 * @param longitude 经度 */ - (void)setLocationWithLatitude:(double)latitude longitude:(double)longitude; /** * 设置用户id * * @param userId 字符串类型 */ - (void)setUserId:(nullable NSString *)userId; /** * 设置tag值 * * @param tag 字符串类型 */ - (void)setTag:(nullable NSString *)tag; /** * 设置多个tag值在header.ext里存放 * * @param tagValue tag值 如果传空值则将把之前的赋值删除 * @param tagIndex tag的key */ - (void)setExtraTag:(nullable NSString *)tagValue index:(QHSExtraTagIndex)tagIndex; /** * 设置发送策略 * * @param reportPolicy 发送策略 */ - (void)setReportPolicy:(QHSReportPolicy)reportPolicy; /** * 设置上报当前用户位置信息 * * @param isEnabled BOOL类型 默认 NO */ - (void)setLocationReportEnabled:(BOOL)isEnabled; /** * 设置自动定位位置信息 * * @param isEnabled BOOL类型 默认 NO */ - (void)setAutoLocationEnabled:(BOOL)isEnabled; /** * 设置使用测试版本的云控(使用时注意) * * @param isBeta BOOL类型 默认 NO 记得release产品时要设置回NO. */ - (void)setOnlineConfigBeBetaVersion:(BOOL)isBeta; /** * 设置A/B Test:本次test设置名字,然后通过设置不同tag值。 * * @param name 标示 * @param tag 类型 */ - (void)setABTestName:(nonnull NSString *)name andValue:(QHSAbTestTag)tag; /** * 设置域名,包括前缀部分,比如“https://abc.com” * * @param report 上报数据的域名 * @param config 请求云控数据的域名 */ - (void)setDomainForReporting:(nullable NSString *)report onlineConfig:(nullable NSString *)config; ///--------------------------------------------------------------------------------------- /// @name 自定义事件统计 ///--------------------------------------------------------------------------------------- /** * 使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID * @param event 自定义事件实例 */ - (void)onEvent:(nonnull QHSCustomEvent *)event; /** * 数据优先级为L5,采样类型是A的计数事件发生一次 * 使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID * @param eventId 事件ID */ - (void)onTimeEvent:(nonnull NSString *)eventId; /** * 远程推送事件 * @param pushId 远程推送信息的标识 * @param type 推送事件类型 * @param label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台会生成和pushId同名的标签. */ - (void)onPushEvent:(nonnull NSString *)pushId type:(QHSPushType)type label:(nullable NSString *)label; /**在登录成功后调用 * 使用sign-In函数后,如果结束该UID的统计,需要调用sign-Off函数 * * @param userId : 用户登录ID * @param provider : 不能以下划线"_"开头,使用大写字母和数字标识; 如果是上市公司,建议使用股票代码。 */ - (void)profileSignInWithUID:(nonnull NSString *)userId provider:(nullable NSString *)provider; - (void)profileSignInWithUID:(nonnull NSString *)userId; /** 在注销成功后调用 * */ - (void)profileSignOff; /** 在注册成功后调用 @param accountId 注册的账号唯一标识.可能是useriId,email等 @param provider 注册的账号来源.可能是微信,微博等 @param props 其它扩展属性 */ - (void)onRegister:(nonnull NSString *)accountId andAccountProvider:(nullable NSString *)provider andProps:(nullable NSDictionary *)props; - (void)onRegister:(nonnull NSString *)accountId andProps:(nullable NSDictionary *)props; /** 在支付完成后调用 @param item 商品名称或编号 @param amount 支付金额 @param props 其它扩展属性 */ - (void)onPay:(nullable NSString *)item andAmount:(double)amount AndProps:(nullable NSDictionary *)props; /** 成功下单后调用 @param transactionId 唯一交易流水号 @param currenyType 货币类型 人民币 CNY 按ISO 4217标准 @param currencyAmount 交易金额 */ - (void)onOrder:(nonnull NSString *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCurrencyAmount:(nullable NSString *)currencyAmount; #pragma mark 视频直播和观看功能 /** * 视频直播 * @param vid 视频id * 返回值为QHSLiveEvent实例化对象 */ - (nonnull QHSLiveEvent *)liveEventWithId:(nonnull NSString *)vid type:(QHSType)type; /** * @param event QHSLiveEvent对象 * @param dataLevel 数据优先级 */ - (void)onLiveEvent:(nonnull QHSLiveEvent *)event dataLevel:(QHSDataLevel)dataLevel; - (void)onLiveEvent:(nonnull QHSLiveEvent *)event; /** * 视频观看 * @param vid 视频id * 返回值为QHSPlayEvent实例化对象 */ - (nonnull QHSPlayEvent *)playEventWithId:(nonnull NSString *)vid type:(QHSType)type; /** * @param event QHSPlayEvent对象 * @param dataLevel 数据优先级 */ - (void)onPlayEvent:(nonnull QHSPlayEvent *)event dataLevel:(QHSDataLevel)dataLevel; - (void)onPlayEvent:(nonnull QHSPlayEvent *)event; @end
24.07
226
(translation_unit) "//\n// QHSStatAgent.h\n// QHSAnalyticsSdk\n//\n// Created by sunyimin on 16/5/23.\n// Copyright © 2016年 北京奇虎科技有限公司. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "QHSConfiguration.h"\n#import "QHSCustomEvent.h"\n#import "QHSLive.h"\n\n@interface QHSStatAgent : NSObject\n\n///---------------------------------------------------------------------------------------\n/// @name 设置\n///---------------------------------------------------------------------------------------\n\n/**\n * 设置是否打印sdk的log信息\n *\n * @param isEnabled BOOL类型 默认 NO 设置为YES,SDK 会输出log信息,记得release产品时要设置回NO.\n */\n- (void)setLogEnabled:(BOOL)isEnabled;\n\n\n/**\n * 设置打印数据监控信息\n *\n * @param debug BOOL类型 默认 NO\n */\n- (void)setDebugMode:(BOOL)debug;\n\n\n/**\n* 设置启用广告监测功能开关\n*\n* @param isReproted BOOL类型 默认 NO\n*/\n- (void)setReportADDataEnabled:(BOOL)isReproted;\n\n\n///---------------------------------------------------------------------------------------\n/// @name 开启统计\n///---------------------------------------------------------------------------------------\n\n/**\n * 开启sdk统计,默认以下次启动方式发送log\n *\n * @param appKey 在QDAS上注册app的key\n * @param policy 发送策略\n * @param channelId 渠道名称,为nil或@""时,默认会被被当作@"App Store"渠道\n */\n+(nonnull QHSStatAgent *)startWithappKey:(nonnull NSString *)appKey reportPolicy:(QHSReportPolicy)policy channelId:(nullable NSString *)channelId;\n\n\n/**\n * 获取m2值,只生成一次uuid存入keychain中,下次直接从keychain中获取。\n *\n * @return 返回keychain中读取的uuid\n */\n- (nullable NSString *)getM2;\n\n\n/**\n * 手动设置app当前版本信息\n *\n * @param appVersion app当前版本信息\n */\n- (void)setappVersion:(nonnull NSString *)appVersion;\n\n\n/**\n * 为了更精确的统计用户地理位置,可以调用此方法传入经纬度信息\n 需要链接 CoreLocation.framework 并且 #import <CoreLocation/CoreLocation.h>\n *\n * @param latitude 纬度\n * @param longitude 经度\n */\n- (void)setLocationWithLatitude:(double)latitude longitude:(double)longitude;\n\n\n/**\n * 设置用户id\n *\n * @param userId 字符串类型\n */\n- (void)setUserId:(nullable NSString *)userId;\n\n\n/**\n * 设置tag值\n *\n * @param tag 字符串类型\n */\n- (void)setTag:(nullable NSString *)tag;\n\n\n/**\n * 设置多个tag值在header.ext里存放\n *\n * @param tagValue tag值 如果传空值则将把之前的赋值删除\n * @param tagIndex tag的key\n */\n- (void)setExtraTag:(nullable NSString *)tagValue index:(QHSExtraTagIndex)tagIndex;\n\n/**\n * 设置发送策略\n *\n * @param reportPolicy 发送策略\n */\n- (void)setReportPolicy:(QHSReportPolicy)reportPolicy;\n\n\n/**\n * 设置上报当前用户位置信息\n *\n * @param isEnabled BOOL类型 默认 NO\n */\n- (void)setLocationReportEnabled:(BOOL)isEnabled;\n\n\n/**\n * 设置自动定位位置信息\n *\n * @param isEnabled BOOL类型 默认 NO\n */\n- (void)setAutoLocationEnabled:(BOOL)isEnabled;\n\n\n/**\n * 设置使用测试版本的云控(使用时注意)\n *\n * @param isBeta BOOL类型 默认 NO 记得release产品时要设置回NO.\n */\n- (void)setOnlineConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * 设置A/B Test:本次test设置名字,然后通过设置不同tag值。\n *\n * @param name 标示\n * @param tag 类型\n */\n- (void)setABTestName:(nonnull NSString *)name andValue:(QHSAbTestTag)tag;\n\n/**\n * 设置域名,包括前缀部分,比如“https://abc.com”\n *\n * @param report 上报数据的域名\n * @param config 请求云控数据的域名\n */\n- (void)setDomainForReporting:(nullable NSString *)report onlineConfig:(nullable NSString *)config;\n\n///---------------------------------------------------------------------------------------\n/// @name 自定义事件统计\n///---------------------------------------------------------------------------------------\n\n\n/**\n * 使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID\n * @param event 自定义事件实例\n */\n- (void)onEvent:(nonnull QHSCustomEvent *)event;\n\n\n/**\n * 数据优先级为L5,采样类型是A的计数事件发生一次\n * 使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID\n * @param eventId 事件ID\n */\n- (void)onTimeEvent:(nonnull NSString *)eventId;\n\n\n/**\n * 远程推送事件\n * @param pushId 远程推送信息的标识\n * @param type 推送事件类型\n * @param label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台会生成和pushId同名的标签.\n */\n- (void)onPushEvent:(nonnull NSString *)pushId type:(QHSPushType)type label:(nullable NSString *)label;\n\n\n/**在登录成功后调用\n * 使用sign-In函数后,如果结束该UID的统计,需要调用sign-Off函数\n *\n * @param userId : 用户登录ID\n * @param provider : 不能以下划线"_"开头,使用大写字母和数字标识; 如果是上市公司,建议使用股票代码。\n */\n- (void)profileSignInWithUID:(nonnull NSString *)userId provider:(nullable NSString *)provider;\n\n- (void)profileSignInWithUID:(nonnull NSString *)userId;\n\n\n/** 在注销成功后调用\n *\n */\n- (void)profileSignOff;\n\n\n/**\n 在注册成功后调用\n\n @param accountId 注册的账号唯一标识.可能是useriId,email等\n @param provider 注册的账号来源.可能是微信,微博等\n @param props 其它扩展属性\n */\n- (void)onRegister:(nonnull NSString *)accountId andAccountProvider:(nullable NSString *)provider andProps:(nullable NSDictionary *)props;\n\n- (void)onRegister:(nonnull NSString *)accountId andProps:(nullable NSDictionary *)props;\n\n\n/**\n 在支付完成后调用\n\n @param item 商品名称或编号\n @param amount 支付金额\n @param props 其它扩展属性\n */\n- (void)onPay:(nullable NSString *)item andAmount:(double)amount AndProps:(nullable NSDictionary *)props;\n\n\n\n/**\n 成功下单后调用\n\n @param transactionId 唯一交易流水号\n @param currenyType 货币类型 人民币 CNY 按ISO 4217标准\n @param currencyAmount 交易金额\n */\n- (void)onOrder:(nonnull NSString *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCurrencyAmount:(nullable NSString *)currencyAmount;\n\n\n#pragma mark 视频直播和观看功能\n/**\n * 视频直播\n * @param vid 视频id\n * 返回值为QHSLiveEvent实例化对象\n */\n- (nonnull QHSLiveEvent *)liveEventWithId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n* @param event QHSLiveEvent对象\n* @param dataLevel 数据优先级\n*/\n- (void)onLiveEvent:(nonnull QHSLiveEvent *)event dataLevel:(QHSDataLevel)dataLevel;\n- (void)onLiveEvent:(nonnull QHSLiveEvent *)event;\n\n\n/**\n * 视频观看\n * @param vid 视频id\n * 返回值为QHSPlayEvent实例化对象\n */\n- (nonnull QHSPlayEvent *)playEventWithId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n * @param event QHSPlayEvent对象\n * @param dataLevel 数据优先级\n */\n- (void)onPlayEvent:(nonnull QHSPlayEvent *)event dataLevel:(QHSDataLevel)dataLevel;\n\n- (void)onPlayEvent:(nonnull QHSPlayEvent *)event;\n\n\n@end\n" (comment) "//" (comment) "// QHSStatAgent.h" (comment) "// QHSAnalyticsSdk" (comment) "//" (comment) "// Created by sunyimin on 16/5/23." (comment) "// Copyright © 2016年 北京奇虎科技有限公司. All rights reserved.\n//\n\n#import <Foundatio" (comment) "/F" (preproc_call) "ndation.h>\n#import "QHSConfigurati" (preproc_directive) "ndation" (preproc_arg) "h>\n#import "QHSConfigurat" (preproc_call) "on.h"\n#import "QHSCustomEvent" (preproc_directive) "on.h"\n#" (preproc_arg) "mport "QHSCustomEven" (preproc_call) ".h"\n#import "QHSLive.h"\n\n@i" (preproc_directive) ".h"\n#im" (preproc_arg) "ort "QHSLive.h"\n\n@" (preproc_call) "nterface QHSStatAgen" (preproc_directive) "nterfac" (preproc_arg) " QHSStatAge" (ERROR) " : NSObject\n\n///------------------" (ERROR) " " (type_identifier) ": NSObjec" (identifier) "\n\n///-------" (:) "-" (identifier) "--------" (comment) "-------------------------------------------------------------------\n/// @name 设置\n///-----" (comment) "-----------------" (comment) "---------------------------------------------------------------\n\n/**\n * 设置是否打印sdk的log信息\n " (comment) " * @param isEnabled BOOL类型 默认 NO 设置为YES,SDK 会输出log信息,记得release产品时要设置回NO.\n */\n- (void)setLogEnabled:(BOOL)isEnabled;\n\n\n/**\n * 设置打印数据监控信息\n *\n * @param debug BOOL类型" (expression_statement) "默认 NO\n */\n- (void)setDebugMode:(BOOL)d" (unary_expression) "默认 NO\n */\n- (void)set" (-) "默" (cast_expression) " NO\n */\n- (void)set" (() " " (type_descriptor) "NO\n " (primitive_type) "NO\n " ()) "*" (identifier) "/\n- (void)set" (ERROR) "DebugMode:(BOOL)" (:) "D" (() "e" (identifier) "bugM" ()) "o" (identifier) "de:(BOOL)" (;) "d" (comment) "g;\n\n\n/**\n* 设置启用广告监测功能开关\n*\n* @param isReproted BOOL类型 默认 NO\n*/\n- (void)setReportAD" (expression_statement) "ataEnabled:(BOOL)isReproted;\n\n\n//" (unary_expression) "ataEnabled:(BOOL)isR" (-) "a" (cast_expression) "aEnabled:(BOOL)isR" (() "a" (type_descriptor) "Enab" (primitive_type) "Enab" ()) "l" (identifier) "ed:(BOOL)isR" (ERROR) "eproted;\n\n\n/" (:) "e" (() "p" (identifier) "rote" ()) "d" (identifier) ";\n\n\n/" (;) "/" (comment) "-------------------------------------------------------------------------------------\n/// " (expression_statement) "name 开启统计\n///----------------------------------" (unary_expression) "name 开启统计\n///----------------" (-) "n" (cast_expression) "me 开启统计\n///----------------" (() "m" (type_descriptor) "e 开" (primitive_type) "e 开" ()) "启" (identifier) "统计\n///----------------" (ERROR) "-----------------" (:) "-" (() "-" (identifier) "----" ()) "-" (identifier) "----------" (;) "-" (comment) "--------------------------------------------------\n\n/**\n * 开启sdk统计,默认以下次启动方式发送log\n *\n * " (comment) "param appKey 在QDAS上注" (comment) "app的key\n * @param policy 发送策略\n * @param channelId 渠道名称,为nil或@""时,默认会被被当作@"App Store"渠" (comment) " */\n+(nonnull QHSStatAgent *)startWithappKey:(nonnull NSString *)appKey reportPolicy:(QHSReportPolicy)policy channelId:(nullable NSString *)channelId;\n\n\n/**\n * 获取m2值,只生成一次uuid存入keychain中,下次直接从keychain中获取。\n *\n * @return 返回keychain中读取的uuid" (ERROR) " */\n- (nullable NSString *)getM2;\n\n\n/**\n * 手动设置app当前版本信息\n *\n * @param appVersion " (unary_expression) " */\n- (nullable NSString *)getM2;\n\n\n/**\n" (+) " " (cast_expression) "*/\n- (nullable NSString *)getM2;\n\n\n/**\n" (() "*" (ERROR) "/\n- (nu" (identifier) "/\n- (nu" (type_descriptor) "lable NSString" (type_identifier) "lable NSStri" (abstract_pointer_declarator) "g" (*) "g" ()) " " (identifier) "*)getM2;\n\n\n/**\n" (:) " " (() "*" (identifier) " 手动设置ap" (binary_expression) "当前版本信息\n *\n * @param appVersio" (identifier) "当前版本信息\n " (*) "\n" (ERROR) " * @pa" ()) " " (identifier) "* @pa" (identifier) "am appVersio" (:) "n" (() " " (declaration) "app当前版本信息\n */\n- (void)" (type_identifier) "app当前版本信息\n */\n-" (ERROR) " " ()) " " (identifier) "(void)" (;) "" (labeled_statement) "etappVersion:(nonnull NSString *)appVersi" (statement_identifier) "etappVers" (:) "i" (expression_statement) "on:(nonnull NSString *)appVersi" (cast_expression) "on:(nonnull NSString *)appVers" (() "o" (ERROR) "n:(nonnu" (identifier) "n:(nonnu" (type_descriptor) "l NSString" (type_identifier) "l NSStri" (abstract_pointer_declarator) "g" (*) "g" ()) " " (identifier) "*)appVers" (;) "i" (comment) "\n\n\n/**\n * 为了更精确的统计用户地理位置,可以调用此方法传入经纬度信息\n 需要链接 CoreLocation.framework 并且 #import <CoreLocation/CoreLocation.h>\n *\n * @param latitude 纬度\n * @para" (expression_statement) " longitude 经度\n */\n- (void)set" (unary_expression) " longitude 经度\n */\n- (void)se" (-) " " (cast_expression) "ongitude 经度\n */\n- (void)se" (() "o" (ERROR) "ngitude " (identifier) "ngitude " (type_descriptor) "度\n */\n- (v" (type_identifier) "度\n */\n- " (abstract_pointer_declarator) "v" (*) "v" ()) "o" (identifier) "id)se" (;) "t" (comment) "ationWithLatitude:(double)latitude longitude:(double)longitude;\n\n\n/**\n * 设置用户id\n *\n * @pa" (ERROR) "am userId 字符串类型\n */\n- (void)setUserId:(nullable NSSt" (unary_expression) "am userId 字符串类型\n */\n-" (-) "a" (cast_expression) " userId 字符串类型\n */\n-" (() " " (type_descriptor) "user" (primitive_type) "user" ()) "I" (identifier) "d 字符串类型\n */\n-" (:) " " (() "(" (identifier) "void)se" (binary_expression) "UserId:(nullable NSSt" (identifier) "UserId:(" (*) "u" (ERROR) "l" ()) "l" (identifier) "lable NSSt" (expression_statement) "r" (;) "r" (comment) " *)userId;\n\n\n/**\n * 设置tag值\n *\n * @param tag 字符串类型\n */\n- (void)setTag:(nullable NSString *)tag;\n\n\n/**\n * 设置多个tag值在header.ext里存放\n *\n * @param tagValue tag值 如果传空值则将把之前的赋值删除\n * @param tagIndex tag的key\n */\n- (void)setExtraTag:(nullable N" (ERROR) "String *)tagValue index:(QHSExtraTagIndex)tagIndex;\n\n/**\n * " (unary_expression) "String *)tagValue index:(QHSExt" (-) "S" (cast_expression) "ring *)tagValue index:(QHSExt" (() "r" (type_descriptor) "ing " (primitive_type) "ing " ()) "*" (identifier) ")tagValue index:(QHSExt" (:) "r" (() "a" (primitive_type) "TagInd" ()) "e" (type_identifier) "x)tagInd" (identifier) "x;\n\n/**\n " (:) "*" (() " " (declaration) " 设置发送策略\n *\n * @p" (primitive_type) " 设置发送策" (ERROR) "略" ()) "略" (identifier) "\n *\n * @" (;) "p" (comment) "m reportPolicy 发送策略\n */\n- (void)setReportPolicy:(QHSReportPolic" (ERROR) ")reportPolicy;\n\n\n/**\n * 设置上报当前用户位置信息\n *\n * " (unary_expression) ")reportPolicy;\n\n\n" (-) ")" (cast_expression) "eportPolicy;\n\n\n" (() "e" (type_descriptor) "port" (primitive_type) "port" ()) "P" (identifier) "olicy;\n\n\n" (:) "/" (() "*" (identifier) "*\n * 设置" (binary_expression) "报当前用户位置信息\n *\n * " (identifier) "报当前用户位置信" (*) "\n" (ERROR) " " ()) " " (identifier) "*\n * " (expression_statement) "@" (;) "@" (comment) "am isEnabled BOOL类型 默认 NO\n */\n- (void)setLocationReportEna" (ERROR) "led:(BOOL)isEnabled;\n\n\n/**\n * 设置自动定位位置" (unary_expression) "led:(BOOL)isEn" (-) "l" (cast_expression) "d:(BOOL)isEn" (() "d" (type_descriptor) ":(BO" (primitive_type) ":(BO" ()) "O" (identifier) "L)isEn" (:) "a" (() "b" (identifier) "led;\n\n\n/" (binary_expression) "*\n * 设置自动定位位置" (identifier) "*\n * 设置" (*) "动" (ERROR) "定" ()) "定" (identifier) "位位置" (expression_statement) "信" (;) "信" (comment) "*\n * @param isEnabled BOOL类型 默认 NO\n */\n- (void)setAutoLocationEnabled:(BOOL)isEnabled;\n\n\n/**\n * 设置使用测试版本的云控(使用时注意)\n *\n * @param isBeta BOOL类型 默认 NO 记得release产" (ERROR) "时要设置回NO.\n */\n- (void)setOnlineConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * 设置A/B Test:本次test设置名字,然后通过设置不同tag值。\n *\n * @param name 标示\n * @param tag 类型\n */\n- (void)setABTestName:(non" (unary_expression) "时要设置回NO.\n */\n- (voi" (-) "时" (cast_expression) "设置回NO.\n */\n- (voi" (() "设" (type_descriptor) "置回NO" (primitive_type) "置回NO" ()) "." (identifier) "\n */\n- (voi" (:) "d" (() ")" (identifier) "setOnlin" (binary_expression) "ConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * 设置A/B Test:本次test设置名字,然后通过设置不同tag值。\n *\n * @param name 标示\n * @param tag 类型\n */\n- (void)setABTestName:(n" (binary_expression) "ConfigBeBetaVersion" (identifier) "ConfigBe" (*) "e" (ERROR) "t" ()) "t" (identifier) "aVersion" (ERROR) "(BOOL)isBeta;\n\n\n/**\n * 设置A/B Tes" (identifier) "(BOOL" (:) ")" (() "i" (identifier) "sBeta;\n\n\n/**\n * " ()) " " (identifier) "设置A/B Te" (;) "s" (comment) "本次test设置名字,然后通过设置不同tag值。\n *\n * @param name 标示\n * @param tag 类型\n */\n" (-) " " (cast_expression) "void)setABTestName:(n" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etABTestName:(n" (:) "o" (() "n" (declaration) "null NSString *)name andValue" (type_identifier) "null NSString *" (ERROR) ")" ()) ")" (identifier) "name andValu" (;) "e" (comment) "HSAbTestTag)tag;\n\n/**\n * 设置域名,包括前缀部分,比如“https://abc.com”\n *\n * @param report 上报数据的域名\n * @p" (expression_statement) "ram config 请求云控数据的域名\n */\n- (void)setDomainForRepo" (unary_expression) "ram config 请求云控数据的域名\n */\n- (void" (-) "r" (cast_expression) "m config 请求云控数据的域名\n */\n- (void" (() "m" (type_descriptor) " con" (primitive_type) " con" ()) "f" (identifier) "ig 请求云控数据的域名\n */\n- (void" (ERROR) ")setDomainForRep" (:) ")" (() "s" (identifier) "etDo" ()) "m" (identifier) "ainForRep" (;) "o" (comment) "ng:(nullable NSString *)report onlineConfig:(nullable NSString *)config;\n\n///----------" (expression_statement) "-----------------------------------------------" (unary_expression) "------------------------------" (-) "-" (cast_expression) "----------------------------" (() "-" (type_descriptor) "----" (primitive_type) "----" ()) "-" (identifier) "----------------------" (ERROR) "----------------" (:) "-" (() "-" (identifier) "----" ()) "-" (identifier) "---------" (;) "-" (comment) "--------------------------\n/// @name 自定义事件统计\n///---------------------------------------------------------------------------------------\n\n\n/**\n * " (expression_statement) "使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的" (unary_expression) "使用前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件" (-) "使" (cast_expression) "前,请先到QDAS管理后台的设置->编辑自定义事件 中添加相应的事件" (() "前" (type_descriptor) ",请先到" (primitive_type) ",请先到" ()) "Q" (identifier) "DAS管理后台的设置->编辑自定义事件 中添加相应的事件" (ERROR) "ID,然后在工程中传入相应" (:) "I" (() "D" (identifier) ",然后在" ()) "工" (identifier) "程中传入相应" (;) "的" (comment) "D\n * @param event 自定义事件实例\n */\n- (void)onEvent:(nonnull QHSCustomEvent *)event;\n\n\n/**\n * 数据优先级为L5,采样类型是A的计数事件发生一次\n * 使用前,请先到QDAS管理后台的设" (ERROR) "->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID\n * @param eventId 事" (unary_expression) "->编辑自定义事件 中添加相应的事件ID," (-) "-" (cast_expression) "编辑自定义事件 中添加相应的事件ID," (() "编" (type_descriptor) "辑自定义" (primitive_type) "辑自定义" ()) "事" (identifier) "件 中添加相应的事件ID," (:) "然" (() "后" (identifier) "在工程中传入相" (binary_expression) "的事件ID\n * @param eventId" (identifier) "的事件ID\n *" (*) " " (ERROR) "@para" ()) "@" (identifier) "para" (identifier) " eventId" (:) " " (() "事" (declaration) "件ID\n */\n- (void)o" (type_identifier) "件ID\n */\n- (v" (ERROR) "o" ()) "o" (identifier) "id)" (;) "o" (comment) "imeEvent:(nonnull NSString *)eventId;\n\n\n/**\n * 远程推送事件\n * @param pushId 远程推送信息的标识\n * @param type 推送事件类型\n * @param label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台" (ERROR) "生成和pushId同名的标签.\n */\n- (void)onPushEvent:(nonnull NSString *)pushId type:" (unary_expression) "生成和pushId同名的标签.\n */\n- (void)o" (-) "生" (cast_expression) "和pushId同名的标签.\n */\n- (void)o" (() "和" (type_descriptor) "push" (primitive_type) "push" ()) "I" (identifier) "d同名的标签.\n */\n- (void)o" (:) "n" (() "P" (identifier) "ushEvent" (binary_expression) "(nonnull NSString *)pushId typ" (identifier) "(nonnull" (*) "N" (ERROR) "SString" ()) "S" (identifier) "String" (identifier) "*)pushId typ" (:) "e" (() ":" (declaration) "(QHSPushType)type label:(nu" (type_identifier) "(QHSPush" (identifier) "ype)type" (ERROR) "label:(n" (*) "l" ()) "a" (identifier) "bel:(n" (;) "u" (comment) "able NSString *)label;\n\n\n/**在登录成功后调用\n * 使用sign-In函数后,如果结束该UID的统计,需要调用sign-Off函数\n *\n * @p" (comment) "ram userId : 用户登录ID\n * @param p" (comment) "ovider : 不能以下划线"_"开头,使用大写字母和数字标识; 如果是上市公司,建议使用股票代码。\n */\n- (void)profileSignInWithUID:(non" (comment) "l NSString *)userId provider:(nullable NSString *)provider;\n\n- (void)profileSignInWithUID:(nonnull NSString *)userId;\n\n\n/** 在注销成功后调用\n *\n */\n- (void)profileSignOff;\n\n\n/**\n 在注册成功后调用\n\n @param ac" (ERROR) "ountId 注册的账号唯一标识.可能是useriId,email等\n @param prov" (unary_expression) "ountId 注册的账号唯一标" (-) "o" (cast_expression) "ntId 注册的账号唯一标" (() "n" (type_descriptor) "tId " (primitive_type) "tId " ()) "注" (identifier) "册的账号唯一标" (:) "识" (() "." (identifier) "可能是user" (binary_expression) "Id,email等\n @param prov" (identifier) "Id,email等\n @pa" (*) "a" (ERROR) "m" ()) "m" (identifier) " prov" (expression_statement) "i" (;) "i" (comment) " 注册的账号来源.可能是微信,微博等\n @param props 其它扩展属性\n */\n- (void)onRegister:(nonnull NSString *)accountId andAccountProvider:(nullable NSString *)provider andProps:(nullable NSDictionary *)props;\n\n- (void)onRegister:(nonnull NSString *)accountId andProps:(nullable" (ERROR) "NSDictionary *)props;\n\n\n/**\n 在支付完成后调用\n\n @param " (unary_expression) "NSDictionary *)prop" (-) "N" (cast_expression) "Dictionary *)prop" (() "D" (type_descriptor) "icti" (primitive_type) "icti" ()) "o" (identifier) "nary *)prop" (:) "s" (() ";" (identifier) "\n\n\n/**\n" (binary_expression) "在支付完成后调用\n\n @param " (identifier) "在支付完成后调用" (*) "\n" (ERROR) " " ()) " " (identifier) "@param " (expression_statement) "i" (;) "i" (comment) " 商品名称或编号\n @param amount 支付金额\n @param props 其它扩展属性\n */\n- (void)onPay:(nullable NSString *)item andAmount:(double)amount AndProps:(nullable NSDictionary *)props;\n\n\n\n/**\n 成功下单后调用\n\n @param transactionId 唯一交易流水号\n @param currenyType 货币类型 人民币 CNY 按ISO 4217标准\n @param currencyAmount 交易金额\n */\n" (ERROR) " (void)onOrder:(nonnull NSString *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCur" (unary_expression) " (void)onOrder:(non" (-) " " (cast_expression) "void)onOrder:(non" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "o" (identifier) "nOrder:(non" (:) "n" (() "u" (identifier) "ll NSSt" (binary_expression) "ing *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCur" (binary_expression) "ing *)transaction" (identifier) "ing *)tr" (*) "n" (ERROR) "s" ()) "s" (identifier) "action" (ERROR) "d andCurrenyType:(nonnull NSString *)currenyTyp" (identifier) "d an" (:) "d" (() "C" (identifier) "urrenyType:" ()) "(" (identifier) "nonn" (identifier) "ll NS" (:) "S" (() "t" (identifier) "ring *)c" (identifier) "rrenyTyp" (*) " " (ERROR) "a" ()) "a" (identifier) "ndCur" (expression_statement) "r" (;) "r" (comment) "yAmount:(nullable NSString *)currencyAmount;\n\n\n#pragma mark 视频直播和观看功能\n/**\n * 视频直播\n * @param vid 视频id\n * 返回值为QHSLiveEvent实例化对象\n */\n- (nonnull QHSLiveEvent *)liveEventWithId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n* @param event QHSLiveEvent对象\n* @param dataLevel 数据优先级\n*/\n- (void)onLiveEv" (ERROR) "nt:(nonnull QHSLiveEvent *)event dataLevel:(QHSDataLevel)dataLevel" (unary_expression) "nt:(nonnull QHSLiveEvent *)e" (-) "n" (cast_expression) ":(nonnull QHSLiveEvent *)e" (() ":" (type_descriptor) "(non" (primitive_type) "(non" ()) "n" (identifier) "ull QHSLiveEvent *)e" (:) "v" (() "e" (identifier) "nt data" (binary_expression) "evel:(QHSDataLevel)dataLev" (identifier) "evel:(QH" (*) "D" (ERROR) "ataLeve" ()) "a" (identifier) "taLeve" (identifier) ")dataLev" (:) "e" (() "l" (declaration) ";\n- (void)onLiveEvent:(nonnul" (type_identifier) ";\n- (voi" (identifier) ")onLiveE" (ERROR) "ent:(nonnu" (*) "e" ()) "n" (identifier) "t:(nonnu" (;) "l" (ERROR) "QHSLiveEvent *)event;\n\n\n/**\n *" (unary_expression) "QHSLiveEvent *)event;\n\n\n/**\n" (-) "Q" (cast_expression) "SLiveEvent *)event;\n\n\n/**\n" (() "S" (type_descriptor) "Live" (primitive_type) "Live" ()) "E" (identifier) "vent *)event;\n\n\n/**\n" (:) " " (() "*" (declaration) " 视频观看\n * @param vid 视频id\n " (type_identifier) " 视频观看\n " (identifier) " @param " (ERROR) "id 视频id\n" (*) "i" ()) "d" (identifier) " 视频id\n" (;) " " (comment) "回值为QHSPlayEvent实例化对象\n */\n- (nonnull" (expression_statement) "QHSPlayEvent *)playEven" (unary_expression) "QHSPlayEvent *)playEve" (-) "Q" (cast_expression) "SPlayEvent *)playEve" (() "S" (type_descriptor) "Play" (primitive_type) "Play" ()) "E" (identifier) "vent *)playEve" (;) "n" (comment) "thId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n * @param event QHSPlayEvent对象\n * @param dataLevel 数据优先级\n */\n- (void)onPlayEvent:(nonnull QHSPlayEvent *)event dataLevel:(QHSDataLevel)dataLevel;\n\n- (" (ERROR) "oid)onPlayEvent:(nonnull QHSPlayEvent *)event;\n\n\n@end\n" (unary_expression) "oid)onPlayEvent:(n" (-) "o" (cast_expression) "d)onPlayEvent:(n" (() "d" (type_descriptor) ")onP" (primitive_type) ")onP" ()) "l" (identifier) "ayEvent:(n" (:) "o" (() "n" (identifier) "null QH" (binary_expression) "PlayEvent *)event;\n\n\n@end\n" (identifier) "PlayEven" (*) " " (ERROR) "*)event;\n\n" ()) "*" (identifier) ")event;\n\n" (identifier) "@end\n" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" (identifier) "" (*) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (identifier) "" (identifier) "" (*) "" ()) "" (identifier) "" (;) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" (identifier) "" (*) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (identifier) "" (identifier) "" (*) "" ()) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (primitive_type) "" (ERROR) "" ()) "" (identifier) "" (;) "" (labeled_statement) "" (statement_identifier) "" (:) "" (expression_statement) "" (cast_expression) "" (() "" (ERROR) "" (identifier) "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" (identifier) "" (*) "" ()) "" (identifier) "" (;) "" (labeled_statement) "" (statement_identifier) "" (:) "" (expression_statement) "" (cast_expression) "" (() "" (ERROR) "" (identifier) "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (;) "" (preproc_call) "" (preproc_directive) "" (preproc_arg) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (ERROR) "" (identifier) "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" ()) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (expression_statement) "" (;) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (ERROR) "" (identifier) "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" ()) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (identifier) "" (binary_expression) "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (:) "" (() "" (declaration) "" (type_identifier) "" (identifier) "" (ERROR) "" (*) "" ()) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (expression_statement) "" (identifier) "" (;) ""
848
78
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 24.07, "nodes": 531, "errors": 0, "source_hash": "5cf9a4479d69680f63fa982335f823461e8227ce48d10342d14de08dffed5317", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ndation.h>\n#import \"QHSConfigurati", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ndation", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "h>\n#import \"QHSConfigurat", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "on.h\"\n#import \"QHSCustomEvent", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "on.h\"\n#", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "mport \"QHSCustomEven", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 28}}, {"id": 6, "type": "preproc_call", "text": ".h\"\n#import \"QHSLive.h\"\n\n@i", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": ".h\"\n#im", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "ort \"QHSLive.h\"\n\n@", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 26}}, {"id": 9, "type": "preproc_call", "text": "nterface QHSStatAgen", "parent": null, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "nterfac", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": " QHSStatAge", "parent": 9, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 19}}, {"id": 12, "type": "ERROR", "text": " : NSObject\n\n///------------------", "parent": null, "children": [13, 14, 15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 34}}, {"id": 13, "type": "ERROR", "text": " ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 14, "type": "type_identifier", "text": ": NSObjec", "parent": 12, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 15, "type": "identifier", "text": "\n\n///-------", "parent": 12, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 23}}, {"id": 16, "type": "identifier", "text": "--------", "parent": 12, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 34}}, {"id": 17, "type": "unary_expression", "text": "\u9ed8\u8ba4 NO\n */\n- (void)set", "parent": null, "children": [18, 19], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 21}}, {"id": 18, "type": "-", "text": "\u9ed8", "parent": 17, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 19, "type": "cast_expression", "text": " NO\n */\n- (void)set", "parent": 17, "children": [20, 22], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 21}}, {"id": 20, "type": "type_descriptor", "text": "NO\n ", "parent": 19, "children": [21], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 21, "type": "primitive_type", "text": "NO\n ", "parent": 20, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 22, "type": "identifier", "text": "/\n- (void)set", "parent": 19, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 21}}, {"id": 23, "type": "ERROR", "text": "DebugMode:(BOOL)", "parent": null, "children": [24, 25], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 37}}, {"id": 24, "type": "identifier", "text": "bugM", "parent": 23, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 27}}, {"id": 25, "type": "identifier", "text": "de:(BOOL)", "parent": 23, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 37}}, {"id": 26, "type": "unary_expression", "text": "ataEnabled:(BOOL)isR", "parent": null, "children": [27, 28], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 20}}, {"id": 27, "type": "-", "text": "a", "parent": 26, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 28, "type": "cast_expression", "text": "aEnabled:(BOOL)isR", "parent": 26, "children": [29, 31], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 20}}, {"id": 29, "type": "type_descriptor", "text": "Enab", "parent": 28, "children": [30], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 30, "type": "primitive_type", "text": "Enab", "parent": 29, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 31, "type": "identifier", "text": "ed:(BOOL)isR", "parent": 28, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 20}}, {"id": 32, "type": "ERROR", "text": "eproted;\n\n\n/", "parent": null, "children": [33, 34], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 32}}, {"id": 33, "type": "identifier", "text": "rote", "parent": 32, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}, {"id": 34, "type": "identifier", "text": ";\n\n\n/", "parent": 32, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 32}}, {"id": 35, "type": "unary_expression", "text": "name \u5f00\u542f\u7edf\u8ba1\n///----------------", "parent": null, "children": [36, 37], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 30}}, {"id": 36, "type": "-", "text": "n", "parent": 35, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 37, "type": "cast_expression", "text": "me \u5f00\u542f\u7edf\u8ba1\n///----------------", "parent": 35, "children": [38, 40], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 30}}, {"id": 38, "type": "type_descriptor", "text": "e \u5f00", "parent": 37, "children": [39], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 39, "type": "primitive_type", "text": "e \u5f00", "parent": 38, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 40, "type": "identifier", "text": "\u7edf\u8ba1\n///----------------", "parent": 37, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 30}}, {"id": 41, "type": "ERROR", "text": "-----------------", "parent": null, "children": [42, 43], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 47}}, {"id": 42, "type": "identifier", "text": "----", "parent": 41, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 36}}, {"id": 43, "type": "identifier", "text": "----------", "parent": 41, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 47}}, {"id": 44, "type": "ERROR", "text": " */\n- (nullable NSString *)getM2;\n\n\n/**\n * \u624b\u52a8\u8bbe\u7f6eapp\u5f53\u524d\u7248\u672c\u4fe1\u606f\n *\n * @param appVersion ", "parent": null, "children": [45, 55, 56], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 82}}, {"id": 45, "type": "unary_expression", "text": " */\n- (nullable NSString *)getM2;\n\n\n/**\n", "parent": 44, "children": [46, 47], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 40}}, {"id": 46, "type": "+", "text": " ", "parent": 45, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 47, "type": "cast_expression", "text": "*/\n- (nullable NSString *)getM2;\n\n\n/**\n", "parent": 45, "children": [48, 50, 54], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 40}}, {"id": 48, "type": "ERROR", "text": "/\n- (nu", "parent": 47, "children": [49], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 9}}, {"id": 49, "type": "identifier", "text": "/\n- (nu", "parent": 48, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 9}}, {"id": 50, "type": "type_descriptor", "text": "lable NSString", "parent": 47, "children": [51, 52], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 24}}, {"id": 51, "type": "type_identifier", "text": "lable NSStri", "parent": 50, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 22}}, {"id": 52, "type": "abstract_pointer_declarator", "text": "g", "parent": 50, "children": [53], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 24}}, {"id": 53, "type": "*", "text": "g", "parent": 52, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 24}}, {"id": 54, "type": "identifier", "text": "*)getM2;\n\n\n/**\n", "parent": 47, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 40}}, {"id": 55, "type": "identifier", "text": " \u624b\u52a8\u8bbe\u7f6eap", "parent": 44, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 49}}, {"id": 56, "type": "binary_expression", "text": "\u5f53\u524d\u7248\u672c\u4fe1\u606f\n *\n * @param appVersio", "parent": 44, "children": [57, 58, 59, 61], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 80}}, {"id": 57, "type": "identifier", "text": "\u5f53\u524d\u7248\u672c\u4fe1\u606f\n ", "parent": 56, "children": [], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 58}}, {"id": 58, "type": "*", "text": "\n", "parent": 56, "children": [], "start_point": {"row": 54, "column": 59}, "end_point": {"row": 54, "column": 60}}, {"id": 59, "type": "ERROR", "text": " * @pa", "parent": 56, "children": [60], "start_point": {"row": 54, "column": 60}, "end_point": {"row": 54, "column": 67}}, {"id": 60, "type": "identifier", "text": "* @pa", "parent": 59, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 67}}, {"id": 61, "type": "identifier", "text": "am appVersio", "parent": 56, "children": [], "start_point": {"row": 54, "column": 68}, "end_point": {"row": 54, "column": 80}}, {"id": 62, "type": "declaration", "text": "app\u5f53\u524d\u7248\u672c\u4fe1\u606f\n */\n- (void)", "parent": null, "children": [63, 64, 65], "start_point": {"row": 54, "column": 82}, "end_point": {"row": 54, "column": 104}}, {"id": 63, "type": "type_identifier", "text": "app\u5f53\u524d\u7248\u672c\u4fe1\u606f\n */\n-", "parent": 62, "children": [], "start_point": {"row": 54, "column": 82}, "end_point": {"row": 54, "column": 97}}, {"id": 64, "type": "ERROR", "text": " ", "parent": 62, "children": [], "start_point": {"row": 54, "column": 97}, "end_point": {"row": 54, "column": 98}}, {"id": 65, "type": "identifier", "text": "(void)", "parent": 62, "children": [], "start_point": {"row": 54, "column": 98}, "end_point": {"row": 54, "column": 104}}, {"id": 66, "type": "labeled_statement", "text": "etappVersion:(nonnull NSString *)appVersi", "parent": null, "children": [67], "start_point": {"row": 54, "column": 105}, "end_point": {"row": 54, "column": 146}}, {"id": 67, "type": "statement_identifier", "text": "etappVers", "parent": 66, "children": [], "start_point": {"row": 54, "column": 105}, "end_point": {"row": 54, "column": 114}}, {"id": 68, "type": "cast_expression", "text": "on:(nonnull NSString *)appVers", "parent": 66, "children": [69, 71, 75], "start_point": {"row": 54, "column": 115}, "end_point": {"row": 54, "column": 145}}, {"id": 69, "type": "ERROR", "text": "n:(nonnu", "parent": 68, "children": [70], "start_point": {"row": 54, "column": 116}, "end_point": {"row": 54, "column": 124}}, {"id": 70, "type": "identifier", "text": "n:(nonnu", "parent": 69, "children": [], "start_point": {"row": 54, "column": 116}, "end_point": {"row": 54, "column": 124}}, {"id": 71, "type": "type_descriptor", "text": "l NSString", "parent": 68, "children": [72, 73], "start_point": {"row": 54, "column": 125}, "end_point": {"row": 54, "column": 135}}, {"id": 72, "type": "type_identifier", "text": "l NSStri", "parent": 71, "children": [], "start_point": {"row": 54, "column": 125}, "end_point": {"row": 54, "column": 133}}, {"id": 73, "type": "abstract_pointer_declarator", "text": "g", "parent": 71, "children": [74], "start_point": {"row": 54, "column": 134}, "end_point": {"row": 54, "column": 135}}, {"id": 74, "type": "*", "text": "g", "parent": 73, "children": [], "start_point": {"row": 54, "column": 134}, "end_point": {"row": 54, "column": 135}}, {"id": 75, "type": "identifier", "text": "*)appVers", "parent": 68, "children": [], "start_point": {"row": 54, "column": 136}, "end_point": {"row": 54, "column": 145}}, {"id": 76, "type": "unary_expression", "text": " longitude \u7ecf\u5ea6\n */\n- (void)se", "parent": null, "children": [77, 78], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 28}}, {"id": 77, "type": "-", "text": " ", "parent": 76, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 78, "type": "cast_expression", "text": "ongitude \u7ecf\u5ea6\n */\n- (void)se", "parent": 76, "children": [79, 81, 85], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 28}}, {"id": 79, "type": "ERROR", "text": "ngitude ", "parent": 78, "children": [80], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 11}}, {"id": 80, "type": "identifier", "text": "ngitude ", "parent": 79, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 11}}, {"id": 81, "type": "type_descriptor", "text": "\u5ea6\n */\n- (v", "parent": 78, "children": [82, 83], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 22}}, {"id": 82, "type": "type_identifier", "text": "\u5ea6\n */\n- ", "parent": 81, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 20}}, {"id": 83, "type": "abstract_pointer_declarator", "text": "v", "parent": 81, "children": [84], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 84, "type": "*", "text": "v", "parent": 83, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 85, "type": "identifier", "text": "id)se", "parent": 78, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 28}}, {"id": 86, "type": "ERROR", "text": "am userId \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n- (void)setUserId:(nullable NSSt", "parent": null, "children": [87, 93, 94], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 52}}, {"id": 87, "type": "unary_expression", "text": "am userId \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n-", "parent": 86, "children": [88, 89], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 21}}, {"id": 88, "type": "-", "text": "a", "parent": 87, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 89, "type": "cast_expression", "text": " userId \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n-", "parent": 87, "children": [90, 92], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 21}}, {"id": 90, "type": "type_descriptor", "text": "user", "parent": 89, "children": [91], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 7}}, {"id": 91, "type": "primitive_type", "text": "user", "parent": 90, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 7}}, {"id": 92, "type": "identifier", "text": "d \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n-", "parent": 89, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 21}}, {"id": 93, "type": "identifier", "text": "void)se", "parent": 86, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 30}}, {"id": 94, "type": "binary_expression", "text": "UserId:(nullable NSSt", "parent": 86, "children": [95, 96, 97, 98], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 52}}, {"id": 95, "type": "identifier", "text": "UserId:(", "parent": 94, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 39}}, {"id": 96, "type": "*", "text": "u", "parent": 94, "children": [], "start_point": {"row": 70, "column": 40}, "end_point": {"row": 70, "column": 41}}, {"id": 97, "type": "ERROR", "text": "l", "parent": 94, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 42}}, {"id": 98, "type": "identifier", "text": "lable NSSt", "parent": 94, "children": [], "start_point": {"row": 70, "column": 42}, "end_point": {"row": 70, "column": 52}}, {"id": 99, "type": "ERROR", "text": "String *)tagValue index:(QHSExtraTagIndex)tagIndex;\n\n/**\n * ", "parent": null, "children": [100, 106, 107, 108], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 60}}, {"id": 100, "type": "unary_expression", "text": "String *)tagValue index:(QHSExt", "parent": 99, "children": [101, 102], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 31}}, {"id": 101, "type": "-", "text": "S", "parent": 100, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 1}}, {"id": 102, "type": "cast_expression", "text": "ring *)tagValue index:(QHSExt", "parent": 100, "children": [103, 105], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 31}}, {"id": 103, "type": "type_descriptor", "text": "ing ", "parent": 102, "children": [104], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 7}}, {"id": 104, "type": "primitive_type", "text": "ing ", "parent": 103, "children": [], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 7}}, {"id": 105, "type": "identifier", "text": ")tagValue index:(QHSExt", "parent": 102, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 31}}, {"id": 106, "type": "primitive_type", "text": "TagInd", "parent": 99, "children": [], "start_point": {"row": 80, "column": 33}, "end_point": {"row": 80, "column": 39}}, {"id": 107, "type": "type_identifier", "text": "x)tagInd", "parent": 99, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 48}}, {"id": 108, "type": "identifier", "text": "x;\n\n/**\n ", "parent": 99, "children": [], "start_point": {"row": 80, "column": 49}, "end_point": {"row": 80, "column": 58}}, {"id": 109, "type": "declaration", "text": " \u8bbe\u7f6e\u53d1\u9001\u7b56\u7565\n *\n * @p", "parent": null, "children": [110, 111, 112], "start_point": {"row": 80, "column": 60}, "end_point": {"row": 80, "column": 77}}, {"id": 110, "type": "primitive_type", "text": " \u8bbe\u7f6e\u53d1\u9001\u7b56", "parent": 109, "children": [], "start_point": {"row": 80, "column": 60}, "end_point": {"row": 80, "column": 66}}, {"id": 111, "type": "ERROR", "text": "\u7565", "parent": 109, "children": [], "start_point": {"row": 80, "column": 66}, "end_point": {"row": 80, "column": 67}}, {"id": 112, "type": "identifier", "text": "\n *\n * @", "parent": 109, "children": [], "start_point": {"row": 80, "column": 67}, "end_point": {"row": 80, "column": 76}}, {"id": 113, "type": "ERROR", "text": ")reportPolicy;\n\n\n/**\n * \u8bbe\u7f6e\u4e0a\u62a5\u5f53\u524d\u7528\u6237\u4f4d\u7f6e\u4fe1\u606f\n *\n * ", "parent": null, "children": [114, 119, 120], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 45}}, {"id": 114, "type": "unary_expression", "text": ")reportPolicy;\n\n\n", "parent": 113, "children": [115], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 17}}, {"id": 115, "type": "cast_expression", "text": "eportPolicy;\n\n\n", "parent": 114, "children": [116, 118], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 17}}, {"id": 116, "type": "type_descriptor", "text": "port", "parent": 115, "children": [117], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 7}}, {"id": 117, "type": "primitive_type", "text": "port", "parent": 116, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 7}}, {"id": 118, "type": "identifier", "text": "olicy;\n\n\n", "parent": 115, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 17}}, {"id": 119, "type": "identifier", "text": "*\n * \u8bbe\u7f6e", "parent": 113, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 27}}, {"id": 120, "type": "binary_expression", "text": "\u62a5\u5f53\u524d\u7528\u6237\u4f4d\u7f6e\u4fe1\u606f\n *\n * ", "parent": 113, "children": [121, 122, 123, 124], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 45}}, {"id": 121, "type": "identifier", "text": "\u62a5\u5f53\u524d\u7528\u6237\u4f4d\u7f6e\u4fe1", "parent": 120, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 36}}, {"id": 122, "type": "*", "text": "\n", "parent": 120, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 38}}, {"id": 123, "type": "ERROR", "text": " ", "parent": 120, "children": [], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 39}}, {"id": 124, "type": "identifier", "text": "*\n * ", "parent": 120, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 45}}, {"id": 125, "type": "ERROR", "text": "led:(BOOL)isEnabled;\n\n\n/**\n * \u8bbe\u7f6e\u81ea\u52a8\u5b9a\u4f4d\u4f4d\u7f6e", "parent": null, "children": [126, 132, 133], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 39}}, {"id": 126, "type": "unary_expression", "text": "led:(BOOL)isEn", "parent": 125, "children": [127, 128], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 14}}, {"id": 127, "type": "-", "text": "l", "parent": 126, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 128, "type": "cast_expression", "text": "d:(BOOL)isEn", "parent": 126, "children": [129, 131], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 14}}, {"id": 129, "type": "type_descriptor", "text": ":(BO", "parent": 128, "children": [130], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 7}}, {"id": 130, "type": "primitive_type", "text": ":(BO", "parent": 129, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 7}}, {"id": 131, "type": "identifier", "text": "L)isEn", "parent": 128, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 14}}, {"id": 132, "type": "identifier", "text": "led;\n\n\n/", "parent": 125, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 24}}, {"id": 133, "type": "binary_expression", "text": "*\n * \u8bbe\u7f6e\u81ea\u52a8\u5b9a\u4f4d\u4f4d\u7f6e", "parent": 125, "children": [134, 135, 136, 137], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 39}}, {"id": 134, "type": "identifier", "text": "*\n * \u8bbe\u7f6e", "parent": 133, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 33}}, {"id": 135, "type": "*", "text": "\u52a8", "parent": 133, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 35}}, {"id": 136, "type": "ERROR", "text": "\u5b9a", "parent": 133, "children": [], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 36}}, {"id": 137, "type": "identifier", "text": "\u4f4d\u4f4d\u7f6e", "parent": 133, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 39}}, {"id": 138, "type": "ERROR", "text": "\u65f6\u8981\u8bbe\u7f6e\u56deNO.\n */\n- (void)setOnlineConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * \u8bbe\u7f6eA/B Test\uff1a\u672c\u6b21test\u8bbe\u7f6e\u540d\u5b57\uff0c\u7136\u540e\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540ctag\u503c\u3002\n *\n * @param name \u6807\u793a\n * @param tag \u7c7b\u578b\n */\n- (void)setABTestName:(non", "parent": null, "children": [139, 145, 146], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 112, "column": 25}}, {"id": 139, "type": "unary_expression", "text": "\u65f6\u8981\u8bbe\u7f6e\u56deNO.\n */\n- (voi", "parent": 138, "children": [140, 141], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 19}}, {"id": 140, "type": "-", "text": "\u65f6", "parent": 139, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 141, "type": "cast_expression", "text": "\u8bbe\u7f6e\u56deNO.\n */\n- (voi", "parent": 139, "children": [142, 144], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 19}}, {"id": 142, "type": "type_descriptor", "text": "\u7f6e\u56deNO", "parent": 141, "children": [143], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 7}}, {"id": 143, "type": "primitive_type", "text": "\u7f6e\u56deNO", "parent": 142, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 7}}, {"id": 144, "type": "identifier", "text": "\n */\n- (voi", "parent": 141, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 19}}, {"id": 145, "type": "identifier", "text": "setOnlin", "parent": 138, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 29}}, {"id": 146, "type": "binary_expression", "text": "ConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * \u8bbe\u7f6eA/B Test\uff1a\u672c\u6b21test\u8bbe\u7f6e\u540d\u5b57\uff0c\u7136\u540e\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540ctag\u503c\u3002\n *\n * @param name \u6807\u793a\n * @param tag \u7c7b\u578b\n */\n- (void)setABTestName:(n", "parent": 138, "children": [147, 152, 156, 157], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 112, "column": 23}}, {"id": 147, "type": "binary_expression", "text": "ConfigBeBetaVersion", "parent": 146, "children": [148, 149, 150, 151], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 49}}, {"id": 148, "type": "identifier", "text": "ConfigBe", "parent": 147, "children": [], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 38}}, {"id": 149, "type": "*", "text": "e", "parent": 147, "children": [], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 40}}, {"id": 150, "type": "ERROR", "text": "t", "parent": 147, "children": [], "start_point": {"row": 105, "column": 40}, "end_point": {"row": 105, "column": 41}}, {"id": 151, "type": "identifier", "text": "aVersion", "parent": 147, "children": [], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 49}}, {"id": 152, "type": "ERROR", "text": "(BOOL)isBeta;\n\n\n/**\n * \u8bbe\u7f6eA/B Tes", "parent": 146, "children": [153, 154, 155], "start_point": {"row": 105, "column": 50}, "end_point": {"row": 105, "column": 83}}, {"id": 153, "type": "identifier", "text": "(BOOL", "parent": 152, "children": [], "start_point": {"row": 105, "column": 50}, "end_point": {"row": 105, "column": 55}}, {"id": 154, "type": "identifier", "text": "sBeta;\n\n\n/**\n * ", "parent": 152, "children": [], "start_point": {"row": 105, "column": 57}, "end_point": {"row": 105, "column": 73}}, {"id": 155, "type": "identifier", "text": "\u8bbe\u7f6eA/B Te", "parent": 152, "children": [], "start_point": {"row": 105, "column": 74}, "end_point": {"row": 105, "column": 82}}, {"id": 156, "type": "-", "text": " ", "parent": 146, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 157, "type": "cast_expression", "text": "void)setABTestName:(n", "parent": 146, "children": [158, 160], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 23}}, {"id": 158, "type": "type_descriptor", "text": "oid)", "parent": 157, "children": [159], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 7}}, {"id": 159, "type": "primitive_type", "text": "oid)", "parent": 158, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 7}}, {"id": 160, "type": "identifier", "text": "etABTestName:(n", "parent": 157, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 23}}, {"id": 161, "type": "declaration", "text": "null NSString *)name andValue", "parent": null, "children": [162, 163], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 54}}, {"id": 162, "type": "type_identifier", "text": "null NSString *", "parent": 161, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 40}}, {"id": 163, "type": "identifier", "text": "name andValu", "parent": 161, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 53}}, {"id": 164, "type": "unary_expression", "text": "ram config \u8bf7\u6c42\u4e91\u63a7\u6570\u636e\u7684\u57df\u540d\n */\n- (void", "parent": null, "children": [165, 166], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 32}}, {"id": 165, "type": "-", "text": "r", "parent": 164, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 166, "type": "cast_expression", "text": "m config \u8bf7\u6c42\u4e91\u63a7\u6570\u636e\u7684\u57df\u540d\n */\n- (void", "parent": 164, "children": [167, 169], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 32}}, {"id": 167, "type": "type_descriptor", "text": " con", "parent": 166, "children": [168], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 7}}, {"id": 168, "type": "primitive_type", "text": " con", "parent": 167, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 7}}, {"id": 169, "type": "identifier", "text": "ig \u8bf7\u6c42\u4e91\u63a7\u6570\u636e\u7684\u57df\u540d\n */\n- (void", "parent": 166, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 32}}, {"id": 170, "type": "ERROR", "text": ")setDomainForRep", "parent": null, "children": [171, 172], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 48}}, {"id": 171, "type": "identifier", "text": "etDo", "parent": 170, "children": [], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 38}}, {"id": 172, "type": "identifier", "text": "ainForRep", "parent": 170, "children": [], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 48}}, {"id": 173, "type": "unary_expression", "text": "------------------------------", "parent": null, "children": [174, 175], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 30}}, {"id": 174, "type": "-", "text": "-", "parent": 173, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 1}}, {"id": 175, "type": "cast_expression", "text": "----------------------------", "parent": 173, "children": [176, 178], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 30}}, {"id": 176, "type": "type_descriptor", "text": "----", "parent": 175, "children": [177], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 177, "type": "primitive_type", "text": "----", "parent": 176, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 178, "type": "identifier", "text": "----------------------", "parent": 175, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 30}}, {"id": 179, "type": "ERROR", "text": "----------------", "parent": null, "children": [180, 181], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 46}}, {"id": 180, "type": "identifier", "text": "----", "parent": 179, "children": [], "start_point": {"row": 128, "column": 32}, "end_point": {"row": 128, "column": 36}}, {"id": 181, "type": "identifier", "text": "---------", "parent": 179, "children": [], "start_point": {"row": 128, "column": 37}, "end_point": {"row": 128, "column": 46}}, {"id": 182, "type": "unary_expression", "text": "\u4f7f\u7528\u524d\uff0c\u8bf7\u5148\u5230QDAS\u7ba1\u7406\u540e\u53f0\u7684\u8bbe\u7f6e->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6", "parent": null, "children": [183, 184], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 36}}, {"id": 183, "type": "-", "text": "\u4f7f", "parent": 182, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 1}}, {"id": 184, "type": "cast_expression", "text": "\u524d\uff0c\u8bf7\u5148\u5230QDAS\u7ba1\u7406\u540e\u53f0\u7684\u8bbe\u7f6e->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6", "parent": 182, "children": [185, 187], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 36}}, {"id": 185, "type": "type_descriptor", "text": "\uff0c\u8bf7\u5148\u5230", "parent": 184, "children": [186], "start_point": {"row": 136, "column": 3}, "end_point": {"row": 136, "column": 7}}, {"id": 186, "type": "primitive_type", "text": "\uff0c\u8bf7\u5148\u5230", "parent": 185, "children": [], "start_point": {"row": 136, "column": 3}, "end_point": {"row": 136, "column": 7}}, {"id": 187, "type": "identifier", "text": "DAS\u7ba1\u7406\u540e\u53f0\u7684\u8bbe\u7f6e->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6", "parent": 184, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 36}}, {"id": 188, "type": "ERROR", "text": "ID\uff0c\u7136\u540e\u5728\u5de5\u7a0b\u4e2d\u4f20\u5165\u76f8\u5e94", "parent": null, "children": [189, 190], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 49}}, {"id": 189, "type": "identifier", "text": "\uff0c\u7136\u540e\u5728", "parent": 188, "children": [], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 136, "column": 42}}, {"id": 190, "type": "identifier", "text": "\u7a0b\u4e2d\u4f20\u5165\u76f8\u5e94", "parent": 188, "children": [], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 49}}, {"id": 191, "type": "ERROR", "text": "->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c\u7136\u540e\u5728\u5de5\u7a0b\u4e2d\u4f20\u5165\u76f8\u5e94\u7684\u4e8b\u4ef6ID\n * @param eventId \u4e8b", "parent": null, "children": [192, 198, 199], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 57}}, {"id": 192, "type": "unary_expression", "text": "->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c", "parent": 191, "children": [193, 194], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 21}}, {"id": 193, "type": "-", "text": "-", "parent": 192, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 1}}, {"id": 194, "type": "cast_expression", "text": "\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c", "parent": 192, "children": [195, 197], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 21}}, {"id": 195, "type": "type_descriptor", "text": "\u8f91\u81ea\u5b9a\u4e49", "parent": 194, "children": [196], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 7}}, {"id": 196, "type": "primitive_type", "text": "\u8f91\u81ea\u5b9a\u4e49", "parent": 195, "children": [], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 7}}, {"id": 197, "type": "identifier", "text": "\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c", "parent": 194, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 21}}, {"id": 198, "type": "identifier", "text": "\u5728\u5de5\u7a0b\u4e2d\u4f20\u5165\u76f8", "parent": 191, "children": [], "start_point": {"row": 145, "column": 23}, "end_point": {"row": 145, "column": 30}}, {"id": 199, "type": "binary_expression", "text": "\u7684\u4e8b\u4ef6ID\n * @param eventId", "parent": 191, "children": [200, 201, 202, 204], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 55}}, {"id": 200, "type": "identifier", "text": "\u7684\u4e8b\u4ef6ID\n *", "parent": 199, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 39}}, {"id": 201, "type": "*", "text": " ", "parent": 199, "children": [], "start_point": {"row": 145, "column": 40}, "end_point": {"row": 145, "column": 41}}, {"id": 202, "type": "ERROR", "text": "@para", "parent": 199, "children": [203], "start_point": {"row": 145, "column": 41}, "end_point": {"row": 145, "column": 46}}, {"id": 203, "type": "identifier", "text": "para", "parent": 202, "children": [], "start_point": {"row": 145, "column": 42}, "end_point": {"row": 145, "column": 46}}, {"id": 204, "type": "identifier", "text": " eventId", "parent": 199, "children": [], "start_point": {"row": 145, "column": 47}, "end_point": {"row": 145, "column": 55}}, {"id": 205, "type": "declaration", "text": "\u4ef6ID\n */\n- (void)o", "parent": null, "children": [206, 207, 208], "start_point": {"row": 145, "column": 57}, "end_point": {"row": 145, "column": 74}}, {"id": 206, "type": "type_identifier", "text": "\u4ef6ID\n */\n- (v", "parent": 205, "children": [], "start_point": {"row": 145, "column": 57}, "end_point": {"row": 145, "column": 69}}, {"id": 207, "type": "ERROR", "text": "o", "parent": 205, "children": [], "start_point": {"row": 145, "column": 69}, "end_point": {"row": 145, "column": 70}}, {"id": 208, "type": "identifier", "text": "id)", "parent": 205, "children": [], "start_point": {"row": 145, "column": 70}, "end_point": {"row": 145, "column": 73}}, {"id": 209, "type": "ERROR", "text": "\u751f\u6210\u548cpushId\u540c\u540d\u7684\u6807\u7b7e.\n */\n- (void)onPushEvent:(nonnull NSString *)pushId type:", "parent": null, "children": [210, 216, 217], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 72}}, {"id": 210, "type": "unary_expression", "text": "\u751f\u6210\u548cpushId\u540c\u540d\u7684\u6807\u7b7e.\n */\n- (void)o", "parent": 209, "children": [211, 212], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 29}}, {"id": 211, "type": "-", "text": "\u751f", "parent": 210, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 212, "type": "cast_expression", "text": "\u548cpushId\u540c\u540d\u7684\u6807\u7b7e.\n */\n- (void)o", "parent": 210, "children": [213, 215], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 29}}, {"id": 213, "type": "type_descriptor", "text": "push", "parent": 212, "children": [214], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 153, "column": 7}}, {"id": 214, "type": "primitive_type", "text": "push", "parent": 213, "children": [], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 153, "column": 7}}, {"id": 215, "type": "identifier", "text": "d\u540c\u540d\u7684\u6807\u7b7e.\n */\n- (void)o", "parent": 212, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 29}}, {"id": 216, "type": "identifier", "text": "ushEvent", "parent": 209, "children": [], "start_point": {"row": 153, "column": 31}, "end_point": {"row": 153, "column": 39}}, {"id": 217, "type": "binary_expression", "text": "(nonnull NSString *)pushId typ", "parent": 209, "children": [218, 219, 220, 222], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 70}}, {"id": 218, "type": "identifier", "text": "(nonnull", "parent": 217, "children": [], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 48}}, {"id": 219, "type": "*", "text": "N", "parent": 217, "children": [], "start_point": {"row": 153, "column": 49}, "end_point": {"row": 153, "column": 50}}, {"id": 220, "type": "ERROR", "text": "SString", "parent": 217, "children": [221], "start_point": {"row": 153, "column": 50}, "end_point": {"row": 153, "column": 57}}, {"id": 221, "type": "identifier", "text": "String", "parent": 220, "children": [], "start_point": {"row": 153, "column": 51}, "end_point": {"row": 153, "column": 57}}, {"id": 222, "type": "identifier", "text": "*)pushId typ", "parent": 217, "children": [], "start_point": {"row": 153, "column": 58}, "end_point": {"row": 153, "column": 70}}, {"id": 223, "type": "declaration", "text": "(QHSPushType)type label:(nu", "parent": null, "children": [224, 225, 226], "start_point": {"row": 153, "column": 72}, "end_point": {"row": 153, "column": 99}}, {"id": 224, "type": "type_identifier", "text": "(QHSPush", "parent": 223, "children": [], "start_point": {"row": 153, "column": 72}, "end_point": {"row": 153, "column": 80}}, {"id": 225, "type": "identifier", "text": "ype)type", "parent": 223, "children": [], "start_point": {"row": 153, "column": 81}, "end_point": {"row": 153, "column": 89}}, {"id": 226, "type": "ERROR", "text": "label:(n", "parent": 223, "children": [227, 228], "start_point": {"row": 153, "column": 90}, "end_point": {"row": 153, "column": 98}}, {"id": 227, "type": "*", "text": "l", "parent": 226, "children": [], "start_point": {"row": 153, "column": 90}, "end_point": {"row": 153, "column": 91}}, {"id": 228, "type": "identifier", "text": "bel:(n", "parent": 226, "children": [], "start_point": {"row": 153, "column": 92}, "end_point": {"row": 153, "column": 98}}, {"id": 229, "type": "ERROR", "text": "ountId \u6ce8\u518c\u7684\u8d26\u53f7\u552f\u4e00\u6807\u8bc6.\u53ef\u80fd\u662fuseriId,email\u7b49\n @param prov", "parent": null, "children": [230, 236, 237], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 47}}, {"id": 230, "type": "unary_expression", "text": "ountId \u6ce8\u518c\u7684\u8d26\u53f7\u552f\u4e00\u6807", "parent": 229, "children": [231, 232], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 15}}, {"id": 231, "type": "-", "text": "o", "parent": 230, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 1}}, {"id": 232, "type": "cast_expression", "text": "ntId \u6ce8\u518c\u7684\u8d26\u53f7\u552f\u4e00\u6807", "parent": 230, "children": [233, 235], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 15}}, {"id": 233, "type": "type_descriptor", "text": "tId ", "parent": 232, "children": [234], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 7}}, {"id": 234, "type": "primitive_type", "text": "tId ", "parent": 233, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 7}}, {"id": 235, "type": "identifier", "text": "\u518c\u7684\u8d26\u53f7\u552f\u4e00\u6807", "parent": 232, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 15}}, {"id": 236, "type": "identifier", "text": "\u53ef\u80fd\u662fuser", "parent": 229, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 24}}, {"id": 237, "type": "binary_expression", "text": "Id,email\u7b49\n @param prov", "parent": 229, "children": [238, 239, 240, 241], "start_point": {"row": 164, "column": 25}, "end_point": {"row": 164, "column": 47}}, {"id": 238, "type": "identifier", "text": "Id,email\u7b49\n @pa", "parent": 237, "children": [], "start_point": {"row": 164, "column": 25}, "end_point": {"row": 164, "column": 39}}, {"id": 239, "type": "*", "text": "a", "parent": 237, "children": [], "start_point": {"row": 164, "column": 40}, "end_point": {"row": 164, "column": 41}}, {"id": 240, "type": "ERROR", "text": "m", "parent": 237, "children": [], "start_point": {"row": 164, "column": 41}, "end_point": {"row": 164, "column": 42}}, {"id": 241, "type": "identifier", "text": " prov", "parent": 237, "children": [], "start_point": {"row": 164, "column": 42}, "end_point": {"row": 164, "column": 47}}, {"id": 242, "type": "ERROR", "text": "NSDictionary *)props;\n\n\n/**\n \u5728\u652f\u4ed8\u5b8c\u6210\u540e\u8c03\u7528\n\n @param ", "parent": null, "children": [243, 249, 250], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 47}}, {"id": 243, "type": "unary_expression", "text": "NSDictionary *)prop", "parent": 242, "children": [244, 245], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 19}}, {"id": 244, "type": "-", "text": "N", "parent": 243, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 1}}, {"id": 245, "type": "cast_expression", "text": "Dictionary *)prop", "parent": 243, "children": [246, 248], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 19}}, {"id": 246, "type": "type_descriptor", "text": "icti", "parent": 245, "children": [247], "start_point": {"row": 172, "column": 3}, "end_point": {"row": 172, "column": 7}}, {"id": 247, "type": "primitive_type", "text": "icti", "parent": 246, "children": [], "start_point": {"row": 172, "column": 3}, "end_point": {"row": 172, "column": 7}}, {"id": 248, "type": "identifier", "text": "nary *)prop", "parent": 245, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 19}}, {"id": 249, "type": "identifier", "text": "\n\n\n/**\n", "parent": 242, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 28}}, {"id": 250, "type": "binary_expression", "text": "\u5728\u652f\u4ed8\u5b8c\u6210\u540e\u8c03\u7528\n\n @param ", "parent": 242, "children": [251, 252, 253, 254], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 47}}, {"id": 251, "type": "identifier", "text": "\u5728\u652f\u4ed8\u5b8c\u6210\u540e\u8c03\u7528", "parent": 250, "children": [], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 37}}, {"id": 252, "type": "*", "text": "\n", "parent": 250, "children": [], "start_point": {"row": 172, "column": 38}, "end_point": {"row": 172, "column": 39}}, {"id": 253, "type": "ERROR", "text": " ", "parent": 250, "children": [], "start_point": {"row": 172, "column": 39}, "end_point": {"row": 172, "column": 40}}, {"id": 254, "type": "identifier", "text": "@param ", "parent": 250, "children": [], "start_point": {"row": 172, "column": 40}, "end_point": {"row": 172, "column": 47}}, {"id": 255, "type": "ERROR", "text": " (void)onOrder:(nonnull NSString *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCur", "parent": null, "children": [256, 262, 263], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 102}}, {"id": 256, "type": "unary_expression", "text": " (void)onOrder:(non", "parent": 255, "children": [257, 258], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 19}}, {"id": 257, "type": "-", "text": " ", "parent": 256, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 1}}, {"id": 258, "type": "cast_expression", "text": "void)onOrder:(non", "parent": 256, "children": [259, 261], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 19}}, {"id": 259, "type": "type_descriptor", "text": "oid)", "parent": 258, "children": [260], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 7}}, {"id": 260, "type": "primitive_type", "text": "oid)", "parent": 259, "children": [], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 7}}, {"id": 261, "type": "identifier", "text": "nOrder:(non", "parent": 258, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 19}}, {"id": 262, "type": "identifier", "text": "ll NSSt", "parent": 255, "children": [], "start_point": {"row": 181, "column": 21}, "end_point": {"row": 181, "column": 28}}, {"id": 263, "type": "binary_expression", "text": "ing *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCur", "parent": 255, "children": [264, 269, 276, 277, 278], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 102}}, {"id": 264, "type": "binary_expression", "text": "ing *)transaction", "parent": 263, "children": [265, 266, 267, 268], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 46}}, {"id": 265, "type": "identifier", "text": "ing *)tr", "parent": 264, "children": [], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 37}}, {"id": 266, "type": "*", "text": "n", "parent": 264, "children": [], "start_point": {"row": 181, "column": 38}, "end_point": {"row": 181, "column": 39}}, {"id": 267, "type": "ERROR", "text": "s", "parent": 264, "children": [], "start_point": {"row": 181, "column": 39}, "end_point": {"row": 181, "column": 40}}, {"id": 268, "type": "identifier", "text": "action", "parent": 264, "children": [], "start_point": {"row": 181, "column": 40}, "end_point": {"row": 181, "column": 46}}, {"id": 269, "type": "ERROR", "text": "d andCurrenyType:(nonnull NSString *)currenyTyp", "parent": 263, "children": [270, 271, 272, 273, 274, 275], "start_point": {"row": 181, "column": 47}, "end_point": {"row": 181, "column": 94}}, {"id": 270, "type": "identifier", "text": "d an", "parent": 269, "children": [], "start_point": {"row": 181, "column": 47}, "end_point": {"row": 181, "column": 51}}, {"id": 271, "type": "identifier", "text": "urrenyType:", "parent": 269, "children": [], "start_point": {"row": 181, "column": 53}, "end_point": {"row": 181, "column": 64}}, {"id": 272, "type": "identifier", "text": "nonn", "parent": 269, "children": [], "start_point": {"row": 181, "column": 65}, "end_point": {"row": 181, "column": 69}}, {"id": 273, "type": "identifier", "text": "ll NS", "parent": 269, "children": [], "start_point": {"row": 181, "column": 70}, "end_point": {"row": 181, "column": 75}}, {"id": 274, "type": "identifier", "text": "ring *)c", "parent": 269, "children": [], "start_point": {"row": 181, "column": 77}, "end_point": {"row": 181, "column": 85}}, {"id": 275, "type": "identifier", "text": "rrenyTyp", "parent": 269, "children": [], "start_point": {"row": 181, "column": 86}, "end_point": {"row": 181, "column": 94}}, {"id": 276, "type": "*", "text": " ", "parent": 263, "children": [], "start_point": {"row": 181, "column": 95}, "end_point": {"row": 181, "column": 96}}, {"id": 277, "type": "ERROR", "text": "a", "parent": 263, "children": [], "start_point": {"row": 181, "column": 96}, "end_point": {"row": 181, "column": 97}}, {"id": 278, "type": "identifier", "text": "ndCur", "parent": 263, "children": [], "start_point": {"row": 181, "column": 97}, "end_point": {"row": 181, "column": 102}}, {"id": 279, "type": "ERROR", "text": "nt:(nonnull QHSLiveEvent *)event dataLevel:(QHSDataLevel)dataLevel", "parent": null, "children": [280, 286, 287], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 66}}, {"id": 280, "type": "unary_expression", "text": "nt:(nonnull QHSLiveEvent *)e", "parent": 279, "children": [281, 282], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 28}}, {"id": 281, "type": "-", "text": "n", "parent": 280, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 1}}, {"id": 282, "type": "cast_expression", "text": ":(nonnull QHSLiveEvent *)e", "parent": 280, "children": [283, 285], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 28}}, {"id": 283, "type": "type_descriptor", "text": "(non", "parent": 282, "children": [284], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 7}}, {"id": 284, "type": "primitive_type", "text": "(non", "parent": 283, "children": [], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 7}}, {"id": 285, "type": "identifier", "text": "ull QHSLiveEvent *)e", "parent": 282, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 28}}, {"id": 286, "type": "identifier", "text": "nt data", "parent": 279, "children": [], "start_point": {"row": 190, "column": 30}, "end_point": {"row": 190, "column": 37}}, {"id": 287, "type": "binary_expression", "text": "evel:(QHSDataLevel)dataLev", "parent": 279, "children": [288, 289, 290, 292], "start_point": {"row": 190, "column": 38}, "end_point": {"row": 190, "column": 64}}, {"id": 288, "type": "identifier", "text": "evel:(QH", "parent": 287, "children": [], "start_point": {"row": 190, "column": 38}, "end_point": {"row": 190, "column": 46}}, {"id": 289, "type": "*", "text": "D", "parent": 287, "children": [], "start_point": {"row": 190, "column": 47}, "end_point": {"row": 190, "column": 48}}, {"id": 290, "type": "ERROR", "text": "ataLeve", "parent": 287, "children": [291], "start_point": {"row": 190, "column": 48}, "end_point": {"row": 190, "column": 55}}, {"id": 291, "type": "identifier", "text": "taLeve", "parent": 290, "children": [], "start_point": {"row": 190, "column": 49}, "end_point": {"row": 190, "column": 55}}, {"id": 292, "type": "identifier", "text": ")dataLev", "parent": 287, "children": [], "start_point": {"row": 190, "column": 56}, "end_point": {"row": 190, "column": 64}}, {"id": 293, "type": "declaration", "text": ";\n- (void)onLiveEvent:(nonnul", "parent": null, "children": [294, 295, 296], "start_point": {"row": 190, "column": 66}, "end_point": {"row": 190, "column": 95}}, {"id": 294, "type": "type_identifier", "text": ";\n- (voi", "parent": 293, "children": [], "start_point": {"row": 190, "column": 66}, "end_point": {"row": 190, "column": 74}}, {"id": 295, "type": "identifier", "text": ")onLiveE", "parent": 293, "children": [], "start_point": {"row": 190, "column": 75}, "end_point": {"row": 190, "column": 83}}, {"id": 296, "type": "ERROR", "text": "ent:(nonnu", "parent": 293, "children": [297, 298], "start_point": {"row": 190, "column": 84}, "end_point": {"row": 190, "column": 94}}, {"id": 297, "type": "*", "text": "e", "parent": 296, "children": [], "start_point": {"row": 190, "column": 84}, "end_point": {"row": 190, "column": 85}}, {"id": 298, "type": "identifier", "text": "t:(nonnu", "parent": 296, "children": [], "start_point": {"row": 190, "column": 86}, "end_point": {"row": 190, "column": 94}}, {"id": 299, "type": "ERROR", "text": "QHSLiveEvent *)event;\n\n\n/**\n *", "parent": null, "children": [300], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 30}}, {"id": 300, "type": "unary_expression", "text": "QHSLiveEvent *)event;\n\n\n/**\n", "parent": 299, "children": [301, 302], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 28}}, {"id": 301, "type": "-", "text": "Q", "parent": 300, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 1}}, {"id": 302, "type": "cast_expression", "text": "SLiveEvent *)event;\n\n\n/**\n", "parent": 300, "children": [303, 305], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 28}}, {"id": 303, "type": "type_descriptor", "text": "Live", "parent": 302, "children": [304], "start_point": {"row": 192, "column": 3}, "end_point": {"row": 192, "column": 7}}, {"id": 304, "type": "primitive_type", "text": "Live", "parent": 303, "children": [], "start_point": {"row": 192, "column": 3}, "end_point": {"row": 192, "column": 7}}, {"id": 305, "type": "identifier", "text": "vent *)event;\n\n\n/**\n", "parent": 302, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 28}}, {"id": 306, "type": "declaration", "text": " \u89c6\u9891\u89c2\u770b\n * @param vid \u89c6\u9891id\n ", "parent": null, "children": [307, 308, 309], "start_point": {"row": 192, "column": 30}, "end_point": {"row": 192, "column": 56}}, {"id": 307, "type": "type_identifier", "text": " \u89c6\u9891\u89c2\u770b\n ", "parent": 306, "children": [], "start_point": {"row": 192, "column": 30}, "end_point": {"row": 192, "column": 37}}, {"id": 308, "type": "identifier", "text": " @param ", "parent": 306, "children": [], "start_point": {"row": 192, "column": 38}, "end_point": {"row": 192, "column": 46}}, {"id": 309, "type": "ERROR", "text": "id \u89c6\u9891id\n", "parent": 306, "children": [310, 311], "start_point": {"row": 192, "column": 47}, "end_point": {"row": 192, "column": 55}}, {"id": 310, "type": "*", "text": "i", "parent": 309, "children": [], "start_point": {"row": 192, "column": 47}, "end_point": {"row": 192, "column": 48}}, {"id": 311, "type": "identifier", "text": " \u89c6\u9891id\n", "parent": 309, "children": [], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 55}}, {"id": 312, "type": "unary_expression", "text": "QHSPlayEvent *)playEve", "parent": null, "children": [313, 314], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 22}}, {"id": 313, "type": "-", "text": "Q", "parent": 312, "children": [], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 1}}, {"id": 314, "type": "cast_expression", "text": "SPlayEvent *)playEve", "parent": 312, "children": [315, 317], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 22}}, {"id": 315, "type": "type_descriptor", "text": "Play", "parent": 314, "children": [316], "start_point": {"row": 198, "column": 3}, "end_point": {"row": 198, "column": 7}}, {"id": 316, "type": "primitive_type", "text": "Play", "parent": 315, "children": [], "start_point": {"row": 198, "column": 3}, "end_point": {"row": 198, "column": 7}}, {"id": 317, "type": "identifier", "text": "vent *)playEve", "parent": 314, "children": [], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 22}}, {"id": 318, "type": "ERROR", "text": "oid)onPlayEvent:(nonnull QHSPlayEvent *)event;\n\n\n@end\n", "parent": null, "children": [319, 325, 326], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 208, "column": 69}}, {"id": 319, "type": "unary_expression", "text": "oid)onPlayEvent:(n", "parent": 318, "children": [320, 321], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 208, "column": 18}}, {"id": 320, "type": "-", "text": "o", "parent": 319, "children": [], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 208, "column": 1}}, {"id": 321, "type": "cast_expression", "text": "d)onPlayEvent:(n", "parent": 319, "children": [322, 324], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 18}}, {"id": 322, "type": "type_descriptor", "text": ")onP", "parent": 321, "children": [323], "start_point": {"row": 208, "column": 3}, "end_point": {"row": 208, "column": 7}}, {"id": 323, "type": "primitive_type", "text": ")onP", "parent": 322, "children": [], "start_point": {"row": 208, "column": 3}, "end_point": {"row": 208, "column": 7}}, {"id": 324, "type": "identifier", "text": "ayEvent:(n", "parent": 321, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 18}}, {"id": 325, "type": "identifier", "text": "null QH", "parent": 318, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 27}}, {"id": 326, "type": "binary_expression", "text": "PlayEvent *)event;\n\n\n@end\n", "parent": 318, "children": [327, 328, 329, 331], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 67}}, {"id": 327, "type": "identifier", "text": "PlayEven", "parent": 326, "children": [], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 36}}, {"id": 328, "type": "*", "text": " ", "parent": 326, "children": [], "start_point": {"row": 208, "column": 37}, "end_point": {"row": 208, "column": 38}}, {"id": 329, "type": "ERROR", "text": "*)event;\n\n", "parent": 326, "children": [330], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 48}}, {"id": 330, "type": "identifier", "text": ")event;\n\n", "parent": 329, "children": [], "start_point": {"row": 208, "column": 39}, "end_point": {"row": 208, "column": 48}}, {"id": 331, "type": "identifier", "text": "@end\n", "parent": 326, "children": [], "start_point": {"row": 208, "column": 49}, "end_point": {"row": 208, "column": 67}}, {"id": 332, "type": "declaration", "text": "", "parent": null, "children": [333, 334, 342], "start_point": {"row": 208, "column": 69}, "end_point": {"row": 208, "column": 138}}, {"id": 333, "type": "type_identifier", "text": "", "parent": 332, "children": [], "start_point": {"row": 208, "column": 69}, "end_point": {"row": 208, "column": 77}}, {"id": 334, "type": "ERROR", "text": "", "parent": 332, "children": [335, 336, 337, 338, 339, 340, 341], "start_point": {"row": 208, "column": 78}, "end_point": {"row": 208, "column": 132}}, {"id": 335, "type": "identifier", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 78}, "end_point": {"row": 208, "column": 86}}, {"id": 336, "type": "*", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 87}, "end_point": {"row": 208, "column": 88}}, {"id": 337, "type": "identifier", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 89}, "end_point": {"row": 208, "column": 97}}, {"id": 338, "type": "identifier", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 98}, "end_point": {"row": 208, "column": 106}}, {"id": 339, "type": "identifier", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 108}, "end_point": {"row": 208, "column": 116}}, {"id": 340, "type": "identifier", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 117}, "end_point": {"row": 208, "column": 129}}, {"id": 341, "type": "*", "text": "", "parent": 334, "children": [], "start_point": {"row": 208, "column": 130}, "end_point": {"row": 208, "column": 131}}, {"id": 342, "type": "identifier", "text": "", "parent": 332, "children": [], "start_point": {"row": 208, "column": 132}, "end_point": {"row": 208, "column": 137}}, {"id": 343, "type": "ERROR", "text": "", "parent": null, "children": [344], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 20}}, {"id": 344, "type": "unary_expression", "text": "", "parent": 343, "children": [345, 346], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 18}}, {"id": 345, "type": "-", "text": "", "parent": 344, "children": [], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 1}}, {"id": 346, "type": "cast_expression", "text": "", "parent": 344, "children": [347, 349], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 18}}, {"id": 347, "type": "type_descriptor", "text": "", "parent": 346, "children": [348], "start_point": {"row": 210, "column": 3}, "end_point": {"row": 210, "column": 7}}, {"id": 348, "type": "primitive_type", "text": "", "parent": 347, "children": [], "start_point": {"row": 210, "column": 3}, "end_point": {"row": 210, "column": 7}}, {"id": 349, "type": "identifier", "text": "", "parent": 346, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 18}}, {"id": 350, "type": "declaration", "text": "", "parent": null, "children": [351, 352, 360], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 89}}, {"id": 351, "type": "type_identifier", "text": "", "parent": 350, "children": [], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 27}}, {"id": 352, "type": "ERROR", "text": "", "parent": 350, "children": [353, 354, 355, 356, 357, 358, 359], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 83}}, {"id": 353, "type": "identifier", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 36}}, {"id": 354, "type": "*", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 37}, "end_point": {"row": 210, "column": 38}}, {"id": 355, "type": "identifier", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 39}, "end_point": {"row": 210, "column": 48}}, {"id": 356, "type": "identifier", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 49}, "end_point": {"row": 210, "column": 57}}, {"id": 357, "type": "identifier", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 59}, "end_point": {"row": 210, "column": 67}}, {"id": 358, "type": "identifier", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 68}, "end_point": {"row": 210, "column": 80}}, {"id": 359, "type": "*", "text": "", "parent": 352, "children": [], "start_point": {"row": 210, "column": 81}, "end_point": {"row": 210, "column": 82}}, {"id": 360, "type": "identifier", "text": "", "parent": 350, "children": [], "start_point": {"row": 210, "column": 83}, "end_point": {"row": 210, "column": 88}}, {"id": 361, "type": "ERROR", "text": "", "parent": null, "children": [362, 368, 369], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 51}}, {"id": 362, "type": "unary_expression", "text": "", "parent": 361, "children": [363, 364], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 13}}, {"id": 363, "type": "-", "text": "", "parent": 362, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 1}}, {"id": 364, "type": "cast_expression", "text": "", "parent": 362, "children": [365, 367], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 13}}, {"id": 365, "type": "type_descriptor", "text": "", "parent": 364, "children": [366], "start_point": {"row": 220, "column": 3}, "end_point": {"row": 220, "column": 7}}, {"id": 366, "type": "primitive_type", "text": "", "parent": 365, "children": [], "start_point": {"row": 220, "column": 3}, "end_point": {"row": 220, "column": 7}}, {"id": 367, "type": "identifier", "text": "", "parent": 364, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 13}}, {"id": 368, "type": "identifier", "text": "", "parent": 361, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 23}}, {"id": 369, "type": "binary_expression", "text": "", "parent": 361, "children": [370, 371, 372, 374], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 49}}, {"id": 370, "type": "identifier", "text": "", "parent": 369, "children": [], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 32}}, {"id": 371, "type": "*", "text": "", "parent": 369, "children": [], "start_point": {"row": 220, "column": 33}, "end_point": {"row": 220, "column": 34}}, {"id": 372, "type": "ERROR", "text": "", "parent": 369, "children": [373], "start_point": {"row": 220, "column": 34}, "end_point": {"row": 220, "column": 39}}, {"id": 373, "type": "identifier", "text": "", "parent": 372, "children": [], "start_point": {"row": 220, "column": 35}, "end_point": {"row": 220, "column": 39}}, {"id": 374, "type": "identifier", "text": "", "parent": 369, "children": [], "start_point": {"row": 220, "column": 40}, "end_point": {"row": 220, "column": 49}}, {"id": 375, "type": "declaration", "text": "", "parent": null, "children": [376, 377, 378], "start_point": {"row": 220, "column": 51}, "end_point": {"row": 220, "column": 64}}, {"id": 376, "type": "primitive_type", "text": "", "parent": 375, "children": [], "start_point": {"row": 220, "column": 51}, "end_point": {"row": 220, "column": 57}}, {"id": 377, "type": "ERROR", "text": "", "parent": 375, "children": [], "start_point": {"row": 220, "column": 57}, "end_point": {"row": 220, "column": 58}}, {"id": 378, "type": "identifier", "text": "", "parent": 375, "children": [], "start_point": {"row": 220, "column": 58}, "end_point": {"row": 220, "column": 64}}, {"id": 379, "type": "labeled_statement", "text": "", "parent": null, "children": [380], "start_point": {"row": 220, "column": 65}, "end_point": {"row": 220, "column": 105}}, {"id": 380, "type": "statement_identifier", "text": "", "parent": 379, "children": [], "start_point": {"row": 220, "column": 65}, "end_point": {"row": 220, "column": 73}}, {"id": 381, "type": "cast_expression", "text": "", "parent": 379, "children": [382, 384, 388], "start_point": {"row": 220, "column": 74}, "end_point": {"row": 220, "column": 104}}, {"id": 382, "type": "ERROR", "text": "", "parent": 381, "children": [383], "start_point": {"row": 220, "column": 75}, "end_point": {"row": 220, "column": 83}}, {"id": 383, "type": "identifier", "text": "", "parent": 382, "children": [], "start_point": {"row": 220, "column": 75}, "end_point": {"row": 220, "column": 83}}, {"id": 384, "type": "type_descriptor", "text": "", "parent": 381, "children": [385, 386], "start_point": {"row": 220, "column": 84}, "end_point": {"row": 220, "column": 98}}, {"id": 385, "type": "type_identifier", "text": "", "parent": 384, "children": [], "start_point": {"row": 220, "column": 84}, "end_point": {"row": 220, "column": 96}}, {"id": 386, "type": "abstract_pointer_declarator", "text": "", "parent": 384, "children": [387], "start_point": {"row": 220, "column": 97}, "end_point": {"row": 220, "column": 98}}, {"id": 387, "type": "*", "text": "", "parent": 386, "children": [], "start_point": {"row": 220, "column": 97}, "end_point": {"row": 220, "column": 98}}, {"id": 388, "type": "identifier", "text": "", "parent": 381, "children": [], "start_point": {"row": 220, "column": 99}, "end_point": {"row": 220, "column": 104}}, {"id": 389, "type": "ERROR", "text": "", "parent": null, "children": [390, 396, 397], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 66}}, {"id": 390, "type": "unary_expression", "text": "", "parent": 389, "children": [391, 392], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 15}}, {"id": 391, "type": "-", "text": "", "parent": 390, "children": [], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 1}}, {"id": 392, "type": "cast_expression", "text": "", "parent": 390, "children": [393, 395], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 15}}, {"id": 393, "type": "type_descriptor", "text": "", "parent": 392, "children": [394], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 231, "column": 7}}, {"id": 394, "type": "primitive_type", "text": "", "parent": 393, "children": [], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 231, "column": 7}}, {"id": 395, "type": "identifier", "text": "", "parent": 392, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 15}}, {"id": 396, "type": "identifier", "text": "", "parent": 389, "children": [], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 24}}, {"id": 397, "type": "binary_expression", "text": "", "parent": 389, "children": [398, 399, 400, 402], "start_point": {"row": 231, "column": 25}, "end_point": {"row": 231, "column": 64}}, {"id": 398, "type": "identifier", "text": "", "parent": 397, "children": [], "start_point": {"row": 231, "column": 25}, "end_point": {"row": 231, "column": 33}}, {"id": 399, "type": "*", "text": "", "parent": 397, "children": [], "start_point": {"row": 231, "column": 34}, "end_point": {"row": 231, "column": 35}}, {"id": 400, "type": "ERROR", "text": "", "parent": 397, "children": [401], "start_point": {"row": 231, "column": 35}, "end_point": {"row": 231, "column": 49}}, {"id": 401, "type": "identifier", "text": "", "parent": 400, "children": [], "start_point": {"row": 231, "column": 36}, "end_point": {"row": 231, "column": 49}}, {"id": 402, "type": "identifier", "text": "", "parent": 397, "children": [], "start_point": {"row": 231, "column": 50}, "end_point": {"row": 231, "column": 64}}, {"id": 403, "type": "declaration", "text": "", "parent": null, "children": [404, 405, 408], "start_point": {"row": 231, "column": 66}, "end_point": {"row": 231, "column": 96}}, {"id": 404, "type": "type_identifier", "text": "", "parent": 403, "children": [], "start_point": {"row": 231, "column": 66}, "end_point": {"row": 231, "column": 73}}, {"id": 405, "type": "ERROR", "text": "", "parent": 403, "children": [406, 407], "start_point": {"row": 231, "column": 74}, "end_point": {"row": 231, "column": 85}}, {"id": 406, "type": "identifier", "text": "", "parent": 405, "children": [], "start_point": {"row": 231, "column": 74}, "end_point": {"row": 231, "column": 82}}, {"id": 407, "type": "*", "text": "", "parent": 405, "children": [], "start_point": {"row": 231, "column": 83}, "end_point": {"row": 231, "column": 84}}, {"id": 408, "type": "identifier", "text": "", "parent": 403, "children": [], "start_point": {"row": 231, "column": 85}, "end_point": {"row": 231, "column": 96}}, {"id": 409, "type": "labeled_statement", "text": "", "parent": null, "children": [410], "start_point": {"row": 231, "column": 97}, "end_point": {"row": 231, "column": 151}}, {"id": 410, "type": "statement_identifier", "text": "", "parent": 409, "children": [], "start_point": {"row": 231, "column": 97}, "end_point": {"row": 231, "column": 114}}, {"id": 411, "type": "cast_expression", "text": "", "parent": 409, "children": [412, 414, 418], "start_point": {"row": 231, "column": 115}, "end_point": {"row": 231, "column": 150}}, {"id": 412, "type": "ERROR", "text": "", "parent": 411, "children": [413], "start_point": {"row": 231, "column": 116}, "end_point": {"row": 231, "column": 124}}, {"id": 413, "type": "identifier", "text": "", "parent": 412, "children": [], "start_point": {"row": 231, "column": 116}, "end_point": {"row": 231, "column": 124}}, {"id": 414, "type": "type_descriptor", "text": "", "parent": 411, "children": [415, 416], "start_point": {"row": 231, "column": 125}, "end_point": {"row": 231, "column": 135}}, {"id": 415, "type": "type_identifier", "text": "", "parent": 414, "children": [], "start_point": {"row": 231, "column": 125}, "end_point": {"row": 231, "column": 133}}, {"id": 416, "type": "abstract_pointer_declarator", "text": "", "parent": 414, "children": [417], "start_point": {"row": 231, "column": 134}, "end_point": {"row": 231, "column": 135}}, {"id": 417, "type": "*", "text": "", "parent": 416, "children": [], "start_point": {"row": 231, "column": 134}, "end_point": {"row": 231, "column": 135}}, {"id": 418, "type": "identifier", "text": "", "parent": 411, "children": [], "start_point": {"row": 231, "column": 136}, "end_point": {"row": 231, "column": 150}}, {"id": 419, "type": "preproc_call", "text": "", "parent": null, "children": [420, 421], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 235, "column": 0}}, {"id": 420, "type": "preproc_directive", "text": "", "parent": 419, "children": [], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 7}}, {"id": 421, "type": "preproc_arg", "text": "", "parent": 419, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 40}}, {"id": 422, "type": "ERROR", "text": "", "parent": null, "children": [423, 433, 434], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 72}}, {"id": 423, "type": "unary_expression", "text": "", "parent": 422, "children": [424, 425], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 41}}, {"id": 424, "type": "-", "text": "", "parent": 423, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 1}}, {"id": 425, "type": "cast_expression", "text": "", "parent": 423, "children": [426, 428, 432], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 41}}, {"id": 426, "type": "ERROR", "text": "", "parent": 425, "children": [427], "start_point": {"row": 240, "column": 3}, "end_point": {"row": 240, "column": 10}}, {"id": 427, "type": "identifier", "text": "", "parent": 426, "children": [], "start_point": {"row": 240, "column": 3}, "end_point": {"row": 240, "column": 10}}, {"id": 428, "type": "type_descriptor", "text": "", "parent": 425, "children": [429, 430], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 25}}, {"id": 429, "type": "type_identifier", "text": "", "parent": 428, "children": [], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 23}}, {"id": 430, "type": "abstract_pointer_declarator", "text": "", "parent": 428, "children": [431], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 25}}, {"id": 431, "type": "*", "text": "", "parent": 430, "children": [], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 25}}, {"id": 432, "type": "identifier", "text": "", "parent": 425, "children": [], "start_point": {"row": 240, "column": 26}, "end_point": {"row": 240, "column": 41}}, {"id": 433, "type": "identifier", "text": "", "parent": 422, "children": [], "start_point": {"row": 240, "column": 43}, "end_point": {"row": 240, "column": 50}}, {"id": 434, "type": "binary_expression", "text": "", "parent": 422, "children": [435, 436, 437, 439], "start_point": {"row": 240, "column": 51}, "end_point": {"row": 240, "column": 70}}, {"id": 435, "type": "identifier", "text": "", "parent": 434, "children": [], "start_point": {"row": 240, "column": 51}, "end_point": {"row": 240, "column": 59}}, {"id": 436, "type": "*", "text": "", "parent": 434, "children": [], "start_point": {"row": 240, "column": 60}, "end_point": {"row": 240, "column": 61}}, {"id": 437, "type": "ERROR", "text": "", "parent": 434, "children": [438], "start_point": {"row": 240, "column": 61}, "end_point": {"row": 240, "column": 65}}, {"id": 438, "type": "identifier", "text": "", "parent": 437, "children": [], "start_point": {"row": 240, "column": 62}, "end_point": {"row": 240, "column": 65}}, {"id": 439, "type": "identifier", "text": "", "parent": 434, "children": [], "start_point": {"row": 240, "column": 66}, "end_point": {"row": 240, "column": 70}}, {"id": 440, "type": "declaration", "text": "", "parent": null, "children": [441, 442, 443], "start_point": {"row": 240, "column": 72}, "end_point": {"row": 240, "column": 85}}, {"id": 441, "type": "type_identifier", "text": "", "parent": 440, "children": [], "start_point": {"row": 240, "column": 72}, "end_point": {"row": 240, "column": 79}}, {"id": 442, "type": "ERROR", "text": "", "parent": 440, "children": [], "start_point": {"row": 240, "column": 79}, "end_point": {"row": 240, "column": 80}}, {"id": 443, "type": "identifier", "text": "", "parent": 440, "children": [], "start_point": {"row": 240, "column": 80}, "end_point": {"row": 240, "column": 84}}, {"id": 444, "type": "ERROR", "text": "", "parent": null, "children": [445, 451, 452], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 61}}, {"id": 445, "type": "unary_expression", "text": "", "parent": 444, "children": [446, 447], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 19}}, {"id": 446, "type": "-", "text": "", "parent": 445, "children": [], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 1}}, {"id": 447, "type": "cast_expression", "text": "", "parent": 445, "children": [448, 450], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 19}}, {"id": 448, "type": "type_descriptor", "text": "", "parent": 447, "children": [449], "start_point": {"row": 246, "column": 3}, "end_point": {"row": 246, "column": 7}}, {"id": 449, "type": "primitive_type", "text": "", "parent": 448, "children": [], "start_point": {"row": 246, "column": 3}, "end_point": {"row": 246, "column": 7}}, {"id": 450, "type": "identifier", "text": "", "parent": 447, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 19}}, {"id": 451, "type": "identifier", "text": "", "parent": 444, "children": [], "start_point": {"row": 246, "column": 21}, "end_point": {"row": 246, "column": 28}}, {"id": 452, "type": "binary_expression", "text": "", "parent": 444, "children": [453, 454, 455, 457], "start_point": {"row": 246, "column": 29}, "end_point": {"row": 246, "column": 59}}, {"id": 453, "type": "identifier", "text": "", "parent": 452, "children": [], "start_point": {"row": 246, "column": 29}, "end_point": {"row": 246, "column": 41}}, {"id": 454, "type": "*", "text": "", "parent": 452, "children": [], "start_point": {"row": 246, "column": 42}, "end_point": {"row": 246, "column": 43}}, {"id": 455, "type": "ERROR", "text": "", "parent": 452, "children": [456], "start_point": {"row": 246, "column": 43}, "end_point": {"row": 246, "column": 49}}, {"id": 456, "type": "identifier", "text": "", "parent": 455, "children": [], "start_point": {"row": 246, "column": 44}, "end_point": {"row": 246, "column": 49}}, {"id": 457, "type": "identifier", "text": "", "parent": 452, "children": [], "start_point": {"row": 246, "column": 50}, "end_point": {"row": 246, "column": 59}}, {"id": 458, "type": "declaration", "text": "", "parent": null, "children": [459, 460, 461], "start_point": {"row": 246, "column": 61}, "end_point": {"row": 246, "column": 84}}, {"id": 459, "type": "type_identifier", "text": "", "parent": 458, "children": [], "start_point": {"row": 246, "column": 61}, "end_point": {"row": 246, "column": 73}}, {"id": 460, "type": "ERROR", "text": "", "parent": 458, "children": [], "start_point": {"row": 246, "column": 73}, "end_point": {"row": 246, "column": 74}}, {"id": 461, "type": "identifier", "text": "", "parent": 458, "children": [], "start_point": {"row": 246, "column": 74}, "end_point": {"row": 246, "column": 83}}, {"id": 462, "type": "ERROR", "text": "", "parent": null, "children": [463, 469, 470], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 49}}, {"id": 463, "type": "unary_expression", "text": "", "parent": 462, "children": [464, 465], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 19}}, {"id": 464, "type": "-", "text": "", "parent": 463, "children": [], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 1}}, {"id": 465, "type": "cast_expression", "text": "", "parent": 463, "children": [466, 468], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 19}}, {"id": 466, "type": "type_descriptor", "text": "", "parent": 465, "children": [467], "start_point": {"row": 247, "column": 3}, "end_point": {"row": 247, "column": 7}}, {"id": 467, "type": "primitive_type", "text": "", "parent": 466, "children": [], "start_point": {"row": 247, "column": 3}, "end_point": {"row": 247, "column": 7}}, {"id": 468, "type": "identifier", "text": "", "parent": 465, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 19}}, {"id": 469, "type": "identifier", "text": "", "parent": 462, "children": [], "start_point": {"row": 247, "column": 21}, "end_point": {"row": 247, "column": 28}}, {"id": 470, "type": "binary_expression", "text": "", "parent": 462, "children": [471, 472, 473, 474], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 49}}, {"id": 471, "type": "identifier", "text": "", "parent": 470, "children": [], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 41}}, {"id": 472, "type": "*", "text": "", "parent": 470, "children": [], "start_point": {"row": 247, "column": 42}, "end_point": {"row": 247, "column": 43}}, {"id": 473, "type": "ERROR", "text": "", "parent": 470, "children": [], "start_point": {"row": 247, "column": 43}, "end_point": {"row": 247, "column": 44}}, {"id": 474, "type": "identifier", "text": "", "parent": 470, "children": [], "start_point": {"row": 247, "column": 44}, "end_point": {"row": 247, "column": 49}}, {"id": 475, "type": "ERROR", "text": "", "parent": null, "children": [476, 486, 487], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 72}}, {"id": 476, "type": "unary_expression", "text": "", "parent": 475, "children": [477, 478], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 41}}, {"id": 477, "type": "-", "text": "", "parent": 476, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 1}}, {"id": 478, "type": "cast_expression", "text": "", "parent": 476, "children": [479, 481, 485], "start_point": {"row": 255, "column": 2}, "end_point": {"row": 255, "column": 41}}, {"id": 479, "type": "ERROR", "text": "", "parent": 478, "children": [480], "start_point": {"row": 255, "column": 3}, "end_point": {"row": 255, "column": 10}}, {"id": 480, "type": "identifier", "text": "", "parent": 479, "children": [], "start_point": {"row": 255, "column": 3}, "end_point": {"row": 255, "column": 10}}, {"id": 481, "type": "type_descriptor", "text": "", "parent": 478, "children": [482, 483], "start_point": {"row": 255, "column": 11}, "end_point": {"row": 255, "column": 25}}, {"id": 482, "type": "type_identifier", "text": "", "parent": 481, "children": [], "start_point": {"row": 255, "column": 11}, "end_point": {"row": 255, "column": 23}}, {"id": 483, "type": "abstract_pointer_declarator", "text": "", "parent": 481, "children": [484], "start_point": {"row": 255, "column": 24}, "end_point": {"row": 255, "column": 25}}, {"id": 484, "type": "*", "text": "", "parent": 483, "children": [], "start_point": {"row": 255, "column": 24}, "end_point": {"row": 255, "column": 25}}, {"id": 485, "type": "identifier", "text": "", "parent": 478, "children": [], "start_point": {"row": 255, "column": 26}, "end_point": {"row": 255, "column": 41}}, {"id": 486, "type": "identifier", "text": "", "parent": 475, "children": [], "start_point": {"row": 255, "column": 43}, "end_point": {"row": 255, "column": 50}}, {"id": 487, "type": "binary_expression", "text": "", "parent": 475, "children": [488, 489, 490, 492], "start_point": {"row": 255, "column": 51}, "end_point": {"row": 255, "column": 70}}, {"id": 488, "type": "identifier", "text": "", "parent": 487, "children": [], "start_point": {"row": 255, "column": 51}, "end_point": {"row": 255, "column": 59}}, {"id": 489, "type": "*", "text": "", "parent": 487, "children": [], "start_point": {"row": 255, "column": 60}, "end_point": {"row": 255, "column": 61}}, {"id": 490, "type": "ERROR", "text": "", "parent": 487, "children": [491], "start_point": {"row": 255, "column": 61}, "end_point": {"row": 255, "column": 65}}, {"id": 491, "type": "identifier", "text": "", "parent": 490, "children": [], "start_point": {"row": 255, "column": 62}, "end_point": {"row": 255, "column": 65}}, {"id": 492, "type": "identifier", "text": "", "parent": 487, "children": [], "start_point": {"row": 255, "column": 66}, "end_point": {"row": 255, "column": 70}}, {"id": 493, "type": "declaration", "text": "", "parent": null, "children": [494, 495, 496], "start_point": {"row": 255, "column": 72}, "end_point": {"row": 255, "column": 85}}, {"id": 494, "type": "type_identifier", "text": "", "parent": 493, "children": [], "start_point": {"row": 255, "column": 72}, "end_point": {"row": 255, "column": 79}}, {"id": 495, "type": "ERROR", "text": "", "parent": 493, "children": [], "start_point": {"row": 255, "column": 79}, "end_point": {"row": 255, "column": 80}}, {"id": 496, "type": "identifier", "text": "", "parent": 493, "children": [], "start_point": {"row": 255, "column": 80}, "end_point": {"row": 255, "column": 84}}, {"id": 497, "type": "ERROR", "text": "", "parent": null, "children": [498, 504, 505], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 61}}, {"id": 498, "type": "unary_expression", "text": "", "parent": 497, "children": [499, 500], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 19}}, {"id": 499, "type": "-", "text": "", "parent": 498, "children": [], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 1}}, {"id": 500, "type": "cast_expression", "text": "", "parent": 498, "children": [501, 503], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 19}}, {"id": 501, "type": "type_descriptor", "text": "", "parent": 500, "children": [502], "start_point": {"row": 261, "column": 3}, "end_point": {"row": 261, "column": 7}}, {"id": 502, "type": "primitive_type", "text": "", "parent": 501, "children": [], "start_point": {"row": 261, "column": 3}, "end_point": {"row": 261, "column": 7}}, {"id": 503, "type": "identifier", "text": "", "parent": 500, "children": [], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 19}}, {"id": 504, "type": "identifier", "text": "", "parent": 497, "children": [], "start_point": {"row": 261, "column": 21}, "end_point": {"row": 261, "column": 28}}, {"id": 505, "type": "binary_expression", "text": "", "parent": 497, "children": [506, 507, 508, 510], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 59}}, {"id": 506, "type": "identifier", "text": "", "parent": 505, "children": [], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 41}}, {"id": 507, "type": "*", "text": "", "parent": 505, "children": [], "start_point": {"row": 261, "column": 42}, "end_point": {"row": 261, "column": 43}}, {"id": 508, "type": "ERROR", "text": "", "parent": 505, "children": [509], "start_point": {"row": 261, "column": 43}, "end_point": {"row": 261, "column": 49}}, {"id": 509, "type": "identifier", "text": "", "parent": 508, "children": [], "start_point": {"row": 261, "column": 44}, "end_point": {"row": 261, "column": 49}}, {"id": 510, "type": "identifier", "text": "", "parent": 505, "children": [], "start_point": {"row": 261, "column": 50}, "end_point": {"row": 261, "column": 59}}, {"id": 511, "type": "declaration", "text": "", "parent": null, "children": [512, 513, 514], "start_point": {"row": 261, "column": 61}, "end_point": {"row": 261, "column": 84}}, {"id": 512, "type": "type_identifier", "text": "", "parent": 511, "children": [], "start_point": {"row": 261, "column": 61}, "end_point": {"row": 261, "column": 73}}, {"id": 513, "type": "ERROR", "text": "", "parent": 511, "children": [], "start_point": {"row": 261, "column": 73}, "end_point": {"row": 261, "column": 74}}, {"id": 514, "type": "identifier", "text": "", "parent": 511, "children": [], "start_point": {"row": 261, "column": 74}, "end_point": {"row": 261, "column": 83}}, {"id": 515, "type": "ERROR", "text": "", "parent": null, "children": [516], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 21}}, {"id": 516, "type": "unary_expression", "text": "", "parent": 515, "children": [517, 518], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 19}}, {"id": 517, "type": "-", "text": "", "parent": 516, "children": [], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 1}}, {"id": 518, "type": "cast_expression", "text": "", "parent": 516, "children": [519, 521], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 19}}, {"id": 519, "type": "type_descriptor", "text": "", "parent": 518, "children": [520], "start_point": {"row": 263, "column": 3}, "end_point": {"row": 263, "column": 7}}, {"id": 520, "type": "primitive_type", "text": "", "parent": 519, "children": [], "start_point": {"row": 263, "column": 3}, "end_point": {"row": 263, "column": 7}}, {"id": 521, "type": "identifier", "text": "", "parent": 518, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 19}}, {"id": 522, "type": "declaration", "text": "", "parent": null, "children": [523, 524, 525], "start_point": {"row": 263, "column": 21}, "end_point": {"row": 263, "column": 50}}, {"id": 523, "type": "type_identifier", "text": "", "parent": 522, "children": [], "start_point": {"row": 263, "column": 21}, "end_point": {"row": 263, "column": 28}}, {"id": 524, "type": "identifier", "text": "", "parent": 522, "children": [], "start_point": {"row": 263, "column": 29}, "end_point": {"row": 263, "column": 41}}, {"id": 525, "type": "ERROR", "text": "", "parent": 522, "children": [526, 527], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 49}}, {"id": 526, "type": "*", "text": "", "parent": 525, "children": [], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 43}}, {"id": 527, "type": "identifier", "text": "", "parent": 525, "children": [], "start_point": {"row": 263, "column": 44}, "end_point": {"row": 263, "column": 49}}, {"id": 528, "type": "ERROR", "text": "", "parent": null, "children": [529], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 266, "column": 1}}, {"id": 529, "type": "ERROR", "text": "", "parent": 528, "children": [], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 266, "column": 1}}, {"id": 530, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [62, 109, 161, 205, 223, 293, 306, 332, 350, 375, 403, 440, 458, 493, 511, 522], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [17, 19, 26, 28, 35, 37, 45, 47, 56, 68, 76, 78, 87, 89, 94, 100, 102, 114, 115, 120, 126, 128, 133, 139, 141, 146, 147, 157, 164, 166, 173, 175, 182, 184, 192, 194, 199, 210, 212, 217, 230, 232, 237, 243, 245, 250, 256, 258, 263, 264, 280, 282, 287, 300, 302, 312, 314, 319, 321, 326, 344, 346, 362, 364, 369, 381, 390, 392, 397, 411, 423, 425, 434, 445, 447, 452, 463, 465, 470, 476, 478, 487, 498, 500, 505, 516, 518], "assignments": [], "loops": [], "conditionals": [14, 15, 16, 22, 24, 25, 31, 33, 34, 40, 42, 43, 49, 51, 54, 55, 57, 60, 61, 63, 65, 67, 70, 72, 75, 80, 82, 85, 92, 93, 95, 98, 105, 107, 108, 112, 118, 119, 121, 124, 131, 132, 134, 137, 144, 145, 148, 151, 153, 154, 155, 160, 162, 163, 169, 171, 172, 178, 180, 181, 187, 189, 190, 197, 198, 200, 203, 204, 206, 208, 215, 216, 218, 221, 222, 224, 225, 228, 235, 236, 238, 241, 248, 249, 251, 254, 261, 262, 265, 268, 270, 271, 272, 273, 274, 275, 278, 285, 286, 288, 291, 292, 294, 295, 298, 305, 307, 308, 311, 317, 324, 325, 327, 330, 331, 333, 335, 337, 338, 339, 340, 342, 349, 351, 353, 355, 356, 357, 358, 360, 367, 368, 370, 373, 374, 378, 380, 383, 385, 388, 395, 396, 398, 401, 402, 404, 406, 408, 410, 413, 415, 418, 427, 429, 432, 433, 435, 438, 439, 441, 443, 450, 451, 453, 456, 457, 459, 461, 468, 469, 471, 474, 480, 482, 485, 486, 488, 491, 492, 494, 496, 503, 504, 506, 509, 510, 512, 514, 521, 523, 524, 527, 530], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6, 9, 419], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// QHSStatAgent.h\n// QHSAnalyticsSdk\n//\n// Created by sunyimin on 16/5/23.\n// Copyright \u00a9 2016\u5e74 \u5317\u4eac\u5947\u864e\u79d1\u6280\u6709\u9650\u516c\u53f8. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"QHSConfiguration.h\"\n#import \"QHSCustomEvent.h\"\n#import \"QHSLive.h\"\n\n@interface QHSStatAgent : NSObject\n\n///---------------------------------------------------------------------------------------\n/// @name \u8bbe\u7f6e\n///---------------------------------------------------------------------------------------\n\n/**\n * \u8bbe\u7f6e\u662f\u5426\u6253\u5370sdk\u7684log\u4fe1\u606f\n *\n * @param isEnabled BOOL\u7c7b\u578b \u9ed8\u8ba4 NO \u8bbe\u7f6e\u4e3aYES,SDK \u4f1a\u8f93\u51falog\u4fe1\u606f,\u8bb0\u5f97release\u4ea7\u54c1\u65f6\u8981\u8bbe\u7f6e\u56deNO.\n */\n- (void)setLogEnabled:(BOOL)isEnabled;\n\n\n/**\n * \u8bbe\u7f6e\u6253\u5370\u6570\u636e\u76d1\u63a7\u4fe1\u606f\n *\n * @param debug BOOL\u7c7b\u578b \u9ed8\u8ba4 NO\n */\n- (void)setDebugMode:(BOOL)debug;\n\n\n/**\n* \u8bbe\u7f6e\u542f\u7528\u5e7f\u544a\u76d1\u6d4b\u529f\u80fd\u5f00\u5173\n*\n* @param isReproted BOOL\u7c7b\u578b \u9ed8\u8ba4 NO\n*/\n- (void)setReportADDataEnabled:(BOOL)isReproted;\n\n\n///---------------------------------------------------------------------------------------\n/// @name \u5f00\u542f\u7edf\u8ba1\n///---------------------------------------------------------------------------------------\n\n/**\n * \u5f00\u542fsdk\u7edf\u8ba1\uff0c\u9ed8\u8ba4\u4ee5\u4e0b\u6b21\u542f\u52a8\u65b9\u5f0f\u53d1\u9001log\n *\n * @param appKey \u5728QDAS\u4e0a\u6ce8\u518capp\u7684key\n * @param policy \u53d1\u9001\u7b56\u7565\n * @param channelId \u6e20\u9053\u540d\u79f0,\u4e3anil\u6216@\"\"\u65f6,\u9ed8\u8ba4\u4f1a\u88ab\u88ab\u5f53\u4f5c@\"App Store\"\u6e20\u9053\n */\n+(nonnull QHSStatAgent *)startWithappKey:(nonnull NSString *)appKey reportPolicy:(QHSReportPolicy)policy channelId:(nullable NSString *)channelId;\n\n\n/**\n * \u83b7\u53d6m2\u503c\uff0c\u53ea\u751f\u6210\u4e00\u6b21uuid\u5b58\u5165keychain\u4e2d\uff0c\u4e0b\u6b21\u76f4\u63a5\u4ecekeychain\u4e2d\u83b7\u53d6\u3002\n *\n * @return \u8fd4\u56dekeychain\u4e2d\u8bfb\u53d6\u7684uuid\n */\n- (nullable NSString *)getM2;\n\n\n/**\n * \u624b\u52a8\u8bbe\u7f6eapp\u5f53\u524d\u7248\u672c\u4fe1\u606f\n *\n * @param appVersion app\u5f53\u524d\u7248\u672c\u4fe1\u606f\n */\n- (void)setappVersion:(nonnull NSString *)appVersion;\n\n\n/**\n * \u4e3a\u4e86\u66f4\u7cbe\u786e\u7684\u7edf\u8ba1\u7528\u6237\u5730\u7406\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u8c03\u7528\u6b64\u65b9\u6cd5\u4f20\u5165\u7ecf\u7eac\u5ea6\u4fe1\u606f\n \u9700\u8981\u94fe\u63a5 CoreLocation.framework \u5e76\u4e14 #import <CoreLocation/CoreLocation.h>\n *\n * @param latitude \u7eac\u5ea6\n * @param longitude \u7ecf\u5ea6\n */\n- (void)setLocationWithLatitude:(double)latitude longitude:(double)longitude;\n\n\n/**\n * \u8bbe\u7f6e\u7528\u6237id\n *\n * @param userId \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n- (void)setUserId:(nullable NSString *)userId;\n\n\n/**\n * \u8bbe\u7f6etag\u503c\n *\n * @param tag \u5b57\u7b26\u4e32\u7c7b\u578b\n */\n- (void)setTag:(nullable NSString *)tag;\n\n\n/**\n * \u8bbe\u7f6e\u591a\u4e2atag\u503c\u5728header.ext\u91cc\u5b58\u653e\n *\n * @param tagValue tag\u503c \u5982\u679c\u4f20\u7a7a\u503c\u5219\u5c06\u628a\u4e4b\u524d\u7684\u8d4b\u503c\u5220\u9664\n * @param tagIndex tag\u7684key\n */\n- (void)setExtraTag:(nullable NSString *)tagValue index:(QHSExtraTagIndex)tagIndex;\n\n/**\n * \u8bbe\u7f6e\u53d1\u9001\u7b56\u7565\n *\n * @param reportPolicy \u53d1\u9001\u7b56\u7565\n */\n- (void)setReportPolicy:(QHSReportPolicy)reportPolicy;\n\n\n/**\n * \u8bbe\u7f6e\u4e0a\u62a5\u5f53\u524d\u7528\u6237\u4f4d\u7f6e\u4fe1\u606f\n *\n * @param isEnabled BOOL\u7c7b\u578b \u9ed8\u8ba4 NO\n */\n- (void)setLocationReportEnabled:(BOOL)isEnabled;\n\n\n/**\n * \u8bbe\u7f6e\u81ea\u52a8\u5b9a\u4f4d\u4f4d\u7f6e\u4fe1\u606f\n *\n * @param isEnabled BOOL\u7c7b\u578b \u9ed8\u8ba4 NO\n */\n- (void)setAutoLocationEnabled:(BOOL)isEnabled;\n\n\n/**\n * \u8bbe\u7f6e\u4f7f\u7528\u6d4b\u8bd5\u7248\u672c\u7684\u4e91\u63a7\uff08\u4f7f\u7528\u65f6\u6ce8\u610f\uff09\n *\n * @param isBeta BOOL\u7c7b\u578b \u9ed8\u8ba4 NO \u8bb0\u5f97release\u4ea7\u54c1\u65f6\u8981\u8bbe\u7f6e\u56deNO.\n */\n- (void)setOnlineConfigBeBetaVersion:(BOOL)isBeta;\n\n\n/**\n * \u8bbe\u7f6eA/B Test\uff1a\u672c\u6b21test\u8bbe\u7f6e\u540d\u5b57\uff0c\u7136\u540e\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540ctag\u503c\u3002\n *\n * @param name \u6807\u793a\n * @param tag \u7c7b\u578b\n */\n- (void)setABTestName:(nonnull NSString *)name andValue:(QHSAbTestTag)tag;\n\n/**\n * \u8bbe\u7f6e\u57df\u540d\uff0c\u5305\u62ec\u524d\u7f00\u90e8\u5206\uff0c\u6bd4\u5982\u201chttps://abc.com\u201d\n *\n * @param report \u4e0a\u62a5\u6570\u636e\u7684\u57df\u540d\n * @param config \u8bf7\u6c42\u4e91\u63a7\u6570\u636e\u7684\u57df\u540d\n */\n- (void)setDomainForReporting:(nullable NSString *)report onlineConfig:(nullable NSString *)config;\n\n///---------------------------------------------------------------------------------------\n/// @name \u81ea\u5b9a\u4e49\u4e8b\u4ef6\u7edf\u8ba1\n///---------------------------------------------------------------------------------------\n\n\n/**\n * \u4f7f\u7528\u524d\uff0c\u8bf7\u5148\u5230QDAS\u7ba1\u7406\u540e\u53f0\u7684\u8bbe\u7f6e->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c\u7136\u540e\u5728\u5de5\u7a0b\u4e2d\u4f20\u5165\u76f8\u5e94\u7684\u4e8b\u4ef6ID\n * @param event \u81ea\u5b9a\u4e49\u4e8b\u4ef6\u5b9e\u4f8b\n */\n- (void)onEvent:(nonnull QHSCustomEvent *)event;\n\n\n/**\n * \u6570\u636e\u4f18\u5148\u7ea7\u4e3aL5\uff0c\u91c7\u6837\u7c7b\u578b\u662fA\u7684\u8ba1\u6570\u4e8b\u4ef6\u53d1\u751f\u4e00\u6b21\n * \u4f7f\u7528\u524d\uff0c\u8bf7\u5148\u5230QDAS\u7ba1\u7406\u540e\u53f0\u7684\u8bbe\u7f6e->\u7f16\u8f91\u81ea\u5b9a\u4e49\u4e8b\u4ef6 \u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u4e8b\u4ef6ID\uff0c\u7136\u540e\u5728\u5de5\u7a0b\u4e2d\u4f20\u5165\u76f8\u5e94\u7684\u4e8b\u4ef6ID\n * @param eventId \u4e8b\u4ef6ID\n */\n- (void)onTimeEvent:(nonnull NSString *)eventId;\n\n\n/**\n * \u8fdc\u7a0b\u63a8\u9001\u4e8b\u4ef6\n * @param pushId \u8fdc\u7a0b\u63a8\u9001\u4fe1\u606f\u7684\u6807\u8bc6\n * @param type \u63a8\u9001\u4e8b\u4ef6\u7c7b\u578b\n * @param label \u5206\u7c7b\u6807\u7b7e\u3002\u4e0d\u540c\u7684\u6807\u7b7e\u4f1a\u5206\u522b\u8fdb\u884c\u7edf\u8ba1\uff0c\u65b9\u4fbf\u540c\u4e00\u4e8b\u4ef6\u7684\u4e0d\u540c\u6807\u7b7e\u7684\u5bf9\u6bd4,\u4e3anil\u6216\u7a7a\u5b57\u7b26\u4e32\u65f6\u540e\u53f0\u4f1a\u751f\u6210\u548cpushId\u540c\u540d\u7684\u6807\u7b7e.\n */\n- (void)onPushEvent:(nonnull NSString *)pushId type:(QHSPushType)type label:(nullable NSString *)label;\n\n\n/**\u5728\u767b\u5f55\u6210\u529f\u540e\u8c03\u7528\n * \u4f7f\u7528sign-In\u51fd\u6570\u540e\uff0c\u5982\u679c\u7ed3\u675f\u8be5UID\u7684\u7edf\u8ba1\uff0c\u9700\u8981\u8c03\u7528sign-Off\u51fd\u6570\n *\n * @param userId : \u7528\u6237\u767b\u5f55ID\n * @param provider : \u4e0d\u80fd\u4ee5\u4e0b\u5212\u7ebf\"_\"\u5f00\u5934\uff0c\u4f7f\u7528\u5927\u5199\u5b57\u6bcd\u548c\u6570\u5b57\u6807\u8bc6; \u5982\u679c\u662f\u4e0a\u5e02\u516c\u53f8\uff0c\u5efa\u8bae\u4f7f\u7528\u80a1\u7968\u4ee3\u7801\u3002\n */\n- (void)profileSignInWithUID:(nonnull NSString *)userId provider:(nullable NSString *)provider;\n\n- (void)profileSignInWithUID:(nonnull NSString *)userId;\n\n\n/** \u5728\u6ce8\u9500\u6210\u529f\u540e\u8c03\u7528\n *\n */\n- (void)profileSignOff;\n\n\n/**\n \u5728\u6ce8\u518c\u6210\u529f\u540e\u8c03\u7528\n\n @param accountId \u6ce8\u518c\u7684\u8d26\u53f7\u552f\u4e00\u6807\u8bc6.\u53ef\u80fd\u662fuseriId,email\u7b49\n @param provider \u6ce8\u518c\u7684\u8d26\u53f7\u6765\u6e90.\u53ef\u80fd\u662f\u5fae\u4fe1,\u5fae\u535a\u7b49\n @param props \u5176\u5b83\u6269\u5c55\u5c5e\u6027\n */\n- (void)onRegister:(nonnull NSString *)accountId andAccountProvider:(nullable NSString *)provider andProps:(nullable NSDictionary *)props;\n\n- (void)onRegister:(nonnull NSString *)accountId andProps:(nullable NSDictionary *)props;\n\n\n/**\n \u5728\u652f\u4ed8\u5b8c\u6210\u540e\u8c03\u7528\n\n @param item \u5546\u54c1\u540d\u79f0\u6216\u7f16\u53f7\n @param amount \u652f\u4ed8\u91d1\u989d\n @param props \u5176\u5b83\u6269\u5c55\u5c5e\u6027\n */\n- (void)onPay:(nullable NSString *)item andAmount:(double)amount AndProps:(nullable NSDictionary *)props;\n\n\n\n/**\n \u6210\u529f\u4e0b\u5355\u540e\u8c03\u7528\n\n @param transactionId \u552f\u4e00\u4ea4\u6613\u6d41\u6c34\u53f7\n @param currenyType \u8d27\u5e01\u7c7b\u578b \u4eba\u6c11\u5e01 CNY \u6309ISO 4217\u6807\u51c6\n @param currencyAmount \u4ea4\u6613\u91d1\u989d\n */\n- (void)onOrder:(nonnull NSString *)transactionId andCurrenyType:(nonnull NSString *)currenyType andCurrencyAmount:(nullable NSString *)currencyAmount;\n\n\n#pragma mark \u89c6\u9891\u76f4\u64ad\u548c\u89c2\u770b\u529f\u80fd\n/**\n * \u89c6\u9891\u76f4\u64ad\n * @param vid \u89c6\u9891id\n * \u8fd4\u56de\u503c\u4e3aQHSLiveEvent\u5b9e\u4f8b\u5316\u5bf9\u8c61\n */\n- (nonnull QHSLiveEvent *)liveEventWithId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n* @param event QHSLiveEvent\u5bf9\u8c61\n* @param dataLevel \u6570\u636e\u4f18\u5148\u7ea7\n*/\n- (void)onLiveEvent:(nonnull QHSLiveEvent *)event dataLevel:(QHSDataLevel)dataLevel;\n- (void)onLiveEvent:(nonnull QHSLiveEvent *)event;\n\n\n/**\n * \u89c6\u9891\u89c2\u770b\n * @param vid \u89c6\u9891id\n * \u8fd4\u56de\u503c\u4e3aQHSPlayEvent\u5b9e\u4f8b\u5316\u5bf9\u8c61\n */\n- (nonnull QHSPlayEvent *)playEventWithId:(nonnull NSString *)vid type:(QHSType)type;\n\n/**\n * @param event QHSPlayEvent\u5bf9\u8c61\n * @param dataLevel \u6570\u636e\u4f18\u5148\u7ea7\n */\n- (void)onPlayEvent:(nonnull QHSPlayEvent *)event dataLevel:(QHSDataLevel)dataLevel;\n\n- (void)onPlayEvent:(nonnull QHSPlayEvent *)event;\n\n\n@end\n"}
104
c
#ifndef HEAP_POPULATION_H #define HEAP_POPULATION_H #include "individual.h" #define FIRST_LEAF_INDEX (this->species_heap.size() / 2) #define NUMBER_OF_SPECIES (1 + species_heap.size() / 2) class HeapPopulation { protected: class Species {//basically it is just an array private: uint32 population; Individual** individuals;//array of pointers Individual** swap_individuals; void destructorCode(); public: explicit Species(uint32 population = 0); Species(const Species& species);//copy virtual ~Species(); void clearIndividualsArray(Individual** array = nullptr); void copyIndividualsArray(const Individual** source, Individual** target) const; void sortByTotalFitnessNorm(); void swapArrays(); uint32 populationSize() const; Species& operator = (const Species& species); const Individual* operator [] (int i) const { return individuals[i]; } Individual*& operator [] (int i) { return individuals[i]; } //static void swapData(Species& spec1, Species& spec2); friend class GA;//needs access to swap_individuals }; uint32 total_population; std::vector<Species*> species_heap; virtual Individual* getIndividual(uint32 index) const; void split(); void merge(); virtual Individual* createIndividual() const = 0; public: HeapPopulation(); virtual ~HeapPopulation(); virtual void initPopulation(uint32 total_population_size); uint32 getNumberOfSpecies() const; void printSpeciesSizes() const; }; #endif
35.64
42
(translation_unit) "#ifndef HEAP_POPULATION_H\n#define HEAP_POPULATION_H\n\n#include "individual.h"\n\n#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n\nclass HeapPopulation {\n protected:\n class Species {//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n };\n\n uint32 total_population;\n std::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n void split();\n void merge();\n\n virtual Individual* createIndividual() const = 0;\n public:\n HeapPopulation();\n virtual ~HeapPopulation();\n\n virtual void initPopulation(uint32 total_population_size);\n\n uint32 getNumberOfSpecies() const;\n void printSpeciesSizes() const;\n};\n\n#endif" (preproc_ifdef) "#ifndef HEAP_POPULATION_H\n#define HEAP_POPULATION_H\n\n#include "individual.h"\n\n#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n\nclass HeapPopulation {\n protected:\n class Species {//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n };\n\n uint32 total_population;\n std::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n void split();\n void merge();\n\n virtual Individual* createIndividual() const = 0;\n public:\n HeapPopulation();\n virtual ~HeapPopulation();\n\n virtual void initPopulation(uint32 total_population_size);\n\n uint32 getNumberOfSpecies() const;\n void printSpeciesSizes() const;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "HEAP_POPULATION_H" (preproc_def) "#define HEAP_POPULATION_H\n" (#define) "#define" (identifier) "HEAP_POPULATION_H" (preproc_include) "#include "individual.h"\n" (#include) "#include" (string_literal) ""individual.h"" (") """ (string_content) "individual.h" (") """ (preproc_def) "#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n" (#define) "#define" (identifier) "FIRST_LEAF_INDEX" (preproc_arg) "(this->species_heap.size() / 2)" (preproc_def) "#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n" (#define) "#define" (identifier) "NUMBER_OF_SPECIES" (preproc_arg) "(1 + species_heap.size() / 2)" (function_definition) "class HeapPopulation {\n protected:\n class Species {//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n };\n\n uint32 total_population;\n std::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n void split();\n void merge();\n\n virtual Individual* createIndividual() const = 0;\n public:\n HeapPopulation();\n virtual ~HeapPopulation();\n\n virtual void initPopulation(uint32 total_population_size);\n\n uint32 getNumberOfSpecies() const;\n void printSpeciesSizes() const;\n}" (type_identifier) "class" (identifier) "HeapPopulation" (compound_statement) "{\n protected:\n class Species {//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n };\n\n uint32 total_population;\n std::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n void split();\n void merge();\n\n virtual Individual* createIndividual() const = 0;\n public:\n HeapPopulation();\n virtual ~HeapPopulation();\n\n virtual void initPopulation(uint32 total_population_size);\n\n uint32 getNumberOfSpecies() const;\n void printSpeciesSizes() const;\n}" ({) "{" (labeled_statement) "protected:\n class Species {//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n }" (statement_identifier) "protected" (:) ":" (ERROR) "class Species" (type_identifier) "class" (identifier) "Species" (compound_statement) "{//basically it is just an array\n private:\n uint32 population;\n Individual** individuals;//array of pointers\n Individual** swap_individuals;\n\n void destructorCode();\n public:\n explicit Species(uint32 population = 0);\n Species(const Species& species);//copy\n virtual ~Species();\n\n void clearIndividualsArray(Individual** array = nullptr);\n void copyIndividualsArray(const Individual** source, Individual** target) const;\n void sortByTotalFitnessNorm();\n void swapArrays();\n\n uint32 populationSize() const;\n\n Species& operator = (const Species& species);\n const Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n }" ({) "{" (comment) "//basically it is just an array" (labeled_statement) "private:\n uint32 population;" (statement_identifier) "private" (:) ":" (declaration) "uint32 population;" (type_identifier) "uint32" (identifier) "population" (;) ";" (declaration) "Individual** individuals;" (type_identifier) "Individual" (pointer_declarator) "** individuals" (*) "*" (pointer_declarator) "* individuals" (*) "*" (identifier) "individuals" (;) ";" (comment) "//array of pointers" (declaration) "Individual** swap_individuals;" (type_identifier) "Individual" (pointer_declarator) "** swap_individuals" (*) "*" (pointer_declarator) "* swap_individuals" (*) "*" (identifier) "swap_individuals" (;) ";" (declaration) "void destructorCode();" (primitive_type) "void" (function_declarator) "destructorCode()" (identifier) "destructorCode" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n explicit Species(uint32 population = 0);" (statement_identifier) "public" (:) ":" (declaration) "explicit Species(uint32 population = 0);" (type_identifier) "explicit" (init_declarator) "Species(uint32 population = 0" (function_declarator) "Species(uint32 population" (identifier) "Species" (parameter_list) "(uint32 population" (() "(" (parameter_declaration) "uint32 population" (type_identifier) "uint32" (identifier) "population" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (macro_type_specifier) "Species(const Species& species)" (identifier) "Species" (() "(" (type_descriptor) "const Species" (type_qualifier) "const" (const) "const" (type_identifier) "Species" (ERROR) "& species" (&) "&" (identifier) "species" ()) ")" (;) ";" (comment) "//copy" (declaration) "virtual ~Species();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Species()" (identifier) "Species" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void clearIndividualsArray(Individual** array = nullptr);" (primitive_type) "void" (function_declarator) "clearIndividualsArray(Individual** array = nullptr)" (identifier) "clearIndividualsArray" (parameter_list) "(Individual** array = nullptr)" (() "(" (parameter_declaration) "Individual** array" (type_identifier) "Individual" (pointer_declarator) "** array" (*) "*" (pointer_declarator) "* array" (*) "*" (identifier) "array" (ERROR) "= nullptr" (=) "=" (nullptr) "nullptr" ()) ")" (;) ";" (ERROR) "void copyIndividualsArray(const Individual** source, Individual** target) const" (primitive_type) "void" (function_declarator) "copyIndividualsArray(const Individual** source, Individual** target) const" (identifier) "copyIndividualsArray" (parameter_list) "(const Individual** source, Individual** target)" (() "(" (parameter_declaration) "const Individual** source" (type_qualifier) "const" (const) "const" (type_identifier) "Individual" (pointer_declarator) "** source" (*) "*" (pointer_declarator) "* source" (*) "*" (identifier) "source" (,) "," (parameter_declaration) "Individual** target" (type_identifier) "Individual" (pointer_declarator) "** target" (*) "*" (pointer_declarator) "* target" (*) "*" (identifier) "target" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "void sortByTotalFitnessNorm();" (primitive_type) "void" (function_declarator) "sortByTotalFitnessNorm()" (identifier) "sortByTotalFitnessNorm" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void swapArrays();" (primitive_type) "void" (function_declarator) "swapArrays()" (identifier) "swapArrays" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "uint32 populationSize() const" (type_identifier) "uint32" (function_declarator) "populationSize()" (identifier) "populationSize" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (expression_statement) "Species& operator = (const Species& species);" (binary_expression) "Species& operator = (const Species& species)" (identifier) "Species" (&) "&" (assignment_expression) "operator = (const Species& species)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const Species& species)" (() "(" (ERROR) "const Species" (type_descriptor) "const Species" (type_qualifier) "const" (const) "const" (type_identifier) "Species" (pointer_expression) "& species" (&) "&" (identifier) "species" ()) ")" (;) ";" (function_definition) "const Individual* operator [] (int i) const { return individuals[i]; }" (type_qualifier) "const" (const) "const" (type_identifier) "Individual" (pointer_declarator) "* operator [] (int i) const" (*) "*" (function_declarator) "operator [] (int i) const" (array_declarator) "operator []" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(int i)" (() "(" (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" ()) ")" (identifier) "const" (compound_statement) "{ return individuals[i]; }" ({) "{" (return_statement) "return individuals[i];" (return) "return" (subscript_expression) "individuals[i]" (identifier) "individuals" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (expression_statement) "Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;" (binary_expression) "Individual*& operator" (identifier) "Individual" (*) "*" (pointer_expression) "& operator" (&) "&" (identifier) "operator" (ERROR) "[] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA" ([) "[" (ERROR) "] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend" (]) "]" (compound_literal_expression) "(int i) { return individuals[i]; }" (() "(" (type_descriptor) "int" (primitive_type) "int" (ERROR) "i" (identifier) "i" ()) ")" (initializer_list) "{ return individuals[i]; }" ({) "{" (ERROR) "return" (identifier) "return" (subscript_expression) "individuals[i]" (identifier) "individuals" ([) "[" (identifier) "i" (]) "]" (ERROR) ";" (;) ";" (}) "}" (comment) "//static void swapData(Species& spec1, Species& spec2);" (identifier) "friend" (identifier) "class" (identifier) "GA" (;) ";" (comment) "//needs access to swap_individuals" (}) "}" (expression_statement) ";" (;) ";" (declaration) "uint32 total_population;" (type_identifier) "uint32" (identifier) "total_population" (;) ";" (labeled_statement) "std::vector<Species*> species_heap;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<Species*> species_heap;" (binary_expression) "vector<Species*> species_heap" (binary_expression) "vector<Species" (identifier) "vector" (<) "<" (identifier) "Species" (ERROR) "*" (*) "*" (>) ">" (identifier) "species_heap" (;) ";" (declaration) "virtual Individual* getIndividual(uint32 index) const;" (type_identifier) "virtual" (ERROR) "Individual" (identifier) "Individual" (pointer_declarator) "* getIndividual(uint32 index) const" (*) "*" (function_declarator) "getIndividual(uint32 index) const" (identifier) "getIndividual" (parameter_list) "(uint32 index)" (() "(" (parameter_declaration) "uint32 index" (type_identifier) "uint32" (identifier) "index" ()) ")" (identifier) "const" (;) ";" (declaration) "void split();" (primitive_type) "void" (function_declarator) "split()" (identifier) "split" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void merge();" (primitive_type) "void" (function_declarator) "merge()" (identifier) "merge" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual Individual* createIndividual() const = 0;" (type_identifier) "virtual" (ERROR) "Individual" (identifier) "Individual" (init_declarator) "* createIndividual() const = 0" (pointer_declarator) "* createIndividual() const" (*) "*" (function_declarator) "createIndividual() const" (identifier) "createIndividual" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "public:\n HeapPopulation();" (statement_identifier) "public" (:) ":" (expression_statement) "HeapPopulation();" (call_expression) "HeapPopulation()" (identifier) "HeapPopulation" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~HeapPopulation();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "HeapPopulation()" (identifier) "HeapPopulation" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void initPopulation(uint32 total_population_size);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "initPopulation(uint32 total_population_size)" (identifier) "initPopulation" (parameter_list) "(uint32 total_population_size)" (() "(" (parameter_declaration) "uint32 total_population_size" (type_identifier) "uint32" (identifier) "total_population_size" ()) ")" (;) ";" (ERROR) "uint32 getNumberOfSpecies() const;\n void printSpeciesSizes() const" (type_identifier) "uint32" (function_declarator) "getNumberOfSpecies()" (identifier) "getNumberOfSpecies" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "void" (function_declarator) "printSpeciesSizes() const" (identifier) "printSpeciesSizes" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
393
21
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 35.64, "nodes": 242, "errors": 0, "source_hash": "5d59e35fb37e01306a9b1f9f91d525e7a18e37bb2346f1cd754156d2264c6ee2", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HEAP_POPULATION_H\n#define HEAP_POPULATION_H\n\n#include \"individual.h\"\n\n#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n\nclass HeapPopulation {\n\tprotected:\n\t\tclass Species {//basically it is just an array\n\t\t\tprivate:\n\t\t\t\tuint32 population;\n\t\t\t\tIndividual** individuals;//array of pointers\n\t\t\t\tIndividual** swap_individuals;\n\n\t\t\t\tvoid destructorCode();\n\t\t\tpublic:\n\t\t\t\texplicit Species(uint32 population = 0);\n\t\t\t\tSpecies(const Species& species);//copy\n\t\t\t\tvirtual ~Species();\n\n\t\t\t\tvoid clearIndividualsArray(Individual** array = nullptr);\n\t\t\t\tvoid copyIndividualsArray(const Individual** source, Individual** target) const;\n\t\t\t\tvoid sortByTotalFitnessNorm();\n\t\t\t\tvoid swapArrays();\n\n\t\t\t\tuint32 populationSize() const;\n\n\t\t\t\tSpecies& operator = (const Species& species);\n\t\t\t\tconst Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n\t\t};\n\n\t\tuint32 total_population;\n\t\tstd::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n\t\tvoid split();\n\t\tvoid merge();\n\n\t\tvirtual Individual* createIndividual() const = 0;\n\tpublic:\n\t\tHeapPopulation();\n\t\tvirtual ~HeapPopulation();\n\n\t\tvirtual void initPopulation(uint32 total_population_size);\n\n\t\tuint32 getNumberOfSpecies() const;\n\t\tvoid printSpeciesSizes() const;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 17, 241], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "HEAP_POPULATION_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define HEAP_POPULATION_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": "HEAP_POPULATION_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"individual.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": "\"individual.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 23}}, {"id": 9, "type": "preproc_def", "text": "#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "FIRST_LEAF_INDEX", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 24}}, {"id": 12, "type": "preproc_arg", "text": "(this->species_heap.size() / 2)", "parent": 9, "children": [], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 56}}, {"id": 13, "type": "preproc_def", "text": "#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n", "parent": 0, "children": [14, 15, 16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 15, "type": "identifier", "text": "NUMBER_OF_SPECIES", "parent": 13, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 25}}, {"id": 16, "type": "preproc_arg", "text": "(1 + species_heap.size() / 2)", "parent": 13, "children": [], "start_point": {"row": 6, "column": 26}, "end_point": {"row": 6, "column": 55}}, {"id": 17, "type": "function_definition", "text": "class HeapPopulation {\n\tprotected:\n\t\tclass Species {//basically it is just an array\n\t\t\tprivate:\n\t\t\t\tuint32 population;\n\t\t\t\tIndividual** individuals;//array of pointers\n\t\t\t\tIndividual** swap_individuals;\n\n\t\t\t\tvoid destructorCode();\n\t\t\tpublic:\n\t\t\t\texplicit Species(uint32 population = 0);\n\t\t\t\tSpecies(const Species& species);//copy\n\t\t\t\tvirtual ~Species();\n\n\t\t\t\tvoid clearIndividualsArray(Individual** array = nullptr);\n\t\t\t\tvoid copyIndividualsArray(const Individual** source, Individual** target) const;\n\t\t\t\tvoid sortByTotalFitnessNorm();\n\t\t\t\tvoid swapArrays();\n\n\t\t\t\tuint32 populationSize() const;\n\n\t\t\t\tSpecies& operator = (const Species& species);\n\t\t\t\tconst Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n\t\t};\n\n\t\tuint32 total_population;\n\t\tstd::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n\t\tvoid split();\n\t\tvoid merge();\n\n\t\tvirtual Individual* createIndividual() const = 0;\n\tpublic:\n\t\tHeapPopulation();\n\t\tvirtual ~HeapPopulation();\n\n\t\tvirtual void initPopulation(uint32 total_population_size);\n\n\t\tuint32 getNumberOfSpecies() const;\n\t\tvoid printSpeciesSizes() const;\n}", "parent": 0, "children": [18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 18, "type": "identifier", "text": "HeapPopulation", "parent": 17, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 20}}, {"id": 19, "type": "labeled_statement", "text": "protected:\n\t\tclass Species {//basically it is just an array\n\t\t\tprivate:\n\t\t\t\tuint32 population;\n\t\t\t\tIndividual** individuals;//array of pointers\n\t\t\t\tIndividual** swap_individuals;\n\n\t\t\t\tvoid destructorCode();\n\t\t\tpublic:\n\t\t\t\texplicit Species(uint32 population = 0);\n\t\t\t\tSpecies(const Species& species);//copy\n\t\t\t\tvirtual ~Species();\n\n\t\t\t\tvoid clearIndividualsArray(Individual** array = nullptr);\n\t\t\t\tvoid copyIndividualsArray(const Individual** source, Individual** target) const;\n\t\t\t\tvoid sortByTotalFitnessNorm();\n\t\t\t\tvoid swapArrays();\n\n\t\t\t\tuint32 populationSize() const;\n\n\t\t\t\tSpecies& operator = (const Species& species);\n\t\t\t\tconst Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n\t\t}", "parent": 17, "children": [20], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 36, "column": 3}}, {"id": 20, "type": "ERROR", "text": "class Species", "parent": 19, "children": [21], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 15}}, {"id": 21, "type": "identifier", "text": "Species", "parent": 20, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 22, "type": "labeled_statement", "text": "private:\n\t\t\t\tuint32 population;", "parent": 19, "children": [23], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 12, "column": 22}}, {"id": 23, "type": "declaration", "text": "uint32 population;", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 22}}, {"id": 24, "type": "type_identifier", "text": "uint32", "parent": 23, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 25, "type": "identifier", "text": "population", "parent": 23, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 21}}, {"id": 26, "type": "declaration", "text": "Individual** individuals;", "parent": 19, "children": [27, 28], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 29}}, {"id": 27, "type": "type_identifier", "text": "Individual", "parent": 26, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 14}}, {"id": 28, "type": "pointer_declarator", "text": "** individuals", "parent": 26, "children": [29, 30], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 28}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 15}}, {"id": 30, "type": "pointer_declarator", "text": "* individuals", "parent": 28, "children": [31, 32], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 28}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 32, "type": "identifier", "text": "individuals", "parent": 30, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 28}}, {"id": 33, "type": "declaration", "text": "Individual** swap_individuals;", "parent": 19, "children": [34, 35], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 34}}, {"id": 34, "type": "type_identifier", "text": "Individual", "parent": 33, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 14}}, {"id": 35, "type": "pointer_declarator", "text": "** swap_individuals", "parent": 33, "children": [36, 37], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 33}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 15}}, {"id": 37, "type": "pointer_declarator", "text": "* swap_individuals", "parent": 35, "children": [38, 39], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 33}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 39, "type": "identifier", "text": "swap_individuals", "parent": 37, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 33}}, {"id": 40, "type": "declaration", "text": "void destructorCode();", "parent": 19, "children": [41, 42], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 26}}, {"id": 41, "type": "primitive_type", "text": "void", "parent": 40, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 42, "type": "function_declarator", "text": "destructorCode()", "parent": 40, "children": [43, 44], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 25}}, {"id": 43, "type": "identifier", "text": "destructorCode", "parent": 42, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 23}}, {"id": 44, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 25}}, {"id": 45, "type": "labeled_statement", "text": "public:\n\t\t\t\texplicit Species(uint32 population = 0);", "parent": 19, "children": [46], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 18, "column": 44}}, {"id": 46, "type": "declaration", "text": "explicit Species(uint32 population = 0);", "parent": 45, "children": [47, 48], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 44}}, {"id": 47, "type": "type_identifier", "text": "explicit", "parent": 46, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 48, "type": "init_declarator", "text": "Species(uint32 population = 0", "parent": 46, "children": [49, 55, 56], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 42}}, {"id": 49, "type": "function_declarator", "text": "Species(uint32 population", "parent": 48, "children": [50, 51], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 38}}, {"id": 50, "type": "identifier", "text": "Species", "parent": 49, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 20}}, {"id": 51, "type": "parameter_list", "text": "(uint32 population", "parent": 49, "children": [52], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 38}}, {"id": 52, "type": "parameter_declaration", "text": "uint32 population", "parent": 51, "children": [53, 54], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 38}}, {"id": 53, "type": "type_identifier", "text": "uint32", "parent": 52, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 27}}, {"id": 54, "type": "identifier", "text": "population", "parent": 52, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 38}}, {"id": 55, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 40}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 48, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 42}}, {"id": 57, "type": "macro_type_specifier", "text": "Species(const Species& species)", "parent": 19, "children": [58, 59, 61], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 35}}, {"id": 58, "type": "identifier", "text": "Species", "parent": 57, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 59, "type": "type_descriptor", "text": "const Species", "parent": 57, "children": [60], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 25}}, {"id": 60, "type": "type_identifier", "text": "Species", "parent": 59, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 25}}, {"id": 61, "type": "ERROR", "text": "& species", "parent": 57, "children": [62], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 34}}, {"id": 62, "type": "identifier", "text": "species", "parent": 61, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 34}}, {"id": 63, "type": "declaration", "text": "virtual ~Species();", "parent": 19, "children": [64, 65, 67], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 23}}, {"id": 64, "type": "type_identifier", "text": "virtual", "parent": 63, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 65, "type": "ERROR", "text": "~", "parent": 63, "children": [66], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 66, "type": "~", "text": "~", "parent": 65, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 67, "type": "function_declarator", "text": "Species()", "parent": 63, "children": [68, 69], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 22}}, {"id": 68, "type": "identifier", "text": "Species", "parent": 67, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 20}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 22}}, {"id": 70, "type": "declaration", "text": "void clearIndividualsArray(Individual** array = nullptr);", "parent": 19, "children": [71, 72], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 61}}, {"id": 71, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 72, "type": "function_declarator", "text": "clearIndividualsArray(Individual** array = nullptr)", "parent": 70, "children": [73, 74], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 60}}, {"id": 73, "type": "identifier", "text": "clearIndividualsArray", "parent": 72, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 30}}, {"id": 74, "type": "parameter_list", "text": "(Individual** array = nullptr)", "parent": 72, "children": [75, 82], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 60}}, {"id": 75, "type": "parameter_declaration", "text": "Individual** array", "parent": 74, "children": [76, 77], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 49}}, {"id": 76, "type": "type_identifier", "text": "Individual", "parent": 75, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 41}}, {"id": 77, "type": "pointer_declarator", "text": "** array", "parent": 75, "children": [78, 79], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 49}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 42}}, {"id": 79, "type": "pointer_declarator", "text": "* array", "parent": 77, "children": [80, 81], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 49}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 43}}, {"id": 81, "type": "identifier", "text": "array", "parent": 79, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 49}}, {"id": 82, "type": "ERROR", "text": "= nullptr", "parent": 74, "children": [83, 84], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 59}}, {"id": 83, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 51}}, {"id": 84, "type": "nullptr", "text": "nullptr", "parent": 82, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 59}}, {"id": 85, "type": "ERROR", "text": "void copyIndividualsArray(const Individual** source, Individual** target) const", "parent": 19, "children": [86, 87], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 83}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 87, "type": "function_declarator", "text": "copyIndividualsArray(const Individual** source, Individual** target) const", "parent": 85, "children": [88, 89], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 83}}, {"id": 88, "type": "identifier", "text": "copyIndividualsArray", "parent": 87, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 29}}, {"id": 89, "type": "parameter_list", "text": "(const Individual** source, Individual** target)", "parent": 87, "children": [90, 97], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 77}}, {"id": 90, "type": "parameter_declaration", "text": "const Individual** source", "parent": 89, "children": [91, 92], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 55}}, {"id": 91, "type": "type_identifier", "text": "Individual", "parent": 90, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 46}}, {"id": 92, "type": "pointer_declarator", "text": "** source", "parent": 90, "children": [93, 94], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 55}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 47}}, {"id": 94, "type": "pointer_declarator", "text": "* source", "parent": 92, "children": [95, 96], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 55}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 48}}, {"id": 96, "type": "identifier", "text": "source", "parent": 94, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 55}}, {"id": 97, "type": "parameter_declaration", "text": "Individual** target", "parent": 89, "children": [98, 99], "start_point": {"row": 23, "column": 57}, "end_point": {"row": 23, "column": 76}}, {"id": 98, "type": "type_identifier", "text": "Individual", "parent": 97, "children": [], "start_point": {"row": 23, "column": 57}, "end_point": {"row": 23, "column": 67}}, {"id": 99, "type": "pointer_declarator", "text": "** target", "parent": 97, "children": [100, 101], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 76}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 68}}, {"id": 101, "type": "pointer_declarator", "text": "* target", "parent": 99, "children": [102, 103], "start_point": {"row": 23, "column": 68}, "end_point": {"row": 23, "column": 76}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 23, "column": 68}, "end_point": {"row": 23, "column": 69}}, {"id": 103, "type": "identifier", "text": "target", "parent": 101, "children": [], "start_point": {"row": 23, "column": 70}, "end_point": {"row": 23, "column": 76}}, {"id": 104, "type": "declaration", "text": "void sortByTotalFitnessNorm();", "parent": 19, "children": [105, 106], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 34}}, {"id": 105, "type": "primitive_type", "text": "void", "parent": 104, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 106, "type": "function_declarator", "text": "sortByTotalFitnessNorm()", "parent": 104, "children": [107, 108], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 33}}, {"id": 107, "type": "identifier", "text": "sortByTotalFitnessNorm", "parent": 106, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 31}}, {"id": 108, "type": "parameter_list", "text": "()", "parent": 106, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 109, "type": "declaration", "text": "void swapArrays();", "parent": 19, "children": [110, 111], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 22}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 111, "type": "function_declarator", "text": "swapArrays()", "parent": 109, "children": [112, 113], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 112, "type": "identifier", "text": "swapArrays", "parent": 111, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 113, "type": "parameter_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 21}}, {"id": 114, "type": "ERROR", "text": "uint32 populationSize() const", "parent": 19, "children": [115, 116], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 33}}, {"id": 115, "type": "type_identifier", "text": "uint32", "parent": 114, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 10}}, {"id": 116, "type": "function_declarator", "text": "populationSize()", "parent": 114, "children": [117, 118], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 27}}, {"id": 117, "type": "identifier", "text": "populationSize", "parent": 116, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 25}}, {"id": 118, "type": "parameter_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 27}}, {"id": 119, "type": "binary_expression", "text": "Species& operator = (const Species& species)", "parent": 19, "children": [120, 121], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 48}}, {"id": 120, "type": "identifier", "text": "Species", "parent": 119, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 121, "type": "assignment_expression", "text": "operator = (const Species& species)", "parent": 119, "children": [122, 123, 124], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 48}}, {"id": 122, "type": "identifier", "text": "operator", "parent": 121, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 21}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 124, "type": "parenthesized_expression", "text": "(const Species& species)", "parent": 121, "children": [125, 128], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 48}}, {"id": 125, "type": "ERROR", "text": "const Species", "parent": 124, "children": [126], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 38}}, {"id": 126, "type": "type_descriptor", "text": "const Species", "parent": 125, "children": [127], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 38}}, {"id": 127, "type": "type_identifier", "text": "Species", "parent": 126, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 38}}, {"id": 128, "type": "pointer_expression", "text": "& species", "parent": 124, "children": [129], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 47}}, {"id": 129, "type": "identifier", "text": "species", "parent": 128, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 47}}, {"id": 130, "type": "function_definition", "text": "const Individual* operator [] (int i) const { return individuals[i]; }", "parent": 19, "children": [131, 132], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 74}}, {"id": 131, "type": "type_identifier", "text": "Individual", "parent": 130, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 20}}, {"id": 132, "type": "pointer_declarator", "text": "* operator [] (int i) const", "parent": 130, "children": [133, 134], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 47}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 21}}, {"id": 134, "type": "function_declarator", "text": "operator [] (int i) const", "parent": 132, "children": [135, 137], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 47}}, {"id": 135, "type": "array_declarator", "text": "operator []", "parent": 134, "children": [136], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 33}}, {"id": 136, "type": "identifier", "text": "operator", "parent": 135, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 30}}, {"id": 137, "type": "parameter_list", "text": "(int i)", "parent": 134, "children": [138], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 41}}, {"id": 138, "type": "parameter_declaration", "text": "int i", "parent": 137, "children": [139, 140], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 40}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 38}}, {"id": 140, "type": "identifier", "text": "i", "parent": 138, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 40}}, {"id": 141, "type": "return_statement", "text": "return individuals[i];", "parent": 130, "children": [142], "start_point": {"row": 30, "column": 50}, "end_point": {"row": 30, "column": 72}}, {"id": 142, "type": "subscript_expression", "text": "individuals[i]", "parent": 141, "children": [143, 144], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 71}}, {"id": 143, "type": "identifier", "text": "individuals", "parent": 142, "children": [], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 68}}, {"id": 144, "type": "identifier", "text": "i", "parent": 142, "children": [], "start_point": {"row": 30, "column": 69}, "end_point": {"row": 30, "column": 70}}, {"id": 145, "type": "binary_expression", "text": "Individual*& operator", "parent": 19, "children": [146, 147, 148], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 37}}, {"id": 146, "type": "identifier", "text": "Individual", "parent": 145, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 26}}, {"id": 147, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 148, "type": "pointer_expression", "text": "& operator", "parent": 145, "children": [149], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 37}}, {"id": 149, "type": "identifier", "text": "operator", "parent": 148, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 37}}, {"id": 150, "type": "ERROR", "text": "[] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA", "parent": 19, "children": [151, 162], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 35, "column": 31}}, {"id": 151, "type": "ERROR", "text": "] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend", "parent": 150, "children": [152, 161], "start_point": {"row": 31, "column": 39}, "end_point": {"row": 35, "column": 22}}, {"id": 152, "type": "compound_literal_expression", "text": "(int i) { return individuals[i]; }", "parent": 151, "children": [153, 155, 157], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 75}}, {"id": 153, "type": "type_descriptor", "text": "int", "parent": 152, "children": [154], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 45}}, {"id": 154, "type": "primitive_type", "text": "int", "parent": 153, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 45}}, {"id": 155, "type": "ERROR", "text": "i", "parent": 152, "children": [156], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 47}}, {"id": 156, "type": "identifier", "text": "i", "parent": 155, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 47}}, {"id": 157, "type": "initializer_list", "text": "{ return individuals[i]; }", "parent": 152, "children": [158], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 75}}, {"id": 158, "type": "subscript_expression", "text": "individuals[i]", "parent": 157, "children": [159, 160], "start_point": {"row": 31, "column": 58}, "end_point": {"row": 31, "column": 72}}, {"id": 159, "type": "identifier", "text": "individuals", "parent": 158, "children": [], "start_point": {"row": 31, "column": 58}, "end_point": {"row": 31, "column": 69}}, {"id": 160, "type": "identifier", "text": "i", "parent": 158, "children": [], "start_point": {"row": 31, "column": 70}, "end_point": {"row": 31, "column": 71}}, {"id": 161, "type": "identifier", "text": "friend", "parent": 151, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 22}}, {"id": 162, "type": "identifier", "text": "GA", "parent": 150, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 31}}, {"id": 163, "type": "declaration", "text": "uint32 total_population;", "parent": 17, "children": [164, 165], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 26}}, {"id": 164, "type": "type_identifier", "text": "uint32", "parent": 163, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 8}}, {"id": 165, "type": "identifier", "text": "total_population", "parent": 163, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 25}}, {"id": 166, "type": "labeled_statement", "text": "std::vector<Species*> species_heap;", "parent": 17, "children": [167], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 37}}, {"id": 167, "type": "statement_identifier", "text": "std", "parent": 166, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 5}}, {"id": 168, "type": "binary_expression", "text": "vector<Species*> species_heap", "parent": 166, "children": [169, 173, 175, 176], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 36}}, {"id": 169, "type": "binary_expression", "text": "vector<Species", "parent": 168, "children": [170, 171, 172], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 21}}, {"id": 170, "type": "identifier", "text": "vector", "parent": 169, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 171, "type": "<", "text": "<", "parent": 169, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 14}}, {"id": 172, "type": "identifier", "text": "Species", "parent": 169, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 21}}, {"id": 173, "type": "ERROR", "text": "*", "parent": 168, "children": [174], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 175, "type": ">", "text": ">", "parent": 168, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 176, "type": "identifier", "text": "species_heap", "parent": 168, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 36}}, {"id": 177, "type": "declaration", "text": "virtual Individual* getIndividual(uint32 index) const;", "parent": 17, "children": [178, 179, 181], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 62}}, {"id": 178, "type": "type_identifier", "text": "virtual", "parent": 177, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 15}}, {"id": 179, "type": "ERROR", "text": "Individual", "parent": 177, "children": [180], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 26}}, {"id": 180, "type": "identifier", "text": "Individual", "parent": 179, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 26}}, {"id": 181, "type": "pointer_declarator", "text": "* getIndividual(uint32 index) const", "parent": 177, "children": [182, 183], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 61}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 27}}, {"id": 183, "type": "function_declarator", "text": "getIndividual(uint32 index) const", "parent": 181, "children": [184, 185], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 61}}, {"id": 184, "type": "identifier", "text": "getIndividual", "parent": 183, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 41}}, {"id": 185, "type": "parameter_list", "text": "(uint32 index)", "parent": 183, "children": [186], "start_point": {"row": 41, "column": 41}, "end_point": {"row": 41, "column": 55}}, {"id": 186, "type": "parameter_declaration", "text": "uint32 index", "parent": 185, "children": [187, 188], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 54}}, {"id": 187, "type": "type_identifier", "text": "uint32", "parent": 186, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 48}}, {"id": 188, "type": "identifier", "text": "index", "parent": 186, "children": [], "start_point": {"row": 41, "column": 49}, "end_point": {"row": 41, "column": 54}}, {"id": 189, "type": "declaration", "text": "void split();", "parent": 17, "children": [190, 191], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 15}}, {"id": 190, "type": "primitive_type", "text": "void", "parent": 189, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 191, "type": "function_declarator", "text": "split()", "parent": 189, "children": [192, 193], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 14}}, {"id": 192, "type": "identifier", "text": "split", "parent": 191, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 12}}, {"id": 193, "type": "parameter_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 14}}, {"id": 194, "type": "declaration", "text": "void merge();", "parent": 17, "children": [195, 196], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 15}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 196, "type": "function_declarator", "text": "merge()", "parent": 194, "children": [197, 198], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 14}}, {"id": 197, "type": "identifier", "text": "merge", "parent": 196, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 12}}, {"id": 198, "type": "parameter_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 14}}, {"id": 199, "type": "declaration", "text": "virtual Individual* createIndividual() const = 0;", "parent": 17, "children": [200, 201, 203], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 51}}, {"id": 200, "type": "type_identifier", "text": "virtual", "parent": 199, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 201, "type": "ERROR", "text": "Individual", "parent": 199, "children": [202], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 20}}, {"id": 202, "type": "identifier", "text": "Individual", "parent": 201, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 20}}, {"id": 203, "type": "init_declarator", "text": "* createIndividual() const = 0", "parent": 199, "children": [204, 209, 210], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 50}}, {"id": 204, "type": "pointer_declarator", "text": "* createIndividual() const", "parent": 203, "children": [205, 206], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 46}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 21}}, {"id": 206, "type": "function_declarator", "text": "createIndividual() const", "parent": 204, "children": [207, 208], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 46}}, {"id": 207, "type": "identifier", "text": "createIndividual", "parent": 206, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 38}}, {"id": 208, "type": "parameter_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 40}}, {"id": 209, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 48}}, {"id": 210, "type": "number_literal", "text": "0", "parent": 203, "children": [], "start_point": {"row": 46, "column": 49}, "end_point": {"row": 46, "column": 50}}, {"id": 211, "type": "labeled_statement", "text": "public:\n\t\tHeapPopulation();", "parent": 17, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 48, "column": 19}}, {"id": 212, "type": "call_expression", "text": "HeapPopulation()", "parent": 211, "children": [213, 214], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 18}}, {"id": 213, "type": "identifier", "text": "HeapPopulation", "parent": 212, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 16}}, {"id": 214, "type": "argument_list", "text": "()", "parent": 212, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 18}}, {"id": 215, "type": "declaration", "text": "virtual ~HeapPopulation();", "parent": 17, "children": [216, 217, 219], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 28}}, {"id": 216, "type": "type_identifier", "text": "virtual", "parent": 215, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 217, "type": "ERROR", "text": "~", "parent": 215, "children": [218], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 218, "type": "~", "text": "~", "parent": 217, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 219, "type": "function_declarator", "text": "HeapPopulation()", "parent": 215, "children": [220, 221], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 27}}, {"id": 220, "type": "identifier", "text": "HeapPopulation", "parent": 219, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 25}}, {"id": 221, "type": "parameter_list", "text": "()", "parent": 219, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 27}}, {"id": 222, "type": "declaration", "text": "virtual void initPopulation(uint32 total_population_size);", "parent": 17, "children": [223, 224, 226], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 60}}, {"id": 223, "type": "type_identifier", "text": "virtual", "parent": 222, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 9}}, {"id": 224, "type": "ERROR", "text": "void", "parent": 222, "children": [225], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 14}}, {"id": 225, "type": "identifier", "text": "void", "parent": 224, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 14}}, {"id": 226, "type": "function_declarator", "text": "initPopulation(uint32 total_population_size)", "parent": 222, "children": [227, 228], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 59}}, {"id": 227, "type": "identifier", "text": "initPopulation", "parent": 226, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 29}}, {"id": 228, "type": "parameter_list", "text": "(uint32 total_population_size)", "parent": 226, "children": [229], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 59}}, {"id": 229, "type": "parameter_declaration", "text": "uint32 total_population_size", "parent": 228, "children": [230, 231], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 58}}, {"id": 230, "type": "type_identifier", "text": "uint32", "parent": 229, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 36}}, {"id": 231, "type": "identifier", "text": "total_population_size", "parent": 229, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 58}}, {"id": 232, "type": "ERROR", "text": "uint32 getNumberOfSpecies() const;\n\t\tvoid printSpeciesSizes() const", "parent": 17, "children": [233, 234, 237, 238], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 54, "column": 32}}, {"id": 233, "type": "type_identifier", "text": "uint32", "parent": 232, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 8}}, {"id": 234, "type": "function_declarator", "text": "getNumberOfSpecies()", "parent": 232, "children": [235, 236], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 29}}, {"id": 235, "type": "identifier", "text": "getNumberOfSpecies", "parent": 234, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 27}}, {"id": 236, "type": "parameter_list", "text": "()", "parent": 234, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 29}}, {"id": 237, "type": "primitive_type", "text": "void", "parent": 232, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 6}}, {"id": 238, "type": "function_declarator", "text": "printSpeciesSizes() const", "parent": 232, "children": [239, 240], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 32}}, {"id": 239, "type": "identifier", "text": "printSpeciesSizes", "parent": 238, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 24}}, {"id": 240, "type": "parameter_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 26}}, {"id": 241, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 42, 49, 67, 72, 87, 106, 111, 116, 130, 134, 183, 191, 196, 206, 219, 226, 234, 238], "variables": [23, 26, 33, 40, 46, 52, 63, 70, 75, 90, 97, 104, 109, 138, 163, 177, 186, 189, 194, 199, 215, 222, 229], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [119, 124, 128, 142, 145, 148, 152, 158, 168, 169, 212], "assignments": [121], "loops": [], "conditionals": [0, 1, 2, 5, 11, 15, 18, 21, 24, 25, 27, 32, 34, 39, 43, 47, 50, 53, 54, 57, 58, 60, 62, 64, 68, 73, 76, 81, 88, 91, 96, 98, 103, 107, 112, 115, 117, 120, 122, 127, 129, 131, 136, 140, 143, 144, 146, 149, 156, 159, 160, 161, 162, 164, 165, 167, 170, 172, 176, 178, 180, 184, 187, 188, 192, 197, 200, 202, 207, 213, 216, 220, 223, 225, 227, 230, 231, 233, 235, 239, 241], "returns": [141], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 56, 210], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "HeapPopulation", "text_snippet": "class HeapPopulation {\n\tprotected:\n\t\tclass Species {//basically it is just an array\n\t\t\tprivate:\n\t\t\t\t"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "destructorCode()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Species(uint32 population"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "Species()"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "clearIndividualsArray(Individual** array = nullptr)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "copyIndividualsArray(const Individual** source, Individual** target) const"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "sortByTotalFitnessNorm()"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "swapArrays()"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "populationSize()"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "const Individual* operator [] (int i) const { return individuals[i]; }"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "operator [] (int i) const"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "getIndividual(uint32 index) const"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "split()"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "merge()"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "createIndividual() const"}, {"node_id": 219, "universal_type": "function", "name": "unknown", "text_snippet": "HeapPopulation()"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "initPopulation(uint32 total_population_size)"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "getNumberOfSpecies()"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "printSpeciesSizes() const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"individual.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef HEAP_POPULATION_H\n#define HEAP_POPULATION_H\n\n#include \"individual.h\"\n\n#define FIRST_LEAF_INDEX (this->species_heap.size() / 2)\n#define NUMBER_OF_SPECIES (1 + species_heap.size() / 2)\n\nclass HeapPopulation {\n\tprotected:\n\t\tclass Species {//basically it is just an array\n\t\t\tprivate:\n\t\t\t\tuint32 population;\n\t\t\t\tIndividual** individuals;//array of pointers\n\t\t\t\tIndividual** swap_individuals;\n\n\t\t\t\tvoid destructorCode();\n\t\t\tpublic:\n\t\t\t\texplicit Species(uint32 population = 0);\n\t\t\t\tSpecies(const Species& species);//copy\n\t\t\t\tvirtual ~Species();\n\n\t\t\t\tvoid clearIndividualsArray(Individual** array = nullptr);\n\t\t\t\tvoid copyIndividualsArray(const Individual** source, Individual** target) const;\n\t\t\t\tvoid sortByTotalFitnessNorm();\n\t\t\t\tvoid swapArrays();\n\n\t\t\t\tuint32 populationSize() const;\n\n\t\t\t\tSpecies& operator = (const Species& species);\n\t\t\t\tconst Individual* operator [] (int i) const { return individuals[i]; }\n Individual*& operator [] (int i) { return individuals[i]; }\n\n //static void swapData(Species& spec1, Species& spec2);\n\n friend class GA;//needs access to swap_individuals\n\t\t};\n\n\t\tuint32 total_population;\n\t\tstd::vector<Species*> species_heap;\n\n virtual Individual* getIndividual(uint32 index) const;\n\n\t\tvoid split();\n\t\tvoid merge();\n\n\t\tvirtual Individual* createIndividual() const = 0;\n\tpublic:\n\t\tHeapPopulation();\n\t\tvirtual ~HeapPopulation();\n\n\t\tvirtual void initPopulation(uint32 total_population_size);\n\n\t\tuint32 getNumberOfSpecies() const;\n\t\tvoid printSpeciesSizes() const;\n};\n\n#endif"}
105
c
/* ============================================================================== KbmWriter.h Created: 23 Oct 2020 11:37:09pm Author: Vincenzo ============================================================================== */ #pragma once #include <JuceHeader.h> #include "../Structures/ModeMapper.h" class KbmWriter { public: KbmWriter( int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn, int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, Array<int> mappingIn ) : size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn), referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), mapping(mappingIn) {} bool writeTo(const File& fileToWriteTo) { if (!fileToWriteTo.existsAsFile()) { if (!fileToWriteTo.create()) return false; } StringArray valuesOut = { String(size), String(firstMidiNote), String(lastMidiNote), String(mappingRootMidiNote), String(referenceMidiNote), String(referenceFrequency), String(periodDegree), "" }; // Ensure frequency is floating point if (!valuesOut[5].containsChar('.')) valuesOut.getReference(5) += ".0"; // Change OOB notes to x for (auto deg : mapping) { String degOut = (deg < 0 || deg > 127) ? "x" : String(deg); valuesOut.getReference(7) += degOut + '\n'; } String fileTextOut; for (int i = 0; i < sectionLabels.size(); i++) { if (i > 0) fileTextOut += '\n'; fileTextOut += sectionLabels[i]; fileTextOut += valuesOut[i]; } fileToWriteTo.replaceWithText(fileTextOut); return true; } static KbmWriter fromModes( const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn, int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1, int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1) { Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode); int middleNote = mappingRootNoteIn; int period = periodDegreeIn; int size = periodMap.size(); if (periodMap.size() >= 128) { middleNote = 0; period = 127; size = 0; } else { if (middleNote < 0 || middleNote > 127) middleNote = outputMode->getRootNote(); if (period < 0) period = outputMode->getScaleSize(); } return KbmWriter( size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote, jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap ); } //static KbmWriter fromNoteMap(const NoteMap& noteMapIn) //{ // Array<int> mapping; //} private: int size; int firstMidiNote; int lastMidiNote; int mappingRootMidiNote; int referenceMidiNote; double referenceFrequency; int periodDegree; Array<int> mapping; StringArray sectionLabels = { "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n", "! First MIDI note number to retune:\n", "! Last MIDI note number to retune:\n", "! Middle note where the first entry of the mapping is mapped to:\n", "! Reference note for which frequency is given:\n", "! Frequency to tune the above note to (floating point e.g. 440.0):\n", "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n", "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n" "! the given middle note, the next for subsequent higher keys.\n" "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n" }; };
37.2
111
(translation_unit) "/*\n ==============================================================================\n\n KbmWriter.h\n Created: 23 Oct 2020 11:37:09pm\n Author: Vincenzo\n\n ==============================================================================\n*/\n\n#pragma once\n#include <JuceHeader.h>\n#include "../Structures/ModeMapper.h"\n\nclass KbmWriter\n{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n };\n\n // Ensure frequency is floating point\n if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += ".0";\n\n // Change OOB notes to x\n for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? "x" : String(deg);\n valuesOut.getReference(7) += degOut + '\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n",\n "! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"\n };\n};" (comment) "/*\n ==============================================================================\n\n KbmWriter.h\n Created: 23 Oct 2020 11:37:09pm\n Author: Vincenzo\n\n ==============================================================================\n*/" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <JuceHeader.h>\n" (#include) "#include" (system_lib_string) "<JuceHeader.h>" (preproc_include) "#include "../Structures/ModeMapper.h"\n" (#include) "#include" (string_literal) ""../Structures/ModeMapper.h"" (") """ (string_content) "../Structures/ModeMapper.h" (") """ (function_definition) "class KbmWriter\n{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n };\n\n // Ensure frequency is floating point\n if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += ".0";\n\n // Change OOB notes to x\n for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? "x" : String(deg);\n valuesOut.getReference(7) += degOut + '\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n",\n "! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"\n };\n}" (type_identifier) "class" (identifier) "KbmWriter" (compound_statement) "{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n };\n\n // Ensure frequency is floating point\n if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += ".0";\n\n // Change OOB notes to x\n for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? "x" : String(deg);\n valuesOut.getReference(7) += degOut + '\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n",\n "! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"\n };\n}" ({) "{" (labeled_statement) "public:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n };" (statement_identifier) "public" (:) ":" (declaration) "KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n };" (macro_type_specifier) "KbmWriter(\n int" (identifier) "KbmWriter" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "sizeIn" (,) "," (ERROR) "int" (identifier) "int" (identifier) "firstMidiNoteIn" (,) "," (ERROR) "int" (identifier) "int" (identifier) "lastMidiNoteIn" (,) "," (ERROR) "int" (identifier) "int" (identifier) "mappingRootNoteIn" (,) "," (ERROR) "int" (identifier) "int" (identifier) "referenceMidiNoteIn" (,) "," (ERROR) "double" (identifier) "double" (identifier) "referenceFreqIn" (,) "," (ERROR) "int" (identifier) "int" (identifier) "periodDegreeIn" (,) "," (ERROR) "Array<int> mappingIn\n ) :" (identifier) "Array" (<) "<" (primitive_type) "int" (>) ">" (identifier) "mappingIn" ()) ")" (:) ":" (function_declarator) "size(sizeIn)" (identifier) "size" (parameter_list) "(sizeIn)" (() "(" (parameter_declaration) "sizeIn" (type_identifier) "sizeIn" ()) ")" (,) "," (function_declarator) "firstMidiNote(firstMidiNoteIn)" (identifier) "firstMidiNote" (parameter_list) "(firstMidiNoteIn)" (() "(" (parameter_declaration) "firstMidiNoteIn" (type_identifier) "firstMidiNoteIn" ()) ")" (,) "," (function_declarator) "lastMidiNote(lastMidiNoteIn)" (identifier) "lastMidiNote" (parameter_list) "(lastMidiNoteIn)" (() "(" (parameter_declaration) "lastMidiNoteIn" (type_identifier) "lastMidiNoteIn" ()) ")" (,) "," (function_declarator) "mappingRootMidiNote(mappingRootNoteIn)" (identifier) "mappingRootMidiNote" (parameter_list) "(mappingRootNoteIn)" (() "(" (parameter_declaration) "mappingRootNoteIn" (type_identifier) "mappingRootNoteIn" ()) ")" (,) "," (function_declarator) "referenceMidiNote(referenceMidiNoteIn)" (identifier) "referenceMidiNote" (parameter_list) "(referenceMidiNoteIn)" (() "(" (parameter_declaration) "referenceMidiNoteIn" (type_identifier) "referenceMidiNoteIn" ()) ")" (,) "," (function_declarator) "referenceFrequency(referenceFreqIn)" (identifier) "referenceFrequency" (parameter_list) "(referenceFreqIn)" (() "(" (parameter_declaration) "referenceFreqIn" (type_identifier) "referenceFreqIn" ()) ")" (,) "," (function_declarator) "periodDegree(periodDegreeIn)" (identifier) "periodDegree" (parameter_list) "(periodDegreeIn)" (() "(" (parameter_declaration) "periodDegreeIn" (type_identifier) "periodDegreeIn" ()) ")" (,) "," (ERROR) "mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray" (function_declarator) "mapping(mappingIn)" (identifier) "mapping" (parameter_list) "(mappingIn)" (() "(" (parameter_declaration) "mappingIn" (type_identifier) "mappingIn" ()) ")" ({) "{" (}) "}" (primitive_type) "bool" (function_declarator) "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false" (function_declarator) "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())" (function_declarator) "writeTo(const File& fileToWriteTo)" (identifier) "writeTo" (parameter_list) "(const File& fileToWriteTo)" (() "(" (parameter_declaration) "const File& fileToWriteTo" (type_qualifier) "const" (const) "const" (type_identifier) "File" (ERROR) "&" (&) "&" (identifier) "fileToWriteTo" ()) ")" (ERROR) "{\n if" ({) "{" (if) "if" (parameter_list) "(!fileToWriteTo.existsAsFile())" (() "(" (ERROR) "!" (!) "!" (parameter_declaration) "fileToWriteTo.existsAsFile()" (type_identifier) "fileToWriteTo" (ERROR) "." (.) "." (function_declarator) "existsAsFile()" (identifier) "existsAsFile" (parameter_list) "()" (() "(" ()) ")" ()) ")" (ERROR) "{\n if" ({) "{" (if) "if" (parameter_list) "(!fileToWriteTo.create())" (() "(" (ERROR) "!" (!) "!" (parameter_declaration) "fileToWriteTo.create()" (type_identifier) "fileToWriteTo" (ERROR) "." (.) "." (function_declarator) "create()" (identifier) "create" (parameter_list) "()" (() "(" ()) ")" ()) ")" (identifier) "return" (identifier) "false" (;) ";" (}) "}" (identifier) "StringArray" (init_declarator) "valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n }" (identifier) "valuesOut" (=) "=" (initializer_list) "{\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), ""\n }" ({) "{" (call_expression) "String(size)" (identifier) "String" (argument_list) "(size)" (() "(" (identifier) "size" ()) ")" (,) "," (call_expression) "String(firstMidiNote)" (identifier) "String" (argument_list) "(firstMidiNote)" (() "(" (identifier) "firstMidiNote" ()) ")" (,) "," (call_expression) "String(lastMidiNote)" (identifier) "String" (argument_list) "(lastMidiNote)" (() "(" (identifier) "lastMidiNote" ()) ")" (,) "," (call_expression) "String(mappingRootMidiNote)" (identifier) "String" (argument_list) "(mappingRootMidiNote)" (() "(" (identifier) "mappingRootMidiNote" ()) ")" (,) "," (call_expression) "String(referenceMidiNote)" (identifier) "String" (argument_list) "(referenceMidiNote)" (() "(" (identifier) "referenceMidiNote" ()) ")" (,) "," (call_expression) "String(referenceFrequency)" (identifier) "String" (argument_list) "(referenceFrequency)" (() "(" (identifier) "referenceFrequency" ()) ")" (,) "," (call_expression) "String(periodDegree)" (identifier) "String" (argument_list) "(periodDegree)" (() "(" (identifier) "periodDegree" ()) ")" (,) "," (string_literal) """" (") """ (") """ (}) "}" (;) ";" (comment) "// Ensure frequency is floating point" (if_statement) "if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += ".0";" (if) "if" (parenthesized_expression) "(!valuesOut[5].containsChar('.'))" (() "(" (unary_expression) "!valuesOut[5].containsChar('.')" (!) "!" (call_expression) "valuesOut[5].containsChar('.')" (field_expression) "valuesOut[5].containsChar" (subscript_expression) "valuesOut[5]" (identifier) "valuesOut" ([) "[" (number_literal) "5" (]) "]" (.) "." (field_identifier) "containsChar" (argument_list) "('.')" (() "(" (char_literal) "'.'" (') "'" (character) "." (') "'" ()) ")" ()) ")" (expression_statement) "valuesOut.getReference(5) += ".0";" (assignment_expression) "valuesOut.getReference(5) += ".0"" (call_expression) "valuesOut.getReference(5)" (field_expression) "valuesOut.getReference" (identifier) "valuesOut" (.) "." (field_identifier) "getReference" (argument_list) "(5)" (() "(" (number_literal) "5" ()) ")" (+=) "+=" (string_literal) "".0"" (") """ (string_content) ".0" (") """ (;) ";" (comment) "// Change OOB notes to x" (ERROR) "for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? "x" : String(deg);\n valuesOut.getReference(7) += degOut + '\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n",\n "! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"\n };" (for) "for" (() "(" (declaration) "auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? "x" : String(deg);" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "deg" (ERROR) ": mapping)\n {\n String" (:) ":" (identifier) "mapping" ()) ")" ({) "{" (identifier) "String" (init_declarator) "degOut = (deg < 0 || deg > 127) ? "x" : String(deg)" (identifier) "degOut" (=) "=" (conditional_expression) "(deg < 0 || deg > 127) ? "x" : String(deg)" (parenthesized_expression) "(deg < 0 || deg > 127)" (() "(" (binary_expression) "deg < 0 || deg > 127" (binary_expression) "deg < 0" (identifier) "deg" (<) "<" (number_literal) "0" (||) "||" (binary_expression) "deg > 127" (identifier) "deg" (>) ">" (number_literal) "127" ()) ")" (?) "?" (string_literal) ""x"" (") """ (string_content) "x" (") """ (:) ":" (call_expression) "String(deg)" (identifier) "String" (argument_list) "(deg)" (() "(" (identifier) "deg" ()) ")" (;) ";" (assignment_expression) "valuesOut.getReference(7) += degOut + '\n'" (call_expression) "valuesOut.getReference(7)" (field_expression) "valuesOut.getReference" (identifier) "valuesOut" (.) "." (field_identifier) "getReference" (argument_list) "(7)" (() "(" (number_literal) "7" ()) ")" (+=) "+=" (binary_expression) "degOut + '\n'" (identifier) "degOut" (+) "+" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" (;) ";" (ERROR) "}\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }" (}) "}" (call_expression) "String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)" (call_expression) "String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)" (identifier) "String" (ERROR) "fileTextOut;\n for" (identifier) "fileTextOut" (;) ";" (for) "for" (argument_list) "(int i = 0; i < sectionLabels.size(); i++)" (() "(" (update_expression) "int i = 0; i < sectionLabels.size(); i++" (binary_expression) "int i = 0; i < sectionLabels.size()" (assignment_expression) "int i = 0" (identifier) "int" (ERROR) "i" (identifier) "i" (=) "=" (number_literal) "0" (ERROR) "; i" (;) ";" (identifier) "i" (<) "<" (call_expression) "sectionLabels.size()" (field_expression) "sectionLabels.size" (identifier) "sectionLabels" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (ERROR) "; i" (;) ";" (identifier) "i" (++) "++" ()) ")" (ERROR) "{\n if" ({) "{" (if) "if" (argument_list) "(i > 0)" (() "(" (binary_expression) "i > 0" (identifier) "i" (>) ">" (number_literal) "0" ()) ")" (assignment_expression) "fileTextOut += '\n'" (identifier) "fileTextOut" (+=) "+=" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" (;) ";" (assignment_expression) "fileTextOut += sectionLabels[i]" (identifier) "fileTextOut" (+=) "+=" (subscript_expression) "sectionLabels[i]" (identifier) "sectionLabels" ([) "[" (identifier) "i" (]) "]" (;) ";" (assignment_expression) "fileTextOut += valuesOut[i]" (identifier) "fileTextOut" (+=) "+=" (subscript_expression) "valuesOut[i]" (identifier) "valuesOut" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (call_expression) "fileToWriteTo.replaceWithText(fileTextOut)" (field_expression) "fileToWriteTo.replaceWithText" (identifier) "fileToWriteTo" (.) "." (field_identifier) "replaceWithText" (argument_list) "(fileTextOut)" (() "(" (identifier) "fileTextOut" ()) ")" (;) ";" (return) "return" (true) "true" (;) ";" (}) "}" (static) "static" (identifier) "KbmWriter" (call_expression) "fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)" (identifier) "fromModes" (argument_list) "(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)" (() "(" (binary_expression) "const Mode* inputMode" (identifier) "const" (ERROR) "Mode" (identifier) "Mode" (*) "*" (identifier) "inputMode" (,) "," (binary_expression) "const Mode* outputMode" (identifier) "const" (ERROR) "Mode" (identifier) "Mode" (*) "*" (identifier) "outputMode" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "ModeMapper& mapperIn" (identifier) "ModeMapper" (&) "&" (identifier) "mapperIn" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "firstMidiNoteIn = 0" (identifier) "firstMidiNoteIn" (=) "=" (number_literal) "0" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "lastMidiNoteIn = 127" (identifier) "lastMidiNoteIn" (=) "=" (number_literal) "127" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "mappingRootNoteIn = -1" (identifier) "mappingRootNoteIn" (=) "=" (number_literal) "-1" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "referenceMidiNoteIn = 69" (identifier) "referenceMidiNoteIn" (=) "=" (number_literal) "69" (,) "," (ERROR) "double" (identifier) "double" (assignment_expression) "referenceFreqIn = 440.0" (identifier) "referenceFreqIn" (=) "=" (number_literal) "440.0" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "periodDegreeIn = -1" (identifier) "periodDegreeIn" (=) "=" (number_literal) "-1" ()) ")" ({) "{" (binary_expression) "Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)" (binary_expression) "Array<int" (identifier) "Array" (<) "<" (identifier) "int" (>) ">" (assignment_expression) "periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)" (identifier) "periodMap" (=) "=" (call_expression) "mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)" (field_expression) "mapperIn.getSelectedPeriodMap" (identifier) "mapperIn" (.) "." (field_identifier) "getSelectedPeriodMap" (argument_list) "(*inputMode, *outputMode)" (() "(" (pointer_expression) "*inputMode" (*) "*" (identifier) "inputMode" (,) "," (pointer_expression) "*outputMode" (*) "*" (identifier) "outputMode" ()) ")" (;) ";" (primitive_type) "int" (assignment_expression) "middleNote = mappingRootNoteIn" (identifier) "middleNote" (=) "=" (identifier) "mappingRootNoteIn" (;) ";" (primitive_type) "int" (assignment_expression) "period = periodDegreeIn" (identifier) "period" (=) "=" (identifier) "periodDegreeIn" (;) ";" (primitive_type) "int" (call_expression) "size = periodMap.size();\n\n if (periodMap.size() >= 128)" (assignment_expression) "size = periodMap.size()" (identifier) "size" (=) "=" (call_expression) "periodMap.size()" (field_expression) "periodMap.size" (identifier) "periodMap" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (ERROR) ";\n\n if" (;) ";" (if) "if" (argument_list) "(periodMap.size() >= 128)" (() "(" (binary_expression) "periodMap.size() >= 128" (call_expression) "periodMap.size()" (field_expression) "periodMap.size" (identifier) "periodMap" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (>=) ">=" (number_literal) "128" ()) ")" ({) "{" (assignment_expression) "middleNote = 0" (identifier) "middleNote" (=) "=" (number_literal) "0" (;) ";" (assignment_expression) "period = 127" (identifier) "period" (=) "=" (number_literal) "127" (;) ";" (call_expression) "size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)" (assignment_expression) "size = 0" (identifier) "size" (=) "=" (number_literal) "0" (ERROR) ";\n }\n else\n {\n if" (;) ";" (}) "}" (else) "else" ({) "{" (if) "if" (argument_list) "(middleNote < 0 || middleNote > 127)" (() "(" (binary_expression) "middleNote < 0 || middleNote > 127" (binary_expression) "middleNote < 0" (identifier) "middleNote" (<) "<" (number_literal) "0" (||) "||" (binary_expression) "middleNote > 127" (identifier) "middleNote" (>) ">" (number_literal) "127" ()) ")" (call_expression) "middleNote = outputMode->getRootNote();\n\n if (period < 0)" (assignment_expression) "middleNote = outputMode->getRootNote()" (identifier) "middleNote" (=) "=" (call_expression) "outputMode->getRootNote()" (field_expression) "outputMode->getRootNote" (identifier) "outputMode" (->) "->" (field_identifier) "getRootNote" (argument_list) "()" (() "(" ()) ")" (ERROR) ";\n\n if" (;) ";" (if) "if" (argument_list) "(period < 0)" (() "(" (binary_expression) "period < 0" (identifier) "period" (<) "<" (number_literal) "0" ()) ")" (assignment_expression) "period = outputMode->getScaleSize()" (identifier) "period" (=) "=" (call_expression) "outputMode->getScaleSize()" (field_expression) "outputMode->getScaleSize" (identifier) "outputMode" (->) "->" (field_identifier) "getScaleSize" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (return) "return" (call_expression) "KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n )" (identifier) "KbmWriter" (argument_list) "(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n )" (() "(" (identifier) "size" (,) "," (call_expression) "jlimit(0, 127, firstMidiNoteIn)" (identifier) "jlimit" (argument_list) "(0, 127, firstMidiNoteIn)" (() "(" (number_literal) "0" (,) "," (number_literal) "127" (,) "," (identifier) "firstMidiNoteIn" ()) ")" (,) "," (call_expression) "jlimit(0, 127, lastMidiNoteIn)" (identifier) "jlimit" (argument_list) "(0, 127, lastMidiNoteIn)" (() "(" (number_literal) "0" (,) "," (number_literal) "127" (,) "," (identifier) "lastMidiNoteIn" ()) ")" (,) "," (identifier) "middleNote" (,) "," (call_expression) "jlimit(0, 127, referenceMidiNoteIn)" (identifier) "jlimit" (argument_list) "(0, 127, referenceMidiNoteIn)" (() "(" (number_literal) "0" (,) "," (number_literal) "127" (,) "," (identifier) "referenceMidiNoteIn" ()) ")" (,) "," (call_expression) "jlimit(10e-3, 20e3, referenceFreqIn)" (identifier) "jlimit" (argument_list) "(10e-3, 20e3, referenceFreqIn)" (() "(" (number_literal) "10e-3" (,) "," (number_literal) "20e3" (,) "," (identifier) "referenceFreqIn" ()) ")" (,) "," (identifier) "period" (,) "," (identifier) "periodMap" ()) ")" (;) ";" (}) "}" (comment) "//static KbmWriter fromNoteMap(const NoteMap& noteMapIn)" (comment) "//{" (comment) "// Array<int> mapping;" (comment) "//}" (ERROR) "private:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray" (identifier) "private" (:) ":" (primitive_type) "int" (identifier) "size" (;) ";" (primitive_type) "int" (identifier) "firstMidiNote" (;) ";" (primitive_type) "int" (identifier) "lastMidiNote" (;) ";" (primitive_type) "int" (identifier) "mappingRootMidiNote" (;) ";" (primitive_type) "int" (identifier) "referenceMidiNote" (;) ";" (primitive_type) "double" (identifier) "referenceFrequency" (;) ";" (primitive_type) "int" (identifier) "periodDegree" (;) ";" (binary_expression) "Array<int> mapping" (binary_expression) "Array<int" (identifier) "Array" (<) "<" (identifier) "int" (>) ">" (identifier) "mapping" (;) ";" (identifier) "StringArray" (comma_expression) "sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n",\n "! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (assignment_expression) "sectionLabels =\n {\n "! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n"" (identifier) "sectionLabels" (=) "=" (ERROR) "{" ({) "{" (string_literal) ""! Template for a keyboard mapping\n!\n! Size of map. The pattern repeats every so many keys:\n"" (") """ (string_content) "! Template for a keyboard mapping" (escape_sequence) "\n" (string_content) "!" (escape_sequence) "\n" (string_content) "! Size of map. The pattern repeats every so many keys:" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! First MIDI note number to retune:\n",\n "! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! First MIDI note number to retune:\n"" (") """ (string_content) "! First MIDI note number to retune:" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! Last MIDI note number to retune:\n",\n "! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Last MIDI note number to retune:\n"" (") """ (string_content) "! Last MIDI note number to retune:" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! Middle note where the first entry of the mapping is mapped to:\n",\n "! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Middle note where the first entry of the mapping is mapped to:\n"" (") """ (string_content) "! Middle note where the first entry of the mapping is mapped to:" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! Reference note for which frequency is given:\n",\n "! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Reference note for which frequency is given:\n"" (") """ (string_content) "! Reference note for which frequency is given:" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! Frequency to tune the above note to (floating point e.g. 440.0):\n",\n "! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Frequency to tune the above note to (floating point e.g. 440.0):\n"" (") """ (string_content) "! Frequency to tune the above note to (floating point e.g. 440.0):" (escape_sequence) "\n" (") """ (,) "," (comma_expression) ""! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n",\n "! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Scale degree to consider as formal octave (determines difference in pitch\n! between adjacent mapping patterns):\n"" (") """ (string_content) "! Scale degree to consider as formal octave (determines difference in pitch" (escape_sequence) "\n" (string_content) "! between adjacent mapping patterns):" (escape_sequence) "\n" (") """ (,) "," (concatenated_string) ""! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"\n "! the given middle note, the next for subsequent higher keys.\n"\n "! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (string_literal) ""! Mapping.\n! The numbers represent scale degrees mapped to keys. The first entry is for\n"" (") """ (string_content) "! Mapping." (escape_sequence) "\n" (string_content) "! The numbers represent scale degrees mapped to keys. The first entry is for" (escape_sequence) "\n" (") """ (string_literal) ""! the given middle note, the next for subsequent higher keys.\n"" (") """ (string_content) "! the given middle note, the next for subsequent higher keys." (escape_sequence) "\n" (") """ (string_literal) ""! For an unmapped key, put in an \"x\". At the end, unmapped keys may be left out.\n"" (") """ (string_content) "! For an unmapped key, put in an " (escape_sequence) "\"" (string_content) "x" (escape_sequence) "\"" (string_content) ". At the end, unmapped keys may be left out." (escape_sequence) "\n" (") """ (}) "}" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
823
37
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 37.2, "nodes": 512, "errors": 0, "source_hash": "b9cb24fdccf4d3254f27452e4618bb83841ff99750d0d8543af0763f549fb3e2", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <JuceHeader.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<JuceHeader.h>", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"../Structures/ModeMapper.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"../Structures/ModeMapper.h\"", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 37}}, {"id": 9, "type": "function_definition", "text": "class KbmWriter\n{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n };\n\n // Ensure frequency is floating point\n if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += \".0\";\n\n // Change OOB notes to x\n for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? \"x\" : String(deg);\n valuesOut.getReference(7) += degOut + '\\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n \"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\",\n \"! First MIDI note number to retune:\\n\",\n \"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"\n };\n}", "parent": null, "children": [10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 132, "column": 1}}, {"id": 10, "type": "identifier", "text": "KbmWriter", "parent": 9, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 15}}, {"id": 11, "type": "labeled_statement", "text": "public:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n };", "parent": 9, "children": [12], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 40, "column": 10}}, {"id": 12, "type": "declaration", "text": "KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n };", "parent": 11, "children": [13, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 42, 47, 52, 57, 62, 67, 72, 77, 112], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 13, "type": "macro_type_specifier", "text": "KbmWriter(\n int", "parent": 12, "children": [14, 15], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 14, "type": "identifier", "text": "KbmWriter", "parent": 13, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 15, "type": "type_descriptor", "text": "int", "parent": 13, "children": [16], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 17, "type": "identifier", "text": "sizeIn", "parent": 12, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 18, "type": "ERROR", "text": "int", "parent": 12, "children": [19], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 23}}, {"id": 19, "type": "identifier", "text": "int", "parent": 18, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 23}}, {"id": 20, "type": "identifier", "text": "firstMidiNoteIn", "parent": 12, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 39}}, {"id": 21, "type": "ERROR", "text": "int", "parent": 12, "children": [22], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 44}}, {"id": 22, "type": "identifier", "text": "int", "parent": 21, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 44}}, {"id": 23, "type": "identifier", "text": "lastMidiNoteIn", "parent": 12, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 59}}, {"id": 24, "type": "ERROR", "text": "int", "parent": 12, "children": [25], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 64}}, {"id": 25, "type": "identifier", "text": "int", "parent": 24, "children": [], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 64}}, {"id": 26, "type": "identifier", "text": "mappingRootNoteIn", "parent": 12, "children": [], "start_point": {"row": 19, "column": 65}, "end_point": {"row": 19, "column": 82}}, {"id": 27, "type": "ERROR", "text": "int", "parent": 12, "children": [28], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 11}}, {"id": 28, "type": "identifier", "text": "int", "parent": 27, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 11}}, {"id": 29, "type": "identifier", "text": "referenceMidiNoteIn", "parent": 12, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 31}}, {"id": 30, "type": "ERROR", "text": "double", "parent": 12, "children": [31], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 39}}, {"id": 31, "type": "identifier", "text": "double", "parent": 30, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 39}}, {"id": 32, "type": "identifier", "text": "referenceFreqIn", "parent": 12, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 55}}, {"id": 33, "type": "ERROR", "text": "int", "parent": 12, "children": [34], "start_point": {"row": 20, "column": 57}, "end_point": {"row": 20, "column": 60}}, {"id": 34, "type": "identifier", "text": "int", "parent": 33, "children": [], "start_point": {"row": 20, "column": 57}, "end_point": {"row": 20, "column": 60}}, {"id": 35, "type": "identifier", "text": "periodDegreeIn", "parent": 12, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 75}}, {"id": 36, "type": "ERROR", "text": "Array<int> mappingIn\n ) :", "parent": 12, "children": [37, 38, 39, 40, 41], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 22, "column": 7}}, {"id": 37, "type": "identifier", "text": "Array", "parent": 36, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 38, "type": "<", "text": "<", "parent": 36, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 14}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 17}}, {"id": 40, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 18}}, {"id": 41, "type": "identifier", "text": "mappingIn", "parent": 36, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 28}}, {"id": 42, "type": "function_declarator", "text": "size(sizeIn)", "parent": 12, "children": [43, 44], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 43, "type": "identifier", "text": "size", "parent": 42, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 12}}, {"id": 44, "type": "parameter_list", "text": "(sizeIn)", "parent": 42, "children": [45], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 20}}, {"id": 45, "type": "parameter_declaration", "text": "sizeIn", "parent": 44, "children": [46], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 19}}, {"id": 46, "type": "type_identifier", "text": "sizeIn", "parent": 45, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 19}}, {"id": 47, "type": "function_declarator", "text": "firstMidiNote(firstMidiNoteIn)", "parent": 12, "children": [48, 49], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 52}}, {"id": 48, "type": "identifier", "text": "firstMidiNote", "parent": 47, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 35}}, {"id": 49, "type": "parameter_list", "text": "(firstMidiNoteIn)", "parent": 47, "children": [50], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 52}}, {"id": 50, "type": "parameter_declaration", "text": "firstMidiNoteIn", "parent": 49, "children": [51], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 51}}, {"id": 51, "type": "type_identifier", "text": "firstMidiNoteIn", "parent": 50, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 51}}, {"id": 52, "type": "function_declarator", "text": "lastMidiNote(lastMidiNoteIn)", "parent": 12, "children": [53, 54], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 82}}, {"id": 53, "type": "identifier", "text": "lastMidiNote", "parent": 52, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 66}}, {"id": 54, "type": "parameter_list", "text": "(lastMidiNoteIn)", "parent": 52, "children": [55], "start_point": {"row": 23, "column": 66}, "end_point": {"row": 23, "column": 82}}, {"id": 55, "type": "parameter_declaration", "text": "lastMidiNoteIn", "parent": 54, "children": [56], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 81}}, {"id": 56, "type": "type_identifier", "text": "lastMidiNoteIn", "parent": 55, "children": [], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 81}}, {"id": 57, "type": "function_declarator", "text": "mappingRootMidiNote(mappingRootNoteIn)", "parent": 12, "children": [58, 59], "start_point": {"row": 23, "column": 84}, "end_point": {"row": 23, "column": 122}}, {"id": 58, "type": "identifier", "text": "mappingRootMidiNote", "parent": 57, "children": [], "start_point": {"row": 23, "column": 84}, "end_point": {"row": 23, "column": 103}}, {"id": 59, "type": "parameter_list", "text": "(mappingRootNoteIn)", "parent": 57, "children": [60], "start_point": {"row": 23, "column": 103}, "end_point": {"row": 23, "column": 122}}, {"id": 60, "type": "parameter_declaration", "text": "mappingRootNoteIn", "parent": 59, "children": [61], "start_point": {"row": 23, "column": 104}, "end_point": {"row": 23, "column": 121}}, {"id": 61, "type": "type_identifier", "text": "mappingRootNoteIn", "parent": 60, "children": [], "start_point": {"row": 23, "column": 104}, "end_point": {"row": 23, "column": 121}}, {"id": 62, "type": "function_declarator", "text": "referenceMidiNote(referenceMidiNoteIn)", "parent": 12, "children": [63, 64], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 46}}, {"id": 63, "type": "identifier", "text": "referenceMidiNote", "parent": 62, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 25}}, {"id": 64, "type": "parameter_list", "text": "(referenceMidiNoteIn)", "parent": 62, "children": [65], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 46}}, {"id": 65, "type": "parameter_declaration", "text": "referenceMidiNoteIn", "parent": 64, "children": [66], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 45}}, {"id": 66, "type": "type_identifier", "text": "referenceMidiNoteIn", "parent": 65, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 45}}, {"id": 67, "type": "function_declarator", "text": "referenceFrequency(referenceFreqIn)", "parent": 12, "children": [68, 69], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 83}}, {"id": 68, "type": "identifier", "text": "referenceFrequency", "parent": 67, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 66}}, {"id": 69, "type": "parameter_list", "text": "(referenceFreqIn)", "parent": 67, "children": [70], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 83}}, {"id": 70, "type": "parameter_declaration", "text": "referenceFreqIn", "parent": 69, "children": [71], "start_point": {"row": 24, "column": 67}, "end_point": {"row": 24, "column": 82}}, {"id": 71, "type": "type_identifier", "text": "referenceFreqIn", "parent": 70, "children": [], "start_point": {"row": 24, "column": 67}, "end_point": {"row": 24, "column": 82}}, {"id": 72, "type": "function_declarator", "text": "periodDegree(periodDegreeIn)", "parent": 12, "children": [73, 74], "start_point": {"row": 24, "column": 85}, "end_point": {"row": 24, "column": 113}}, {"id": 73, "type": "identifier", "text": "periodDegree", "parent": 72, "children": [], "start_point": {"row": 24, "column": 85}, "end_point": {"row": 24, "column": 97}}, {"id": 74, "type": "parameter_list", "text": "(periodDegreeIn)", "parent": 72, "children": [75], "start_point": {"row": 24, "column": 97}, "end_point": {"row": 24, "column": 113}}, {"id": 75, "type": "parameter_declaration", "text": "periodDegreeIn", "parent": 74, "children": [76], "start_point": {"row": 24, "column": 98}, "end_point": {"row": 24, "column": 112}}, {"id": 76, "type": "type_identifier", "text": "periodDegreeIn", "parent": 75, "children": [], "start_point": {"row": 24, "column": 98}, "end_point": {"row": 24, "column": 112}}, {"id": 77, "type": "ERROR", "text": "mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray", "parent": 12, "children": [78, 83, 84, 111], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 35, "column": 19}}, {"id": 78, "type": "function_declarator", "text": "mapping(mappingIn)", "parent": 77, "children": [79, 80], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 26}}, {"id": 79, "type": "identifier", "text": "mapping", "parent": 78, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 80, "type": "parameter_list", "text": "(mappingIn)", "parent": 78, "children": [81], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 81, "type": "parameter_declaration", "text": "mappingIn", "parent": 80, "children": [82], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 82, "type": "type_identifier", "text": "mappingIn", "parent": 81, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 83, "type": "primitive_type", "text": "bool", "parent": 77, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 84, "type": "function_declarator", "text": "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false", "parent": 77, "children": [85, 101, 102, 110], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 32, "column": 28}}, {"id": 85, "type": "function_declarator", "text": "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())", "parent": 84, "children": [86, 92, 93], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 29, "column": 42}}, {"id": 86, "type": "function_declarator", "text": "writeTo(const File& fileToWriteTo)", "parent": 85, "children": [87, 88], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 43}}, {"id": 87, "type": "identifier", "text": "writeTo", "parent": 86, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 16}}, {"id": 88, "type": "parameter_list", "text": "(const File& fileToWriteTo)", "parent": 86, "children": [89], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 43}}, {"id": 89, "type": "parameter_declaration", "text": "const File& fileToWriteTo", "parent": 88, "children": [90, 91], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 42}}, {"id": 90, "type": "type_identifier", "text": "File", "parent": 89, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 27}}, {"id": 91, "type": "identifier", "text": "fileToWriteTo", "parent": 89, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 42}}, {"id": 92, "type": "ERROR", "text": "{\n if", "parent": 85, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 93, "type": "parameter_list", "text": "(!fileToWriteTo.existsAsFile())", "parent": 85, "children": [94, 96], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 42}}, {"id": 94, "type": "ERROR", "text": "!", "parent": 93, "children": [95], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 95, "type": "!", "text": "!", "parent": 94, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 96, "type": "parameter_declaration", "text": "fileToWriteTo.existsAsFile()", "parent": 93, "children": [97, 98], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 41}}, {"id": 97, "type": "type_identifier", "text": "fileToWriteTo", "parent": 96, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 26}}, {"id": 98, "type": "function_declarator", "text": "existsAsFile()", "parent": 96, "children": [99, 100], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 41}}, {"id": 99, "type": "identifier", "text": "existsAsFile", "parent": 98, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 39}}, {"id": 100, "type": "parameter_list", "text": "()", "parent": 98, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 41}}, {"id": 101, "type": "ERROR", "text": "{\n if", "parent": 84, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 31, "column": 14}}, {"id": 102, "type": "parameter_list", "text": "(!fileToWriteTo.create())", "parent": 84, "children": [103, 105], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 40}}, {"id": 103, "type": "ERROR", "text": "!", "parent": 102, "children": [104], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 104, "type": "!", "text": "!", "parent": 103, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 105, "type": "parameter_declaration", "text": "fileToWriteTo.create()", "parent": 102, "children": [106, 107], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 39}}, {"id": 106, "type": "type_identifier", "text": "fileToWriteTo", "parent": 105, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 30}}, {"id": 107, "type": "function_declarator", "text": "create()", "parent": 105, "children": [108, 109], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 39}}, {"id": 108, "type": "identifier", "text": "create", "parent": 107, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 37}}, {"id": 109, "type": "parameter_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 39}}, {"id": 110, "type": "identifier", "text": "false", "parent": 84, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 28}}, {"id": 111, "type": "identifier", "text": "StringArray", "parent": 77, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 19}}, {"id": 112, "type": "init_declarator", "text": "valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n }", "parent": 12, "children": [113, 114, 115], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 40, "column": 9}}, {"id": 113, "type": "identifier", "text": "valuesOut", "parent": 112, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 29}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 115, "type": "initializer_list", "text": "{\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n }", "parent": 112, "children": [116, 120, 124, 128, 132, 136, 140, 144], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 116, "type": "call_expression", "text": "String(size)", "parent": 115, "children": [117, 118], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 24}}, {"id": 117, "type": "identifier", "text": "String", "parent": 116, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 18}}, {"id": 118, "type": "argument_list", "text": "(size)", "parent": 116, "children": [119], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 24}}, {"id": 119, "type": "identifier", "text": "size", "parent": 118, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 23}}, {"id": 120, "type": "call_expression", "text": "String(firstMidiNote)", "parent": 115, "children": [121, 122], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 47}}, {"id": 121, "type": "identifier", "text": "String", "parent": 120, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 32}}, {"id": 122, "type": "argument_list", "text": "(firstMidiNote)", "parent": 120, "children": [123], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 47}}, {"id": 123, "type": "identifier", "text": "firstMidiNote", "parent": 122, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 46}}, {"id": 124, "type": "call_expression", "text": "String(lastMidiNote)", "parent": 115, "children": [125, 126], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 69}}, {"id": 125, "type": "identifier", "text": "String", "parent": 124, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 55}}, {"id": 126, "type": "argument_list", "text": "(lastMidiNote)", "parent": 124, "children": [127], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 69}}, {"id": 127, "type": "identifier", "text": "lastMidiNote", "parent": 126, "children": [], "start_point": {"row": 37, "column": 56}, "end_point": {"row": 37, "column": 68}}, {"id": 128, "type": "call_expression", "text": "String(mappingRootMidiNote)", "parent": 115, "children": [129, 130], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 39}}, {"id": 129, "type": "identifier", "text": "String", "parent": 128, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 130, "type": "argument_list", "text": "(mappingRootMidiNote)", "parent": 128, "children": [131], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 39}}, {"id": 131, "type": "identifier", "text": "mappingRootMidiNote", "parent": 130, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 38}}, {"id": 132, "type": "call_expression", "text": "String(referenceMidiNote)", "parent": 115, "children": [133, 134], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 66}}, {"id": 133, "type": "identifier", "text": "String", "parent": 132, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 47}}, {"id": 134, "type": "argument_list", "text": "(referenceMidiNote)", "parent": 132, "children": [135], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 66}}, {"id": 135, "type": "identifier", "text": "referenceMidiNote", "parent": 134, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 65}}, {"id": 136, "type": "call_expression", "text": "String(referenceFrequency)", "parent": 115, "children": [137, 138], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 38}}, {"id": 137, "type": "identifier", "text": "String", "parent": 136, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 18}}, {"id": 138, "type": "argument_list", "text": "(referenceFrequency)", "parent": 136, "children": [139], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 38}}, {"id": 139, "type": "identifier", "text": "referenceFrequency", "parent": 138, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 37}}, {"id": 140, "type": "call_expression", "text": "String(periodDegree)", "parent": 115, "children": [141, 142], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 60}}, {"id": 141, "type": "identifier", "text": "String", "parent": 140, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 46}}, {"id": 142, "type": "argument_list", "text": "(periodDegree)", "parent": 140, "children": [143], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 60}}, {"id": 143, "type": "identifier", "text": "periodDegree", "parent": 142, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 59}}, {"id": 144, "type": "string_literal", "text": "\"\"", "parent": 115, "children": [], "start_point": {"row": 39, "column": 62}, "end_point": {"row": 39, "column": 64}}, {"id": 145, "type": "if_statement", "text": "if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += \".0\";", "parent": 9, "children": [146], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 44, "column": 46}}, {"id": 146, "type": "parenthesized_expression", "text": "(!valuesOut[5].containsChar('.'))", "parent": 145, "children": [147], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 44}}, {"id": 147, "type": "unary_expression", "text": "!valuesOut[5].containsChar('.')", "parent": 146, "children": [148, 149], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 43}}, {"id": 148, "type": "!", "text": "!", "parent": 147, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 13}}, {"id": 149, "type": "call_expression", "text": "valuesOut[5].containsChar('.')", "parent": 147, "children": [150, 155], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 43}}, {"id": 150, "type": "field_expression", "text": "valuesOut[5].containsChar", "parent": 149, "children": [151, 154], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 38}}, {"id": 151, "type": "subscript_expression", "text": "valuesOut[5]", "parent": 150, "children": [152, 153], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 25}}, {"id": 152, "type": "identifier", "text": "valuesOut", "parent": 151, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 22}}, {"id": 153, "type": "number_literal", "text": "5", "parent": 151, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 24}}, {"id": 154, "type": "field_identifier", "text": "containsChar", "parent": 150, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 38}}, {"id": 155, "type": "argument_list", "text": "('.')", "parent": 149, "children": [156], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 43}}, {"id": 156, "type": "char_literal", "text": "'.'", "parent": 155, "children": [157, 158], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 42}}, {"id": 157, "type": "'", "text": "'", "parent": 156, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 40}}, {"id": 158, "type": "'", "text": "'", "parent": 156, "children": [], "start_point": {"row": 43, "column": 41}, "end_point": {"row": 43, "column": 42}}, {"id": 159, "type": "assignment_expression", "text": "valuesOut.getReference(5) += \".0\"", "parent": 145, "children": [160, 166, 167], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 45}}, {"id": 160, "type": "call_expression", "text": "valuesOut.getReference(5)", "parent": 159, "children": [161, 164], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 37}}, {"id": 161, "type": "field_expression", "text": "valuesOut.getReference", "parent": 160, "children": [162, 163], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 34}}, {"id": 162, "type": "identifier", "text": "valuesOut", "parent": 161, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 21}}, {"id": 163, "type": "field_identifier", "text": "getReference", "parent": 161, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 34}}, {"id": 164, "type": "argument_list", "text": "(5)", "parent": 160, "children": [165], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 37}}, {"id": 165, "type": "number_literal", "text": "5", "parent": 164, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 36}}, {"id": 166, "type": "+=", "text": "+=", "parent": 159, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 40}}, {"id": 167, "type": "string_literal", "text": "\".0\"", "parent": 159, "children": [], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 45}}, {"id": 168, "type": "ERROR", "text": "for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? \"x\" : String(deg);\n valuesOut.getReference(7) += degOut + '\\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n \"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\",\n \"! First MIDI note number to retune:\\n\",\n \"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"\n };", "parent": 9, "children": [169, 197, 212, 452, 475], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 131, "column": 6}}, {"id": 169, "type": "declaration", "text": "auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? \"x\" : String(deg);", "parent": 168, "children": [170, 172, 173, 176], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 49, "column": 71}}, {"id": 170, "type": "storage_class_specifier", "text": "auto", "parent": 169, "children": [171], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 17}}, {"id": 171, "type": "auto", "text": "auto", "parent": 170, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 17}}, {"id": 172, "type": "type_identifier", "text": "deg", "parent": 169, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 21}}, {"id": 173, "type": "ERROR", "text": ": mapping)\n {\n String", "parent": 169, "children": [174, 175], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 49, "column": 18}}, {"id": 174, "type": "identifier", "text": "mapping", "parent": 173, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 31}}, {"id": 175, "type": "identifier", "text": "String", "parent": 173, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 18}}, {"id": 176, "type": "init_declarator", "text": "degOut = (deg < 0 || deg > 127) ? \"x\" : String(deg)", "parent": 169, "children": [177, 178, 179], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 70}}, {"id": 177, "type": "identifier", "text": "degOut", "parent": 176, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 25}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 27}}, {"id": 179, "type": "conditional_expression", "text": "(deg < 0 || deg > 127) ? \"x\" : String(deg)", "parent": 176, "children": [180, 191, 192, 193], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 70}}, {"id": 180, "type": "parenthesized_expression", "text": "(deg < 0 || deg > 127)", "parent": 179, "children": [181], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 50}}, {"id": 181, "type": "binary_expression", "text": "deg < 0 || deg > 127", "parent": 180, "children": [182, 186, 187], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 49}}, {"id": 182, "type": "binary_expression", "text": "deg < 0", "parent": 181, "children": [183, 184, 185], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 36}}, {"id": 183, "type": "identifier", "text": "deg", "parent": 182, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 32}}, {"id": 184, "type": "<", "text": "<", "parent": 182, "children": [], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 34}}, {"id": 185, "type": "number_literal", "text": "0", "parent": 182, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 36}}, {"id": 186, "type": "||", "text": "||", "parent": 181, "children": [], "start_point": {"row": 49, "column": 37}, "end_point": {"row": 49, "column": 39}}, {"id": 187, "type": "binary_expression", "text": "deg > 127", "parent": 181, "children": [188, 189, 190], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 49}}, {"id": 188, "type": "identifier", "text": "deg", "parent": 187, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 43}}, {"id": 189, "type": ">", "text": ">", "parent": 187, "children": [], "start_point": {"row": 49, "column": 44}, "end_point": {"row": 49, "column": 45}}, {"id": 190, "type": "number_literal", "text": "127", "parent": 187, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 49}}, {"id": 191, "type": "?", "text": "?", "parent": 179, "children": [], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 52}}, {"id": 192, "type": "string_literal", "text": "\"x\"", "parent": 179, "children": [], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 56}}, {"id": 193, "type": "call_expression", "text": "String(deg)", "parent": 179, "children": [194, 195], "start_point": {"row": 49, "column": 59}, "end_point": {"row": 49, "column": 70}}, {"id": 194, "type": "identifier", "text": "String", "parent": 193, "children": [], "start_point": {"row": 49, "column": 59}, "end_point": {"row": 49, "column": 65}}, {"id": 195, "type": "argument_list", "text": "(deg)", "parent": 193, "children": [196], "start_point": {"row": 49, "column": 65}, "end_point": {"row": 49, "column": 70}}, {"id": 196, "type": "identifier", "text": "deg", "parent": 195, "children": [], "start_point": {"row": 49, "column": 66}, "end_point": {"row": 49, "column": 69}}, {"id": 197, "type": "assignment_expression", "text": "valuesOut.getReference(7) += degOut + '\\n'", "parent": 168, "children": [198, 204, 205], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 54}}, {"id": 198, "type": "call_expression", "text": "valuesOut.getReference(7)", "parent": 197, "children": [199, 202], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 37}}, {"id": 199, "type": "field_expression", "text": "valuesOut.getReference", "parent": 198, "children": [200, 201], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 34}}, {"id": 200, "type": "identifier", "text": "valuesOut", "parent": 199, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 21}}, {"id": 201, "type": "field_identifier", "text": "getReference", "parent": 199, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 34}}, {"id": 202, "type": "argument_list", "text": "(7)", "parent": 198, "children": [203], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 37}}, {"id": 203, "type": "number_literal", "text": "7", "parent": 202, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 36}}, {"id": 204, "type": "+=", "text": "+=", "parent": 197, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 40}}, {"id": 205, "type": "binary_expression", "text": "degOut + '\\n'", "parent": 197, "children": [206, 207, 208], "start_point": {"row": 50, "column": 41}, "end_point": {"row": 50, "column": 54}}, {"id": 206, "type": "identifier", "text": "degOut", "parent": 205, "children": [], "start_point": {"row": 50, "column": 41}, "end_point": {"row": 50, "column": 47}}, {"id": 207, "type": "+", "text": "+", "parent": 205, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 49}}, {"id": 208, "type": "char_literal", "text": "'\\n'", "parent": 205, "children": [209, 210, 211], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 54}}, {"id": 209, "type": "'", "text": "'", "parent": 208, "children": [], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 51}}, {"id": 210, "type": "escape_sequence", "text": "\\n", "parent": 208, "children": [], "start_point": {"row": 50, "column": 51}, "end_point": {"row": 50, "column": 53}}, {"id": 211, "type": "'", "text": "'", "parent": 208, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 54}}, {"id": 212, "type": "ERROR", "text": "}\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }", "parent": 168, "children": [213, 244, 251, 257, 263, 269, 270, 271, 323, 343, 344, 348, 349, 353, 354, 373, 377, 381, 398, 413, 421], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 99, "column": 5}}, {"id": 213, "type": "call_expression", "text": "String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)", "parent": 212, "children": [214, 238, 239], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 56, "column": 22}}, {"id": 214, "type": "call_expression", "text": "String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)", "parent": 213, "children": [215, 216, 218], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 54, "column": 54}}, {"id": 215, "type": "identifier", "text": "String", "parent": 214, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 216, "type": "ERROR", "text": "fileTextOut;\n for", "parent": 214, "children": [217], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 54, "column": 11}}, {"id": 217, "type": "identifier", "text": "fileTextOut", "parent": 216, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 26}}, {"id": 218, "type": "argument_list", "text": "(int i = 0; i < sectionLabels.size(); i++)", "parent": 214, "children": [219], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 54}}, {"id": 219, "type": "update_expression", "text": "int i = 0; i < sectionLabels.size(); i++", "parent": 218, "children": [220, 235, 237], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 53}}, {"id": 220, "type": "binary_expression", "text": "int i = 0; i < sectionLabels.size()", "parent": 219, "children": [221, 227, 229, 230], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 48}}, {"id": 221, "type": "assignment_expression", "text": "int i = 0", "parent": 220, "children": [222, 223, 225, 226], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 22}}, {"id": 222, "type": "identifier", "text": "int", "parent": 221, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 16}}, {"id": 223, "type": "ERROR", "text": "i", "parent": 221, "children": [224], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 18}}, {"id": 224, "type": "identifier", "text": "i", "parent": 223, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 18}}, {"id": 225, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 221, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 227, "type": "ERROR", "text": "; i", "parent": 220, "children": [228], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 25}}, {"id": 228, "type": "identifier", "text": "i", "parent": 227, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 25}}, {"id": 229, "type": "<", "text": "<", "parent": 220, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 27}}, {"id": 230, "type": "call_expression", "text": "sectionLabels.size()", "parent": 220, "children": [231, 234], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 48}}, {"id": 231, "type": "field_expression", "text": "sectionLabels.size", "parent": 230, "children": [232, 233], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 46}}, {"id": 232, "type": "identifier", "text": "sectionLabels", "parent": 231, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 41}}, {"id": 233, "type": "field_identifier", "text": "size", "parent": 231, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 46}}, {"id": 234, "type": "argument_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 54, "column": 46}, "end_point": {"row": 54, "column": 48}}, {"id": 235, "type": "ERROR", "text": "; i", "parent": 219, "children": [236], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 51}}, {"id": 236, "type": "identifier", "text": "i", "parent": 235, "children": [], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 51}}, {"id": 237, "type": "++", "text": "++", "parent": 219, "children": [], "start_point": {"row": 54, "column": 51}, "end_point": {"row": 54, "column": 53}}, {"id": 238, "type": "ERROR", "text": "{\n if", "parent": 213, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 239, "type": "argument_list", "text": "(i > 0)", "parent": 213, "children": [240], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 22}}, {"id": 240, "type": "binary_expression", "text": "i > 0", "parent": 239, "children": [241, 242, 243], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 21}}, {"id": 241, "type": "identifier", "text": "i", "parent": 240, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 17}}, {"id": 242, "type": ">", "text": ">", "parent": 240, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 19}}, {"id": 243, "type": "number_literal", "text": "0", "parent": 240, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 244, "type": "assignment_expression", "text": "fileTextOut += '\\n'", "parent": 212, "children": [245, 246, 247], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 35}}, {"id": 245, "type": "identifier", "text": "fileTextOut", "parent": 244, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 27}}, {"id": 246, "type": "+=", "text": "+=", "parent": 244, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 30}}, {"id": 247, "type": "char_literal", "text": "'\\n'", "parent": 244, "children": [248, 249, 250], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 35}}, {"id": 248, "type": "'", "text": "'", "parent": 247, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 32}}, {"id": 249, "type": "escape_sequence", "text": "\\n", "parent": 247, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 34}}, {"id": 250, "type": "'", "text": "'", "parent": 247, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 35}}, {"id": 251, "type": "assignment_expression", "text": "fileTextOut += sectionLabels[i]", "parent": 212, "children": [252, 253, 254], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 43}}, {"id": 252, "type": "identifier", "text": "fileTextOut", "parent": 251, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 23}}, {"id": 253, "type": "+=", "text": "+=", "parent": 251, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 26}}, {"id": 254, "type": "subscript_expression", "text": "sectionLabels[i]", "parent": 251, "children": [255, 256], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 43}}, {"id": 255, "type": "identifier", "text": "sectionLabels", "parent": 254, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 40}}, {"id": 256, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 42}}, {"id": 257, "type": "assignment_expression", "text": "fileTextOut += valuesOut[i]", "parent": 212, "children": [258, 259, 260], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 39}}, {"id": 258, "type": "identifier", "text": "fileTextOut", "parent": 257, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 23}}, {"id": 259, "type": "+=", "text": "+=", "parent": 257, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 26}}, {"id": 260, "type": "subscript_expression", "text": "valuesOut[i]", "parent": 257, "children": [261, 262], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 39}}, {"id": 261, "type": "identifier", "text": "valuesOut", "parent": 260, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 36}}, {"id": 262, "type": "identifier", "text": "i", "parent": 260, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 38}}, {"id": 263, "type": "call_expression", "text": "fileToWriteTo.replaceWithText(fileTextOut)", "parent": 212, "children": [264, 267], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 50}}, {"id": 264, "type": "field_expression", "text": "fileToWriteTo.replaceWithText", "parent": 263, "children": [265, 266], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 37}}, {"id": 265, "type": "identifier", "text": "fileToWriteTo", "parent": 264, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 21}}, {"id": 266, "type": "field_identifier", "text": "replaceWithText", "parent": 264, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 37}}, {"id": 267, "type": "argument_list", "text": "(fileTextOut)", "parent": 263, "children": [268], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 50}}, {"id": 268, "type": "identifier", "text": "fileTextOut", "parent": 267, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 49}}, {"id": 269, "type": "true", "text": "true", "parent": 212, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 19}}, {"id": 270, "type": "identifier", "text": "KbmWriter", "parent": 212, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 20}}, {"id": 271, "type": "call_expression", "text": "fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)", "parent": 212, "children": [272, 273], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 71, "column": 94}}, {"id": 272, "type": "identifier", "text": "fromModes", "parent": 271, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 30}}, {"id": 273, "type": "argument_list", "text": "(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)", "parent": 271, "children": [274, 279, 284, 287, 289, 293, 295, 299, 301, 305, 307, 311, 313, 317, 319], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 71, "column": 94}}, {"id": 274, "type": "binary_expression", "text": "const Mode* inputMode", "parent": 273, "children": [275, 277, 278], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 29}}, {"id": 275, "type": "ERROR", "text": "Mode", "parent": 274, "children": [276], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 276, "type": "identifier", "text": "Mode", "parent": 275, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 277, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 278, "type": "identifier", "text": "inputMode", "parent": 274, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 29}}, {"id": 279, "type": "binary_expression", "text": "const Mode* outputMode", "parent": 273, "children": [280, 282, 283], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 53}}, {"id": 280, "type": "ERROR", "text": "Mode", "parent": 279, "children": [281], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 41}}, {"id": 281, "type": "identifier", "text": "Mode", "parent": 280, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 41}}, {"id": 282, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 42}}, {"id": 283, "type": "identifier", "text": "outputMode", "parent": 279, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 53}}, {"id": 284, "type": "binary_expression", "text": "ModeMapper& mapperIn", "parent": 273, "children": [285, 286], "start_point": {"row": 69, "column": 61}, "end_point": {"row": 69, "column": 81}}, {"id": 285, "type": "identifier", "text": "ModeMapper", "parent": 284, "children": [], "start_point": {"row": 69, "column": 61}, "end_point": {"row": 69, "column": 71}}, {"id": 286, "type": "identifier", "text": "mapperIn", "parent": 284, "children": [], "start_point": {"row": 69, "column": 73}, "end_point": {"row": 69, "column": 81}}, {"id": 287, "type": "ERROR", "text": "int", "parent": 273, "children": [288], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 11}}, {"id": 288, "type": "identifier", "text": "int", "parent": 287, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 11}}, {"id": 289, "type": "assignment_expression", "text": "firstMidiNoteIn = 0", "parent": 273, "children": [290, 291, 292], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 31}}, {"id": 290, "type": "identifier", "text": "firstMidiNoteIn", "parent": 289, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 27}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 29}}, {"id": 292, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 31}}, {"id": 293, "type": "ERROR", "text": "int", "parent": 273, "children": [294], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 36}}, {"id": 294, "type": "identifier", "text": "int", "parent": 293, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 36}}, {"id": 295, "type": "assignment_expression", "text": "lastMidiNoteIn = 127", "parent": 273, "children": [296, 297, 298], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 57}}, {"id": 296, "type": "identifier", "text": "lastMidiNoteIn", "parent": 295, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 51}}, {"id": 297, "type": "=", "text": "=", "parent": 295, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 53}}, {"id": 298, "type": "number_literal", "text": "127", "parent": 295, "children": [], "start_point": {"row": 70, "column": 54}, "end_point": {"row": 70, "column": 57}}, {"id": 299, "type": "ERROR", "text": "int", "parent": 273, "children": [300], "start_point": {"row": 70, "column": 59}, "end_point": {"row": 70, "column": 62}}, {"id": 300, "type": "identifier", "text": "int", "parent": 299, "children": [], "start_point": {"row": 70, "column": 59}, "end_point": {"row": 70, "column": 62}}, {"id": 301, "type": "assignment_expression", "text": "mappingRootNoteIn = -1", "parent": 273, "children": [302, 303, 304], "start_point": {"row": 70, "column": 63}, "end_point": {"row": 70, "column": 85}}, {"id": 302, "type": "identifier", "text": "mappingRootNoteIn", "parent": 301, "children": [], "start_point": {"row": 70, "column": 63}, "end_point": {"row": 70, "column": 80}}, {"id": 303, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 70, "column": 81}, "end_point": {"row": 70, "column": 82}}, {"id": 304, "type": "number_literal", "text": "-1", "parent": 301, "children": [], "start_point": {"row": 70, "column": 83}, "end_point": {"row": 70, "column": 85}}, {"id": 305, "type": "ERROR", "text": "int", "parent": 273, "children": [306], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 11}}, {"id": 306, "type": "identifier", "text": "int", "parent": 305, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 11}}, {"id": 307, "type": "assignment_expression", "text": "referenceMidiNoteIn = 69", "parent": 273, "children": [308, 309, 310], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 36}}, {"id": 308, "type": "identifier", "text": "referenceMidiNoteIn", "parent": 307, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 31}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 33}}, {"id": 310, "type": "number_literal", "text": "69", "parent": 307, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 36}}, {"id": 311, "type": "ERROR", "text": "double", "parent": 273, "children": [312], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 44}}, {"id": 312, "type": "identifier", "text": "double", "parent": 311, "children": [], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 44}}, {"id": 313, "type": "assignment_expression", "text": "referenceFreqIn = 440.0", "parent": 273, "children": [314, 315, 316], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 68}}, {"id": 314, "type": "identifier", "text": "referenceFreqIn", "parent": 313, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 60}}, {"id": 315, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 71, "column": 61}, "end_point": {"row": 71, "column": 62}}, {"id": 316, "type": "number_literal", "text": "440.0", "parent": 313, "children": [], "start_point": {"row": 71, "column": 63}, "end_point": {"row": 71, "column": 68}}, {"id": 317, "type": "ERROR", "text": "int", "parent": 273, "children": [318], "start_point": {"row": 71, "column": 70}, "end_point": {"row": 71, "column": 73}}, {"id": 318, "type": "identifier", "text": "int", "parent": 317, "children": [], "start_point": {"row": 71, "column": 70}, "end_point": {"row": 71, "column": 73}}, {"id": 319, "type": "assignment_expression", "text": "periodDegreeIn = -1", "parent": 273, "children": [320, 321, 322], "start_point": {"row": 71, "column": 74}, "end_point": {"row": 71, "column": 93}}, {"id": 320, "type": "identifier", "text": "periodDegreeIn", "parent": 319, "children": [], "start_point": {"row": 71, "column": 74}, "end_point": {"row": 71, "column": 88}}, {"id": 321, "type": "=", "text": "=", "parent": 319, "children": [], "start_point": {"row": 71, "column": 89}, "end_point": {"row": 71, "column": 90}}, {"id": 322, "type": "number_literal", "text": "-1", "parent": 319, "children": [], "start_point": {"row": 71, "column": 91}, "end_point": {"row": 71, "column": 93}}, {"id": 323, "type": "binary_expression", "text": "Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)", "parent": 212, "children": [324, 328, 329], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 85}}, {"id": 324, "type": "binary_expression", "text": "Array<int", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 17}}, {"id": 325, "type": "identifier", "text": "Array", "parent": 324, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 326, "type": "<", "text": "<", "parent": 324, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 327, "type": "identifier", "text": "int", "parent": 324, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 17}}, {"id": 328, "type": ">", "text": ">", "parent": 323, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 18}}, {"id": 329, "type": "assignment_expression", "text": "periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)", "parent": 323, "children": [330, 331, 332], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 85}}, {"id": 330, "type": "identifier", "text": "periodMap", "parent": 329, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 28}}, {"id": 331, "type": "=", "text": "=", "parent": 329, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 332, "type": "call_expression", "text": "mapperIn.getSelectedPeriodMap(*inputMode, *outputMode)", "parent": 329, "children": [333, 336], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 85}}, {"id": 333, "type": "field_expression", "text": "mapperIn.getSelectedPeriodMap", "parent": 332, "children": [334, 335], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 60}}, {"id": 334, "type": "identifier", "text": "mapperIn", "parent": 333, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 39}}, {"id": 335, "type": "field_identifier", "text": "getSelectedPeriodMap", "parent": 333, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 60}}, {"id": 336, "type": "argument_list", "text": "(*inputMode, *outputMode)", "parent": 332, "children": [337, 340], "start_point": {"row": 73, "column": 60}, "end_point": {"row": 73, "column": 85}}, {"id": 337, "type": "pointer_expression", "text": "*inputMode", "parent": 336, "children": [338, 339], "start_point": {"row": 73, "column": 61}, "end_point": {"row": 73, "column": 71}}, {"id": 338, "type": "*", "text": "*", "parent": 337, "children": [], "start_point": {"row": 73, "column": 61}, "end_point": {"row": 73, "column": 62}}, {"id": 339, "type": "identifier", "text": "inputMode", "parent": 337, "children": [], "start_point": {"row": 73, "column": 62}, "end_point": {"row": 73, "column": 71}}, {"id": 340, "type": "pointer_expression", "text": "*outputMode", "parent": 336, "children": [341, 342], "start_point": {"row": 73, "column": 73}, "end_point": {"row": 73, "column": 84}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 73, "column": 73}, "end_point": {"row": 73, "column": 74}}, {"id": 342, "type": "identifier", "text": "outputMode", "parent": 340, "children": [], "start_point": {"row": 73, "column": 74}, "end_point": {"row": 73, "column": 84}}, {"id": 343, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 11}}, {"id": 344, "type": "assignment_expression", "text": "middleNote = mappingRootNoteIn", "parent": 212, "children": [345, 346, 347], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 42}}, {"id": 345, "type": "identifier", "text": "middleNote", "parent": 344, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 22}}, {"id": 346, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 24}}, {"id": 347, "type": "identifier", "text": "mappingRootNoteIn", "parent": 344, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 42}}, {"id": 348, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 11}}, {"id": 349, "type": "assignment_expression", "text": "period = periodDegreeIn", "parent": 212, "children": [350, 351, 352], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 35}}, {"id": 350, "type": "identifier", "text": "period", "parent": 349, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 18}}, {"id": 351, "type": "=", "text": "=", "parent": 349, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 20}}, {"id": 352, "type": "identifier", "text": "periodDegreeIn", "parent": 349, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 35}}, {"id": 353, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 11}}, {"id": 354, "type": "call_expression", "text": "size = periodMap.size();\n\n if (periodMap.size() >= 128)", "parent": 212, "children": [355, 363, 364], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 80, "column": 36}}, {"id": 355, "type": "assignment_expression", "text": "size = periodMap.size()", "parent": 354, "children": [356, 357, 358], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 35}}, {"id": 356, "type": "identifier", "text": "size", "parent": 355, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 16}}, {"id": 357, "type": "=", "text": "=", "parent": 355, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 18}}, {"id": 358, "type": "call_expression", "text": "periodMap.size()", "parent": 355, "children": [359, 362], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 35}}, {"id": 359, "type": "field_expression", "text": "periodMap.size", "parent": 358, "children": [360, 361], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 33}}, {"id": 360, "type": "identifier", "text": "periodMap", "parent": 359, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 28}}, {"id": 361, "type": "field_identifier", "text": "size", "parent": 359, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 33}}, {"id": 362, "type": "argument_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 35}}, {"id": 363, "type": "ERROR", "text": ";\n\n if", "parent": 354, "children": [], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 80, "column": 10}}, {"id": 364, "type": "argument_list", "text": "(periodMap.size() >= 128)", "parent": 354, "children": [365], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 36}}, {"id": 365, "type": "binary_expression", "text": "periodMap.size() >= 128", "parent": 364, "children": [366, 371, 372], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 35}}, {"id": 366, "type": "call_expression", "text": "periodMap.size()", "parent": 365, "children": [367, 370], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 28}}, {"id": 367, "type": "field_expression", "text": "periodMap.size", "parent": 366, "children": [368, 369], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 26}}, {"id": 368, "type": "identifier", "text": "periodMap", "parent": 367, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 21}}, {"id": 369, "type": "field_identifier", "text": "size", "parent": 367, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 26}}, {"id": 370, "type": "argument_list", "text": "()", "parent": 366, "children": [], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 28}}, {"id": 371, "type": ">=", "text": ">=", "parent": 365, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 31}}, {"id": 372, "type": "number_literal", "text": "128", "parent": 365, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 35}}, {"id": 373, "type": "assignment_expression", "text": "middleNote = 0", "parent": 212, "children": [374, 375, 376], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 26}}, {"id": 374, "type": "identifier", "text": "middleNote", "parent": 373, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 22}}, {"id": 375, "type": "=", "text": "=", "parent": 373, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 24}}, {"id": 376, "type": "number_literal", "text": "0", "parent": 373, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 377, "type": "assignment_expression", "text": "period = 127", "parent": 212, "children": [378, 379, 380], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 24}}, {"id": 378, "type": "identifier", "text": "period", "parent": 377, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 18}}, {"id": 379, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 20}}, {"id": 380, "type": "number_literal", "text": "127", "parent": 377, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 24}}, {"id": 381, "type": "call_expression", "text": "size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)", "parent": 212, "children": [382, 386, 387], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 88, "column": 51}}, {"id": 382, "type": "assignment_expression", "text": "size = 0", "parent": 381, "children": [383, 384, 385], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 20}}, {"id": 383, "type": "identifier", "text": "size", "parent": 382, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 16}}, {"id": 384, "type": "=", "text": "=", "parent": 382, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 18}}, {"id": 385, "type": "number_literal", "text": "0", "parent": 382, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 20}}, {"id": 386, "type": "ERROR", "text": ";\n }\n else\n {\n if", "parent": 381, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 88, "column": 14}}, {"id": 387, "type": "argument_list", "text": "(middleNote < 0 || middleNote > 127)", "parent": 381, "children": [388], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 51}}, {"id": 388, "type": "binary_expression", "text": "middleNote < 0 || middleNote > 127", "parent": 387, "children": [389, 393, 394], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 50}}, {"id": 389, "type": "binary_expression", "text": "middleNote < 0", "parent": 388, "children": [390, 391, 392], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 30}}, {"id": 390, "type": "identifier", "text": "middleNote", "parent": 389, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 26}}, {"id": 391, "type": "<", "text": "<", "parent": 389, "children": [], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 28}}, {"id": 392, "type": "number_literal", "text": "0", "parent": 389, "children": [], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 30}}, {"id": 393, "type": "||", "text": "||", "parent": 388, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 33}}, {"id": 394, "type": "binary_expression", "text": "middleNote > 127", "parent": 388, "children": [395, 396, 397], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 50}}, {"id": 395, "type": "identifier", "text": "middleNote", "parent": 394, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 44}}, {"id": 396, "type": ">", "text": ">", "parent": 394, "children": [], "start_point": {"row": 88, "column": 45}, "end_point": {"row": 88, "column": 46}}, {"id": 397, "type": "number_literal", "text": "127", "parent": 394, "children": [], "start_point": {"row": 88, "column": 47}, "end_point": {"row": 88, "column": 50}}, {"id": 398, "type": "call_expression", "text": "middleNote = outputMode->getRootNote();\n\n if (period < 0)", "parent": 212, "children": [399, 407, 408], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 91, "column": 27}}, {"id": 399, "type": "assignment_expression", "text": "middleNote = outputMode->getRootNote()", "parent": 398, "children": [400, 401, 402], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 54}}, {"id": 400, "type": "identifier", "text": "middleNote", "parent": 399, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 26}}, {"id": 401, "type": "=", "text": "=", "parent": 399, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 28}}, {"id": 402, "type": "call_expression", "text": "outputMode->getRootNote()", "parent": 399, "children": [403, 406], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 54}}, {"id": 403, "type": "field_expression", "text": "outputMode->getRootNote", "parent": 402, "children": [404, 405], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 52}}, {"id": 404, "type": "identifier", "text": "outputMode", "parent": 403, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 39}}, {"id": 405, "type": "field_identifier", "text": "getRootNote", "parent": 403, "children": [], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 52}}, {"id": 406, "type": "argument_list", "text": "()", "parent": 402, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 54}}, {"id": 407, "type": "ERROR", "text": ";\n\n if", "parent": 398, "children": [], "start_point": {"row": 89, "column": 54}, "end_point": {"row": 91, "column": 14}}, {"id": 408, "type": "argument_list", "text": "(period < 0)", "parent": 398, "children": [409], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 27}}, {"id": 409, "type": "binary_expression", "text": "period < 0", "parent": 408, "children": [410, 411, 412], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 26}}, {"id": 410, "type": "identifier", "text": "period", "parent": 409, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 22}}, {"id": 411, "type": "<", "text": "<", "parent": 409, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 24}}, {"id": 412, "type": "number_literal", "text": "0", "parent": 409, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 26}}, {"id": 413, "type": "assignment_expression", "text": "period = outputMode->getScaleSize()", "parent": 212, "children": [414, 415, 416], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 51}}, {"id": 414, "type": "identifier", "text": "period", "parent": 413, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 22}}, {"id": 415, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 24}}, {"id": 416, "type": "call_expression", "text": "outputMode->getScaleSize()", "parent": 413, "children": [417, 420], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 51}}, {"id": 417, "type": "field_expression", "text": "outputMode->getScaleSize", "parent": 416, "children": [418, 419], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 49}}, {"id": 418, "type": "identifier", "text": "outputMode", "parent": 417, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 35}}, {"id": 419, "type": "field_identifier", "text": "getScaleSize", "parent": 417, "children": [], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 49}}, {"id": 420, "type": "argument_list", "text": "()", "parent": 416, "children": [], "start_point": {"row": 92, "column": 49}, "end_point": {"row": 92, "column": 51}}, {"id": 421, "type": "call_expression", "text": "KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n )", "parent": 212, "children": [422, 423], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 98, "column": 9}}, {"id": 422, "type": "identifier", "text": "KbmWriter", "parent": 421, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 24}}, {"id": 423, "type": "argument_list", "text": "(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n )", "parent": 421, "children": [424, 425, 431, 437, 438, 444, 450, 451], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 98, "column": 9}}, {"id": 424, "type": "identifier", "text": "size", "parent": 423, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 16}}, {"id": 425, "type": "call_expression", "text": "jlimit(0, 127, firstMidiNoteIn)", "parent": 423, "children": [426, 427], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 49}}, {"id": 426, "type": "identifier", "text": "jlimit", "parent": 425, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 24}}, {"id": 427, "type": "argument_list", "text": "(0, 127, firstMidiNoteIn)", "parent": 425, "children": [428, 429, 430], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 49}}, {"id": 428, "type": "number_literal", "text": "0", "parent": 427, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 26}}, {"id": 429, "type": "number_literal", "text": "127", "parent": 427, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 31}}, {"id": 430, "type": "identifier", "text": "firstMidiNoteIn", "parent": 427, "children": [], "start_point": {"row": 96, "column": 33}, "end_point": {"row": 96, "column": 48}}, {"id": 431, "type": "call_expression", "text": "jlimit(0, 127, lastMidiNoteIn)", "parent": 423, "children": [432, 433], "start_point": {"row": 96, "column": 51}, "end_point": {"row": 96, "column": 81}}, {"id": 432, "type": "identifier", "text": "jlimit", "parent": 431, "children": [], "start_point": {"row": 96, "column": 51}, "end_point": {"row": 96, "column": 57}}, {"id": 433, "type": "argument_list", "text": "(0, 127, lastMidiNoteIn)", "parent": 431, "children": [434, 435, 436], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 81}}, {"id": 434, "type": "number_literal", "text": "0", "parent": 433, "children": [], "start_point": {"row": 96, "column": 58}, "end_point": {"row": 96, "column": 59}}, {"id": 435, "type": "number_literal", "text": "127", "parent": 433, "children": [], "start_point": {"row": 96, "column": 61}, "end_point": {"row": 96, "column": 64}}, {"id": 436, "type": "identifier", "text": "lastMidiNoteIn", "parent": 433, "children": [], "start_point": {"row": 96, "column": 66}, "end_point": {"row": 96, "column": 80}}, {"id": 437, "type": "identifier", "text": "middleNote", "parent": 423, "children": [], "start_point": {"row": 96, "column": 83}, "end_point": {"row": 96, "column": 93}}, {"id": 438, "type": "call_expression", "text": "jlimit(0, 127, referenceMidiNoteIn)", "parent": 423, "children": [439, 440], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 47}}, {"id": 439, "type": "identifier", "text": "jlimit", "parent": 438, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 18}}, {"id": 440, "type": "argument_list", "text": "(0, 127, referenceMidiNoteIn)", "parent": 438, "children": [441, 442, 443], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 47}}, {"id": 441, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 20}}, {"id": 442, "type": "number_literal", "text": "127", "parent": 440, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 25}}, {"id": 443, "type": "identifier", "text": "referenceMidiNoteIn", "parent": 440, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 46}}, {"id": 444, "type": "call_expression", "text": "jlimit(10e-3, 20e3, referenceFreqIn)", "parent": 423, "children": [445, 446], "start_point": {"row": 97, "column": 49}, "end_point": {"row": 97, "column": 85}}, {"id": 445, "type": "identifier", "text": "jlimit", "parent": 444, "children": [], "start_point": {"row": 97, "column": 49}, "end_point": {"row": 97, "column": 55}}, {"id": 446, "type": "argument_list", "text": "(10e-3, 20e3, referenceFreqIn)", "parent": 444, "children": [447, 448, 449], "start_point": {"row": 97, "column": 55}, "end_point": {"row": 97, "column": 85}}, {"id": 447, "type": "number_literal", "text": "10e-3", "parent": 446, "children": [], "start_point": {"row": 97, "column": 56}, "end_point": {"row": 97, "column": 61}}, {"id": 448, "type": "number_literal", "text": "20e3", "parent": 446, "children": [], "start_point": {"row": 97, "column": 63}, "end_point": {"row": 97, "column": 67}}, {"id": 449, "type": "identifier", "text": "referenceFreqIn", "parent": 446, "children": [], "start_point": {"row": 97, "column": 69}, "end_point": {"row": 97, "column": 84}}, {"id": 450, "type": "identifier", "text": "period", "parent": 423, "children": [], "start_point": {"row": 97, "column": 87}, "end_point": {"row": 97, "column": 93}}, {"id": 451, "type": "identifier", "text": "periodMap", "parent": 423, "children": [], "start_point": {"row": 97, "column": 95}, "end_point": {"row": 97, "column": 104}}, {"id": 452, "type": "ERROR", "text": "private:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray", "parent": 168, "children": [453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 474], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 119, "column": 15}}, {"id": 453, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 7}}, {"id": 454, "type": "identifier", "text": "size", "parent": 452, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 12}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 7}}, {"id": 456, "type": "identifier", "text": "firstMidiNote", "parent": 452, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 21}}, {"id": 457, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 7}}, {"id": 458, "type": "identifier", "text": "lastMidiNote", "parent": 452, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 20}}, {"id": 459, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 460, "type": "identifier", "text": "mappingRootMidiNote", "parent": 452, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 27}}, {"id": 461, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 7}}, {"id": 462, "type": "identifier", "text": "referenceMidiNote", "parent": 452, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 25}}, {"id": 463, "type": "primitive_type", "text": "double", "parent": 452, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 10}}, {"id": 464, "type": "identifier", "text": "referenceFrequency", "parent": 452, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 29}}, {"id": 465, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 7}}, {"id": 466, "type": "identifier", "text": "periodDegree", "parent": 452, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 20}}, {"id": 467, "type": "binary_expression", "text": "Array<int> mapping", "parent": 452, "children": [468, 472, 473], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 22}}, {"id": 468, "type": "binary_expression", "text": "Array<int", "parent": 467, "children": [469, 470, 471], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 13}}, {"id": 469, "type": "identifier", "text": "Array", "parent": 468, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 9}}, {"id": 470, "type": "<", "text": "<", "parent": 468, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 10}}, {"id": 471, "type": "identifier", "text": "int", "parent": 468, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 13}}, {"id": 472, "type": ">", "text": ">", "parent": 467, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 14}}, {"id": 473, "type": "identifier", "text": "mapping", "parent": 467, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 22}}, {"id": 474, "type": "identifier", "text": "StringArray", "parent": 452, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 15}}, {"id": 475, "type": "comma_expression", "text": "sectionLabels =\n {\n \"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\",\n \"! First MIDI note number to retune:\\n\",\n \"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 168, "children": [476, 483], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 130, "column": 94}}, {"id": 476, "type": "assignment_expression", "text": "sectionLabels =\n {\n \"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\"", "parent": 475, "children": [477, 478, 479], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 121, "column": 104}}, {"id": 477, "type": "identifier", "text": "sectionLabels", "parent": 476, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 29}}, {"id": 478, "type": "=", "text": "=", "parent": 476, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 31}}, {"id": 479, "type": "string_literal", "text": "\"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\"", "parent": 476, "children": [480, 481, 482], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 104}}, {"id": 480, "type": "escape_sequence", "text": "\\n", "parent": 479, "children": [], "start_point": {"row": 121, "column": 42}, "end_point": {"row": 121, "column": 44}}, {"id": 481, "type": "escape_sequence", "text": "\\n", "parent": 479, "children": [], "start_point": {"row": 121, "column": 45}, "end_point": {"row": 121, "column": 47}}, {"id": 482, "type": "escape_sequence", "text": "\\n", "parent": 479, "children": [], "start_point": {"row": 121, "column": 101}, "end_point": {"row": 121, "column": 103}}, {"id": 483, "type": "comma_expression", "text": "\"! First MIDI note number to retune:\\n\",\n \"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 475, "children": [484, 486], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 484, "type": "string_literal", "text": "\"! First MIDI note number to retune:\\n\"", "parent": 483, "children": [485], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 47}}, {"id": 485, "type": "escape_sequence", "text": "\\n", "parent": 484, "children": [], "start_point": {"row": 122, "column": 44}, "end_point": {"row": 122, "column": 46}}, {"id": 486, "type": "comma_expression", "text": "\"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 483, "children": [487, 489], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 487, "type": "string_literal", "text": "\"! Last MIDI note number to retune:\\n\"", "parent": 486, "children": [488], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 46}}, {"id": 488, "type": "escape_sequence", "text": "\\n", "parent": 487, "children": [], "start_point": {"row": 123, "column": 43}, "end_point": {"row": 123, "column": 45}}, {"id": 489, "type": "comma_expression", "text": "\"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 486, "children": [490, 492], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 490, "type": "string_literal", "text": "\"! Middle note where the first entry of the mapping is mapped to:\\n\"", "parent": 489, "children": [491], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 76}}, {"id": 491, "type": "escape_sequence", "text": "\\n", "parent": 490, "children": [], "start_point": {"row": 124, "column": 73}, "end_point": {"row": 124, "column": 75}}, {"id": 492, "type": "comma_expression", "text": "\"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 489, "children": [493, 495], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 493, "type": "string_literal", "text": "\"! Reference note for which frequency is given:\\n\"", "parent": 492, "children": [494], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 58}}, {"id": 494, "type": "escape_sequence", "text": "\\n", "parent": 493, "children": [], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 57}}, {"id": 495, "type": "comma_expression", "text": "\"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 492, "children": [496, 498], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 496, "type": "string_literal", "text": "\"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\"", "parent": 495, "children": [497], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 78}}, {"id": 497, "type": "escape_sequence", "text": "\\n", "parent": 496, "children": [], "start_point": {"row": 126, "column": 75}, "end_point": {"row": 126, "column": 77}}, {"id": 498, "type": "comma_expression", "text": "\"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 495, "children": [499, 502], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 499, "type": "string_literal", "text": "\"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\"", "parent": 498, "children": [500, 501], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 126}}, {"id": 500, "type": "escape_sequence", "text": "\\n", "parent": 499, "children": [], "start_point": {"row": 127, "column": 84}, "end_point": {"row": 127, "column": 86}}, {"id": 501, "type": "escape_sequence", "text": "\\n", "parent": 499, "children": [], "start_point": {"row": 127, "column": 123}, "end_point": {"row": 127, "column": 125}}, {"id": 502, "type": "concatenated_string", "text": "\"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 498, "children": [503, 506, 508], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 503, "type": "string_literal", "text": "\"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"", "parent": 502, "children": [504, 505], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 100}}, {"id": 504, "type": "escape_sequence", "text": "\\n", "parent": 503, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 21}}, {"id": 505, "type": "escape_sequence", "text": "\\n", "parent": 503, "children": [], "start_point": {"row": 128, "column": 97}, "end_point": {"row": 128, "column": 99}}, {"id": 506, "type": "string_literal", "text": "\"! the given middle note, the next for subsequent higher keys.\\n\"", "parent": 502, "children": [507], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 73}}, {"id": 507, "type": "escape_sequence", "text": "\\n", "parent": 506, "children": [], "start_point": {"row": 129, "column": 70}, "end_point": {"row": 129, "column": 72}}, {"id": 508, "type": "string_literal", "text": "\"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"", "parent": 502, "children": [509, 510, 511], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 94}}, {"id": 509, "type": "escape_sequence", "text": "\\\"", "parent": 508, "children": [], "start_point": {"row": 130, "column": 42}, "end_point": {"row": 130, "column": 44}}, {"id": 510, "type": "escape_sequence", "text": "\\\"", "parent": 508, "children": [], "start_point": {"row": 130, "column": 45}, "end_point": {"row": 130, "column": 47}}, {"id": 511, "type": "escape_sequence", "text": "\\n", "parent": 508, "children": [], "start_point": {"row": 130, "column": 91}, "end_point": {"row": 130, "column": 93}}]}, "node_categories": {"declarations": {"functions": [9, 42, 47, 52, 57, 62, 67, 72, 78, 84, 85, 86, 98, 107], "variables": [12, 45, 50, 55, 60, 65, 70, 75, 81, 89, 96, 105, 169], "classes": [170], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [116, 120, 124, 128, 132, 136, 140, 146, 147, 149, 150, 151, 160, 161, 180, 181, 182, 187, 193, 198, 199, 205, 213, 214, 219, 220, 230, 231, 240, 254, 260, 263, 264, 271, 274, 279, 284, 323, 324, 332, 333, 337, 340, 354, 358, 359, 365, 366, 367, 381, 388, 389, 394, 398, 402, 403, 409, 416, 417, 421, 425, 431, 438, 444, 467, 468, 475, 483, 486, 489, 492, 495, 498], "assignments": [159, 197, 221, 244, 251, 257, 289, 295, 301, 307, 313, 319, 329, 344, 349, 355, 373, 377, 382, 399, 413, 476], "loops": [], "conditionals": [10, 13, 14, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35, 37, 41, 43, 46, 48, 51, 53, 56, 58, 61, 63, 66, 68, 71, 73, 76, 79, 82, 87, 90, 91, 97, 99, 106, 108, 110, 111, 113, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 152, 154, 162, 163, 172, 174, 175, 177, 179, 183, 188, 194, 196, 200, 201, 206, 215, 217, 222, 224, 228, 232, 233, 236, 241, 245, 252, 255, 256, 258, 261, 262, 265, 266, 268, 270, 272, 276, 278, 281, 283, 285, 286, 288, 290, 294, 296, 300, 302, 306, 308, 312, 314, 318, 320, 325, 327, 330, 334, 335, 339, 342, 345, 347, 350, 352, 356, 360, 361, 368, 369, 374, 378, 383, 390, 395, 400, 404, 405, 410, 414, 418, 419, 422, 424, 426, 430, 432, 436, 437, 439, 443, 445, 449, 450, 451, 454, 456, 458, 460, 462, 464, 466, 469, 471, 473, 474, 477], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 144, 153, 156, 165, 167, 185, 190, 192, 203, 208, 226, 243, 247, 292, 298, 304, 310, 316, 322, 372, 376, 380, 385, 392, 397, 412, 428, 429, 434, 435, 441, 442, 447, 448, 479, 484, 487, 490, 493, 496, 499, 502, 503, 506, 508], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "KbmWriter", "text_snippet": "class KbmWriter\n{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteI"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "size(sizeIn)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "firstMidiNote(firstMidiNoteIn)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "lastMidiNote(lastMidiNoteIn)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "mappingRootMidiNote(mappingRootNoteIn)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "referenceMidiNote(referenceMidiNoteIn)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "referenceFrequency(referenceFreqIn)"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "periodDegree(periodDegreeIn)"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "mapping(mappingIn)"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n "}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "writeTo(const File& fileToWriteTo)"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "existsAsFile()"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "create()"}], "class_declarations": [{"node_id": 170, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 3, "text": "#include <JuceHeader.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"../Structures/ModeMapper.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n ==============================================================================\n\n KbmWriter.h\n Created: 23 Oct 2020 11:37:09pm\n Author: Vincenzo\n\n ==============================================================================\n*/\n\n#pragma once\n#include <JuceHeader.h>\n#include \"../Structures/ModeMapper.h\"\n\nclass KbmWriter\n{\npublic:\n\n KbmWriter(\n int sizeIn, int firstMidiNoteIn, int lastMidiNoteIn, int mappingRootNoteIn,\n int referenceMidiNoteIn, double referenceFreqIn, int periodDegreeIn, \n Array<int> mappingIn\n ) :\n size(sizeIn), firstMidiNote(firstMidiNoteIn), lastMidiNote(lastMidiNoteIn), mappingRootMidiNote(mappingRootNoteIn),\n referenceMidiNote(referenceMidiNoteIn), referenceFrequency(referenceFreqIn), periodDegree(periodDegreeIn), \n mapping(mappingIn) {}\n\n bool writeTo(const File& fileToWriteTo)\n {\n if (!fileToWriteTo.existsAsFile())\n {\n if (!fileToWriteTo.create())\n return false;\n }\n\n StringArray valuesOut =\n {\n String(size), String(firstMidiNote), String(lastMidiNote),\n String(mappingRootMidiNote), String(referenceMidiNote),\n String(referenceFrequency), String(periodDegree), \"\"\n };\n\n // Ensure frequency is floating point\n if (!valuesOut[5].containsChar('.'))\n valuesOut.getReference(5) += \".0\";\n\n // Change OOB notes to x\n for (auto deg : mapping)\n {\n String degOut = (deg < 0 || deg > 127) ? \"x\" : String(deg);\n valuesOut.getReference(7) += degOut + '\\n';\n }\n\n String fileTextOut;\n for (int i = 0; i < sectionLabels.size(); i++)\n {\n if (i > 0)\n fileTextOut += '\\n';\n\n fileTextOut += sectionLabels[i];\n fileTextOut += valuesOut[i];\n }\n\n fileToWriteTo.replaceWithText(fileTextOut);\n\n return true;\n }\n\n static KbmWriter fromModes(\n const Mode* inputMode, const Mode* outputMode, const ModeMapper& mapperIn,\n int firstMidiNoteIn = 0, int lastMidiNoteIn = 127, int mappingRootNoteIn = -1,\n int referenceMidiNoteIn = 69, double referenceFreqIn = 440.0, int periodDegreeIn = -1)\n {\n Array<int> periodMap = mapperIn.getSelectedPeriodMap(*inputMode, *outputMode);\n\n int middleNote = mappingRootNoteIn;\n int period = periodDegreeIn;\n\n int size = periodMap.size();\n\n if (periodMap.size() >= 128)\n {\n middleNote = 0;\n period = 127;\n size = 0;\n }\n else\n {\n if (middleNote < 0 || middleNote > 127)\n middleNote = outputMode->getRootNote();\n\n if (period < 0)\n period = outputMode->getScaleSize();\n }\n \n return KbmWriter(\n size, jlimit(0, 127, firstMidiNoteIn), jlimit(0, 127, lastMidiNoteIn), middleNote,\n jlimit(0, 127, referenceMidiNoteIn), jlimit(10e-3, 20e3, referenceFreqIn), period, periodMap\n );\n }\n\n\n //static KbmWriter fromNoteMap(const NoteMap& noteMapIn)\n //{\n // Array<int> mapping;\n //}\n\n\nprivate:\n\n int size;\n int firstMidiNote;\n int lastMidiNote;\n int mappingRootMidiNote;\n int referenceMidiNote;\n double referenceFrequency;\n int periodDegree;\n Array<int> mapping;\n\n StringArray sectionLabels =\n {\n \"! Template for a keyboard mapping\\n!\\n! Size of map. The pattern repeats every so many keys:\\n\",\n \"! First MIDI note number to retune:\\n\",\n \"! Last MIDI note number to retune:\\n\",\n \"! Middle note where the first entry of the mapping is mapped to:\\n\",\n \"! Reference note for which frequency is given:\\n\",\n \"! Frequency to tune the above note to (floating point e.g. 440.0):\\n\",\n \"! Scale degree to consider as formal octave (determines difference in pitch\\n! between adjacent mapping patterns):\\n\",\n \"! Mapping.\\n! The numbers represent scale degrees mapped to keys. The first entry is for\\n\"\n \"! the given middle note, the next for subsequent higher keys.\\n\"\n \"! For an unmapped key, put in an \\\"x\\\". At the end, unmapped keys may be left out.\\n\"\n };\n};"}
106
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __gnu_classpath_jdwp_util_VariableTable__ #define __gnu_classpath_jdwp_util_VariableTable__ #pragma interface #include <java/lang/Object.h> #include <gcj/array.h> extern "Java" { namespace gnu { namespace classpath { namespace jdwp { namespace util { class VariableTable; } } } } } class gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object { public: VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *); virtual void write(::java::io::DataOutputStream *); private: jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt; jint slots; JArray< jlong > * lineCI; JArray< jint > * slot; JArray< jint > * lengths; JArray< ::java::lang::String * > * sigs; JArray< ::java::lang::String * > * names; public: static ::java::lang::Class class$; }; #endif // __gnu_classpath_jdwp_util_VariableTable__
26.95
39
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __gnu_classpath_jdwp_util_VariableTable__\n#define __gnu_classpath_jdwp_util_VariableTable__\n\n#pragma interface\n\n#include <java/lang/Object.h>\n#include <gcj/array.h>\n\nextern "Java"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}\n\nclass gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n};\n\n#endif // __gnu_classpath_jdwp_util_VariableTable__\n" (comment) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-" (preproc_ifdef) "#ifndef __gnu_classpath_jdwp_util_VariableTable__\n#define __gnu_classpath_jdwp_util_VariableTable__\n\n#pragma interface\n\n#include <java/lang/Object.h>\n#include <gcj/array.h>\n\nextern "Java"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}\n\nclass gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__gnu_classpath_jdwp_util_VariableTable__" (preproc_def) "#define __gnu_classpath_jdwp_util_VariableTable__\n" (#define) "#define" (identifier) "__gnu_classpath_jdwp_util_VariableTable__" (preproc_call) "#pragma interface\n" (preproc_directive) "#pragma" (preproc_arg) "interface" (preproc_include) "#include <java/lang/Object.h>\n" (#include) "#include" (system_lib_string) "<java/lang/Object.h>" (preproc_include) "#include <gcj/array.h>\n" (#include) "#include" (system_lib_string) "<gcj/array.h>" (linkage_specification) "extern "Java"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}" (extern) "extern" (string_literal) ""Java"" (") """ (string_content) "Java" (") """ (declaration_list) "{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}" ({) "{" (function_definition) "namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }" (type_identifier) "namespace" (identifier) "gnu" (compound_statement) "{\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }" ({) "{" (function_definition) "namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }" (type_identifier) "namespace" (identifier) "classpath" (compound_statement) "{\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }" ({) "{" (function_definition) "namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }" (type_identifier) "namespace" (identifier) "jdwp" (compound_statement) "{\n namespace util\n {\n class VariableTable;\n }\n }" ({) "{" (function_definition) "namespace util\n {\n class VariableTable;\n }" (type_identifier) "namespace" (identifier) "util" (compound_statement) "{\n class VariableTable;\n }" ({) "{" (declaration) "class VariableTable;" (type_identifier) "class" (identifier) "VariableTable" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}" (}) "}" (function_definition) "class gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n}" (type_identifier) "class" (ERROR) "gnu::classpath::jdwp::util::VariableTable : public ::java::lang::" (identifier) "gnu" (:) ":" (:) ":" (identifier) "classpath" (:) ":" (:) ":" (identifier) "jdwp" (:) ":" (:) ":" (identifier) "util" (:) ":" (:) ":" (identifier) "VariableTable" (:) ":" (identifier) "public" (:) ":" (:) ":" (identifier) "java" (:) ":" (:) ":" (identifier) "lang" (:) ":" (:) ":" (identifier) "Object" (compound_statement) "{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n}" ({) "{" (labeled_statement) "public:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);" (statement_identifier) "public" (:) ":" (expression_statement) "VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);" (call_expression) "VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *)" (identifier) "VariableTable" (argument_list) "(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *)" (() "(" (identifier) "jint" (,) "," (identifier) "jint" (,) "," (binary_expression) "JArray< jlong > *, JArray< ::java" (binary_expression) "JArray< jlong > *, JArray" (binary_expression) "JArray< jlong" (identifier) "JArray" (<) "<" (identifier) "jlong" (>) ">" (pointer_expression) "*, JArray" (*) "*" (ERROR) "," (,) "," (identifier) "JArray" (<) "<" (ERROR) "::" (:) ":" (:) ":" (identifier) "java" (ERROR) "::lang::String * > *" (:) ":" (:) ":" (identifier) "lang" (:) ":" (:) ":" (identifier) "String" (*) "*" (ERROR) ">" (>) ">" (*) "*" (,) "," (binary_expression) "JArray< ::java" (identifier) "JArray" (<) "<" (ERROR) "::" (:) ":" (:) ":" (identifier) "java" (ERROR) "::lang::String * > *" (:) ":" (:) ":" (identifier) "lang" (:) ":" (:) ":" (identifier) "String" (*) "*" (ERROR) ">" (>) ">" (*) "*" (,) "," (binary_expression) "JArray< jint > *, JArray< jint > *" (binary_expression) "JArray< jint > *, JArray< jint" (binary_expression) "JArray< jint > *, JArray" (binary_expression) "JArray< jint" (identifier) "JArray" (<) "<" (identifier) "jint" (>) ">" (pointer_expression) "*, JArray" (*) "*" (ERROR) "," (,) "," (identifier) "JArray" (<) "<" (identifier) "jint" (>) ">" (pointer_expression) "*" (*) "*" (identifier) "" ()) ")" (;) ";" (declaration) "virtual void write(::java::io::DataOutputStream *);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "write(::java::io::DataOutputStream *)" (identifier) "write" (parameter_list) "(::java::io::DataOutputStream *)" (() "(" (ERROR) "::" (:) ":" (:) ":" (parameter_declaration) "java::io::DataOutputStream *" (type_identifier) "java" (ERROR) "::io::DataOutputStream" (:) ":" (:) ":" (identifier) "io" (:) ":" (:) ":" (identifier) "DataOutputStream" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (labeled_statement) "private:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;" (statement_identifier) "private" (:) ":" (declaration) "jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;" (type_identifier) "jint" (attribute_specifier) "__attribute__((aligned(__alignof__( ::java::lang::Object))))" (__attribute__) "__attribute__" (() "(" (argument_list) "(aligned(__alignof__( ::java::lang::Object)))" (() "(" (call_expression) "aligned(__alignof__( ::java::lang::Object))" (identifier) "aligned" (argument_list) "(__alignof__( ::java::lang::Object))" (() "(" (alignof_expression) "__alignof__( ::java::lang::Object)" (__alignof__) "__alignof__" (() "(" (ERROR) "::java::lang::" (:) ":" (:) ":" (type_descriptor) "java" (type_identifier) "java" (:) ":" (:) ":" (type_descriptor) "lang" (type_identifier) "lang" (:) ":" (:) ":" (type_descriptor) "Object" (type_identifier) "Object" ()) ")" ()) ")" ()) ")" ()) ")" (identifier) "argCnt" (;) ";" (declaration) "jint slots;" (type_identifier) "jint" (identifier) "slots" (;) ";" (expression_statement) "JArray< jlong > * lineCI;" (binary_expression) "JArray< jlong > * lineCI" (binary_expression) "JArray< jlong" (identifier) "JArray" (<) "<" (identifier) "jlong" (>) ">" (pointer_expression) "* lineCI" (*) "*" (identifier) "lineCI" (;) ";" (expression_statement) "JArray< jint > * slot;" (binary_expression) "JArray< jint > * slot" (binary_expression) "JArray< jint" (identifier) "JArray" (<) "<" (identifier) "jint" (>) ">" (pointer_expression) "* slot" (*) "*" (identifier) "slot" (;) ";" (expression_statement) "JArray< jint > * lengths;" (binary_expression) "JArray< jint > * lengths" (binary_expression) "JArray< jint" (identifier) "JArray" (<) "<" (identifier) "jint" (>) ">" (pointer_expression) "* lengths" (*) "*" (identifier) "lengths" (;) ";" (ERROR) "JArray< ::java::" (binary_expression) "JArray< ::java" (identifier) "JArray" (<) "<" (ERROR) "::" (:) ":" (:) ":" (identifier) "java" (:) ":" (:) ":" (expression_statement) "lang::String * > * sigs;" (binary_expression) "lang::String * > * sigs" (identifier) "lang" (ERROR) "::String *" (:) ":" (:) ":" (identifier) "String" (*) "*" (>) ">" (pointer_expression) "* sigs" (*) "*" (identifier) "sigs" (;) ";" (ERROR) "JArray< ::java::" (binary_expression) "JArray< ::java" (identifier) "JArray" (<) "<" (ERROR) "::" (:) ":" (:) ":" (identifier) "java" (:) ":" (:) ":" (expression_statement) "lang::String * > * names;" (binary_expression) "lang::String * > * names" (identifier) "lang" (ERROR) "::String *" (:) ":" (:) ":" (identifier) "String" (*) "*" (>) ">" (pointer_expression) "* names" (*) "*" (identifier) "names" (;) ";" (labeled_statement) "public:\n static ::java::lang::Class class$;" (statement_identifier) "public" (ERROR) ":\n static :" (:) ":" (storage_class_specifier) "static" (static) "static" (:) ":" (:) ":" (labeled_statement) "java::lang::Class class$;" (statement_identifier) "java" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "lang::Class class$;" (statement_identifier) "lang" (:) ":" (ERROR) ":" (:) ":" (declaration) "Class class$;" (type_identifier) "Class" (identifier) "class$" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// __gnu_classpath_jdwp_util_VariableTable__"
334
22
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 26.95, "nodes": 196, "errors": 0, "source_hash": "40af530e001e378aec1fab6d8c599312f3a06304a379646211c940b1a48621e5", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __gnu_classpath_jdwp_util_VariableTable__\n#define __gnu_classpath_jdwp_util_VariableTable__\n\n#pragma interface\n\n#include <java/lang/Object.h>\n#include <gcj/array.h>\n\nextern \"Java\"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}\n\nclass gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 32, 195], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 46, "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": "__gnu_classpath_jdwp_util_VariableTable__", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 49}}, {"id": 3, "type": "preproc_def", "text": "#define __gnu_classpath_jdwp_util_VariableTable__\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": "__gnu_classpath_jdwp_util_VariableTable__", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 49}}, {"id": 6, "type": "preproc_call", "text": "#pragma interface\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#pragma", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "interface", "parent": 6, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <java/lang/Object.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": "<java/lang/Object.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 29}}, {"id": 12, "type": "preproc_include", "text": "#include <gcj/array.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<gcj/array.h>", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 22}}, {"id": 15, "type": "linkage_specification", "text": "extern \"Java\"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 16, "type": "extern", "text": "extern", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 17, "type": "string_literal", "text": "\"Java\"", "parent": 15, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 13}}, {"id": 18, "type": "function_definition", "text": "namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }", "parent": 15, "children": [19, 20], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 11}}, {"id": 20, "type": "identifier", "text": "gnu", "parent": 18, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 15}}, {"id": 21, "type": "function_definition", "text": "namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }", "parent": 18, "children": [22, 23], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 24, "column": 5}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 23, "type": "identifier", "text": "classpath", "parent": 21, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 23}}, {"id": 24, "type": "function_definition", "text": "namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }", "parent": 21, "children": [25, 26], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 15}}, {"id": 26, "type": "identifier", "text": "jdwp", "parent": 24, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 20}}, {"id": 27, "type": "function_definition", "text": "namespace util\n {\n class VariableTable;\n }", "parent": 24, "children": [28, 29], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 17}}, {"id": 29, "type": "identifier", "text": "util", "parent": 27, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 30, "type": "declaration", "text": "class VariableTable;", "parent": 27, "children": [31], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 32}}, {"id": 31, "type": "identifier", "text": "VariableTable", "parent": 30, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 31}}, {"id": 32, "type": "function_definition", "text": "class gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n}", "parent": 0, "children": [33, 41], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 33, "type": "ERROR", "text": "gnu::classpath::jdwp::util::VariableTable : public ::java::lang::", "parent": 32, "children": [34, 35, 36, 37, 38, 39, 40], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 71}}, {"id": 34, "type": "identifier", "text": "gnu", "parent": 33, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 9}}, {"id": 35, "type": "identifier", "text": "classpath", "parent": 33, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 20}}, {"id": 36, "type": "identifier", "text": "jdwp", "parent": 33, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 26}}, {"id": 37, "type": "identifier", "text": "util", "parent": 33, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 32}}, {"id": 38, "type": "identifier", "text": "VariableTable", "parent": 33, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 47}}, {"id": 39, "type": "identifier", "text": "java", "parent": 33, "children": [], "start_point": {"row": 28, "column": 59}, "end_point": {"row": 28, "column": 63}}, {"id": 40, "type": "identifier", "text": "lang", "parent": 33, "children": [], "start_point": {"row": 28, "column": 65}, "end_point": {"row": 28, "column": 69}}, {"id": 41, "type": "identifier", "text": "Object", "parent": 32, "children": [], "start_point": {"row": 28, "column": 71}, "end_point": {"row": 28, "column": 77}}, {"id": 42, "type": "labeled_statement", "text": "public:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);", "parent": 32, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 155}}, {"id": 43, "type": "call_expression", "text": "VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *)", "parent": 42, "children": [44, 45], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 154}}, {"id": 44, "type": "identifier", "text": "VariableTable", "parent": 43, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 15}}, {"id": 45, "type": "argument_list", "text": "(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *)", "parent": 43, "children": [46, 47, 48, 60, 67, 71, 78], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 154}}, {"id": 46, "type": "identifier", "text": "jint", "parent": 45, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 20}}, {"id": 47, "type": "identifier", "text": "jint", "parent": 45, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}, {"id": 48, "type": "binary_expression", "text": "JArray< jlong > *, JArray< ::java", "parent": 45, "children": [49, 58, 59], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 61}}, {"id": 49, "type": "binary_expression", "text": "JArray< jlong > *, JArray", "parent": 48, "children": [50, 54, 55], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 53}}, {"id": 50, "type": "binary_expression", "text": "JArray< jlong", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 41}}, {"id": 51, "type": "identifier", "text": "JArray", "parent": 50, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 34}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 35}}, {"id": 53, "type": "identifier", "text": "jlong", "parent": 50, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 41}}, {"id": 54, "type": ">", "text": ">", "parent": 49, "children": [], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 32, "column": 43}}, {"id": 55, "type": "pointer_expression", "text": "*, JArray", "parent": 49, "children": [56, 57], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 53}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 45}}, {"id": 57, "type": "identifier", "text": "JArray", "parent": 55, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 53}}, {"id": 58, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 32, "column": 53}, "end_point": {"row": 32, "column": 54}}, {"id": 59, "type": "identifier", "text": "java", "parent": 48, "children": [], "start_point": {"row": 32, "column": 57}, "end_point": {"row": 32, "column": 61}}, {"id": 60, "type": "ERROR", "text": "::lang::String * > *", "parent": 45, "children": [61, 62, 63, 64, 66], "start_point": {"row": 32, "column": 61}, "end_point": {"row": 32, "column": 81}}, {"id": 61, "type": "identifier", "text": "lang", "parent": 60, "children": [], "start_point": {"row": 32, "column": 63}, "end_point": {"row": 32, "column": 67}}, {"id": 62, "type": "identifier", "text": "String", "parent": 60, "children": [], "start_point": {"row": 32, "column": 69}, "end_point": {"row": 32, "column": 75}}, {"id": 63, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 32, "column": 76}, "end_point": {"row": 32, "column": 77}}, {"id": 64, "type": "ERROR", "text": ">", "parent": 60, "children": [65], "start_point": {"row": 32, "column": 78}, "end_point": {"row": 32, "column": 79}}, {"id": 65, "type": ">", "text": ">", "parent": 64, "children": [], "start_point": {"row": 32, "column": 78}, "end_point": {"row": 32, "column": 79}}, {"id": 66, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 32, "column": 80}, "end_point": {"row": 32, "column": 81}}, {"id": 67, "type": "binary_expression", "text": "JArray< ::java", "parent": 45, "children": [68, 69, 70], "start_point": {"row": 32, "column": 83}, "end_point": {"row": 32, "column": 97}}, {"id": 68, "type": "identifier", "text": "JArray", "parent": 67, "children": [], "start_point": {"row": 32, "column": 83}, "end_point": {"row": 32, "column": 89}}, {"id": 69, "type": "<", "text": "<", "parent": 67, "children": [], "start_point": {"row": 32, "column": 89}, "end_point": {"row": 32, "column": 90}}, {"id": 70, "type": "identifier", "text": "java", "parent": 67, "children": [], "start_point": {"row": 32, "column": 93}, "end_point": {"row": 32, "column": 97}}, {"id": 71, "type": "ERROR", "text": "::lang::String * > *", "parent": 45, "children": [72, 73, 74, 75, 77], "start_point": {"row": 32, "column": 97}, "end_point": {"row": 32, "column": 117}}, {"id": 72, "type": "identifier", "text": "lang", "parent": 71, "children": [], "start_point": {"row": 32, "column": 99}, "end_point": {"row": 32, "column": 103}}, {"id": 73, "type": "identifier", "text": "String", "parent": 71, "children": [], "start_point": {"row": 32, "column": 105}, "end_point": {"row": 32, "column": 111}}, {"id": 74, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 32, "column": 112}, "end_point": {"row": 32, "column": 113}}, {"id": 75, "type": "ERROR", "text": ">", "parent": 71, "children": [76], "start_point": {"row": 32, "column": 114}, "end_point": {"row": 32, "column": 115}}, {"id": 76, "type": ">", "text": ">", "parent": 75, "children": [], "start_point": {"row": 32, "column": 114}, "end_point": {"row": 32, "column": 115}}, {"id": 77, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 32, "column": 116}, "end_point": {"row": 32, "column": 117}}, {"id": 78, "type": "binary_expression", "text": "JArray< jint > *, JArray< jint > *", "parent": 45, "children": [79, 91, 92], "start_point": {"row": 32, "column": 119}, "end_point": {"row": 32, "column": 153}}, {"id": 79, "type": "binary_expression", "text": "JArray< jint > *, JArray< jint", "parent": 78, "children": [80, 89, 90], "start_point": {"row": 32, "column": 119}, "end_point": {"row": 32, "column": 149}}, {"id": 80, "type": "binary_expression", "text": "JArray< jint > *, JArray", "parent": 79, "children": [81, 85, 86], "start_point": {"row": 32, "column": 119}, "end_point": {"row": 32, "column": 143}}, {"id": 81, "type": "binary_expression", "text": "JArray< jint", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 32, "column": 119}, "end_point": {"row": 32, "column": 131}}, {"id": 82, "type": "identifier", "text": "JArray", "parent": 81, "children": [], "start_point": {"row": 32, "column": 119}, "end_point": {"row": 32, "column": 125}}, {"id": 83, "type": "<", "text": "<", "parent": 81, "children": [], "start_point": {"row": 32, "column": 125}, "end_point": {"row": 32, "column": 126}}, {"id": 84, "type": "identifier", "text": "jint", "parent": 81, "children": [], "start_point": {"row": 32, "column": 127}, "end_point": {"row": 32, "column": 131}}, {"id": 85, "type": ">", "text": ">", "parent": 80, "children": [], "start_point": {"row": 32, "column": 132}, "end_point": {"row": 32, "column": 133}}, {"id": 86, "type": "pointer_expression", "text": "*, JArray", "parent": 80, "children": [87, 88], "start_point": {"row": 32, "column": 134}, "end_point": {"row": 32, "column": 143}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 32, "column": 134}, "end_point": {"row": 32, "column": 135}}, {"id": 88, "type": "identifier", "text": "JArray", "parent": 86, "children": [], "start_point": {"row": 32, "column": 137}, "end_point": {"row": 32, "column": 143}}, {"id": 89, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 32, "column": 143}, "end_point": {"row": 32, "column": 144}}, {"id": 90, "type": "identifier", "text": "jint", "parent": 79, "children": [], "start_point": {"row": 32, "column": 145}, "end_point": {"row": 32, "column": 149}}, {"id": 91, "type": ">", "text": ">", "parent": 78, "children": [], "start_point": {"row": 32, "column": 150}, "end_point": {"row": 32, "column": 151}}, {"id": 92, "type": "pointer_expression", "text": "*", "parent": 78, "children": [93, 94], "start_point": {"row": 32, "column": 152}, "end_point": {"row": 32, "column": 153}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 32, "column": 152}, "end_point": {"row": 32, "column": 153}}, {"id": 94, "type": "identifier", "text": "", "parent": 92, "children": [], "start_point": {"row": 32, "column": 153}, "end_point": {"row": 32, "column": 153}}, {"id": 95, "type": "declaration", "text": "virtual void write(::java::io::DataOutputStream *);", "parent": 32, "children": [96, 97, 99], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 53}}, {"id": 96, "type": "type_identifier", "text": "virtual", "parent": 95, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 9}}, {"id": 97, "type": "ERROR", "text": "void", "parent": 95, "children": [98], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 14}}, {"id": 98, "type": "identifier", "text": "void", "parent": 97, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 14}}, {"id": 99, "type": "function_declarator", "text": "write(::java::io::DataOutputStream *)", "parent": 95, "children": [100, 101], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 52}}, {"id": 100, "type": "identifier", "text": "write", "parent": 99, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 20}}, {"id": 101, "type": "parameter_list", "text": "(::java::io::DataOutputStream *)", "parent": 99, "children": [102], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 52}}, {"id": 102, "type": "parameter_declaration", "text": "java::io::DataOutputStream *", "parent": 101, "children": [103, 104, 107], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 51}}, {"id": 103, "type": "type_identifier", "text": "java", "parent": 102, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 27}}, {"id": 104, "type": "ERROR", "text": "::io::DataOutputStream", "parent": 102, "children": [105, 106], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 49}}, {"id": 105, "type": "identifier", "text": "io", "parent": 104, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 31}}, {"id": 106, "type": "identifier", "text": "DataOutputStream", "parent": 104, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 49}}, {"id": 107, "type": "abstract_pointer_declarator", "text": "*", "parent": 102, "children": [108], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 51}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 51}}, {"id": 109, "type": "labeled_statement", "text": "private:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;", "parent": 32, "children": [110], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 75}}, {"id": 110, "type": "declaration", "text": "jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;", "parent": 109, "children": [111, 112, 127], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 75}}, {"id": 111, "type": "type_identifier", "text": "jint", "parent": 110, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 112, "type": "attribute_specifier", "text": "__attribute__((aligned(__alignof__( ::java::lang::Object))))", "parent": 110, "children": [113, 114], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 67}}, {"id": 113, "type": "__attribute__", "text": "__attribute__", "parent": 112, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 20}}, {"id": 114, "type": "argument_list", "text": "(aligned(__alignof__( ::java::lang::Object)))", "parent": 112, "children": [115], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 66}}, {"id": 115, "type": "call_expression", "text": "aligned(__alignof__( ::java::lang::Object))", "parent": 114, "children": [116, 117], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 65}}, {"id": 116, "type": "identifier", "text": "aligned", "parent": 115, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 29}}, {"id": 117, "type": "argument_list", "text": "(__alignof__( ::java::lang::Object))", "parent": 115, "children": [118], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 65}}, {"id": 118, "type": "alignof_expression", "text": "__alignof__( ::java::lang::Object)", "parent": 117, "children": [119, 120, 125], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 64}}, {"id": 119, "type": "__alignof__", "text": "__alignof__", "parent": 118, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 41}}, {"id": 120, "type": "ERROR", "text": "::java::lang::", "parent": 118, "children": [121, 123], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 57}}, {"id": 121, "type": "type_descriptor", "text": "java", "parent": 120, "children": [122], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 49}}, {"id": 122, "type": "type_identifier", "text": "java", "parent": 121, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 49}}, {"id": 123, "type": "type_descriptor", "text": "lang", "parent": 120, "children": [124], "start_point": {"row": 35, "column": 51}, "end_point": {"row": 35, "column": 55}}, {"id": 124, "type": "type_identifier", "text": "lang", "parent": 123, "children": [], "start_point": {"row": 35, "column": 51}, "end_point": {"row": 35, "column": 55}}, {"id": 125, "type": "type_descriptor", "text": "Object", "parent": 118, "children": [126], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 63}}, {"id": 126, "type": "type_identifier", "text": "Object", "parent": 125, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 63}}, {"id": 127, "type": "identifier", "text": "argCnt", "parent": 110, "children": [], "start_point": {"row": 35, "column": 68}, "end_point": {"row": 35, "column": 74}}, {"id": 128, "type": "declaration", "text": "jint slots;", "parent": 32, "children": [129, 130], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 13}}, {"id": 129, "type": "type_identifier", "text": "jint", "parent": 128, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 130, "type": "identifier", "text": "slots", "parent": 128, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 12}}, {"id": 131, "type": "binary_expression", "text": "JArray< jlong > * lineCI", "parent": 32, "children": [132, 136, 137], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 26}}, {"id": 132, "type": "binary_expression", "text": "JArray< jlong", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 15}}, {"id": 133, "type": "identifier", "text": "JArray", "parent": 132, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 134, "type": "<", "text": "<", "parent": 132, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 135, "type": "identifier", "text": "jlong", "parent": 132, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 15}}, {"id": 136, "type": ">", "text": ">", "parent": 131, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 137, "type": "pointer_expression", "text": "* lineCI", "parent": 131, "children": [138, 139], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 26}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 139, "type": "identifier", "text": "lineCI", "parent": 137, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 26}}, {"id": 140, "type": "binary_expression", "text": "JArray< jint > * slot", "parent": 32, "children": [141, 145, 146], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 23}}, {"id": 141, "type": "binary_expression", "text": "JArray< jint", "parent": 140, "children": [142, 143, 144], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 14}}, {"id": 142, "type": "identifier", "text": "JArray", "parent": 141, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 8}}, {"id": 143, "type": "<", "text": "<", "parent": 141, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 144, "type": "identifier", "text": "jint", "parent": 141, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 145, "type": ">", "text": ">", "parent": 140, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 146, "type": "pointer_expression", "text": "* slot", "parent": 140, "children": [147, 148], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 23}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 18}}, {"id": 148, "type": "identifier", "text": "slot", "parent": 146, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 23}}, {"id": 149, "type": "binary_expression", "text": "JArray< jint > * lengths", "parent": 32, "children": [150, 154, 155], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 26}}, {"id": 150, "type": "binary_expression", "text": "JArray< jint", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 14}}, {"id": 151, "type": "identifier", "text": "JArray", "parent": 150, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 8}}, {"id": 152, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 153, "type": "identifier", "text": "jint", "parent": 150, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 154, "type": ">", "text": ">", "parent": 149, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 155, "type": "pointer_expression", "text": "* lengths", "parent": 149, "children": [156, 157], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 26}}, {"id": 156, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 157, "type": "identifier", "text": "lengths", "parent": 155, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 26}}, {"id": 158, "type": "ERROR", "text": "JArray< ::java::", "parent": 32, "children": [159], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 18}}, {"id": 159, "type": "binary_expression", "text": "JArray< ::java", "parent": 158, "children": [160, 161, 162], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 16}}, {"id": 160, "type": "identifier", "text": "JArray", "parent": 159, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 8}}, {"id": 161, "type": "<", "text": "<", "parent": 159, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 162, "type": "identifier", "text": "java", "parent": 159, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 16}}, {"id": 163, "type": "binary_expression", "text": "lang::String * > * sigs", "parent": 32, "children": [164, 165, 168, 169], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 41}}, {"id": 164, "type": "identifier", "text": "lang", "parent": 163, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 22}}, {"id": 165, "type": "ERROR", "text": "::String *", "parent": 163, "children": [166, 167], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 32}}, {"id": 166, "type": "identifier", "text": "String", "parent": 165, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 30}}, {"id": 167, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 168, "type": ">", "text": ">", "parent": 163, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 34}}, {"id": 169, "type": "pointer_expression", "text": "* sigs", "parent": 163, "children": [170, 171], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 41}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 36}}, {"id": 171, "type": "identifier", "text": "sigs", "parent": 169, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 41}}, {"id": 172, "type": "ERROR", "text": "JArray< ::java::", "parent": 32, "children": [173], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 18}}, {"id": 173, "type": "binary_expression", "text": "JArray< ::java", "parent": 172, "children": [174, 175, 176], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 16}}, {"id": 174, "type": "identifier", "text": "JArray", "parent": 173, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 8}}, {"id": 175, "type": "<", "text": "<", "parent": 173, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 176, "type": "identifier", "text": "java", "parent": 173, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 16}}, {"id": 177, "type": "binary_expression", "text": "lang::String * > * names", "parent": 32, "children": [178, 179, 182, 183], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 42}}, {"id": 178, "type": "identifier", "text": "lang", "parent": 177, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 22}}, {"id": 179, "type": "ERROR", "text": "::String *", "parent": 177, "children": [180, 181], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 32}}, {"id": 180, "type": "identifier", "text": "String", "parent": 179, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 30}}, {"id": 181, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 32}}, {"id": 182, "type": ">", "text": ">", "parent": 177, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 34}}, {"id": 183, "type": "pointer_expression", "text": "* names", "parent": 177, "children": [184, 185], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 42}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 36}}, {"id": 185, "type": "identifier", "text": "names", "parent": 183, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 42}}, {"id": 186, "type": "labeled_statement", "text": "public:\n static ::java::lang::Class class$;", "parent": 32, "children": [187, 188], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 36}}, {"id": 187, "type": "ERROR", "text": ":\n static :", "parent": 186, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 43, "column": 10}}, {"id": 188, "type": "labeled_statement", "text": "java::lang::Class class$;", "parent": 186, "children": [189, 190], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 36}}, {"id": 189, "type": "statement_identifier", "text": "java", "parent": 188, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 15}}, {"id": 190, "type": "labeled_statement", "text": "lang::Class class$;", "parent": 188, "children": [191, 192], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 36}}, {"id": 191, "type": "statement_identifier", "text": "lang", "parent": 190, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 21}}, {"id": 192, "type": "declaration", "text": "Class class$;", "parent": 190, "children": [193, 194], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 36}}, {"id": 193, "type": "type_identifier", "text": "Class", "parent": 192, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 28}}, {"id": 194, "type": "identifier", "text": "class$", "parent": 192, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 35}}, {"id": 195, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 24, 27, 32, 99], "variables": [30, 95, 102, 110, 128, 192], "classes": [], "imports": [9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [43, 48, 49, 50, 55, 67, 78, 79, 80, 81, 86, 92, 115, 118, 131, 132, 137, 140, 141, 146, 149, 150, 155, 159, 163, 169, 173, 177, 183], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 19, 20, 22, 23, 25, 26, 28, 29, 31, 34, 35, 36, 37, 38, 39, 40, 41, 44, 46, 47, 51, 53, 57, 59, 61, 62, 68, 70, 72, 73, 82, 84, 88, 90, 94, 96, 98, 100, 103, 105, 106, 111, 112, 116, 122, 124, 126, 127, 129, 130, 133, 135, 139, 142, 144, 148, 151, 153, 157, 160, 162, 164, 166, 171, 174, 176, 178, 180, 185, 189, 191, 193, 194, 195], "returns": [], "exceptions": []}, "expressions": {"calls": [6], "literals": [11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "VariableTable;", "text_snippet": "namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n"}, {"node_id": 21, "universal_type": "function", "name": "VariableTable;", "text_snippet": "namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n "}, {"node_id": 24, "universal_type": "function", "name": "VariableTable;", "text_snippet": "namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n "}, {"node_id": 27, "universal_type": "function", "name": "VariableTable;", "text_snippet": "namespace util\n {\n class VariableTable;\n }"}, {"node_id": 32, "universal_type": "function", "name": "gnu::classpath::jdwp::util::VariableTable", "text_snippet": "class gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableT"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "write(::java::io::DataOutputStream *)"}], "class_declarations": [], "import_statements": [{"node_id": 9, "text": "#include <java/lang/Object.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <gcj/array.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "\n// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __gnu_classpath_jdwp_util_VariableTable__\n#define __gnu_classpath_jdwp_util_VariableTable__\n\n#pragma interface\n\n#include <java/lang/Object.h>\n#include <gcj/array.h>\n\nextern \"Java\"\n{\n namespace gnu\n {\n namespace classpath\n {\n namespace jdwp\n {\n namespace util\n {\n class VariableTable;\n }\n }\n }\n }\n}\n\nclass gnu::classpath::jdwp::util::VariableTable : public ::java::lang::Object\n{\n\npublic:\n VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);\n virtual void write(::java::io::DataOutputStream *);\nprivate:\n jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;\n jint slots;\n JArray< jlong > * lineCI;\n JArray< jint > * slot;\n JArray< jint > * lengths;\n JArray< ::java::lang::String * > * sigs;\n JArray< ::java::lang::String * > * names;\npublic:\n static ::java::lang::Class class$;\n};\n\n#endif // __gnu_classpath_jdwp_util_VariableTable__\n"}
107
c
#include<stdlib.h> #include<string.h> #include<stdio.h> #include "history.h" ll list; void init_ll() { list.head = 0; list.tail = -1; list.counter = 0; } void add_cmd(char *cmd) { list.tail++; list.tail = list.tail % MAX_CMD_SIZE; strcpy(list.cmd_list[list.tail].cmd, cmd); list.counter++; list.cmd_list[list.tail].num = list.counter; if(list.counter > MAX_CMD_SIZE) { list.head++; list.head = list.head % MAX_CMD_SIZE; } } char *get_nth_cmd(int n) { char *cmd = NULL; int i; int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE; for(i = 0; i < max; i++) { if(list.cmd_list[i].num == n) { cmd = list.cmd_list[i].cmd; break; } } return cmd; } char *get_last_cmd() { char *cmd = NULL; if(list.counter > 0) { cmd = list.cmd_list[list.tail].cmd; } return cmd; } void display_all_cmd() { int i; if (list.head < list.tail) { for (i = list.head; i <= list.tail; i++) { printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd); } } else if (list.head > list.tail) { for (i = list.head; i < MAX_CMD_SIZE; i++) { printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd); } for (i = 0; i <= list.tail; i++) { printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd); } } else { printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd); } }
22.46
63
(translation_unit) "#include<stdlib.h>\n#include<string.h>\n#include<stdio.h>\n#include "history.h"\n\nll list; \n\nvoid init_ll()\n{\n list.head = 0;\n list.tail = -1;\n list.counter = 0;\n}\n\n\nvoid add_cmd(char *cmd)\n{\n list.tail++;\n list.tail = list.tail % MAX_CMD_SIZE;\n strcpy(list.cmd_list[list.tail].cmd, cmd);\n list.counter++;\n list.cmd_list[list.tail].num = list.counter;\n if(list.counter > MAX_CMD_SIZE) {\n list.head++;\n list.head = list.head % MAX_CMD_SIZE;\n }\n}\n\nchar *get_nth_cmd(int n)\n{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;\n for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }\n return cmd;\n}\n\nchar *get_last_cmd()\n{\n char *cmd = NULL;\n if(list.counter > 0) {\n cmd = list.cmd_list[list.tail].cmd;\n }\n return cmd;\n}\nvoid display_all_cmd()\n{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }\n}\n" (preproc_include) "#include<stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include<string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "history.h"\n" (#include) "#include" (string_literal) ""history.h"" (") """ (string_content) "history.h" (") """ (declaration) "ll list;" (type_identifier) "ll" (identifier) "list" (;) ";" (function_definition) "void init_ll()\n{\n list.head = 0;\n list.tail = -1;\n list.counter = 0;\n}" (primitive_type) "void" (function_declarator) "init_ll()" (identifier) "init_ll" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n list.head = 0;\n list.tail = -1;\n list.counter = 0;\n}" ({) "{" (expression_statement) "list.head = 0;" (assignment_expression) "list.head = 0" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "list.tail = -1;" (assignment_expression) "list.tail = -1" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (=) "=" (number_literal) "-1" (;) ";" (expression_statement) "list.counter = 0;" (assignment_expression) "list.counter = 0" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (=) "=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void add_cmd(char *cmd)\n{\n list.tail++;\n list.tail = list.tail % MAX_CMD_SIZE;\n strcpy(list.cmd_list[list.tail].cmd, cmd);\n list.counter++;\n list.cmd_list[list.tail].num = list.counter;\n if(list.counter > MAX_CMD_SIZE) {\n list.head++;\n list.head = list.head % MAX_CMD_SIZE;\n }\n}" (primitive_type) "void" (function_declarator) "add_cmd(char *cmd)" (identifier) "add_cmd" (parameter_list) "(char *cmd)" (() "(" (parameter_declaration) "char *cmd" (primitive_type) "char" (pointer_declarator) "*cmd" (*) "*" (identifier) "cmd" ()) ")" (compound_statement) "{\n list.tail++;\n list.tail = list.tail % MAX_CMD_SIZE;\n strcpy(list.cmd_list[list.tail].cmd, cmd);\n list.counter++;\n list.cmd_list[list.tail].num = list.counter;\n if(list.counter > MAX_CMD_SIZE) {\n list.head++;\n list.head = list.head % MAX_CMD_SIZE;\n }\n}" ({) "{" (expression_statement) "list.tail++;" (update_expression) "list.tail++" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (++) "++" (;) ";" (expression_statement) "list.tail = list.tail % MAX_CMD_SIZE;" (assignment_expression) "list.tail = list.tail % MAX_CMD_SIZE" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (=) "=" (binary_expression) "list.tail % MAX_CMD_SIZE" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (%) "%" (identifier) "MAX_CMD_SIZE" (;) ";" (expression_statement) "strcpy(list.cmd_list[list.tail].cmd, cmd);" (call_expression) "strcpy(list.cmd_list[list.tail].cmd, cmd)" (identifier) "strcpy" (argument_list) "(list.cmd_list[list.tail].cmd, cmd)" (() "(" (field_expression) "list.cmd_list[list.tail].cmd" (subscript_expression) "list.cmd_list[list.tail]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (]) "]" (.) "." (field_identifier) "cmd" (,) "," (identifier) "cmd" ()) ")" (;) ";" (expression_statement) "list.counter++;" (update_expression) "list.counter++" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (++) "++" (;) ";" (expression_statement) "list.cmd_list[list.tail].num = list.counter;" (assignment_expression) "list.cmd_list[list.tail].num = list.counter" (field_expression) "list.cmd_list[list.tail].num" (subscript_expression) "list.cmd_list[list.tail]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (]) "]" (.) "." (field_identifier) "num" (=) "=" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (;) ";" (if_statement) "if(list.counter > MAX_CMD_SIZE) {\n list.head++;\n list.head = list.head % MAX_CMD_SIZE;\n }" (if) "if" (parenthesized_expression) "(list.counter > MAX_CMD_SIZE)" (() "(" (binary_expression) "list.counter > MAX_CMD_SIZE" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (>) ">" (identifier) "MAX_CMD_SIZE" ()) ")" (compound_statement) "{\n list.head++;\n list.head = list.head % MAX_CMD_SIZE;\n }" ({) "{" (expression_statement) "list.head++;" (update_expression) "list.head++" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (++) "++" (;) ";" (expression_statement) "list.head = list.head % MAX_CMD_SIZE;" (assignment_expression) "list.head = list.head % MAX_CMD_SIZE" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (=) "=" (binary_expression) "list.head % MAX_CMD_SIZE" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (%) "%" (identifier) "MAX_CMD_SIZE" (;) ";" (}) "}" (}) "}" (function_definition) "char *get_nth_cmd(int n)\n{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;\n for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }\n return cmd;\n}" (primitive_type) "char" (pointer_declarator) "*get_nth_cmd(int n)" (*) "*" (function_declarator) "get_nth_cmd(int n)" (identifier) "get_nth_cmd" (parameter_list) "(int n)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (compound_statement) "{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;\n for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }\n return cmd;\n}" ({) "{" (declaration) "char *cmd = NULL;" (primitive_type) "char" (init_declarator) "*cmd = NULL" (pointer_declarator) "*cmd" (*) "*" (identifier) "cmd" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;" (primitive_type) "int" (init_declarator) "max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE" (identifier) "max" (=) "=" (conditional_expression) "list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE" (binary_expression) "list.counter < MAX_CMD_SIZE" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (<) "<" (identifier) "MAX_CMD_SIZE" (?) "?" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (:) ":" (identifier) "MAX_CMD_SIZE" (;) ";" (for_statement) "for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < max" (identifier) "i" (<) "<" (identifier) "max" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }" ({) "{" (if_statement) "if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }" (if) "if" (parenthesized_expression) "(list.cmd_list[i].num == n)" (() "(" (binary_expression) "list.cmd_list[i].num == n" (field_expression) "list.cmd_list[i].num" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "num" (==) "==" (identifier) "n" ()) ")" (compound_statement) "{\n cmd = list.cmd_list[i].cmd;\n break;\n }" ({) "{" (expression_statement) "cmd = list.cmd_list[i].cmd;" (assignment_expression) "cmd = list.cmd_list[i].cmd" (identifier) "cmd" (=) "=" (field_expression) "list.cmd_list[i].cmd" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "cmd" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (return_statement) "return cmd;" (return) "return" (identifier) "cmd" (;) ";" (}) "}" (function_definition) "char *get_last_cmd()\n{\n char *cmd = NULL;\n if(list.counter > 0) {\n cmd = list.cmd_list[list.tail].cmd;\n }\n return cmd;\n}" (primitive_type) "char" (pointer_declarator) "*get_last_cmd()" (*) "*" (function_declarator) "get_last_cmd()" (identifier) "get_last_cmd" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char *cmd = NULL;\n if(list.counter > 0) {\n cmd = list.cmd_list[list.tail].cmd;\n }\n return cmd;\n}" ({) "{" (declaration) "char *cmd = NULL;" (primitive_type) "char" (init_declarator) "*cmd = NULL" (pointer_declarator) "*cmd" (*) "*" (identifier) "cmd" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if(list.counter > 0) {\n cmd = list.cmd_list[list.tail].cmd;\n }" (if) "if" (parenthesized_expression) "(list.counter > 0)" (() "(" (binary_expression) "list.counter > 0" (field_expression) "list.counter" (identifier) "list" (.) "." (field_identifier) "counter" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n cmd = list.cmd_list[list.tail].cmd;\n }" ({) "{" (expression_statement) "cmd = list.cmd_list[list.tail].cmd;" (assignment_expression) "cmd = list.cmd_list[list.tail].cmd" (identifier) "cmd" (=) "=" (field_expression) "list.cmd_list[list.tail].cmd" (subscript_expression) "list.cmd_list[list.tail]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (]) "]" (.) "." (field_identifier) "cmd" (;) ";" (}) "}" (return_statement) "return cmd;" (return) "return" (identifier) "cmd" (;) ";" (}) "}" (function_definition) "void display_all_cmd()\n{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }\n}" (primitive_type) "void" (function_declarator) "display_all_cmd()" (identifier) "display_all_cmd" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (if_statement) "if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }" (if) "if" (parenthesized_expression) "(list.head < list.tail)" (() "(" (binary_expression) "list.head < list.tail" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (<) "<" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" ()) ")" (compound_statement) "{\n for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n }" ({) "{" (for_statement) "for (i = list.head; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" (for) "for" (() "(" (assignment_expression) "i = list.head" (identifier) "i" (=) "=" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (;) ";" (binary_expression) "i <= list.tail" (identifier) "i" (<=) "<=" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" ({) "{" (expression_statement) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);" (call_expression) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (identifier) "printf" (argument_list) "("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (() "(" (string_literal) ""%d %s"" (") """ (string_content) "%d %s" (") """ (,) "," (field_expression) "list.cmd_list[i].num" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "num" (,) "," (field_expression) "list.cmd_list[i].cmd" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "cmd" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }" (else) "else" (if_statement) "if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }" (if) "if" (parenthesized_expression) "(list.head > list.tail)" (() "(" (binary_expression) "list.head > list.tail" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (>) ">" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" ()) ")" (compound_statement) "{\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n }" ({) "{" (for_statement) "for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" (for) "for" (() "(" (assignment_expression) "i = list.head" (identifier) "i" (=) "=" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (;) ";" (binary_expression) "i < MAX_CMD_SIZE" (identifier) "i" (<) "<" (identifier) "MAX_CMD_SIZE" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" ({) "{" (expression_statement) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);" (call_expression) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (identifier) "printf" (argument_list) "("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (() "(" (string_literal) ""%d %s"" (") """ (string_content) "%d %s" (") """ (,) "," (field_expression) "list.cmd_list[i].num" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "num" (,) "," (field_expression) "list.cmd_list[i].cmd" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "cmd" ()) ")" (;) ";" (}) "}" (for_statement) "for (i = 0; i <= list.tail; i++) {\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i <= list.tail" (identifier) "i" (<=) "<=" (field_expression) "list.tail" (identifier) "list" (.) "." (field_identifier) "tail" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }" ({) "{" (expression_statement) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd);" (call_expression) "printf("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (identifier) "printf" (argument_list) "("%d %s", list.cmd_list[i].num, list.cmd_list[i].cmd)" (() "(" (string_literal) ""%d %s"" (") """ (string_content) "%d %s" (") """ (,) "," (field_expression) "list.cmd_list[i].num" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "num" (,) "," (field_expression) "list.cmd_list[i].cmd" (subscript_expression) "list.cmd_list[i]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "cmd" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }" (else) "else" (compound_statement) "{\n printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }" ({) "{" (expression_statement) "printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);" (call_expression) "printf("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd)" (identifier) "printf" (argument_list) "("%d %s", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd)" (() "(" (string_literal) ""%d %s"" (") """ (string_content) "%d %s" (") """ (,) "," (field_expression) "list.cmd_list[list.head].num" (subscript_expression) "list.cmd_list[list.head]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (]) "]" (.) "." (field_identifier) "num" (,) "," (field_expression) "list.cmd_list[list.head].cmd" (subscript_expression) "list.cmd_list[list.head]" (field_expression) "list.cmd_list" (identifier) "list" (.) "." (field_identifier) "cmd_list" ([) "[" (field_expression) "list.head" (identifier) "list" (.) "." (field_identifier) "head" (]) "]" (.) "." (field_identifier) "cmd" ()) ")" (;) ";" (}) "}" (}) "}"
636
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 22.46, "nodes": 385, "errors": 0, "source_hash": "4c3c3c5f34421201bdd177d5abe0680fafb55a24ff6ca2a863a1105637d21952", "categorized_nodes": 307}, "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": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include<string.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include<stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"history.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": "\"history.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 12, "type": "declaration", "text": "ll list;", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 13, "type": "type_identifier", "text": "ll", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 2}}, {"id": 14, "type": "identifier", "text": "list", "parent": 12, "children": [], "start_point": {"row": 5, "column": 3}, "end_point": {"row": 5, "column": 7}}, {"id": 15, "type": "function_definition", "text": "void init_ll()\n{\n\tlist.head = 0;\n\tlist.tail = -1;\n\tlist.counter = 0;\n}", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "init_ll()", "parent": 15, "children": [18, 19], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 14}}, {"id": 18, "type": "identifier", "text": "init_ll", "parent": 17, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 12}}, {"id": 19, "type": "parameter_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 14}}, {"id": 20, "type": "assignment_expression", "text": "list.head = 0", "parent": 15, "children": [21, 24, 25], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 14}}, {"id": 21, "type": "field_expression", "text": "list.head", "parent": 20, "children": [22, 23], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 22, "type": "identifier", "text": "list", "parent": 21, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 23, "type": "field_identifier", "text": "head", "parent": 21, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 10}}, {"id": 24, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 25, "type": "number_literal", "text": "0", "parent": 20, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 14}}, {"id": 26, "type": "assignment_expression", "text": "list.tail = -1", "parent": 15, "children": [27, 30, 31], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 15}}, {"id": 27, "type": "field_expression", "text": "list.tail", "parent": 26, "children": [28, 29], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 28, "type": "identifier", "text": "list", "parent": 27, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 29, "type": "field_identifier", "text": "tail", "parent": 27, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 10}}, {"id": 30, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 31, "type": "number_literal", "text": "-1", "parent": 26, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 15}}, {"id": 32, "type": "assignment_expression", "text": "list.counter = 0", "parent": 15, "children": [33, 36, 37], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 17}}, {"id": 33, "type": "field_expression", "text": "list.counter", "parent": 32, "children": [34, 35], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 13}}, {"id": 34, "type": "identifier", "text": "list", "parent": 33, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 5}}, {"id": 35, "type": "field_identifier", "text": "counter", "parent": 33, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 13}}, {"id": 36, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 37, "type": "number_literal", "text": "0", "parent": 32, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 38, "type": "function_definition", "text": "void add_cmd(char *cmd)\n{\n\tlist.tail++;\n\tlist.tail = list.tail % MAX_CMD_SIZE;\n\tstrcpy(list.cmd_list[list.tail].cmd, cmd);\n\tlist.counter++;\n\tlist.cmd_list[list.tail].num = list.counter;\n\tif(list.counter > MAX_CMD_SIZE) {\n\t\tlist.head++;\n\t\tlist.head = list.head % MAX_CMD_SIZE;\n\t}\n}", "parent": null, "children": [39, 40], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 40, "type": "function_declarator", "text": "add_cmd(char *cmd)", "parent": 38, "children": [41, 42], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 23}}, {"id": 41, "type": "identifier", "text": "add_cmd", "parent": 40, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 12}}, {"id": 42, "type": "parameter_list", "text": "(char *cmd)", "parent": 40, "children": [43], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 23}}, {"id": 43, "type": "parameter_declaration", "text": "char *cmd", "parent": 42, "children": [44, 45], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 22}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 17}}, {"id": 45, "type": "pointer_declarator", "text": "*cmd", "parent": 43, "children": [46, 47], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 22}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 47, "type": "identifier", "text": "cmd", "parent": 45, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 22}}, {"id": 48, "type": "update_expression", "text": "list.tail++", "parent": 38, "children": [49, 52], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 12}}, {"id": 49, "type": "field_expression", "text": "list.tail", "parent": 48, "children": [50, 51], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 10}}, {"id": 50, "type": "identifier", "text": "list", "parent": 49, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 5}}, {"id": 51, "type": "field_identifier", "text": "tail", "parent": 49, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 10}}, {"id": 52, "type": "++", "text": "++", "parent": 48, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 12}}, {"id": 53, "type": "assignment_expression", "text": "list.tail = list.tail % MAX_CMD_SIZE", "parent": 38, "children": [54, 57, 58], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 37}}, {"id": 54, "type": "field_expression", "text": "list.tail", "parent": 53, "children": [55, 56], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 55, "type": "identifier", "text": "list", "parent": 54, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 56, "type": "field_identifier", "text": "tail", "parent": 54, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 10}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 58, "type": "binary_expression", "text": "list.tail % MAX_CMD_SIZE", "parent": 53, "children": [59, 62, 63], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 37}}, {"id": 59, "type": "field_expression", "text": "list.tail", "parent": 58, "children": [60, 61], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 22}}, {"id": 60, "type": "identifier", "text": "list", "parent": 59, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 61, "type": "field_identifier", "text": "tail", "parent": 59, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 22}}, {"id": 62, "type": "%", "text": "%", "parent": 58, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 24}}, {"id": 63, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 58, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 37}}, {"id": 64, "type": "call_expression", "text": "strcpy(list.cmd_list[list.tail].cmd, cmd)", "parent": 38, "children": [65, 66], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 42}}, {"id": 65, "type": "identifier", "text": "strcpy", "parent": 64, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 66, "type": "argument_list", "text": "(list.cmd_list[list.tail].cmd, cmd)", "parent": 64, "children": [67, 76], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 42}}, {"id": 67, "type": "field_expression", "text": "list.cmd_list[list.tail].cmd", "parent": 66, "children": [68, 75], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 36}}, {"id": 68, "type": "subscript_expression", "text": "list.cmd_list[list.tail]", "parent": 67, "children": [69, 72], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 32}}, {"id": 69, "type": "field_expression", "text": "list.cmd_list", "parent": 68, "children": [70, 71], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 21}}, {"id": 70, "type": "identifier", "text": "list", "parent": 69, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 12}}, {"id": 71, "type": "field_identifier", "text": "cmd_list", "parent": 69, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 21}}, {"id": 72, "type": "field_expression", "text": "list.tail", "parent": 68, "children": [73, 74], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 31}}, {"id": 73, "type": "identifier", "text": "list", "parent": 72, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 26}}, {"id": 74, "type": "field_identifier", "text": "tail", "parent": 72, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 31}}, {"id": 75, "type": "field_identifier", "text": "cmd", "parent": 67, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 36}}, {"id": 76, "type": "identifier", "text": "cmd", "parent": 66, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 41}}, {"id": 77, "type": "update_expression", "text": "list.counter++", "parent": 38, "children": [78, 81], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 15}}, {"id": 78, "type": "field_expression", "text": "list.counter", "parent": 77, "children": [79, 80], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 13}}, {"id": 79, "type": "identifier", "text": "list", "parent": 78, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 80, "type": "field_identifier", "text": "counter", "parent": 78, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 13}}, {"id": 81, "type": "++", "text": "++", "parent": 77, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 15}}, {"id": 82, "type": "assignment_expression", "text": "list.cmd_list[list.tail].num = list.counter", "parent": 38, "children": [83, 92, 93], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 44}}, {"id": 83, "type": "field_expression", "text": "list.cmd_list[list.tail].num", "parent": 82, "children": [84, 91], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 29}}, {"id": 84, "type": "subscript_expression", "text": "list.cmd_list[list.tail]", "parent": 83, "children": [85, 88], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 25}}, {"id": 85, "type": "field_expression", "text": "list.cmd_list", "parent": 84, "children": [86, 87], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 14}}, {"id": 86, "type": "identifier", "text": "list", "parent": 85, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 5}}, {"id": 87, "type": "field_identifier", "text": "cmd_list", "parent": 85, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 14}}, {"id": 88, "type": "field_expression", "text": "list.tail", "parent": 84, "children": [89, 90], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 24}}, {"id": 89, "type": "identifier", "text": "list", "parent": 88, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 19}}, {"id": 90, "type": "field_identifier", "text": "tail", "parent": 88, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 24}}, {"id": 91, "type": "field_identifier", "text": "num", "parent": 83, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 29}}, {"id": 92, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 31}}, {"id": 93, "type": "field_expression", "text": "list.counter", "parent": 82, "children": [94, 95], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 44}}, {"id": 94, "type": "identifier", "text": "list", "parent": 93, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 36}}, {"id": 95, "type": "field_identifier", "text": "counter", "parent": 93, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 44}}, {"id": 96, "type": "if_statement", "text": "if(list.counter > MAX_CMD_SIZE) {\n\t\tlist.head++;\n\t\tlist.head = list.head % MAX_CMD_SIZE;\n\t}", "parent": 38, "children": [97], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 25, "column": 2}}, {"id": 97, "type": "parenthesized_expression", "text": "(list.counter > MAX_CMD_SIZE)", "parent": 96, "children": [98], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 32}}, {"id": 98, "type": "binary_expression", "text": "list.counter > MAX_CMD_SIZE", "parent": 97, "children": [99, 102, 103], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 31}}, {"id": 99, "type": "field_expression", "text": "list.counter", "parent": 98, "children": [100, 101], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 100, "type": "identifier", "text": "list", "parent": 99, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 101, "type": "field_identifier", "text": "counter", "parent": 99, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 102, "type": ">", "text": ">", "parent": 98, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 18}}, {"id": 103, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 98, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 31}}, {"id": 104, "type": "update_expression", "text": "list.head++", "parent": 96, "children": [105, 108], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 105, "type": "field_expression", "text": "list.head", "parent": 104, "children": [106, 107], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 11}}, {"id": 106, "type": "identifier", "text": "list", "parent": 105, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 107, "type": "field_identifier", "text": "head", "parent": 105, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 108, "type": "++", "text": "++", "parent": 104, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 109, "type": "assignment_expression", "text": "list.head = list.head % MAX_CMD_SIZE", "parent": 96, "children": [110, 113, 114], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 38}}, {"id": 110, "type": "field_expression", "text": "list.head", "parent": 109, "children": [111, 112], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 11}}, {"id": 111, "type": "identifier", "text": "list", "parent": 110, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 112, "type": "field_identifier", "text": "head", "parent": 110, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 11}}, {"id": 113, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 114, "type": "binary_expression", "text": "list.head % MAX_CMD_SIZE", "parent": 109, "children": [115, 118, 119], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 38}}, {"id": 115, "type": "field_expression", "text": "list.head", "parent": 114, "children": [116, 117], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 23}}, {"id": 116, "type": "identifier", "text": "list", "parent": 115, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 117, "type": "field_identifier", "text": "head", "parent": 115, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 23}}, {"id": 118, "type": "%", "text": "%", "parent": 114, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 25}}, {"id": 119, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 114, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 38}}, {"id": 120, "type": "function_definition", "text": "char *get_nth_cmd(int n)\n{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;\n for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }\n return cmd;\n}", "parent": null, "children": [121, 122], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 121, "type": "primitive_type", "text": "char", "parent": 120, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 4}}, {"id": 122, "type": "pointer_declarator", "text": "*get_nth_cmd(int n)", "parent": 120, "children": [123, 124], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 24}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 6}}, {"id": 124, "type": "function_declarator", "text": "get_nth_cmd(int n)", "parent": 122, "children": [125, 126], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 24}}, {"id": 125, "type": "identifier", "text": "get_nth_cmd", "parent": 124, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 17}}, {"id": 126, "type": "parameter_list", "text": "(int n)", "parent": 124, "children": [127], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 24}}, {"id": 127, "type": "parameter_declaration", "text": "int n", "parent": 126, "children": [128, 129], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 23}}, {"id": 128, "type": "primitive_type", "text": "int", "parent": 127, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 21}}, {"id": 129, "type": "identifier", "text": "n", "parent": 127, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 130, "type": "declaration", "text": "char *cmd = NULL;", "parent": 120, "children": [131, 132], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 21}}, {"id": 131, "type": "primitive_type", "text": "char", "parent": 130, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 132, "type": "init_declarator", "text": "*cmd = NULL", "parent": 130, "children": [133, 136, 137], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 20}}, {"id": 133, "type": "pointer_declarator", "text": "*cmd", "parent": 132, "children": [134, 135], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 13}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 135, "type": "identifier", "text": "cmd", "parent": 133, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 136, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 15}}, {"id": 137, "type": "null", "text": "NULL", "parent": 132, "children": [138], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 138, "type": "NULL", "text": "NULL", "parent": 137, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 139, "type": "declaration", "text": "int i;", "parent": 120, "children": [140, 141], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 140, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 7}}, {"id": 141, "type": "identifier", "text": "i", "parent": 139, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 142, "type": "declaration", "text": "int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;", "parent": 120, "children": [143, 144], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 72}}, {"id": 143, "type": "primitive_type", "text": "int", "parent": 142, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 7}}, {"id": 144, "type": "init_declarator", "text": "max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE", "parent": 142, "children": [145, 146, 147], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 71}}, {"id": 145, "type": "identifier", "text": "max", "parent": 144, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 147, "type": "conditional_expression", "text": "list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE", "parent": 144, "children": [148, 154, 155, 158], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 71}}, {"id": 148, "type": "binary_expression", "text": "list.counter < MAX_CMD_SIZE", "parent": 147, "children": [149, 152, 153], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 41}}, {"id": 149, "type": "field_expression", "text": "list.counter", "parent": 148, "children": [150, 151], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 26}}, {"id": 150, "type": "identifier", "text": "list", "parent": 149, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 18}}, {"id": 151, "type": "field_identifier", "text": "counter", "parent": 149, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 26}}, {"id": 152, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 28}}, {"id": 153, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 148, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 41}}, {"id": 154, "type": "?", "text": "?", "parent": 147, "children": [], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 32, "column": 43}}, {"id": 155, "type": "field_expression", "text": "list.counter", "parent": 147, "children": [156, 157], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 56}}, {"id": 156, "type": "identifier", "text": "list", "parent": 155, "children": [], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 48}}, {"id": 157, "type": "field_identifier", "text": "counter", "parent": 155, "children": [], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 56}}, {"id": 158, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 147, "children": [], "start_point": {"row": 32, "column": 59}, "end_point": {"row": 32, "column": 71}}, {"id": 159, "type": "for_statement", "text": "for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }", "parent": 120, "children": [160, 164, 168], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 38, "column": 5}}, {"id": 160, "type": "assignment_expression", "text": "i = 0", "parent": 159, "children": [161, 162, 163], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 13}}, {"id": 161, "type": "identifier", "text": "i", "parent": 160, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 162, "type": "=", "text": "=", "parent": 160, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 11}}, {"id": 163, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 164, "type": "binary_expression", "text": "i < max", "parent": 159, "children": [165, 166, 167], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 22}}, {"id": 165, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 16}}, {"id": 166, "type": "<", "text": "<", "parent": 164, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 167, "type": "identifier", "text": "max", "parent": 164, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 22}}, {"id": 168, "type": "update_expression", "text": "i++", "parent": 159, "children": [169, 170], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 27}}, {"id": 169, "type": "identifier", "text": "i", "parent": 168, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 25}}, {"id": 170, "type": "++", "text": "++", "parent": 168, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 27}}, {"id": 171, "type": "if_statement", "text": "if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }", "parent": 159, "children": [172], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 172, "type": "parenthesized_expression", "text": "(list.cmd_list[i].num == n)", "parent": 171, "children": [173], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 37}}, {"id": 173, "type": "binary_expression", "text": "list.cmd_list[i].num == n", "parent": 172, "children": [174, 181, 182], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 36}}, {"id": 174, "type": "field_expression", "text": "list.cmd_list[i].num", "parent": 173, "children": [175, 180], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 31}}, {"id": 175, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 174, "children": [176, 179], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 27}}, {"id": 176, "type": "field_expression", "text": "list.cmd_list", "parent": 175, "children": [177, 178], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 24}}, {"id": 177, "type": "identifier", "text": "list", "parent": 176, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 178, "type": "field_identifier", "text": "cmd_list", "parent": 176, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 24}}, {"id": 179, "type": "identifier", "text": "i", "parent": 175, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 180, "type": "field_identifier", "text": "num", "parent": 174, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 31}}, {"id": 181, "type": "==", "text": "==", "parent": 173, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 34}}, {"id": 182, "type": "identifier", "text": "n", "parent": 173, "children": [], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 36}}, {"id": 183, "type": "assignment_expression", "text": "cmd = list.cmd_list[i].cmd", "parent": 171, "children": [184, 185, 186], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 42}}, {"id": 184, "type": "identifier", "text": "cmd", "parent": 183, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 19}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 186, "type": "field_expression", "text": "list.cmd_list[i].cmd", "parent": 183, "children": [187, 192], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 42}}, {"id": 187, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 186, "children": [188, 191], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 38}}, {"id": 188, "type": "field_expression", "text": "list.cmd_list", "parent": 187, "children": [189, 190], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 35}}, {"id": 189, "type": "identifier", "text": "list", "parent": 188, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 26}}, {"id": 190, "type": "field_identifier", "text": "cmd_list", "parent": 188, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 35}}, {"id": 191, "type": "identifier", "text": "i", "parent": 187, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 37}}, {"id": 192, "type": "field_identifier", "text": "cmd", "parent": 186, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 42}}, {"id": 193, "type": "break_statement", "text": "break;", "parent": 171, "children": [194], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 22}}, {"id": 194, "type": "break", "text": "break", "parent": 193, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 21}}, {"id": 195, "type": "return_statement", "text": "return cmd;", "parent": 120, "children": [196], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 15}}, {"id": 196, "type": "identifier", "text": "cmd", "parent": 195, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 14}}, {"id": 197, "type": "function_definition", "text": "char *get_last_cmd()\n{\n\tchar *cmd = NULL;\n\tif(list.counter > 0) {\n\t\tcmd = list.cmd_list[list.tail].cmd;\n\t}\n\treturn cmd;\n}", "parent": null, "children": [198, 199], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 198, "type": "primitive_type", "text": "char", "parent": 197, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 199, "type": "pointer_declarator", "text": "*get_last_cmd()", "parent": 197, "children": [200, 201], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 20}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 6}}, {"id": 201, "type": "function_declarator", "text": "get_last_cmd()", "parent": 199, "children": [202, 203], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 20}}, {"id": 202, "type": "identifier", "text": "get_last_cmd", "parent": 201, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 18}}, {"id": 203, "type": "parameter_list", "text": "()", "parent": 201, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 20}}, {"id": 204, "type": "declaration", "text": "char *cmd = NULL;", "parent": 197, "children": [205, 206], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 18}}, {"id": 205, "type": "primitive_type", "text": "char", "parent": 204, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 5}}, {"id": 206, "type": "init_declarator", "text": "*cmd = NULL", "parent": 204, "children": [207, 210, 211], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 17}}, {"id": 207, "type": "pointer_declarator", "text": "*cmd", "parent": 206, "children": [208, 209], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 10}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 7}}, {"id": 209, "type": "identifier", "text": "cmd", "parent": 207, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 10}}, {"id": 210, "type": "=", "text": "=", "parent": 206, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 211, "type": "null", "text": "NULL", "parent": 206, "children": [212], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 17}}, {"id": 212, "type": "NULL", "text": "NULL", "parent": 211, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 17}}, {"id": 213, "type": "if_statement", "text": "if(list.counter > 0) {\n\t\tcmd = list.cmd_list[list.tail].cmd;\n\t}", "parent": 197, "children": [214], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 47, "column": 2}}, {"id": 214, "type": "parenthesized_expression", "text": "(list.counter > 0)", "parent": 213, "children": [215], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 21}}, {"id": 215, "type": "binary_expression", "text": "list.counter > 0", "parent": 214, "children": [216, 219, 220], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 20}}, {"id": 216, "type": "field_expression", "text": "list.counter", "parent": 215, "children": [217, 218], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 16}}, {"id": 217, "type": "identifier", "text": "list", "parent": 216, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 218, "type": "field_identifier", "text": "counter", "parent": 216, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 16}}, {"id": 219, "type": ">", "text": ">", "parent": 215, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 220, "type": "number_literal", "text": "0", "parent": 215, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 221, "type": "assignment_expression", "text": "cmd = list.cmd_list[list.tail].cmd", "parent": 213, "children": [222, 223, 224], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 36}}, {"id": 222, "type": "identifier", "text": "cmd", "parent": 221, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 5}}, {"id": 223, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 224, "type": "field_expression", "text": "list.cmd_list[list.tail].cmd", "parent": 221, "children": [225, 232], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 36}}, {"id": 225, "type": "subscript_expression", "text": "list.cmd_list[list.tail]", "parent": 224, "children": [226, 229], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 32}}, {"id": 226, "type": "field_expression", "text": "list.cmd_list", "parent": 225, "children": [227, 228], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 21}}, {"id": 227, "type": "identifier", "text": "list", "parent": 226, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 12}}, {"id": 228, "type": "field_identifier", "text": "cmd_list", "parent": 226, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 21}}, {"id": 229, "type": "field_expression", "text": "list.tail", "parent": 225, "children": [230, 231], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 31}}, {"id": 230, "type": "identifier", "text": "list", "parent": 229, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 26}}, {"id": 231, "type": "field_identifier", "text": "tail", "parent": 229, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 31}}, {"id": 232, "type": "field_identifier", "text": "cmd", "parent": 224, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 36}}, {"id": 233, "type": "return_statement", "text": "return cmd;", "parent": 197, "children": [234], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 12}}, {"id": 234, "type": "identifier", "text": "cmd", "parent": 233, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 11}}, {"id": 235, "type": "function_definition", "text": "void display_all_cmd()\n{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }\n}", "parent": null, "children": [236, 237], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 236, "type": "primitive_type", "text": "void", "parent": 235, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 4}}, {"id": 237, "type": "function_declarator", "text": "display_all_cmd()", "parent": 235, "children": [238, 239], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 22}}, {"id": 238, "type": "identifier", "text": "display_all_cmd", "parent": 237, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 20}}, {"id": 239, "type": "parameter_list", "text": "()", "parent": 237, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 22}}, {"id": 240, "type": "declaration", "text": "int i;", "parent": 235, "children": [241, 242], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 242, "type": "identifier", "text": "i", "parent": 240, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 243, "type": "if_statement", "text": "if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }", "parent": 235, "children": [244, 287], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 244, "type": "parenthesized_expression", "text": "(list.head < list.tail)", "parent": 243, "children": [245], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 30}}, {"id": 245, "type": "binary_expression", "text": "list.head < list.tail", "parent": 244, "children": [246, 249, 250], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 29}}, {"id": 246, "type": "field_expression", "text": "list.head", "parent": 245, "children": [247, 248], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 17}}, {"id": 247, "type": "identifier", "text": "list", "parent": 246, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 12}}, {"id": 248, "type": "field_identifier", "text": "head", "parent": 246, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 17}}, {"id": 249, "type": "<", "text": "<", "parent": 245, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 250, "type": "field_expression", "text": "list.tail", "parent": 245, "children": [251, 252], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 29}}, {"id": 251, "type": "identifier", "text": "list", "parent": 250, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 24}}, {"id": 252, "type": "field_identifier", "text": "tail", "parent": 250, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 29}}, {"id": 253, "type": "for_statement", "text": "for (i = list.head; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }", "parent": 243, "children": [254, 260, 266], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 56, "column": 9}}, {"id": 254, "type": "assignment_expression", "text": "i = list.head", "parent": 253, "children": [255, 256, 257], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 26}}, {"id": 255, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 14}}, {"id": 256, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 16}}, {"id": 257, "type": "field_expression", "text": "list.head", "parent": 254, "children": [258, 259], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 26}}, {"id": 258, "type": "identifier", "text": "list", "parent": 257, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 21}}, {"id": 259, "type": "field_identifier", "text": "head", "parent": 257, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 26}}, {"id": 260, "type": "binary_expression", "text": "i <= list.tail", "parent": 253, "children": [261, 262, 263], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 42}}, {"id": 261, "type": "identifier", "text": "i", "parent": 260, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 29}}, {"id": 262, "type": "<=", "text": "<=", "parent": 260, "children": [], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 32}}, {"id": 263, "type": "field_expression", "text": "list.tail", "parent": 260, "children": [264, 265], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 42}}, {"id": 264, "type": "identifier", "text": "list", "parent": 263, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 37}}, {"id": 265, "type": "field_identifier", "text": "tail", "parent": 263, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 42}}, {"id": 266, "type": "update_expression", "text": "i++", "parent": 253, "children": [267, 268], "start_point": {"row": 54, "column": 44}, "end_point": {"row": 54, "column": 47}}, {"id": 267, "type": "identifier", "text": "i", "parent": 266, "children": [], "start_point": {"row": 54, "column": 44}, "end_point": {"row": 54, "column": 45}}, {"id": 268, "type": "++", "text": "++", "parent": 266, "children": [], "start_point": {"row": 54, "column": 45}, "end_point": {"row": 54, "column": 47}}, {"id": 269, "type": "call_expression", "text": "printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 253, "children": [270, 271], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 71}}, {"id": 270, "type": "identifier", "text": "printf", "parent": 269, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 18}}, {"id": 271, "type": "argument_list", "text": "(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 269, "children": [272, 273, 280], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 71}}, {"id": 272, "type": "string_literal", "text": "\"%d %s\"", "parent": 271, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 26}}, {"id": 273, "type": "field_expression", "text": "list.cmd_list[i].num", "parent": 271, "children": [274, 279], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 48}}, {"id": 274, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 273, "children": [275, 278], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 44}}, {"id": 275, "type": "field_expression", "text": "list.cmd_list", "parent": 274, "children": [276, 277], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 41}}, {"id": 276, "type": "identifier", "text": "list", "parent": 275, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 32}}, {"id": 277, "type": "field_identifier", "text": "cmd_list", "parent": 275, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 41}}, {"id": 278, "type": "identifier", "text": "i", "parent": 274, "children": [], "start_point": {"row": 55, "column": 42}, "end_point": {"row": 55, "column": 43}}, {"id": 279, "type": "field_identifier", "text": "num", "parent": 273, "children": [], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 48}}, {"id": 280, "type": "field_expression", "text": "list.cmd_list[i].cmd", "parent": 271, "children": [281, 286], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 70}}, {"id": 281, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 280, "children": [282, 285], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 66}}, {"id": 282, "type": "field_expression", "text": "list.cmd_list", "parent": 281, "children": [283, 284], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 63}}, {"id": 283, "type": "identifier", "text": "list", "parent": 282, "children": [], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 54}}, {"id": 284, "type": "field_identifier", "text": "cmd_list", "parent": 282, "children": [], "start_point": {"row": 55, "column": 55}, "end_point": {"row": 55, "column": 63}}, {"id": 285, "type": "identifier", "text": "i", "parent": 281, "children": [], "start_point": {"row": 55, "column": 64}, "end_point": {"row": 55, "column": 65}}, {"id": 286, "type": "field_identifier", "text": "cmd", "parent": 280, "children": [], "start_point": {"row": 55, "column": 67}, "end_point": {"row": 55, "column": 70}}, {"id": 287, "type": "else_clause", "text": "else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }", "parent": 243, "children": [288], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 67, "column": 5}}, {"id": 288, "type": "if_statement", "text": "if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }", "parent": 287, "children": [289, 362], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 67, "column": 5}}, {"id": 289, "type": "parenthesized_expression", "text": "(list.head > list.tail)", "parent": 288, "children": [290], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 37}}, {"id": 290, "type": "binary_expression", "text": "list.head > list.tail", "parent": 289, "children": [291, 294, 295], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 36}}, {"id": 291, "type": "field_expression", "text": "list.head", "parent": 290, "children": [292, 293], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 24}}, {"id": 292, "type": "identifier", "text": "list", "parent": 291, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 293, "type": "field_identifier", "text": "head", "parent": 291, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 24}}, {"id": 294, "type": ">", "text": ">", "parent": 290, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 295, "type": "field_expression", "text": "list.tail", "parent": 290, "children": [296, 297], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 36}}, {"id": 296, "type": "identifier", "text": "list", "parent": 295, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 31}}, {"id": 297, "type": "field_identifier", "text": "tail", "parent": 295, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 36}}, {"id": 298, "type": "for_statement", "text": "for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }", "parent": 288, "children": [299, 305, 309], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 299, "type": "assignment_expression", "text": "i = list.head", "parent": 298, "children": [300, 301, 302], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 26}}, {"id": 300, "type": "identifier", "text": "i", "parent": 299, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 301, "type": "=", "text": "=", "parent": 299, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 302, "type": "field_expression", "text": "list.head", "parent": 299, "children": [303, 304], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 26}}, {"id": 303, "type": "identifier", "text": "list", "parent": 302, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 21}}, {"id": 304, "type": "field_identifier", "text": "head", "parent": 302, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 26}}, {"id": 305, "type": "binary_expression", "text": "i < MAX_CMD_SIZE", "parent": 298, "children": [306, 307, 308], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 44}}, {"id": 306, "type": "identifier", "text": "i", "parent": 305, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 29}}, {"id": 307, "type": "<", "text": "<", "parent": 305, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 31}}, {"id": 308, "type": "identifier", "text": "MAX_CMD_SIZE", "parent": 305, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 44}}, {"id": 309, "type": "update_expression", "text": "i++", "parent": 298, "children": [310, 311], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 49}}, {"id": 310, "type": "identifier", "text": "i", "parent": 309, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 47}}, {"id": 311, "type": "++", "text": "++", "parent": 309, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 49}}, {"id": 312, "type": "call_expression", "text": "printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 298, "children": [313, 314], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 71}}, {"id": 313, "type": "identifier", "text": "printf", "parent": 312, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 18}}, {"id": 314, "type": "argument_list", "text": "(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 312, "children": [315, 316, 323], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 71}}, {"id": 315, "type": "string_literal", "text": "\"%d %s\"", "parent": 314, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 26}}, {"id": 316, "type": "field_expression", "text": "list.cmd_list[i].num", "parent": 314, "children": [317, 322], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 48}}, {"id": 317, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 316, "children": [318, 321], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 44}}, {"id": 318, "type": "field_expression", "text": "list.cmd_list", "parent": 317, "children": [319, 320], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 41}}, {"id": 319, "type": "identifier", "text": "list", "parent": 318, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 32}}, {"id": 320, "type": "field_identifier", "text": "cmd_list", "parent": 318, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 41}}, {"id": 321, "type": "identifier", "text": "i", "parent": 317, "children": [], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 43}}, {"id": 322, "type": "field_identifier", "text": "num", "parent": 316, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 48}}, {"id": 323, "type": "field_expression", "text": "list.cmd_list[i].cmd", "parent": 314, "children": [324, 329], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 70}}, {"id": 324, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 323, "children": [325, 328], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 66}}, {"id": 325, "type": "field_expression", "text": "list.cmd_list", "parent": 324, "children": [326, 327], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 63}}, {"id": 326, "type": "identifier", "text": "list", "parent": 325, "children": [], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 54}}, {"id": 327, "type": "field_identifier", "text": "cmd_list", "parent": 325, "children": [], "start_point": {"row": 60, "column": 55}, "end_point": {"row": 60, "column": 63}}, {"id": 328, "type": "identifier", "text": "i", "parent": 324, "children": [], "start_point": {"row": 60, "column": 64}, "end_point": {"row": 60, "column": 65}}, {"id": 329, "type": "field_identifier", "text": "cmd", "parent": 323, "children": [], "start_point": {"row": 60, "column": 67}, "end_point": {"row": 60, "column": 70}}, {"id": 330, "type": "for_statement", "text": "for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }", "parent": 288, "children": [331, 335, 341], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 331, "type": "assignment_expression", "text": "i = 0", "parent": 330, "children": [332, 333, 334], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 18}}, {"id": 332, "type": "identifier", "text": "i", "parent": 331, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 14}}, {"id": 333, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 16}}, {"id": 334, "type": "number_literal", "text": "0", "parent": 331, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 335, "type": "binary_expression", "text": "i <= list.tail", "parent": 330, "children": [336, 337, 338], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 34}}, {"id": 336, "type": "identifier", "text": "i", "parent": 335, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 337, "type": "<=", "text": "<=", "parent": 335, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 24}}, {"id": 338, "type": "field_expression", "text": "list.tail", "parent": 335, "children": [339, 340], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 34}}, {"id": 339, "type": "identifier", "text": "list", "parent": 338, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 29}}, {"id": 340, "type": "field_identifier", "text": "tail", "parent": 338, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 34}}, {"id": 341, "type": "update_expression", "text": "i++", "parent": 330, "children": [342, 343], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 39}}, {"id": 342, "type": "identifier", "text": "i", "parent": 341, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 37}}, {"id": 343, "type": "++", "text": "++", "parent": 341, "children": [], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 39}}, {"id": 344, "type": "call_expression", "text": "printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 330, "children": [345, 346], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 71}}, {"id": 345, "type": "identifier", "text": "printf", "parent": 344, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 18}}, {"id": 346, "type": "argument_list", "text": "(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd)", "parent": 344, "children": [347, 348, 355], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 71}}, {"id": 347, "type": "string_literal", "text": "\"%d %s\"", "parent": 346, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 26}}, {"id": 348, "type": "field_expression", "text": "list.cmd_list[i].num", "parent": 346, "children": [349, 354], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 48}}, {"id": 349, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 348, "children": [350, 353], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 44}}, {"id": 350, "type": "field_expression", "text": "list.cmd_list", "parent": 349, "children": [351, 352], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 41}}, {"id": 351, "type": "identifier", "text": "list", "parent": 350, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 32}}, {"id": 352, "type": "field_identifier", "text": "cmd_list", "parent": 350, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 41}}, {"id": 353, "type": "identifier", "text": "i", "parent": 349, "children": [], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 43}}, {"id": 354, "type": "field_identifier", "text": "num", "parent": 348, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 48}}, {"id": 355, "type": "field_expression", "text": "list.cmd_list[i].cmd", "parent": 346, "children": [356, 361], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 70}}, {"id": 356, "type": "subscript_expression", "text": "list.cmd_list[i]", "parent": 355, "children": [357, 360], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 66}}, {"id": 357, "type": "field_expression", "text": "list.cmd_list", "parent": 356, "children": [358, 359], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 63}}, {"id": 358, "type": "identifier", "text": "list", "parent": 357, "children": [], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 54}}, {"id": 359, "type": "field_identifier", "text": "cmd_list", "parent": 357, "children": [], "start_point": {"row": 63, "column": 55}, "end_point": {"row": 63, "column": 63}}, {"id": 360, "type": "identifier", "text": "i", "parent": 356, "children": [], "start_point": {"row": 63, "column": 64}, "end_point": {"row": 63, "column": 65}}, {"id": 361, "type": "field_identifier", "text": "cmd", "parent": 355, "children": [], "start_point": {"row": 63, "column": 67}, "end_point": {"row": 63, "column": 70}}, {"id": 362, "type": "else_clause", "text": "else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }", "parent": 288, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 67, "column": 5}}, {"id": 363, "type": "call_expression", "text": "printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd)", "parent": 362, "children": [364, 365], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 83}}, {"id": 364, "type": "identifier", "text": "printf", "parent": 363, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 14}}, {"id": 365, "type": "argument_list", "text": "(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd)", "parent": 363, "children": [366, 367, 376], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 83}}, {"id": 366, "type": "string_literal", "text": "\"%d %s\"", "parent": 365, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 22}}, {"id": 367, "type": "field_expression", "text": "list.cmd_list[list.head].num", "parent": 365, "children": [368, 375], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 52}}, {"id": 368, "type": "subscript_expression", "text": "list.cmd_list[list.head]", "parent": 367, "children": [369, 372], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 48}}, {"id": 369, "type": "field_expression", "text": "list.cmd_list", "parent": 368, "children": [370, 371], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 37}}, {"id": 370, "type": "identifier", "text": "list", "parent": 369, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 28}}, {"id": 371, "type": "field_identifier", "text": "cmd_list", "parent": 369, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 37}}, {"id": 372, "type": "field_expression", "text": "list.head", "parent": 368, "children": [373, 374], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 47}}, {"id": 373, "type": "identifier", "text": "list", "parent": 372, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 42}}, {"id": 374, "type": "field_identifier", "text": "head", "parent": 372, "children": [], "start_point": {"row": 66, "column": 43}, "end_point": {"row": 66, "column": 47}}, {"id": 375, "type": "field_identifier", "text": "num", "parent": 367, "children": [], "start_point": {"row": 66, "column": 49}, "end_point": {"row": 66, "column": 52}}, {"id": 376, "type": "field_expression", "text": "list.cmd_list[list.head].cmd", "parent": 365, "children": [377, 384], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 82}}, {"id": 377, "type": "subscript_expression", "text": "list.cmd_list[list.head]", "parent": 376, "children": [378, 381], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 78}}, {"id": 378, "type": "field_expression", "text": "list.cmd_list", "parent": 377, "children": [379, 380], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 67}}, {"id": 379, "type": "identifier", "text": "list", "parent": 378, "children": [], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 58}}, {"id": 380, "type": "field_identifier", "text": "cmd_list", "parent": 378, "children": [], "start_point": {"row": 66, "column": 59}, "end_point": {"row": 66, "column": 67}}, {"id": 381, "type": "field_expression", "text": "list.head", "parent": 377, "children": [382, 383], "start_point": {"row": 66, "column": 68}, "end_point": {"row": 66, "column": 77}}, {"id": 382, "type": "identifier", "text": "list", "parent": 381, "children": [], "start_point": {"row": 66, "column": 68}, "end_point": {"row": 66, "column": 72}}, {"id": 383, "type": "field_identifier", "text": "head", "parent": 381, "children": [], "start_point": {"row": 66, "column": 73}, "end_point": {"row": 66, "column": 77}}, {"id": 384, "type": "field_identifier", "text": "cmd", "parent": 376, "children": [], "start_point": {"row": 66, "column": 79}, "end_point": {"row": 66, "column": 82}}]}, "node_categories": {"declarations": {"functions": [15, 17, 38, 40, 120, 124, 197, 201, 235, 237], "variables": [12, 43, 127, 130, 139, 142, 204, 240], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [21, 27, 33, 48, 49, 54, 58, 59, 64, 67, 68, 69, 72, 77, 78, 83, 84, 85, 88, 93, 97, 98, 99, 104, 105, 110, 114, 115, 148, 149, 155, 164, 168, 172, 173, 174, 175, 176, 186, 187, 188, 214, 215, 216, 224, 225, 226, 229, 244, 245, 246, 250, 257, 260, 263, 266, 269, 273, 274, 275, 280, 281, 282, 289, 290, 291, 295, 302, 305, 309, 312, 316, 317, 318, 323, 324, 325, 335, 338, 341, 344, 348, 349, 350, 355, 356, 357, 363, 367, 368, 369, 372, 376, 377, 378, 381], "assignments": [20, 26, 32, 53, 82, 109, 160, 183, 221, 254, 299, 331], "loops": [159, 253, 298, 330], "conditionals": [13, 14, 18, 22, 23, 28, 29, 34, 35, 41, 47, 50, 51, 55, 56, 60, 61, 63, 65, 70, 71, 73, 74, 75, 76, 79, 80, 86, 87, 89, 90, 91, 94, 95, 96, 100, 101, 103, 106, 107, 111, 112, 116, 117, 119, 125, 129, 135, 141, 145, 147, 150, 151, 153, 156, 157, 158, 161, 165, 167, 169, 171, 177, 178, 179, 180, 182, 184, 189, 190, 191, 192, 196, 202, 209, 213, 217, 218, 222, 227, 228, 230, 231, 232, 234, 238, 242, 243, 247, 248, 251, 252, 255, 258, 259, 261, 264, 265, 267, 270, 276, 277, 278, 279, 283, 284, 285, 286, 288, 292, 293, 296, 297, 300, 303, 304, 306, 308, 310, 313, 319, 320, 321, 322, 326, 327, 328, 329, 332, 336, 339, 340, 342, 345, 351, 352, 353, 354, 358, 359, 360, 361, 364, 370, 371, 373, 374, 375, 379, 380, 382, 383, 384], "returns": [195, 233], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 25, 31, 37, 163, 220, 272, 315, 334, 347, 366], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "init_ll", "text_snippet": "void init_ll()\n{\n\tlist.head = 0;\n\tlist.tail = -1;\n\tlist.counter = 0;\n}"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "init_ll()"}, {"node_id": 38, "universal_type": "function", "name": "add_cmd", "text_snippet": "void add_cmd(char *cmd)\n{\n\tlist.tail++;\n\tlist.tail = list.tail % MAX_CMD_SIZE;\n\tstrcpy(list.cmd_list"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "add_cmd(char *cmd)"}, {"node_id": 120, "universal_type": "function", "name": "i;", "text_snippet": "char *get_nth_cmd(int n)\n{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZ"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "get_nth_cmd(int n)"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "char *get_last_cmd()\n{\n\tchar *cmd = NULL;\n\tif(list.counter > 0) {\n\t\tcmd = list.cmd_list[list.tail].c"}, {"node_id": 201, "universal_type": "function", "name": "unknown", "text_snippet": "get_last_cmd()"}, {"node_id": 235, "universal_type": "function", "name": "display_all_cmd", "text_snippet": "void display_all_cmd()\n{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "display_all_cmd()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include<stdlib.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include<string.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include<stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"history.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include<stdlib.h>\n#include<string.h>\n#include<stdio.h>\n#include \"history.h\"\n\nll list; \n\nvoid init_ll()\n{\n\tlist.head = 0;\n\tlist.tail = -1;\n\tlist.counter = 0;\n}\n\n\nvoid add_cmd(char *cmd)\n{\n\tlist.tail++;\n\tlist.tail = list.tail % MAX_CMD_SIZE;\n\tstrcpy(list.cmd_list[list.tail].cmd, cmd);\n\tlist.counter++;\n\tlist.cmd_list[list.tail].num = list.counter;\n\tif(list.counter > MAX_CMD_SIZE) {\n\t\tlist.head++;\n\t\tlist.head = list.head % MAX_CMD_SIZE;\n\t}\n}\n\nchar *get_nth_cmd(int n)\n{\n char *cmd = NULL;\n int i;\n int max = list.counter < MAX_CMD_SIZE ? list.counter : MAX_CMD_SIZE;\n for(i = 0; i < max; i++) {\n if(list.cmd_list[i].num == n) {\n cmd = list.cmd_list[i].cmd;\n break;\n }\n }\n return cmd;\n}\n\nchar *get_last_cmd()\n{\n\tchar *cmd = NULL;\n\tif(list.counter > 0) {\n\t\tcmd = list.cmd_list[list.tail].cmd;\n\t}\n\treturn cmd;\n}\nvoid display_all_cmd()\n{\n int i;\n if (list.head < list.tail) {\n for (i = list.head; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n\n } else if (list.head > list.tail) {\n for (i = list.head; i < MAX_CMD_SIZE; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n for (i = 0; i <= list.tail; i++) {\n printf(\"%d %s\", list.cmd_list[i].num, list.cmd_list[i].cmd);\n }\n } else {\n printf(\"%d %s\", list.cmd_list[list.head].num, list.cmd_list[list.head].cmd);\n }\n}\n"}
108
c
/* * abstract-db-p.h * Copyright (C) 2010-2018 Belledonne Communications SARL * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _L_ABSTRACT_DB_P_H_ #define _L_ABSTRACT_DB_P_H_ #include "abstract-db.h" #include "db/session/db-session.h" #include "object/object-p.h" // ============================================================================= LINPHONE_BEGIN_NAMESPACE class AbstractDbPrivate : public ObjectPrivate { public: DbSession dbSession; private: void safeInit (); AbstractDb::Backend backend; L_DECLARE_PUBLIC(AbstractDb); }; LINPHONE_END_NAMESPACE #endif // ifndef _L_ABSTRACT_DB_P_H_
35.77
35
(translation_unit) "/*\n * abstract-db-p.h\n * Copyright (C) 2010-2018 Belledonne Communications SARL\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n */\n\n#ifndef _L_ABSTRACT_DB_P_H_\n#define _L_ABSTRACT_DB_P_H_\n\n#include "abstract-db.h"\n#include "db/session/db-session.h"\n#include "object/object-p.h"\n\n// =============================================================================\n\nLINPHONE_BEGIN_NAMESPACE\n\nclass AbstractDbPrivate : public ObjectPrivate {\npublic:\n DbSession dbSession;\n\nprivate:\n void safeInit ();\n\n AbstractDb::Backend backend;\n\n L_DECLARE_PUBLIC(AbstractDb);\n};\n\nLINPHONE_END_NAMESPACE\n\n#endif // ifndef _L_ABSTRACT_DB_P_H_\n" (comment) "/*\n * abstract-db-p.h\n * Copyright (C) 2010-2018 Belledonne Communications SARL\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n */" (preproc_ifdef) "#ifndef _L_ABSTRACT_DB_P_H_\n#define _L_ABSTRACT_DB_P_H_\n\n#include "abstract-db.h"\n#include "db/session/db-session.h"\n#include "object/object-p.h"\n\n// =============================================================================\n\nLINPHONE_BEGIN_NAMESPACE\n\nclass AbstractDbPrivate : public ObjectPrivate {\npublic:\n DbSession dbSession;\n\nprivate:\n void safeInit ();\n\n AbstractDb::Backend backend;\n\n L_DECLARE_PUBLIC(AbstractDb);\n};\n\nLINPHONE_END_NAMESPACE\n\n#endif" (#ifndef) "#ifndef" (identifier) "_L_ABSTRACT_DB_P_H_" (preproc_def) "#define _L_ABSTRACT_DB_P_H_\n" (#define) "#define" (identifier) "_L_ABSTRACT_DB_P_H_" (preproc_include) "#include "abstract-db.h"\n" (#include) "#include" (string_literal) ""abstract-db.h"" (") """ (string_content) "abstract-db.h" (") """ (preproc_include) "#include "db/session/db-session.h"\n" (#include) "#include" (string_literal) ""db/session/db-session.h"" (") """ (string_content) "db/session/db-session.h" (") """ (preproc_include) "#include "object/object-p.h"\n" (#include) "#include" (string_literal) ""object/object-p.h"" (") """ (string_content) "object/object-p.h" (") """ (comment) "// =============================================================================" (declaration) "LINPHONE_BEGIN_NAMESPACE\n\nclass" (type_identifier) "LINPHONE_BEGIN_NAMESPACE" (identifier) "class" (;) "" (labeled_statement) "AbstractDbPrivate : public ObjectPrivate {\npublic:\n DbSession dbSession;\n\nprivate:\n void safeInit ();\n\n AbstractDb::Backend backend;\n\n L_DECLARE_PUBLIC(AbstractDb);\n}" (statement_identifier) "AbstractDbPrivate" (:) ":" (ERROR) "public ObjectPrivate" (type_identifier) "public" (identifier) "ObjectPrivate" (compound_statement) "{\npublic:\n DbSession dbSession;\n\nprivate:\n void safeInit ();\n\n AbstractDb::Backend backend;\n\n L_DECLARE_PUBLIC(AbstractDb);\n}" ({) "{" (labeled_statement) "public:\n DbSession dbSession;" (statement_identifier) "public" (:) ":" (declaration) "DbSession dbSession;" (type_identifier) "DbSession" (identifier) "dbSession" (;) ";" (labeled_statement) "private:\n void safeInit ();" (statement_identifier) "private" (:) ":" (declaration) "void safeInit ();" (primitive_type) "void" (function_declarator) "safeInit ()" (identifier) "safeInit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "AbstractDb::Backend backend;" (statement_identifier) "AbstractDb" (:) ":" (ERROR) ":" (:) ":" (declaration) "Backend backend;" (type_identifier) "Backend" (identifier) "backend" (;) ";" (expression_statement) "L_DECLARE_PUBLIC(AbstractDb);" (call_expression) "L_DECLARE_PUBLIC(AbstractDb)" (identifier) "L_DECLARE_PUBLIC" (argument_list) "(AbstractDb)" (() "(" (identifier) "AbstractDb" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_identifier) "LINPHONE_END_NAMESPACE" (;) "" (#endif) "#endif" (comment) "// ifndef _L_ABSTRACT_DB_P_H_"
81
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.77, "nodes": 42, "errors": 0, "source_hash": "d2c132582e0f5941202e91c0ab2982677d367f41d40d43b3fd82f216005d5785", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _L_ABSTRACT_DB_P_H_\n#define _L_ABSTRACT_DB_P_H_\n\n#include \"abstract-db.h\"\n#include \"db/session/db-session.h\"\n#include \"object/object-p.h\"\n\n// =============================================================================\n\nLINPHONE_BEGIN_NAMESPACE\n\nclass AbstractDbPrivate : public ObjectPrivate {\npublic:\n\tDbSession dbSession;\n\nprivate:\n\tvoid safeInit ();\n\n\tAbstractDb::Backend backend;\n\n\tL_DECLARE_PUBLIC(AbstractDb);\n};\n\nLINPHONE_END_NAMESPACE\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 17, 40, 41], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "_L_ABSTRACT_DB_P_H_", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define _L_ABSTRACT_DB_P_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "identifier", "text": "_L_ABSTRACT_DB_P_H_", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"abstract-db.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"abstract-db.h\"", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include \"db/session/db-session.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"db/session/db-session.h\"", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 34}}, {"id": 12, "type": "preproc_include", "text": "#include \"object/object-p.h\"\n", "parent": 0, "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": "\"object/object-p.h\"", "parent": 12, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 28}}, {"id": 15, "type": "declaration", "text": "LINPHONE_BEGIN_NAMESPACE\n\nclass", "parent": 0, "children": [16], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 5}}, {"id": 16, "type": "type_identifier", "text": "LINPHONE_BEGIN_NAMESPACE", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 24}}, {"id": 17, "type": "labeled_statement", "text": "AbstractDbPrivate : public ObjectPrivate {\npublic:\n\tDbSession dbSession;\n\nprivate:\n\tvoid safeInit ();\n\n\tAbstractDb::Backend backend;\n\n\tL_DECLARE_PUBLIC(AbstractDb);\n}", "parent": 0, "children": [18, 19], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 40, "column": 1}}, {"id": 18, "type": "statement_identifier", "text": "AbstractDbPrivate", "parent": 17, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 23}}, {"id": 19, "type": "ERROR", "text": "public ObjectPrivate", "parent": 17, "children": [20], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 46}}, {"id": 20, "type": "identifier", "text": "ObjectPrivate", "parent": 19, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 46}}, {"id": 21, "type": "labeled_statement", "text": "public:\n\tDbSession dbSession;", "parent": 17, "children": [22], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 21}}, {"id": 22, "type": "declaration", "text": "DbSession dbSession;", "parent": 21, "children": [23, 24], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 21}}, {"id": 23, "type": "type_identifier", "text": "DbSession", "parent": 22, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 10}}, {"id": 24, "type": "identifier", "text": "dbSession", "parent": 22, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 20}}, {"id": 25, "type": "labeled_statement", "text": "private:\n\tvoid safeInit ();", "parent": 17, "children": [26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 18}}, {"id": 26, "type": "declaration", "text": "void safeInit ();", "parent": 25, "children": [27, 28], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 18}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 28, "type": "function_declarator", "text": "safeInit ()", "parent": 26, "children": [29, 30], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 17}}, {"id": 29, "type": "identifier", "text": "safeInit", "parent": 28, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 14}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 17}}, {"id": 31, "type": "labeled_statement", "text": "AbstractDb::Backend backend;", "parent": 17, "children": [32, 33], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 29}}, {"id": 32, "type": "statement_identifier", "text": "AbstractDb", "parent": 31, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 11}}, {"id": 33, "type": "declaration", "text": "Backend backend;", "parent": 31, "children": [34, 35], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 29}}, {"id": 34, "type": "type_identifier", "text": "Backend", "parent": 33, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 20}}, {"id": 35, "type": "identifier", "text": "backend", "parent": 33, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 28}}, {"id": 36, "type": "call_expression", "text": "L_DECLARE_PUBLIC(AbstractDb)", "parent": 17, "children": [37, 38], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 29}}, {"id": 37, "type": "identifier", "text": "L_DECLARE_PUBLIC", "parent": 36, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 17}}, {"id": 38, "type": "argument_list", "text": "(AbstractDb)", "parent": 36, "children": [39], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 29}}, {"id": 39, "type": "identifier", "text": "AbstractDb", "parent": 38, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 28}}, {"id": 40, "type": "type_identifier", "text": "LINPHONE_END_NAMESPACE", "parent": 0, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 22}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28], "variables": [15, 22, 26, 33], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [36], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 20, 23, 24, 29, 32, 34, 35, 37, 39, 40, 41], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "safeInit ()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"abstract-db.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"db/session/db-session.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"object/object-p.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n * abstract-db-p.h\n * Copyright (C) 2010-2018 Belledonne Communications SARL\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n */\n\n#ifndef _L_ABSTRACT_DB_P_H_\n#define _L_ABSTRACT_DB_P_H_\n\n#include \"abstract-db.h\"\n#include \"db/session/db-session.h\"\n#include \"object/object-p.h\"\n\n// =============================================================================\n\nLINPHONE_BEGIN_NAMESPACE\n\nclass AbstractDbPrivate : public ObjectPrivate {\npublic:\n\tDbSession dbSession;\n\nprivate:\n\tvoid safeInit ();\n\n\tAbstractDb::Backend backend;\n\n\tL_DECLARE_PUBLIC(AbstractDb);\n};\n\nLINPHONE_END_NAMESPACE\n\n#endif // ifndef _L_ABSTRACT_DB_P_H_\n"}
109
c
/* * Copyright 2017 <NAME> * Copyright 2017 <NAME> * Copyright 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <semaphore.h> #include "types.h" #include "fifoqueue.h" Fifo_q * init_queue(int size) { Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q)); q->head = NULL; q->tail = NULL; q->maxSize = size; q->currentSize = 0; q->droppedValues = 0; q->largestBufferSize = 0; q->valuesReceived = 0; q->valuesReleased = 0; /*Queue empty from the beginning (block)*/ sem_init(&q->bufferEmptyBlock, 0, 0); sem_init(&q->bufferFullBlock, 0, size); sem_init(&q->lock, 0, 1); return q; } boolean is_full(Fifo_q * q) { if(q->currentSize < q->maxSize) return false; else return true; } boolean is_empty(Fifo_q * q) { if(q->head==NULL) return true; else return false; } int add_to_queue(Fifo_q * q, Sensor_t * sensor) { if(q == NULL){ printf("Error: Queue not initialized\n"); free(sensor); //free if not appended return -1; } /* Drop Least Recently or Drop Most Recently */ #ifdef DLR if(is_full(q)){ pop_from_queue(q); q->droppedValues++; return 0; } #else sem_wait(&q->bufferFullBlock); #endif sem_wait(&q->lock); Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t)); new_elem->next = NULL; new_elem->sensor = sensor; if(is_empty(q)){ q->head = new_elem; }else q->tail->next = new_elem; q->tail = new_elem; q->currentSize++; q->valuesReceived++; if(q->currentSize > q->largestBufferSize) q->largestBufferSize = q->currentSize; sem_post(&q->lock); sem_post(&q->bufferEmptyBlock); return 1; } Sensor_t * pop_from_queue(Fifo_q * q) { int semStat; sem_wait(&q->bufferEmptyBlock); sem_wait(&q->lock); Queue_t * head = q->head; Sensor_t * sensor = head->sensor; /* If dequeue the last element */ if(q->currentSize == 1){ q->head = NULL; q->tail = NULL; }else{ q->head = head->next; } free(head); q->currentSize--; q->valuesReleased++; sem_post(&q->lock); #ifndef DLR sem_post(&q->bufferFullBlock); #endif return sensor; } Sensor_t * create_sensor_object(int value, int uid) { Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t)); sensor->value = value; sensor->uid = uid; return sensor; } void print_queue(Fifo_q * q) { sem_wait(&q->lock); Queue_t * current = q->head; printf("\nContent of the queue with size=%d\n",q->currentSize); if(current == NULL){ printf("The queue is empty!\n"); sem_post(&q->lock); return; } while(current != NULL){ printf("sensor value=%d, sensor uid=%d\n", current->sensor->value, current->sensor->uid); current = current->next; } sem_post(&q->lock); }
26.56
148
(translation_unit) "/*\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n#include <pthread.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <semaphore.h>\n#include "types.h"\n#include "fifoqueue.h"\n\n Fifo_q * \ninit_queue(int size)\n{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = NULL;\n q->tail = NULL;\n q->maxSize = size;\n q->currentSize = 0;\n q->droppedValues = 0;\n q->largestBufferSize = 0;\n q->valuesReceived = 0;\n q->valuesReleased = 0;\n /*Queue empty from the beginning (block)*/\n sem_init(&q->bufferEmptyBlock, 0, 0);\n sem_init(&q->bufferFullBlock, 0, size);\n sem_init(&q->lock, 0, 1);\n return q;\n}\n\n boolean\nis_full(Fifo_q * q)\n{\n if(q->currentSize < q->maxSize)\n return false;\n else\n return true;\n} \n\n boolean\nis_empty(Fifo_q * q)\n{\n if(q->head==NULL)\n return true;\n else\n return false; \n}\n\n int\nadd_to_queue(Fifo_q * q, Sensor_t * sensor)\n{\n\n if(q == NULL){\n printf("Error: Queue not initialized\n");\n free(sensor); //free if not appended\n return -1; \n } \n /* Drop Least Recently or Drop Most Recently */\n #ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif\n sem_wait(&q->lock);\n Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));\n new_elem->next = NULL;\n new_elem->sensor = sensor;\n if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;\n q->tail = new_elem;\n q->currentSize++;\n q->valuesReceived++;\n if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;\n sem_post(&q->lock);\n sem_post(&q->bufferEmptyBlock);\n return 1;\n}\n\n Sensor_t *\npop_from_queue(Fifo_q * q)\n{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem_wait(&q->lock);\n Queue_t * head = q->head;\n Sensor_t * sensor = head->sensor;\n /* If dequeue the last element */\n if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }\n free(head);\n q->currentSize--;\n q->valuesReleased++;\n sem_post(&q->lock);\n #ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif\n return sensor;\n} \n\n Sensor_t *\ncreate_sensor_object(int value, int uid)\n{\n Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));\n sensor->value = value;\n sensor->uid = uid;\n return sensor;\n}\n void\nprint_queue(Fifo_q * q)\n{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf("\nContent of the queue with size=%d\n",q->currentSize);\n if(current == NULL){\n printf("The queue is empty!\n");\n sem_post(&q->lock);\n return;\n }\n while(current != NULL){\n printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }\n sem_post(&q->lock);\n}\n" (comment) "/*\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */" (preproc_include) "#include <pthread.h>\n" (#include) "#include" (system_lib_string) "<pthread.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <semaphore.h>\n" (#include) "#include" (system_lib_string) "<semaphore.h>" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_content) "types.h" (") """ (preproc_include) "#include "fifoqueue.h"\n" (#include) "#include" (string_literal) ""fifoqueue.h"" (") """ (string_content) "fifoqueue.h" (") """ (function_definition) "Fifo_q * \ninit_queue(int size)\n{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = NULL;\n q->tail = NULL;\n q->maxSize = size;\n q->currentSize = 0;\n q->droppedValues = 0;\n q->largestBufferSize = 0;\n q->valuesReceived = 0;\n q->valuesReleased = 0;\n /*Queue empty from the beginning (block)*/\n sem_init(&q->bufferEmptyBlock, 0, 0);\n sem_init(&q->bufferFullBlock, 0, size);\n sem_init(&q->lock, 0, 1);\n return q;\n}" (type_identifier) "Fifo_q" (pointer_declarator) "* \ninit_queue(int size)" (*) "*" (function_declarator) "init_queue(int size)" (identifier) "init_queue" (parameter_list) "(int size)" (() "(" (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = NULL;\n q->tail = NULL;\n q->maxSize = size;\n q->currentSize = 0;\n q->droppedValues = 0;\n q->largestBufferSize = 0;\n q->valuesReceived = 0;\n q->valuesReleased = 0;\n /*Queue empty from the beginning (block)*/\n sem_init(&q->bufferEmptyBlock, 0, 0);\n sem_init(&q->bufferFullBlock, 0, size);\n sem_init(&q->lock, 0, 1);\n return q;\n}" ({) "{" (declaration) "Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));" (type_identifier) "Fifo_q" (init_declarator) "* q = (Fifo_q *) malloc(sizeof(Fifo_q))" (pointer_declarator) "* q" (*) "*" (identifier) "q" (=) "=" (cast_expression) "(Fifo_q *) malloc(sizeof(Fifo_q))" (() "(" (type_descriptor) "Fifo_q *" (type_identifier) "Fifo_q" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Fifo_q))" (identifier) "malloc" (argument_list) "(sizeof(Fifo_q))" (() "(" (sizeof_expression) "sizeof(Fifo_q)" (sizeof) "sizeof" (parenthesized_expression) "(Fifo_q)" (() "(" (identifier) "Fifo_q" ()) ")" ()) ")" (;) ";" (expression_statement) "q->head = NULL;" (assignment_expression) "q->head = NULL" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "q->tail = NULL;" (assignment_expression) "q->tail = NULL" (field_expression) "q->tail" (identifier) "q" (->) "->" (field_identifier) "tail" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "q->maxSize = size;" (assignment_expression) "q->maxSize = size" (field_expression) "q->maxSize" (identifier) "q" (->) "->" (field_identifier) "maxSize" (=) "=" (identifier) "size" (;) ";" (expression_statement) "q->currentSize = 0;" (assignment_expression) "q->currentSize = 0" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "q->droppedValues = 0;" (assignment_expression) "q->droppedValues = 0" (field_expression) "q->droppedValues" (identifier) "q" (->) "->" (field_identifier) "droppedValues" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "q->largestBufferSize = 0;" (assignment_expression) "q->largestBufferSize = 0" (field_expression) "q->largestBufferSize" (identifier) "q" (->) "->" (field_identifier) "largestBufferSize" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "q->valuesReceived = 0;" (assignment_expression) "q->valuesReceived = 0" (field_expression) "q->valuesReceived" (identifier) "q" (->) "->" (field_identifier) "valuesReceived" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "q->valuesReleased = 0;" (assignment_expression) "q->valuesReleased = 0" (field_expression) "q->valuesReleased" (identifier) "q" (->) "->" (field_identifier) "valuesReleased" (=) "=" (number_literal) "0" (;) ";" (comment) "/*Queue empty from the beginning (block)*/" (expression_statement) "sem_init(&q->bufferEmptyBlock, 0, 0);" (call_expression) "sem_init(&q->bufferEmptyBlock, 0, 0)" (identifier) "sem_init" (argument_list) "(&q->bufferEmptyBlock, 0, 0)" (() "(" (pointer_expression) "&q->bufferEmptyBlock" (&) "&" (field_expression) "q->bufferEmptyBlock" (identifier) "q" (->) "->" (field_identifier) "bufferEmptyBlock" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "sem_init(&q->bufferFullBlock, 0, size);" (call_expression) "sem_init(&q->bufferFullBlock, 0, size)" (identifier) "sem_init" (argument_list) "(&q->bufferFullBlock, 0, size)" (() "(" (pointer_expression) "&q->bufferFullBlock" (&) "&" (field_expression) "q->bufferFullBlock" (identifier) "q" (->) "->" (field_identifier) "bufferFullBlock" (,) "," (number_literal) "0" (,) "," (identifier) "size" ()) ")" (;) ";" (expression_statement) "sem_init(&q->lock, 0, 1);" (call_expression) "sem_init(&q->lock, 0, 1)" (identifier) "sem_init" (argument_list) "(&q->lock, 0, 1)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" (,) "," (number_literal) "0" (,) "," (number_literal) "1" ()) ")" (;) ";" (return_statement) "return q;" (return) "return" (identifier) "q" (;) ";" (}) "}" (function_definition) "boolean\nis_full(Fifo_q * q)\n{\n if(q->currentSize < q->maxSize)\n return false;\n else\n return true;\n}" (type_identifier) "boolean" (function_declarator) "is_full(Fifo_q * q)" (identifier) "is_full" (parameter_list) "(Fifo_q * q)" (() "(" (parameter_declaration) "Fifo_q * q" (type_identifier) "Fifo_q" (pointer_declarator) "* q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n if(q->currentSize < q->maxSize)\n return false;\n else\n return true;\n}" ({) "{" (if_statement) "if(q->currentSize < q->maxSize)\n return false;\n else\n return true;" (if) "if" (parenthesized_expression) "(q->currentSize < q->maxSize)" (() "(" (binary_expression) "q->currentSize < q->maxSize" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (<) "<" (field_expression) "q->maxSize" (identifier) "q" (->) "->" (field_identifier) "maxSize" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (else_clause) "else\n return true;" (else) "else" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "boolean\nis_empty(Fifo_q * q)\n{\n if(q->head==NULL)\n return true;\n else\n return false; \n}" (type_identifier) "boolean" (function_declarator) "is_empty(Fifo_q * q)" (identifier) "is_empty" (parameter_list) "(Fifo_q * q)" (() "(" (parameter_declaration) "Fifo_q * q" (type_identifier) "Fifo_q" (pointer_declarator) "* q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n if(q->head==NULL)\n return true;\n else\n return false; \n}" ({) "{" (if_statement) "if(q->head==NULL)\n return true;\n else\n return false;" (if) "if" (parenthesized_expression) "(q->head==NULL)" (() "(" (binary_expression) "q->head==NULL" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (else_clause) "else\n return false;" (else) "else" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (function_definition) "int\nadd_to_queue(Fifo_q * q, Sensor_t * sensor)\n{\n\n if(q == NULL){\n printf("Error: Queue not initialized\n");\n free(sensor); //free if not appended\n return -1; \n } \n /* Drop Least Recently or Drop Most Recently */\n #ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif\n sem_wait(&q->lock);\n Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));\n new_elem->next = NULL;\n new_elem->sensor = sensor;\n if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;\n q->tail = new_elem;\n q->currentSize++;\n q->valuesReceived++;\n if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;\n sem_post(&q->lock);\n sem_post(&q->bufferEmptyBlock);\n return 1;\n}" (primitive_type) "int" (function_declarator) "add_to_queue(Fifo_q * q, Sensor_t * sensor)" (identifier) "add_to_queue" (parameter_list) "(Fifo_q * q, Sensor_t * sensor)" (() "(" (parameter_declaration) "Fifo_q * q" (type_identifier) "Fifo_q" (pointer_declarator) "* q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "Sensor_t * sensor" (type_identifier) "Sensor_t" (pointer_declarator) "* sensor" (*) "*" (identifier) "sensor" ()) ")" (compound_statement) "{\n\n if(q == NULL){\n printf("Error: Queue not initialized\n");\n free(sensor); //free if not appended\n return -1; \n } \n /* Drop Least Recently or Drop Most Recently */\n #ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif\n sem_wait(&q->lock);\n Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));\n new_elem->next = NULL;\n new_elem->sensor = sensor;\n if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;\n q->tail = new_elem;\n q->currentSize++;\n q->valuesReceived++;\n if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;\n sem_post(&q->lock);\n sem_post(&q->bufferEmptyBlock);\n return 1;\n}" ({) "{" (if_statement) "if(q == NULL){\n printf("Error: Queue not initialized\n");\n free(sensor); //free if not appended\n return -1; \n }" (if) "if" (parenthesized_expression) "(q == NULL)" (() "(" (binary_expression) "q == NULL" (identifier) "q" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("Error: Queue not initialized\n");\n free(sensor); //free if not appended\n return -1; \n }" ({) "{" (expression_statement) "printf("Error: Queue not initialized\n");" (call_expression) "printf("Error: Queue not initialized\n")" (identifier) "printf" (argument_list) "("Error: Queue not initialized\n")" (() "(" (string_literal) ""Error: Queue not initialized\n"" (") """ (string_content) "Error: Queue not initialized" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "free(sensor);" (call_expression) "free(sensor)" (identifier) "free" (argument_list) "(sensor)" (() "(" (identifier) "sensor" ()) ")" (;) ";" (comment) "//free if not appended" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (comment) "/* Drop Least Recently or Drop Most Recently */" (preproc_ifdef) "#ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif" (#ifdef) "#ifdef" (identifier) "DLR" (if_statement) "if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }" (if) "if" (parenthesized_expression) "(is_full(q))" (() "(" (call_expression) "is_full(q)" (identifier) "is_full" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" ()) ")" (compound_statement) "{\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }" ({) "{" (expression_statement) "pop_from_queue(q);" (call_expression) "pop_from_queue(q)" (identifier) "pop_from_queue" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "q->droppedValues++;" (update_expression) "q->droppedValues++" (field_expression) "q->droppedValues" (identifier) "q" (->) "->" (field_identifier) "droppedValues" (++) "++" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (preproc_else) "#else\n sem_wait(&q->bufferFullBlock);" (#else) "#else" (expression_statement) "sem_wait(&q->bufferFullBlock);" (call_expression) "sem_wait(&q->bufferFullBlock)" (identifier) "sem_wait" (argument_list) "(&q->bufferFullBlock)" (() "(" (pointer_expression) "&q->bufferFullBlock" (&) "&" (field_expression) "q->bufferFullBlock" (identifier) "q" (->) "->" (field_identifier) "bufferFullBlock" ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "sem_wait(&q->lock);" (call_expression) "sem_wait(&q->lock)" (identifier) "sem_wait" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (declaration) "Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));" (type_identifier) "Queue_t" (init_declarator) "* new_elem = (Queue_t *) malloc(sizeof(Queue_t))" (pointer_declarator) "* new_elem" (*) "*" (identifier) "new_elem" (=) "=" (cast_expression) "(Queue_t *) malloc(sizeof(Queue_t))" (() "(" (type_descriptor) "Queue_t *" (type_identifier) "Queue_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Queue_t))" (identifier) "malloc" (argument_list) "(sizeof(Queue_t))" (() "(" (sizeof_expression) "sizeof(Queue_t)" (sizeof) "sizeof" (parenthesized_expression) "(Queue_t)" (() "(" (identifier) "Queue_t" ()) ")" ()) ")" (;) ";" (expression_statement) "new_elem->next = NULL;" (assignment_expression) "new_elem->next = NULL" (field_expression) "new_elem->next" (identifier) "new_elem" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "new_elem->sensor = sensor;" (assignment_expression) "new_elem->sensor = sensor" (field_expression) "new_elem->sensor" (identifier) "new_elem" (->) "->" (field_identifier) "sensor" (=) "=" (identifier) "sensor" (;) ";" (if_statement) "if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;" (if) "if" (parenthesized_expression) "(is_empty(q))" (() "(" (call_expression) "is_empty(q)" (identifier) "is_empty" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" ()) ")" (compound_statement) "{\n q->head = new_elem;\n }" ({) "{" (expression_statement) "q->head = new_elem;" (assignment_expression) "q->head = new_elem" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (=) "=" (identifier) "new_elem" (;) ";" (}) "}" (else_clause) "else\n q->tail->next = new_elem;" (else) "else" (expression_statement) "q->tail->next = new_elem;" (assignment_expression) "q->tail->next = new_elem" (field_expression) "q->tail->next" (field_expression) "q->tail" (identifier) "q" (->) "->" (field_identifier) "tail" (->) "->" (field_identifier) "next" (=) "=" (identifier) "new_elem" (;) ";" (expression_statement) "q->tail = new_elem;" (assignment_expression) "q->tail = new_elem" (field_expression) "q->tail" (identifier) "q" (->) "->" (field_identifier) "tail" (=) "=" (identifier) "new_elem" (;) ";" (expression_statement) "q->currentSize++;" (update_expression) "q->currentSize++" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (++) "++" (;) ";" (expression_statement) "q->valuesReceived++;" (update_expression) "q->valuesReceived++" (field_expression) "q->valuesReceived" (identifier) "q" (->) "->" (field_identifier) "valuesReceived" (++) "++" (;) ";" (if_statement) "if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;" (if) "if" (parenthesized_expression) "(q->currentSize > q->largestBufferSize)" (() "(" (binary_expression) "q->currentSize > q->largestBufferSize" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (>) ">" (field_expression) "q->largestBufferSize" (identifier) "q" (->) "->" (field_identifier) "largestBufferSize" ()) ")" (expression_statement) "q->largestBufferSize = q->currentSize;" (assignment_expression) "q->largestBufferSize = q->currentSize" (field_expression) "q->largestBufferSize" (identifier) "q" (->) "->" (field_identifier) "largestBufferSize" (=) "=" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (;) ";" (expression_statement) "sem_post(&q->lock);" (call_expression) "sem_post(&q->lock)" (identifier) "sem_post" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (expression_statement) "sem_post(&q->bufferEmptyBlock);" (call_expression) "sem_post(&q->bufferEmptyBlock)" (identifier) "sem_post" (argument_list) "(&q->bufferEmptyBlock)" (() "(" (pointer_expression) "&q->bufferEmptyBlock" (&) "&" (field_expression) "q->bufferEmptyBlock" (identifier) "q" (->) "->" (field_identifier) "bufferEmptyBlock" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "Sensor_t *\npop_from_queue(Fifo_q * q)\n{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem_wait(&q->lock);\n Queue_t * head = q->head;\n Sensor_t * sensor = head->sensor;\n /* If dequeue the last element */\n if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }\n free(head);\n q->currentSize--;\n q->valuesReleased++;\n sem_post(&q->lock);\n #ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif\n return sensor;\n}" (type_identifier) "Sensor_t" (pointer_declarator) "*\npop_from_queue(Fifo_q * q)" (*) "*" (function_declarator) "pop_from_queue(Fifo_q * q)" (identifier) "pop_from_queue" (parameter_list) "(Fifo_q * q)" (() "(" (parameter_declaration) "Fifo_q * q" (type_identifier) "Fifo_q" (pointer_declarator) "* q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem_wait(&q->lock);\n Queue_t * head = q->head;\n Sensor_t * sensor = head->sensor;\n /* If dequeue the last element */\n if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }\n free(head);\n q->currentSize--;\n q->valuesReleased++;\n sem_post(&q->lock);\n #ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif\n return sensor;\n}" ({) "{" (declaration) "int semStat;" (primitive_type) "int" (identifier) "semStat" (;) ";" (expression_statement) "sem_wait(&q->bufferEmptyBlock);" (call_expression) "sem_wait(&q->bufferEmptyBlock)" (identifier) "sem_wait" (argument_list) "(&q->bufferEmptyBlock)" (() "(" (pointer_expression) "&q->bufferEmptyBlock" (&) "&" (field_expression) "q->bufferEmptyBlock" (identifier) "q" (->) "->" (field_identifier) "bufferEmptyBlock" ()) ")" (;) ";" (expression_statement) "sem_wait(&q->lock);" (call_expression) "sem_wait(&q->lock)" (identifier) "sem_wait" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (declaration) "Queue_t * head = q->head;" (type_identifier) "Queue_t" (init_declarator) "* head = q->head" (pointer_declarator) "* head" (*) "*" (identifier) "head" (=) "=" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (;) ";" (declaration) "Sensor_t * sensor = head->sensor;" (type_identifier) "Sensor_t" (init_declarator) "* sensor = head->sensor" (pointer_declarator) "* sensor" (*) "*" (identifier) "sensor" (=) "=" (field_expression) "head->sensor" (identifier) "head" (->) "->" (field_identifier) "sensor" (;) ";" (comment) "/* If dequeue the last element */" (if_statement) "if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }" (if) "if" (parenthesized_expression) "(q->currentSize == 1)" (() "(" (binary_expression) "q->currentSize == 1" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n q->head = NULL;\n q->tail = NULL;\n }" ({) "{" (expression_statement) "q->head = NULL;" (assignment_expression) "q->head = NULL" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "q->tail = NULL;" (assignment_expression) "q->tail = NULL" (field_expression) "q->tail" (identifier) "q" (->) "->" (field_identifier) "tail" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else{\n q->head = head->next;\n }" (else) "else" (compound_statement) "{\n q->head = head->next;\n }" ({) "{" (expression_statement) "q->head = head->next;" (assignment_expression) "q->head = head->next" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (=) "=" (field_expression) "head->next" (identifier) "head" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "free(head);" (call_expression) "free(head)" (identifier) "free" (argument_list) "(head)" (() "(" (identifier) "head" ()) ")" (;) ";" (expression_statement) "q->currentSize--;" (update_expression) "q->currentSize--" (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" (--) "--" (;) ";" (expression_statement) "q->valuesReleased++;" (update_expression) "q->valuesReleased++" (field_expression) "q->valuesReleased" (identifier) "q" (->) "->" (field_identifier) "valuesReleased" (++) "++" (;) ";" (expression_statement) "sem_post(&q->lock);" (call_expression) "sem_post(&q->lock)" (identifier) "sem_post" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (preproc_ifdef) "#ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif" (#ifndef) "#ifndef" (identifier) "DLR" (expression_statement) "sem_post(&q->bufferFullBlock);" (call_expression) "sem_post(&q->bufferFullBlock)" (identifier) "sem_post" (argument_list) "(&q->bufferFullBlock)" (() "(" (pointer_expression) "&q->bufferFullBlock" (&) "&" (field_expression) "q->bufferFullBlock" (identifier) "q" (->) "->" (field_identifier) "bufferFullBlock" ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return sensor;" (return) "return" (identifier) "sensor" (;) ";" (}) "}" (function_definition) "Sensor_t *\ncreate_sensor_object(int value, int uid)\n{\n Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));\n sensor->value = value;\n sensor->uid = uid;\n return sensor;\n}" (type_identifier) "Sensor_t" (pointer_declarator) "*\ncreate_sensor_object(int value, int uid)" (*) "*" (function_declarator) "create_sensor_object(int value, int uid)" (identifier) "create_sensor_object" (parameter_list) "(int value, int uid)" (() "(" (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" (,) "," (parameter_declaration) "int uid" (primitive_type) "int" (identifier) "uid" ()) ")" (compound_statement) "{\n Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));\n sensor->value = value;\n sensor->uid = uid;\n return sensor;\n}" ({) "{" (declaration) "Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));" (type_identifier) "Sensor_t" (init_declarator) "* sensor = (Sensor_t *) malloc(sizeof(Sensor_t))" (pointer_declarator) "* sensor" (*) "*" (identifier) "sensor" (=) "=" (cast_expression) "(Sensor_t *) malloc(sizeof(Sensor_t))" (() "(" (type_descriptor) "Sensor_t *" (type_identifier) "Sensor_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Sensor_t))" (identifier) "malloc" (argument_list) "(sizeof(Sensor_t))" (() "(" (sizeof_expression) "sizeof(Sensor_t)" (sizeof) "sizeof" (parenthesized_expression) "(Sensor_t)" (() "(" (identifier) "Sensor_t" ()) ")" ()) ")" (;) ";" (expression_statement) "sensor->value = value;" (assignment_expression) "sensor->value = value" (field_expression) "sensor->value" (identifier) "sensor" (->) "->" (field_identifier) "value" (=) "=" (identifier) "value" (;) ";" (expression_statement) "sensor->uid = uid;" (assignment_expression) "sensor->uid = uid" (field_expression) "sensor->uid" (identifier) "sensor" (->) "->" (field_identifier) "uid" (=) "=" (identifier) "uid" (;) ";" (return_statement) "return sensor;" (return) "return" (identifier) "sensor" (;) ";" (}) "}" (function_definition) "void\nprint_queue(Fifo_q * q)\n{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf("\nContent of the queue with size=%d\n",q->currentSize);\n if(current == NULL){\n printf("The queue is empty!\n");\n sem_post(&q->lock);\n return;\n }\n while(current != NULL){\n printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }\n sem_post(&q->lock);\n}" (primitive_type) "void" (function_declarator) "print_queue(Fifo_q * q)" (identifier) "print_queue" (parameter_list) "(Fifo_q * q)" (() "(" (parameter_declaration) "Fifo_q * q" (type_identifier) "Fifo_q" (pointer_declarator) "* q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf("\nContent of the queue with size=%d\n",q->currentSize);\n if(current == NULL){\n printf("The queue is empty!\n");\n sem_post(&q->lock);\n return;\n }\n while(current != NULL){\n printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }\n sem_post(&q->lock);\n}" ({) "{" (expression_statement) "sem_wait(&q->lock);" (call_expression) "sem_wait(&q->lock)" (identifier) "sem_wait" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (declaration) "Queue_t * current = q->head;" (type_identifier) "Queue_t" (init_declarator) "* current = q->head" (pointer_declarator) "* current" (*) "*" (identifier) "current" (=) "=" (field_expression) "q->head" (identifier) "q" (->) "->" (field_identifier) "head" (;) ";" (expression_statement) "printf("\nContent of the queue with size=%d\n",q->currentSize);" (call_expression) "printf("\nContent of the queue with size=%d\n",q->currentSize)" (identifier) "printf" (argument_list) "("\nContent of the queue with size=%d\n",q->currentSize)" (() "(" (string_literal) ""\nContent of the queue with size=%d\n"" (") """ (escape_sequence) "\n" (string_content) "Content of the queue with size=%d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "q->currentSize" (identifier) "q" (->) "->" (field_identifier) "currentSize" ()) ")" (;) ";" (if_statement) "if(current == NULL){\n printf("The queue is empty!\n");\n sem_post(&q->lock);\n return;\n }" (if) "if" (parenthesized_expression) "(current == NULL)" (() "(" (binary_expression) "current == NULL" (identifier) "current" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("The queue is empty!\n");\n sem_post(&q->lock);\n return;\n }" ({) "{" (expression_statement) "printf("The queue is empty!\n");" (call_expression) "printf("The queue is empty!\n")" (identifier) "printf" (argument_list) "("The queue is empty!\n")" (() "(" (string_literal) ""The queue is empty!\n"" (") """ (string_content) "The queue is empty!" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "sem_post(&q->lock);" (call_expression) "sem_post(&q->lock)" (identifier) "sem_post" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (while_statement) "while(current != NULL){\n printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }" (while) "while" (parenthesized_expression) "(current != NULL)" (() "(" (binary_expression) "current != NULL" (identifier) "current" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }" ({) "{" (expression_statement) "printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid);" (call_expression) "printf("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid)" (identifier) "printf" (argument_list) "("sensor value=%d, sensor uid=%d\n",\n current->sensor->value, current->sensor->uid)" (() "(" (string_literal) ""sensor value=%d, sensor uid=%d\n"" (") """ (string_content) "sensor value=%d, sensor uid=%d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "current->sensor->value" (field_expression) "current->sensor" (identifier) "current" (->) "->" (field_identifier) "sensor" (->) "->" (field_identifier) "value" (,) "," (field_expression) "current->sensor->uid" (field_expression) "current->sensor" (identifier) "current" (->) "->" (field_identifier) "sensor" (->) "->" (field_identifier) "uid" ()) ")" (;) ";" (expression_statement) "current = current->next;" (assignment_expression) "current = current->next" (identifier) "current" (=) "=" (field_expression) "current->next" (identifier) "current" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "sem_post(&q->lock);" (call_expression) "sem_post(&q->lock)" (identifier) "sem_post" (argument_list) "(&q->lock)" (() "(" (pointer_expression) "&q->lock" (&) "&" (field_expression) "q->lock" (identifier) "q" (->) "->" (field_identifier) "lock" ()) ")" (;) ";" (}) "}"
976
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 26.56, "nodes": 596, "errors": 0, "source_hash": "e80a4e93a582f8cf386c36889497f8ba606f9ee56f516ffef4593993f9ddeba5", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <pthread.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<pthread.h>", "parent": 0, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <semaphore.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<semaphore.h>", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include \"types.h\"\n", "parent": null, "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": "\"types.h\"", "parent": 12, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include \"fifoqueue.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"fifoqueue.h\"", "parent": 15, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 22}}, {"id": 18, "type": "function_definition", "text": "Fifo_q * \ninit_queue(int size)\n{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = NULL;\n q->tail = NULL;\n q->maxSize = size;\n q->currentSize = 0;\n q->droppedValues = 0;\n q->largestBufferSize = 0;\n q->valuesReceived = 0;\n q->valuesReleased = 0;\n /*Queue empty from the beginning (block)*/\n sem_init(&q->bufferEmptyBlock, 0, 0);\n sem_init(&q->bufferFullBlock, 0, size);\n sem_init(&q->lock, 0, 1);\n return q;\n}", "parent": null, "children": [19, 20], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 48, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "Fifo_q", "parent": 18, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 20, "type": "pointer_declarator", "text": "* \ninit_queue(int size)", "parent": 18, "children": [21, 22], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 32, "column": 20}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}, {"id": 22, "type": "function_declarator", "text": "init_queue(int size)", "parent": 20, "children": [23, 24], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 20}}, {"id": 23, "type": "identifier", "text": "init_queue", "parent": 22, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 10}}, {"id": 24, "type": "parameter_list", "text": "(int size)", "parent": 22, "children": [25], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 20}}, {"id": 25, "type": "parameter_declaration", "text": "int size", "parent": 24, "children": [26, 27], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 19}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 14}}, {"id": 27, "type": "identifier", "text": "size", "parent": 25, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 19}}, {"id": 28, "type": "declaration", "text": "Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));", "parent": 18, "children": [29, 30], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 51}}, {"id": 29, "type": "type_identifier", "text": "Fifo_q", "parent": 28, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 30, "type": "init_declarator", "text": "* q = (Fifo_q *) malloc(sizeof(Fifo_q))", "parent": 28, "children": [31, 34, 35], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 50}}, {"id": 31, "type": "pointer_declarator", "text": "* q", "parent": 30, "children": [32, 33], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 14}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 33, "type": "identifier", "text": "q", "parent": 31, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 34, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 35, "type": "cast_expression", "text": "(Fifo_q *) malloc(sizeof(Fifo_q))", "parent": 30, "children": [36, 40], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 50}}, {"id": 36, "type": "type_descriptor", "text": "Fifo_q *", "parent": 35, "children": [37, 38], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 26}}, {"id": 37, "type": "type_identifier", "text": "Fifo_q", "parent": 36, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 24}}, {"id": 38, "type": "abstract_pointer_declarator", "text": "*", "parent": 36, "children": [39], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 40, "type": "call_expression", "text": "malloc(sizeof(Fifo_q))", "parent": 35, "children": [41, 42], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 50}}, {"id": 41, "type": "identifier", "text": "malloc", "parent": 40, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 34}}, {"id": 42, "type": "argument_list", "text": "(sizeof(Fifo_q))", "parent": 40, "children": [43], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 50}}, {"id": 43, "type": "sizeof_expression", "text": "sizeof(Fifo_q)", "parent": 42, "children": [44], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 49}}, {"id": 44, "type": "parenthesized_expression", "text": "(Fifo_q)", "parent": 43, "children": [45], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 49}}, {"id": 45, "type": "identifier", "text": "Fifo_q", "parent": 44, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 48}}, {"id": 46, "type": "assignment_expression", "text": "q->head = NULL", "parent": 18, "children": [47, 50, 51], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 18}}, {"id": 47, "type": "field_expression", "text": "q->head", "parent": 46, "children": [48, 49], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 48, "type": "identifier", "text": "q", "parent": 47, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 49, "type": "field_identifier", "text": "head", "parent": 47, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 50, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 51, "type": "null", "text": "NULL", "parent": 46, "children": [52], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 18}}, {"id": 52, "type": "NULL", "text": "NULL", "parent": 51, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 18}}, {"id": 53, "type": "assignment_expression", "text": "q->tail = NULL", "parent": 18, "children": [54, 57, 58], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 18}}, {"id": 54, "type": "field_expression", "text": "q->tail", "parent": 53, "children": [55, 56], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 55, "type": "identifier", "text": "q", "parent": 54, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 5}}, {"id": 56, "type": "field_identifier", "text": "tail", "parent": 54, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 11}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 13}}, {"id": 58, "type": "null", "text": "NULL", "parent": 53, "children": [59], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 59, "type": "NULL", "text": "NULL", "parent": 58, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 60, "type": "assignment_expression", "text": "q->maxSize = size", "parent": 18, "children": [61, 64, 65], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 21}}, {"id": 61, "type": "field_expression", "text": "q->maxSize", "parent": 60, "children": [62, 63], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 14}}, {"id": 62, "type": "identifier", "text": "q", "parent": 61, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 63, "type": "field_identifier", "text": "maxSize", "parent": 61, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 14}}, {"id": 64, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 16}}, {"id": 65, "type": "identifier", "text": "size", "parent": 60, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 21}}, {"id": 66, "type": "assignment_expression", "text": "q->currentSize = 0", "parent": 18, "children": [67, 70, 71], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 22}}, {"id": 67, "type": "field_expression", "text": "q->currentSize", "parent": 66, "children": [68, 69], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 18}}, {"id": 68, "type": "identifier", "text": "q", "parent": 67, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 5}}, {"id": 69, "type": "field_identifier", "text": "currentSize", "parent": 67, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 18}}, {"id": 70, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 66, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 22}}, {"id": 72, "type": "assignment_expression", "text": "q->droppedValues = 0", "parent": 18, "children": [73, 76, 77], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 24}}, {"id": 73, "type": "field_expression", "text": "q->droppedValues", "parent": 72, "children": [74, 75], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 20}}, {"id": 74, "type": "identifier", "text": "q", "parent": 73, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 75, "type": "field_identifier", "text": "droppedValues", "parent": 73, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 20}}, {"id": 76, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 77, "type": "number_literal", "text": "0", "parent": 72, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 24}}, {"id": 78, "type": "assignment_expression", "text": "q->largestBufferSize = 0", "parent": 18, "children": [79, 82, 83], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 28}}, {"id": 79, "type": "field_expression", "text": "q->largestBufferSize", "parent": 78, "children": [80, 81], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 24}}, {"id": 80, "type": "identifier", "text": "q", "parent": 79, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 81, "type": "field_identifier", "text": "largestBufferSize", "parent": 79, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 24}}, {"id": 82, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 26}}, {"id": 83, "type": "number_literal", "text": "0", "parent": 78, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 28}}, {"id": 84, "type": "assignment_expression", "text": "q->valuesReceived = 0", "parent": 18, "children": [85, 88, 89], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 25}}, {"id": 85, "type": "field_expression", "text": "q->valuesReceived", "parent": 84, "children": [86, 87], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 21}}, {"id": 86, "type": "identifier", "text": "q", "parent": 85, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 5}}, {"id": 87, "type": "field_identifier", "text": "valuesReceived", "parent": 85, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 21}}, {"id": 88, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 23}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 25}}, {"id": 90, "type": "assignment_expression", "text": "q->valuesReleased = 0", "parent": 18, "children": [91, 94, 95], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 25}}, {"id": 91, "type": "field_expression", "text": "q->valuesReleased", "parent": 90, "children": [92, 93], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 21}}, {"id": 92, "type": "identifier", "text": "q", "parent": 91, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 5}}, {"id": 93, "type": "field_identifier", "text": "valuesReleased", "parent": 91, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 21}}, {"id": 94, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 23}}, {"id": 95, "type": "number_literal", "text": "0", "parent": 90, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 25}}, {"id": 96, "type": "call_expression", "text": "sem_init(&q->bufferEmptyBlock, 0, 0)", "parent": 18, "children": [97, 98], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 40}}, {"id": 97, "type": "identifier", "text": "sem_init", "parent": 96, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 98, "type": "argument_list", "text": "(&q->bufferEmptyBlock, 0, 0)", "parent": 96, "children": [99, 103, 104], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 40}}, {"id": 99, "type": "pointer_expression", "text": "&q->bufferEmptyBlock", "parent": 98, "children": [100], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 33}}, {"id": 100, "type": "field_expression", "text": "q->bufferEmptyBlock", "parent": 99, "children": [101, 102], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 33}}, {"id": 101, "type": "identifier", "text": "q", "parent": 100, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 102, "type": "field_identifier", "text": "bufferEmptyBlock", "parent": 100, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 33}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 98, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 36}}, {"id": 104, "type": "number_literal", "text": "0", "parent": 98, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 39}}, {"id": 105, "type": "call_expression", "text": "sem_init(&q->bufferFullBlock, 0, size)", "parent": 18, "children": [106, 107], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 42}}, {"id": 106, "type": "identifier", "text": "sem_init", "parent": 105, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 12}}, {"id": 107, "type": "argument_list", "text": "(&q->bufferFullBlock, 0, size)", "parent": 105, "children": [108, 112, 113], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 42}}, {"id": 108, "type": "pointer_expression", "text": "&q->bufferFullBlock", "parent": 107, "children": [109], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 32}}, {"id": 109, "type": "field_expression", "text": "q->bufferFullBlock", "parent": 108, "children": [110, 111], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 32}}, {"id": 110, "type": "identifier", "text": "q", "parent": 109, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 111, "type": "field_identifier", "text": "bufferFullBlock", "parent": 109, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 32}}, {"id": 112, "type": "number_literal", "text": "0", "parent": 107, "children": [], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 35}}, {"id": 113, "type": "identifier", "text": "size", "parent": 107, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 41}}, {"id": 114, "type": "call_expression", "text": "sem_init(&q->lock, 0, 1)", "parent": 18, "children": [115, 116], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 28}}, {"id": 115, "type": "identifier", "text": "sem_init", "parent": 114, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 12}}, {"id": 116, "type": "argument_list", "text": "(&q->lock, 0, 1)", "parent": 114, "children": [117, 121, 122], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 28}}, {"id": 117, "type": "pointer_expression", "text": "&q->lock", "parent": 116, "children": [118], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 21}}, {"id": 118, "type": "field_expression", "text": "q->lock", "parent": 117, "children": [119, 120], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 21}}, {"id": 119, "type": "identifier", "text": "q", "parent": 118, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 120, "type": "field_identifier", "text": "lock", "parent": 118, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 21}}, {"id": 121, "type": "number_literal", "text": "0", "parent": 116, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 24}}, {"id": 122, "type": "number_literal", "text": "1", "parent": 116, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 27}}, {"id": 123, "type": "return_statement", "text": "return q;", "parent": 18, "children": [124], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 124, "type": "identifier", "text": "q", "parent": 123, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 125, "type": "function_definition", "text": "boolean\nis_full(Fifo_q * q)\n{\n if(q->currentSize < q->maxSize)\n return false;\n else\n return true;\n}", "parent": null, "children": [126, 127], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 57, "column": 1}}, {"id": 126, "type": "type_identifier", "text": "boolean", "parent": 125, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 11}}, {"id": 127, "type": "function_declarator", "text": "is_full(Fifo_q * q)", "parent": 125, "children": [128, 129], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 19}}, {"id": 128, "type": "identifier", "text": "is_full", "parent": 127, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 129, "type": "parameter_list", "text": "(Fifo_q * q)", "parent": 127, "children": [130], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 19}}, {"id": 130, "type": "parameter_declaration", "text": "Fifo_q * q", "parent": 129, "children": [131, 132], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 18}}, {"id": 131, "type": "type_identifier", "text": "Fifo_q", "parent": 130, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 132, "type": "pointer_declarator", "text": "* q", "parent": 130, "children": [133, 134], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 18}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 134, "type": "identifier", "text": "q", "parent": 132, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 135, "type": "if_statement", "text": "if(q->currentSize < q->maxSize)\n return false;\n else\n return true;", "parent": 125, "children": [136, 145, 147], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 56, "column": 20}}, {"id": 136, "type": "parenthesized_expression", "text": "(q->currentSize < q->maxSize)", "parent": 135, "children": [137], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 35}}, {"id": 137, "type": "binary_expression", "text": "q->currentSize < q->maxSize", "parent": 136, "children": [138, 141, 142], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 34}}, {"id": 138, "type": "field_expression", "text": "q->currentSize", "parent": 137, "children": [139, 140], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 21}}, {"id": 139, "type": "identifier", "text": "q", "parent": 138, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 8}}, {"id": 140, "type": "field_identifier", "text": "currentSize", "parent": 138, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 21}}, {"id": 141, "type": "<", "text": "<", "parent": 137, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 23}}, {"id": 142, "type": "field_expression", "text": "q->maxSize", "parent": 137, "children": [143, 144], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 34}}, {"id": 143, "type": "identifier", "text": "q", "parent": 142, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 144, "type": "field_identifier", "text": "maxSize", "parent": 142, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 34}}, {"id": 145, "type": "return_statement", "text": "return false;", "parent": 135, "children": [146], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 21}}, {"id": 146, "type": "false", "text": "false", "parent": 145, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 20}}, {"id": 147, "type": "else_clause", "text": "else\n return true;", "parent": 135, "children": [148], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 56, "column": 20}}, {"id": 148, "type": "return_statement", "text": "return true;", "parent": 147, "children": [149], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 20}}, {"id": 149, "type": "true", "text": "true", "parent": 148, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 19}}, {"id": 150, "type": "function_definition", "text": "boolean\nis_empty(Fifo_q * q)\n{\n if(q->head==NULL)\n return true;\n else\n return false; \n}", "parent": null, "children": [151, 152], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 66, "column": 1}}, {"id": 151, "type": "type_identifier", "text": "boolean", "parent": 150, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 11}}, {"id": 152, "type": "function_declarator", "text": "is_empty(Fifo_q * q)", "parent": 150, "children": [153, 154], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 20}}, {"id": 153, "type": "identifier", "text": "is_empty", "parent": 152, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 154, "type": "parameter_list", "text": "(Fifo_q * q)", "parent": 152, "children": [155], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 20}}, {"id": 155, "type": "parameter_declaration", "text": "Fifo_q * q", "parent": 154, "children": [156, 157], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 19}}, {"id": 156, "type": "type_identifier", "text": "Fifo_q", "parent": 155, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 15}}, {"id": 157, "type": "pointer_declarator", "text": "* q", "parent": 155, "children": [158, 159], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 19}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 159, "type": "identifier", "text": "q", "parent": 157, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 160, "type": "if_statement", "text": "if(q->head==NULL)\n return true;\n else\n return false;", "parent": 150, "children": [161, 169, 171], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 65, "column": 21}}, {"id": 161, "type": "parenthesized_expression", "text": "(q->head==NULL)", "parent": 160, "children": [162], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 21}}, {"id": 162, "type": "binary_expression", "text": "q->head==NULL", "parent": 161, "children": [163, 166, 167], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 20}}, {"id": 163, "type": "field_expression", "text": "q->head", "parent": 162, "children": [164, 165], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 14}}, {"id": 164, "type": "identifier", "text": "q", "parent": 163, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 8}}, {"id": 165, "type": "field_identifier", "text": "head", "parent": 163, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 14}}, {"id": 166, "type": "==", "text": "==", "parent": 162, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 16}}, {"id": 167, "type": "null", "text": "NULL", "parent": 162, "children": [168], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 20}}, {"id": 168, "type": "NULL", "text": "NULL", "parent": 167, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 20}}, {"id": 169, "type": "return_statement", "text": "return true;", "parent": 160, "children": [170], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 20}}, {"id": 170, "type": "true", "text": "true", "parent": 169, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 19}}, {"id": 171, "type": "else_clause", "text": "else\n return false;", "parent": 160, "children": [172], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 65, "column": 21}}, {"id": 172, "type": "return_statement", "text": "return false;", "parent": 171, "children": [173], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 21}}, {"id": 173, "type": "false", "text": "false", "parent": 172, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 20}}, {"id": 174, "type": "function_definition", "text": "int\nadd_to_queue(Fifo_q * q, Sensor_t * sensor)\n{\n\n if(q == NULL){\n printf(\"Error: Queue not initialized\\n\");\n free(sensor); //free if not appended\n return -1; \n } \n /* Drop Least Recently or Drop Most Recently */\n #ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif\n sem_wait(&q->lock);\n Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));\n new_elem->next = NULL;\n new_elem->sensor = sensor;\n if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;\n q->tail = new_elem;\n q->currentSize++;\n q->valuesReceived++;\n if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;\n sem_post(&q->lock);\n sem_post(&q->bufferEmptyBlock);\n return 1;\n}", "parent": null, "children": [175, 176], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 103, "column": 1}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 7}}, {"id": 176, "type": "function_declarator", "text": "add_to_queue(Fifo_q * q, Sensor_t * sensor)", "parent": 174, "children": [177, 178], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 43}}, {"id": 177, "type": "identifier", "text": "add_to_queue", "parent": 176, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 12}}, {"id": 178, "type": "parameter_list", "text": "(Fifo_q * q, Sensor_t * sensor)", "parent": 176, "children": [179, 184], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 43}}, {"id": 179, "type": "parameter_declaration", "text": "Fifo_q * q", "parent": 178, "children": [180, 181], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 23}}, {"id": 180, "type": "type_identifier", "text": "Fifo_q", "parent": 179, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 19}}, {"id": 181, "type": "pointer_declarator", "text": "* q", "parent": 179, "children": [182, 183], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 23}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 21}}, {"id": 183, "type": "identifier", "text": "q", "parent": 181, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 23}}, {"id": 184, "type": "parameter_declaration", "text": "Sensor_t * sensor", "parent": 178, "children": [185, 186], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 42}}, {"id": 185, "type": "type_identifier", "text": "Sensor_t", "parent": 184, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 33}}, {"id": 186, "type": "pointer_declarator", "text": "* sensor", "parent": 184, "children": [187, 188], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 42}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 35}}, {"id": 188, "type": "identifier", "text": "sensor", "parent": 186, "children": [], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 42}}, {"id": 189, "type": "if_statement", "text": "if(q == NULL){\n printf(\"Error: Queue not initialized\\n\");\n free(sensor); //free if not appended\n return -1; \n }", "parent": 174, "children": [190], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 76, "column": 5}}, {"id": 190, "type": "parenthesized_expression", "text": "(q == NULL)", "parent": 189, "children": [191], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 17}}, {"id": 191, "type": "binary_expression", "text": "q == NULL", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 16}}, {"id": 192, "type": "identifier", "text": "q", "parent": 191, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 8}}, {"id": 193, "type": "==", "text": "==", "parent": 191, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 11}}, {"id": 194, "type": "null", "text": "NULL", "parent": 191, "children": [195], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 16}}, {"id": 195, "type": "NULL", "text": "NULL", "parent": 194, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 16}}, {"id": 196, "type": "call_expression", "text": "printf(\"Error: Queue not initialized\\n\")", "parent": 189, "children": [197, 198], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 48}}, {"id": 197, "type": "identifier", "text": "printf", "parent": 196, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 14}}, {"id": 198, "type": "argument_list", "text": "(\"Error: Queue not initialized\\n\")", "parent": 196, "children": [199], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 48}}, {"id": 199, "type": "string_literal", "text": "\"Error: Queue not initialized\\n\"", "parent": 198, "children": [200], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 47}}, {"id": 200, "type": "escape_sequence", "text": "\\n", "parent": 199, "children": [], "start_point": {"row": 73, "column": 44}, "end_point": {"row": 73, "column": 46}}, {"id": 201, "type": "call_expression", "text": "free(sensor)", "parent": 189, "children": [202, 203], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 20}}, {"id": 202, "type": "identifier", "text": "free", "parent": 201, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 12}}, {"id": 203, "type": "argument_list", "text": "(sensor)", "parent": 201, "children": [204], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 20}}, {"id": 204, "type": "identifier", "text": "sensor", "parent": 203, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 19}}, {"id": 205, "type": "return_statement", "text": "return -1;", "parent": 189, "children": [206], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 18}}, {"id": 206, "type": "number_literal", "text": "-1", "parent": 205, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 17}}, {"id": 207, "type": "preproc_ifdef", "text": "#ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif", "parent": 174, "children": [208, 209, 210, 227, 236], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 86, "column": 10}}, {"id": 208, "type": "#ifdef", "text": "#ifdef", "parent": 207, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 10}}, {"id": 209, "type": "identifier", "text": "DLR", "parent": 207, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 14}}, {"id": 210, "type": "if_statement", "text": "if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }", "parent": 207, "children": [211], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 83, "column": 5}}, {"id": 211, "type": "parenthesized_expression", "text": "(is_full(q))", "parent": 210, "children": [212], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 18}}, {"id": 212, "type": "call_expression", "text": "is_full(q)", "parent": 211, "children": [213, 214], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 17}}, {"id": 213, "type": "identifier", "text": "is_full", "parent": 212, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 14}}, {"id": 214, "type": "argument_list", "text": "(q)", "parent": 212, "children": [215], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 17}}, {"id": 215, "type": "identifier", "text": "q", "parent": 214, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 16}}, {"id": 216, "type": "call_expression", "text": "pop_from_queue(q)", "parent": 210, "children": [217, 218], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 25}}, {"id": 217, "type": "identifier", "text": "pop_from_queue", "parent": 216, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 22}}, {"id": 218, "type": "argument_list", "text": "(q)", "parent": 216, "children": [219], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 25}}, {"id": 219, "type": "identifier", "text": "q", "parent": 218, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 24}}, {"id": 220, "type": "update_expression", "text": "q->droppedValues++", "parent": 210, "children": [221, 224], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 26}}, {"id": 221, "type": "field_expression", "text": "q->droppedValues", "parent": 220, "children": [222, 223], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 24}}, {"id": 222, "type": "identifier", "text": "q", "parent": 221, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 223, "type": "field_identifier", "text": "droppedValues", "parent": 221, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 24}}, {"id": 224, "type": "++", "text": "++", "parent": 220, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 26}}, {"id": 225, "type": "return_statement", "text": "return 0;", "parent": 210, "children": [226], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 17}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 16}}, {"id": 227, "type": "preproc_else", "text": "#else\n sem_wait(&q->bufferFullBlock);", "parent": 207, "children": [228], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 85, "column": 34}}, {"id": 228, "type": "#else", "text": "#else", "parent": 227, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 9}}, {"id": 229, "type": "call_expression", "text": "sem_wait(&q->bufferFullBlock)", "parent": 227, "children": [230, 231], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 33}}, {"id": 230, "type": "identifier", "text": "sem_wait", "parent": 229, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 12}}, {"id": 231, "type": "argument_list", "text": "(&q->bufferFullBlock)", "parent": 229, "children": [232], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 33}}, {"id": 232, "type": "pointer_expression", "text": "&q->bufferFullBlock", "parent": 231, "children": [233], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 32}}, {"id": 233, "type": "field_expression", "text": "q->bufferFullBlock", "parent": 232, "children": [234, 235], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 32}}, {"id": 234, "type": "identifier", "text": "q", "parent": 233, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 15}}, {"id": 235, "type": "field_identifier", "text": "bufferFullBlock", "parent": 233, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 32}}, {"id": 236, "type": "#endif", "text": "#endif", "parent": 207, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 10}}, {"id": 237, "type": "call_expression", "text": "sem_wait(&q->lock)", "parent": 174, "children": [238, 239], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 22}}, {"id": 238, "type": "identifier", "text": "sem_wait", "parent": 237, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 12}}, {"id": 239, "type": "argument_list", "text": "(&q->lock)", "parent": 237, "children": [240], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 22}}, {"id": 240, "type": "pointer_expression", "text": "&q->lock", "parent": 239, "children": [241], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 21}}, {"id": 241, "type": "field_expression", "text": "q->lock", "parent": 240, "children": [242, 243], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 21}}, {"id": 242, "type": "identifier", "text": "q", "parent": 241, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 15}}, {"id": 243, "type": "field_identifier", "text": "lock", "parent": 241, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 21}}, {"id": 244, "type": "declaration", "text": "Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));", "parent": 174, "children": [245, 246], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 61}}, {"id": 245, "type": "type_identifier", "text": "Queue_t", "parent": 244, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 11}}, {"id": 246, "type": "init_declarator", "text": "* new_elem = (Queue_t *) malloc(sizeof(Queue_t))", "parent": 244, "children": [247, 250, 251], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 60}}, {"id": 247, "type": "pointer_declarator", "text": "* new_elem", "parent": 246, "children": [248, 249], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 22}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 13}}, {"id": 249, "type": "identifier", "text": "new_elem", "parent": 247, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 22}}, {"id": 250, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 88, "column": 23}, "end_point": {"row": 88, "column": 24}}, {"id": 251, "type": "cast_expression", "text": "(Queue_t *) malloc(sizeof(Queue_t))", "parent": 246, "children": [252, 256], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 60}}, {"id": 252, "type": "type_descriptor", "text": "Queue_t *", "parent": 251, "children": [253, 254], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 35}}, {"id": 253, "type": "type_identifier", "text": "Queue_t", "parent": 252, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 33}}, {"id": 254, "type": "abstract_pointer_declarator", "text": "*", "parent": 252, "children": [255], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 35}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 35}}, {"id": 256, "type": "call_expression", "text": "malloc(sizeof(Queue_t))", "parent": 251, "children": [257, 258], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 60}}, {"id": 257, "type": "identifier", "text": "malloc", "parent": 256, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 43}}, {"id": 258, "type": "argument_list", "text": "(sizeof(Queue_t))", "parent": 256, "children": [259], "start_point": {"row": 88, "column": 43}, "end_point": {"row": 88, "column": 60}}, {"id": 259, "type": "sizeof_expression", "text": "sizeof(Queue_t)", "parent": 258, "children": [260], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 59}}, {"id": 260, "type": "parenthesized_expression", "text": "(Queue_t)", "parent": 259, "children": [261], "start_point": {"row": 88, "column": 50}, "end_point": {"row": 88, "column": 59}}, {"id": 261, "type": "identifier", "text": "Queue_t", "parent": 260, "children": [], "start_point": {"row": 88, "column": 51}, "end_point": {"row": 88, "column": 58}}, {"id": 262, "type": "assignment_expression", "text": "new_elem->next = NULL", "parent": 174, "children": [263, 266, 267], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 25}}, {"id": 263, "type": "field_expression", "text": "new_elem->next", "parent": 262, "children": [264, 265], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 18}}, {"id": 264, "type": "identifier", "text": "new_elem", "parent": 263, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 12}}, {"id": 265, "type": "field_identifier", "text": "next", "parent": 263, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 18}}, {"id": 266, "type": "=", "text": "=", "parent": 262, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 267, "type": "null", "text": "NULL", "parent": 262, "children": [268], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 25}}, {"id": 268, "type": "NULL", "text": "NULL", "parent": 267, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 25}}, {"id": 269, "type": "assignment_expression", "text": "new_elem->sensor = sensor", "parent": 174, "children": [270, 273, 274], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 29}}, {"id": 270, "type": "field_expression", "text": "new_elem->sensor", "parent": 269, "children": [271, 272], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 20}}, {"id": 271, "type": "identifier", "text": "new_elem", "parent": 270, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 12}}, {"id": 272, "type": "field_identifier", "text": "sensor", "parent": 270, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 20}}, {"id": 273, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 22}}, {"id": 274, "type": "identifier", "text": "sensor", "parent": 269, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 29}}, {"id": 275, "type": "if_statement", "text": "if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;", "parent": 174, "children": [276, 287], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 94, "column": 33}}, {"id": 276, "type": "parenthesized_expression", "text": "(is_empty(q))", "parent": 275, "children": [277], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 19}}, {"id": 277, "type": "call_expression", "text": "is_empty(q)", "parent": 276, "children": [278, 279], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 18}}, {"id": 278, "type": "identifier", "text": "is_empty", "parent": 277, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 15}}, {"id": 279, "type": "argument_list", "text": "(q)", "parent": 277, "children": [280], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 18}}, {"id": 280, "type": "identifier", "text": "q", "parent": 279, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 17}}, {"id": 281, "type": "assignment_expression", "text": "q->head = new_elem", "parent": 275, "children": [282, 285, 286], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 26}}, {"id": 282, "type": "field_expression", "text": "q->head", "parent": 281, "children": [283, 284], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 15}}, {"id": 283, "type": "identifier", "text": "q", "parent": 282, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 284, "type": "field_identifier", "text": "head", "parent": 282, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 15}}, {"id": 285, "type": "=", "text": "=", "parent": 281, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 17}}, {"id": 286, "type": "identifier", "text": "new_elem", "parent": 281, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 26}}, {"id": 287, "type": "else_clause", "text": "else\n q->tail->next = new_elem;", "parent": 275, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 94, "column": 33}}, {"id": 288, "type": "assignment_expression", "text": "q->tail->next = new_elem", "parent": 287, "children": [289, 294, 295], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 32}}, {"id": 289, "type": "field_expression", "text": "q->tail->next", "parent": 288, "children": [290, 293], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 21}}, {"id": 290, "type": "field_expression", "text": "q->tail", "parent": 289, "children": [291, 292], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 15}}, {"id": 291, "type": "identifier", "text": "q", "parent": 290, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 9}}, {"id": 292, "type": "field_identifier", "text": "tail", "parent": 290, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 15}}, {"id": 293, "type": "field_identifier", "text": "next", "parent": 289, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 21}}, {"id": 294, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 23}}, {"id": 295, "type": "identifier", "text": "new_elem", "parent": 288, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 32}}, {"id": 296, "type": "assignment_expression", "text": "q->tail = new_elem", "parent": 174, "children": [297, 300, 301], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 22}}, {"id": 297, "type": "field_expression", "text": "q->tail", "parent": 296, "children": [298, 299], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 11}}, {"id": 298, "type": "identifier", "text": "q", "parent": 297, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 299, "type": "field_identifier", "text": "tail", "parent": 297, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 11}}, {"id": 300, "type": "=", "text": "=", "parent": 296, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 301, "type": "identifier", "text": "new_elem", "parent": 296, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 22}}, {"id": 302, "type": "update_expression", "text": "q->currentSize++", "parent": 174, "children": [303, 306], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 20}}, {"id": 303, "type": "field_expression", "text": "q->currentSize", "parent": 302, "children": [304, 305], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 18}}, {"id": 304, "type": "identifier", "text": "q", "parent": 303, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 5}}, {"id": 305, "type": "field_identifier", "text": "currentSize", "parent": 303, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 18}}, {"id": 306, "type": "++", "text": "++", "parent": 302, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 20}}, {"id": 307, "type": "update_expression", "text": "q->valuesReceived++", "parent": 174, "children": [308, 311], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 23}}, {"id": 308, "type": "field_expression", "text": "q->valuesReceived", "parent": 307, "children": [309, 310], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 21}}, {"id": 309, "type": "identifier", "text": "q", "parent": 308, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 310, "type": "field_identifier", "text": "valuesReceived", "parent": 308, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 21}}, {"id": 311, "type": "++", "text": "++", "parent": 307, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 23}}, {"id": 312, "type": "if_statement", "text": "if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;", "parent": 174, "children": [313], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 99, "column": 46}}, {"id": 313, "type": "parenthesized_expression", "text": "(q->currentSize > q->largestBufferSize)", "parent": 312, "children": [314], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 45}}, {"id": 314, "type": "binary_expression", "text": "q->currentSize > q->largestBufferSize", "parent": 313, "children": [315, 318, 319], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 44}}, {"id": 315, "type": "field_expression", "text": "q->currentSize", "parent": 314, "children": [316, 317], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 21}}, {"id": 316, "type": "identifier", "text": "q", "parent": 315, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 8}}, {"id": 317, "type": "field_identifier", "text": "currentSize", "parent": 315, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 21}}, {"id": 318, "type": ">", "text": ">", "parent": 314, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 23}}, {"id": 319, "type": "field_expression", "text": "q->largestBufferSize", "parent": 314, "children": [320, 321], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 44}}, {"id": 320, "type": "identifier", "text": "q", "parent": 319, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 25}}, {"id": 321, "type": "field_identifier", "text": "largestBufferSize", "parent": 319, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 44}}, {"id": 322, "type": "assignment_expression", "text": "q->largestBufferSize = q->currentSize", "parent": 312, "children": [323, 326, 327], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 45}}, {"id": 323, "type": "field_expression", "text": "q->largestBufferSize", "parent": 322, "children": [324, 325], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 28}}, {"id": 324, "type": "identifier", "text": "q", "parent": 323, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 325, "type": "field_identifier", "text": "largestBufferSize", "parent": 323, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 28}}, {"id": 326, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 30}}, {"id": 327, "type": "field_expression", "text": "q->currentSize", "parent": 322, "children": [328, 329], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 45}}, {"id": 328, "type": "identifier", "text": "q", "parent": 327, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 32}}, {"id": 329, "type": "field_identifier", "text": "currentSize", "parent": 327, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 45}}, {"id": 330, "type": "call_expression", "text": "sem_post(&q->lock)", "parent": 174, "children": [331, 332], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 22}}, {"id": 331, "type": "identifier", "text": "sem_post", "parent": 330, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 12}}, {"id": 332, "type": "argument_list", "text": "(&q->lock)", "parent": 330, "children": [333], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 22}}, {"id": 333, "type": "pointer_expression", "text": "&q->lock", "parent": 332, "children": [334], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 21}}, {"id": 334, "type": "field_expression", "text": "q->lock", "parent": 333, "children": [335, 336], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 21}}, {"id": 335, "type": "identifier", "text": "q", "parent": 334, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 15}}, {"id": 336, "type": "field_identifier", "text": "lock", "parent": 334, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 21}}, {"id": 337, "type": "call_expression", "text": "sem_post(&q->bufferEmptyBlock)", "parent": 174, "children": [338, 339], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 34}}, {"id": 338, "type": "identifier", "text": "sem_post", "parent": 337, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 12}}, {"id": 339, "type": "argument_list", "text": "(&q->bufferEmptyBlock)", "parent": 337, "children": [340], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 34}}, {"id": 340, "type": "pointer_expression", "text": "&q->bufferEmptyBlock", "parent": 339, "children": [341], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 33}}, {"id": 341, "type": "field_expression", "text": "q->bufferEmptyBlock", "parent": 340, "children": [342, 343], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 33}}, {"id": 342, "type": "identifier", "text": "q", "parent": 341, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 15}}, {"id": 343, "type": "field_identifier", "text": "bufferEmptyBlock", "parent": 341, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 33}}, {"id": 344, "type": "return_statement", "text": "return 1;", "parent": 174, "children": [345], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 13}}, {"id": 345, "type": "number_literal", "text": "1", "parent": 344, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 12}}, {"id": 346, "type": "function_definition", "text": "Sensor_t *\npop_from_queue(Fifo_q * q)\n{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem_wait(&q->lock);\n Queue_t * head = q->head;\n Sensor_t * sensor = head->sensor;\n /* If dequeue the last element */\n if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }\n free(head);\n q->currentSize--;\n q->valuesReleased++;\n sem_post(&q->lock);\n #ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif\n return sensor;\n}", "parent": null, "children": [347, 348], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 128, "column": 1}}, {"id": 347, "type": "type_identifier", "text": "Sensor_t", "parent": 346, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 12}}, {"id": 348, "type": "pointer_declarator", "text": "*\npop_from_queue(Fifo_q * q)", "parent": 346, "children": [349, 350], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 106, "column": 26}}, {"id": 349, "type": "*", "text": "*", "parent": 348, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 14}}, {"id": 350, "type": "function_declarator", "text": "pop_from_queue(Fifo_q * q)", "parent": 348, "children": [351, 352], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 26}}, {"id": 351, "type": "identifier", "text": "pop_from_queue", "parent": 350, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 14}}, {"id": 352, "type": "parameter_list", "text": "(Fifo_q * q)", "parent": 350, "children": [353], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 26}}, {"id": 353, "type": "parameter_declaration", "text": "Fifo_q * q", "parent": 352, "children": [354, 355], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 25}}, {"id": 354, "type": "type_identifier", "text": "Fifo_q", "parent": 353, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 21}}, {"id": 355, "type": "pointer_declarator", "text": "* q", "parent": 353, "children": [356, 357], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 25}}, {"id": 356, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 357, "type": "identifier", "text": "q", "parent": 355, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 358, "type": "declaration", "text": "int semStat;", "parent": 346, "children": [359, 360], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 16}}, {"id": 359, "type": "primitive_type", "text": "int", "parent": 358, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 7}}, {"id": 360, "type": "identifier", "text": "semStat", "parent": 358, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 15}}, {"id": 361, "type": "call_expression", "text": "sem_wait(&q->bufferEmptyBlock)", "parent": 346, "children": [362, 363], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 34}}, {"id": 362, "type": "identifier", "text": "sem_wait", "parent": 361, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 12}}, {"id": 363, "type": "argument_list", "text": "(&q->bufferEmptyBlock)", "parent": 361, "children": [364], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 34}}, {"id": 364, "type": "pointer_expression", "text": "&q->bufferEmptyBlock", "parent": 363, "children": [365], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 33}}, {"id": 365, "type": "field_expression", "text": "q->bufferEmptyBlock", "parent": 364, "children": [366, 367], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 33}}, {"id": 366, "type": "identifier", "text": "q", "parent": 365, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 15}}, {"id": 367, "type": "field_identifier", "text": "bufferEmptyBlock", "parent": 365, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 33}}, {"id": 368, "type": "call_expression", "text": "sem_wait(&q->lock)", "parent": 346, "children": [369, 370], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 22}}, {"id": 369, "type": "identifier", "text": "sem_wait", "parent": 368, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 12}}, {"id": 370, "type": "argument_list", "text": "(&q->lock)", "parent": 368, "children": [371], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 22}}, {"id": 371, "type": "pointer_expression", "text": "&q->lock", "parent": 370, "children": [372], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 21}}, {"id": 372, "type": "field_expression", "text": "q->lock", "parent": 371, "children": [373, 374], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 21}}, {"id": 373, "type": "identifier", "text": "q", "parent": 372, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 15}}, {"id": 374, "type": "field_identifier", "text": "lock", "parent": 372, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 21}}, {"id": 375, "type": "declaration", "text": "Queue_t * head = q->head;", "parent": 346, "children": [376, 377], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 29}}, {"id": 376, "type": "type_identifier", "text": "Queue_t", "parent": 375, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 11}}, {"id": 377, "type": "init_declarator", "text": "* head = q->head", "parent": 375, "children": [378, 381, 382], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 28}}, {"id": 378, "type": "pointer_declarator", "text": "* head", "parent": 377, "children": [379, 380], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 18}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 13}}, {"id": 380, "type": "identifier", "text": "head", "parent": 378, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 18}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 20}}, {"id": 382, "type": "field_expression", "text": "q->head", "parent": 377, "children": [383, 384], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 28}}, {"id": 383, "type": "identifier", "text": "q", "parent": 382, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 22}}, {"id": 384, "type": "field_identifier", "text": "head", "parent": 382, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 28}}, {"id": 385, "type": "declaration", "text": "Sensor_t * sensor = head->sensor;", "parent": 346, "children": [386, 387], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 37}}, {"id": 386, "type": "type_identifier", "text": "Sensor_t", "parent": 385, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 12}}, {"id": 387, "type": "init_declarator", "text": "* sensor = head->sensor", "parent": 385, "children": [388, 391, 392], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 36}}, {"id": 388, "type": "pointer_declarator", "text": "* sensor", "parent": 387, "children": [389, 390], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 21}}, {"id": 389, "type": "*", "text": "*", "parent": 388, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 14}}, {"id": 390, "type": "identifier", "text": "sensor", "parent": 388, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 21}}, {"id": 391, "type": "=", "text": "=", "parent": 387, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 23}}, {"id": 392, "type": "field_expression", "text": "head->sensor", "parent": 387, "children": [393, 394], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 36}}, {"id": 393, "type": "identifier", "text": "head", "parent": 392, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 28}}, {"id": 394, "type": "field_identifier", "text": "sensor", "parent": 392, "children": [], "start_point": {"row": 112, "column": 30}, "end_point": {"row": 112, "column": 36}}, {"id": 395, "type": "if_statement", "text": "if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }", "parent": 346, "children": [396, 417], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 396, "type": "parenthesized_expression", "text": "(q->currentSize == 1)", "parent": 395, "children": [397], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 27}}, {"id": 397, "type": "binary_expression", "text": "q->currentSize == 1", "parent": 396, "children": [398, 401, 402], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 26}}, {"id": 398, "type": "field_expression", "text": "q->currentSize", "parent": 397, "children": [399, 400], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 21}}, {"id": 399, "type": "identifier", "text": "q", "parent": 398, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 8}}, {"id": 400, "type": "field_identifier", "text": "currentSize", "parent": 398, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 21}}, {"id": 401, "type": "==", "text": "==", "parent": 397, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 24}}, {"id": 402, "type": "number_literal", "text": "1", "parent": 397, "children": [], "start_point": {"row": 114, "column": 25}, "end_point": {"row": 114, "column": 26}}, {"id": 403, "type": "assignment_expression", "text": "q->head = NULL", "parent": 395, "children": [404, 407, 408], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 22}}, {"id": 404, "type": "field_expression", "text": "q->head", "parent": 403, "children": [405, 406], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 15}}, {"id": 405, "type": "identifier", "text": "q", "parent": 404, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 9}}, {"id": 406, "type": "field_identifier", "text": "head", "parent": 404, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 15}}, {"id": 407, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 17}}, {"id": 408, "type": "null", "text": "NULL", "parent": 403, "children": [409], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 22}}, {"id": 409, "type": "NULL", "text": "NULL", "parent": 408, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 22}}, {"id": 410, "type": "assignment_expression", "text": "q->tail = NULL", "parent": 395, "children": [411, 414, 415], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 22}}, {"id": 411, "type": "field_expression", "text": "q->tail", "parent": 410, "children": [412, 413], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 15}}, {"id": 412, "type": "identifier", "text": "q", "parent": 411, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 9}}, {"id": 413, "type": "field_identifier", "text": "tail", "parent": 411, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 15}}, {"id": 414, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 17}}, {"id": 415, "type": "null", "text": "NULL", "parent": 410, "children": [416], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 22}}, {"id": 416, "type": "NULL", "text": "NULL", "parent": 415, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 22}}, {"id": 417, "type": "else_clause", "text": "else{\n q->head = head->next;\n }", "parent": 395, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 119, "column": 5}}, {"id": 418, "type": "assignment_expression", "text": "q->head = head->next", "parent": 417, "children": [419, 422, 423], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 28}}, {"id": 419, "type": "field_expression", "text": "q->head", "parent": 418, "children": [420, 421], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 15}}, {"id": 420, "type": "identifier", "text": "q", "parent": 419, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 9}}, {"id": 421, "type": "field_identifier", "text": "head", "parent": 419, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 15}}, {"id": 422, "type": "=", "text": "=", "parent": 418, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 423, "type": "field_expression", "text": "head->next", "parent": 418, "children": [424, 425], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 28}}, {"id": 424, "type": "identifier", "text": "head", "parent": 423, "children": [], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 22}}, {"id": 425, "type": "field_identifier", "text": "next", "parent": 423, "children": [], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 28}}, {"id": 426, "type": "call_expression", "text": "free(head)", "parent": 346, "children": [427, 428], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 14}}, {"id": 427, "type": "identifier", "text": "free", "parent": 426, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 8}}, {"id": 428, "type": "argument_list", "text": "(head)", "parent": 426, "children": [429], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 14}}, {"id": 429, "type": "identifier", "text": "head", "parent": 428, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 13}}, {"id": 430, "type": "update_expression", "text": "q->currentSize--", "parent": 346, "children": [431, 434], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 20}}, {"id": 431, "type": "field_expression", "text": "q->currentSize", "parent": 430, "children": [432, 433], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 18}}, {"id": 432, "type": "identifier", "text": "q", "parent": 431, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 5}}, {"id": 433, "type": "field_identifier", "text": "currentSize", "parent": 431, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 18}}, {"id": 434, "type": "--", "text": "--", "parent": 430, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 20}}, {"id": 435, "type": "update_expression", "text": "q->valuesReleased++", "parent": 346, "children": [436, 439], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 23}}, {"id": 436, "type": "field_expression", "text": "q->valuesReleased", "parent": 435, "children": [437, 438], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 21}}, {"id": 437, "type": "identifier", "text": "q", "parent": 436, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 5}}, {"id": 438, "type": "field_identifier", "text": "valuesReleased", "parent": 436, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 21}}, {"id": 439, "type": "++", "text": "++", "parent": 435, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 23}}, {"id": 440, "type": "call_expression", "text": "sem_post(&q->lock)", "parent": 346, "children": [441, 442], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 22}}, {"id": 441, "type": "identifier", "text": "sem_post", "parent": 440, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 12}}, {"id": 442, "type": "argument_list", "text": "(&q->lock)", "parent": 440, "children": [443], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 22}}, {"id": 443, "type": "pointer_expression", "text": "&q->lock", "parent": 442, "children": [444], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 21}}, {"id": 444, "type": "field_expression", "text": "q->lock", "parent": 443, "children": [445, 446], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 21}}, {"id": 445, "type": "identifier", "text": "q", "parent": 444, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 15}}, {"id": 446, "type": "field_identifier", "text": "lock", "parent": 444, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 21}}, {"id": 447, "type": "preproc_ifdef", "text": "#ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif", "parent": 346, "children": [448, 449, 457], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 448, "type": "#ifndef", "text": "#ifndef", "parent": 447, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 11}}, {"id": 449, "type": "identifier", "text": "DLR", "parent": 447, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 15}}, {"id": 450, "type": "call_expression", "text": "sem_post(&q->bufferFullBlock)", "parent": 447, "children": [451, 452], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 33}}, {"id": 451, "type": "identifier", "text": "sem_post", "parent": 450, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 12}}, {"id": 452, "type": "argument_list", "text": "(&q->bufferFullBlock)", "parent": 450, "children": [453], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 33}}, {"id": 453, "type": "pointer_expression", "text": "&q->bufferFullBlock", "parent": 452, "children": [454], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 32}}, {"id": 454, "type": "field_expression", "text": "q->bufferFullBlock", "parent": 453, "children": [455, 456], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 32}}, {"id": 455, "type": "identifier", "text": "q", "parent": 454, "children": [], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 15}}, {"id": 456, "type": "field_identifier", "text": "bufferFullBlock", "parent": 454, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 32}}, {"id": 457, "type": "#endif", "text": "#endif", "parent": 447, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 458, "type": "return_statement", "text": "return sensor;", "parent": 346, "children": [459], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 18}}, {"id": 459, "type": "identifier", "text": "sensor", "parent": 458, "children": [], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 17}}, {"id": 460, "type": "function_definition", "text": "Sensor_t *\ncreate_sensor_object(int value, int uid)\n{\n Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));\n sensor->value = value;\n sensor->uid = uid;\n return sensor;\n}", "parent": null, "children": [461, 462], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 137, "column": 1}}, {"id": 461, "type": "type_identifier", "text": "Sensor_t", "parent": 460, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 12}}, {"id": 462, "type": "pointer_declarator", "text": "*\ncreate_sensor_object(int value, int uid)", "parent": 460, "children": [463, 464], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 131, "column": 40}}, {"id": 463, "type": "*", "text": "*", "parent": 462, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 14}}, {"id": 464, "type": "function_declarator", "text": "create_sensor_object(int value, int uid)", "parent": 462, "children": [465, 466], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 40}}, {"id": 465, "type": "identifier", "text": "create_sensor_object", "parent": 464, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 20}}, {"id": 466, "type": "parameter_list", "text": "(int value, int uid)", "parent": 464, "children": [467, 470], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 40}}, {"id": 467, "type": "parameter_declaration", "text": "int value", "parent": 466, "children": [468, 469], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 30}}, {"id": 468, "type": "primitive_type", "text": "int", "parent": 467, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 24}}, {"id": 469, "type": "identifier", "text": "value", "parent": 467, "children": [], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 30}}, {"id": 470, "type": "parameter_declaration", "text": "int uid", "parent": 466, "children": [471, 472], "start_point": {"row": 131, "column": 32}, "end_point": {"row": 131, "column": 39}}, {"id": 471, "type": "primitive_type", "text": "int", "parent": 470, "children": [], "start_point": {"row": 131, "column": 32}, "end_point": {"row": 131, "column": 35}}, {"id": 472, "type": "identifier", "text": "uid", "parent": 470, "children": [], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 39}}, {"id": 473, "type": "declaration", "text": "Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));", "parent": 460, "children": [474, 475], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 62}}, {"id": 474, "type": "type_identifier", "text": "Sensor_t", "parent": 473, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 12}}, {"id": 475, "type": "init_declarator", "text": "* sensor = (Sensor_t *) malloc(sizeof(Sensor_t))", "parent": 473, "children": [476, 479, 480], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 61}}, {"id": 476, "type": "pointer_declarator", "text": "* sensor", "parent": 475, "children": [477, 478], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 21}}, {"id": 477, "type": "*", "text": "*", "parent": 476, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 14}}, {"id": 478, "type": "identifier", "text": "sensor", "parent": 476, "children": [], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 21}}, {"id": 479, "type": "=", "text": "=", "parent": 475, "children": [], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 23}}, {"id": 480, "type": "cast_expression", "text": "(Sensor_t *) malloc(sizeof(Sensor_t))", "parent": 475, "children": [481, 485], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 61}}, {"id": 481, "type": "type_descriptor", "text": "Sensor_t *", "parent": 480, "children": [482, 483], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 35}}, {"id": 482, "type": "type_identifier", "text": "Sensor_t", "parent": 481, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 33}}, {"id": 483, "type": "abstract_pointer_declarator", "text": "*", "parent": 481, "children": [484], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 35}}, {"id": 484, "type": "*", "text": "*", "parent": 483, "children": [], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 35}}, {"id": 485, "type": "call_expression", "text": "malloc(sizeof(Sensor_t))", "parent": 480, "children": [486, 487], "start_point": {"row": 133, "column": 37}, "end_point": {"row": 133, "column": 61}}, {"id": 486, "type": "identifier", "text": "malloc", "parent": 485, "children": [], "start_point": {"row": 133, "column": 37}, "end_point": {"row": 133, "column": 43}}, {"id": 487, "type": "argument_list", "text": "(sizeof(Sensor_t))", "parent": 485, "children": [488], "start_point": {"row": 133, "column": 43}, "end_point": {"row": 133, "column": 61}}, {"id": 488, "type": "sizeof_expression", "text": "sizeof(Sensor_t)", "parent": 487, "children": [489], "start_point": {"row": 133, "column": 44}, "end_point": {"row": 133, "column": 60}}, {"id": 489, "type": "parenthesized_expression", "text": "(Sensor_t)", "parent": 488, "children": [490], "start_point": {"row": 133, "column": 50}, "end_point": {"row": 133, "column": 60}}, {"id": 490, "type": "identifier", "text": "Sensor_t", "parent": 489, "children": [], "start_point": {"row": 133, "column": 51}, "end_point": {"row": 133, "column": 59}}, {"id": 491, "type": "assignment_expression", "text": "sensor->value = value", "parent": 460, "children": [492, 495, 496], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 25}}, {"id": 492, "type": "field_expression", "text": "sensor->value", "parent": 491, "children": [493, 494], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 17}}, {"id": 493, "type": "identifier", "text": "sensor", "parent": 492, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 10}}, {"id": 494, "type": "field_identifier", "text": "value", "parent": 492, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 17}}, {"id": 495, "type": "=", "text": "=", "parent": 491, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 19}}, {"id": 496, "type": "identifier", "text": "value", "parent": 491, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 25}}, {"id": 497, "type": "assignment_expression", "text": "sensor->uid = uid", "parent": 460, "children": [498, 501, 502], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 21}}, {"id": 498, "type": "field_expression", "text": "sensor->uid", "parent": 497, "children": [499, 500], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 15}}, {"id": 499, "type": "identifier", "text": "sensor", "parent": 498, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 10}}, {"id": 500, "type": "field_identifier", "text": "uid", "parent": 498, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 15}}, {"id": 501, "type": "=", "text": "=", "parent": 497, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 17}}, {"id": 502, "type": "identifier", "text": "uid", "parent": 497, "children": [], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 21}}, {"id": 503, "type": "return_statement", "text": "return sensor;", "parent": 460, "children": [504], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 18}}, {"id": 504, "type": "identifier", "text": "sensor", "parent": 503, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 17}}, {"id": 505, "type": "function_definition", "text": "void\nprint_queue(Fifo_q * q)\n{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf(\"\\nContent of the queue with size=%d\\n\",q->currentSize);\n if(current == NULL){\n printf(\"The queue is empty!\\n\");\n sem_post(&q->lock);\n return;\n }\n while(current != NULL){\n printf(\"sensor value=%d, sensor uid=%d\\n\",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }\n sem_post(&q->lock);\n}", "parent": null, "children": [506, 507], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 155, "column": 1}}, {"id": 506, "type": "primitive_type", "text": "void", "parent": 505, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 8}}, {"id": 507, "type": "function_declarator", "text": "print_queue(Fifo_q * q)", "parent": 505, "children": [508, 509], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 23}}, {"id": 508, "type": "identifier", "text": "print_queue", "parent": 507, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 11}}, {"id": 509, "type": "parameter_list", "text": "(Fifo_q * q)", "parent": 507, "children": [510], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 23}}, {"id": 510, "type": "parameter_declaration", "text": "Fifo_q * q", "parent": 509, "children": [511, 512], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 22}}, {"id": 511, "type": "type_identifier", "text": "Fifo_q", "parent": 510, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 18}}, {"id": 512, "type": "pointer_declarator", "text": "* q", "parent": 510, "children": [513, 514], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 22}}, {"id": 513, "type": "*", "text": "*", "parent": 512, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 20}}, {"id": 514, "type": "identifier", "text": "q", "parent": 512, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 22}}, {"id": 515, "type": "call_expression", "text": "sem_wait(&q->lock)", "parent": 505, "children": [516, 517], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 22}}, {"id": 516, "type": "identifier", "text": "sem_wait", "parent": 515, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 12}}, {"id": 517, "type": "argument_list", "text": "(&q->lock)", "parent": 515, "children": [518], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 22}}, {"id": 518, "type": "pointer_expression", "text": "&q->lock", "parent": 517, "children": [519], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 21}}, {"id": 519, "type": "field_expression", "text": "q->lock", "parent": 518, "children": [520, 521], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 21}}, {"id": 520, "type": "identifier", "text": "q", "parent": 519, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 521, "type": "field_identifier", "text": "lock", "parent": 519, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 21}}, {"id": 522, "type": "declaration", "text": "Queue_t * current = q->head;", "parent": 505, "children": [523, 524], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 32}}, {"id": 523, "type": "type_identifier", "text": "Queue_t", "parent": 522, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 11}}, {"id": 524, "type": "init_declarator", "text": "* current = q->head", "parent": 522, "children": [525, 528, 529], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 31}}, {"id": 525, "type": "pointer_declarator", "text": "* current", "parent": 524, "children": [526, 527], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 21}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 13}}, {"id": 527, "type": "identifier", "text": "current", "parent": 525, "children": [], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 21}}, {"id": 528, "type": "=", "text": "=", "parent": 524, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 23}}, {"id": 529, "type": "field_expression", "text": "q->head", "parent": 524, "children": [530, 531], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 31}}, {"id": 530, "type": "identifier", "text": "q", "parent": 529, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 25}}, {"id": 531, "type": "field_identifier", "text": "head", "parent": 529, "children": [], "start_point": {"row": 142, "column": 27}, "end_point": {"row": 142, "column": 31}}, {"id": 532, "type": "call_expression", "text": "printf(\"\\nContent of the queue with size=%d\\n\",q->currentSize)", "parent": 505, "children": [533, 534], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 66}}, {"id": 533, "type": "identifier", "text": "printf", "parent": 532, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 10}}, {"id": 534, "type": "argument_list", "text": "(\"\\nContent of the queue with size=%d\\n\",q->currentSize)", "parent": 532, "children": [535, 538], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 66}}, {"id": 535, "type": "string_literal", "text": "\"\\nContent of the queue with size=%d\\n\"", "parent": 534, "children": [536, 537], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 50}}, {"id": 536, "type": "escape_sequence", "text": "\\n", "parent": 535, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 14}}, {"id": 537, "type": "escape_sequence", "text": "\\n", "parent": 535, "children": [], "start_point": {"row": 143, "column": 47}, "end_point": {"row": 143, "column": 49}}, {"id": 538, "type": "field_expression", "text": "q->currentSize", "parent": 534, "children": [539, 540], "start_point": {"row": 143, "column": 51}, "end_point": {"row": 143, "column": 65}}, {"id": 539, "type": "identifier", "text": "q", "parent": 538, "children": [], "start_point": {"row": 143, "column": 51}, "end_point": {"row": 143, "column": 52}}, {"id": 540, "type": "field_identifier", "text": "currentSize", "parent": 538, "children": [], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 65}}, {"id": 541, "type": "if_statement", "text": "if(current == NULL){\n printf(\"The queue is empty!\\n\");\n sem_post(&q->lock);\n return;\n }", "parent": 505, "children": [542], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 148, "column": 5}}, {"id": 542, "type": "parenthesized_expression", "text": "(current == NULL)", "parent": 541, "children": [543], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 23}}, {"id": 543, "type": "binary_expression", "text": "current == NULL", "parent": 542, "children": [544, 545, 546], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 22}}, {"id": 544, "type": "identifier", "text": "current", "parent": 543, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 14}}, {"id": 545, "type": "==", "text": "==", "parent": 543, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 17}}, {"id": 546, "type": "null", "text": "NULL", "parent": 543, "children": [547], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 22}}, {"id": 547, "type": "NULL", "text": "NULL", "parent": 546, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 22}}, {"id": 548, "type": "call_expression", "text": "printf(\"The queue is empty!\\n\")", "parent": 541, "children": [549, 550], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 39}}, {"id": 549, "type": "identifier", "text": "printf", "parent": 548, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 14}}, {"id": 550, "type": "argument_list", "text": "(\"The queue is empty!\\n\")", "parent": 548, "children": [551], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 39}}, {"id": 551, "type": "string_literal", "text": "\"The queue is empty!\\n\"", "parent": 550, "children": [552], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 38}}, {"id": 552, "type": "escape_sequence", "text": "\\n", "parent": 551, "children": [], "start_point": {"row": 145, "column": 35}, "end_point": {"row": 145, "column": 37}}, {"id": 553, "type": "call_expression", "text": "sem_post(&q->lock)", "parent": 541, "children": [554, 555], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 26}}, {"id": 554, "type": "identifier", "text": "sem_post", "parent": 553, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 16}}, {"id": 555, "type": "argument_list", "text": "(&q->lock)", "parent": 553, "children": [556], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 26}}, {"id": 556, "type": "pointer_expression", "text": "&q->lock", "parent": 555, "children": [557], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 25}}, {"id": 557, "type": "field_expression", "text": "q->lock", "parent": 556, "children": [558, 559], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 25}}, {"id": 558, "type": "identifier", "text": "q", "parent": 557, "children": [], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 19}}, {"id": 559, "type": "field_identifier", "text": "lock", "parent": 557, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 25}}, {"id": 560, "type": "return_statement", "text": "return;", "parent": 541, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 15}}, {"id": 561, "type": "while_statement", "text": "while(current != NULL){\n printf(\"sensor value=%d, sensor uid=%d\\n\",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }", "parent": 505, "children": [562], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 153, "column": 5}}, {"id": 562, "type": "parenthesized_expression", "text": "(current != NULL)", "parent": 561, "children": [563], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 26}}, {"id": 563, "type": "binary_expression", "text": "current != NULL", "parent": 562, "children": [564, 565, 566], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 25}}, {"id": 564, "type": "identifier", "text": "current", "parent": 563, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 17}}, {"id": 565, "type": "!=", "text": "!=", "parent": 563, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 20}}, {"id": 566, "type": "null", "text": "NULL", "parent": 563, "children": [567], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 25}}, {"id": 567, "type": "NULL", "text": "NULL", "parent": 566, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 25}}, {"id": 568, "type": "call_expression", "text": "printf(\"sensor value=%d, sensor uid=%d\\n\",\n current->sensor->value, current->sensor->uid)", "parent": 561, "children": [569, 570], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 151, "column": 61}}, {"id": 569, "type": "identifier", "text": "printf", "parent": 568, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 14}}, {"id": 570, "type": "argument_list", "text": "(\"sensor value=%d, sensor uid=%d\\n\",\n current->sensor->value, current->sensor->uid)", "parent": 568, "children": [571, 573, 578], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 151, "column": 61}}, {"id": 571, "type": "string_literal", "text": "\"sensor value=%d, sensor uid=%d\\n\"", "parent": 570, "children": [572], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 49}}, {"id": 572, "type": "escape_sequence", "text": "\\n", "parent": 571, "children": [], "start_point": {"row": 150, "column": 46}, "end_point": {"row": 150, "column": 48}}, {"id": 573, "type": "field_expression", "text": "current->sensor->value", "parent": 570, "children": [574, 577], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 38}}, {"id": 574, "type": "field_expression", "text": "current->sensor", "parent": 573, "children": [575, 576], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 31}}, {"id": 575, "type": "identifier", "text": "current", "parent": 574, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 23}}, {"id": 576, "type": "field_identifier", "text": "sensor", "parent": 574, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 31}}, {"id": 577, "type": "field_identifier", "text": "value", "parent": 573, "children": [], "start_point": {"row": 151, "column": 33}, "end_point": {"row": 151, "column": 38}}, {"id": 578, "type": "field_expression", "text": "current->sensor->uid", "parent": 570, "children": [579, 582], "start_point": {"row": 151, "column": 40}, "end_point": {"row": 151, "column": 60}}, {"id": 579, "type": "field_expression", "text": "current->sensor", "parent": 578, "children": [580, 581], "start_point": {"row": 151, "column": 40}, "end_point": {"row": 151, "column": 55}}, {"id": 580, "type": "identifier", "text": "current", "parent": 579, "children": [], "start_point": {"row": 151, "column": 40}, "end_point": {"row": 151, "column": 47}}, {"id": 581, "type": "field_identifier", "text": "sensor", "parent": 579, "children": [], "start_point": {"row": 151, "column": 49}, "end_point": {"row": 151, "column": 55}}, {"id": 582, "type": "field_identifier", "text": "uid", "parent": 578, "children": [], "start_point": {"row": 151, "column": 57}, "end_point": {"row": 151, "column": 60}}, {"id": 583, "type": "assignment_expression", "text": "current = current->next", "parent": 561, "children": [584, 585, 586], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 31}}, {"id": 584, "type": "identifier", "text": "current", "parent": 583, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 15}}, {"id": 585, "type": "=", "text": "=", "parent": 583, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 17}}, {"id": 586, "type": "field_expression", "text": "current->next", "parent": 583, "children": [587, 588], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 31}}, {"id": 587, "type": "identifier", "text": "current", "parent": 586, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 25}}, {"id": 588, "type": "field_identifier", "text": "next", "parent": 586, "children": [], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 31}}, {"id": 589, "type": "call_expression", "text": "sem_post(&q->lock)", "parent": 505, "children": [590, 591], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 22}}, {"id": 590, "type": "identifier", "text": "sem_post", "parent": 589, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 12}}, {"id": 591, "type": "argument_list", "text": "(&q->lock)", "parent": 589, "children": [592], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 22}}, {"id": 592, "type": "pointer_expression", "text": "&q->lock", "parent": 591, "children": [593], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 21}}, {"id": 593, "type": "field_expression", "text": "q->lock", "parent": 592, "children": [594, 595], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 21}}, {"id": 594, "type": "identifier", "text": "q", "parent": 593, "children": [], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 15}}, {"id": 595, "type": "field_identifier", "text": "lock", "parent": 593, "children": [], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 21}}]}, "node_categories": {"declarations": {"functions": [18, 22, 125, 127, 150, 152, 174, 176, 346, 350, 460, 464, 505, 507], "variables": [25, 28, 130, 155, 179, 184, 244, 353, 358, 375, 385, 467, 470, 473, 510, 522], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [35, 40, 43, 44, 47, 54, 61, 67, 73, 79, 85, 91, 96, 99, 100, 105, 108, 109, 114, 117, 118, 136, 137, 138, 142, 161, 162, 163, 190, 191, 196, 201, 211, 212, 216, 220, 221, 229, 232, 233, 237, 240, 241, 251, 256, 259, 260, 263, 270, 276, 277, 282, 289, 290, 297, 302, 303, 307, 308, 313, 314, 315, 319, 323, 327, 330, 333, 334, 337, 340, 341, 361, 364, 365, 368, 371, 372, 382, 392, 396, 397, 398, 404, 411, 419, 423, 426, 430, 431, 435, 436, 440, 443, 444, 450, 453, 454, 480, 485, 488, 489, 492, 498, 515, 518, 519, 529, 532, 538, 542, 543, 548, 553, 556, 557, 562, 563, 568, 573, 574, 578, 579, 586, 589, 592, 593], "assignments": [46, 53, 60, 66, 72, 78, 84, 90, 262, 269, 281, 288, 296, 322, 403, 410, 418, 491, 497, 583], "loops": [561], "conditionals": [19, 23, 27, 29, 33, 37, 41, 45, 48, 49, 55, 56, 62, 63, 65, 68, 69, 74, 75, 80, 81, 86, 87, 92, 93, 97, 101, 102, 106, 110, 111, 113, 115, 119, 120, 124, 126, 128, 131, 134, 135, 139, 140, 143, 144, 151, 153, 156, 159, 160, 164, 165, 177, 180, 183, 185, 188, 189, 192, 197, 202, 204, 207, 208, 209, 210, 213, 215, 217, 219, 222, 223, 230, 234, 235, 236, 238, 242, 243, 245, 249, 253, 257, 261, 264, 265, 271, 272, 274, 275, 278, 280, 283, 284, 286, 291, 292, 293, 295, 298, 299, 301, 304, 305, 309, 310, 312, 316, 317, 320, 321, 324, 325, 328, 329, 331, 335, 336, 338, 342, 343, 347, 351, 354, 357, 360, 362, 366, 367, 369, 373, 374, 376, 380, 383, 384, 386, 390, 393, 394, 395, 399, 400, 405, 406, 412, 413, 420, 421, 424, 425, 427, 429, 432, 433, 437, 438, 441, 445, 446, 447, 448, 449, 451, 455, 456, 457, 459, 461, 465, 469, 472, 474, 478, 482, 486, 490, 493, 494, 496, 499, 500, 502, 504, 508, 511, 514, 516, 520, 521, 523, 527, 530, 531, 533, 539, 540, 541, 544, 549, 554, 558, 559, 564, 569, 575, 576, 577, 580, 581, 582, 584, 587, 588, 590, 594, 595], "returns": [123, 145, 148, 169, 172, 205, 225, 344, 458, 503, 560], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 71, 77, 83, 89, 95, 103, 104, 112, 121, 122, 199, 206, 226, 345, 402, 535, 551, 571], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "Fifo_q * \ninit_queue(int size)\n{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = N"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "init_queue(int size)"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "boolean\nis_full(Fifo_q * q)\n{\n if(q->currentSize < q->maxSize)\n return false;\n else\n "}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "is_full(Fifo_q * q)"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "boolean\nis_empty(Fifo_q * q)\n{\n if(q->head==NULL)\n return true;\n else\n return fa"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "is_empty(Fifo_q * q)"}, {"node_id": 174, "universal_type": "function", "name": "add_to_queue", "text_snippet": "int\nadd_to_queue(Fifo_q * q, Sensor_t * sensor)\n{\n\n if(q == NULL){\n printf(\"Error: Queue n"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "add_to_queue(Fifo_q * q, Sensor_t * sensor)"}, {"node_id": 346, "universal_type": "function", "name": "semStat;", "text_snippet": "Sensor_t *\npop_from_queue(Fifo_q * q)\n{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "pop_from_queue(Fifo_q * q)"}, {"node_id": 460, "universal_type": "function", "name": "uid)", "text_snippet": "Sensor_t *\ncreate_sensor_object(int value, int uid)\n{\n Sensor_t * sensor = (Sensor_t *) malloc(si"}, {"node_id": 464, "universal_type": "function", "name": "uid)", "text_snippet": "create_sensor_object(int value, int uid)"}, {"node_id": 505, "universal_type": "function", "name": "print_queue", "text_snippet": "void\nprint_queue(Fifo_q * q)\n{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf(\""}, {"node_id": 507, "universal_type": "function", "name": "unknown", "text_snippet": "print_queue(Fifo_q * q)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <pthread.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <semaphore.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"types.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"fifoqueue.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n * Copyright 2017 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n#include <pthread.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <semaphore.h>\n#include \"types.h\"\n#include \"fifoqueue.h\"\n\n Fifo_q * \ninit_queue(int size)\n{\n Fifo_q * q = (Fifo_q *) malloc(sizeof(Fifo_q));\n q->head = NULL;\n q->tail = NULL;\n q->maxSize = size;\n q->currentSize = 0;\n q->droppedValues = 0;\n q->largestBufferSize = 0;\n q->valuesReceived = 0;\n q->valuesReleased = 0;\n /*Queue empty from the beginning (block)*/\n sem_init(&q->bufferEmptyBlock, 0, 0);\n sem_init(&q->bufferFullBlock, 0, size);\n sem_init(&q->lock, 0, 1);\n return q;\n}\n\n boolean\nis_full(Fifo_q * q)\n{\n if(q->currentSize < q->maxSize)\n return false;\n else\n return true;\n} \n\n boolean\nis_empty(Fifo_q * q)\n{\n if(q->head==NULL)\n return true;\n else\n return false; \n}\n\n int\nadd_to_queue(Fifo_q * q, Sensor_t * sensor)\n{\n\n if(q == NULL){\n printf(\"Error: Queue not initialized\\n\");\n free(sensor); //free if not appended\n return -1; \n } \n /* Drop Least Recently or Drop Most Recently */\n #ifdef DLR\n if(is_full(q)){\n pop_from_queue(q);\n q->droppedValues++;\n return 0;\n }\n #else\n sem_wait(&q->bufferFullBlock);\n #endif\n sem_wait(&q->lock);\n Queue_t * new_elem = (Queue_t *) malloc(sizeof(Queue_t));\n new_elem->next = NULL;\n new_elem->sensor = sensor;\n if(is_empty(q)){\n q->head = new_elem;\n }else\n q->tail->next = new_elem;\n q->tail = new_elem;\n q->currentSize++;\n q->valuesReceived++;\n if(q->currentSize > q->largestBufferSize)\n q->largestBufferSize = q->currentSize;\n sem_post(&q->lock);\n sem_post(&q->bufferEmptyBlock);\n return 1;\n}\n\n Sensor_t *\npop_from_queue(Fifo_q * q)\n{\n int semStat;\n sem_wait(&q->bufferEmptyBlock);\n sem_wait(&q->lock);\n Queue_t * head = q->head;\n Sensor_t * sensor = head->sensor;\n /* If dequeue the last element */\n if(q->currentSize == 1){\n q->head = NULL;\n q->tail = NULL;\n }else{\n q->head = head->next;\n }\n free(head);\n q->currentSize--;\n q->valuesReleased++;\n sem_post(&q->lock);\n #ifndef DLR\n sem_post(&q->bufferFullBlock);\n #endif\n return sensor;\n} \n\n Sensor_t *\ncreate_sensor_object(int value, int uid)\n{\n Sensor_t * sensor = (Sensor_t *) malloc(sizeof(Sensor_t));\n sensor->value = value;\n sensor->uid = uid;\n return sensor;\n}\n void\nprint_queue(Fifo_q * q)\n{\n sem_wait(&q->lock);\n Queue_t * current = q->head;\n printf(\"\\nContent of the queue with size=%d\\n\",q->currentSize);\n if(current == NULL){\n printf(\"The queue is empty!\\n\");\n sem_post(&q->lock);\n return;\n }\n while(current != NULL){\n printf(\"sensor value=%d, sensor uid=%d\\n\",\n current->sensor->value, current->sensor->uid);\n current = current->next;\n }\n sem_post(&q->lock);\n}\n"}
110
c
/********************************************************************** * * Copyright (c) 2012-2019 <NAME> * Copyright (C) 2015 The Qt Company Ltd. * * You may use this file under the terms of the 2-Clause BSD license * provided with KitchenSink or available at: * * https://opensource.org/licenses/BSD-2-Clause * * KitchenSink 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. * ***********************************************************************/ #ifndef CLIENT_H #define CLIENT_H #include "server.h" #include <QHostAddress> #include <QMultiHash> #include <qstringfwd.h> class QAbstractSocket; class PeerManager; class Client : public QObject { CS_OBJECT(Client) public: Client(); void sendMessage(const QString &message); QString nickName() const; bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const; CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message)) CS_SIGNAL_2(newMessage, from, message) CS_SIGNAL_1(Public, void newParticipant(const QString &nick)) CS_SIGNAL_2(newParticipant, nick) CS_SIGNAL_1(Public, void participantLeft(const QString &nick)) CS_SIGNAL_2(participantLeft, nick) private: void removeConnection(Connection *connection); // slots void newConnection(Connection *connection); void connectionError(QAbstractSocket::SocketError socketError); void disconnected(); void readyForUse(); PeerManager *peerManager; Server server; QMultiHash<QHostAddress, Connection *> peers; }; #endif
32.69
49
(translation_unit) "/**********************************************************************\n*\n* Copyright (c) 2012-2019 <NAME>\n* Copyright (C) 2015 The Qt Company Ltd.\n*\n* You may use this file under the terms of the 2-Clause BSD license\n* provided with KitchenSink or available at:\n*\n* https://opensource.org/licenses/BSD-2-Clause\n*\n* KitchenSink 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.\n*\n***********************************************************************/\n\n#ifndef CLIENT_H\n#define CLIENT_H\n\n#include "server.h"\n\n#include <QHostAddress>\n#include <QMultiHash>\n#include <qstringfwd.h>\n\nclass QAbstractSocket;\nclass PeerManager;\n\nclass Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n};\n\n#endif\n" (comment) "/**********************************************************************\n*\n* Copyright (c) 2012-2019 <NAME>\n* Copyright (C) 2015 The Qt Company Ltd.\n*\n* You may use this file under the terms of the 2-Clause BSD license\n* provided with KitchenSink or available at:\n*\n* https://opensource.org/licenses/BSD-2-Clause\n*\n* KitchenSink 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.\n*\n***********************************************************************/" (preproc_ifdef) "#ifndef CLIENT_H\n#define CLIENT_H\n\n#include "server.h"\n\n#include <QHostAddress>\n#include <QMultiHash>\n#include <qstringfwd.h>\n\nclass QAbstractSocket;\nclass PeerManager;\n\nclass Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CLIENT_H" (preproc_def) "#define CLIENT_H\n" (#define) "#define" (identifier) "CLIENT_H" (preproc_include) "#include "server.h"\n" (#include) "#include" (string_literal) ""server.h"" (") """ (string_content) "server.h" (") """ (preproc_include) "#include <QHostAddress>\n" (#include) "#include" (system_lib_string) "<QHostAddress>" (preproc_include) "#include <QMultiHash>\n" (#include) "#include" (system_lib_string) "<QMultiHash>" (preproc_include) "#include <qstringfwd.h>\n" (#include) "#include" (system_lib_string) "<qstringfwd.h>" (declaration) "class QAbstractSocket;" (type_identifier) "class" (identifier) "QAbstractSocket" (;) ";" (declaration) "class PeerManager;" (type_identifier) "class" (identifier) "PeerManager" (;) ";" (function_definition) "class Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n}" (type_identifier) "class" (ERROR) "Client : public" (identifier) "Client" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n}" ({) "{" (declaration) "CS_OBJECT(Client)\n\n public:\n Client();" (macro_type_specifier) "CS_OBJECT(Client)" (identifier) "CS_OBJECT" (() "(" (type_descriptor) "Client" (type_identifier) "Client" ()) ")" (ERROR) "public:" (identifier) "public" (:) ":" (function_declarator) "Client()" (identifier) "Client" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void sendMessage(const QString &message);" (primitive_type) "void" (function_declarator) "sendMessage(const QString &message)" (identifier) "sendMessage" (parameter_list) "(const QString &message)" (() "(" (parameter_declaration) "const QString &message" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "message" ()) ")" (;) ";" (ERROR) "QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;" (type_identifier) "QString" (function_declarator) "nickName()" (identifier) "nickName" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "bool" (init_declarator) "hasConnection(const QHostAddress &senderIp, int senderPort = -1" (function_declarator) "hasConnection(const QHostAddress &senderIp, int senderPort" (identifier) "hasConnection" (parameter_list) "(const QHostAddress &senderIp, int senderPort" (() "(" (parameter_declaration) "const QHostAddress &senderIp" (type_qualifier) "const" (const) "const" (type_identifier) "QHostAddress" (ERROR) "&" (&) "&" (identifier) "senderIp" (,) "," (parameter_declaration) "int senderPort" (primitive_type) "int" (identifier) "senderPort" ()) "" (=) "=" (number_literal) "-1" (ERROR) ") const" ()) ")" (const) "const" (;) ";" (ERROR) "CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);" (macro_type_specifier) "CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))" (identifier) "CS_SIGNAL_1" (() "(" (ERROR) "Public, void" (type_descriptor) "Public" (type_identifier) "Public" (,) "," (primitive_type) "void" (type_descriptor) "newMessage(const QString &from, const QString &message)" (type_identifier) "newMessage" (abstract_function_declarator) "(const QString &from, const QString &message)" (parameter_list) "(const QString &from, const QString &message)" (() "(" (parameter_declaration) "const QString &from" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "from" (,) "," (parameter_declaration) "const QString &message" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "message" ()) ")" ()) ")" (function_declarator) "CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection)" (identifier) "CS_SIGNAL_2" (parameter_list) "(newMessage, from, message)" (() "(" (parameter_declaration) "newMessage" (type_identifier) "newMessage" (,) "," (parameter_declaration) "from" (type_identifier) "from" (,) "," (parameter_declaration) "message" (type_identifier) "message" ()) ")" (call_expression) "CS_SIGNAL_1(Public, void newParticipant(const QString &nick))" (identifier) "CS_SIGNAL_1" (argument_list) "(Public, void newParticipant(const QString &nick))" (() "(" (identifier) "Public" (,) "," (ERROR) "void" (identifier) "void" (call_expression) "newParticipant(const QString &nick)" (identifier) "newParticipant" (argument_list) "(const QString &nick)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "QString &nick" (identifier) "QString" (&) "&" (identifier) "nick" ()) ")" ()) ")" (call_expression) "CS_SIGNAL_2(newParticipant, nick)" (identifier) "CS_SIGNAL_2" (argument_list) "(newParticipant, nick)" (() "(" (identifier) "newParticipant" (,) "," (identifier) "nick" ()) ")" (call_expression) "CS_SIGNAL_1(Public, void participantLeft(const QString &nick))" (identifier) "CS_SIGNAL_1" (argument_list) "(Public, void participantLeft(const QString &nick))" (() "(" (identifier) "Public" (,) "," (ERROR) "void" (identifier) "void" (call_expression) "participantLeft(const QString &nick)" (identifier) "participantLeft" (argument_list) "(const QString &nick)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "QString &nick" (identifier) "QString" (&) "&" (identifier) "nick" ()) ")" ()) ")" (call_expression) "CS_SIGNAL_2(participantLeft, nick)" (identifier) "CS_SIGNAL_2" (argument_list) "(participantLeft, nick)" (() "(" (identifier) "participantLeft" (,) "," (identifier) "nick" ()) ")" (identifier) "private" (ERROR) ":\n void" (:) ":" (primitive_type) "void" (call_expression) "removeConnection(Connection *connection)" (identifier) "removeConnection" (argument_list) "(Connection *connection)" (() "(" (binary_expression) "Connection *connection" (identifier) "Connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (comment) "// slots" (declaration) "void newConnection(Connection *connection);" (primitive_type) "void" (function_declarator) "newConnection(Connection *connection)" (identifier) "newConnection" (parameter_list) "(Connection *connection)" (() "(" (parameter_declaration) "Connection *connection" (type_identifier) "Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (declaration) "void connectionError(QAbstractSocket::SocketError socketError);" (primitive_type) "void" (function_declarator) "connectionError(QAbstractSocket::SocketError socketError)" (identifier) "connectionError" (parameter_list) "(QAbstractSocket::SocketError socketError)" (() "(" (parameter_declaration) "QAbstractSocket::SocketError socketError" (type_identifier) "QAbstractSocket" (ERROR) "::SocketError" (:) ":" (:) ":" (identifier) "SocketError" (identifier) "socketError" ()) ")" (;) ";" (declaration) "void disconnected();" (primitive_type) "void" (function_declarator) "disconnected()" (identifier) "disconnected" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void readyForUse();" (primitive_type) "void" (function_declarator) "readyForUse()" (identifier) "readyForUse" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "PeerManager *peerManager;" (type_identifier) "PeerManager" (pointer_declarator) "*peerManager" (*) "*" (identifier) "peerManager" (;) ";" (declaration) "Server server;" (type_identifier) "Server" (identifier) "server" (;) ";" (declaration) "QMultiHash<QHostAddress, Connection *> peers;" (type_identifier) "QMultiHash" (ERROR) "<" (<) "<" (identifier) "QHostAddress" (,) "," (identifier) "Connection" (ERROR) "*> peers" (*) "*" (>) ">" (identifier) "peers" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
292
19
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 32.69, "nodes": 178, "errors": 0, "source_hash": "8fe919f966696f03af5501564bee1e12be002f83e452b9e499592c5e726436f6", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CLIENT_H\n#define CLIENT_H\n\n#include \"server.h\"\n\n#include <QHostAddress>\n#include <QMultiHash>\n#include <qstringfwd.h>\n\nclass QAbstractSocket;\nclass PeerManager;\n\nclass Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 20, 22, 177], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 62, "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": "CLIENT_H", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 3, "type": "preproc_def", "text": "#define CLIENT_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": "CLIENT_H", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include \"server.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"server.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <QHostAddress>\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": "<QHostAddress>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 23}}, {"id": 12, "type": "preproc_include", "text": "#include <QMultiHash>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QMultiHash>", "parent": 12, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include <qstringfwd.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<qstringfwd.h>", "parent": 15, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 23}}, {"id": 18, "type": "declaration", "text": "class QAbstractSocket;", "parent": 0, "children": [19], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 22}}, {"id": 19, "type": "identifier", "text": "QAbstractSocket", "parent": 18, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 21}}, {"id": 20, "type": "declaration", "text": "class PeerManager;", "parent": 0, "children": [21], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 18}}, {"id": 21, "type": "identifier", "text": "PeerManager", "parent": 20, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 17}}, {"id": 22, "type": "function_definition", "text": "class Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n}", "parent": 0, "children": [23, 25], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 23, "type": "ERROR", "text": "Client : public", "parent": 22, "children": [24], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 21}}, {"id": 24, "type": "identifier", "text": "Client", "parent": 23, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 12}}, {"id": 25, "type": "identifier", "text": "QObject", "parent": 22, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 29}}, {"id": 26, "type": "declaration", "text": "CS_OBJECT(Client)\n\n public:\n Client();", "parent": 22, "children": [27, 31, 32], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 33, "column": 12}}, {"id": 27, "type": "macro_type_specifier", "text": "CS_OBJECT(Client)", "parent": 26, "children": [28, 29], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 21}}, {"id": 28, "type": "identifier", "text": "CS_OBJECT", "parent": 27, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 29, "type": "type_descriptor", "text": "Client", "parent": 27, "children": [30], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 30, "type": "type_identifier", "text": "Client", "parent": 29, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 31, "type": "ERROR", "text": "public:", "parent": 26, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 8}}, {"id": 32, "type": "function_declarator", "text": "Client()", "parent": 26, "children": [33, 34], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 11}}, {"id": 33, "type": "identifier", "text": "Client", "parent": 32, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 9}}, {"id": 34, "type": "parameter_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 11}}, {"id": 35, "type": "declaration", "text": "void sendMessage(const QString &message);", "parent": 22, "children": [36, 37], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 44}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 37, "type": "function_declarator", "text": "sendMessage(const QString &message)", "parent": 35, "children": [38, 39], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 43}}, {"id": 38, "type": "identifier", "text": "sendMessage", "parent": 37, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 19}}, {"id": 39, "type": "parameter_list", "text": "(const QString &message)", "parent": 37, "children": [40], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 43}}, {"id": 40, "type": "parameter_declaration", "text": "const QString &message", "parent": 39, "children": [41, 42], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 42}}, {"id": 41, "type": "type_identifier", "text": "QString", "parent": 40, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 33}}, {"id": 42, "type": "identifier", "text": "message", "parent": 40, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 42}}, {"id": 43, "type": "ERROR", "text": "QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;", "parent": 22, "children": [44, 45, 48, 63, 129, 139, 149, 154, 159, 164, 167], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 59, "column": 49}}, {"id": 44, "type": "type_identifier", "text": "QString", "parent": 43, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 10}}, {"id": 45, "type": "function_declarator", "text": "nickName()", "parent": 43, "children": [46, 47], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 21}}, {"id": 46, "type": "identifier", "text": "nickName", "parent": 45, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 19}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 21}}, {"id": 48, "type": "declaration", "text": "const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;", "parent": 43, "children": [49, 50, 62], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 37, "column": 79}}, {"id": 49, "type": "primitive_type", "text": "bool", "parent": 48, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 50, "type": "init_declarator", "text": "hasConnection(const QHostAddress &senderIp, int senderPort = -1", "parent": 48, "children": [51, 60, 61], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 71}}, {"id": 51, "type": "function_declarator", "text": "hasConnection(const QHostAddress &senderIp, int senderPort", "parent": 50, "children": [52, 53], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 66}}, {"id": 52, "type": "identifier", "text": "hasConnection", "parent": 51, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 21}}, {"id": 53, "type": "parameter_list", "text": "(const QHostAddress &senderIp, int senderPort", "parent": 51, "children": [54, 57], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 66}}, {"id": 54, "type": "parameter_declaration", "text": "const QHostAddress &senderIp", "parent": 53, "children": [55, 56], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 50}}, {"id": 55, "type": "type_identifier", "text": "QHostAddress", "parent": 54, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 40}}, {"id": 56, "type": "identifier", "text": "senderIp", "parent": 54, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 50}}, {"id": 57, "type": "parameter_declaration", "text": "int senderPort", "parent": 53, "children": [58, 59], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 66}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 55}}, {"id": 59, "type": "identifier", "text": "senderPort", "parent": 57, "children": [], "start_point": {"row": 37, "column": 56}, "end_point": {"row": 37, "column": 66}}, {"id": 60, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 37, "column": 67}, "end_point": {"row": 37, "column": 68}}, {"id": 61, "type": "number_literal", "text": "-1", "parent": 50, "children": [], "start_point": {"row": 37, "column": 69}, "end_point": {"row": 37, "column": 71}}, {"id": 62, "type": "ERROR", "text": ") const", "parent": 48, "children": [], "start_point": {"row": 37, "column": 71}, "end_point": {"row": 37, "column": 78}}, {"id": 63, "type": "ERROR", "text": "CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);", "parent": 43, "children": [64, 79], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 49, "column": 50}}, {"id": 64, "type": "macro_type_specifier", "text": "CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))", "parent": 63, "children": [65, 66, 70], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 84}}, {"id": 65, "type": "identifier", "text": "CS_SIGNAL_1", "parent": 64, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 14}}, {"id": 66, "type": "ERROR", "text": "Public, void", "parent": 64, "children": [67, 69], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 27}}, {"id": 67, "type": "type_descriptor", "text": "Public", "parent": 66, "children": [68], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 21}}, {"id": 68, "type": "type_identifier", "text": "Public", "parent": 67, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 21}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 27}}, {"id": 70, "type": "type_descriptor", "text": "newMessage(const QString &from, const QString &message)", "parent": 64, "children": [71, 72], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 83}}, {"id": 71, "type": "type_identifier", "text": "newMessage", "parent": 70, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 38}}, {"id": 72, "type": "abstract_function_declarator", "text": "(const QString &from, const QString &message)", "parent": 70, "children": [73], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 83}}, {"id": 73, "type": "parameter_list", "text": "(const QString &from, const QString &message)", "parent": 72, "children": [74, 76], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 83}}, {"id": 74, "type": "parameter_declaration", "text": "const QString &from", "parent": 73, "children": [75], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 58}}, {"id": 75, "type": "type_identifier", "text": "QString", "parent": 74, "children": [], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 52}}, {"id": 76, "type": "parameter_declaration", "text": "const QString &message", "parent": 73, "children": [77, 78], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 82}}, {"id": 77, "type": "type_identifier", "text": "QString", "parent": 76, "children": [], "start_point": {"row": 39, "column": 66}, "end_point": {"row": 39, "column": 73}}, {"id": 78, "type": "identifier", "text": "message", "parent": 76, "children": [], "start_point": {"row": 39, "column": 75}, "end_point": {"row": 39, "column": 82}}, {"id": 79, "type": "function_declarator", "text": "CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection)", "parent": 63, "children": [80, 81, 86, 98, 103, 115, 120, 122], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 49, "column": 49}}, {"id": 80, "type": "identifier", "text": "CS_SIGNAL_2", "parent": 79, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 14}}, {"id": 81, "type": "parameter_list", "text": "(newMessage, from, message)", "parent": 79, "children": [82, 84], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 41}}, {"id": 82, "type": "parameter_declaration", "text": "newMessage", "parent": 81, "children": [83], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 25}}, {"id": 83, "type": "type_identifier", "text": "newMessage", "parent": 82, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 25}}, {"id": 84, "type": "parameter_declaration", "text": "message", "parent": 81, "children": [85], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 40}}, {"id": 85, "type": "type_identifier", "text": "message", "parent": 84, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 40}}, {"id": 86, "type": "call_expression", "text": "CS_SIGNAL_1(Public, void newParticipant(const QString &nick))", "parent": 79, "children": [87, 88], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 64}}, {"id": 87, "type": "identifier", "text": "CS_SIGNAL_1", "parent": 86, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 14}}, {"id": 88, "type": "argument_list", "text": "(Public, void newParticipant(const QString &nick))", "parent": 86, "children": [89, 90, 92], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 64}}, {"id": 89, "type": "identifier", "text": "Public", "parent": 88, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 21}}, {"id": 90, "type": "ERROR", "text": "void", "parent": 88, "children": [91], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 27}}, {"id": 91, "type": "identifier", "text": "void", "parent": 90, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 27}}, {"id": 92, "type": "call_expression", "text": "newParticipant(const QString &nick)", "parent": 88, "children": [93, 94], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 63}}, {"id": 93, "type": "identifier", "text": "newParticipant", "parent": 92, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 42}}, {"id": 94, "type": "argument_list", "text": "(const QString &nick)", "parent": 92, "children": [95], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 63}}, {"id": 95, "type": "binary_expression", "text": "QString &nick", "parent": 94, "children": [96, 97], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 62}}, {"id": 96, "type": "identifier", "text": "QString", "parent": 95, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 56}}, {"id": 97, "type": "identifier", "text": "nick", "parent": 95, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 62}}, {"id": 98, "type": "call_expression", "text": "CS_SIGNAL_2(newParticipant, nick)", "parent": 79, "children": [99, 100], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 36}}, {"id": 99, "type": "identifier", "text": "CS_SIGNAL_2", "parent": 98, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 14}}, {"id": 100, "type": "argument_list", "text": "(newParticipant, nick)", "parent": 98, "children": [101, 102], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 36}}, {"id": 101, "type": "identifier", "text": "newParticipant", "parent": 100, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 29}}, {"id": 102, "type": "identifier", "text": "nick", "parent": 100, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 35}}, {"id": 103, "type": "call_expression", "text": "CS_SIGNAL_1(Public, void participantLeft(const QString &nick))", "parent": 79, "children": [104, 105], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 65}}, {"id": 104, "type": "identifier", "text": "CS_SIGNAL_1", "parent": 103, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 14}}, {"id": 105, "type": "argument_list", "text": "(Public, void participantLeft(const QString &nick))", "parent": 103, "children": [106, 107, 109], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 65}}, {"id": 106, "type": "identifier", "text": "Public", "parent": 105, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 21}}, {"id": 107, "type": "ERROR", "text": "void", "parent": 105, "children": [108], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 27}}, {"id": 108, "type": "identifier", "text": "void", "parent": 107, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 27}}, {"id": 109, "type": "call_expression", "text": "participantLeft(const QString &nick)", "parent": 105, "children": [110, 111], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 64}}, {"id": 110, "type": "identifier", "text": "participantLeft", "parent": 109, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 43}}, {"id": 111, "type": "argument_list", "text": "(const QString &nick)", "parent": 109, "children": [112], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 64}}, {"id": 112, "type": "binary_expression", "text": "QString &nick", "parent": 111, "children": [113, 114], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 63}}, {"id": 113, "type": "identifier", "text": "QString", "parent": 112, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 57}}, {"id": 114, "type": "identifier", "text": "nick", "parent": 112, "children": [], "start_point": {"row": 45, "column": 59}, "end_point": {"row": 45, "column": 63}}, {"id": 115, "type": "call_expression", "text": "CS_SIGNAL_2(participantLeft, nick)", "parent": 79, "children": [116, 117], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 37}}, {"id": 116, "type": "identifier", "text": "CS_SIGNAL_2", "parent": 115, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 14}}, {"id": 117, "type": "argument_list", "text": "(participantLeft, nick)", "parent": 115, "children": [118, 119], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 37}}, {"id": 118, "type": "identifier", "text": "participantLeft", "parent": 117, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 30}}, {"id": 119, "type": "identifier", "text": "nick", "parent": 117, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 36}}, {"id": 120, "type": "ERROR", "text": ":\n void", "parent": 79, "children": [121], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 49, "column": 8}}, {"id": 121, "type": "primitive_type", "text": "void", "parent": 120, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 122, "type": "call_expression", "text": "removeConnection(Connection *connection)", "parent": 79, "children": [123, 124], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 49}}, {"id": 123, "type": "identifier", "text": "removeConnection", "parent": 122, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 25}}, {"id": 124, "type": "argument_list", "text": "(Connection *connection)", "parent": 122, "children": [125], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 49}}, {"id": 125, "type": "binary_expression", "text": "Connection *connection", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 48}}, {"id": 126, "type": "identifier", "text": "Connection", "parent": 125, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 36}}, {"id": 127, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 49, "column": 37}, "end_point": {"row": 49, "column": 38}}, {"id": 128, "type": "identifier", "text": "connection", "parent": 125, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 48}}, {"id": 129, "type": "declaration", "text": "void newConnection(Connection *connection);", "parent": 43, "children": [130, 131], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 47}}, {"id": 130, "type": "primitive_type", "text": "void", "parent": 129, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 8}}, {"id": 131, "type": "function_declarator", "text": "newConnection(Connection *connection)", "parent": 129, "children": [132, 133], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 46}}, {"id": 132, "type": "identifier", "text": "newConnection", "parent": 131, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 22}}, {"id": 133, "type": "parameter_list", "text": "(Connection *connection)", "parent": 131, "children": [134], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 46}}, {"id": 134, "type": "parameter_declaration", "text": "Connection *connection", "parent": 133, "children": [135, 136], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 45}}, {"id": 135, "type": "type_identifier", "text": "Connection", "parent": 134, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 33}}, {"id": 136, "type": "pointer_declarator", "text": "*connection", "parent": 134, "children": [137, 138], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 45}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 35}}, {"id": 138, "type": "identifier", "text": "connection", "parent": 136, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 45}}, {"id": 139, "type": "declaration", "text": "void connectionError(QAbstractSocket::SocketError socketError);", "parent": 43, "children": [140, 141], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 67}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 141, "type": "function_declarator", "text": "connectionError(QAbstractSocket::SocketError socketError)", "parent": 139, "children": [142, 143], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 66}}, {"id": 142, "type": "identifier", "text": "connectionError", "parent": 141, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 24}}, {"id": 143, "type": "parameter_list", "text": "(QAbstractSocket::SocketError socketError)", "parent": 141, "children": [144], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 66}}, {"id": 144, "type": "parameter_declaration", "text": "QAbstractSocket::SocketError socketError", "parent": 143, "children": [145, 146, 148], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 65}}, {"id": 145, "type": "type_identifier", "text": "QAbstractSocket", "parent": 144, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 40}}, {"id": 146, "type": "ERROR", "text": "::SocketError", "parent": 144, "children": [147], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 53}}, {"id": 147, "type": "identifier", "text": "SocketError", "parent": 146, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 53}}, {"id": 148, "type": "identifier", "text": "socketError", "parent": 144, "children": [], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 65}}, {"id": 149, "type": "declaration", "text": "void disconnected();", "parent": 43, "children": [150, 151], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 24}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 151, "type": "function_declarator", "text": "disconnected()", "parent": 149, "children": [152, 153], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 23}}, {"id": 152, "type": "identifier", "text": "disconnected", "parent": 151, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 21}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 23}}, {"id": 154, "type": "declaration", "text": "void readyForUse();", "parent": 43, "children": [155, 156], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 23}}, {"id": 155, "type": "primitive_type", "text": "void", "parent": 154, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 156, "type": "function_declarator", "text": "readyForUse()", "parent": 154, "children": [157, 158], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 22}}, {"id": 157, "type": "identifier", "text": "readyForUse", "parent": 156, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 20}}, {"id": 158, "type": "parameter_list", "text": "()", "parent": 156, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 22}}, {"id": 159, "type": "declaration", "text": "PeerManager *peerManager;", "parent": 43, "children": [160, 161], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 29}}, {"id": 160, "type": "type_identifier", "text": "PeerManager", "parent": 159, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 15}}, {"id": 161, "type": "pointer_declarator", "text": "*peerManager", "parent": 159, "children": [162, 163], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 28}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 163, "type": "identifier", "text": "peerManager", "parent": 161, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 28}}, {"id": 164, "type": "declaration", "text": "Server server;", "parent": 43, "children": [165, 166], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 18}}, {"id": 165, "type": "type_identifier", "text": "Server", "parent": 164, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 166, "type": "identifier", "text": "server", "parent": 164, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 17}}, {"id": 167, "type": "declaration", "text": "QMultiHash<QHostAddress, Connection *> peers;", "parent": 43, "children": [168, 169, 171, 172, 173], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 49}}, {"id": 168, "type": "type_identifier", "text": "QMultiHash", "parent": 167, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 14}}, {"id": 169, "type": "ERROR", "text": "<", "parent": 167, "children": [170], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 170, "type": "<", "text": "<", "parent": 169, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 171, "type": "identifier", "text": "QHostAddress", "parent": 167, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 27}}, {"id": 172, "type": "identifier", "text": "Connection", "parent": 167, "children": [], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 39}}, {"id": 173, "type": "ERROR", "text": "*> peers", "parent": 167, "children": [174, 175, 176], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 48}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 41}}, {"id": 175, "type": ">", "text": ">", "parent": 173, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 42}}, {"id": 176, "type": "identifier", "text": "peers", "parent": 173, "children": [], "start_point": {"row": 59, "column": 43}, "end_point": {"row": 59, "column": 48}}, {"id": 177, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}]}, "node_categories": {"declarations": {"functions": [22, 32, 37, 45, 51, 72, 79, 131, 141, 151, 156], "variables": [18, 20, 26, 35, 40, 48, 54, 57, 74, 76, 82, 84, 129, 134, 139, 144, 149, 154, 159, 164, 167], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [86, 92, 95, 98, 103, 109, 112, 115, 122, 125], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 21, 24, 25, 27, 28, 30, 33, 38, 41, 42, 44, 46, 52, 55, 56, 59, 64, 65, 68, 71, 75, 77, 78, 80, 83, 85, 87, 89, 91, 93, 96, 97, 99, 101, 102, 104, 106, 108, 110, 113, 114, 116, 118, 119, 123, 126, 128, 132, 135, 138, 142, 145, 147, 148, 152, 157, 160, 163, 165, 166, 168, 171, 172, 176, 177], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 61], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "Client", "text_snippet": "class Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(co"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "Client()"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "sendMessage(const QString &message)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "nickName()"}, {"node_id": 51, "universal_type": "function", "name": "senderPort", "text_snippet": "hasConnection(const QHostAddress &senderIp, int senderPort"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "(const QString &from, const QString &message)"}, {"node_id": 79, "universal_type": "function", "name": "newParticipant", "text_snippet": "CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &ni"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "newConnection(Connection *connection)"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "connectionError(QAbstractSocket::SocketError socketError)"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "disconnected()"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "readyForUse()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"server.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QHostAddress>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QMultiHash>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <qstringfwd.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/**********************************************************************\n*\n* Copyright (c) 2012-2019 <NAME>\n* Copyright (C) 2015 The Qt Company Ltd.\n*\n* You may use this file under the terms of the 2-Clause BSD license\n* provided with KitchenSink or available at:\n*\n* https://opensource.org/licenses/BSD-2-Clause\n*\n* KitchenSink 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.\n*\n***********************************************************************/\n\n#ifndef CLIENT_H\n#define CLIENT_H\n\n#include \"server.h\"\n\n#include <QHostAddress>\n#include <QMultiHash>\n#include <qstringfwd.h>\n\nclass QAbstractSocket;\nclass PeerManager;\n\nclass Client : public QObject\n{\n CS_OBJECT(Client)\n\n public:\n Client();\n\n void sendMessage(const QString &message);\n QString nickName() const;\n bool hasConnection(const QHostAddress &senderIp, int senderPort = -1) const;\n\n CS_SIGNAL_1(Public, void newMessage(const QString &from, const QString &message))\n CS_SIGNAL_2(newMessage, from, message)\n\n CS_SIGNAL_1(Public, void newParticipant(const QString &nick))\n CS_SIGNAL_2(newParticipant, nick)\n\n CS_SIGNAL_1(Public, void participantLeft(const QString &nick))\n CS_SIGNAL_2(participantLeft, nick)\n\n private:\n void removeConnection(Connection *connection);\n\n // slots\n void newConnection(Connection *connection);\n void connectionError(QAbstractSocket::SocketError socketError);\n void disconnected();\n void readyForUse();\n\n PeerManager *peerManager;\n Server server;\n QMultiHash<QHostAddress, Connection *> peers;\n};\n\n#endif\n"}
111
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 3:11:50 PM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /usr/libexec/securityd * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ @class _SFECKeyPair; @protocol CKKSSelfPeer <CKKSPeer> @property (readonly) _SFECKeyPair * encryptionKey; @property (readonly) _SFECKeyPair * signingKey; @required -(_SFECKeyPair *)signingKey; -(_SFECKeyPair *)encryptionKey; @end
31.38
16
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 3:11:50 PM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /usr/libexec/securityd\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n\n@class _SFECKeyPair;\n\n\n@protocol CKKSSelfPeer <CKKSPeer>\n@property (readonly) _SFECKeyPair * encryptionKey; \n@property (readonly) _SFECKeyPair * signingKey; \n@required\n-(_SFECKeyPair *)signingKey;\n-(_SFECKeyPair *)encryptionKey;\n\n@end\n\n" (comment) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 3:11:50 PM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /usr/libexec/securityd\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n" (ERROR) "c" (ERROR) "c" (declaration) "lass _SFECKeyPair;\n" (type_identifier) "lass " (identifier) "SFECKeyPair;" (;) "\n" (ERROR) "protocol CKKSSelfPeer <CKKSPeer>\n@property (readonly) _SFECKeyPair * encryptionKey; \n@property (readonly) _SFECKeyPair * signingKey; \n@required\n" (ERROR) "p" (type_identifier) "rotocol " (function_declarator) "KKSSelfPeer <CKKSPeer>\n@property (readonly) " (identifier) "KKSSelfPeer " (ERROR) "CKKSPeer>\n@property " (<) "C" (identifier) "KKSPeer>" (>) "\n" (ERROR) "p" (identifier) "roperty " (parameter_list) "readonly) " (() "r" (identifier) "eadonly)" ()) " " (declaration) "SFECKeyPair * encryptionKey; " (type_identifier) "SFECKeyPair " (pointer_declarator) " encryptionKey;" (*) " " (identifier) "ncryptionKey;" (;) " " (ERROR) "p" (ERROR) "p" (declaration) "roperty (readonly) _SFECKeyPair * signingKey; " (macro_type_specifier) "roperty (readonly) " (identifier) "roperty " (() "r" (type_descriptor) "eadonly)" (type_identifier) "eadonly)" ()) " " (ERROR) "SFECKeyPair " (identifier) "SFECKeyPair " (pointer_declarator) " signingKey;" (*) " " (identifier) "igningKey;" (;) " " (ERROR) "r" (ERROR) "r" (identifier) "equired\n" (expression_statement) "(_SFECKeyPair *)signingKey;\n" (unary_expression) "(_SFECKeyPair *)signingKey;" (-) "(" (cast_expression) "_SFECKeyPair *)signingKey;" (() "_" (type_descriptor) "SFECKeyPair *)" (type_identifier) "SFECKeyPair " (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "igningKey;" (;) "\n" (expression_statement) "(_SFECKeyPair *)encryptionKey;\n" (unary_expression) "(_SFECKeyPair *)encryptionKey;" (-) "(" (cast_expression) "_SFECKeyPair *)encryptionKey;" (() "_" (type_descriptor) "SFECKeyPair *)" (type_identifier) "SFECKeyPair " (abstract_pointer_declarator) ")" (*) ")" ()) "e" (identifier) "ncryptionKey;" (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
76
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.38, "nodes": 51, "errors": 0, "source_hash": "f132ee92ea68bbcfcf5ce3390548ef5e61675ebc1d45a636cbdf304bb0e587e3", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 1, "type": "ERROR", "text": "c", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 2, "type": "declaration", "text": "lass _SFECKeyPair;\n", "parent": null, "children": [3, 4], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 20}}, {"id": 3, "type": "type_identifier", "text": "lass ", "parent": 2, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 6}}, {"id": 4, "type": "identifier", "text": "SFECKeyPair;", "parent": 2, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 19}}, {"id": 5, "type": "ERROR", "text": "protocol CKKSSelfPeer <CKKSPeer>\n@property (readonly) _SFECKeyPair * encryptionKey; \n@property (readonly) _SFECKeyPair * signingKey; \n@required\n", "parent": null, "children": [6, 7, 8, 18, 23, 25, 35, 37], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 6, "type": "ERROR", "text": "p", "parent": 5, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "rotocol ", "parent": 5, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 8, "type": "function_declarator", "text": "KKSSelfPeer <CKKSPeer>\n@property (readonly) ", "parent": 5, "children": [9, 10, 16], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 12, "column": 20}}, {"id": 9, "type": "identifier", "text": "KKSSelfPeer ", "parent": 8, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 22}}, {"id": 10, "type": "ERROR", "text": "CKKSPeer>\n@property ", "parent": 8, "children": [11, 12, 13, 14, 15], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 12, "column": 9}}, {"id": 11, "type": "<", "text": "C", "parent": 10, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 24}}, {"id": 12, "type": "identifier", "text": "KKSPeer>", "parent": 10, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 32}}, {"id": 13, "type": ">", "text": "\n", "parent": 10, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 33}}, {"id": 14, "type": "ERROR", "text": "p", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 15, "type": "identifier", "text": "roperty ", "parent": 10, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 16, "type": "parameter_list", "text": "readonly) ", "parent": 8, "children": [17], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 20}}, {"id": 17, "type": "identifier", "text": "eadonly)", "parent": 16, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 19}}, {"id": 18, "type": "declaration", "text": "SFECKeyPair * encryptionKey; ", "parent": 5, "children": [19, 20], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 50}}, {"id": 19, "type": "type_identifier", "text": "SFECKeyPair ", "parent": 18, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 33}}, {"id": 20, "type": "pointer_declarator", "text": " encryptionKey;", "parent": 18, "children": [21, 22], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 49}}, {"id": 21, "type": "*", "text": " ", "parent": 20, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 35}}, {"id": 22, "type": "identifier", "text": "ncryptionKey;", "parent": 20, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 49}}, {"id": 23, "type": "ERROR", "text": "p", "parent": 5, "children": [24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 24, "type": "ERROR", "text": "p", "parent": 23, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 25, "type": "declaration", "text": "roperty (readonly) _SFECKeyPair * signingKey; ", "parent": 5, "children": [26, 30, 32], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 47}}, {"id": 26, "type": "macro_type_specifier", "text": "roperty (readonly) ", "parent": 25, "children": [27, 28], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 20}}, {"id": 27, "type": "identifier", "text": "roperty ", "parent": 26, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 28, "type": "type_descriptor", "text": "eadonly)", "parent": 26, "children": [29], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 29, "type": "type_identifier", "text": "eadonly)", "parent": 28, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 30, "type": "ERROR", "text": "SFECKeyPair ", "parent": 25, "children": [31], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 33}}, {"id": 31, "type": "identifier", "text": "SFECKeyPair ", "parent": 30, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 33}}, {"id": 32, "type": "pointer_declarator", "text": " signingKey;", "parent": 25, "children": [33, 34], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 46}}, {"id": 33, "type": "*", "text": " ", "parent": 32, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 35}}, {"id": 34, "type": "identifier", "text": "igningKey;", "parent": 32, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 46}}, {"id": 35, "type": "ERROR", "text": "r", "parent": 5, "children": [36], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 36, "type": "ERROR", "text": "r", "parent": 35, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 37, "type": "identifier", "text": "equired\n", "parent": 5, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 38, "type": "unary_expression", "text": "(_SFECKeyPair *)signingKey;", "parent": null, "children": [39], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 27}}, {"id": 39, "type": "cast_expression", "text": "_SFECKeyPair *)signingKey;", "parent": 38, "children": [40, 42], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 40, "type": "type_descriptor", "text": "SFECKeyPair *)", "parent": 39, "children": [41], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 16}}, {"id": 41, "type": "type_identifier", "text": "SFECKeyPair ", "parent": 40, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 14}}, {"id": 42, "type": "identifier", "text": "igningKey;", "parent": 39, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 27}}, {"id": 43, "type": "unary_expression", "text": "(_SFECKeyPair *)encryptionKey;", "parent": null, "children": [44], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 30}}, {"id": 44, "type": "cast_expression", "text": "_SFECKeyPair *)encryptionKey;", "parent": 43, "children": [45, 47], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 30}}, {"id": 45, "type": "type_descriptor", "text": "SFECKeyPair *)", "parent": 44, "children": [46], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 16}}, {"id": 46, "type": "type_identifier", "text": "SFECKeyPair ", "parent": 45, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 14}}, {"id": 47, "type": "identifier", "text": "ncryptionKey;", "parent": 44, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 30}}, {"id": 48, "type": "ERROR", "text": "e", "parent": null, "children": [49], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 49, "type": "ERROR", "text": "e", "parent": 48, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 50, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [2, 18, 25], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [38, 39, 43, 44], "assignments": [], "loops": [], "conditionals": [3, 4, 7, 9, 12, 15, 17, 19, 22, 26, 27, 29, 31, 34, 37, 41, 42, 46, 47, 50], "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": "KKSSelfPeer <CKKSPeer>\n@property (readonly) "}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 3:11:50 PM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /usr/libexec/securityd\n* classdump-dyld is licensed under GPLv3, Copyright \u00a9 2013-2016 by <NAME>.\n*/\n\n@class _SFECKeyPair;\n\n\n@protocol CKKSSelfPeer <CKKSPeer>\n@property (readonly) _SFECKeyPair * encryptionKey; \n@property (readonly) _SFECKeyPair * signingKey; \n@required\n-(_SFECKeyPair *)signingKey;\n-(_SFECKeyPair *)encryptionKey;\n\n@end\n\n"}
112
c
#ifndef __DISIGON_H #define __DISIGON_H #ifndef WIN32 #define DISIGON_API //__declspec(dllexport) #else #ifdef DISIGON_STATIC #define DISIGON_API #else #ifdef DISIGON_EXPORTS #define DISIGON_API //__declspec(dllexport) #else #define DISIGON_API //__declspec(dllimport) #endif #endif #endif #define MAX_LEN 256 #include "definitions.h" #define VERIFIED_CERT_VALIDITY 0x000001 #define VERIFIED_CERT_REVOKED 0x000002 #define VERIFIED_CERT_SUSPENDED 0x000004 #define VERIFIED_CERT_GOOD 0x000008 #define VERIFIED_CERT_SHA256 0x000010 #define VERIFIED_CERT_QUALIFIED 0x000020 #define VERIFIED_CERT_CHAIN 0x000040 #define VERIFIED_CRL_LOADED 0x000080 #define VERIFIED_CRL_EXPIRED 0x000100 #define VERIFIED_SIGNED_ATTRIBUTE_CT 0x000200 #define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400 #define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800 #define VERIFIED_SIGNATURE 0x001000 #define VERIFIED_SHA256 0x002000 #define VERIFIED_CACERT_VALIDITY 0x004000 #define VERIFIED_CACERT_REVOKED 0x008000 #define VERIFIED_CACERT_SUSPENDED 0x010000 #define VERIFIED_CACERT_GOOD 0x020000 #define VERIFIED_CACERT_SIGNATURE 0x040000 #define VERIFIED_CACRL_LOADED 0x080000 #define VERIFIED_CACERT_FOUND 0x100000 #define VERIFIED_KEY_USAGE 0x200000 // TODO // certificate store con cache degli esiti delle verifiche dei certificati // stato revoca e validit� dei certificati nella chain #define REVOCATION_STATUS_GOOD 0 #define REVOCATION_STATUS_REVOKED 1 #define REVOCATION_STATUS_SUSPENDED 2 #define REVOCATION_STATUS_UNKNOWN 3 #define REVOCATION_STATUS_NOTLOADED 4 #define DISIGON_OPT_PKCS11 1 #define DISIGON_OPT_SLOT 2 #define DISIGON_OPT_PIN 3 #define DISIGON_OPT_ALIAS 4 #define DISIGON_OPT_CADES 5 #define DISIGON_OPT_XADES 5 #define DISIGON_OPT_DETACHED 6 #define DISIGON_OPT_INPUTFILE 7 #define DISIGON_OPT_OUTPUTFILE 8 #define DISIGON_OPT_INPUTFILE_TYPE 9 #define DISIGON_OPT_TSA_URL 10 #define DISIGON_OPT_TSA_USERNAME 11 #define DISIGON_OPT_TSA_PASSWORD 12 #define DISIGON_OPT_VERIFY_REVOCATION 13 #define DISIGON_OPT_LOG_LEVEL 14 #define DISIGON_OPT_LOG_FILE 15 #define DISIGON_OPT_INPUTFILE_PLAINTEXT 16 #define DISIGON_OPT_CACERT_DIR 17 #define DISIGON_OPT_PDF_SUBFILTER 18 #define DISIGON_OPT_CONFIG_FILE 19 #define DISIGON_OPT_PROXY 20 #define DISIGON_OPT_PROXY_PORT 21 #define DISIGON_OPT_PROXY_USRPASS 22 #define DISIGON_OPT_OID_MAP_FILE 23 #define DISIGON_OPT_TCP_TIMEOUT 24 #define DISIGON_OPT_PDF_REASON 25 #define DISIGON_OPT_PDF_NAME 26 #define DISIGON_OPT_PDF_LOCATION 27 #define DISIGON_OPT_PDF_PAGE 28 #define DISIGON_OPT_PDF_LEFT 29 #define DISIGON_OPT_PDF_BOTTOM 30 #define DISIGON_OPT_PDF_WIDTH 31 #define DISIGON_OPT_PDF_HEIGHT 32 #define DISIGON_OPT_PDF_IMAGEPATH 33 #define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA 34 #define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35 #define DISIGON_OPT_ATR_LIST_FILE 36 #define DISIGON_OPT_HASH_ALGO 37 #define DISIGON_OPT_LICENSEE 38 #define DISIGON_OPT_PRODUCTKEY 39 #define DISIGON_OPT_RS_OTP_PIN 40 #define DISIGON_OPT_RS_HSMTYPE 41 #define DISIGON_OPT_RS_TYPE_OTP_AUTH 42 #define DISIGON_OPT_RS_USERNAME 43 #define DISIGON_OPT_RS_PASSWORD 44 #define DISIGON_OPT_RS_CERTID 45 #define DISIGON_OPT_RS_SERVICE_URL 46 #define DISIGON_OPT_RS_USER_CODE 47 #define DISIGON_OPT_RS_SERVICE_TYPE 48 #define DISIGON_OPT_PDF_DESCRIPTION 50 #define DISIGON_OPT_PDF_NAME_LABEL 51 #define DISIGON_OPT_PDF_REASON_LABEL 52 #define DISIGON_OPT_PDF_LOCATION_LABEL 53 #define DISIGON_OPT_TSL_URL 60 #define DISIGON_OPT_VERIFY_USER_CERTIFICATE 61 #define DISIGON_OPT_P12_FILEPATH 70 #define DISIGON_OPT_P12_PASSWORD 71 #define DISIGON_OPT_IAS_INSTANCE 80 #define DISIGON_PDF_SUBFILTER_PKCS_DETACHED "adbe.pkcs7.detached" #define DISIGON_PDF_SUBFILTER_ETSI_CADES "ETSI.CAdES.detached" #define DISIGON_ERROR_BASE 0x84000000UL #define DISIGON_ERROR_UNEXPECTED DISIGON_ERROR_BASE + 1 #define DISIGON_ERROR_FILE_NOT_FOUND DISIGON_ERROR_BASE + 2 #define DISIGON_ERROR_DETACHED_PKCS7 DISIGON_ERROR_BASE + 3 #define DISIGON_ERROR_CERT_REVOKED DISIGON_ERROR_BASE + 4 #define DISIGON_ERROR_INVALID_FILE DISIGON_ERROR_BASE + 5 #define DISIGON_ERROR_INVALID_P11 DISIGON_ERROR_BASE + 6 #define DISIGON_ERROR_INVALID_ALIAS DISIGON_ERROR_BASE + 7 #define DISIGON_ERROR_INVALID_SIGOPT DISIGON_ERROR_BASE + 8 #define DISIGON_ERROR_ARRS_BASE DISIGON_ERROR_BASE + 0x00100000 #define DISIGON_ERROR_CERT_INVALID DISIGON_ERROR_BASE + 9 #define DISIGON_ERROR_CERT_EXPIRED DISIGON_ERROR_BASE + 10 #define DISIGON_ERROR_CACERT_NOTFOUND DISIGON_ERROR_BASE + 11 #define DISIGON_ERROR_CERT_NOTFOUND DISIGON_ERROR_BASE + 12 #define DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE DISIGON_ERROR_BASE + 13 #define DISIGON_ERROR_TSL_LOAD DISIGON_ERROR_BASE + 20 #define DISIGON_ERROR_TSL_PARSE DISIGON_ERROR_BASE + 21 #define DISIGON_ERROR_TSL_INVALID DISIGON_ERROR_BASE + 22 #define DISIGON_ERROR_TSL_CACERTDIR_NOT_SET DISIGON_ERROR_BASE + 23 #define DISIGON_ERROR_TSA DISIGON_ERROR_BASE + 30 #define DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40 #define DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41 #define DISIGON_FILETYPE_PLAINTEXT 0 #define DISIGON_FILETYPE_P7M 1 #define DISIGON_FILETYPE_PDF 2 #define DISIGON_FILETYPE_M7M 3 #define DISIGON_FILETYPE_TSR 4 #define DISIGON_FILETYPE_TST 5 #define DISIGON_FILETYPE_TSD 6 #define DISIGON_FILETYPE_XML 7 #define DISIGON_FILETYPE_AUTO 8 /* #define DISIGON_VERIFYTYPE_P7M 1 #define DISIGON_VERIFYTYPE_TSD 2 #define DISIGON_VERIFYTYPE_TST 3 #define DISIGON_VERIFYTYPE_TSR 4 #define DISIGON_VERIFYTYPE_PDF 5 #define DISIGON_VERIFYTYPE_XML 6 #define DISIGON_VERIFYTYPE_M7M 7 */ #define DISIGON_ALGO_SHA1 1 #define DISIGON_ALGO_SHA256 2 #define DISIGON_ALGO_SHA512 3 #define DISIGON_ALGO_MD5 4 #define LOG_TYPE_ERROR 1 #define LOG_TYPE_WARNING 2 #define LOG_TYPE_MESSAGE 3 #define LOG_TYPE_DEBUG 4 #define TYPE_OCSP 1 #define TYPE_CRL 2 #define DISIGON_RS_SERVICE_TYPE_NONE 0 #define DISIGON_RS_SERVICE_TYPE_ARUBA 1 #define DISIGON_RS_SERVICE_TYPE_ITTELECOM 2 typedef struct _REVOCATION_INFO { int nType; // OCSP, CRL char szExpiration[60]; char szThisUpdate[60]; int nRevocationStatus; char szRevocationDate[60]; } REVOCATION_INFO; typedef struct _SIGNER_INFO { char szCN[MAX_LEN * 2]; char szDN[MAX_LEN * 2]; char szGIVENNAME[MAX_LEN * 2]; char szSURNAME[MAX_LEN * 2]; char szSN[MAX_LEN * 2]; char szCADN[MAX_LEN * 2]; char** pszExtensions; int nExtensionsCount; char szExpiration[MAX_LEN]; char szValidFrom[MAX_LEN]; long bitmask; char szDigestAlgorithm[MAX_LEN]; char szSigningTime[MAX_LEN]; char szCertificateV2[MAX_LEN]; BOOL b2011Error; BYTE* pCertificate; int nCertLen; void* pTimeStamp; REVOCATION_INFO* pRevocationInfo; void* pCounterSignatures; int nCounterSignatureCount; } SIGNER_INFO; typedef struct _TS_INFO { SIGNER_INFO signerInfo; char szTimestamp[MAX_LEN]; char szTimeStampImprintAlgorithm[MAX_LEN]; char szTimeStampMessageImprint[MAX_LEN]; char szTimeStampSerial[MAX_LEN]; } TS_INFO; typedef struct _SIGNER_INFOS { SIGNER_INFO* pSignerInfo; int nCount; } SIGNER_INFOS; typedef struct _VERIFY_INFO { SIGNER_INFOS* pSignerInfos; TS_INFO* pTSInfo; } VERIFY_INFO; typedef struct _VERIFY_RESULT { int nResultType; BOOL bVerifyCRL; VERIFY_INFO verifyInfo; long nErrorCode; char szInputFile[MAX_PATH]; char szPlainTextFile[MAX_PATH]; } VERIFY_RESULT; typedef struct _CERTIFICATE { char szLabel[MAX_LEN * 2]; char szCN[MAX_LEN * 2]; char szSN[MAX_LEN * 2]; char szCACN[MAX_LEN * 2]; char szExpiration[MAX_LEN]; char szValidFrom[MAX_LEN]; BYTE* pCertificate; int nCertLen; } CERTIFICATE; typedef struct _CERTIFICATES { CERTIFICATE* pCertificate; int nCount; } CERTIFICATES; typedef void* DISIGON_CTX; /* #ifdef __cplusplus extern "C" { #endif */ // Imposta le opzioni generali della libreria DISIGON_API long disigon_set(int option, void* value); DISIGON_API long disigon_set_int(int option, int value); DISIGON_API long disigon_set_string(int option, char* value); // libera la memoria allocata dalla libreria DISIGON_API void disigon_cleanup(); /////////////////////////////////// // Funzioni di firma digitale // inizializza la funzione di firma DISIGON_API DISIGON_CTX disigon_sign_init(void); // imposta le opzioni di firma DISIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value); DISIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value); DISIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value); // esegue la firma secondo le opzioni passate DISIGON_API long disigon_sign_sign(DISIGON_CTX ctx); // libera la memoria allocata nell'operazione di firma DISIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx); DISIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs); DISIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs); // /////////////////////////////////////////// ////////////////////////////////////////// // Funzioni di verifica della firma // inizializza l'operazione di verifica DISIGON_API DISIGON_CTX disigon_verify_init(void); // imposta le opzioni di verifica DISIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value); DISIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value); DISIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value); // esegue l'operazione di verifica secondo le opzioni passate DISIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); // libera la memoria allocata per la struttura dei risultati delle verifica DISIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult); // libera la memoria allocata nell'operazione di verifica DISIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx); //estra il documento originale da un file p7m DISIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx); // operazione di sbustamento veloce /* #ifdef __cplusplus } #endif */ #endif // __DISIGON_H
28.33
359
(translation_unit) "#ifndef __DISIGON_H \n#define __DISIGON_H \n \n#ifndef WIN32 \n#define DISIGON_API //__declspec(dllexport) \n#else \n#ifdef DISIGON_STATIC \n#define DISIGON_API \n#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif \n#endif \n#endif \n \n#define MAX_LEN 256 \n \n#include "definitions.h" \n \n#define VERIFIED_CERT_VALIDITY 0x000001 \n#define VERIFIED_CERT_REVOKED 0x000002 \n#define VERIFIED_CERT_SUSPENDED 0x000004 \n#define VERIFIED_CERT_GOOD 0x000008 \n#define VERIFIED_CERT_SHA256 0x000010 \n#define VERIFIED_CERT_QUALIFIED 0x000020 \n#define VERIFIED_CERT_CHAIN 0x000040 \n \n#define VERIFIED_CRL_LOADED 0x000080 \n#define VERIFIED_CRL_EXPIRED 0x000100 \n \n#define VERIFIED_SIGNED_ATTRIBUTE_CT 0x000200 \n#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400 \n#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800 \n \n#define VERIFIED_SIGNATURE 0x001000 \n#define VERIFIED_SHA256 0x002000 \n \n#define VERIFIED_CACERT_VALIDITY 0x004000 \n#define VERIFIED_CACERT_REVOKED 0x008000 \n#define VERIFIED_CACERT_SUSPENDED 0x010000 \n#define VERIFIED_CACERT_GOOD 0x020000 \n#define VERIFIED_CACERT_SIGNATURE 0x040000 \n#define VERIFIED_CACRL_LOADED 0x080000 \n#define VERIFIED_CACERT_FOUND 0x100000 \n \n#define VERIFIED_KEY_USAGE 0x200000 \n \n// TODO \n// certificate store con cache degli esiti delle verifiche dei certificati \n// stato revoca e validit� dei certificati nella chain \n \n \n#define REVOCATION_STATUS_GOOD 0 \n#define REVOCATION_STATUS_REVOKED 1 \n#define REVOCATION_STATUS_SUSPENDED 2 \n#define REVOCATION_STATUS_UNKNOWN 3 \n#define REVOCATION_STATUS_NOTLOADED 4 \n \n#define DISIGON_OPT_PKCS11 1 \n#define DISIGON_OPT_SLOT 2 \n#define DISIGON_OPT_PIN 3 \n#define DISIGON_OPT_ALIAS 4 \n#define DISIGON_OPT_CADES 5 \n#define DISIGON_OPT_XADES 5 \n#define DISIGON_OPT_DETACHED 6 \n#define DISIGON_OPT_INPUTFILE 7 \n#define DISIGON_OPT_OUTPUTFILE 8 \n#define DISIGON_OPT_INPUTFILE_TYPE 9 \n#define DISIGON_OPT_TSA_URL 10 \n#define DISIGON_OPT_TSA_USERNAME 11 \n#define DISIGON_OPT_TSA_PASSWORD 12 \n#define DISIGON_OPT_VERIFY_REVOCATION 13 \n#define DISIGON_OPT_LOG_LEVEL 14 \n#define DISIGON_OPT_LOG_FILE 15 \n#define DISIGON_OPT_INPUTFILE_PLAINTEXT 16 \n#define DISIGON_OPT_CACERT_DIR 17 \n#define DISIGON_OPT_PDF_SUBFILTER 18 \n#define DISIGON_OPT_CONFIG_FILE 19 \n#define DISIGON_OPT_PROXY 20 \n#define DISIGON_OPT_PROXY_PORT 21 \n#define DISIGON_OPT_PROXY_USRPASS 22 \n#define DISIGON_OPT_OID_MAP_FILE 23 \n#define DISIGON_OPT_TCP_TIMEOUT 24 \n#define DISIGON_OPT_PDF_REASON 25 \n#define DISIGON_OPT_PDF_NAME 26 \n#define DISIGON_OPT_PDF_LOCATION 27 \n#define DISIGON_OPT_PDF_PAGE 28 \n#define DISIGON_OPT_PDF_LEFT 29 \n#define DISIGON_OPT_PDF_BOTTOM 30 \n#define DISIGON_OPT_PDF_WIDTH 31 \n#define DISIGON_OPT_PDF_HEIGHT 32 \n#define DISIGON_OPT_PDF_IMAGEPATH 33 \n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA 34 \n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35 \n \n#define DISIGON_OPT_ATR_LIST_FILE 36 \n#define DISIGON_OPT_HASH_ALGO 37 \n \n#define DISIGON_OPT_LICENSEE 38 \n#define DISIGON_OPT_PRODUCTKEY 39 \n \n#define DISIGON_OPT_RS_OTP_PIN 40 \n#define DISIGON_OPT_RS_HSMTYPE 41 \n#define DISIGON_OPT_RS_TYPE_OTP_AUTH 42 \n#define DISIGON_OPT_RS_USERNAME 43 \n#define DISIGON_OPT_RS_PASSWORD 44 \n#define DISIGON_OPT_RS_CERTID 45 \n#define DISIGON_OPT_RS_SERVICE_URL 46 \n#define DISIGON_OPT_RS_USER_CODE 47 \n#define DISIGON_OPT_RS_SERVICE_TYPE 48 \n \n#define DISIGON_OPT_PDF_DESCRIPTION 50 \n#define DISIGON_OPT_PDF_NAME_LABEL 51 \n#define DISIGON_OPT_PDF_REASON_LABEL 52 \n#define DISIGON_OPT_PDF_LOCATION_LABEL 53 \n \n#define DISIGON_OPT_TSL_URL 60 \n#define DISIGON_OPT_VERIFY_USER_CERTIFICATE 61 \n \n#define DISIGON_OPT_P12_FILEPATH 70 \n#define DISIGON_OPT_P12_PASSWORD 71 \n \n#define DISIGON_OPT_IAS_INSTANCE 80 \n \n#define DISIGON_PDF_SUBFILTER_PKCS_DETACHED "adbe.pkcs7.detached" \n#define DISIGON_PDF_SUBFILTER_ETSI_CADES "ETSI.CAdES.detached" \n \n \n#define DISIGON_ERROR_BASE 0x84000000UL \n \n \n#define DISIGON_ERROR_UNEXPECTED DISIGON_ERROR_BASE + 1 \n#define DISIGON_ERROR_FILE_NOT_FOUND DISIGON_ERROR_BASE + 2 \n#define DISIGON_ERROR_DETACHED_PKCS7 DISIGON_ERROR_BASE + 3 \n#define DISIGON_ERROR_CERT_REVOKED DISIGON_ERROR_BASE + 4 \n#define DISIGON_ERROR_INVALID_FILE DISIGON_ERROR_BASE + 5 \n#define DISIGON_ERROR_INVALID_P11 DISIGON_ERROR_BASE + 6 \n#define DISIGON_ERROR_INVALID_ALIAS DISIGON_ERROR_BASE + 7 \n#define DISIGON_ERROR_INVALID_SIGOPT DISIGON_ERROR_BASE + 8 \n#define DISIGON_ERROR_ARRS_BASE DISIGON_ERROR_BASE + 0x00100000 \n#define DISIGON_ERROR_CERT_INVALID DISIGON_ERROR_BASE + 9 \n#define DISIGON_ERROR_CERT_EXPIRED DISIGON_ERROR_BASE + 10 \n#define DISIGON_ERROR_CACERT_NOTFOUND DISIGON_ERROR_BASE + 11 \n#define DISIGON_ERROR_CERT_NOTFOUND DISIGON_ERROR_BASE + 12 \n#define DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE DISIGON_ERROR_BASE + 13 \n \n#define DISIGON_ERROR_TSL_LOAD DISIGON_ERROR_BASE + 20 \n#define DISIGON_ERROR_TSL_PARSE DISIGON_ERROR_BASE + 21 \n#define DISIGON_ERROR_TSL_INVALID DISIGON_ERROR_BASE + 22 \n#define DISIGON_ERROR_TSL_CACERTDIR_NOT_SET DISIGON_ERROR_BASE + 23 \n#define DISIGON_ERROR_TSA DISIGON_ERROR_BASE + 30 \n \n#define DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40 \n#define DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41 \n \n \n#define DISIGON_FILETYPE_PLAINTEXT 0 \n#define DISIGON_FILETYPE_P7M 1 \n#define DISIGON_FILETYPE_PDF 2 \n#define DISIGON_FILETYPE_M7M 3 \n#define DISIGON_FILETYPE_TSR 4 \n#define DISIGON_FILETYPE_TST 5 \n#define DISIGON_FILETYPE_TSD 6 \n#define DISIGON_FILETYPE_XML 7 \n#define DISIGON_FILETYPE_AUTO 8 \n \n/* \n#define DISIGON_VERIFYTYPE_P7M 1 \n#define DISIGON_VERIFYTYPE_TSD 2 \n#define DISIGON_VERIFYTYPE_TST 3 \n#define DISIGON_VERIFYTYPE_TSR 4 \n#define DISIGON_VERIFYTYPE_PDF 5 \n#define DISIGON_VERIFYTYPE_XML 6 \n#define DISIGON_VERIFYTYPE_M7M 7 \n*/ \n#define DISIGON_ALGO_SHA1 1 \n#define DISIGON_ALGO_SHA256 2 \n#define DISIGON_ALGO_SHA512 3 \n#define DISIGON_ALGO_MD5 4 \n \n#define LOG_TYPE_ERROR 1 \n#define LOG_TYPE_WARNING 2 \n#define LOG_TYPE_MESSAGE 3 \n#define LOG_TYPE_DEBUG 4 \n \n#define TYPE_OCSP 1 \n#define TYPE_CRL 2 \n \n#define DISIGON_RS_SERVICE_TYPE_NONE 0 \n#define DISIGON_RS_SERVICE_TYPE_ARUBA 1 \n#define DISIGON_RS_SERVICE_TYPE_ITTELECOM 2 \n \n \n \ntypedef struct _REVOCATION_INFO \n{ \n int nType; // OCSP, CRL \n char szExpiration[60]; \n char szThisUpdate[60]; \n int nRevocationStatus; \n char szRevocationDate[60]; \n} REVOCATION_INFO; \n \n \ntypedef struct _SIGNER_INFO \n{ \n char szCN[MAX_LEN * 2]; \n char szDN[MAX_LEN * 2]; \n char szGIVENNAME[MAX_LEN * 2]; \n char szSURNAME[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCADN[MAX_LEN * 2]; \n char** pszExtensions; \n int nExtensionsCount; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n long bitmask; \n char szDigestAlgorithm[MAX_LEN]; \n char szSigningTime[MAX_LEN]; \n char szCertificateV2[MAX_LEN]; \n BOOL b2011Error; \n BYTE* pCertificate; \n int nCertLen; \n void* pTimeStamp; \n REVOCATION_INFO* pRevocationInfo; \n void* pCounterSignatures; \n int nCounterSignatureCount; \n} SIGNER_INFO; \n \ntypedef struct _TS_INFO \n{ \n SIGNER_INFO signerInfo; \n char szTimestamp[MAX_LEN]; \n char szTimeStampImprintAlgorithm[MAX_LEN]; \n char szTimeStampMessageImprint[MAX_LEN]; \n char szTimeStampSerial[MAX_LEN]; \n} TS_INFO; \n \n \ntypedef struct _SIGNER_INFOS \n{ \n SIGNER_INFO* pSignerInfo; \n int nCount; \n} SIGNER_INFOS; \n \ntypedef struct _VERIFY_INFO \n{ \n SIGNER_INFOS* pSignerInfos; \n TS_INFO* pTSInfo; \n \n} VERIFY_INFO; \n \ntypedef struct _VERIFY_RESULT \n{ \n int nResultType; \n BOOL bVerifyCRL; \n VERIFY_INFO verifyInfo; \n long nErrorCode; \n char szInputFile[MAX_PATH]; \n char szPlainTextFile[MAX_PATH]; \n} VERIFY_RESULT; \n \n \ntypedef struct _CERTIFICATE \n{ \n char szLabel[MAX_LEN * 2]; \n char szCN[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCACN[MAX_LEN * 2]; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n BYTE* pCertificate; \n int nCertLen; \n} CERTIFICATE; \n \n \ntypedef struct _CERTIFICATES \n{ \n CERTIFICATE* pCertificate; \n int nCount; \n} CERTIFICATES; \n \n \ntypedef void* DISIGON_CTX; \n \n/* \n#ifdef __cplusplus \nextern "C" { \n#endif \n*/ \n \n// Imposta le opzioni generali della libreria \nDISIGON_API long disigon_set(int option, void* value); \n \nDISIGON_API long disigon_set_int(int option, int value); \n \nDISIGON_API long disigon_set_string(int option, char* value); \n \n// libera la memoria allocata dalla libreria \nDISIGON_API void disigon_cleanup(); \n \n/////////////////////////////////// \n// Funzioni di firma digitale \n \n// inizializza la funzione di firma \nDISIGON_API DISIGON_CTX disigon_sign_init(void); \n \n// imposta le opzioni di firma \nDISIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value); \n \nDISIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value); \n \nDISIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value); \n \n// esegue la firma secondo le opzioni passate \nDISIGON_API long disigon_sign_sign(DISIGON_CTX ctx); \n \n// libera la memoria allocata nell'operazione di firma \nDISIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx); \n \nDISIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs); \n \nDISIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs); \n \n// \n/////////////////////////////////////////// \n \n////////////////////////////////////////// \n// Funzioni di verifica della firma \n \n// inizializza l'operazione di verifica \nDISIGON_API DISIGON_CTX disigon_verify_init(void); \n \n// imposta le opzioni di verifica \nDISIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value); \nDISIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value); \nDISIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value); \n \n// esegue l'operazione di verifica secondo le opzioni passate \nDISIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); \n \n// libera la memoria allocata per la struttura dei risultati delle verifica \nDISIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult); \n \n// libera la memoria allocata nell'operazione di verifica \nDISIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx); \n \n//estra il documento originale da un file p7m \nDISIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx); \n// operazione di sbustamento veloce \n \n/* \n#ifdef __cplusplus \n} \n#endif \n*/ \n#endif // __DISIGON_H \n \n" (preproc_ifdef) "#ifndef __DISIGON_H \n#define __DISIGON_H \n \n#ifndef WIN32 \n#define DISIGON_API //__declspec(dllexport) \n#else \n#ifdef DISIGON_STATIC \n#define DISIGON_API \n#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif \n#endif \n#endif \n \n#define MAX_LEN 256 \n \n#include "definitions.h" \n \n#define VERIFIED_CERT_VALIDITY 0x000001 \n#define VERIFIED_CERT_REVOKED 0x000002 \n#define VERIFIED_CERT_SUSPENDED 0x000004 \n#define VERIFIED_CERT_GOOD 0x000008 \n#define VERIFIED_CERT_SHA256 0x000010 \n#define VERIFIED_CERT_QUALIFIED 0x000020 \n#define VERIFIED_CERT_CHAIN 0x000040 \n \n#define VERIFIED_CRL_LOADED 0x000080 \n#define VERIFIED_CRL_EXPIRED 0x000100 \n \n#define VERIFIED_SIGNED_ATTRIBUTE_CT 0x000200 \n#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400 \n#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800 \n \n#define VERIFIED_SIGNATURE 0x001000 \n#define VERIFIED_SHA256 0x002000 \n \n#define VERIFIED_CACERT_VALIDITY 0x004000 \n#define VERIFIED_CACERT_REVOKED 0x008000 \n#define VERIFIED_CACERT_SUSPENDED 0x010000 \n#define VERIFIED_CACERT_GOOD 0x020000 \n#define VERIFIED_CACERT_SIGNATURE 0x040000 \n#define VERIFIED_CACRL_LOADED 0x080000 \n#define VERIFIED_CACERT_FOUND 0x100000 \n \n#define VERIFIED_KEY_USAGE 0x200000 \n \n// TODO \n// certificate store con cache degli esiti delle verifiche dei certificati \n// stato revoca e validit� dei certificati nella chain \n \n \n#define REVOCATION_STATUS_GOOD 0 \n#define REVOCATION_STATUS_REVOKED 1 \n#define REVOCATION_STATUS_SUSPENDED 2 \n#define REVOCATION_STATUS_UNKNOWN 3 \n#define REVOCATION_STATUS_NOTLOADED 4 \n \n#define DISIGON_OPT_PKCS11 1 \n#define DISIGON_OPT_SLOT 2 \n#define DISIGON_OPT_PIN 3 \n#define DISIGON_OPT_ALIAS 4 \n#define DISIGON_OPT_CADES 5 \n#define DISIGON_OPT_XADES 5 \n#define DISIGON_OPT_DETACHED 6 \n#define DISIGON_OPT_INPUTFILE 7 \n#define DISIGON_OPT_OUTPUTFILE 8 \n#define DISIGON_OPT_INPUTFILE_TYPE 9 \n#define DISIGON_OPT_TSA_URL 10 \n#define DISIGON_OPT_TSA_USERNAME 11 \n#define DISIGON_OPT_TSA_PASSWORD 12 \n#define DISIGON_OPT_VERIFY_REVOCATION 13 \n#define DISIGON_OPT_LOG_LEVEL 14 \n#define DISIGON_OPT_LOG_FILE 15 \n#define DISIGON_OPT_INPUTFILE_PLAINTEXT 16 \n#define DISIGON_OPT_CACERT_DIR 17 \n#define DISIGON_OPT_PDF_SUBFILTER 18 \n#define DISIGON_OPT_CONFIG_FILE 19 \n#define DISIGON_OPT_PROXY 20 \n#define DISIGON_OPT_PROXY_PORT 21 \n#define DISIGON_OPT_PROXY_USRPASS 22 \n#define DISIGON_OPT_OID_MAP_FILE 23 \n#define DISIGON_OPT_TCP_TIMEOUT 24 \n#define DISIGON_OPT_PDF_REASON 25 \n#define DISIGON_OPT_PDF_NAME 26 \n#define DISIGON_OPT_PDF_LOCATION 27 \n#define DISIGON_OPT_PDF_PAGE 28 \n#define DISIGON_OPT_PDF_LEFT 29 \n#define DISIGON_OPT_PDF_BOTTOM 30 \n#define DISIGON_OPT_PDF_WIDTH 31 \n#define DISIGON_OPT_PDF_HEIGHT 32 \n#define DISIGON_OPT_PDF_IMAGEPATH 33 \n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA 34 \n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35 \n \n#define DISIGON_OPT_ATR_LIST_FILE 36 \n#define DISIGON_OPT_HASH_ALGO 37 \n \n#define DISIGON_OPT_LICENSEE 38 \n#define DISIGON_OPT_PRODUCTKEY 39 \n \n#define DISIGON_OPT_RS_OTP_PIN 40 \n#define DISIGON_OPT_RS_HSMTYPE 41 \n#define DISIGON_OPT_RS_TYPE_OTP_AUTH 42 \n#define DISIGON_OPT_RS_USERNAME 43 \n#define DISIGON_OPT_RS_PASSWORD 44 \n#define DISIGON_OPT_RS_CERTID 45 \n#define DISIGON_OPT_RS_SERVICE_URL 46 \n#define DISIGON_OPT_RS_USER_CODE 47 \n#define DISIGON_OPT_RS_SERVICE_TYPE 48 \n \n#define DISIGON_OPT_PDF_DESCRIPTION 50 \n#define DISIGON_OPT_PDF_NAME_LABEL 51 \n#define DISIGON_OPT_PDF_REASON_LABEL 52 \n#define DISIGON_OPT_PDF_LOCATION_LABEL 53 \n \n#define DISIGON_OPT_TSL_URL 60 \n#define DISIGON_OPT_VERIFY_USER_CERTIFICATE 61 \n \n#define DISIGON_OPT_P12_FILEPATH 70 \n#define DISIGON_OPT_P12_PASSWORD 71 \n \n#define DISIGON_OPT_IAS_INSTANCE 80 \n \n#define DISIGON_PDF_SUBFILTER_PKCS_DETACHED "adbe.pkcs7.detached" \n#define DISIGON_PDF_SUBFILTER_ETSI_CADES "ETSI.CAdES.detached" \n \n \n#define DISIGON_ERROR_BASE 0x84000000UL \n \n \n#define DISIGON_ERROR_UNEXPECTED DISIGON_ERROR_BASE + 1 \n#define DISIGON_ERROR_FILE_NOT_FOUND DISIGON_ERROR_BASE + 2 \n#define DISIGON_ERROR_DETACHED_PKCS7 DISIGON_ERROR_BASE + 3 \n#define DISIGON_ERROR_CERT_REVOKED DISIGON_ERROR_BASE + 4 \n#define DISIGON_ERROR_INVALID_FILE DISIGON_ERROR_BASE + 5 \n#define DISIGON_ERROR_INVALID_P11 DISIGON_ERROR_BASE + 6 \n#define DISIGON_ERROR_INVALID_ALIAS DISIGON_ERROR_BASE + 7 \n#define DISIGON_ERROR_INVALID_SIGOPT DISIGON_ERROR_BASE + 8 \n#define DISIGON_ERROR_ARRS_BASE DISIGON_ERROR_BASE + 0x00100000 \n#define DISIGON_ERROR_CERT_INVALID DISIGON_ERROR_BASE + 9 \n#define DISIGON_ERROR_CERT_EXPIRED DISIGON_ERROR_BASE + 10 \n#define DISIGON_ERROR_CACERT_NOTFOUND DISIGON_ERROR_BASE + 11 \n#define DISIGON_ERROR_CERT_NOTFOUND DISIGON_ERROR_BASE + 12 \n#define DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE DISIGON_ERROR_BASE + 13 \n \n#define DISIGON_ERROR_TSL_LOAD DISIGON_ERROR_BASE + 20 \n#define DISIGON_ERROR_TSL_PARSE DISIGON_ERROR_BASE + 21 \n#define DISIGON_ERROR_TSL_INVALID DISIGON_ERROR_BASE + 22 \n#define DISIGON_ERROR_TSL_CACERTDIR_NOT_SET DISIGON_ERROR_BASE + 23 \n#define DISIGON_ERROR_TSA DISIGON_ERROR_BASE + 30 \n \n#define DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40 \n#define DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41 \n \n \n#define DISIGON_FILETYPE_PLAINTEXT 0 \n#define DISIGON_FILETYPE_P7M 1 \n#define DISIGON_FILETYPE_PDF 2 \n#define DISIGON_FILETYPE_M7M 3 \n#define DISIGON_FILETYPE_TSR 4 \n#define DISIGON_FILETYPE_TST 5 \n#define DISIGON_FILETYPE_TSD 6 \n#define DISIGON_FILETYPE_XML 7 \n#define DISIGON_FILETYPE_AUTO 8 \n \n/* \n#define DISIGON_VERIFYTYPE_P7M 1 \n#define DISIGON_VERIFYTYPE_TSD 2 \n#define DISIGON_VERIFYTYPE_TST 3 \n#define DISIGON_VERIFYTYPE_TSR 4 \n#define DISIGON_VERIFYTYPE_PDF 5 \n#define DISIGON_VERIFYTYPE_XML 6 \n#define DISIGON_VERIFYTYPE_M7M 7 \n*/ \n#define DISIGON_ALGO_SHA1 1 \n#define DISIGON_ALGO_SHA256 2 \n#define DISIGON_ALGO_SHA512 3 \n#define DISIGON_ALGO_MD5 4 \n \n#define LOG_TYPE_ERROR 1 \n#define LOG_TYPE_WARNING 2 \n#define LOG_TYPE_MESSAGE 3 \n#define LOG_TYPE_DEBUG 4 \n \n#define TYPE_OCSP 1 \n#define TYPE_CRL 2 \n \n#define DISIGON_RS_SERVICE_TYPE_NONE 0 \n#define DISIGON_RS_SERVICE_TYPE_ARUBA 1 \n#define DISIGON_RS_SERVICE_TYPE_ITTELECOM 2 \n \n \n \ntypedef struct _REVOCATION_INFO \n{ \n int nType; // OCSP, CRL \n char szExpiration[60]; \n char szThisUpdate[60]; \n int nRevocationStatus; \n char szRevocationDate[60]; \n} REVOCATION_INFO; \n \n \ntypedef struct _SIGNER_INFO \n{ \n char szCN[MAX_LEN * 2]; \n char szDN[MAX_LEN * 2]; \n char szGIVENNAME[MAX_LEN * 2]; \n char szSURNAME[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCADN[MAX_LEN * 2]; \n char** pszExtensions; \n int nExtensionsCount; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n long bitmask; \n char szDigestAlgorithm[MAX_LEN]; \n char szSigningTime[MAX_LEN]; \n char szCertificateV2[MAX_LEN]; \n BOOL b2011Error; \n BYTE* pCertificate; \n int nCertLen; \n void* pTimeStamp; \n REVOCATION_INFO* pRevocationInfo; \n void* pCounterSignatures; \n int nCounterSignatureCount; \n} SIGNER_INFO; \n \ntypedef struct _TS_INFO \n{ \n SIGNER_INFO signerInfo; \n char szTimestamp[MAX_LEN]; \n char szTimeStampImprintAlgorithm[MAX_LEN]; \n char szTimeStampMessageImprint[MAX_LEN]; \n char szTimeStampSerial[MAX_LEN]; \n} TS_INFO; \n \n \ntypedef struct _SIGNER_INFOS \n{ \n SIGNER_INFO* pSignerInfo; \n int nCount; \n} SIGNER_INFOS; \n \ntypedef struct _VERIFY_INFO \n{ \n SIGNER_INFOS* pSignerInfos; \n TS_INFO* pTSInfo; \n \n} VERIFY_INFO; \n \ntypedef struct _VERIFY_RESULT \n{ \n int nResultType; \n BOOL bVerifyCRL; \n VERIFY_INFO verifyInfo; \n long nErrorCode; \n char szInputFile[MAX_PATH]; \n char szPlainTextFile[MAX_PATH]; \n} VERIFY_RESULT; \n \n \ntypedef struct _CERTIFICATE \n{ \n char szLabel[MAX_LEN * 2]; \n char szCN[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCACN[MAX_LEN * 2]; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n BYTE* pCertificate; \n int nCertLen; \n} CERTIFICATE; \n \n \ntypedef struct _CERTIFICATES \n{ \n CERTIFICATE* pCertificate; \n int nCount; \n} CERTIFICATES; \n \n \ntypedef void* DISIGON_CTX; \n \n/* \n#ifdef __cplusplus \nextern "C" { \n#endif \n*/ \n \n// Imposta le opzioni generali della libreria \nDISIGON_API long disigon_set(int option, void* value); \n \nDISIGON_API long disigon_set_int(int option, int value); \n \nDISIGON_API long disigon_set_string(int option, char* value); \n \n// libera la memoria allocata dalla libreria \nDISIGON_API void disigon_cleanup(); \n \n/////////////////////////////////// \n// Funzioni di firma digitale \n \n// inizializza la funzione di firma \nDISIGON_API DISIGON_CTX disigon_sign_init(void); \n \n// imposta le opzioni di firma \nDISIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value); \n \nDISIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value); \n \nDISIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value); \n \n// esegue la firma secondo le opzioni passate \nDISIGON_API long disigon_sign_sign(DISIGON_CTX ctx); \n \n// libera la memoria allocata nell'operazione di firma \nDISIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx); \n \nDISIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs); \n \nDISIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs); \n \n// \n/////////////////////////////////////////// \n \n////////////////////////////////////////// \n// Funzioni di verifica della firma \n \n// inizializza l'operazione di verifica \nDISIGON_API DISIGON_CTX disigon_verify_init(void); \n \n// imposta le opzioni di verifica \nDISIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value); \nDISIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value); \nDISIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value); \n \n// esegue l'operazione di verifica secondo le opzioni passate \nDISIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); \n \n// libera la memoria allocata per la struttura dei risultati delle verifica \nDISIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult); \n \n// libera la memoria allocata nell'operazione di verifica \nDISIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx); \n \n//estra il documento originale da un file p7m \nDISIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx); \n// operazione di sbustamento veloce \n \n/* \n#ifdef __cplusplus \n} \n#endif \n*/ \n#endif /" (#ifndef) "#ifndef" (identifier) "__DISIGON_H" (preproc_def) "#define __DISIGON_H \n" (#define) "#define" (identifier) "__DISIGON_H" (preproc_ifdef) "#ifndef WIN32 \n#define DISIGON_API //__declspec(dllexport) \n#else \n#ifdef DISIGON_STATIC \n#define DISIGON_API \n#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif \n#endif \n#endif" (#ifndef) "#ifndef" (identifier) "WIN32" (preproc_def) "#define DISIGON_API //__declspec(dllexport) \n" (#define) "#define" (identifier) "DISIGON_API" (comment) "//__declspec(dllexport) " (preproc_else) "#else \n#ifdef DISIGON_STATIC \n#define DISIGON_API \n#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif \n#endif" (#else) "#else" (preproc_ifdef) "#ifdef DISIGON_STATIC \n#define DISIGON_API \n#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif \n#endif" (#ifdef) "#ifdef" (identifier) "DISIGON_STATIC" (preproc_def) "#define DISIGON_API \n" (#define) "#define" (identifier) "DISIGON_API" (preproc_else) "#else \n#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif" (#else) "#else" (preproc_ifdef) "#ifdef DISIGON_EXPORTS \n#define DISIGON_API //__declspec(dllexport) \n#else \n#define DISIGON_API //__declspec(dllimport) \n#endif" (#ifdef) "#ifdef" (identifier) "DISIGON_EXPORTS" (preproc_def) "#define DISIGON_API //__declspec(dllexport) \n" (#define) "#define" (identifier) "DISIGON_API" (comment) "//__declspec(dllexport) " (preproc_else) "#else \n#define DISIGON_API //__declspec(dllimport) \n" (#else) "#else" (preproc_def) "#define DISIGON_API //__declspec(dllimport) \n" (#define) "#define" (identifier) "DISIGON_API" (comment) "//__declspec(dllimport) " (#endif) "#endif" (#endif) "#endif" (#endif) "#endif" (preproc_def) "#define MAX_LEN 256 \n" (#define) "#define" (identifier) "MAX_LEN" (preproc_arg) "256 " (preproc_include) "#include "definitions.h" \n" (#include) "#include" (string_literal) ""definitions.h"" (") """ (string_content) "definitions.h" (") """ (preproc_def) "#define VERIFIED_CERT_VALIDITY 0x000001 \n" (#define) "#define" (identifier) "VERIFIED_CERT_VALIDITY" (preproc_arg) "0x000001 " (preproc_def) "#define VERIFIED_CERT_REVOKED 0x000002 \n" (#define) "#define" (identifier) "VERIFIED_CERT_REVOKED" (preproc_arg) "0x000002 " (preproc_def) "#define VERIFIED_CERT_SUSPENDED 0x000004 \n" (#define) "#define" (identifier) "VERIFIED_CERT_SUSPENDED" (preproc_arg) "0x000004 " (preproc_def) "#define VERIFIED_CERT_GOOD 0x000008 \n" (#define) "#define" (identifier) "VERIFIED_CERT_GOOD" (preproc_arg) "0x000008 " (preproc_def) "#define VERIFIED_CERT_SHA256 0x000010 \n" (#define) "#define" (identifier) "VERIFIED_CERT_SHA256" (preproc_arg) "0x000010 " (preproc_def) "#define VERIFIED_CERT_QUALIFIED 0x000020 \n" (#define) "#define" (identifier) "VERIFIED_CERT_QUALIFIED" (preproc_arg) "0x000020 " (preproc_def) "#define VERIFIED_CERT_CHAIN 0x000040 \n" (#define) "#define" (identifier) "VERIFIED_CERT_CHAIN" (preproc_arg) "0x000040 " (preproc_def) "#define VERIFIED_CRL_LOADED 0x000080 \n" (#define) "#define" (identifier) "VERIFIED_CRL_LOADED" (preproc_arg) "0x000080 " (preproc_def) "#define VERIFIED_CRL_EXPIRED 0x000100 \n" (#define) "#define" (identifier) "VERIFIED_CRL_EXPIRED" (preproc_arg) "0x000100 " (preproc_def) "#define VERIFIED_SIGNED_ATTRIBUTE_CT 0x000200 \n" (#define) "#define" (identifier) "VERIFIED_SIGNED_ATTRIBUTE_CT" (preproc_arg) "0x000200 " (preproc_def) "#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400 \n" (#define) "#define" (identifier) "VERIFIED_SIGNED_ATTRIBUTE_MD" (preproc_arg) "0x000400 " (preproc_def) "#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800 \n" (#define) "#define" (identifier) "VERIFIED_SIGNED_ATTRIBUTE_SC" (preproc_arg) "0x000800 " (preproc_def) "#define VERIFIED_SIGNATURE 0x001000 \n" (#define) "#define" (identifier) "VERIFIED_SIGNATURE" (preproc_arg) "0x001000 " (preproc_def) "#define VERIFIED_SHA256 0x002000 \n" (#define) "#define" (identifier) "VERIFIED_SHA256" (preproc_arg) "0x002000 " (preproc_def) "#define VERIFIED_CACERT_VALIDITY 0x004000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_VALIDITY" (preproc_arg) "0x004000 " (preproc_def) "#define VERIFIED_CACERT_REVOKED 0x008000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_REVOKED" (preproc_arg) "0x008000 " (preproc_def) "#define VERIFIED_CACERT_SUSPENDED 0x010000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_SUSPENDED" (preproc_arg) "0x010000 " (preproc_def) "#define VERIFIED_CACERT_GOOD 0x020000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_GOOD" (preproc_arg) "0x020000 " (preproc_def) "#define VERIFIED_CACERT_SIGNATURE 0x040000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_SIGNATURE" (preproc_arg) "0x040000 " (preproc_def) "#define VERIFIED_CACRL_LOADED 0x080000 \n" (#define) "#define" (identifier) "VERIFIED_CACRL_LOADED" (preproc_arg) "0x080000 " (preproc_def) "#define VERIFIED_CACERT_FOUND 0x100000 \n" (#define) "#define" (identifier) "VERIFIED_CACERT_FOUND" (preproc_arg) "0x100000 " (preproc_def) "#define VERIFIED_KEY_USAGE 0x200000 \n" (#define) "#define" (identifier) "VERIFIED_KEY_USAGE" (preproc_arg) "0x200000 " (comment) "// TODO " (comment) "// certificate store con cache degli esiti delle verifiche dei certificati " (comment) "// stato revoca e validit� dei certificati nella chain \n " (preproc_def) "efine REVOCATION_STATUS_GOOD 0 \n#d" (#define) "efine R" (identifier) "VOCATION_STATUS_GOOD " (preproc_arg) "\n#" (preproc_def) "efine REVOCATION_STATUS_REVOKED 1 \n#d" (#define) "efine R" (identifier) "VOCATION_STATUS_REVOKED " (preproc_arg) "\n#" (preproc_def) "efine REVOCATION_STATUS_SUSPENDED 2 \n#d" (#define) "efine R" (identifier) "VOCATION_STATUS_SUSPENDED 2" (preproc_arg) "\n#" (preproc_def) "efine REVOCATION_STATUS_UNKNOWN 3 \n#d" (#define) "efine R" (identifier) "VOCATION_STATUS_UNKNOWN " (preproc_arg) "\n#" (preproc_def) "efine REVOCATION_STATUS_NOTLOADED 4 \n \n" (#define) "efine R" (identifier) "VOCATION_STATUS_NOTLOADED " (preproc_arg) "\n " (preproc_def) "efine DISIGON_OPT_PKCS11 1 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PKCS11 " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_SLOT 2 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_SLOT " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_PIN 3 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PIN " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_ALIAS 4 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_ALIAS " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_CADES 5 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_CADES " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_XADES 5 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_XADES " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_DETACHED 6 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_DETACHED " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_INPUTFILE 7 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_INPUTFILE " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_OUTPUTFILE 8 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_OUTPUTFILE " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_INPUTFILE_TYPE 9 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_INPUTFILE_TYPE " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_OPT_TSA_URL 10 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_TSA_URL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_TSA_USERNAME 11 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_TSA_USERNAME " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_TSA_PASSWORD 12 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_TSA_PASSWORD " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_VERIFY_REVOCATION 13 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_VERIFY_REVOCATION 1" (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_LOG_LEVEL 14 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_LOG_LEVEL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_LOG_FILE 15 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_LOG_FILE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_INPUTFILE_PLAINTEXT 16 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_INPUTFILE_PLAINTEXT 1" (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_CACERT_DIR 17 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_CACERT_DIR " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_SUBFILTER 18 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_SUBFILTER " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_CONFIG_FILE 19 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_CONFIG_FILE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PROXY 20 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PROXY " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PROXY_PORT 21 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PROXY_PORT " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PROXY_USRPASS 22 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PROXY_USRPASS " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_OID_MAP_FILE 23 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_OID_MAP_FILE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_TCP_TIMEOUT 24 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_TCP_TIMEOUT " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_REASON 25 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_REASON " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_NAME 26 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_NAME " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_LOCATION 27 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_LOCATION " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_PAGE 28 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_PAGE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_LEFT 29 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_LEFT " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_BOTTOM 30 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_BOTTOM " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_WIDTH 31 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_WIDTH " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_HEIGHT 32 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_HEIGHT " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_IMAGEPATH 33 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_IMAGEPATH " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_GRAPHOMETRIC_DATA 34 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_GRAPHOMETRIC_DATA 3" (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 3" (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_ATR_LIST_FILE 36 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_ATR_LIST_FILE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_HASH_ALGO 37 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_HASH_ALGO " (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_LICENSEE 38 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_LICENSEE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PRODUCTKEY 39 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_PRODUCTKEY " (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_RS_OTP_PIN 40 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_OTP_PIN " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_HSMTYPE 41 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_HSMTYPE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_TYPE_OTP_AUTH 42 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_TYPE_OTP_AUTH " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_USERNAME 43 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_USERNAME " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_PASSWORD 44 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_PASSWORD " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_CERTID 45 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_CERTID " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_SERVICE_URL 46 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_SERVICE_URL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_USER_CODE 47 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_RS_USER_CODE " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_RS_SERVICE_TYPE 48 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_RS_SERVICE_TYPE " (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_PDF_DESCRIPTION 50 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_DESCRIPTION " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_NAME_LABEL 51 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_NAME_LABEL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_REASON_LABEL 52 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_PDF_REASON_LABEL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_PDF_LOCATION_LABEL 53 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_PDF_LOCATION_LABEL 5" (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_TSL_URL 60 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_TSL_URL " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_VERIFY_USER_CERTIFICATE 61 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_VERIFY_USER_CERTIFICATE 6" (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_P12_FILEPATH 70 \n#d" (#define) "efine D" (identifier) "SIGON_OPT_P12_FILEPATH " (preproc_arg) " \n#" (preproc_def) "efine DISIGON_OPT_P12_PASSWORD 71 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_P12_PASSWORD " (preproc_arg) " \n " (preproc_def) "efine DISIGON_OPT_IAS_INSTANCE 80 \n \n" (#define) "efine D" (identifier) "SIGON_OPT_IAS_INSTANCE " (preproc_arg) " \n " (preproc_def) "efine DISIGON_PDF_SUBFILTER_PKCS_DETACHED "adbe.pkcs7.detached" \n#d" (#define) "efine D" (identifier) "SIGON_PDF_SUBFILTER_PKCS_DETACHED "" (preproc_arg) "dbe.pkcs7.detached" \n#" (preproc_def) "efine DISIGON_PDF_SUBFILTER_ETSI_CADES "ETSI.CAdES.detached" \n \n" (#define) "efine D" (identifier) "SIGON_PDF_SUBFILTER_ETSI_CADES "" (preproc_arg) "TSI.CAdES.detached" \n " (preproc_def) "efine DISIGON_ERROR_BASE 0x84000000UL \n \n" (#define) "efine D" (identifier) "SIGON_ERROR_BASE " (preproc_arg) "84000000UL \n " (preproc_def) "efine DISIGON_ERROR_UNEXPECTED DISIGON_ERROR_BASE + 1 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_UNEXPECTED " (preproc_arg) "SIGON_ERROR_BASE + 1 \n#" (preproc_def) "efine DISIGON_ERROR_FILE_NOT_FOUND DISIGON_ERROR_BASE + 2 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_FILE_NOT_FOUND " (preproc_arg) "SIGON_ERROR_BASE + 2 \n#" (preproc_def) "efine DISIGON_ERROR_DETACHED_PKCS7 DISIGON_ERROR_BASE + 3 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_DETACHED_PKCS7 " (preproc_arg) "SIGON_ERROR_BASE + 3 \n#" (preproc_def) "efine DISIGON_ERROR_CERT_REVOKED DISIGON_ERROR_BASE + 4 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_CERT_REVOKED " (preproc_arg) "SIGON_ERROR_BASE + 4 \n#" (preproc_def) "efine DISIGON_ERROR_INVALID_FILE DISIGON_ERROR_BASE + 5 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_INVALID_FILE " (preproc_arg) "SIGON_ERROR_BASE + 5 \n#" (preproc_def) "efine DISIGON_ERROR_INVALID_P11 DISIGON_ERROR_BASE + 6 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_INVALID_P11 " (preproc_arg) "SIGON_ERROR_BASE + 6 \n#" (preproc_def) "efine DISIGON_ERROR_INVALID_ALIAS DISIGON_ERROR_BASE + 7 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_INVALID_ALIAS " (preproc_arg) "SIGON_ERROR_BASE + 7 \n#" (preproc_def) "efine DISIGON_ERROR_INVALID_SIGOPT DISIGON_ERROR_BASE + 8 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_INVALID_SIGOPT " (preproc_arg) "SIGON_ERROR_BASE + 8 \n#" (preproc_def) "efine DISIGON_ERROR_ARRS_BASE DISIGON_ERROR_BASE + 0x00100000 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_ARRS_BASE " (preproc_arg) "SIGON_ERROR_BASE + 0x00100000 \n#" (preproc_def) "efine DISIGON_ERROR_CERT_INVALID DISIGON_ERROR_BASE + 9 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_CERT_INVALID " (preproc_arg) "SIGON_ERROR_BASE + 9 \n#" (preproc_def) "efine DISIGON_ERROR_CERT_EXPIRED DISIGON_ERROR_BASE + 10 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_CERT_EXPIRED " (preproc_arg) "SIGON_ERROR_BASE + 10 \n#" (preproc_def) "efine DISIGON_ERROR_CACERT_NOTFOUND DISIGON_ERROR_BASE + 11 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_CACERT_NOTFOUND D" (preproc_arg) "SIGON_ERROR_BASE + 11 \n#" (preproc_def) "efine DISIGON_ERROR_CERT_NOTFOUND DISIGON_ERROR_BASE + 12 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_CERT_NOTFOUND " (preproc_arg) "SIGON_ERROR_BASE + 12 \n#" (preproc_def) "efine DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE DISIGON_ERROR_BASE + 13 \n \n" (#define) "efine D" (identifier) "SIGON_ERROR_CERT_NOT_FOR_SIGNATURE " (preproc_arg) "SIGON_ERROR_BASE + 13 \n " (preproc_def) "efine DISIGON_ERROR_TSL_LOAD DISIGON_ERROR_BASE + 20 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_TSL_LOAD " (preproc_arg) "SIGON_ERROR_BASE + 20 \n#" (preproc_def) "efine DISIGON_ERROR_TSL_PARSE DISIGON_ERROR_BASE + 21 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_TSL_PARSE " (preproc_arg) "SIGON_ERROR_BASE + 21 \n#" (preproc_def) "efine DISIGON_ERROR_TSL_INVALID DISIGON_ERROR_BASE + 22 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_TSL_INVALID " (preproc_arg) "SIGON_ERROR_BASE + 22 \n#" (preproc_def) "efine DISIGON_ERROR_TSL_CACERTDIR_NOT_SET DISIGON_ERROR_BASE + 23 \n#d" (#define) "efine D" (identifier) "SIGON_ERROR_TSL_CACERTDIR_NOT_SET " (preproc_arg) "SIGON_ERROR_BASE + 23 \n#" (preproc_def) "efine DISIGON_ERROR_TSA DISIGON_ERROR_BASE + 30 \n \n" (#define) "efine D" (identifier) "SIGON_ERROR_TSA " (preproc_arg) "SIGON_ERROR_BASE + 30 \n " (preproc_def) "efine DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40 \n#d" (#define) "efine " (identifier) "SIGON_ERROR_WRONG_PIN " (preproc_arg) "SIGON_ERROR_BASE + 40 \n#" (preproc_def) "efine DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41 \n \n" (#define) "efine " (identifier) "SIGON_ERROR_PIN_LOCKED " (preproc_arg) "SIGON_ERROR_BASE + 41 \n " (preproc_def) "efine DISIGON_FILETYPE_PLAINTEXT 0 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_PLAINTEXT 0" (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_P7M 1 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_P7M " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_PDF 2 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_PDF " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_M7M 3 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_M7M " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_TSR 4 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_TSR " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_TST 5 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_TST " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_TSD 6 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_TSD " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_XML 7 \n#d" (#define) "efine D" (identifier) "SIGON_FILETYPE_XML " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_FILETYPE_AUTO 8 \n \n" (#define) "efine D" (identifier) "SIGON_FILETYPE_AUTO " (preproc_arg) "\n " (comment) " \n#define DISIGON_VERIFYTYPE_P7M 1 \n#define DISIGON_VERIFYTYPE_TSD 2 \n#define DISIGON_VERIFYTYPE_TST 3 \n#define DISIGON_VERIFYTYPE_TSR 4 \n#define DISIGON_VERIFYTYPE_PDF 5 \n#define DISIGON_VERIFYTYPE_XML 6 \n#define DISIGON_VERIFYTYPE_M7M 7 \n*/ \n" (preproc_def) "efine DISIGON_ALGO_SHA1 1 \n#d" (#define) "efine D" (identifier) "SIGON_ALGO_SHA1 " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_ALGO_SHA256 2 \n#d" (#define) "efine D" (identifier) "SIGON_ALGO_SHA256 " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_ALGO_SHA512 3 \n#d" (#define) "efine D" (identifier) "SIGON_ALGO_SHA512 " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_ALGO_MD5 4 \n \n" (#define) "efine D" (identifier) "SIGON_ALGO_MD5 " (preproc_arg) "\n " (preproc_def) "efine LOG_TYPE_ERROR 1 \n#d" (#define) "efine L" (identifier) "G_TYPE_ERROR " (preproc_arg) "\n#" (preproc_def) "efine LOG_TYPE_WARNING 2 \n#d" (#define) "efine L" (identifier) "G_TYPE_WARNING " (preproc_arg) "\n#" (preproc_def) "efine LOG_TYPE_MESSAGE 3 \n#d" (#define) "efine L" (identifier) "G_TYPE_MESSAGE " (preproc_arg) "\n#" (preproc_def) "efine LOG_TYPE_DEBUG 4 \n \n" (#define) "efine L" (identifier) "G_TYPE_DEBUG " (preproc_arg) " \n " (preproc_def) "efine TYPE_OCSP 1 \n#d" (#define) "efine T" (identifier) "PE_OCSP 1" (preproc_arg) "\n#" (preproc_def) "efine TYPE_CRL 2 \n \n" (#define) "efine T" (identifier) "PE_CRL 2" (preproc_arg) "\n " (preproc_def) "efine DISIGON_RS_SERVICE_TYPE_NONE 0 \n#d" (#define) "efine D" (identifier) "SIGON_RS_SERVICE_TYPE_NONE " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_RS_SERVICE_TYPE_ARUBA 1 \n#d" (#define) "efine D" (identifier) "SIGON_RS_SERVICE_TYPE_ARUBA " (preproc_arg) "\n#" (preproc_def) "efine DISIGON_RS_SERVICE_TYPE_ITTELECOM 2 \n \n" (#define) "efine D" (identifier) "SIGON_RS_SERVICE_TYPE_ITTELECOM 2" (preproc_arg) "\n " (type_definition) "pedef struct _REVOCATION_INFO \n{ \n int nType; // OCSP, CRL \n char szExpiration[60]; \n char szThisUpdate[60]; \n int nRevocationStatus; \n char szRevocationDate[60]; \n} REVOCATION_INFO; \n" (typedef) "pedef s" (struct_specifier) "ruct _REVOCATION_INFO \n{ \n int nType; // OCSP, CRL \n char szExpiration[60]; \n char szThisUpdate[60]; \n int nRevocationStatus; \n char szRevocationDate[60]; \n} R" (struct) "ruct _" (type_identifier) "EVOCATION_INFO \n" (field_declaration_list) "\n int nType; // OCSP, CRL \n char szExpiration[60]; \n char szThisUpdate[60]; \n int nRevocationStatus; \n char szRevocationDate[60]; \n} R" ({) "\n" (field_declaration) "t nType; " (primitive_type) "t n" (field_identifier) "ype; " (;) " " (comment) " OCSP, CRL \n " (field_declaration) "ar szExpiration[60]; \n" (primitive_type) "ar s" (array_declarator) "Expiration[60]; " (field_identifier) "Expiration[6" ([) "0" (number_literal) "];" (]) " " (;) "\n" (field_declaration) "ar szThisUpdate[60]; \n" (primitive_type) "ar s" (array_declarator) "ThisUpdate[60]; " (field_identifier) "ThisUpdate[6" ([) "0" (number_literal) "];" (]) " " (;) "\n" (field_declaration) "t nRevocationStatus; \n" (primitive_type) "t n" (field_identifier) "evocationStatus; " (;) "\n" (field_declaration) "ar szRevocationDate[60]; \n" (primitive_type) "ar s" (array_declarator) "RevocationDate[60]; " (field_identifier) "RevocationDate[6" ([) "0" (number_literal) "];" (]) " " (;) "\n" (}) "R" (type_identifier) "VOCATION_INFO; " (;) "\n" (type_definition) "pedef struct _SIGNER_INFO \n{ \n char szCN[MAX_LEN * 2]; \n char szDN[MAX_LEN * 2]; \n char szGIVENNAME[MAX_LEN * 2]; \n char szSURNAME[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCADN[MAX_LEN * 2]; \n char** pszExtensions; \n int nExtensionsCount; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n long bitmask; \n char szDigestAlgorithm[MAX_LEN]; \n char szSigningTime[MAX_LEN]; \n char szCertificateV2[MAX_LEN]; \n BOOL b2011Error; \n BYTE* pCertificate; \n int nCertLen; \n void* pTimeStamp; \n REVOCATION_INFO* pRevocationInfo; \n void* pCounterSignatures; \n int nCounterSignatureCount; \n} SIGNER_INFO; \n" (typedef) "pedef s" (struct_specifier) "ruct _SIGNER_INFO \n{ \n char szCN[MAX_LEN * 2]; \n char szDN[MAX_LEN * 2]; \n char szGIVENNAME[MAX_LEN * 2]; \n char szSURNAME[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCADN[MAX_LEN * 2]; \n char** pszExtensions; \n int nExtensionsCount; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n long bitmask; \n char szDigestAlgorithm[MAX_LEN]; \n char szSigningTime[MAX_LEN]; \n char szCertificateV2[MAX_LEN]; \n BOOL b2011Error; \n BYTE* pCertificate; \n int nCertLen; \n void* pTimeStamp; \n REVOCATION_INFO* pRevocationInfo; \n void* pCounterSignatures; \n int nCounterSignatureCount; \n} S" (struct) "ruct _" (type_identifier) "IGNER_INFO \n" (field_declaration_list) "\n char szCN[MAX_LEN * 2]; \n char szDN[MAX_LEN * 2]; \n char szGIVENNAME[MAX_LEN * 2]; \n char szSURNAME[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCADN[MAX_LEN * 2]; \n char** pszExtensions; \n int nExtensionsCount; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n long bitmask; \n char szDigestAlgorithm[MAX_LEN]; \n char szSigningTime[MAX_LEN]; \n char szCertificateV2[MAX_LEN]; \n BOOL b2011Error; \n BYTE* pCertificate; \n int nCertLen; \n void* pTimeStamp; \n REVOCATION_INFO* pRevocationInfo; \n void* pCounterSignatures; \n int nCounterSignatureCount; \n} S" ({) "\n" (field_declaration) "ar szCN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "CN[MAX_LEN * 2]; " (field_identifier) "CN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szDN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "DN[MAX_LEN * 2]; " (field_identifier) "DN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szGIVENNAME[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "GIVENNAME[MAX_LEN * 2]; " (field_identifier) "GIVENNAME[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szSURNAME[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "SURNAME[MAX_LEN * 2]; " (field_identifier) "SURNAME[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szSN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "SN[MAX_LEN * 2]; " (field_identifier) "SN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szCADN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "CADN[MAX_LEN * 2]; " (field_identifier) "CADN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar** pszExtensions; \n" (primitive_type) "ar**" (pointer_declarator) " pszExtensions; " (*) " " (pointer_declarator) "pszExtensions; " (*) "p" (field_identifier) "zExtensions; " (;) "\n" (field_declaration) "t nExtensionsCount; \n" (primitive_type) "t n" (field_identifier) "xtensionsCount; " (;) "\n" (field_declaration) "ar szExpiration[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "Expiration[MAX_LEN]; " (field_identifier) "Expiration[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szValidFrom[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "ValidFrom[MAX_LEN]; " (field_identifier) "ValidFrom[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ng bitmask; \n" (sized_type_specifier) "ng b" (long) "ng b" (field_identifier) "tmask; " (;) "\n" (field_declaration) "ar szDigestAlgorithm[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "DigestAlgorithm[MAX_LEN]; " (field_identifier) "DigestAlgorithm[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szSigningTime[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "SigningTime[MAX_LEN]; " (field_identifier) "SigningTime[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szCertificateV2[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "CertificateV2[MAX_LEN]; " (field_identifier) "CertificateV2[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "OL b2011Error; \n" (type_identifier) "OL b" (field_identifier) "011Error; " (;) "\n" (field_declaration) "TE* pCertificate; \n" (type_identifier) "TE* " (pointer_declarator) "pCertificate; " (*) "p" (field_identifier) "ertificate; " (;) "\n" (field_declaration) "t nCertLen; \n" (primitive_type) "t n" (field_identifier) "ertLen; " (;) "\n" (field_declaration) "id* pTimeStamp; \n" (primitive_type) "id* " (pointer_declarator) "pTimeStamp; " (*) "p" (field_identifier) "imeStamp; " (;) "\n" (field_declaration) "VOCATION_INFO* pRevocationInfo; \n" (type_identifier) "VOCATION_INFO* " (pointer_declarator) "pRevocationInfo; " (*) "p" (field_identifier) "evocationInfo; " (;) "\n" (field_declaration) "id* pCounterSignatures; \n" (primitive_type) "id* " (pointer_declarator) "pCounterSignatures; " (*) "p" (field_identifier) "ounterSignatures; " (;) "\n" (field_declaration) "t nCounterSignatureCount; \n" (primitive_type) "t n" (field_identifier) "ounterSignatureCount; " (;) "\n" (}) "S" (type_identifier) "GNER_INFO; " (;) "\n" (type_definition) "pedef struct _TS_INFO \n{ \n SIGNER_INFO signerInfo; \n char szTimestamp[MAX_LEN]; \n char szTimeStampImprintAlgorithm[MAX_LEN]; \n char szTimeStampMessageImprint[MAX_LEN]; \n char szTimeStampSerial[MAX_LEN]; \n} TS_INFO; \n" (typedef) "pedef s" (struct_specifier) "ruct _TS_INFO \n{ \n SIGNER_INFO signerInfo; \n char szTimestamp[MAX_LEN]; \n char szTimeStampImprintAlgorithm[MAX_LEN]; \n char szTimeStampMessageImprint[MAX_LEN]; \n char szTimeStampSerial[MAX_LEN]; \n} T" (struct) "ruct _" (type_identifier) "S_INFO \n" (field_declaration_list) "\n SIGNER_INFO signerInfo; \n char szTimestamp[MAX_LEN]; \n char szTimeStampImprintAlgorithm[MAX_LEN]; \n char szTimeStampMessageImprint[MAX_LEN]; \n char szTimeStampSerial[MAX_LEN]; \n} T" ({) "\n" (field_declaration) "GNER_INFO signerInfo; \n" (type_identifier) "GNER_INFO s" (field_identifier) "gnerInfo; " (;) "\n" (field_declaration) "ar szTimestamp[MAX_LEN]; " (primitive_type) "ar s" (array_declarator) "Timestamp[MAX_LEN]; " (field_identifier) "Timestamp[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) " " (field_declaration) "ar szTimeStampImprintAlgorithm[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "TimeStampImprintAlgorithm[MAX_LEN]; " (field_identifier) "TimeStampImprintAlgorithm[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szTimeStampMessageImprint[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "TimeStampMessageImprint[MAX_LEN]; " (field_identifier) "TimeStampMessageImprint[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szTimeStampSerial[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "TimeStampSerial[MAX_LEN]; " (field_identifier) "TimeStampSerial[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (}) "T" (type_identifier) "_INFO; " (;) "\n" (type_definition) "pedef struct _SIGNER_INFOS \n{ \n SIGNER_INFO* pSignerInfo; \n int nCount; \n} SIGNER_INFOS; \n" (typedef) "pedef s" (struct_specifier) "ruct _SIGNER_INFOS \n{ \n SIGNER_INFO* pSignerInfo; \n int nCount; \n} S" (struct) "ruct _" (type_identifier) "IGNER_INFOS " (field_declaration_list) "\n SIGNER_INFO* pSignerInfo; \n int nCount; \n} S" ({) "\n" (field_declaration) "GNER_INFO* pSignerInfo; \n" (type_identifier) "GNER_INFO* " (pointer_declarator) "pSignerInfo; " (*) "p" (field_identifier) "ignerInfo; " (;) "\n" (field_declaration) "t nCount; \n" (primitive_type) "t n" (field_identifier) "ount; " (;) "\n" (}) "S" (type_identifier) "GNER_INFOS; " (;) "\n" (type_definition) "pedef struct _VERIFY_INFO \n{ \n SIGNER_INFOS* pSignerInfos; \n TS_INFO* pTSInfo; \n \n} VERIFY_INFO; \n" (typedef) "pedef s" (struct_specifier) "ruct _VERIFY_INFO \n{ \n SIGNER_INFOS* pSignerInfos; \n TS_INFO* pTSInfo; \n \n} V" (struct) "ruct _" (type_identifier) "ERIFY_INFO \n" (field_declaration_list) "\n SIGNER_INFOS* pSignerInfos; \n TS_INFO* pTSInfo; \n \n} V" ({) "\n" (field_declaration) "GNER_INFOS* pSignerInfos; \n" (type_identifier) "GNER_INFOS* " (pointer_declarator) "pSignerInfos; " (*) "p" (field_identifier) "ignerInfos; " (;) "\n" (field_declaration) "_INFO* pTSInfo; \n" (type_identifier) "_INFO* " (pointer_declarator) "pTSInfo; " (*) "p" (field_identifier) "SInfo; " (;) "\n" (}) "V" (type_identifier) "RIFY_INFO; " (;) "\n" (type_definition) "pedef struct _VERIFY_RESULT \n{ \n int nResultType; \n BOOL bVerifyCRL; \n VERIFY_INFO verifyInfo; \n long nErrorCode; \n char szInputFile[MAX_PATH]; \n char szPlainTextFile[MAX_PATH]; \n} VERIFY_RESULT; \n" (typedef) "pedef s" (struct_specifier) "ruct _VERIFY_RESULT \n{ \n int nResultType; \n BOOL bVerifyCRL; \n VERIFY_INFO verifyInfo; \n long nErrorCode; \n char szInputFile[MAX_PATH]; \n char szPlainTextFile[MAX_PATH]; \n} V" (struct) "ruct _" (type_identifier) "ERIFY_RESULT \n" (field_declaration_list) "\n int nResultType; \n BOOL bVerifyCRL; \n VERIFY_INFO verifyInfo; \n long nErrorCode; \n char szInputFile[MAX_PATH]; \n char szPlainTextFile[MAX_PATH]; \n} V" ({) "\n" (field_declaration) "t nResultType; \n" (primitive_type) "t n" (field_identifier) "esultType; " (;) "\n" (field_declaration) "OL bVerifyCRL; \n" (type_identifier) "OL b" (field_identifier) "erifyCRL; " (;) "\n" (field_declaration) "RIFY_INFO verifyInfo; \n" (type_identifier) "RIFY_INFO v" (field_identifier) "rifyInfo; " (;) "\n" (field_declaration) "ng nErrorCode; \n" (sized_type_specifier) "ng n" (long) "ng n" (field_identifier) "rrorCode; " (;) "\n" (field_declaration) "ar szInputFile[MAX_PATH]; \n" (primitive_type) "ar s" (array_declarator) "InputFile[MAX_PATH]; " (field_identifier) "InputFile[M" ([) "A" (identifier) "X_PATH];" (]) " " (;) "\n" (field_declaration) "ar szPlainTextFile[MAX_PATH]; \n" (primitive_type) "ar s" (array_declarator) "PlainTextFile[MAX_PATH]; " (field_identifier) "PlainTextFile[M" ([) "A" (identifier) "X_PATH];" (]) " " (;) "\n" (}) "V" (type_identifier) "RIFY_RESULT; " (;) "\n" (type_definition) "pedef struct _CERTIFICATE \n{ \n char szLabel[MAX_LEN * 2]; \n char szCN[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCACN[MAX_LEN * 2]; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n BYTE* pCertificate; \n int nCertLen; \n} CERTIFICATE; \n" (typedef) "pedef s" (struct_specifier) "ruct _CERTIFICATE \n{ \n char szLabel[MAX_LEN * 2]; \n char szCN[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCACN[MAX_LEN * 2]; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n BYTE* pCertificate; \n int nCertLen; \n} C" (struct) "ruct _" (type_identifier) "ERTIFICATE \n" (field_declaration_list) "\n char szLabel[MAX_LEN * 2]; \n char szCN[MAX_LEN * 2]; \n char szSN[MAX_LEN * 2]; \n char szCACN[MAX_LEN * 2]; \n char szExpiration[MAX_LEN]; \n char szValidFrom[MAX_LEN]; \n BYTE* pCertificate; \n int nCertLen; \n} C" ({) "\n" (field_declaration) "ar szLabel[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "Label[MAX_LEN * 2]; " (field_identifier) "Label[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szCN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "CN[MAX_LEN * 2]; " (field_identifier) "CN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szSN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "SN[MAX_LEN * 2]; " (field_identifier) "SN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szCACN[MAX_LEN * 2]; \n" (primitive_type) "ar s" (array_declarator) "CACN[MAX_LEN * 2]; " (field_identifier) "CACN[M" ([) "A" (binary_expression) "X_LEN * 2];" (identifier) "X_LEN *" (*) "2" (number_literal) ";" (]) " " (;) "\n" (field_declaration) "ar szExpiration[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "Expiration[MAX_LEN]; " (field_identifier) "Expiration[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "ar szValidFrom[MAX_LEN]; \n" (primitive_type) "ar s" (array_declarator) "ValidFrom[MAX_LEN]; " (field_identifier) "ValidFrom[M" ([) "A" (identifier) "X_LEN];" (]) " " (;) "\n" (field_declaration) "TE* pCertificate; \n" (type_identifier) "TE* " (pointer_declarator) "pCertificate; " (*) "p" (field_identifier) "ertificate; " (;) "\n" (field_declaration) "t nCertLen; \n" (primitive_type) "t n" (field_identifier) "ertLen; " (;) "\n" (}) "C" (type_identifier) "RTIFICATE; " (;) "\n" (type_definition) "pedef struct _CERTIFICATES \n{ \n CERTIFICATE* pCertificate; \n int nCount; \n} CERTIFICATES; \n" (typedef) "pedef s" (struct_specifier) "ruct _CERTIFICATES \n{ \n CERTIFICATE* pCertificate; \n int nCount; \n} C" (struct) "ruct _" (type_identifier) "ERTIFICATES " (field_declaration_list) "\n CERTIFICATE* pCertificate; \n int nCount; \n} C" ({) "\n" (field_declaration) "RTIFICATE* pCertificate; \n" (type_identifier) "RTIFICATE* " (pointer_declarator) "pCertificate; " (*) "p" (field_identifier) "ertificate; " (;) "\n" (field_declaration) "t nCount; \n" (primitive_type) "t n" (field_identifier) "ount; " (;) "\n" (}) "C" (type_identifier) "RTIFICATES; " (;) "\n" (type_definition) "pedef void* DISIGON_CTX; \n" (typedef) "pedef v" (primitive_type) "id* " (pointer_declarator) "DISIGON_CTX; " (*) "D" (type_identifier) "SIGON_CTX; " (;) "\n" (comment) " \n#ifdef __cplusplus \nextern "C" { \n#endif \n*/ \n" (comment) " Imposta le opzioni generali della libreria \nD" (declaration) "SIGON_API long disigon_set(int option, void* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_set(int option, void* value); " (identifier) "sigon_set(i" (parameter_list) "nt option, void* value); " (() "n" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "v" (parameter_declaration) "id* value);" (primitive_type) "id* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_set_int(int option, int value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_set_int(int option, int value); " (identifier) "sigon_set_int(i" (parameter_list) "nt option, int value); " (() "n" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "i" (parameter_declaration) "t value);" (primitive_type) "t v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_set_string(int option, char* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_set_string(int option, char* value); " (identifier) "sigon_set_string(i" (parameter_list) "nt option, char* value); " (() "n" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "c" (parameter_declaration) "ar* value);" (primitive_type) "ar* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (comment) " libera la memoria allocata dalla libreria \nD" (declaration) "SIGON_API void disigon_cleanup(); \n" (type_identifier) "SIGON_API v" (ERROR) "id d" (identifier) "id d" (function_declarator) "sigon_cleanup(); " (identifier) "sigon_cleanup()" (parameter_list) "; " (() ";" ()) " " (;) "\n" (comment) "///////////////////////////////// \n/" (comment) " Funzioni di firma digitale \n " (comment) " inizializza la funzione di firma \nD" (declaration) "SIGON_API DISIGON_CTX d" (type_identifier) "SIGON_API D" (identifier) "SIGON_CTX d" (;) "" (expression_statement) "sigon_sign_init(void); \n" (call_expression) "sigon_sign_init(void); " (identifier) "sigon_sign_init(v" (argument_list) "oid); " (() "o" (identifier) "id);" ()) " " (;) "\n" (comment) " imposta le opzioni di firma \nD" (declaration) "SIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_set_int(DISIGON_CTX ctx, int option, int value); " (identifier) "sigon_sign_set_int(D" (parameter_list) "ISIGON_CTX ctx, int option, int value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "i" (parameter_declaration) "t value);" (primitive_type) "t v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_set_string(DISIGON_CTX ctx, int option, char* value); " (identifier) "sigon_sign_set_string(D" (parameter_list) "ISIGON_CTX ctx, int option, char* value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "c" (parameter_declaration) "ar* value);" (primitive_type) "ar* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_set(DISIGON_CTX ctx, int option, void* value); " (identifier) "sigon_sign_set(D" (parameter_list) "ISIGON_CTX ctx, int option, void* value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "v" (parameter_declaration) "id* value);" (primitive_type) "id* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (comment) " esegue la firma secondo le opzioni passate \nD" (declaration) "SIGON_API long disigon_sign_sign(DISIGON_CTX ctx); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_sign(DISIGON_CTX ctx); " (identifier) "sigon_sign_sign(D" (parameter_list) "ISIGON_CTX ctx); " (() "I" (parameter_declaration) "SIGON_CTX ctx);" (type_identifier) "SIGON_CTX c" (identifier) "x);" ()) " " (;) "\n" (comment) " libera la memoria allocata nell'operazione di firma \nD" (declaration) "SIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_cleanup(DISIGON_CTX ctx); " (identifier) "sigon_sign_cleanup(D" (parameter_list) "ISIGON_CTX ctx); " (() "I" (parameter_declaration) "SIGON_CTX ctx);" (type_identifier) "SIGON_CTX c" (identifier) "x);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs); " (identifier) "sigon_sign_getcertificates(D" (parameter_list) "ISIGON_CTX ctx, CERTIFICATES* certs); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "C" (parameter_declaration) "RTIFICATES* certs);" (type_identifier) "RTIFICATES* " (pointer_declarator) "certs);" (*) "c" (identifier) "rts);" ()) " " (;) "\n" (declaration) "SIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs); \n" (type_identifier) "SIGON_API v" (ERROR) "id d" (identifier) "id d" (function_declarator) "sigon_sign_freecertificates(CERTIFICATES* certs); " (identifier) "sigon_sign_freecertificates(C" (parameter_list) "ERTIFICATES* certs); " (() "E" (parameter_declaration) "RTIFICATES* certs);" (type_identifier) "RTIFICATES* " (pointer_declarator) "certs);" (*) "c" (identifier) "rts);" ()) " " (;) "\n" (comment) " \n/" (comment) "///////////////////////////////////////// \n " (comment) "//////////////////////////////////////// \n/" (comment) " Funzioni di verifica della firma \n " (comment) " inizializza l'operazione di verifica \nD" (declaration) "SIGON_API DISIGON_CTX d" (type_identifier) "SIGON_API D" (identifier) "SIGON_CTX d" (;) "" (expression_statement) "sigon_verify_init(void); \n" (call_expression) "sigon_verify_init(void); " (identifier) "sigon_verify_init(v" (argument_list) "oid); " (() "o" (identifier) "id);" ()) " " (;) "\n" (comment) " imposta le opzioni di verifica \nD" (declaration) "SIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_set(DISIGON_CTX ctx, int option, void* value); " (identifier) "sigon_verify_set(D" (parameter_list) "ISIGON_CTX ctx, int option, void* value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "v" (parameter_declaration) "id* value);" (primitive_type) "id* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_set_int(DISIGON_CTX ctx, int option, int value); " (identifier) "sigon_verify_set_int(D" (parameter_list) "ISIGON_CTX ctx, int option, int value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "i" (parameter_declaration) "t value);" (primitive_type) "t v" (identifier) "lue);" ()) " " (;) "\n" (declaration) "SIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_set_string(DISIGON_CTX ctx, int option, char* value); " (identifier) "sigon_verify_set_string(D" (parameter_list) "ISIGON_CTX ctx, int option, char* value); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "i" (parameter_declaration) "t option, " (primitive_type) "t o" (identifier) "tion, " (,) "c" (parameter_declaration) "ar* value);" (primitive_type) "ar* " (pointer_declarator) "value);" (*) "v" (identifier) "lue);" ()) " " (;) "\n" (comment) " esegue l'operazione di verifica secondo le opzioni passate \nD" (declaration) "SIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); " (identifier) "sigon_verify_verify(D" (parameter_list) "ISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult); " (() "I" (parameter_declaration) "SIGON_CTX ctx, " (type_identifier) "SIGON_CTX c" (identifier) "x, " (,) "V" (parameter_declaration) "RIFY_RESULT* pVerifyResult);" (type_identifier) "RIFY_RESULT* " (pointer_declarator) "pVerifyResult);" (*) "p" (identifier) "erifyResult);" ()) " " (;) "\n" (comment) " libera la memoria allocata per la struttura dei risultati delle verifica \nD" (declaration) "SIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult); " (identifier) "sigon_verify_cleanup_result(V" (parameter_list) "ERIFY_RESULT* pVerifyResult); " (() "E" (parameter_declaration) "RIFY_RESULT* pVerifyResult);" (type_identifier) "RIFY_RESULT* " (pointer_declarator) "pVerifyResult);" (*) "p" (identifier) "erifyResult);" ()) " " (;) "\n" (comment) " libera la memoria allocata nell'operazione di verifica \nD" (declaration) "SIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_verify_cleanup(DISIGON_CTX ctx); " (identifier) "sigon_verify_cleanup(D" (parameter_list) "ISIGON_CTX ctx); " (() "I" (parameter_declaration) "SIGON_CTX ctx);" (type_identifier) "SIGON_CTX c" (identifier) "x);" ()) " " (;) "\n" (comment) "estra il documento originale da un file p7m \nD" (declaration) "SIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx); \n" (sized_type_specifier) "SIGON_API long d" (type_identifier) "SIGON_API l" (long) "ng d" (function_declarator) "sigon_get_file_from_p7m(DISIGON_CTX ctx); " (identifier) "sigon_get_file_from_p7m(D" (parameter_list) "ISIGON_CTX ctx); " (() "I" (parameter_declaration) "SIGON_CTX ctx);" (type_identifier) "SIGON_CTX c" (identifier) "x);" ()) " " (;) "\n" (comment) " operazione di sbustamento veloce \n " (comment) " \n#ifdef __cplusplus \n} \n#endif \n*/ \n" (#endif) "ndif /" (comment) " __DISIGON_H \n "
1,394
2
{"language": "c", "success": true, "metadata": {"lines": 359, "avg_line_length": 28.33, "nodes": 1132, "errors": 0, "source_hash": "9e1fb7323ce0dd5cf11491ee6c01808c24eeccfeab86ee1ed5ea8565ae9e74b5", "categorized_nodes": 535}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __DISIGON_H\r\n#define __DISIGON_H\r\n\r\n#ifndef WIN32\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#ifdef DISIGON_STATIC\r\n#define DISIGON_API\r\n#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif\r\n#endif\r\n#endif\r\n\r\n#define MAX_LEN\t\t\t\t\t\t\t256\r\n\r\n#include \"definitions.h\"\r\n\r\n#define VERIFIED_CERT_VALIDITY\t\t\t0x000001\r\n#define VERIFIED_CERT_REVOKED\t\t\t0x000002\r\n#define VERIFIED_CERT_SUSPENDED\t\t\t0x000004\r\n#define VERIFIED_CERT_GOOD\t\t\t\t0x000008\r\n#define VERIFIED_CERT_SHA256\t\t\t0x000010\r\n#define VERIFIED_CERT_QUALIFIED\t\t\t0x000020\r\n#define VERIFIED_CERT_CHAIN\t\t\t0x000040\r\n\r\n#define VERIFIED_CRL_LOADED\t\t\t\t0x000080\r\n#define VERIFIED_CRL_EXPIRED\t\t\t0x000100\r\n\r\n#define VERIFIED_SIGNED_ATTRIBUTE_CT\t0x000200\r\n#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400\r\n#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800\r\n\r\n#define VERIFIED_SIGNATURE\t\t\t\t0x001000\r\n#define VERIFIED_SHA256\t\t\t\t\t0x002000\r\n\r\n#define VERIFIED_CACERT_VALIDITY\t\t0x004000\r\n#define VERIFIED_CACERT_REVOKED\t\t\t0x008000\r\n#define VERIFIED_CACERT_SUSPENDED\t\t0x010000\r\n#define VERIFIED_CACERT_GOOD\t\t\t0x020000\r\n#define VERIFIED_CACERT_SIGNATURE\t\t0x040000\r\n#define VERIFIED_CACRL_LOADED\t\t\t0x080000\r\n#define VERIFIED_CACERT_FOUND\t\t\t0x100000\r\n\r\n#define VERIFIED_KEY_USAGE\t\t\t\t0x200000\r\n\r\n// TODO\r\n// certificate store con cache degli esiti delle verifiche dei certificati\r\n// stato revoca e validit\ufffd dei certificati nella chain\r\n\r\n\r\n#define REVOCATION_STATUS_GOOD 0\r\n#define REVOCATION_STATUS_REVOKED 1\r\n#define REVOCATION_STATUS_SUSPENDED 2\r\n#define REVOCATION_STATUS_UNKNOWN 3\r\n#define REVOCATION_STATUS_NOTLOADED 4\r\n\r\n#define DISIGON_OPT_PKCS11\t\t\t\t1\r\n#define DISIGON_OPT_SLOT\t\t\t\t\t2\r\n#define DISIGON_OPT_PIN\t\t\t\t\t3\r\n#define DISIGON_OPT_ALIAS\t\t\t\t4\r\n#define DISIGON_OPT_CADES\t\t\t\t5\r\n#define DISIGON_OPT_XADES\t\t\t\t5\r\n#define DISIGON_OPT_DETACHED\t\t\t\t6\r\n#define DISIGON_OPT_INPUTFILE\t\t\t7\r\n#define DISIGON_OPT_OUTPUTFILE\t\t\t8\r\n#define DISIGON_OPT_INPUTFILE_TYPE\t\t9\r\n#define DISIGON_OPT_TSA_URL\t\t\t\t10\r\n#define DISIGON_OPT_TSA_USERNAME\t\t\t11\r\n#define DISIGON_OPT_TSA_PASSWORD\t\t\t12\r\n#define DISIGON_OPT_VERIFY_REVOCATION\t13\r\n#define DISIGON_OPT_LOG_LEVEL\t\t\t14\r\n#define DISIGON_OPT_LOG_FILE\t\t\t\t15\r\n#define DISIGON_OPT_INPUTFILE_PLAINTEXT\t16\r\n#define DISIGON_OPT_CACERT_DIR\t\t\t17\r\n#define DISIGON_OPT_PDF_SUBFILTER\t\t18\r\n#define DISIGON_OPT_CONFIG_FILE\t\t\t19\r\n#define DISIGON_OPT_PROXY\t\t\t\t20\r\n#define DISIGON_OPT_PROXY_PORT\t\t\t21\r\n#define DISIGON_OPT_PROXY_USRPASS\t\t22\r\n#define DISIGON_OPT_OID_MAP_FILE\t\t\t23\r\n#define DISIGON_OPT_TCP_TIMEOUT\t\t\t24\r\n#define DISIGON_OPT_PDF_REASON\t\t\t25\r\n#define DISIGON_OPT_PDF_NAME\t\t\t\t26\r\n#define DISIGON_OPT_PDF_LOCATION\t\t\t27\r\n#define DISIGON_OPT_PDF_PAGE\t\t\t\t28\r\n#define DISIGON_OPT_PDF_LEFT\t\t\t\t29\r\n#define DISIGON_OPT_PDF_BOTTOM\t\t\t30\r\n#define DISIGON_OPT_PDF_WIDTH\t\t\t31\r\n#define DISIGON_OPT_PDF_HEIGHT\t\t\t32\r\n#define DISIGON_OPT_PDF_IMAGEPATH\t\t\t33\r\n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA\t34\r\n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35\r\n\r\n#define DISIGON_OPT_ATR_LIST_FILE\t\t36\r\n#define DISIGON_OPT_HASH_ALGO\t\t\t37\r\n\r\n#define DISIGON_OPT_LICENSEE\t\t\t\t38\r\n#define DISIGON_OPT_PRODUCTKEY\t\t\t39\r\n\r\n#define DISIGON_OPT_RS_OTP_PIN\t\t\t40\r\n#define DISIGON_OPT_RS_HSMTYPE\t\t\t41\r\n#define DISIGON_OPT_RS_TYPE_OTP_AUTH\t\t42\r\n#define DISIGON_OPT_RS_USERNAME\t\t\t43\r\n#define DISIGON_OPT_RS_PASSWORD\t\t\t44\r\n#define DISIGON_OPT_RS_CERTID\t\t\t45\r\n#define DISIGON_OPT_RS_SERVICE_URL\t\t46\r\n#define DISIGON_OPT_RS_USER_CODE\t\t\t47\r\n#define DISIGON_OPT_RS_SERVICE_TYPE\t\t48\r\n\r\n#define DISIGON_OPT_PDF_DESCRIPTION\t\t50\r\n#define DISIGON_OPT_PDF_NAME_LABEL\t\t51\r\n#define DISIGON_OPT_PDF_REASON_LABEL\t\t52\r\n#define DISIGON_OPT_PDF_LOCATION_LABEL\t53\r\n\r\n#define DISIGON_OPT_TSL_URL\t\t\t\t60\r\n#define DISIGON_OPT_VERIFY_USER_CERTIFICATE\t61\r\n\r\n#define DISIGON_OPT_P12_FILEPATH\t\t\t70\r\n#define DISIGON_OPT_P12_PASSWORD\t\t\t71\r\n\r\n#define DISIGON_OPT_IAS_INSTANCE 80\r\n\r\n#define DISIGON_PDF_SUBFILTER_PKCS_DETACHED \"adbe.pkcs7.detached\"\r\n#define DISIGON_PDF_SUBFILTER_ETSI_CADES \"ETSI.CAdES.detached\"\r\n\r\n\r\n#define DISIGON_ERROR_BASE\t\t\t0x84000000UL\r\n\r\n\r\n#define DISIGON_ERROR_UNEXPECTED\t\t\tDISIGON_ERROR_BASE + 1\r\n#define DISIGON_ERROR_FILE_NOT_FOUND\t\tDISIGON_ERROR_BASE + 2\r\n#define DISIGON_ERROR_DETACHED_PKCS7\t\tDISIGON_ERROR_BASE + 3\r\n#define DISIGON_ERROR_CERT_REVOKED\t\tDISIGON_ERROR_BASE + 4\r\n#define DISIGON_ERROR_INVALID_FILE\t\tDISIGON_ERROR_BASE + 5\r\n#define DISIGON_ERROR_INVALID_P11\t\tDISIGON_ERROR_BASE + 6\r\n#define DISIGON_ERROR_INVALID_ALIAS\t\tDISIGON_ERROR_BASE + 7\r\n#define DISIGON_ERROR_INVALID_SIGOPT\t\tDISIGON_ERROR_BASE + 8\r\n#define DISIGON_ERROR_ARRS_BASE\t\t\tDISIGON_ERROR_BASE + 0x00100000\r\n#define DISIGON_ERROR_CERT_INVALID\t\tDISIGON_ERROR_BASE + 9\r\n#define DISIGON_ERROR_CERT_EXPIRED\t\tDISIGON_ERROR_BASE + 10\r\n#define DISIGON_ERROR_CACERT_NOTFOUND\tDISIGON_ERROR_BASE + 11\r\n#define DISIGON_ERROR_CERT_NOTFOUND\t\tDISIGON_ERROR_BASE + 12\r\n#define DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE\t\tDISIGON_ERROR_BASE + 13\r\n\r\n#define DISIGON_ERROR_TSL_LOAD\t\t\tDISIGON_ERROR_BASE + 20\r\n#define DISIGON_ERROR_TSL_PARSE\t\t\tDISIGON_ERROR_BASE + 21\r\n#define DISIGON_ERROR_TSL_INVALID\t\tDISIGON_ERROR_BASE + 22\r\n#define DISIGON_ERROR_TSL_CACERTDIR_NOT_SET\t\tDISIGON_ERROR_BASE + 23\r\n#define DISIGON_ERROR_TSA\t\tDISIGON_ERROR_BASE + 30\r\n\r\n#define DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40\r\n#define DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41\r\n\r\n \r\n#define DISIGON_FILETYPE_PLAINTEXT\t0\r\n#define DISIGON_FILETYPE_P7M\t\t\t1\r\n#define DISIGON_FILETYPE_PDF\t\t\t2\r\n#define DISIGON_FILETYPE_M7M\t\t\t3\r\n#define DISIGON_FILETYPE_TSR\t\t\t4\r\n#define DISIGON_FILETYPE_TST\t\t\t5\r\n#define DISIGON_FILETYPE_TSD\t\t\t6\r\n#define DISIGON_FILETYPE_XML\t\t\t7\r\n#define DISIGON_FILETYPE_AUTO\t\t8\r\n\r\n/*\r\n#define DISIGON_VERIFYTYPE_P7M\t\t1\r\n#define DISIGON_VERIFYTYPE_TSD\t\t2\r\n#define DISIGON_VERIFYTYPE_TST\t\t3\r\n#define DISIGON_VERIFYTYPE_TSR\t\t4\r\n#define DISIGON_VERIFYTYPE_PDF\t\t5\r\n#define DISIGON_VERIFYTYPE_XML\t\t6\r\n#define DISIGON_VERIFYTYPE_M7M 7\r\n*/\r\n#define DISIGON_ALGO_SHA1\t\t\t1\r\n#define DISIGON_ALGO_SHA256\t\t\t2\r\n#define DISIGON_ALGO_SHA512\t\t\t3\r\n#define DISIGON_ALGO_MD5\t\t\t\t4\r\n\r\n#define LOG_TYPE_ERROR\t\t\t1\r\n#define LOG_TYPE_WARNING\t\t2\r\n#define LOG_TYPE_MESSAGE\t\t3\r\n#define LOG_TYPE_DEBUG\t\t\t4 \r\n\r\n#define TYPE_OCSP 1\r\n#define TYPE_CRL 2\r\n\r\n#define DISIGON_RS_SERVICE_TYPE_NONE\t\t\t0\r\n#define DISIGON_RS_SERVICE_TYPE_ARUBA\t\t1\r\n#define DISIGON_RS_SERVICE_TYPE_ITTELECOM\t2\r\n\r\n\r\n\r\ntypedef struct _REVOCATION_INFO\r\n{\r\n\tint nType; // OCSP, CRL\r\n\tchar szExpiration[60];\r\n\tchar szThisUpdate[60];\r\n\tint nRevocationStatus;\r\n\tchar szRevocationDate[60];\r\n} REVOCATION_INFO;\r\n\r\n\r\ntypedef struct _SIGNER_INFO\r\n{\r\n\tchar szCN[MAX_LEN * 2];\r\n char szDN[MAX_LEN * 2];\r\n char szGIVENNAME[MAX_LEN * 2];\r\n char szSURNAME[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCADN[MAX_LEN * 2];\r\n\tchar** pszExtensions;\r\n\tint nExtensionsCount;\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tlong bitmask;\r\n\tchar szDigestAlgorithm[MAX_LEN];\r\n\tchar szSigningTime[MAX_LEN];\r\n\tchar szCertificateV2[MAX_LEN];\r\n\tBOOL b2011Error;\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n\tvoid* pTimeStamp;\r\n\tREVOCATION_INFO* pRevocationInfo;\r\n\tvoid* pCounterSignatures;\r\n\tint nCounterSignatureCount;\r\n} SIGNER_INFO;\r\n\r\ntypedef struct _TS_INFO\r\n{\r\n\tSIGNER_INFO signerInfo;\r\n\tchar szTimestamp[MAX_LEN]; \r\n\tchar szTimeStampImprintAlgorithm[MAX_LEN];\r\n\tchar szTimeStampMessageImprint[MAX_LEN];\r\n\tchar szTimeStampSerial[MAX_LEN];\r\n} TS_INFO;\r\n \r\n\r\ntypedef struct _SIGNER_INFOS \r\n{\r\n\tSIGNER_INFO* pSignerInfo;\r\n\tint nCount;\r\n} SIGNER_INFOS;\r\n\r\ntypedef struct _VERIFY_INFO\r\n{\r\n\tSIGNER_INFOS* pSignerInfos;\r\n\tTS_INFO* pTSInfo;\r\n\r\n} VERIFY_INFO;\r\n\r\ntypedef struct _VERIFY_RESULT\r\n{\r\n\tint nResultType;\r\n\tBOOL bVerifyCRL;\r\n\tVERIFY_INFO verifyInfo;\r\n\tlong nErrorCode;\r\n\tchar szInputFile[MAX_PATH];\r\n\tchar szPlainTextFile[MAX_PATH];\r\n} VERIFY_RESULT;\r\n\r\n\r\ntypedef struct _CERTIFICATE\r\n{\r\n\tchar szLabel[MAX_LEN * 2];\r\n\tchar szCN[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCACN[MAX_LEN * 2];\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n} CERTIFICATE;\r\n\r\n\r\ntypedef struct _CERTIFICATES \r\n{\r\n\tCERTIFICATE* pCertificate;\r\n\tint nCount;\r\n} CERTIFICATES;\r\n\r\n\r\ntypedef void* DISIGON_CTX;\r\n\r\n/*\r\n#ifdef __cplusplus\r\nextern \"C\" {\r\n#endif\r\n*/\r\n\r\n// Imposta le opzioni generali della libreria\r\nDISIGON_API long disigon_set(int option, void* value);\r\n\r\nDISIGON_API long disigon_set_int(int option, int value);\r\n\r\nDISIGON_API long disigon_set_string(int option, char* value);\r\n\r\n// libera la memoria allocata dalla libreria\r\nDISIGON_API void disigon_cleanup();\r\n\r\n///////////////////////////////////\r\n// Funzioni di firma digitale\r\n\r\n// inizializza la funzione di firma\r\nDISIGON_API DISIGON_CTX disigon_sign_init(void);\r\n\r\n// imposta le opzioni di firma\r\nDISIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value);\r\n\r\nDISIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value);\r\n\r\nDISIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value);\r\n\r\n// esegue la firma secondo le opzioni passate\r\nDISIGON_API long disigon_sign_sign(DISIGON_CTX ctx);\r\n\r\n// libera la memoria allocata nell'operazione di firma\r\nDISIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx);\r\n\r\nDISIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs);\r\n\r\nDISIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs);\r\n\r\n//\r\n///////////////////////////////////////////\r\n\r\n//////////////////////////////////////////\r\n// Funzioni di verifica della firma\r\n\r\n// inizializza l'operazione di verifica\r\nDISIGON_API DISIGON_CTX disigon_verify_init(void);\r\n\r\n// imposta le opzioni di verifica\r\nDISIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value);\r\nDISIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value);\r\nDISIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value);\r\n\r\n// esegue l'operazione di verifica secondo le opzioni passate\r\nDISIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r\n\r\n// libera la memoria allocata per la struttura dei risultati delle verifica\r\nDISIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult);\r\n\r\n// libera la memoria allocata nell'operazione di verifica\r\nDISIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx);\r\n\r\n//estra il documento originale da un file p7m\r\nDISIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx);\r\n// operazione di sbustamento veloce\r\n\r\n/*\r\n#ifdef __cplusplus\r\n}\r\n#endif\r\n*/\r\n#endif /", "parent": null, "children": [1, 2, 3, 6, 36, 40, 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, 215, 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, 559, 563, 567, 594, 710, 739, 753, 769, 798, 850, 864, 870, 885, 898, 913, 919, 926, 942, 960, 978, 988, 998, 1013, 1025, 1032, 1050, 1066, 1084, 1099, 1111, 1121, 1131], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 359, "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": "__DISIGON_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define __DISIGON_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "__DISIGON_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifndef WIN32\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#ifdef DISIGON_STATIC\r\n#define DISIGON_API\r\n#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif\r\n#endif\r\n#endif", "parent": 0, "children": [7, 8, 9, 12, 35], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 7, "type": "#ifndef", "text": "#ifndef", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 8, "type": "identifier", "text": "WIN32", "parent": 6, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 9, "type": "preproc_def", "text": "#define DISIGON_API //__declspec(dllexport)\r\n", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "DISIGON_API", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 19}}, {"id": 12, "type": "preproc_else", "text": "#else\r\n#ifdef DISIGON_STATIC\r\n#define DISIGON_API\r\n#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif\r\n#endif", "parent": 6, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 13, "type": "#else", "text": "#else", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 5}}, {"id": 14, "type": "preproc_ifdef", "text": "#ifdef DISIGON_STATIC\r\n#define DISIGON_API\r\n#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif\r\n#endif", "parent": 12, "children": [15, 16, 17, 20, 34], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 15, "type": "#ifdef", "text": "#ifdef", "parent": 14, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 16, "type": "identifier", "text": "DISIGON_STATIC", "parent": 14, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 21}}, {"id": 17, "type": "preproc_def", "text": "#define DISIGON_API\r\n", "parent": 14, "children": [18, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 19, "type": "identifier", "text": "DISIGON_API", "parent": 17, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 19}}, {"id": 20, "type": "preproc_else", "text": "#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif", "parent": 14, "children": [21, 22], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 21, "type": "#else", "text": "#else", "parent": 20, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 22, "type": "preproc_ifdef", "text": "#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif", "parent": 20, "children": [23, 24, 25, 28, 33], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 23, "type": "#ifdef", "text": "#ifdef", "parent": 22, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 24, "type": "identifier", "text": "DISIGON_EXPORTS", "parent": 22, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 22}}, {"id": 25, "type": "preproc_def", "text": "#define DISIGON_API //__declspec(dllexport)\r\n", "parent": 22, "children": [26, 27], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 27, "type": "identifier", "text": "DISIGON_API", "parent": 25, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 19}}, {"id": 28, "type": "preproc_else", "text": "#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n", "parent": 22, "children": [29, 30], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 29, "type": "#else", "text": "#else", "parent": 28, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 5}}, {"id": 30, "type": "preproc_def", "text": "#define DISIGON_API //__declspec(dllimport)\r\n", "parent": 28, "children": [31, 32], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 32, "type": "identifier", "text": "DISIGON_API", "parent": 30, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 19}}, {"id": 33, "type": "#endif", "text": "#endif", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 34, "type": "#endif", "text": "#endif", "parent": 14, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 35, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 36, "type": "preproc_def", "text": "#define MAX_LEN\t\t\t\t\t\t\t256\r\n", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 38, "type": "identifier", "text": "MAX_LEN", "parent": 36, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 15}}, {"id": 39, "type": "preproc_arg", "text": "256\r", "parent": 36, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 40, "type": "preproc_include", "text": "#include \"definitions.h\"\r\n", "parent": 0, "children": [41, 42], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 41, "type": "#include", "text": "#include", "parent": 40, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 42, "type": "string_literal", "text": "\"definitions.h\"", "parent": 40, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 24}}, {"id": 43, "type": "preproc_def", "text": "#define VERIFIED_CERT_VALIDITY\t\t\t0x000001\r\n", "parent": 0, "children": [44, 45, 46], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 44, "type": "#define", "text": "#define", "parent": 43, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 45, "type": "identifier", "text": "VERIFIED_CERT_VALIDITY", "parent": 43, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 30}}, {"id": 46, "type": "preproc_arg", "text": "0x000001\r", "parent": 43, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 42}}, {"id": 47, "type": "preproc_def", "text": "#define VERIFIED_CERT_REVOKED\t\t\t0x000002\r\n", "parent": 0, "children": [48, 49, 50], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 48, "type": "#define", "text": "#define", "parent": 47, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 49, "type": "identifier", "text": "VERIFIED_CERT_REVOKED", "parent": 47, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 29}}, {"id": 50, "type": "preproc_arg", "text": "0x000002\r", "parent": 47, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 41}}, {"id": 51, "type": "preproc_def", "text": "#define VERIFIED_CERT_SUSPENDED\t\t\t0x000004\r\n", "parent": 0, "children": [52, 53, 54], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 53, "type": "identifier", "text": "VERIFIED_CERT_SUSPENDED", "parent": 51, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 31}}, {"id": 54, "type": "preproc_arg", "text": "0x000004\r", "parent": 51, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 43}}, {"id": 55, "type": "preproc_def", "text": "#define VERIFIED_CERT_GOOD\t\t\t\t0x000008\r\n", "parent": 0, "children": [56, 57, 58], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 56, "type": "#define", "text": "#define", "parent": 55, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 57, "type": "identifier", "text": "VERIFIED_CERT_GOOD", "parent": 55, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 26}}, {"id": 58, "type": "preproc_arg", "text": "0x000008\r", "parent": 55, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 39}}, {"id": 59, "type": "preproc_def", "text": "#define VERIFIED_CERT_SHA256\t\t\t0x000010\r\n", "parent": 0, "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": "VERIFIED_CERT_SHA256", "parent": 59, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 28}}, {"id": 62, "type": "preproc_arg", "text": "0x000010\r", "parent": 59, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 40}}, {"id": 63, "type": "preproc_def", "text": "#define VERIFIED_CERT_QUALIFIED\t\t\t0x000020\r\n", "parent": 0, "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": "VERIFIED_CERT_QUALIFIED", "parent": 63, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 31}}, {"id": 66, "type": "preproc_arg", "text": "0x000020\r", "parent": 63, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 43}}, {"id": 67, "type": "preproc_def", "text": "#define VERIFIED_CERT_CHAIN\t\t\t0x000040\r\n", "parent": 0, "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": "VERIFIED_CERT_CHAIN", "parent": 67, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 27}}, {"id": 70, "type": "preproc_arg", "text": "0x000040\r", "parent": 67, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 39}}, {"id": 71, "type": "preproc_def", "text": "#define VERIFIED_CRL_LOADED\t\t\t\t0x000080\r\n", "parent": 0, "children": [72, 73, 74], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 72, "type": "#define", "text": "#define", "parent": 71, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 73, "type": "identifier", "text": "VERIFIED_CRL_LOADED", "parent": 71, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 27}}, {"id": 74, "type": "preproc_arg", "text": "0x000080\r", "parent": 71, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 40}}, {"id": 75, "type": "preproc_def", "text": "#define VERIFIED_CRL_EXPIRED\t\t\t0x000100\r\n", "parent": 0, "children": [76, 77, 78], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 77, "type": "identifier", "text": "VERIFIED_CRL_EXPIRED", "parent": 75, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 28}}, {"id": 78, "type": "preproc_arg", "text": "0x000100\r", "parent": 75, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 40}}, {"id": 79, "type": "preproc_def", "text": "#define VERIFIED_SIGNED_ATTRIBUTE_CT\t0x000200\r\n", "parent": 0, "children": [80, 81, 82], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 80, "type": "#define", "text": "#define", "parent": 79, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 81, "type": "identifier", "text": "VERIFIED_SIGNED_ATTRIBUTE_CT", "parent": 79, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 36}}, {"id": 82, "type": "preproc_arg", "text": "0x000200\r", "parent": 79, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 46}}, {"id": 83, "type": "preproc_def", "text": "#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400\r\n", "parent": 0, "children": [84, 85, 86], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 84, "type": "#define", "text": "#define", "parent": 83, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 85, "type": "identifier", "text": "VERIFIED_SIGNED_ATTRIBUTE_MD", "parent": 83, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 36}}, {"id": 86, "type": "preproc_arg", "text": "0x000400\r", "parent": 83, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 49}}, {"id": 87, "type": "preproc_def", "text": "#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800\r\n", "parent": 0, "children": [88, 89, 90], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 88, "type": "#define", "text": "#define", "parent": 87, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 89, "type": "identifier", "text": "VERIFIED_SIGNED_ATTRIBUTE_SC", "parent": 87, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 36}}, {"id": 90, "type": "preproc_arg", "text": "0x000800\r", "parent": 87, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 49}}, {"id": 91, "type": "preproc_def", "text": "#define VERIFIED_SIGNATURE\t\t\t\t0x001000\r\n", "parent": 0, "children": [92, 93, 94], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 92, "type": "#define", "text": "#define", "parent": 91, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 93, "type": "identifier", "text": "VERIFIED_SIGNATURE", "parent": 91, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 26}}, {"id": 94, "type": "preproc_arg", "text": "0x001000\r", "parent": 91, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 39}}, {"id": 95, "type": "preproc_def", "text": "#define VERIFIED_SHA256\t\t\t\t\t0x002000\r\n", "parent": 0, "children": [96, 97, 98], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 96, "type": "#define", "text": "#define", "parent": 95, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 97, "type": "identifier", "text": "VERIFIED_SHA256", "parent": 95, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 23}}, {"id": 98, "type": "preproc_arg", "text": "0x002000\r", "parent": 95, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 37}}, {"id": 99, "type": "preproc_def", "text": "#define VERIFIED_CACERT_VALIDITY\t\t0x004000\r\n", "parent": 0, "children": [100, 101, 102], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 100, "type": "#define", "text": "#define", "parent": 99, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 101, "type": "identifier", "text": "VERIFIED_CACERT_VALIDITY", "parent": 99, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 32}}, {"id": 102, "type": "preproc_arg", "text": "0x004000\r", "parent": 99, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 43}}, {"id": 103, "type": "preproc_def", "text": "#define VERIFIED_CACERT_REVOKED\t\t\t0x008000\r\n", "parent": 0, "children": [104, 105, 106], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 104, "type": "#define", "text": "#define", "parent": 103, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 105, "type": "identifier", "text": "VERIFIED_CACERT_REVOKED", "parent": 103, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 31}}, {"id": 106, "type": "preproc_arg", "text": "0x008000\r", "parent": 103, "children": [], "start_point": {"row": 41, "column": 34}, "end_point": {"row": 41, "column": 43}}, {"id": 107, "type": "preproc_def", "text": "#define VERIFIED_CACERT_SUSPENDED\t\t0x010000\r\n", "parent": 0, "children": [108, 109, 110], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 108, "type": "#define", "text": "#define", "parent": 107, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 109, "type": "identifier", "text": "VERIFIED_CACERT_SUSPENDED", "parent": 107, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 33}}, {"id": 110, "type": "preproc_arg", "text": "0x010000\r", "parent": 107, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 44}}, {"id": 111, "type": "preproc_def", "text": "#define VERIFIED_CACERT_GOOD\t\t\t0x020000\r\n", "parent": 0, "children": [112, 113, 114], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 112, "type": "#define", "text": "#define", "parent": 111, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 113, "type": "identifier", "text": "VERIFIED_CACERT_GOOD", "parent": 111, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 28}}, {"id": 114, "type": "preproc_arg", "text": "0x020000\r", "parent": 111, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 40}}, {"id": 115, "type": "preproc_def", "text": "#define VERIFIED_CACERT_SIGNATURE\t\t0x040000\r\n", "parent": 0, "children": [116, 117, 118], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 116, "type": "#define", "text": "#define", "parent": 115, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 117, "type": "identifier", "text": "VERIFIED_CACERT_SIGNATURE", "parent": 115, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 33}}, {"id": 118, "type": "preproc_arg", "text": "0x040000\r", "parent": 115, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 44}}, {"id": 119, "type": "preproc_def", "text": "#define VERIFIED_CACRL_LOADED\t\t\t0x080000\r\n", "parent": 0, "children": [120, 121, 122], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 120, "type": "#define", "text": "#define", "parent": 119, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 121, "type": "identifier", "text": "VERIFIED_CACRL_LOADED", "parent": 119, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 29}}, {"id": 122, "type": "preproc_arg", "text": "0x080000\r", "parent": 119, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 41}}, {"id": 123, "type": "preproc_def", "text": "#define VERIFIED_CACERT_FOUND\t\t\t0x100000\r\n", "parent": 0, "children": [124, 125, 126], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 124, "type": "#define", "text": "#define", "parent": 123, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 125, "type": "identifier", "text": "VERIFIED_CACERT_FOUND", "parent": 123, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 29}}, {"id": 126, "type": "preproc_arg", "text": "0x100000\r", "parent": 123, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 41}}, {"id": 127, "type": "preproc_def", "text": "#define VERIFIED_KEY_USAGE\t\t\t\t0x200000\r\n", "parent": 0, "children": [128, 129, 130], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 128, "type": "#define", "text": "#define", "parent": 127, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 129, "type": "identifier", "text": "VERIFIED_KEY_USAGE", "parent": 127, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 26}}, {"id": 130, "type": "preproc_arg", "text": "0x200000\r", "parent": 127, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 39}}, {"id": 131, "type": "preproc_def", "text": "efine REVOCATION_STATUS_GOOD 0\r\n#d", "parent": 0, "children": [132, 133, 134], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 132, "type": "#define", "text": "efine R", "parent": 131, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 133, "type": "identifier", "text": "VOCATION_STATUS_GOOD ", "parent": 131, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 30}}, {"id": 134, "type": "preproc_arg", "text": "\n#", "parent": 131, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 34}}, {"id": 135, "type": "preproc_def", "text": "efine REVOCATION_STATUS_REVOKED 1\r\n#d", "parent": 0, "children": [136, 137, 138], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 136, "type": "#define", "text": "efine R", "parent": 135, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 137, "type": "identifier", "text": "VOCATION_STATUS_REVOKED ", "parent": 135, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 33}}, {"id": 138, "type": "preproc_arg", "text": "\n#", "parent": 135, "children": [], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 37}}, {"id": 139, "type": "preproc_def", "text": "efine REVOCATION_STATUS_SUSPENDED 2\r\n#d", "parent": 0, "children": [140, 141, 142], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 140, "type": "#define", "text": "efine R", "parent": 139, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 141, "type": "identifier", "text": "VOCATION_STATUS_SUSPENDED 2", "parent": 139, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 35}}, {"id": 142, "type": "preproc_arg", "text": "\n#", "parent": 139, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 38}}, {"id": 143, "type": "preproc_def", "text": "efine REVOCATION_STATUS_UNKNOWN 3\r\n#d", "parent": 0, "children": [144, 145, 146], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 144, "type": "#define", "text": "efine R", "parent": 143, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 145, "type": "identifier", "text": "VOCATION_STATUS_UNKNOWN ", "parent": 143, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 33}}, {"id": 146, "type": "preproc_arg", "text": "\n#", "parent": 143, "children": [], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 37}}, {"id": 147, "type": "preproc_def", "text": "efine REVOCATION_STATUS_NOTLOADED 4\r\n\r\n", "parent": 0, "children": [148, 149, 150], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 148, "type": "#define", "text": "efine R", "parent": 147, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 149, "type": "identifier", "text": "VOCATION_STATUS_NOTLOADED ", "parent": 147, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 35}}, {"id": 150, "type": "preproc_arg", "text": "\n\r", "parent": 147, "children": [], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 39}}, {"id": 151, "type": "preproc_def", "text": "efine DISIGON_OPT_PKCS11\t\t\t\t1\r\n#d", "parent": 0, "children": [152, 153, 154], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 152, "type": "#define", "text": "efine D", "parent": 151, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 153, "type": "identifier", "text": "SIGON_OPT_PKCS11\t\t", "parent": 151, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 26}}, {"id": 154, "type": "preproc_arg", "text": "\n#", "parent": 151, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 32}}, {"id": 155, "type": "preproc_def", "text": "efine DISIGON_OPT_SLOT\t\t\t\t\t2\r\n#d", "parent": 0, "children": [156, 157, 158], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 156, "type": "#define", "text": "efine D", "parent": 155, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 157, "type": "identifier", "text": "SIGON_OPT_SLOT\t\t", "parent": 155, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 24}}, {"id": 158, "type": "preproc_arg", "text": "\n#", "parent": 155, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 31}}, {"id": 159, "type": "preproc_def", "text": "efine DISIGON_OPT_PIN\t\t\t\t\t3\r\n#d", "parent": 0, "children": [160, 161, 162], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 160, "type": "#define", "text": "efine D", "parent": 159, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 161, "type": "identifier", "text": "SIGON_OPT_PIN\t\t", "parent": 159, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 23}}, {"id": 162, "type": "preproc_arg", "text": "\n#", "parent": 159, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 30}}, {"id": 163, "type": "preproc_def", "text": "efine DISIGON_OPT_ALIAS\t\t\t\t4\r\n#d", "parent": 0, "children": [164, 165, 166], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 164, "type": "#define", "text": "efine D", "parent": 163, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 165, "type": "identifier", "text": "SIGON_OPT_ALIAS\t\t", "parent": 163, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 25}}, {"id": 166, "type": "preproc_arg", "text": "\n#", "parent": 163, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 31}}, {"id": 167, "type": "preproc_def", "text": "efine DISIGON_OPT_CADES\t\t\t\t5\r\n#d", "parent": 0, "children": [168, 169, 170], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 168, "type": "#define", "text": "efine D", "parent": 167, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 169, "type": "identifier", "text": "SIGON_OPT_CADES\t\t", "parent": 167, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 25}}, {"id": 170, "type": "preproc_arg", "text": "\n#", "parent": 167, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 31}}, {"id": 171, "type": "preproc_def", "text": "efine DISIGON_OPT_XADES\t\t\t\t5\r\n#d", "parent": 0, "children": [172, 173, 174], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 172, "type": "#define", "text": "efine D", "parent": 171, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 173, "type": "identifier", "text": "SIGON_OPT_XADES\t\t", "parent": 171, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 25}}, {"id": 174, "type": "preproc_arg", "text": "\n#", "parent": 171, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 31}}, {"id": 175, "type": "preproc_def", "text": "efine DISIGON_OPT_DETACHED\t\t\t\t6\r\n#d", "parent": 0, "children": [176, 177, 178], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 176, "type": "#define", "text": "efine D", "parent": 175, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 177, "type": "identifier", "text": "SIGON_OPT_DETACHED\t\t", "parent": 175, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 28}}, {"id": 178, "type": "preproc_arg", "text": "\n#", "parent": 175, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 34}}, {"id": 179, "type": "preproc_def", "text": "efine DISIGON_OPT_INPUTFILE\t\t\t7\r\n#d", "parent": 0, "children": [180, 181, 182], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 180, "type": "#define", "text": "efine D", "parent": 179, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 181, "type": "identifier", "text": "SIGON_OPT_INPUTFILE\t\t", "parent": 179, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 29}}, {"id": 182, "type": "preproc_arg", "text": "\n#", "parent": 179, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 34}}, {"id": 183, "type": "preproc_def", "text": "efine DISIGON_OPT_OUTPUTFILE\t\t\t8\r\n#d", "parent": 0, "children": [184, 185, 186], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 70, "column": 0}}, {"id": 184, "type": "#define", "text": "efine D", "parent": 183, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 185, "type": "identifier", "text": "SIGON_OPT_OUTPUTFILE\t\t", "parent": 183, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 30}}, {"id": 186, "type": "preproc_arg", "text": "\n#", "parent": 183, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 35}}, {"id": 187, "type": "preproc_def", "text": "efine DISIGON_OPT_INPUTFILE_TYPE\t\t9\r\n#d", "parent": 0, "children": [188, 189, 190], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 188, "type": "#define", "text": "efine D", "parent": 187, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 189, "type": "identifier", "text": "SIGON_OPT_INPUTFILE_TYPE\t\t", "parent": 187, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 34}}, {"id": 190, "type": "preproc_arg", "text": "\n#", "parent": 187, "children": [], "start_point": {"row": 70, "column": 36}, "end_point": {"row": 70, "column": 38}}, {"id": 191, "type": "preproc_def", "text": "efine DISIGON_OPT_TSA_URL\t\t\t\t10\r\n#d", "parent": 0, "children": [192, 193, 194], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 0}}, {"id": 192, "type": "#define", "text": "efine D", "parent": 191, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 193, "type": "identifier", "text": "SIGON_OPT_TSA_URL\t\t", "parent": 191, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 27}}, {"id": 194, "type": "preproc_arg", "text": "\r\n#", "parent": 191, "children": [], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 34}}, {"id": 195, "type": "preproc_def", "text": "efine DISIGON_OPT_TSA_USERNAME\t\t\t11\r\n#d", "parent": 0, "children": [196, 197, 198], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 196, "type": "#define", "text": "efine D", "parent": 195, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 197, "type": "identifier", "text": "SIGON_OPT_TSA_USERNAME\t\t", "parent": 195, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 32}}, {"id": 198, "type": "preproc_arg", "text": "\r\n#", "parent": 195, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 38}}, {"id": 199, "type": "preproc_def", "text": "efine DISIGON_OPT_TSA_PASSWORD\t\t\t12\r\n#d", "parent": 0, "children": [200, 201, 202], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 200, "type": "#define", "text": "efine D", "parent": 199, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 201, "type": "identifier", "text": "SIGON_OPT_TSA_PASSWORD\t\t", "parent": 199, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 32}}, {"id": 202, "type": "preproc_arg", "text": "\r\n#", "parent": 199, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 38}}, {"id": 203, "type": "preproc_def", "text": "efine DISIGON_OPT_VERIFY_REVOCATION\t13\r\n#d", "parent": 0, "children": [204, 205, 206], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 204, "type": "#define", "text": "efine D", "parent": 203, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 205, "type": "identifier", "text": "SIGON_OPT_VERIFY_REVOCATION\t1", "parent": 203, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 37}}, {"id": 206, "type": "preproc_arg", "text": "\r\n#", "parent": 203, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 41}}, {"id": 207, "type": "preproc_def", "text": "efine DISIGON_OPT_LOG_LEVEL\t\t\t14\r\n#d", "parent": 0, "children": [208, 209, 210], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 76, "column": 0}}, {"id": 208, "type": "#define", "text": "efine D", "parent": 207, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 7}}, {"id": 209, "type": "identifier", "text": "SIGON_OPT_LOG_LEVEL\t\t", "parent": 207, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 29}}, {"id": 210, "type": "preproc_arg", "text": "\r\n#", "parent": 207, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 35}}, {"id": 211, "type": "preproc_def", "text": "efine DISIGON_OPT_LOG_FILE\t\t\t\t15\r\n#d", "parent": 0, "children": [212, 213, 214], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 212, "type": "#define", "text": "efine D", "parent": 211, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 7}}, {"id": 213, "type": "identifier", "text": "SIGON_OPT_LOG_FILE\t\t", "parent": 211, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 28}}, {"id": 214, "type": "preproc_arg", "text": "\r\n#", "parent": 211, "children": [], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 35}}, {"id": 215, "type": "preproc_def", "text": "efine DISIGON_OPT_INPUTFILE_PLAINTEXT\t16\r\n#d", "parent": 0, "children": [216, 217, 218], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 78, "column": 0}}, {"id": 216, "type": "#define", "text": "efine D", "parent": 215, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 7}}, {"id": 217, "type": "identifier", "text": "SIGON_OPT_INPUTFILE_PLAINTEXT\t1", "parent": 215, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 39}}, {"id": 218, "type": "preproc_arg", "text": "\r\n#", "parent": 215, "children": [], "start_point": {"row": 77, "column": 40}, "end_point": {"row": 77, "column": 43}}, {"id": 219, "type": "preproc_def", "text": "efine DISIGON_OPT_CACERT_DIR\t\t\t17\r\n#d", "parent": 0, "children": [220, 221, 222], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 0}}, {"id": 220, "type": "#define", "text": "efine D", "parent": 219, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 7}}, {"id": 221, "type": "identifier", "text": "SIGON_OPT_CACERT_DIR\t\t", "parent": 219, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 30}}, {"id": 222, "type": "preproc_arg", "text": "\r\n#", "parent": 219, "children": [], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 36}}, {"id": 223, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_SUBFILTER\t\t18\r\n#d", "parent": 0, "children": [224, 225, 226], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 80, "column": 0}}, {"id": 224, "type": "#define", "text": "efine D", "parent": 223, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 7}}, {"id": 225, "type": "identifier", "text": "SIGON_OPT_PDF_SUBFILTER\t\t", "parent": 223, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 33}}, {"id": 226, "type": "preproc_arg", "text": "\r\n#", "parent": 223, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 38}}, {"id": 227, "type": "preproc_def", "text": "efine DISIGON_OPT_CONFIG_FILE\t\t\t19\r\n#d", "parent": 0, "children": [228, 229, 230], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 0}}, {"id": 228, "type": "#define", "text": "efine D", "parent": 227, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 229, "type": "identifier", "text": "SIGON_OPT_CONFIG_FILE\t\t", "parent": 227, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 31}}, {"id": 230, "type": "preproc_arg", "text": "\r\n#", "parent": 227, "children": [], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 37}}, {"id": 231, "type": "preproc_def", "text": "efine DISIGON_OPT_PROXY\t\t\t\t20\r\n#d", "parent": 0, "children": [232, 233, 234], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 232, "type": "#define", "text": "efine D", "parent": 231, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 7}}, {"id": 233, "type": "identifier", "text": "SIGON_OPT_PROXY\t\t", "parent": 231, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 25}}, {"id": 234, "type": "preproc_arg", "text": "\r\n#", "parent": 231, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 32}}, {"id": 235, "type": "preproc_def", "text": "efine DISIGON_OPT_PROXY_PORT\t\t\t21\r\n#d", "parent": 0, "children": [236, 237, 238], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 83, "column": 0}}, {"id": 236, "type": "#define", "text": "efine D", "parent": 235, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 7}}, {"id": 237, "type": "identifier", "text": "SIGON_OPT_PROXY_PORT\t\t", "parent": 235, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 30}}, {"id": 238, "type": "preproc_arg", "text": "\r\n#", "parent": 235, "children": [], "start_point": {"row": 82, "column": 33}, "end_point": {"row": 82, "column": 36}}, {"id": 239, "type": "preproc_def", "text": "efine DISIGON_OPT_PROXY_USRPASS\t\t22\r\n#d", "parent": 0, "children": [240, 241, 242], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 84, "column": 0}}, {"id": 240, "type": "#define", "text": "efine D", "parent": 239, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 7}}, {"id": 241, "type": "identifier", "text": "SIGON_OPT_PROXY_USRPASS\t\t", "parent": 239, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 33}}, {"id": 242, "type": "preproc_arg", "text": "\r\n#", "parent": 239, "children": [], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 38}}, {"id": 243, "type": "preproc_def", "text": "efine DISIGON_OPT_OID_MAP_FILE\t\t\t23\r\n#d", "parent": 0, "children": [244, 245, 246], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 85, "column": 0}}, {"id": 244, "type": "#define", "text": "efine D", "parent": 243, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 245, "type": "identifier", "text": "SIGON_OPT_OID_MAP_FILE\t\t", "parent": 243, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 32}}, {"id": 246, "type": "preproc_arg", "text": "\r\n#", "parent": 243, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 38}}, {"id": 247, "type": "preproc_def", "text": "efine DISIGON_OPT_TCP_TIMEOUT\t\t\t24\r\n#d", "parent": 0, "children": [248, 249, 250], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 248, "type": "#define", "text": "efine D", "parent": 247, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 7}}, {"id": 249, "type": "identifier", "text": "SIGON_OPT_TCP_TIMEOUT\t\t", "parent": 247, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 31}}, {"id": 250, "type": "preproc_arg", "text": "\r\n#", "parent": 247, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 37}}, {"id": 251, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_REASON\t\t\t25\r\n#d", "parent": 0, "children": [252, 253, 254], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 87, "column": 0}}, {"id": 252, "type": "#define", "text": "efine D", "parent": 251, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 7}}, {"id": 253, "type": "identifier", "text": "SIGON_OPT_PDF_REASON\t\t", "parent": 251, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 30}}, {"id": 254, "type": "preproc_arg", "text": "\r\n#", "parent": 251, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 36}}, {"id": 255, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_NAME\t\t\t\t26\r\n#d", "parent": 0, "children": [256, 257, 258], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 256, "type": "#define", "text": "efine D", "parent": 255, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 257, "type": "identifier", "text": "SIGON_OPT_PDF_NAME\t\t", "parent": 255, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 28}}, {"id": 258, "type": "preproc_arg", "text": "\r\n#", "parent": 255, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 35}}, {"id": 259, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_LOCATION\t\t\t27\r\n#d", "parent": 0, "children": [260, 261, 262], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 260, "type": "#define", "text": "efine D", "parent": 259, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 261, "type": "identifier", "text": "SIGON_OPT_PDF_LOCATION\t\t", "parent": 259, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 32}}, {"id": 262, "type": "preproc_arg", "text": "\r\n#", "parent": 259, "children": [], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 38}}, {"id": 263, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_PAGE\t\t\t\t28\r\n#d", "parent": 0, "children": [264, 265, 266], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 90, "column": 0}}, {"id": 264, "type": "#define", "text": "efine D", "parent": 263, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 7}}, {"id": 265, "type": "identifier", "text": "SIGON_OPT_PDF_PAGE\t\t", "parent": 263, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 28}}, {"id": 266, "type": "preproc_arg", "text": "\r\n#", "parent": 263, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 35}}, {"id": 267, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_LEFT\t\t\t\t29\r\n#d", "parent": 0, "children": [268, 269, 270], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 0}}, {"id": 268, "type": "#define", "text": "efine D", "parent": 267, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 7}}, {"id": 269, "type": "identifier", "text": "SIGON_OPT_PDF_LEFT\t\t", "parent": 267, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 28}}, {"id": 270, "type": "preproc_arg", "text": "\r\n#", "parent": 267, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 35}}, {"id": 271, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_BOTTOM\t\t\t30\r\n#d", "parent": 0, "children": [272, 273, 274], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 272, "type": "#define", "text": "efine D", "parent": 271, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 273, "type": "identifier", "text": "SIGON_OPT_PDF_BOTTOM\t\t", "parent": 271, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 30}}, {"id": 274, "type": "preproc_arg", "text": "\r\n#", "parent": 271, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 36}}, {"id": 275, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_WIDTH\t\t\t31\r\n#d", "parent": 0, "children": [276, 277, 278], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 0}}, {"id": 276, "type": "#define", "text": "efine D", "parent": 275, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 277, "type": "identifier", "text": "SIGON_OPT_PDF_WIDTH\t\t", "parent": 275, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 29}}, {"id": 278, "type": "preproc_arg", "text": "\r\n#", "parent": 275, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 35}}, {"id": 279, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_HEIGHT\t\t\t32\r\n#d", "parent": 0, "children": [280, 281, 282], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 280, "type": "#define", "text": "efine D", "parent": 279, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 281, "type": "identifier", "text": "SIGON_OPT_PDF_HEIGHT\t\t", "parent": 279, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 30}}, {"id": 282, "type": "preproc_arg", "text": "\r\n#", "parent": 279, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 36}}, {"id": 283, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_IMAGEPATH\t\t\t33\r\n#d", "parent": 0, "children": [284, 285, 286], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 284, "type": "#define", "text": "efine D", "parent": 283, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 285, "type": "identifier", "text": "SIGON_OPT_PDF_IMAGEPATH\t\t", "parent": 283, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 33}}, {"id": 286, "type": "preproc_arg", "text": "\r\n#", "parent": 283, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 39}}, {"id": 287, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_GRAPHOMETRIC_DATA\t34\r\n#d", "parent": 0, "children": [288, 289, 290], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 0}}, {"id": 288, "type": "#define", "text": "efine D", "parent": 287, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 289, "type": "identifier", "text": "SIGON_OPT_PDF_GRAPHOMETRIC_DATA\t3", "parent": 287, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 41}}, {"id": 290, "type": "preproc_arg", "text": "\r\n#", "parent": 287, "children": [], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 45}}, {"id": 291, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35\r\n\r\n", "parent": 0, "children": [292, 293, 294], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 292, "type": "#define", "text": "efine D", "parent": 291, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 293, "type": "identifier", "text": "SIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 3", "parent": 291, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 45}}, {"id": 294, "type": "preproc_arg", "text": "\r\n\r", "parent": 291, "children": [], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 49}}, {"id": 295, "type": "preproc_def", "text": "efine DISIGON_OPT_ATR_LIST_FILE\t\t36\r\n#d", "parent": 0, "children": [296, 297, 298], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 296, "type": "#define", "text": "efine D", "parent": 295, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 297, "type": "identifier", "text": "SIGON_OPT_ATR_LIST_FILE\t\t", "parent": 295, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 33}}, {"id": 298, "type": "preproc_arg", "text": "\r\n#", "parent": 295, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 38}}, {"id": 299, "type": "preproc_def", "text": "efine DISIGON_OPT_HASH_ALGO\t\t\t37\r\n\r\n", "parent": 0, "children": [300, 301, 302], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 0}}, {"id": 300, "type": "#define", "text": "efine D", "parent": 299, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 7}}, {"id": 301, "type": "identifier", "text": "SIGON_OPT_HASH_ALGO\t\t", "parent": 299, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 29}}, {"id": 302, "type": "preproc_arg", "text": "\r\n\r", "parent": 299, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 35}}, {"id": 303, "type": "preproc_def", "text": "efine DISIGON_OPT_LICENSEE\t\t\t\t38\r\n#d", "parent": 0, "children": [304, 305, 306], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 102, "column": 0}}, {"id": 304, "type": "#define", "text": "efine D", "parent": 303, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 305, "type": "identifier", "text": "SIGON_OPT_LICENSEE\t\t", "parent": 303, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 28}}, {"id": 306, "type": "preproc_arg", "text": "\r\n#", "parent": 303, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 35}}, {"id": 307, "type": "preproc_def", "text": "efine DISIGON_OPT_PRODUCTKEY\t\t\t39\r\n\r\n", "parent": 0, "children": [308, 309, 310], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 308, "type": "#define", "text": "efine D", "parent": 307, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 309, "type": "identifier", "text": "SIGON_OPT_PRODUCTKEY\t\t", "parent": 307, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 30}}, {"id": 310, "type": "preproc_arg", "text": "\r\n\r", "parent": 307, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 36}}, {"id": 311, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_OTP_PIN\t\t\t40\r\n#d", "parent": 0, "children": [312, 313, 314], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 105, "column": 0}}, {"id": 312, "type": "#define", "text": "efine D", "parent": 311, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 313, "type": "identifier", "text": "SIGON_OPT_RS_OTP_PIN\t\t", "parent": 311, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 30}}, {"id": 314, "type": "preproc_arg", "text": "\r\n#", "parent": 311, "children": [], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 36}}, {"id": 315, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_HSMTYPE\t\t\t41\r\n#d", "parent": 0, "children": [316, 317, 318], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 316, "type": "#define", "text": "efine D", "parent": 315, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 317, "type": "identifier", "text": "SIGON_OPT_RS_HSMTYPE\t\t", "parent": 315, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 30}}, {"id": 318, "type": "preproc_arg", "text": "\r\n#", "parent": 315, "children": [], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 36}}, {"id": 319, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_TYPE_OTP_AUTH\t\t42\r\n#d", "parent": 0, "children": [320, 321, 322], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 320, "type": "#define", "text": "efine D", "parent": 319, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 321, "type": "identifier", "text": "SIGON_OPT_RS_TYPE_OTP_AUTH\t\t", "parent": 319, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 36}}, {"id": 322, "type": "preproc_arg", "text": "\r\n#", "parent": 319, "children": [], "start_point": {"row": 106, "column": 38}, "end_point": {"row": 106, "column": 41}}, {"id": 323, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_USERNAME\t\t\t43\r\n#d", "parent": 0, "children": [324, 325, 326], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 324, "type": "#define", "text": "efine D", "parent": 323, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 325, "type": "identifier", "text": "SIGON_OPT_RS_USERNAME\t\t", "parent": 323, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 31}}, {"id": 326, "type": "preproc_arg", "text": "\r\n#", "parent": 323, "children": [], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 37}}, {"id": 327, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_PASSWORD\t\t\t44\r\n#d", "parent": 0, "children": [328, 329, 330], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 0}}, {"id": 328, "type": "#define", "text": "efine D", "parent": 327, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 7}}, {"id": 329, "type": "identifier", "text": "SIGON_OPT_RS_PASSWORD\t\t", "parent": 327, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 31}}, {"id": 330, "type": "preproc_arg", "text": "\r\n#", "parent": 327, "children": [], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 37}}, {"id": 331, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_CERTID\t\t\t45\r\n#d", "parent": 0, "children": [332, 333, 334], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 0}}, {"id": 332, "type": "#define", "text": "efine D", "parent": 331, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 7}}, {"id": 333, "type": "identifier", "text": "SIGON_OPT_RS_CERTID\t\t", "parent": 331, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 29}}, {"id": 334, "type": "preproc_arg", "text": "\r\n#", "parent": 331, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 35}}, {"id": 335, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_SERVICE_URL\t\t46\r\n#d", "parent": 0, "children": [336, 337, 338], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 111, "column": 0}}, {"id": 336, "type": "#define", "text": "efine D", "parent": 335, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 7}}, {"id": 337, "type": "identifier", "text": "SIGON_OPT_RS_SERVICE_URL\t\t", "parent": 335, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 34}}, {"id": 338, "type": "preproc_arg", "text": "\r\n#", "parent": 335, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 39}}, {"id": 339, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_USER_CODE\t\t\t47\r\n#d", "parent": 0, "children": [340, 341, 342], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 0}}, {"id": 340, "type": "#define", "text": "efine D", "parent": 339, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 341, "type": "identifier", "text": "SIGON_OPT_RS_USER_CODE\t\t", "parent": 339, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 32}}, {"id": 342, "type": "preproc_arg", "text": "\r\n#", "parent": 339, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 38}}, {"id": 343, "type": "preproc_def", "text": "efine DISIGON_OPT_RS_SERVICE_TYPE\t\t48\r\n\r\n", "parent": 0, "children": [344, 345, 346], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 344, "type": "#define", "text": "efine D", "parent": 343, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 7}}, {"id": 345, "type": "identifier", "text": "SIGON_OPT_RS_SERVICE_TYPE\t\t", "parent": 343, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 35}}, {"id": 346, "type": "preproc_arg", "text": "\r\n\r", "parent": 343, "children": [], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 40}}, {"id": 347, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_DESCRIPTION\t\t50\r\n#d", "parent": 0, "children": [348, 349, 350], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 115, "column": 0}}, {"id": 348, "type": "#define", "text": "efine D", "parent": 347, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 7}}, {"id": 349, "type": "identifier", "text": "SIGON_OPT_PDF_DESCRIPTION\t\t", "parent": 347, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 35}}, {"id": 350, "type": "preproc_arg", "text": "\r\n#", "parent": 347, "children": [], "start_point": {"row": 114, "column": 37}, "end_point": {"row": 114, "column": 40}}, {"id": 351, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_NAME_LABEL\t\t51\r\n#d", "parent": 0, "children": [352, 353, 354], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 352, "type": "#define", "text": "efine D", "parent": 351, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 7}}, {"id": 353, "type": "identifier", "text": "SIGON_OPT_PDF_NAME_LABEL\t\t", "parent": 351, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 34}}, {"id": 354, "type": "preproc_arg", "text": "\r\n#", "parent": 351, "children": [], "start_point": {"row": 115, "column": 36}, "end_point": {"row": 115, "column": 39}}, {"id": 355, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_REASON_LABEL\t\t52\r\n#d", "parent": 0, "children": [356, 357, 358], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 356, "type": "#define", "text": "efine D", "parent": 355, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 357, "type": "identifier", "text": "SIGON_OPT_PDF_REASON_LABEL\t\t", "parent": 355, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 36}}, {"id": 358, "type": "preproc_arg", "text": "\r\n#", "parent": 355, "children": [], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 41}}, {"id": 359, "type": "preproc_def", "text": "efine DISIGON_OPT_PDF_LOCATION_LABEL\t53\r\n\r\n", "parent": 0, "children": [360, 361, 362], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 360, "type": "#define", "text": "efine D", "parent": 359, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 361, "type": "identifier", "text": "SIGON_OPT_PDF_LOCATION_LABEL\t5", "parent": 359, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 38}}, {"id": 362, "type": "preproc_arg", "text": "\r\n\r", "parent": 359, "children": [], "start_point": {"row": 117, "column": 39}, "end_point": {"row": 117, "column": 42}}, {"id": 363, "type": "preproc_def", "text": "efine DISIGON_OPT_TSL_URL\t\t\t\t60\r\n#d", "parent": 0, "children": [364, 365, 366], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 364, "type": "#define", "text": "efine D", "parent": 363, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 7}}, {"id": 365, "type": "identifier", "text": "SIGON_OPT_TSL_URL\t\t", "parent": 363, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 27}}, {"id": 366, "type": "preproc_arg", "text": "\r\n#", "parent": 363, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 34}}, {"id": 367, "type": "preproc_def", "text": "efine DISIGON_OPT_VERIFY_USER_CERTIFICATE\t61\r\n\r\n", "parent": 0, "children": [368, 369, 370], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 368, "type": "#define", "text": "efine D", "parent": 367, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 369, "type": "identifier", "text": "SIGON_OPT_VERIFY_USER_CERTIFICATE\t6", "parent": 367, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 43}}, {"id": 370, "type": "preproc_arg", "text": "\r\n\r", "parent": 367, "children": [], "start_point": {"row": 120, "column": 44}, "end_point": {"row": 120, "column": 47}}, {"id": 371, "type": "preproc_def", "text": "efine DISIGON_OPT_P12_FILEPATH\t\t\t70\r\n#d", "parent": 0, "children": [372, 373, 374], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 123, "column": 0}}, {"id": 372, "type": "#define", "text": "efine D", "parent": 371, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 7}}, {"id": 373, "type": "identifier", "text": "SIGON_OPT_P12_FILEPATH\t\t", "parent": 371, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 32}}, {"id": 374, "type": "preproc_arg", "text": "\r\n#", "parent": 371, "children": [], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 38}}, {"id": 375, "type": "preproc_def", "text": "efine DISIGON_OPT_P12_PASSWORD\t\t\t71\r\n\r\n", "parent": 0, "children": [376, 377, 378], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 124, "column": 0}}, {"id": 376, "type": "#define", "text": "efine D", "parent": 375, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 7}}, {"id": 377, "type": "identifier", "text": "SIGON_OPT_P12_PASSWORD\t\t", "parent": 375, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 32}}, {"id": 378, "type": "preproc_arg", "text": "\r\n\r", "parent": 375, "children": [], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 38}}, {"id": 379, "type": "preproc_def", "text": "efine DISIGON_OPT_IAS_INSTANCE 80\r\n\r\n", "parent": 0, "children": [380, 381, 382], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 380, "type": "#define", "text": "efine D", "parent": 379, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 7}}, {"id": 381, "type": "identifier", "text": "SIGON_OPT_IAS_INSTANCE ", "parent": 379, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 32}}, {"id": 382, "type": "preproc_arg", "text": "\r\n\r", "parent": 379, "children": [], "start_point": {"row": 125, "column": 43}, "end_point": {"row": 125, "column": 46}}, {"id": 383, "type": "preproc_def", "text": "efine DISIGON_PDF_SUBFILTER_PKCS_DETACHED \"adbe.pkcs7.detached\"\r\n#d", "parent": 0, "children": [384, 385, 386], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 384, "type": "#define", "text": "efine D", "parent": 383, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 7}}, {"id": 385, "type": "identifier", "text": "SIGON_PDF_SUBFILTER_PKCS_DETACHED \"", "parent": 383, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 43}}, {"id": 386, "type": "preproc_arg", "text": "dbe.pkcs7.detached\"\r\n#", "parent": 383, "children": [], "start_point": {"row": 127, "column": 44}, "end_point": {"row": 127, "column": 66}}, {"id": 387, "type": "preproc_def", "text": "efine DISIGON_PDF_SUBFILTER_ETSI_CADES \"ETSI.CAdES.detached\"\r\n\r\n", "parent": 0, "children": [388, 389, 390], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 129, "column": 0}}, {"id": 388, "type": "#define", "text": "efine D", "parent": 387, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 7}}, {"id": 389, "type": "identifier", "text": "SIGON_PDF_SUBFILTER_ETSI_CADES \"", "parent": 387, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 40}}, {"id": 390, "type": "preproc_arg", "text": "TSI.CAdES.detached\"\r\n\r", "parent": 387, "children": [], "start_point": {"row": 128, "column": 41}, "end_point": {"row": 128, "column": 63}}, {"id": 391, "type": "preproc_def", "text": "efine DISIGON_ERROR_BASE\t\t\t0x84000000UL\r\n\r\n", "parent": 0, "children": [392, 393, 394], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 0}}, {"id": 392, "type": "#define", "text": "efine D", "parent": 391, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 7}}, {"id": 393, "type": "identifier", "text": "SIGON_ERROR_BASE\t\t", "parent": 391, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 26}}, {"id": 394, "type": "preproc_arg", "text": "84000000UL\r\n\r", "parent": 391, "children": [], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 42}}, {"id": 395, "type": "preproc_def", "text": "efine DISIGON_ERROR_UNEXPECTED\t\t\tDISIGON_ERROR_BASE + 1\r\n#d", "parent": 0, "children": [396, 397, 398], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 0}}, {"id": 396, "type": "#define", "text": "efine D", "parent": 395, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 7}}, {"id": 397, "type": "identifier", "text": "SIGON_ERROR_UNEXPECTED\t\t", "parent": 395, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 32}}, {"id": 398, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 1\r\n#", "parent": 395, "children": [], "start_point": {"row": 134, "column": 35}, "end_point": {"row": 134, "column": 58}}, {"id": 399, "type": "preproc_def", "text": "efine DISIGON_ERROR_FILE_NOT_FOUND\t\tDISIGON_ERROR_BASE + 2\r\n#d", "parent": 0, "children": [400, 401, 402], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 400, "type": "#define", "text": "efine D", "parent": 399, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 401, "type": "identifier", "text": "SIGON_ERROR_FILE_NOT_FOUND\t\t", "parent": 399, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 36}}, {"id": 402, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 2\r\n#", "parent": 399, "children": [], "start_point": {"row": 135, "column": 38}, "end_point": {"row": 135, "column": 61}}, {"id": 403, "type": "preproc_def", "text": "efine DISIGON_ERROR_DETACHED_PKCS7\t\tDISIGON_ERROR_BASE + 3\r\n#d", "parent": 0, "children": [404, 405, 406], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 137, "column": 0}}, {"id": 404, "type": "#define", "text": "efine D", "parent": 403, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 7}}, {"id": 405, "type": "identifier", "text": "SIGON_ERROR_DETACHED_PKCS7\t\t", "parent": 403, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 36}}, {"id": 406, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 3\r\n#", "parent": 403, "children": [], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 136, "column": 61}}, {"id": 407, "type": "preproc_def", "text": "efine DISIGON_ERROR_CERT_REVOKED\t\tDISIGON_ERROR_BASE + 4\r\n#d", "parent": 0, "children": [408, 409, 410], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 138, "column": 0}}, {"id": 408, "type": "#define", "text": "efine D", "parent": 407, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 7}}, {"id": 409, "type": "identifier", "text": "SIGON_ERROR_CERT_REVOKED\t\t", "parent": 407, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 34}}, {"id": 410, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 4\r\n#", "parent": 407, "children": [], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 59}}, {"id": 411, "type": "preproc_def", "text": "efine DISIGON_ERROR_INVALID_FILE\t\tDISIGON_ERROR_BASE + 5\r\n#d", "parent": 0, "children": [412, 413, 414], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 139, "column": 0}}, {"id": 412, "type": "#define", "text": "efine D", "parent": 411, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 7}}, {"id": 413, "type": "identifier", "text": "SIGON_ERROR_INVALID_FILE\t\t", "parent": 411, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 34}}, {"id": 414, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 5\r\n#", "parent": 411, "children": [], "start_point": {"row": 138, "column": 36}, "end_point": {"row": 138, "column": 59}}, {"id": 415, "type": "preproc_def", "text": "efine DISIGON_ERROR_INVALID_P11\t\tDISIGON_ERROR_BASE + 6\r\n#d", "parent": 0, "children": [416, 417, 418], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 140, "column": 0}}, {"id": 416, "type": "#define", "text": "efine D", "parent": 415, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 7}}, {"id": 417, "type": "identifier", "text": "SIGON_ERROR_INVALID_P11\t\t", "parent": 415, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 33}}, {"id": 418, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 6\r\n#", "parent": 415, "children": [], "start_point": {"row": 139, "column": 35}, "end_point": {"row": 139, "column": 58}}, {"id": 419, "type": "preproc_def", "text": "efine DISIGON_ERROR_INVALID_ALIAS\t\tDISIGON_ERROR_BASE + 7\r\n#d", "parent": 0, "children": [420, 421, 422], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 141, "column": 0}}, {"id": 420, "type": "#define", "text": "efine D", "parent": 419, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 7}}, {"id": 421, "type": "identifier", "text": "SIGON_ERROR_INVALID_ALIAS\t\t", "parent": 419, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 35}}, {"id": 422, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 7\r\n#", "parent": 419, "children": [], "start_point": {"row": 140, "column": 37}, "end_point": {"row": 140, "column": 60}}, {"id": 423, "type": "preproc_def", "text": "efine DISIGON_ERROR_INVALID_SIGOPT\t\tDISIGON_ERROR_BASE + 8\r\n#d", "parent": 0, "children": [424, 425, 426], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 0}}, {"id": 424, "type": "#define", "text": "efine D", "parent": 423, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 425, "type": "identifier", "text": "SIGON_ERROR_INVALID_SIGOPT\t\t", "parent": 423, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 36}}, {"id": 426, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 8\r\n#", "parent": 423, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 61}}, {"id": 427, "type": "preproc_def", "text": "efine DISIGON_ERROR_ARRS_BASE\t\t\tDISIGON_ERROR_BASE + 0x00100000\r\n#d", "parent": 0, "children": [428, 429, 430], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 143, "column": 0}}, {"id": 428, "type": "#define", "text": "efine D", "parent": 427, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 7}}, {"id": 429, "type": "identifier", "text": "SIGON_ERROR_ARRS_BASE\t\t", "parent": 427, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 31}}, {"id": 430, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 0x00100000\r\n#", "parent": 427, "children": [], "start_point": {"row": 142, "column": 34}, "end_point": {"row": 142, "column": 66}}, {"id": 431, "type": "preproc_def", "text": "efine DISIGON_ERROR_CERT_INVALID\t\tDISIGON_ERROR_BASE + 9\r\n#d", "parent": 0, "children": [432, 433, 434], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 144, "column": 0}}, {"id": 432, "type": "#define", "text": "efine D", "parent": 431, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 7}}, {"id": 433, "type": "identifier", "text": "SIGON_ERROR_CERT_INVALID\t\t", "parent": 431, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 34}}, {"id": 434, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 9\r\n#", "parent": 431, "children": [], "start_point": {"row": 143, "column": 36}, "end_point": {"row": 143, "column": 59}}, {"id": 435, "type": "preproc_def", "text": "efine DISIGON_ERROR_CERT_EXPIRED\t\tDISIGON_ERROR_BASE + 10\r\n#d", "parent": 0, "children": [436, 437, 438], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 145, "column": 0}}, {"id": 436, "type": "#define", "text": "efine D", "parent": 435, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 7}}, {"id": 437, "type": "identifier", "text": "SIGON_ERROR_CERT_EXPIRED\t\t", "parent": 435, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 34}}, {"id": 438, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 10\r\n#", "parent": 435, "children": [], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 60}}, {"id": 439, "type": "preproc_def", "text": "efine DISIGON_ERROR_CACERT_NOTFOUND\tDISIGON_ERROR_BASE + 11\r\n#d", "parent": 0, "children": [440, 441, 442], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 146, "column": 0}}, {"id": 440, "type": "#define", "text": "efine D", "parent": 439, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 7}}, {"id": 441, "type": "identifier", "text": "SIGON_ERROR_CACERT_NOTFOUND\tD", "parent": 439, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 37}}, {"id": 442, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 11\r\n#", "parent": 439, "children": [], "start_point": {"row": 145, "column": 38}, "end_point": {"row": 145, "column": 62}}, {"id": 443, "type": "preproc_def", "text": "efine DISIGON_ERROR_CERT_NOTFOUND\t\tDISIGON_ERROR_BASE + 12\r\n#d", "parent": 0, "children": [444, 445, 446], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 147, "column": 0}}, {"id": 444, "type": "#define", "text": "efine D", "parent": 443, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 7}}, {"id": 445, "type": "identifier", "text": "SIGON_ERROR_CERT_NOTFOUND\t\t", "parent": 443, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 35}}, {"id": 446, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 12\r\n#", "parent": 443, "children": [], "start_point": {"row": 146, "column": 37}, "end_point": {"row": 146, "column": 61}}, {"id": 447, "type": "preproc_def", "text": "efine DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE\t\tDISIGON_ERROR_BASE + 13\r\n\r\n", "parent": 0, "children": [448, 449, 450], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 148, "column": 0}}, {"id": 448, "type": "#define", "text": "efine D", "parent": 447, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 7}}, {"id": 449, "type": "identifier", "text": "SIGON_ERROR_CERT_NOT_FOR_SIGNATURE\t\t", "parent": 447, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 44}}, {"id": 450, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 13\r\n\r", "parent": 447, "children": [], "start_point": {"row": 147, "column": 46}, "end_point": {"row": 147, "column": 70}}, {"id": 451, "type": "preproc_def", "text": "efine DISIGON_ERROR_TSL_LOAD\t\t\tDISIGON_ERROR_BASE + 20\r\n#d", "parent": 0, "children": [452, 453, 454], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 150, "column": 0}}, {"id": 452, "type": "#define", "text": "efine D", "parent": 451, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 7}}, {"id": 453, "type": "identifier", "text": "SIGON_ERROR_TSL_LOAD\t\t", "parent": 451, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 30}}, {"id": 454, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 20\r\n#", "parent": 451, "children": [], "start_point": {"row": 149, "column": 33}, "end_point": {"row": 149, "column": 57}}, {"id": 455, "type": "preproc_def", "text": "efine DISIGON_ERROR_TSL_PARSE\t\t\tDISIGON_ERROR_BASE + 21\r\n#d", "parent": 0, "children": [456, 457, 458], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 151, "column": 0}}, {"id": 456, "type": "#define", "text": "efine D", "parent": 455, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 7}}, {"id": 457, "type": "identifier", "text": "SIGON_ERROR_TSL_PARSE\t\t", "parent": 455, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 31}}, {"id": 458, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 21\r\n#", "parent": 455, "children": [], "start_point": {"row": 150, "column": 34}, "end_point": {"row": 150, "column": 58}}, {"id": 459, "type": "preproc_def", "text": "efine DISIGON_ERROR_TSL_INVALID\t\tDISIGON_ERROR_BASE + 22\r\n#d", "parent": 0, "children": [460, 461, 462], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 152, "column": 0}}, {"id": 460, "type": "#define", "text": "efine D", "parent": 459, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 7}}, {"id": 461, "type": "identifier", "text": "SIGON_ERROR_TSL_INVALID\t\t", "parent": 459, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 33}}, {"id": 462, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 22\r\n#", "parent": 459, "children": [], "start_point": {"row": 151, "column": 35}, "end_point": {"row": 151, "column": 59}}, {"id": 463, "type": "preproc_def", "text": "efine DISIGON_ERROR_TSL_CACERTDIR_NOT_SET\t\tDISIGON_ERROR_BASE + 23\r\n#d", "parent": 0, "children": [464, 465, 466], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 153, "column": 0}}, {"id": 464, "type": "#define", "text": "efine D", "parent": 463, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 7}}, {"id": 465, "type": "identifier", "text": "SIGON_ERROR_TSL_CACERTDIR_NOT_SET\t\t", "parent": 463, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 43}}, {"id": 466, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 23\r\n#", "parent": 463, "children": [], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 69}}, {"id": 467, "type": "preproc_def", "text": "efine DISIGON_ERROR_TSA\t\tDISIGON_ERROR_BASE + 30\r\n\r\n", "parent": 0, "children": [468, 469, 470], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 154, "column": 0}}, {"id": 468, "type": "#define", "text": "efine D", "parent": 467, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 7}}, {"id": 469, "type": "identifier", "text": "SIGON_ERROR_TSA\t\t", "parent": 467, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 25}}, {"id": 470, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 30\r\n\r", "parent": 467, "children": [], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 51}}, {"id": 471, "type": "preproc_def", "text": "efine DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40\r\n#d", "parent": 0, "children": [472, 473, 474], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 156, "column": 0}}, {"id": 472, "type": "#define", "text": "efine ", "parent": 471, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 473, "type": "identifier", "text": "SIGON_ERROR_WRONG_PIN ", "parent": 471, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 32}}, {"id": 474, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 40\r\n#", "parent": 471, "children": [], "start_point": {"row": 155, "column": 37}, "end_point": {"row": 155, "column": 61}}, {"id": 475, "type": "preproc_def", "text": "efine DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41\r\n\r\n", "parent": 0, "children": [476, 477, 478], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 157, "column": 0}}, {"id": 476, "type": "#define", "text": "efine ", "parent": 475, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 7}}, {"id": 477, "type": "identifier", "text": "SIGON_ERROR_PIN_LOCKED ", "parent": 475, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 33}}, {"id": 478, "type": "preproc_arg", "text": "SIGON_ERROR_BASE + 41\r\n\r", "parent": 475, "children": [], "start_point": {"row": 156, "column": 35}, "end_point": {"row": 156, "column": 59}}, {"id": 479, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_PLAINTEXT\t0\r\n#d", "parent": 0, "children": [480, 481, 482], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 160, "column": 0}}, {"id": 480, "type": "#define", "text": "efine D", "parent": 479, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 7}}, {"id": 481, "type": "identifier", "text": "SIGON_FILETYPE_PLAINTEXT\t0", "parent": 479, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 34}}, {"id": 482, "type": "preproc_arg", "text": "\n#", "parent": 479, "children": [], "start_point": {"row": 159, "column": 35}, "end_point": {"row": 159, "column": 37}}, {"id": 483, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_P7M\t\t\t1\r\n#d", "parent": 0, "children": [484, 485, 486], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 161, "column": 0}}, {"id": 484, "type": "#define", "text": "efine D", "parent": 483, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 7}}, {"id": 485, "type": "identifier", "text": "SIGON_FILETYPE_P7M\t\t", "parent": 483, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 28}}, {"id": 486, "type": "preproc_arg", "text": "\n#", "parent": 483, "children": [], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 160, "column": 33}}, {"id": 487, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_PDF\t\t\t2\r\n#d", "parent": 0, "children": [488, 489, 490], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 162, "column": 0}}, {"id": 488, "type": "#define", "text": "efine D", "parent": 487, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 7}}, {"id": 489, "type": "identifier", "text": "SIGON_FILETYPE_PDF\t\t", "parent": 487, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 28}}, {"id": 490, "type": "preproc_arg", "text": "\n#", "parent": 487, "children": [], "start_point": {"row": 161, "column": 31}, "end_point": {"row": 161, "column": 33}}, {"id": 491, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_M7M\t\t\t3\r\n#d", "parent": 0, "children": [492, 493, 494], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 163, "column": 0}}, {"id": 492, "type": "#define", "text": "efine D", "parent": 491, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 7}}, {"id": 493, "type": "identifier", "text": "SIGON_FILETYPE_M7M\t\t", "parent": 491, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 28}}, {"id": 494, "type": "preproc_arg", "text": "\n#", "parent": 491, "children": [], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 33}}, {"id": 495, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_TSR\t\t\t4\r\n#d", "parent": 0, "children": [496, 497, 498], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 164, "column": 0}}, {"id": 496, "type": "#define", "text": "efine D", "parent": 495, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 7}}, {"id": 497, "type": "identifier", "text": "SIGON_FILETYPE_TSR\t\t", "parent": 495, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 28}}, {"id": 498, "type": "preproc_arg", "text": "\n#", "parent": 495, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 33}}, {"id": 499, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_TST\t\t\t5\r\n#d", "parent": 0, "children": [500, 501, 502], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 165, "column": 0}}, {"id": 500, "type": "#define", "text": "efine D", "parent": 499, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 7}}, {"id": 501, "type": "identifier", "text": "SIGON_FILETYPE_TST\t\t", "parent": 499, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 28}}, {"id": 502, "type": "preproc_arg", "text": "\n#", "parent": 499, "children": [], "start_point": {"row": 164, "column": 31}, "end_point": {"row": 164, "column": 33}}, {"id": 503, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_TSD\t\t\t6\r\n#d", "parent": 0, "children": [504, 505, 506], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 166, "column": 0}}, {"id": 504, "type": "#define", "text": "efine D", "parent": 503, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 7}}, {"id": 505, "type": "identifier", "text": "SIGON_FILETYPE_TSD\t\t", "parent": 503, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 28}}, {"id": 506, "type": "preproc_arg", "text": "\n#", "parent": 503, "children": [], "start_point": {"row": 165, "column": 31}, "end_point": {"row": 165, "column": 33}}, {"id": 507, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_XML\t\t\t7\r\n#d", "parent": 0, "children": [508, 509, 510], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 167, "column": 0}}, {"id": 508, "type": "#define", "text": "efine D", "parent": 507, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 7}}, {"id": 509, "type": "identifier", "text": "SIGON_FILETYPE_XML\t\t", "parent": 507, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 28}}, {"id": 510, "type": "preproc_arg", "text": "\n#", "parent": 507, "children": [], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 33}}, {"id": 511, "type": "preproc_def", "text": "efine DISIGON_FILETYPE_AUTO\t\t8\r\n\r\n", "parent": 0, "children": [512, 513, 514], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 168, "column": 0}}, {"id": 512, "type": "#define", "text": "efine D", "parent": 511, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 7}}, {"id": 513, "type": "identifier", "text": "SIGON_FILETYPE_AUTO\t\t", "parent": 511, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 29}}, {"id": 514, "type": "preproc_arg", "text": "\n\r", "parent": 511, "children": [], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 33}}, {"id": 515, "type": "preproc_def", "text": "efine DISIGON_ALGO_SHA1\t\t\t1\r\n#d", "parent": 0, "children": [516, 517, 518], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 179, "column": 0}}, {"id": 516, "type": "#define", "text": "efine D", "parent": 515, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 7}}, {"id": 517, "type": "identifier", "text": "SIGON_ALGO_SHA1\t\t", "parent": 515, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 25}}, {"id": 518, "type": "preproc_arg", "text": "\n#", "parent": 515, "children": [], "start_point": {"row": 178, "column": 28}, "end_point": {"row": 178, "column": 30}}, {"id": 519, "type": "preproc_def", "text": "efine DISIGON_ALGO_SHA256\t\t\t2\r\n#d", "parent": 0, "children": [520, 521, 522], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 180, "column": 0}}, {"id": 520, "type": "#define", "text": "efine D", "parent": 519, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 7}}, {"id": 521, "type": "identifier", "text": "SIGON_ALGO_SHA256\t\t", "parent": 519, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 27}}, {"id": 522, "type": "preproc_arg", "text": "\n#", "parent": 519, "children": [], "start_point": {"row": 179, "column": 30}, "end_point": {"row": 179, "column": 32}}, {"id": 523, "type": "preproc_def", "text": "efine DISIGON_ALGO_SHA512\t\t\t3\r\n#d", "parent": 0, "children": [524, 525, 526], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 181, "column": 0}}, {"id": 524, "type": "#define", "text": "efine D", "parent": 523, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 7}}, {"id": 525, "type": "identifier", "text": "SIGON_ALGO_SHA512\t\t", "parent": 523, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 27}}, {"id": 526, "type": "preproc_arg", "text": "\n#", "parent": 523, "children": [], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 32}}, {"id": 527, "type": "preproc_def", "text": "efine DISIGON_ALGO_MD5\t\t\t\t4\r\n\r\n", "parent": 0, "children": [528, 529, 530], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 182, "column": 0}}, {"id": 528, "type": "#define", "text": "efine D", "parent": 527, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 7}}, {"id": 529, "type": "identifier", "text": "SIGON_ALGO_MD5\t\t", "parent": 527, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 24}}, {"id": 530, "type": "preproc_arg", "text": "\n\r", "parent": 527, "children": [], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 30}}, {"id": 531, "type": "preproc_def", "text": "efine LOG_TYPE_ERROR\t\t\t1\r\n#d", "parent": 0, "children": [532, 533, 534], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 184, "column": 0}}, {"id": 532, "type": "#define", "text": "efine L", "parent": 531, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 7}}, {"id": 533, "type": "identifier", "text": "G_TYPE_ERROR\t\t", "parent": 531, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 22}}, {"id": 534, "type": "preproc_arg", "text": "\n#", "parent": 531, "children": [], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 27}}, {"id": 535, "type": "preproc_def", "text": "efine LOG_TYPE_WARNING\t\t2\r\n#d", "parent": 0, "children": [536, 537, 538], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 185, "column": 0}}, {"id": 536, "type": "#define", "text": "efine L", "parent": 535, "children": [], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 184, "column": 7}}, {"id": 537, "type": "identifier", "text": "G_TYPE_WARNING\t\t", "parent": 535, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 24}}, {"id": 538, "type": "preproc_arg", "text": "\n#", "parent": 535, "children": [], "start_point": {"row": 184, "column": 26}, "end_point": {"row": 184, "column": 28}}, {"id": 539, "type": "preproc_def", "text": "efine LOG_TYPE_MESSAGE\t\t3\r\n#d", "parent": 0, "children": [540, 541, 542], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 186, "column": 0}}, {"id": 540, "type": "#define", "text": "efine L", "parent": 539, "children": [], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 7}}, {"id": 541, "type": "identifier", "text": "G_TYPE_MESSAGE\t\t", "parent": 539, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 24}}, {"id": 542, "type": "preproc_arg", "text": "\n#", "parent": 539, "children": [], "start_point": {"row": 185, "column": 26}, "end_point": {"row": 185, "column": 28}}, {"id": 543, "type": "preproc_def", "text": "efine LOG_TYPE_DEBUG\t\t\t4 \r\n\r\n", "parent": 0, "children": [544, 545, 546], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 187, "column": 0}}, {"id": 544, "type": "#define", "text": "efine L", "parent": 543, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 7}}, {"id": 545, "type": "identifier", "text": "G_TYPE_DEBUG\t\t", "parent": 543, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 22}}, {"id": 546, "type": "preproc_arg", "text": " \r\n\r", "parent": 543, "children": [], "start_point": {"row": 186, "column": 25}, "end_point": {"row": 186, "column": 29}}, {"id": 547, "type": "preproc_def", "text": "efine TYPE_OCSP 1\r\n#d", "parent": 0, "children": [548, 549, 550], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 189, "column": 0}}, {"id": 548, "type": "#define", "text": "efine T", "parent": 547, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 7}}, {"id": 549, "type": "identifier", "text": "PE_OCSP 1", "parent": 547, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 17}}, {"id": 550, "type": "preproc_arg", "text": "\n#", "parent": 547, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 20}}, {"id": 551, "type": "preproc_def", "text": "efine TYPE_CRL 2\r\n\r\n", "parent": 0, "children": [552, 553, 554], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 190, "column": 0}}, {"id": 552, "type": "#define", "text": "efine T", "parent": 551, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 7}}, {"id": 553, "type": "identifier", "text": "PE_CRL 2", "parent": 551, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 16}}, {"id": 554, "type": "preproc_arg", "text": "\n\r", "parent": 551, "children": [], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 19}}, {"id": 555, "type": "preproc_def", "text": "efine DISIGON_RS_SERVICE_TYPE_NONE\t\t\t0\r\n#d", "parent": 0, "children": [556, 557, 558], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 192, "column": 0}}, {"id": 556, "type": "#define", "text": "efine D", "parent": 555, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 7}}, {"id": 557, "type": "identifier", "text": "SIGON_RS_SERVICE_TYPE_NONE\t\t", "parent": 555, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 36}}, {"id": 558, "type": "preproc_arg", "text": "\n#", "parent": 555, "children": [], "start_point": {"row": 191, "column": 39}, "end_point": {"row": 191, "column": 41}}, {"id": 559, "type": "preproc_def", "text": "efine DISIGON_RS_SERVICE_TYPE_ARUBA\t\t1\r\n#d", "parent": 0, "children": [560, 561, 562], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 0}}, {"id": 560, "type": "#define", "text": "efine D", "parent": 559, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 7}}, {"id": 561, "type": "identifier", "text": "SIGON_RS_SERVICE_TYPE_ARUBA\t\t", "parent": 559, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 37}}, {"id": 562, "type": "preproc_arg", "text": "\n#", "parent": 559, "children": [], "start_point": {"row": 192, "column": 39}, "end_point": {"row": 192, "column": 41}}, {"id": 563, "type": "preproc_def", "text": "efine DISIGON_RS_SERVICE_TYPE_ITTELECOM\t2\r\n\r\n", "parent": 0, "children": [564, 565, 566], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 194, "column": 0}}, {"id": 564, "type": "#define", "text": "efine D", "parent": 563, "children": [], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 193, "column": 7}}, {"id": 565, "type": "identifier", "text": "SIGON_RS_SERVICE_TYPE_ITTELECOM\t2", "parent": 563, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 41}}, {"id": 566, "type": "preproc_arg", "text": "\n\r", "parent": 563, "children": [], "start_point": {"row": 193, "column": 42}, "end_point": {"row": 193, "column": 44}}, {"id": 567, "type": "type_definition", "text": "pedef struct _REVOCATION_INFO\r\n{\r\n\tint nType; // OCSP, CRL\r\n\tchar szExpiration[60];\r\n\tchar szThisUpdate[60];\r\n\tint nRevocationStatus;\r\n\tchar szRevocationDate[60];\r\n} REVOCATION_INFO;\r\n", "parent": 0, "children": [568, 569, 593], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 204, "column": 18}}, {"id": 568, "type": "typedef", "text": "pedef s", "parent": 567, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 7}}, {"id": 569, "type": "struct_specifier", "text": "ruct _REVOCATION_INFO\r\n{\r\n\tint nType; // OCSP, CRL\r\n\tchar szExpiration[60];\r\n\tchar szThisUpdate[60];\r\n\tint nRevocationStatus;\r\n\tchar szRevocationDate[60];\r\n} R", "parent": 567, "children": [570, 571], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 204, "column": 1}}, {"id": 570, "type": "struct", "text": "ruct _", "parent": 569, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 14}}, {"id": 571, "type": "type_identifier", "text": "EVOCATION_INFO\r\n", "parent": 569, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 31}}, {"id": 572, "type": "field_declaration", "text": "t nType; ", "parent": 569, "children": [573, 574], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 11}}, {"id": 573, "type": "primitive_type", "text": "t n", "parent": 572, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 4}}, {"id": 574, "type": "field_identifier", "text": "ype; ", "parent": 572, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 10}}, {"id": 575, "type": "field_declaration", "text": "ar szExpiration[60];\r\n", "parent": 569, "children": [576, 577], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 23}}, {"id": 576, "type": "primitive_type", "text": "ar s", "parent": 575, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 5}}, {"id": 577, "type": "array_declarator", "text": "Expiration[60];\r", "parent": 575, "children": [578, 579], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 22}}, {"id": 578, "type": "field_identifier", "text": "Expiration[6", "parent": 577, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 18}}, {"id": 579, "type": "number_literal", "text": "];", "parent": 577, "children": [], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 21}}, {"id": 580, "type": "field_declaration", "text": "ar szThisUpdate[60];\r\n", "parent": 569, "children": [581, 582], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 23}}, {"id": 581, "type": "primitive_type", "text": "ar s", "parent": 580, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 5}}, {"id": 582, "type": "array_declarator", "text": "ThisUpdate[60];\r", "parent": 580, "children": [583, 584], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 22}}, {"id": 583, "type": "field_identifier", "text": "ThisUpdate[6", "parent": 582, "children": [], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 18}}, {"id": 584, "type": "number_literal", "text": "];", "parent": 582, "children": [], "start_point": {"row": 201, "column": 19}, "end_point": {"row": 201, "column": 21}}, {"id": 585, "type": "field_declaration", "text": "t nRevocationStatus;\r\n", "parent": 569, "children": [586, 587], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 23}}, {"id": 586, "type": "primitive_type", "text": "t n", "parent": 585, "children": [], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 4}}, {"id": 587, "type": "field_identifier", "text": "evocationStatus;\r", "parent": 585, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 22}}, {"id": 588, "type": "field_declaration", "text": "ar szRevocationDate[60];\r\n", "parent": 569, "children": [589, 590], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 27}}, {"id": 589, "type": "primitive_type", "text": "ar s", "parent": 588, "children": [], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 5}}, {"id": 590, "type": "array_declarator", "text": "RevocationDate[60];\r", "parent": 588, "children": [591, 592], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 26}}, {"id": 591, "type": "field_identifier", "text": "RevocationDate[6", "parent": 590, "children": [], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 22}}, {"id": 592, "type": "number_literal", "text": "];", "parent": 590, "children": [], "start_point": {"row": 203, "column": 23}, "end_point": {"row": 203, "column": 25}}, {"id": 593, "type": "type_identifier", "text": "VOCATION_INFO;\r", "parent": 567, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 17}}, {"id": 594, "type": "type_definition", "text": "pedef struct _SIGNER_INFO\r\n{\r\n\tchar szCN[MAX_LEN * 2];\r\n char szDN[MAX_LEN * 2];\r\n char szGIVENNAME[MAX_LEN * 2];\r\n char szSURNAME[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCADN[MAX_LEN * 2];\r\n\tchar** pszExtensions;\r\n\tint nExtensionsCount;\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tlong bitmask;\r\n\tchar szDigestAlgorithm[MAX_LEN];\r\n\tchar szSigningTime[MAX_LEN];\r\n\tchar szCertificateV2[MAX_LEN];\r\n\tBOOL b2011Error;\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n\tvoid* pTimeStamp;\r\n\tREVOCATION_INFO* pRevocationInfo;\r\n\tvoid* pCounterSignatures;\r\n\tint nCounterSignatureCount;\r\n} SIGNER_INFO;\r\n", "parent": 0, "children": [595, 596, 709], "start_point": {"row": 207, "column": 0}, "end_point": {"row": 230, "column": 14}}, {"id": 595, "type": "typedef", "text": "pedef s", "parent": 594, "children": [], "start_point": {"row": 207, "column": 0}, "end_point": {"row": 207, "column": 7}}, {"id": 596, "type": "struct_specifier", "text": "ruct _SIGNER_INFO\r\n{\r\n\tchar szCN[MAX_LEN * 2];\r\n char szDN[MAX_LEN * 2];\r\n char szGIVENNAME[MAX_LEN * 2];\r\n char szSURNAME[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCADN[MAX_LEN * 2];\r\n\tchar** pszExtensions;\r\n\tint nExtensionsCount;\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tlong bitmask;\r\n\tchar szDigestAlgorithm[MAX_LEN];\r\n\tchar szSigningTime[MAX_LEN];\r\n\tchar szCertificateV2[MAX_LEN];\r\n\tBOOL b2011Error;\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n\tvoid* pTimeStamp;\r\n\tREVOCATION_INFO* pRevocationInfo;\r\n\tvoid* pCounterSignatures;\r\n\tint nCounterSignatureCount;\r\n} S", "parent": 594, "children": [597, 598], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 230, "column": 1}}, {"id": 597, "type": "struct", "text": "ruct _", "parent": 596, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 14}}, {"id": 598, "type": "type_identifier", "text": "IGNER_INFO\r\n", "parent": 596, "children": [], "start_point": {"row": 207, "column": 15}, "end_point": {"row": 207, "column": 27}}, {"id": 599, "type": "field_declaration", "text": "ar szCN[MAX_LEN * 2];\r\n", "parent": 596, "children": [600, 601], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 24}}, {"id": 600, "type": "primitive_type", "text": "ar s", "parent": 599, "children": [], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 5}}, {"id": 601, "type": "array_declarator", "text": "CN[MAX_LEN * 2];\r", "parent": 599, "children": [602, 603], "start_point": {"row": 209, "column": 6}, "end_point": {"row": 209, "column": 23}}, {"id": 602, "type": "field_identifier", "text": "CN[M", "parent": 601, "children": [], "start_point": {"row": 209, "column": 6}, "end_point": {"row": 209, "column": 10}}, {"id": 603, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 601, "children": [604, 605], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 22}}, {"id": 604, "type": "identifier", "text": "X_LEN *", "parent": 603, "children": [], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 18}}, {"id": 605, "type": "*", "text": "2", "parent": 603, "children": [], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 20}}, {"id": 606, "type": "field_declaration", "text": "ar szDN[MAX_LEN * 2];\r\n", "parent": 596, "children": [607, 608], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 27}}, {"id": 607, "type": "primitive_type", "text": "ar s", "parent": 606, "children": [], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 8}}, {"id": 608, "type": "array_declarator", "text": "DN[MAX_LEN * 2];\r", "parent": 606, "children": [609, 610], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 26}}, {"id": 609, "type": "field_identifier", "text": "DN[M", "parent": 608, "children": [], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 13}}, {"id": 610, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 608, "children": [611, 612], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 25}}, {"id": 611, "type": "identifier", "text": "X_LEN *", "parent": 610, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 21}}, {"id": 612, "type": "*", "text": "2", "parent": 610, "children": [], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 23}}, {"id": 613, "type": "field_declaration", "text": "ar szGIVENNAME[MAX_LEN * 2];\r\n", "parent": 596, "children": [614, 615], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 34}}, {"id": 614, "type": "primitive_type", "text": "ar s", "parent": 613, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 8}}, {"id": 615, "type": "array_declarator", "text": "GIVENNAME[MAX_LEN * 2];\r", "parent": 613, "children": [616, 617], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 33}}, {"id": 616, "type": "field_identifier", "text": "GIVENNAME[M", "parent": 615, "children": [], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 20}}, {"id": 617, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 615, "children": [618, 619], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 32}}, {"id": 618, "type": "identifier", "text": "X_LEN *", "parent": 617, "children": [], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 28}}, {"id": 619, "type": "*", "text": "2", "parent": 617, "children": [], "start_point": {"row": 211, "column": 29}, "end_point": {"row": 211, "column": 30}}, {"id": 620, "type": "field_declaration", "text": "ar szSURNAME[MAX_LEN * 2];\r\n", "parent": 596, "children": [621, 622], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 32}}, {"id": 621, "type": "primitive_type", "text": "ar s", "parent": 620, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 8}}, {"id": 622, "type": "array_declarator", "text": "SURNAME[MAX_LEN * 2];\r", "parent": 620, "children": [623, 624], "start_point": {"row": 212, "column": 9}, "end_point": {"row": 212, "column": 31}}, {"id": 623, "type": "field_identifier", "text": "SURNAME[M", "parent": 622, "children": [], "start_point": {"row": 212, "column": 9}, "end_point": {"row": 212, "column": 18}}, {"id": 624, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 622, "children": [625, 626], "start_point": {"row": 212, "column": 19}, "end_point": {"row": 212, "column": 30}}, {"id": 625, "type": "identifier", "text": "X_LEN *", "parent": 624, "children": [], "start_point": {"row": 212, "column": 19}, "end_point": {"row": 212, "column": 26}}, {"id": 626, "type": "*", "text": "2", "parent": 624, "children": [], "start_point": {"row": 212, "column": 27}, "end_point": {"row": 212, "column": 28}}, {"id": 627, "type": "field_declaration", "text": "ar szSN[MAX_LEN * 2];\r\n", "parent": 596, "children": [628, 629], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 24}}, {"id": 628, "type": "primitive_type", "text": "ar s", "parent": 627, "children": [], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 5}}, {"id": 629, "type": "array_declarator", "text": "SN[MAX_LEN * 2];\r", "parent": 627, "children": [630, 631], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 23}}, {"id": 630, "type": "field_identifier", "text": "SN[M", "parent": 629, "children": [], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 10}}, {"id": 631, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 629, "children": [632, 633], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 22}}, {"id": 632, "type": "identifier", "text": "X_LEN *", "parent": 631, "children": [], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 18}}, {"id": 633, "type": "*", "text": "2", "parent": 631, "children": [], "start_point": {"row": 213, "column": 19}, "end_point": {"row": 213, "column": 20}}, {"id": 634, "type": "field_declaration", "text": "ar szCADN[MAX_LEN * 2];\r\n", "parent": 596, "children": [635, 636], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 26}}, {"id": 635, "type": "primitive_type", "text": "ar s", "parent": 634, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 5}}, {"id": 636, "type": "array_declarator", "text": "CADN[MAX_LEN * 2];\r", "parent": 634, "children": [637, 638], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 25}}, {"id": 637, "type": "field_identifier", "text": "CADN[M", "parent": 636, "children": [], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 12}}, {"id": 638, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 636, "children": [639, 640], "start_point": {"row": 214, "column": 13}, "end_point": {"row": 214, "column": 24}}, {"id": 639, "type": "identifier", "text": "X_LEN *", "parent": 638, "children": [], "start_point": {"row": 214, "column": 13}, "end_point": {"row": 214, "column": 20}}, {"id": 640, "type": "*", "text": "2", "parent": 638, "children": [], "start_point": {"row": 214, "column": 21}, "end_point": {"row": 214, "column": 22}}, {"id": 641, "type": "field_declaration", "text": "ar** pszExtensions;\r\n", "parent": 596, "children": [642, 643], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 22}}, {"id": 642, "type": "primitive_type", "text": "ar**", "parent": 641, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 5}}, {"id": 643, "type": "pointer_declarator", "text": " pszExtensions;\r", "parent": 641, "children": [644, 645], "start_point": {"row": 215, "column": 5}, "end_point": {"row": 215, "column": 21}}, {"id": 644, "type": "*", "text": " ", "parent": 643, "children": [], "start_point": {"row": 215, "column": 5}, "end_point": {"row": 215, "column": 6}}, {"id": 645, "type": "pointer_declarator", "text": "pszExtensions;\r", "parent": 643, "children": [646, 647], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 21}}, {"id": 646, "type": "*", "text": "p", "parent": 645, "children": [], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 7}}, {"id": 647, "type": "field_identifier", "text": "zExtensions;\r", "parent": 645, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 21}}, {"id": 648, "type": "field_declaration", "text": "t nExtensionsCount;\r\n", "parent": 596, "children": [649, 650], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 22}}, {"id": 649, "type": "primitive_type", "text": "t n", "parent": 648, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 4}}, {"id": 650, "type": "field_identifier", "text": "xtensionsCount;\r", "parent": 648, "children": [], "start_point": {"row": 216, "column": 5}, "end_point": {"row": 216, "column": 21}}, {"id": 651, "type": "field_declaration", "text": "ar szExpiration[MAX_LEN];\r\n", "parent": 596, "children": [652, 653], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 28}}, {"id": 652, "type": "primitive_type", "text": "ar s", "parent": 651, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 5}}, {"id": 653, "type": "array_declarator", "text": "Expiration[MAX_LEN];\r", "parent": 651, "children": [654, 655], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 27}}, {"id": 654, "type": "field_identifier", "text": "Expiration[M", "parent": 653, "children": [], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 18}}, {"id": 655, "type": "identifier", "text": "X_LEN];", "parent": 653, "children": [], "start_point": {"row": 217, "column": 19}, "end_point": {"row": 217, "column": 26}}, {"id": 656, "type": "field_declaration", "text": "ar szValidFrom[MAX_LEN];\r\n", "parent": 596, "children": [657, 658], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 27}}, {"id": 657, "type": "primitive_type", "text": "ar s", "parent": 656, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 5}}, {"id": 658, "type": "array_declarator", "text": "ValidFrom[MAX_LEN];\r", "parent": 656, "children": [659, 660], "start_point": {"row": 218, "column": 6}, "end_point": {"row": 218, "column": 26}}, {"id": 659, "type": "field_identifier", "text": "ValidFrom[M", "parent": 658, "children": [], "start_point": {"row": 218, "column": 6}, "end_point": {"row": 218, "column": 17}}, {"id": 660, "type": "identifier", "text": "X_LEN];", "parent": 658, "children": [], "start_point": {"row": 218, "column": 18}, "end_point": {"row": 218, "column": 25}}, {"id": 661, "type": "field_declaration", "text": "ng bitmask;\r\n", "parent": 596, "children": [662, 664], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 14}}, {"id": 662, "type": "sized_type_specifier", "text": "ng b", "parent": 661, "children": [663], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 5}}, {"id": 663, "type": "long", "text": "ng b", "parent": 662, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 5}}, {"id": 664, "type": "field_identifier", "text": "tmask;\r", "parent": 661, "children": [], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 13}}, {"id": 665, "type": "field_declaration", "text": "ar szDigestAlgorithm[MAX_LEN];\r\n", "parent": 596, "children": [666, 667], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 33}}, {"id": 666, "type": "primitive_type", "text": "ar s", "parent": 665, "children": [], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 5}}, {"id": 667, "type": "array_declarator", "text": "DigestAlgorithm[MAX_LEN];\r", "parent": 665, "children": [668, 669], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 32}}, {"id": 668, "type": "field_identifier", "text": "DigestAlgorithm[M", "parent": 667, "children": [], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 23}}, {"id": 669, "type": "identifier", "text": "X_LEN];", "parent": 667, "children": [], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 31}}, {"id": 670, "type": "field_declaration", "text": "ar szSigningTime[MAX_LEN];\r\n", "parent": 596, "children": [671, 672], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 29}}, {"id": 671, "type": "primitive_type", "text": "ar s", "parent": 670, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 5}}, {"id": 672, "type": "array_declarator", "text": "SigningTime[MAX_LEN];\r", "parent": 670, "children": [673, 674], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 221, "column": 28}}, {"id": 673, "type": "field_identifier", "text": "SigningTime[M", "parent": 672, "children": [], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 221, "column": 19}}, {"id": 674, "type": "identifier", "text": "X_LEN];", "parent": 672, "children": [], "start_point": {"row": 221, "column": 20}, "end_point": {"row": 221, "column": 27}}, {"id": 675, "type": "field_declaration", "text": "ar szCertificateV2[MAX_LEN];\r\n", "parent": 596, "children": [676, 677], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 31}}, {"id": 676, "type": "primitive_type", "text": "ar s", "parent": 675, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 5}}, {"id": 677, "type": "array_declarator", "text": "CertificateV2[MAX_LEN];\r", "parent": 675, "children": [678, 679], "start_point": {"row": 222, "column": 6}, "end_point": {"row": 222, "column": 30}}, {"id": 678, "type": "field_identifier", "text": "CertificateV2[M", "parent": 677, "children": [], "start_point": {"row": 222, "column": 6}, "end_point": {"row": 222, "column": 21}}, {"id": 679, "type": "identifier", "text": "X_LEN];", "parent": 677, "children": [], "start_point": {"row": 222, "column": 22}, "end_point": {"row": 222, "column": 29}}, {"id": 680, "type": "field_declaration", "text": "OL b2011Error;\r\n", "parent": 596, "children": [681, 682], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 17}}, {"id": 681, "type": "type_identifier", "text": "OL b", "parent": 680, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 5}}, {"id": 682, "type": "field_identifier", "text": "011Error;\r", "parent": 680, "children": [], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 223, "column": 16}}, {"id": 683, "type": "field_declaration", "text": "TE* pCertificate;\r\n", "parent": 596, "children": [684, 685], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 20}}, {"id": 684, "type": "type_identifier", "text": "TE* ", "parent": 683, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 5}}, {"id": 685, "type": "pointer_declarator", "text": "pCertificate;\r", "parent": 683, "children": [686, 687], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 19}}, {"id": 686, "type": "*", "text": "p", "parent": 685, "children": [], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 6}}, {"id": 687, "type": "field_identifier", "text": "ertificate;\r", "parent": 685, "children": [], "start_point": {"row": 224, "column": 7}, "end_point": {"row": 224, "column": 19}}, {"id": 688, "type": "field_declaration", "text": "t nCertLen;\r\n", "parent": 596, "children": [689, 690], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 14}}, {"id": 689, "type": "primitive_type", "text": "t n", "parent": 688, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 4}}, {"id": 690, "type": "field_identifier", "text": "ertLen;\r", "parent": 688, "children": [], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 13}}, {"id": 691, "type": "field_declaration", "text": "id* pTimeStamp;\r\n", "parent": 596, "children": [692, 693], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 18}}, {"id": 692, "type": "primitive_type", "text": "id* ", "parent": 691, "children": [], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 5}}, {"id": 693, "type": "pointer_declarator", "text": "pTimeStamp;\r", "parent": 691, "children": [694, 695], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 17}}, {"id": 694, "type": "*", "text": "p", "parent": 693, "children": [], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 6}}, {"id": 695, "type": "field_identifier", "text": "imeStamp;\r", "parent": 693, "children": [], "start_point": {"row": 226, "column": 7}, "end_point": {"row": 226, "column": 17}}, {"id": 696, "type": "field_declaration", "text": "VOCATION_INFO* pRevocationInfo;\r\n", "parent": 596, "children": [697, 698], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 34}}, {"id": 697, "type": "type_identifier", "text": "VOCATION_INFO* ", "parent": 696, "children": [], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 16}}, {"id": 698, "type": "pointer_declarator", "text": "pRevocationInfo;\r", "parent": 696, "children": [699, 700], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 33}}, {"id": 699, "type": "*", "text": "p", "parent": 698, "children": [], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 17}}, {"id": 700, "type": "field_identifier", "text": "evocationInfo;\r", "parent": 698, "children": [], "start_point": {"row": 227, "column": 18}, "end_point": {"row": 227, "column": 33}}, {"id": 701, "type": "field_declaration", "text": "id* pCounterSignatures;\r\n", "parent": 596, "children": [702, 703], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 26}}, {"id": 702, "type": "primitive_type", "text": "id* ", "parent": 701, "children": [], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 5}}, {"id": 703, "type": "pointer_declarator", "text": "pCounterSignatures;\r", "parent": 701, "children": [704, 705], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 25}}, {"id": 704, "type": "*", "text": "p", "parent": 703, "children": [], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 6}}, {"id": 705, "type": "field_identifier", "text": "ounterSignatures;\r", "parent": 703, "children": [], "start_point": {"row": 228, "column": 7}, "end_point": {"row": 228, "column": 25}}, {"id": 706, "type": "field_declaration", "text": "t nCounterSignatureCount;\r\n", "parent": 596, "children": [707, 708], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 28}}, {"id": 707, "type": "primitive_type", "text": "t n", "parent": 706, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 4}}, {"id": 708, "type": "field_identifier", "text": "ounterSignatureCount;\r", "parent": 706, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 27}}, {"id": 709, "type": "type_identifier", "text": "GNER_INFO;\r", "parent": 594, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 13}}, {"id": 710, "type": "type_definition", "text": "pedef struct _TS_INFO\r\n{\r\n\tSIGNER_INFO signerInfo;\r\n\tchar szTimestamp[MAX_LEN]; \r\n\tchar szTimeStampImprintAlgorithm[MAX_LEN];\r\n\tchar szTimeStampMessageImprint[MAX_LEN];\r\n\tchar szTimeStampSerial[MAX_LEN];\r\n} TS_INFO;\r\n", "parent": 0, "children": [711, 712, 738], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 239, "column": 10}}, {"id": 711, "type": "typedef", "text": "pedef s", "parent": 710, "children": [], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 232, "column": 7}}, {"id": 712, "type": "struct_specifier", "text": "ruct _TS_INFO\r\n{\r\n\tSIGNER_INFO signerInfo;\r\n\tchar szTimestamp[MAX_LEN]; \r\n\tchar szTimeStampImprintAlgorithm[MAX_LEN];\r\n\tchar szTimeStampMessageImprint[MAX_LEN];\r\n\tchar szTimeStampSerial[MAX_LEN];\r\n} T", "parent": 710, "children": [713, 714], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 239, "column": 1}}, {"id": 713, "type": "struct", "text": "ruct _", "parent": 712, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 14}}, {"id": 714, "type": "type_identifier", "text": "S_INFO\r\n", "parent": 712, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 23}}, {"id": 715, "type": "field_declaration", "text": "GNER_INFO signerInfo;\r\n", "parent": 712, "children": [716, 717], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 24}}, {"id": 716, "type": "type_identifier", "text": "GNER_INFO s", "parent": 715, "children": [], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 12}}, {"id": 717, "type": "field_identifier", "text": "gnerInfo;\r", "parent": 715, "children": [], "start_point": {"row": 234, "column": 13}, "end_point": {"row": 234, "column": 23}}, {"id": 718, "type": "field_declaration", "text": "ar szTimestamp[MAX_LEN]; ", "parent": 712, "children": [719, 720], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 27}}, {"id": 719, "type": "primitive_type", "text": "ar s", "parent": 718, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 5}}, {"id": 720, "type": "array_declarator", "text": "Timestamp[MAX_LEN]; ", "parent": 718, "children": [721, 722], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 26}}, {"id": 721, "type": "field_identifier", "text": "Timestamp[M", "parent": 720, "children": [], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 17}}, {"id": 722, "type": "identifier", "text": "X_LEN];", "parent": 720, "children": [], "start_point": {"row": 235, "column": 18}, "end_point": {"row": 235, "column": 25}}, {"id": 723, "type": "field_declaration", "text": "ar szTimeStampImprintAlgorithm[MAX_LEN];\r\n", "parent": 712, "children": [724, 725], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 43}}, {"id": 724, "type": "primitive_type", "text": "ar s", "parent": 723, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 5}}, {"id": 725, "type": "array_declarator", "text": "TimeStampImprintAlgorithm[MAX_LEN];\r", "parent": 723, "children": [726, 727], "start_point": {"row": 236, "column": 6}, "end_point": {"row": 236, "column": 42}}, {"id": 726, "type": "field_identifier", "text": "TimeStampImprintAlgorithm[M", "parent": 725, "children": [], "start_point": {"row": 236, "column": 6}, "end_point": {"row": 236, "column": 33}}, {"id": 727, "type": "identifier", "text": "X_LEN];", "parent": 725, "children": [], "start_point": {"row": 236, "column": 34}, "end_point": {"row": 236, "column": 41}}, {"id": 728, "type": "field_declaration", "text": "ar szTimeStampMessageImprint[MAX_LEN];\r\n", "parent": 712, "children": [729, 730], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 41}}, {"id": 729, "type": "primitive_type", "text": "ar s", "parent": 728, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 5}}, {"id": 730, "type": "array_declarator", "text": "TimeStampMessageImprint[MAX_LEN];\r", "parent": 728, "children": [731, 732], "start_point": {"row": 237, "column": 6}, "end_point": {"row": 237, "column": 40}}, {"id": 731, "type": "field_identifier", "text": "TimeStampMessageImprint[M", "parent": 730, "children": [], "start_point": {"row": 237, "column": 6}, "end_point": {"row": 237, "column": 31}}, {"id": 732, "type": "identifier", "text": "X_LEN];", "parent": 730, "children": [], "start_point": {"row": 237, "column": 32}, "end_point": {"row": 237, "column": 39}}, {"id": 733, "type": "field_declaration", "text": "ar szTimeStampSerial[MAX_LEN];\r\n", "parent": 712, "children": [734, 735], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 33}}, {"id": 734, "type": "primitive_type", "text": "ar s", "parent": 733, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 5}}, {"id": 735, "type": "array_declarator", "text": "TimeStampSerial[MAX_LEN];\r", "parent": 733, "children": [736, 737], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 32}}, {"id": 736, "type": "field_identifier", "text": "TimeStampSerial[M", "parent": 735, "children": [], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 23}}, {"id": 737, "type": "identifier", "text": "X_LEN];", "parent": 735, "children": [], "start_point": {"row": 238, "column": 24}, "end_point": {"row": 238, "column": 31}}, {"id": 738, "type": "type_identifier", "text": "_INFO;\r", "parent": 710, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 9}}, {"id": 739, "type": "type_definition", "text": "pedef struct _SIGNER_INFOS \r\n{\r\n\tSIGNER_INFO* pSignerInfo;\r\n\tint nCount;\r\n} SIGNER_INFOS;\r\n", "parent": 0, "children": [740, 741, 752], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 246, "column": 15}}, {"id": 740, "type": "typedef", "text": "pedef s", "parent": 739, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 7}}, {"id": 741, "type": "struct_specifier", "text": "ruct _SIGNER_INFOS \r\n{\r\n\tSIGNER_INFO* pSignerInfo;\r\n\tint nCount;\r\n} S", "parent": 739, "children": [742, 743], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 246, "column": 1}}, {"id": 742, "type": "struct", "text": "ruct _", "parent": 741, "children": [], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 14}}, {"id": 743, "type": "type_identifier", "text": "IGNER_INFOS \r", "parent": 741, "children": [], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 28}}, {"id": 744, "type": "field_declaration", "text": "GNER_INFO* pSignerInfo;\r\n", "parent": 741, "children": [745, 746], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 244, "column": 26}}, {"id": 745, "type": "type_identifier", "text": "GNER_INFO* ", "parent": 744, "children": [], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 244, "column": 12}}, {"id": 746, "type": "pointer_declarator", "text": "pSignerInfo;\r", "parent": 744, "children": [747, 748], "start_point": {"row": 244, "column": 12}, "end_point": {"row": 244, "column": 25}}, {"id": 747, "type": "*", "text": "p", "parent": 746, "children": [], "start_point": {"row": 244, "column": 12}, "end_point": {"row": 244, "column": 13}}, {"id": 748, "type": "field_identifier", "text": "ignerInfo;\r", "parent": 746, "children": [], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 25}}, {"id": 749, "type": "field_declaration", "text": "t nCount;\r\n", "parent": 741, "children": [750, 751], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 12}}, {"id": 750, "type": "primitive_type", "text": "t n", "parent": 749, "children": [], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 4}}, {"id": 751, "type": "field_identifier", "text": "ount;\r", "parent": 749, "children": [], "start_point": {"row": 245, "column": 5}, "end_point": {"row": 245, "column": 11}}, {"id": 752, "type": "type_identifier", "text": "GNER_INFOS;\r", "parent": 739, "children": [], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 14}}, {"id": 753, "type": "type_definition", "text": "pedef struct _VERIFY_INFO\r\n{\r\n\tSIGNER_INFOS* pSignerInfos;\r\n\tTS_INFO* pTSInfo;\r\n\r\n} VERIFY_INFO;\r\n", "parent": 0, "children": [754, 755, 768], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 253, "column": 14}}, {"id": 754, "type": "typedef", "text": "pedef s", "parent": 753, "children": [], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 248, "column": 7}}, {"id": 755, "type": "struct_specifier", "text": "ruct _VERIFY_INFO\r\n{\r\n\tSIGNER_INFOS* pSignerInfos;\r\n\tTS_INFO* pTSInfo;\r\n\r\n} V", "parent": 753, "children": [756, 757], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 253, "column": 1}}, {"id": 756, "type": "struct", "text": "ruct _", "parent": 755, "children": [], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 14}}, {"id": 757, "type": "type_identifier", "text": "ERIFY_INFO\r\n", "parent": 755, "children": [], "start_point": {"row": 248, "column": 15}, "end_point": {"row": 248, "column": 27}}, {"id": 758, "type": "field_declaration", "text": "GNER_INFOS* pSignerInfos;\r\n", "parent": 755, "children": [759, 760], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 28}}, {"id": 759, "type": "type_identifier", "text": "GNER_INFOS* ", "parent": 758, "children": [], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 13}}, {"id": 760, "type": "pointer_declarator", "text": "pSignerInfos;\r", "parent": 758, "children": [761, 762], "start_point": {"row": 250, "column": 13}, "end_point": {"row": 250, "column": 27}}, {"id": 761, "type": "*", "text": "p", "parent": 760, "children": [], "start_point": {"row": 250, "column": 13}, "end_point": {"row": 250, "column": 14}}, {"id": 762, "type": "field_identifier", "text": "ignerInfos;\r", "parent": 760, "children": [], "start_point": {"row": 250, "column": 15}, "end_point": {"row": 250, "column": 27}}, {"id": 763, "type": "field_declaration", "text": "_INFO* pTSInfo;\r\n", "parent": 755, "children": [764, 765], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 18}}, {"id": 764, "type": "type_identifier", "text": "_INFO* ", "parent": 763, "children": [], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 8}}, {"id": 765, "type": "pointer_declarator", "text": "pTSInfo;\r", "parent": 763, "children": [766, 767], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 17}}, {"id": 766, "type": "*", "text": "p", "parent": 765, "children": [], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 9}}, {"id": 767, "type": "field_identifier", "text": "SInfo;\r", "parent": 765, "children": [], "start_point": {"row": 251, "column": 10}, "end_point": {"row": 251, "column": 17}}, {"id": 768, "type": "type_identifier", "text": "RIFY_INFO;\r", "parent": 753, "children": [], "start_point": {"row": 253, "column": 2}, "end_point": {"row": 253, "column": 13}}, {"id": 769, "type": "type_definition", "text": "pedef struct _VERIFY_RESULT\r\n{\r\n\tint nResultType;\r\n\tBOOL bVerifyCRL;\r\n\tVERIFY_INFO verifyInfo;\r\n\tlong nErrorCode;\r\n\tchar szInputFile[MAX_PATH];\r\n\tchar szPlainTextFile[MAX_PATH];\r\n} VERIFY_RESULT;\r\n", "parent": 0, "children": [770, 771, 797], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 263, "column": 16}}, {"id": 770, "type": "typedef", "text": "pedef s", "parent": 769, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 7}}, {"id": 771, "type": "struct_specifier", "text": "ruct _VERIFY_RESULT\r\n{\r\n\tint nResultType;\r\n\tBOOL bVerifyCRL;\r\n\tVERIFY_INFO verifyInfo;\r\n\tlong nErrorCode;\r\n\tchar szInputFile[MAX_PATH];\r\n\tchar szPlainTextFile[MAX_PATH];\r\n} V", "parent": 769, "children": [772, 773], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 263, "column": 1}}, {"id": 772, "type": "struct", "text": "ruct _", "parent": 771, "children": [], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 255, "column": 14}}, {"id": 773, "type": "type_identifier", "text": "ERIFY_RESULT\r\n", "parent": 771, "children": [], "start_point": {"row": 255, "column": 15}, "end_point": {"row": 255, "column": 29}}, {"id": 774, "type": "field_declaration", "text": "t nResultType;\r\n", "parent": 771, "children": [775, 776], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 17}}, {"id": 775, "type": "primitive_type", "text": "t n", "parent": 774, "children": [], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 4}}, {"id": 776, "type": "field_identifier", "text": "esultType;\r", "parent": 774, "children": [], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 16}}, {"id": 777, "type": "field_declaration", "text": "OL bVerifyCRL;\r\n", "parent": 771, "children": [778, 779], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 17}}, {"id": 778, "type": "type_identifier", "text": "OL b", "parent": 777, "children": [], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 5}}, {"id": 779, "type": "field_identifier", "text": "erifyCRL;\r", "parent": 777, "children": [], "start_point": {"row": 258, "column": 6}, "end_point": {"row": 258, "column": 16}}, {"id": 780, "type": "field_declaration", "text": "RIFY_INFO verifyInfo;\r\n", "parent": 771, "children": [781, 782], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 24}}, {"id": 781, "type": "type_identifier", "text": "RIFY_INFO v", "parent": 780, "children": [], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 12}}, {"id": 782, "type": "field_identifier", "text": "rifyInfo;\r", "parent": 780, "children": [], "start_point": {"row": 259, "column": 13}, "end_point": {"row": 259, "column": 23}}, {"id": 783, "type": "field_declaration", "text": "ng nErrorCode;\r\n", "parent": 771, "children": [784, 786], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 17}}, {"id": 784, "type": "sized_type_specifier", "text": "ng n", "parent": 783, "children": [785], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 5}}, {"id": 785, "type": "long", "text": "ng n", "parent": 784, "children": [], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 5}}, {"id": 786, "type": "field_identifier", "text": "rrorCode;\r", "parent": 783, "children": [], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 16}}, {"id": 787, "type": "field_declaration", "text": "ar szInputFile[MAX_PATH];\r\n", "parent": 771, "children": [788, 789], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 28}}, {"id": 788, "type": "primitive_type", "text": "ar s", "parent": 787, "children": [], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 5}}, {"id": 789, "type": "array_declarator", "text": "InputFile[MAX_PATH];\r", "parent": 787, "children": [790, 791], "start_point": {"row": 261, "column": 6}, "end_point": {"row": 261, "column": 27}}, {"id": 790, "type": "field_identifier", "text": "InputFile[M", "parent": 789, "children": [], "start_point": {"row": 261, "column": 6}, "end_point": {"row": 261, "column": 17}}, {"id": 791, "type": "identifier", "text": "X_PATH];", "parent": 789, "children": [], "start_point": {"row": 261, "column": 18}, "end_point": {"row": 261, "column": 26}}, {"id": 792, "type": "field_declaration", "text": "ar szPlainTextFile[MAX_PATH];\r\n", "parent": 771, "children": [793, 794], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 32}}, {"id": 793, "type": "primitive_type", "text": "ar s", "parent": 792, "children": [], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 5}}, {"id": 794, "type": "array_declarator", "text": "PlainTextFile[MAX_PATH];\r", "parent": 792, "children": [795, 796], "start_point": {"row": 262, "column": 6}, "end_point": {"row": 262, "column": 31}}, {"id": 795, "type": "field_identifier", "text": "PlainTextFile[M", "parent": 794, "children": [], "start_point": {"row": 262, "column": 6}, "end_point": {"row": 262, "column": 21}}, {"id": 796, "type": "identifier", "text": "X_PATH];", "parent": 794, "children": [], "start_point": {"row": 262, "column": 22}, "end_point": {"row": 262, "column": 30}}, {"id": 797, "type": "type_identifier", "text": "RIFY_RESULT;\r", "parent": 769, "children": [], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 15}}, {"id": 798, "type": "type_definition", "text": "pedef struct _CERTIFICATE\r\n{\r\n\tchar szLabel[MAX_LEN * 2];\r\n\tchar szCN[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCACN[MAX_LEN * 2];\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n} CERTIFICATE;\r\n", "parent": 0, "children": [799, 800, 849], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 276, "column": 14}}, {"id": 799, "type": "typedef", "text": "pedef s", "parent": 798, "children": [], "start_point": {"row": 266, "column": 0}, "end_point": {"row": 266, "column": 7}}, {"id": 800, "type": "struct_specifier", "text": "ruct _CERTIFICATE\r\n{\r\n\tchar szLabel[MAX_LEN * 2];\r\n\tchar szCN[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCACN[MAX_LEN * 2];\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n} C", "parent": 798, "children": [801, 802], "start_point": {"row": 266, "column": 8}, "end_point": {"row": 276, "column": 1}}, {"id": 801, "type": "struct", "text": "ruct _", "parent": 800, "children": [], "start_point": {"row": 266, "column": 8}, "end_point": {"row": 266, "column": 14}}, {"id": 802, "type": "type_identifier", "text": "ERTIFICATE\r\n", "parent": 800, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 27}}, {"id": 803, "type": "field_declaration", "text": "ar szLabel[MAX_LEN * 2];\r\n", "parent": 800, "children": [804, 805], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 268, "column": 27}}, {"id": 804, "type": "primitive_type", "text": "ar s", "parent": 803, "children": [], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 268, "column": 5}}, {"id": 805, "type": "array_declarator", "text": "Label[MAX_LEN * 2];\r", "parent": 803, "children": [806, 807], "start_point": {"row": 268, "column": 6}, "end_point": {"row": 268, "column": 26}}, {"id": 806, "type": "field_identifier", "text": "Label[M", "parent": 805, "children": [], "start_point": {"row": 268, "column": 6}, "end_point": {"row": 268, "column": 13}}, {"id": 807, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 805, "children": [808, 809], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 25}}, {"id": 808, "type": "identifier", "text": "X_LEN *", "parent": 807, "children": [], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 21}}, {"id": 809, "type": "*", "text": "2", "parent": 807, "children": [], "start_point": {"row": 268, "column": 22}, "end_point": {"row": 268, "column": 23}}, {"id": 810, "type": "field_declaration", "text": "ar szCN[MAX_LEN * 2];\r\n", "parent": 800, "children": [811, 812], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 24}}, {"id": 811, "type": "primitive_type", "text": "ar s", "parent": 810, "children": [], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 5}}, {"id": 812, "type": "array_declarator", "text": "CN[MAX_LEN * 2];\r", "parent": 810, "children": [813, 814], "start_point": {"row": 269, "column": 6}, "end_point": {"row": 269, "column": 23}}, {"id": 813, "type": "field_identifier", "text": "CN[M", "parent": 812, "children": [], "start_point": {"row": 269, "column": 6}, "end_point": {"row": 269, "column": 10}}, {"id": 814, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 812, "children": [815, 816], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 22}}, {"id": 815, "type": "identifier", "text": "X_LEN *", "parent": 814, "children": [], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 18}}, {"id": 816, "type": "*", "text": "2", "parent": 814, "children": [], "start_point": {"row": 269, "column": 19}, "end_point": {"row": 269, "column": 20}}, {"id": 817, "type": "field_declaration", "text": "ar szSN[MAX_LEN * 2];\r\n", "parent": 800, "children": [818, 819], "start_point": {"row": 270, "column": 1}, "end_point": {"row": 270, "column": 24}}, {"id": 818, "type": "primitive_type", "text": "ar s", "parent": 817, "children": [], "start_point": {"row": 270, "column": 1}, "end_point": {"row": 270, "column": 5}}, {"id": 819, "type": "array_declarator", "text": "SN[MAX_LEN * 2];\r", "parent": 817, "children": [820, 821], "start_point": {"row": 270, "column": 6}, "end_point": {"row": 270, "column": 23}}, {"id": 820, "type": "field_identifier", "text": "SN[M", "parent": 819, "children": [], "start_point": {"row": 270, "column": 6}, "end_point": {"row": 270, "column": 10}}, {"id": 821, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 819, "children": [822, 823], "start_point": {"row": 270, "column": 11}, "end_point": {"row": 270, "column": 22}}, {"id": 822, "type": "identifier", "text": "X_LEN *", "parent": 821, "children": [], "start_point": {"row": 270, "column": 11}, "end_point": {"row": 270, "column": 18}}, {"id": 823, "type": "*", "text": "2", "parent": 821, "children": [], "start_point": {"row": 270, "column": 19}, "end_point": {"row": 270, "column": 20}}, {"id": 824, "type": "field_declaration", "text": "ar szCACN[MAX_LEN * 2];\r\n", "parent": 800, "children": [825, 826], "start_point": {"row": 271, "column": 1}, "end_point": {"row": 271, "column": 26}}, {"id": 825, "type": "primitive_type", "text": "ar s", "parent": 824, "children": [], "start_point": {"row": 271, "column": 1}, "end_point": {"row": 271, "column": 5}}, {"id": 826, "type": "array_declarator", "text": "CACN[MAX_LEN * 2];\r", "parent": 824, "children": [827, 828], "start_point": {"row": 271, "column": 6}, "end_point": {"row": 271, "column": 25}}, {"id": 827, "type": "field_identifier", "text": "CACN[M", "parent": 826, "children": [], "start_point": {"row": 271, "column": 6}, "end_point": {"row": 271, "column": 12}}, {"id": 828, "type": "binary_expression", "text": "X_LEN * 2];", "parent": 826, "children": [829, 830], "start_point": {"row": 271, "column": 13}, "end_point": {"row": 271, "column": 24}}, {"id": 829, "type": "identifier", "text": "X_LEN *", "parent": 828, "children": [], "start_point": {"row": 271, "column": 13}, "end_point": {"row": 271, "column": 20}}, {"id": 830, "type": "*", "text": "2", "parent": 828, "children": [], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 22}}, {"id": 831, "type": "field_declaration", "text": "ar szExpiration[MAX_LEN];\r\n", "parent": 800, "children": [832, 833], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 272, "column": 28}}, {"id": 832, "type": "primitive_type", "text": "ar s", "parent": 831, "children": [], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 272, "column": 5}}, {"id": 833, "type": "array_declarator", "text": "Expiration[MAX_LEN];\r", "parent": 831, "children": [834, 835], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 27}}, {"id": 834, "type": "field_identifier", "text": "Expiration[M", "parent": 833, "children": [], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 18}}, {"id": 835, "type": "identifier", "text": "X_LEN];", "parent": 833, "children": [], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 26}}, {"id": 836, "type": "field_declaration", "text": "ar szValidFrom[MAX_LEN];\r\n", "parent": 800, "children": [837, 838], "start_point": {"row": 273, "column": 1}, "end_point": {"row": 273, "column": 27}}, {"id": 837, "type": "primitive_type", "text": "ar s", "parent": 836, "children": [], "start_point": {"row": 273, "column": 1}, "end_point": {"row": 273, "column": 5}}, {"id": 838, "type": "array_declarator", "text": "ValidFrom[MAX_LEN];\r", "parent": 836, "children": [839, 840], "start_point": {"row": 273, "column": 6}, "end_point": {"row": 273, "column": 26}}, {"id": 839, "type": "field_identifier", "text": "ValidFrom[M", "parent": 838, "children": [], "start_point": {"row": 273, "column": 6}, "end_point": {"row": 273, "column": 17}}, {"id": 840, "type": "identifier", "text": "X_LEN];", "parent": 838, "children": [], "start_point": {"row": 273, "column": 18}, "end_point": {"row": 273, "column": 25}}, {"id": 841, "type": "field_declaration", "text": "TE* pCertificate;\r\n", "parent": 800, "children": [842, 843], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 20}}, {"id": 842, "type": "type_identifier", "text": "TE* ", "parent": 841, "children": [], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 5}}, {"id": 843, "type": "pointer_declarator", "text": "pCertificate;\r", "parent": 841, "children": [844, 845], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 19}}, {"id": 844, "type": "*", "text": "p", "parent": 843, "children": [], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 6}}, {"id": 845, "type": "field_identifier", "text": "ertificate;\r", "parent": 843, "children": [], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 19}}, {"id": 846, "type": "field_declaration", "text": "t nCertLen;\r\n", "parent": 800, "children": [847, 848], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 275, "column": 14}}, {"id": 847, "type": "primitive_type", "text": "t n", "parent": 846, "children": [], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 275, "column": 4}}, {"id": 848, "type": "field_identifier", "text": "ertLen;\r", "parent": 846, "children": [], "start_point": {"row": 275, "column": 5}, "end_point": {"row": 275, "column": 13}}, {"id": 849, "type": "type_identifier", "text": "RTIFICATE;\r", "parent": 798, "children": [], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 13}}, {"id": 850, "type": "type_definition", "text": "pedef struct _CERTIFICATES \r\n{\r\n\tCERTIFICATE* pCertificate;\r\n\tint nCount;\r\n} CERTIFICATES;\r\n", "parent": 0, "children": [851, 852, 863], "start_point": {"row": 279, "column": 0}, "end_point": {"row": 283, "column": 15}}, {"id": 851, "type": "typedef", "text": "pedef s", "parent": 850, "children": [], "start_point": {"row": 279, "column": 0}, "end_point": {"row": 279, "column": 7}}, {"id": 852, "type": "struct_specifier", "text": "ruct _CERTIFICATES \r\n{\r\n\tCERTIFICATE* pCertificate;\r\n\tint nCount;\r\n} C", "parent": 850, "children": [853, 854], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 283, "column": 1}}, {"id": 853, "type": "struct", "text": "ruct _", "parent": 852, "children": [], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 279, "column": 14}}, {"id": 854, "type": "type_identifier", "text": "ERTIFICATES \r", "parent": 852, "children": [], "start_point": {"row": 279, "column": 15}, "end_point": {"row": 279, "column": 28}}, {"id": 855, "type": "field_declaration", "text": "RTIFICATE* pCertificate;\r\n", "parent": 852, "children": [856, 857], "start_point": {"row": 281, "column": 1}, "end_point": {"row": 281, "column": 27}}, {"id": 856, "type": "type_identifier", "text": "RTIFICATE* ", "parent": 855, "children": [], "start_point": {"row": 281, "column": 1}, "end_point": {"row": 281, "column": 12}}, {"id": 857, "type": "pointer_declarator", "text": "pCertificate;\r", "parent": 855, "children": [858, 859], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 26}}, {"id": 858, "type": "*", "text": "p", "parent": 857, "children": [], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 13}}, {"id": 859, "type": "field_identifier", "text": "ertificate;\r", "parent": 857, "children": [], "start_point": {"row": 281, "column": 14}, "end_point": {"row": 281, "column": 26}}, {"id": 860, "type": "field_declaration", "text": "t nCount;\r\n", "parent": 852, "children": [861, 862], "start_point": {"row": 282, "column": 1}, "end_point": {"row": 282, "column": 12}}, {"id": 861, "type": "primitive_type", "text": "t n", "parent": 860, "children": [], "start_point": {"row": 282, "column": 1}, "end_point": {"row": 282, "column": 4}}, {"id": 862, "type": "field_identifier", "text": "ount;\r", "parent": 860, "children": [], "start_point": {"row": 282, "column": 5}, "end_point": {"row": 282, "column": 11}}, {"id": 863, "type": "type_identifier", "text": "RTIFICATES;\r", "parent": 850, "children": [], "start_point": {"row": 283, "column": 2}, "end_point": {"row": 283, "column": 14}}, {"id": 864, "type": "type_definition", "text": "pedef void* DISIGON_CTX;\r\n", "parent": 0, "children": [865, 866, 867], "start_point": {"row": 286, "column": 0}, "end_point": {"row": 286, "column": 26}}, {"id": 865, "type": "typedef", "text": "pedef v", "parent": 864, "children": [], "start_point": {"row": 286, "column": 0}, "end_point": {"row": 286, "column": 7}}, {"id": 866, "type": "primitive_type", "text": "id* ", "parent": 864, "children": [], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 12}}, {"id": 867, "type": "pointer_declarator", "text": "DISIGON_CTX;\r", "parent": 864, "children": [868, 869], "start_point": {"row": 286, "column": 12}, "end_point": {"row": 286, "column": 25}}, {"id": 868, "type": "*", "text": "D", "parent": 867, "children": [], "start_point": {"row": 286, "column": 12}, "end_point": {"row": 286, "column": 13}}, {"id": 869, "type": "type_identifier", "text": "SIGON_CTX;\r", "parent": 867, "children": [], "start_point": {"row": 286, "column": 14}, "end_point": {"row": 286, "column": 25}}, {"id": 870, "type": "declaration", "text": "SIGON_API long disigon_set(int option, void* value);\r\n", "parent": 0, "children": [871, 874], "start_point": {"row": 295, "column": 0}, "end_point": {"row": 295, "column": 54}}, {"id": 871, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 870, "children": [872, 873], "start_point": {"row": 295, "column": 0}, "end_point": {"row": 295, "column": 16}}, {"id": 872, "type": "type_identifier", "text": "SIGON_API l", "parent": 871, "children": [], "start_point": {"row": 295, "column": 0}, "end_point": {"row": 295, "column": 11}}, {"id": 873, "type": "long", "text": "ng d", "parent": 871, "children": [], "start_point": {"row": 295, "column": 12}, "end_point": {"row": 295, "column": 16}}, {"id": 874, "type": "function_declarator", "text": "sigon_set(int option, void* value);\r", "parent": 870, "children": [875, 876], "start_point": {"row": 295, "column": 17}, "end_point": {"row": 295, "column": 53}}, {"id": 875, "type": "identifier", "text": "sigon_set(i", "parent": 874, "children": [], "start_point": {"row": 295, "column": 17}, "end_point": {"row": 295, "column": 28}}, {"id": 876, "type": "parameter_list", "text": "nt option, void* value);\r", "parent": 874, "children": [877, 880], "start_point": {"row": 295, "column": 28}, "end_point": {"row": 295, "column": 53}}, {"id": 877, "type": "parameter_declaration", "text": "t option, ", "parent": 876, "children": [878, 879], "start_point": {"row": 295, "column": 29}, "end_point": {"row": 295, "column": 39}}, {"id": 878, "type": "primitive_type", "text": "t o", "parent": 877, "children": [], "start_point": {"row": 295, "column": 29}, "end_point": {"row": 295, "column": 32}}, {"id": 879, "type": "identifier", "text": "tion, ", "parent": 877, "children": [], "start_point": {"row": 295, "column": 33}, "end_point": {"row": 295, "column": 39}}, {"id": 880, "type": "parameter_declaration", "text": "id* value);", "parent": 876, "children": [881, 882], "start_point": {"row": 295, "column": 41}, "end_point": {"row": 295, "column": 52}}, {"id": 881, "type": "primitive_type", "text": "id* ", "parent": 880, "children": [], "start_point": {"row": 295, "column": 41}, "end_point": {"row": 295, "column": 45}}, {"id": 882, "type": "pointer_declarator", "text": "value);", "parent": 880, "children": [883, 884], "start_point": {"row": 295, "column": 45}, "end_point": {"row": 295, "column": 52}}, {"id": 883, "type": "*", "text": "v", "parent": 882, "children": [], "start_point": {"row": 295, "column": 45}, "end_point": {"row": 295, "column": 46}}, {"id": 884, "type": "identifier", "text": "lue);", "parent": 882, "children": [], "start_point": {"row": 295, "column": 47}, "end_point": {"row": 295, "column": 52}}, {"id": 885, "type": "declaration", "text": "SIGON_API long disigon_set_int(int option, int value);\r\n", "parent": 0, "children": [886, 889], "start_point": {"row": 297, "column": 0}, "end_point": {"row": 297, "column": 56}}, {"id": 886, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 885, "children": [887, 888], "start_point": {"row": 297, "column": 0}, "end_point": {"row": 297, "column": 16}}, {"id": 887, "type": "type_identifier", "text": "SIGON_API l", "parent": 886, "children": [], "start_point": {"row": 297, "column": 0}, "end_point": {"row": 297, "column": 11}}, {"id": 888, "type": "long", "text": "ng d", "parent": 886, "children": [], "start_point": {"row": 297, "column": 12}, "end_point": {"row": 297, "column": 16}}, {"id": 889, "type": "function_declarator", "text": "sigon_set_int(int option, int value);\r", "parent": 885, "children": [890, 891], "start_point": {"row": 297, "column": 17}, "end_point": {"row": 297, "column": 55}}, {"id": 890, "type": "identifier", "text": "sigon_set_int(i", "parent": 889, "children": [], "start_point": {"row": 297, "column": 17}, "end_point": {"row": 297, "column": 32}}, {"id": 891, "type": "parameter_list", "text": "nt option, int value);\r", "parent": 889, "children": [892, 895], "start_point": {"row": 297, "column": 32}, "end_point": {"row": 297, "column": 55}}, {"id": 892, "type": "parameter_declaration", "text": "t option, ", "parent": 891, "children": [893, 894], "start_point": {"row": 297, "column": 33}, "end_point": {"row": 297, "column": 43}}, {"id": 893, "type": "primitive_type", "text": "t o", "parent": 892, "children": [], "start_point": {"row": 297, "column": 33}, "end_point": {"row": 297, "column": 36}}, {"id": 894, "type": "identifier", "text": "tion, ", "parent": 892, "children": [], "start_point": {"row": 297, "column": 37}, "end_point": {"row": 297, "column": 43}}, {"id": 895, "type": "parameter_declaration", "text": "t value);", "parent": 891, "children": [896, 897], "start_point": {"row": 297, "column": 45}, "end_point": {"row": 297, "column": 54}}, {"id": 896, "type": "primitive_type", "text": "t v", "parent": 895, "children": [], "start_point": {"row": 297, "column": 45}, "end_point": {"row": 297, "column": 48}}, {"id": 897, "type": "identifier", "text": "lue);", "parent": 895, "children": [], "start_point": {"row": 297, "column": 49}, "end_point": {"row": 297, "column": 54}}, {"id": 898, "type": "declaration", "text": "SIGON_API long disigon_set_string(int option, char* value);\r\n", "parent": 0, "children": [899, 902], "start_point": {"row": 299, "column": 0}, "end_point": {"row": 299, "column": 61}}, {"id": 899, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 898, "children": [900, 901], "start_point": {"row": 299, "column": 0}, "end_point": {"row": 299, "column": 16}}, {"id": 900, "type": "type_identifier", "text": "SIGON_API l", "parent": 899, "children": [], "start_point": {"row": 299, "column": 0}, "end_point": {"row": 299, "column": 11}}, {"id": 901, "type": "long", "text": "ng d", "parent": 899, "children": [], "start_point": {"row": 299, "column": 12}, "end_point": {"row": 299, "column": 16}}, {"id": 902, "type": "function_declarator", "text": "sigon_set_string(int option, char* value);\r", "parent": 898, "children": [903, 904], "start_point": {"row": 299, "column": 17}, "end_point": {"row": 299, "column": 60}}, {"id": 903, "type": "identifier", "text": "sigon_set_string(i", "parent": 902, "children": [], "start_point": {"row": 299, "column": 17}, "end_point": {"row": 299, "column": 35}}, {"id": 904, "type": "parameter_list", "text": "nt option, char* value);\r", "parent": 902, "children": [905, 908], "start_point": {"row": 299, "column": 35}, "end_point": {"row": 299, "column": 60}}, {"id": 905, "type": "parameter_declaration", "text": "t option, ", "parent": 904, "children": [906, 907], "start_point": {"row": 299, "column": 36}, "end_point": {"row": 299, "column": 46}}, {"id": 906, "type": "primitive_type", "text": "t o", "parent": 905, "children": [], "start_point": {"row": 299, "column": 36}, "end_point": {"row": 299, "column": 39}}, {"id": 907, "type": "identifier", "text": "tion, ", "parent": 905, "children": [], "start_point": {"row": 299, "column": 40}, "end_point": {"row": 299, "column": 46}}, {"id": 908, "type": "parameter_declaration", "text": "ar* value);", "parent": 904, "children": [909, 910], "start_point": {"row": 299, "column": 48}, "end_point": {"row": 299, "column": 59}}, {"id": 909, "type": "primitive_type", "text": "ar* ", "parent": 908, "children": [], "start_point": {"row": 299, "column": 48}, "end_point": {"row": 299, "column": 52}}, {"id": 910, "type": "pointer_declarator", "text": "value);", "parent": 908, "children": [911, 912], "start_point": {"row": 299, "column": 52}, "end_point": {"row": 299, "column": 59}}, {"id": 911, "type": "*", "text": "v", "parent": 910, "children": [], "start_point": {"row": 299, "column": 52}, "end_point": {"row": 299, "column": 53}}, {"id": 912, "type": "identifier", "text": "lue);", "parent": 910, "children": [], "start_point": {"row": 299, "column": 54}, "end_point": {"row": 299, "column": 59}}, {"id": 913, "type": "declaration", "text": "SIGON_API void disigon_cleanup();\r\n", "parent": 0, "children": [914, 915, 917], "start_point": {"row": 302, "column": 0}, "end_point": {"row": 302, "column": 35}}, {"id": 914, "type": "type_identifier", "text": "SIGON_API v", "parent": 913, "children": [], "start_point": {"row": 302, "column": 0}, "end_point": {"row": 302, "column": 11}}, {"id": 915, "type": "ERROR", "text": "id d", "parent": 913, "children": [916], "start_point": {"row": 302, "column": 12}, "end_point": {"row": 302, "column": 16}}, {"id": 916, "type": "identifier", "text": "id d", "parent": 915, "children": [], "start_point": {"row": 302, "column": 12}, "end_point": {"row": 302, "column": 16}}, {"id": 917, "type": "function_declarator", "text": "sigon_cleanup();\r", "parent": 913, "children": [918], "start_point": {"row": 302, "column": 17}, "end_point": {"row": 302, "column": 34}}, {"id": 918, "type": "identifier", "text": "sigon_cleanup()", "parent": 917, "children": [], "start_point": {"row": 302, "column": 17}, "end_point": {"row": 302, "column": 32}}, {"id": 919, "type": "declaration", "text": "SIGON_API DISIGON_CTX d", "parent": 0, "children": [920, 921], "start_point": {"row": 308, "column": 0}, "end_point": {"row": 308, "column": 23}}, {"id": 920, "type": "type_identifier", "text": "SIGON_API D", "parent": 919, "children": [], "start_point": {"row": 308, "column": 0}, "end_point": {"row": 308, "column": 11}}, {"id": 921, "type": "identifier", "text": "SIGON_CTX d", "parent": 919, "children": [], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 23}}, {"id": 922, "type": "call_expression", "text": "sigon_sign_init(void);\r", "parent": 0, "children": [923, 924], "start_point": {"row": 308, "column": 24}, "end_point": {"row": 308, "column": 47}}, {"id": 923, "type": "identifier", "text": "sigon_sign_init(v", "parent": 922, "children": [], "start_point": {"row": 308, "column": 24}, "end_point": {"row": 308, "column": 41}}, {"id": 924, "type": "argument_list", "text": "oid);\r", "parent": 922, "children": [925], "start_point": {"row": 308, "column": 41}, "end_point": {"row": 308, "column": 47}}, {"id": 925, "type": "identifier", "text": "id);", "parent": 924, "children": [], "start_point": {"row": 308, "column": 42}, "end_point": {"row": 308, "column": 46}}, {"id": 926, "type": "declaration", "text": "SIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value);\r\n", "parent": 0, "children": [927, 930], "start_point": {"row": 311, "column": 0}, "end_point": {"row": 311, "column": 78}}, {"id": 927, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 926, "children": [928, 929], "start_point": {"row": 311, "column": 0}, "end_point": {"row": 311, "column": 16}}, {"id": 928, "type": "type_identifier", "text": "SIGON_API l", "parent": 927, "children": [], "start_point": {"row": 311, "column": 0}, "end_point": {"row": 311, "column": 11}}, {"id": 929, "type": "long", "text": "ng d", "parent": 927, "children": [], "start_point": {"row": 311, "column": 12}, "end_point": {"row": 311, "column": 16}}, {"id": 930, "type": "function_declarator", "text": "sigon_sign_set_int(DISIGON_CTX ctx, int option, int value);\r", "parent": 926, "children": [931, 932], "start_point": {"row": 311, "column": 17}, "end_point": {"row": 311, "column": 77}}, {"id": 931, "type": "identifier", "text": "sigon_sign_set_int(D", "parent": 930, "children": [], "start_point": {"row": 311, "column": 17}, "end_point": {"row": 311, "column": 37}}, {"id": 932, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, int value);\r", "parent": 930, "children": [933, 936, 939], "start_point": {"row": 311, "column": 37}, "end_point": {"row": 311, "column": 77}}, {"id": 933, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 932, "children": [934, 935], "start_point": {"row": 311, "column": 38}, "end_point": {"row": 311, "column": 53}}, {"id": 934, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 933, "children": [], "start_point": {"row": 311, "column": 38}, "end_point": {"row": 311, "column": 49}}, {"id": 935, "type": "identifier", "text": "x, ", "parent": 933, "children": [], "start_point": {"row": 311, "column": 50}, "end_point": {"row": 311, "column": 53}}, {"id": 936, "type": "parameter_declaration", "text": "t option, ", "parent": 932, "children": [937, 938], "start_point": {"row": 311, "column": 55}, "end_point": {"row": 311, "column": 65}}, {"id": 937, "type": "primitive_type", "text": "t o", "parent": 936, "children": [], "start_point": {"row": 311, "column": 55}, "end_point": {"row": 311, "column": 58}}, {"id": 938, "type": "identifier", "text": "tion, ", "parent": 936, "children": [], "start_point": {"row": 311, "column": 59}, "end_point": {"row": 311, "column": 65}}, {"id": 939, "type": "parameter_declaration", "text": "t value);", "parent": 932, "children": [940, 941], "start_point": {"row": 311, "column": 67}, "end_point": {"row": 311, "column": 76}}, {"id": 940, "type": "primitive_type", "text": "t v", "parent": 939, "children": [], "start_point": {"row": 311, "column": 67}, "end_point": {"row": 311, "column": 70}}, {"id": 941, "type": "identifier", "text": "lue);", "parent": 939, "children": [], "start_point": {"row": 311, "column": 71}, "end_point": {"row": 311, "column": 76}}, {"id": 942, "type": "declaration", "text": "SIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value);\r\n", "parent": 0, "children": [943, 946], "start_point": {"row": 313, "column": 0}, "end_point": {"row": 313, "column": 83}}, {"id": 943, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 942, "children": [944, 945], "start_point": {"row": 313, "column": 0}, "end_point": {"row": 313, "column": 16}}, {"id": 944, "type": "type_identifier", "text": "SIGON_API l", "parent": 943, "children": [], "start_point": {"row": 313, "column": 0}, "end_point": {"row": 313, "column": 11}}, {"id": 945, "type": "long", "text": "ng d", "parent": 943, "children": [], "start_point": {"row": 313, "column": 12}, "end_point": {"row": 313, "column": 16}}, {"id": 946, "type": "function_declarator", "text": "sigon_sign_set_string(DISIGON_CTX ctx, int option, char* value);\r", "parent": 942, "children": [947, 948], "start_point": {"row": 313, "column": 17}, "end_point": {"row": 313, "column": 82}}, {"id": 947, "type": "identifier", "text": "sigon_sign_set_string(D", "parent": 946, "children": [], "start_point": {"row": 313, "column": 17}, "end_point": {"row": 313, "column": 40}}, {"id": 948, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, char* value);\r", "parent": 946, "children": [949, 952, 955], "start_point": {"row": 313, "column": 40}, "end_point": {"row": 313, "column": 82}}, {"id": 949, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 948, "children": [950, 951], "start_point": {"row": 313, "column": 41}, "end_point": {"row": 313, "column": 56}}, {"id": 950, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 949, "children": [], "start_point": {"row": 313, "column": 41}, "end_point": {"row": 313, "column": 52}}, {"id": 951, "type": "identifier", "text": "x, ", "parent": 949, "children": [], "start_point": {"row": 313, "column": 53}, "end_point": {"row": 313, "column": 56}}, {"id": 952, "type": "parameter_declaration", "text": "t option, ", "parent": 948, "children": [953, 954], "start_point": {"row": 313, "column": 58}, "end_point": {"row": 313, "column": 68}}, {"id": 953, "type": "primitive_type", "text": "t o", "parent": 952, "children": [], "start_point": {"row": 313, "column": 58}, "end_point": {"row": 313, "column": 61}}, {"id": 954, "type": "identifier", "text": "tion, ", "parent": 952, "children": [], "start_point": {"row": 313, "column": 62}, "end_point": {"row": 313, "column": 68}}, {"id": 955, "type": "parameter_declaration", "text": "ar* value);", "parent": 948, "children": [956, 957], "start_point": {"row": 313, "column": 70}, "end_point": {"row": 313, "column": 81}}, {"id": 956, "type": "primitive_type", "text": "ar* ", "parent": 955, "children": [], "start_point": {"row": 313, "column": 70}, "end_point": {"row": 313, "column": 74}}, {"id": 957, "type": "pointer_declarator", "text": "value);", "parent": 955, "children": [958, 959], "start_point": {"row": 313, "column": 74}, "end_point": {"row": 313, "column": 81}}, {"id": 958, "type": "*", "text": "v", "parent": 957, "children": [], "start_point": {"row": 313, "column": 74}, "end_point": {"row": 313, "column": 75}}, {"id": 959, "type": "identifier", "text": "lue);", "parent": 957, "children": [], "start_point": {"row": 313, "column": 76}, "end_point": {"row": 313, "column": 81}}, {"id": 960, "type": "declaration", "text": "SIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value);\r\n", "parent": 0, "children": [961, 964], "start_point": {"row": 315, "column": 0}, "end_point": {"row": 315, "column": 76}}, {"id": 961, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 960, "children": [962, 963], "start_point": {"row": 315, "column": 0}, "end_point": {"row": 315, "column": 16}}, {"id": 962, "type": "type_identifier", "text": "SIGON_API l", "parent": 961, "children": [], "start_point": {"row": 315, "column": 0}, "end_point": {"row": 315, "column": 11}}, {"id": 963, "type": "long", "text": "ng d", "parent": 961, "children": [], "start_point": {"row": 315, "column": 12}, "end_point": {"row": 315, "column": 16}}, {"id": 964, "type": "function_declarator", "text": "sigon_sign_set(DISIGON_CTX ctx, int option, void* value);\r", "parent": 960, "children": [965, 966], "start_point": {"row": 315, "column": 17}, "end_point": {"row": 315, "column": 75}}, {"id": 965, "type": "identifier", "text": "sigon_sign_set(D", "parent": 964, "children": [], "start_point": {"row": 315, "column": 17}, "end_point": {"row": 315, "column": 33}}, {"id": 966, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, void* value);\r", "parent": 964, "children": [967, 970, 973], "start_point": {"row": 315, "column": 33}, "end_point": {"row": 315, "column": 75}}, {"id": 967, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 966, "children": [968, 969], "start_point": {"row": 315, "column": 34}, "end_point": {"row": 315, "column": 49}}, {"id": 968, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 967, "children": [], "start_point": {"row": 315, "column": 34}, "end_point": {"row": 315, "column": 45}}, {"id": 969, "type": "identifier", "text": "x, ", "parent": 967, "children": [], "start_point": {"row": 315, "column": 46}, "end_point": {"row": 315, "column": 49}}, {"id": 970, "type": "parameter_declaration", "text": "t option, ", "parent": 966, "children": [971, 972], "start_point": {"row": 315, "column": 51}, "end_point": {"row": 315, "column": 61}}, {"id": 971, "type": "primitive_type", "text": "t o", "parent": 970, "children": [], "start_point": {"row": 315, "column": 51}, "end_point": {"row": 315, "column": 54}}, {"id": 972, "type": "identifier", "text": "tion, ", "parent": 970, "children": [], "start_point": {"row": 315, "column": 55}, "end_point": {"row": 315, "column": 61}}, {"id": 973, "type": "parameter_declaration", "text": "id* value);", "parent": 966, "children": [974, 975], "start_point": {"row": 315, "column": 63}, "end_point": {"row": 315, "column": 74}}, {"id": 974, "type": "primitive_type", "text": "id* ", "parent": 973, "children": [], "start_point": {"row": 315, "column": 63}, "end_point": {"row": 315, "column": 67}}, {"id": 975, "type": "pointer_declarator", "text": "value);", "parent": 973, "children": [976, 977], "start_point": {"row": 315, "column": 67}, "end_point": {"row": 315, "column": 74}}, {"id": 976, "type": "*", "text": "v", "parent": 975, "children": [], "start_point": {"row": 315, "column": 67}, "end_point": {"row": 315, "column": 68}}, {"id": 977, "type": "identifier", "text": "lue);", "parent": 975, "children": [], "start_point": {"row": 315, "column": 69}, "end_point": {"row": 315, "column": 74}}, {"id": 978, "type": "declaration", "text": "SIGON_API long disigon_sign_sign(DISIGON_CTX ctx);\r\n", "parent": 0, "children": [979, 982], "start_point": {"row": 318, "column": 0}, "end_point": {"row": 318, "column": 52}}, {"id": 979, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 978, "children": [980, 981], "start_point": {"row": 318, "column": 0}, "end_point": {"row": 318, "column": 16}}, {"id": 980, "type": "type_identifier", "text": "SIGON_API l", "parent": 979, "children": [], "start_point": {"row": 318, "column": 0}, "end_point": {"row": 318, "column": 11}}, {"id": 981, "type": "long", "text": "ng d", "parent": 979, "children": [], "start_point": {"row": 318, "column": 12}, "end_point": {"row": 318, "column": 16}}, {"id": 982, "type": "function_declarator", "text": "sigon_sign_sign(DISIGON_CTX ctx);\r", "parent": 978, "children": [983, 984], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 51}}, {"id": 983, "type": "identifier", "text": "sigon_sign_sign(D", "parent": 982, "children": [], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 34}}, {"id": 984, "type": "parameter_list", "text": "ISIGON_CTX ctx);\r", "parent": 982, "children": [985], "start_point": {"row": 318, "column": 34}, "end_point": {"row": 318, "column": 51}}, {"id": 985, "type": "parameter_declaration", "text": "SIGON_CTX ctx);", "parent": 984, "children": [986, 987], "start_point": {"row": 318, "column": 35}, "end_point": {"row": 318, "column": 50}}, {"id": 986, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 985, "children": [], "start_point": {"row": 318, "column": 35}, "end_point": {"row": 318, "column": 46}}, {"id": 987, "type": "identifier", "text": "x);", "parent": 985, "children": [], "start_point": {"row": 318, "column": 47}, "end_point": {"row": 318, "column": 50}}, {"id": 988, "type": "declaration", "text": "SIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx);\r\n", "parent": 0, "children": [989, 992], "start_point": {"row": 321, "column": 0}, "end_point": {"row": 321, "column": 55}}, {"id": 989, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 988, "children": [990, 991], "start_point": {"row": 321, "column": 0}, "end_point": {"row": 321, "column": 16}}, {"id": 990, "type": "type_identifier", "text": "SIGON_API l", "parent": 989, "children": [], "start_point": {"row": 321, "column": 0}, "end_point": {"row": 321, "column": 11}}, {"id": 991, "type": "long", "text": "ng d", "parent": 989, "children": [], "start_point": {"row": 321, "column": 12}, "end_point": {"row": 321, "column": 16}}, {"id": 992, "type": "function_declarator", "text": "sigon_sign_cleanup(DISIGON_CTX ctx);\r", "parent": 988, "children": [993, 994], "start_point": {"row": 321, "column": 17}, "end_point": {"row": 321, "column": 54}}, {"id": 993, "type": "identifier", "text": "sigon_sign_cleanup(D", "parent": 992, "children": [], "start_point": {"row": 321, "column": 17}, "end_point": {"row": 321, "column": 37}}, {"id": 994, "type": "parameter_list", "text": "ISIGON_CTX ctx);\r", "parent": 992, "children": [995], "start_point": {"row": 321, "column": 37}, "end_point": {"row": 321, "column": 54}}, {"id": 995, "type": "parameter_declaration", "text": "SIGON_CTX ctx);", "parent": 994, "children": [996, 997], "start_point": {"row": 321, "column": 38}, "end_point": {"row": 321, "column": 53}}, {"id": 996, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 995, "children": [], "start_point": {"row": 321, "column": 38}, "end_point": {"row": 321, "column": 49}}, {"id": 997, "type": "identifier", "text": "x);", "parent": 995, "children": [], "start_point": {"row": 321, "column": 50}, "end_point": {"row": 321, "column": 53}}, {"id": 998, "type": "declaration", "text": "SIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs);\r\n", "parent": 0, "children": [999, 1002], "start_point": {"row": 323, "column": 0}, "end_point": {"row": 323, "column": 84}}, {"id": 999, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 998, "children": [1000, 1001], "start_point": {"row": 323, "column": 0}, "end_point": {"row": 323, "column": 16}}, {"id": 1000, "type": "type_identifier", "text": "SIGON_API l", "parent": 999, "children": [], "start_point": {"row": 323, "column": 0}, "end_point": {"row": 323, "column": 11}}, {"id": 1001, "type": "long", "text": "ng d", "parent": 999, "children": [], "start_point": {"row": 323, "column": 12}, "end_point": {"row": 323, "column": 16}}, {"id": 1002, "type": "function_declarator", "text": "sigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs);\r", "parent": 998, "children": [1003, 1004], "start_point": {"row": 323, "column": 17}, "end_point": {"row": 323, "column": 83}}, {"id": 1003, "type": "identifier", "text": "sigon_sign_getcertificates(D", "parent": 1002, "children": [], "start_point": {"row": 323, "column": 17}, "end_point": {"row": 323, "column": 45}}, {"id": 1004, "type": "parameter_list", "text": "ISIGON_CTX ctx, CERTIFICATES* certs);\r", "parent": 1002, "children": [1005, 1008], "start_point": {"row": 323, "column": 45}, "end_point": {"row": 323, "column": 83}}, {"id": 1005, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 1004, "children": [1006, 1007], "start_point": {"row": 323, "column": 46}, "end_point": {"row": 323, "column": 61}}, {"id": 1006, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1005, "children": [], "start_point": {"row": 323, "column": 46}, "end_point": {"row": 323, "column": 57}}, {"id": 1007, "type": "identifier", "text": "x, ", "parent": 1005, "children": [], "start_point": {"row": 323, "column": 58}, "end_point": {"row": 323, "column": 61}}, {"id": 1008, "type": "parameter_declaration", "text": "RTIFICATES* certs);", "parent": 1004, "children": [1009, 1010], "start_point": {"row": 323, "column": 63}, "end_point": {"row": 323, "column": 82}}, {"id": 1009, "type": "type_identifier", "text": "RTIFICATES* ", "parent": 1008, "children": [], "start_point": {"row": 323, "column": 63}, "end_point": {"row": 323, "column": 75}}, {"id": 1010, "type": "pointer_declarator", "text": "certs);", "parent": 1008, "children": [1011, 1012], "start_point": {"row": 323, "column": 75}, "end_point": {"row": 323, "column": 82}}, {"id": 1011, "type": "*", "text": "c", "parent": 1010, "children": [], "start_point": {"row": 323, "column": 75}, "end_point": {"row": 323, "column": 76}}, {"id": 1012, "type": "identifier", "text": "rts);", "parent": 1010, "children": [], "start_point": {"row": 323, "column": 77}, "end_point": {"row": 323, "column": 82}}, {"id": 1013, "type": "declaration", "text": "SIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs);\r\n", "parent": 0, "children": [1014, 1015, 1017], "start_point": {"row": 325, "column": 0}, "end_point": {"row": 325, "column": 68}}, {"id": 1014, "type": "type_identifier", "text": "SIGON_API v", "parent": 1013, "children": [], "start_point": {"row": 325, "column": 0}, "end_point": {"row": 325, "column": 11}}, {"id": 1015, "type": "ERROR", "text": "id d", "parent": 1013, "children": [1016], "start_point": {"row": 325, "column": 12}, "end_point": {"row": 325, "column": 16}}, {"id": 1016, "type": "identifier", "text": "id d", "parent": 1015, "children": [], "start_point": {"row": 325, "column": 12}, "end_point": {"row": 325, "column": 16}}, {"id": 1017, "type": "function_declarator", "text": "sigon_sign_freecertificates(CERTIFICATES* certs);\r", "parent": 1013, "children": [1018, 1019], "start_point": {"row": 325, "column": 17}, "end_point": {"row": 325, "column": 67}}, {"id": 1018, "type": "identifier", "text": "sigon_sign_freecertificates(C", "parent": 1017, "children": [], "start_point": {"row": 325, "column": 17}, "end_point": {"row": 325, "column": 46}}, {"id": 1019, "type": "parameter_list", "text": "ERTIFICATES* certs);\r", "parent": 1017, "children": [1020], "start_point": {"row": 325, "column": 46}, "end_point": {"row": 325, "column": 67}}, {"id": 1020, "type": "parameter_declaration", "text": "RTIFICATES* certs);", "parent": 1019, "children": [1021, 1022], "start_point": {"row": 325, "column": 47}, "end_point": {"row": 325, "column": 66}}, {"id": 1021, "type": "type_identifier", "text": "RTIFICATES* ", "parent": 1020, "children": [], "start_point": {"row": 325, "column": 47}, "end_point": {"row": 325, "column": 59}}, {"id": 1022, "type": "pointer_declarator", "text": "certs);", "parent": 1020, "children": [1023, 1024], "start_point": {"row": 325, "column": 59}, "end_point": {"row": 325, "column": 66}}, {"id": 1023, "type": "*", "text": "c", "parent": 1022, "children": [], "start_point": {"row": 325, "column": 59}, "end_point": {"row": 325, "column": 60}}, {"id": 1024, "type": "identifier", "text": "rts);", "parent": 1022, "children": [], "start_point": {"row": 325, "column": 61}, "end_point": {"row": 325, "column": 66}}, {"id": 1025, "type": "declaration", "text": "SIGON_API DISIGON_CTX d", "parent": 0, "children": [1026, 1027], "start_point": {"row": 334, "column": 0}, "end_point": {"row": 334, "column": 23}}, {"id": 1026, "type": "type_identifier", "text": "SIGON_API D", "parent": 1025, "children": [], "start_point": {"row": 334, "column": 0}, "end_point": {"row": 334, "column": 11}}, {"id": 1027, "type": "identifier", "text": "SIGON_CTX d", "parent": 1025, "children": [], "start_point": {"row": 334, "column": 12}, "end_point": {"row": 334, "column": 23}}, {"id": 1028, "type": "call_expression", "text": "sigon_verify_init(void);\r", "parent": 0, "children": [1029, 1030], "start_point": {"row": 334, "column": 24}, "end_point": {"row": 334, "column": 49}}, {"id": 1029, "type": "identifier", "text": "sigon_verify_init(v", "parent": 1028, "children": [], "start_point": {"row": 334, "column": 24}, "end_point": {"row": 334, "column": 43}}, {"id": 1030, "type": "argument_list", "text": "oid);\r", "parent": 1028, "children": [1031], "start_point": {"row": 334, "column": 43}, "end_point": {"row": 334, "column": 49}}, {"id": 1031, "type": "identifier", "text": "id);", "parent": 1030, "children": [], "start_point": {"row": 334, "column": 44}, "end_point": {"row": 334, "column": 48}}, {"id": 1032, "type": "declaration", "text": "SIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value);\r\n", "parent": 0, "children": [1033, 1036], "start_point": {"row": 337, "column": 0}, "end_point": {"row": 337, "column": 78}}, {"id": 1033, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1032, "children": [1034, 1035], "start_point": {"row": 337, "column": 0}, "end_point": {"row": 337, "column": 16}}, {"id": 1034, "type": "type_identifier", "text": "SIGON_API l", "parent": 1033, "children": [], "start_point": {"row": 337, "column": 0}, "end_point": {"row": 337, "column": 11}}, {"id": 1035, "type": "long", "text": "ng d", "parent": 1033, "children": [], "start_point": {"row": 337, "column": 12}, "end_point": {"row": 337, "column": 16}}, {"id": 1036, "type": "function_declarator", "text": "sigon_verify_set(DISIGON_CTX ctx, int option, void* value);\r", "parent": 1032, "children": [1037, 1038], "start_point": {"row": 337, "column": 17}, "end_point": {"row": 337, "column": 77}}, {"id": 1037, "type": "identifier", "text": "sigon_verify_set(D", "parent": 1036, "children": [], "start_point": {"row": 337, "column": 17}, "end_point": {"row": 337, "column": 35}}, {"id": 1038, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, void* value);\r", "parent": 1036, "children": [1039, 1042, 1045], "start_point": {"row": 337, "column": 35}, "end_point": {"row": 337, "column": 77}}, {"id": 1039, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 1038, "children": [1040, 1041], "start_point": {"row": 337, "column": 36}, "end_point": {"row": 337, "column": 51}}, {"id": 1040, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1039, "children": [], "start_point": {"row": 337, "column": 36}, "end_point": {"row": 337, "column": 47}}, {"id": 1041, "type": "identifier", "text": "x, ", "parent": 1039, "children": [], "start_point": {"row": 337, "column": 48}, "end_point": {"row": 337, "column": 51}}, {"id": 1042, "type": "parameter_declaration", "text": "t option, ", "parent": 1038, "children": [1043, 1044], "start_point": {"row": 337, "column": 53}, "end_point": {"row": 337, "column": 63}}, {"id": 1043, "type": "primitive_type", "text": "t o", "parent": 1042, "children": [], "start_point": {"row": 337, "column": 53}, "end_point": {"row": 337, "column": 56}}, {"id": 1044, "type": "identifier", "text": "tion, ", "parent": 1042, "children": [], "start_point": {"row": 337, "column": 57}, "end_point": {"row": 337, "column": 63}}, {"id": 1045, "type": "parameter_declaration", "text": "id* value);", "parent": 1038, "children": [1046, 1047], "start_point": {"row": 337, "column": 65}, "end_point": {"row": 337, "column": 76}}, {"id": 1046, "type": "primitive_type", "text": "id* ", "parent": 1045, "children": [], "start_point": {"row": 337, "column": 65}, "end_point": {"row": 337, "column": 69}}, {"id": 1047, "type": "pointer_declarator", "text": "value);", "parent": 1045, "children": [1048, 1049], "start_point": {"row": 337, "column": 69}, "end_point": {"row": 337, "column": 76}}, {"id": 1048, "type": "*", "text": "v", "parent": 1047, "children": [], "start_point": {"row": 337, "column": 69}, "end_point": {"row": 337, "column": 70}}, {"id": 1049, "type": "identifier", "text": "lue);", "parent": 1047, "children": [], "start_point": {"row": 337, "column": 71}, "end_point": {"row": 337, "column": 76}}, {"id": 1050, "type": "declaration", "text": "SIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value);\r\n", "parent": 0, "children": [1051, 1054], "start_point": {"row": 338, "column": 0}, "end_point": {"row": 338, "column": 80}}, {"id": 1051, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1050, "children": [1052, 1053], "start_point": {"row": 338, "column": 0}, "end_point": {"row": 338, "column": 16}}, {"id": 1052, "type": "type_identifier", "text": "SIGON_API l", "parent": 1051, "children": [], "start_point": {"row": 338, "column": 0}, "end_point": {"row": 338, "column": 11}}, {"id": 1053, "type": "long", "text": "ng d", "parent": 1051, "children": [], "start_point": {"row": 338, "column": 12}, "end_point": {"row": 338, "column": 16}}, {"id": 1054, "type": "function_declarator", "text": "sigon_verify_set_int(DISIGON_CTX ctx, int option, int value);\r", "parent": 1050, "children": [1055, 1056], "start_point": {"row": 338, "column": 17}, "end_point": {"row": 338, "column": 79}}, {"id": 1055, "type": "identifier", "text": "sigon_verify_set_int(D", "parent": 1054, "children": [], "start_point": {"row": 338, "column": 17}, "end_point": {"row": 338, "column": 39}}, {"id": 1056, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, int value);\r", "parent": 1054, "children": [1057, 1060, 1063], "start_point": {"row": 338, "column": 39}, "end_point": {"row": 338, "column": 79}}, {"id": 1057, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 1056, "children": [1058, 1059], "start_point": {"row": 338, "column": 40}, "end_point": {"row": 338, "column": 55}}, {"id": 1058, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1057, "children": [], "start_point": {"row": 338, "column": 40}, "end_point": {"row": 338, "column": 51}}, {"id": 1059, "type": "identifier", "text": "x, ", "parent": 1057, "children": [], "start_point": {"row": 338, "column": 52}, "end_point": {"row": 338, "column": 55}}, {"id": 1060, "type": "parameter_declaration", "text": "t option, ", "parent": 1056, "children": [1061, 1062], "start_point": {"row": 338, "column": 57}, "end_point": {"row": 338, "column": 67}}, {"id": 1061, "type": "primitive_type", "text": "t o", "parent": 1060, "children": [], "start_point": {"row": 338, "column": 57}, "end_point": {"row": 338, "column": 60}}, {"id": 1062, "type": "identifier", "text": "tion, ", "parent": 1060, "children": [], "start_point": {"row": 338, "column": 61}, "end_point": {"row": 338, "column": 67}}, {"id": 1063, "type": "parameter_declaration", "text": "t value);", "parent": 1056, "children": [1064, 1065], "start_point": {"row": 338, "column": 69}, "end_point": {"row": 338, "column": 78}}, {"id": 1064, "type": "primitive_type", "text": "t v", "parent": 1063, "children": [], "start_point": {"row": 338, "column": 69}, "end_point": {"row": 338, "column": 72}}, {"id": 1065, "type": "identifier", "text": "lue);", "parent": 1063, "children": [], "start_point": {"row": 338, "column": 73}, "end_point": {"row": 338, "column": 78}}, {"id": 1066, "type": "declaration", "text": "SIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value);\r\n", "parent": 0, "children": [1067, 1070], "start_point": {"row": 339, "column": 0}, "end_point": {"row": 339, "column": 85}}, {"id": 1067, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1066, "children": [1068, 1069], "start_point": {"row": 339, "column": 0}, "end_point": {"row": 339, "column": 16}}, {"id": 1068, "type": "type_identifier", "text": "SIGON_API l", "parent": 1067, "children": [], "start_point": {"row": 339, "column": 0}, "end_point": {"row": 339, "column": 11}}, {"id": 1069, "type": "long", "text": "ng d", "parent": 1067, "children": [], "start_point": {"row": 339, "column": 12}, "end_point": {"row": 339, "column": 16}}, {"id": 1070, "type": "function_declarator", "text": "sigon_verify_set_string(DISIGON_CTX ctx, int option, char* value);\r", "parent": 1066, "children": [1071, 1072], "start_point": {"row": 339, "column": 17}, "end_point": {"row": 339, "column": 84}}, {"id": 1071, "type": "identifier", "text": "sigon_verify_set_string(D", "parent": 1070, "children": [], "start_point": {"row": 339, "column": 17}, "end_point": {"row": 339, "column": 42}}, {"id": 1072, "type": "parameter_list", "text": "ISIGON_CTX ctx, int option, char* value);\r", "parent": 1070, "children": [1073, 1076, 1079], "start_point": {"row": 339, "column": 42}, "end_point": {"row": 339, "column": 84}}, {"id": 1073, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 1072, "children": [1074, 1075], "start_point": {"row": 339, "column": 43}, "end_point": {"row": 339, "column": 58}}, {"id": 1074, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1073, "children": [], "start_point": {"row": 339, "column": 43}, "end_point": {"row": 339, "column": 54}}, {"id": 1075, "type": "identifier", "text": "x, ", "parent": 1073, "children": [], "start_point": {"row": 339, "column": 55}, "end_point": {"row": 339, "column": 58}}, {"id": 1076, "type": "parameter_declaration", "text": "t option, ", "parent": 1072, "children": [1077, 1078], "start_point": {"row": 339, "column": 60}, "end_point": {"row": 339, "column": 70}}, {"id": 1077, "type": "primitive_type", "text": "t o", "parent": 1076, "children": [], "start_point": {"row": 339, "column": 60}, "end_point": {"row": 339, "column": 63}}, {"id": 1078, "type": "identifier", "text": "tion, ", "parent": 1076, "children": [], "start_point": {"row": 339, "column": 64}, "end_point": {"row": 339, "column": 70}}, {"id": 1079, "type": "parameter_declaration", "text": "ar* value);", "parent": 1072, "children": [1080, 1081], "start_point": {"row": 339, "column": 72}, "end_point": {"row": 339, "column": 83}}, {"id": 1080, "type": "primitive_type", "text": "ar* ", "parent": 1079, "children": [], "start_point": {"row": 339, "column": 72}, "end_point": {"row": 339, "column": 76}}, {"id": 1081, "type": "pointer_declarator", "text": "value);", "parent": 1079, "children": [1082, 1083], "start_point": {"row": 339, "column": 76}, "end_point": {"row": 339, "column": 83}}, {"id": 1082, "type": "*", "text": "v", "parent": 1081, "children": [], "start_point": {"row": 339, "column": 76}, "end_point": {"row": 339, "column": 77}}, {"id": 1083, "type": "identifier", "text": "lue);", "parent": 1081, "children": [], "start_point": {"row": 339, "column": 78}, "end_point": {"row": 339, "column": 83}}, {"id": 1084, "type": "declaration", "text": "SIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r\n", "parent": 0, "children": [1085, 1088], "start_point": {"row": 342, "column": 0}, "end_point": {"row": 342, "column": 86}}, {"id": 1085, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1084, "children": [1086, 1087], "start_point": {"row": 342, "column": 0}, "end_point": {"row": 342, "column": 16}}, {"id": 1086, "type": "type_identifier", "text": "SIGON_API l", "parent": 1085, "children": [], "start_point": {"row": 342, "column": 0}, "end_point": {"row": 342, "column": 11}}, {"id": 1087, "type": "long", "text": "ng d", "parent": 1085, "children": [], "start_point": {"row": 342, "column": 12}, "end_point": {"row": 342, "column": 16}}, {"id": 1088, "type": "function_declarator", "text": "sigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r", "parent": 1084, "children": [1089, 1090], "start_point": {"row": 342, "column": 17}, "end_point": {"row": 342, "column": 85}}, {"id": 1089, "type": "identifier", "text": "sigon_verify_verify(D", "parent": 1088, "children": [], "start_point": {"row": 342, "column": 17}, "end_point": {"row": 342, "column": 38}}, {"id": 1090, "type": "parameter_list", "text": "ISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r", "parent": 1088, "children": [1091, 1094], "start_point": {"row": 342, "column": 38}, "end_point": {"row": 342, "column": 85}}, {"id": 1091, "type": "parameter_declaration", "text": "SIGON_CTX ctx, ", "parent": 1090, "children": [1092, 1093], "start_point": {"row": 342, "column": 39}, "end_point": {"row": 342, "column": 54}}, {"id": 1092, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1091, "children": [], "start_point": {"row": 342, "column": 39}, "end_point": {"row": 342, "column": 50}}, {"id": 1093, "type": "identifier", "text": "x, ", "parent": 1091, "children": [], "start_point": {"row": 342, "column": 51}, "end_point": {"row": 342, "column": 54}}, {"id": 1094, "type": "parameter_declaration", "text": "RIFY_RESULT* pVerifyResult);", "parent": 1090, "children": [1095, 1096], "start_point": {"row": 342, "column": 56}, "end_point": {"row": 342, "column": 84}}, {"id": 1095, "type": "type_identifier", "text": "RIFY_RESULT* ", "parent": 1094, "children": [], "start_point": {"row": 342, "column": 56}, "end_point": {"row": 342, "column": 69}}, {"id": 1096, "type": "pointer_declarator", "text": "pVerifyResult);", "parent": 1094, "children": [1097, 1098], "start_point": {"row": 342, "column": 69}, "end_point": {"row": 342, "column": 84}}, {"id": 1097, "type": "*", "text": "p", "parent": 1096, "children": [], "start_point": {"row": 342, "column": 69}, "end_point": {"row": 342, "column": 70}}, {"id": 1098, "type": "identifier", "text": "erifyResult);", "parent": 1096, "children": [], "start_point": {"row": 342, "column": 71}, "end_point": {"row": 342, "column": 84}}, {"id": 1099, "type": "declaration", "text": "SIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult);\r\n", "parent": 0, "children": [1100, 1103], "start_point": {"row": 345, "column": 0}, "end_point": {"row": 345, "column": 77}}, {"id": 1100, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1099, "children": [1101, 1102], "start_point": {"row": 345, "column": 0}, "end_point": {"row": 345, "column": 16}}, {"id": 1101, "type": "type_identifier", "text": "SIGON_API l", "parent": 1100, "children": [], "start_point": {"row": 345, "column": 0}, "end_point": {"row": 345, "column": 11}}, {"id": 1102, "type": "long", "text": "ng d", "parent": 1100, "children": [], "start_point": {"row": 345, "column": 12}, "end_point": {"row": 345, "column": 16}}, {"id": 1103, "type": "function_declarator", "text": "sigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult);\r", "parent": 1099, "children": [1104, 1105], "start_point": {"row": 345, "column": 17}, "end_point": {"row": 345, "column": 76}}, {"id": 1104, "type": "identifier", "text": "sigon_verify_cleanup_result(V", "parent": 1103, "children": [], "start_point": {"row": 345, "column": 17}, "end_point": {"row": 345, "column": 46}}, {"id": 1105, "type": "parameter_list", "text": "ERIFY_RESULT* pVerifyResult);\r", "parent": 1103, "children": [1106], "start_point": {"row": 345, "column": 46}, "end_point": {"row": 345, "column": 76}}, {"id": 1106, "type": "parameter_declaration", "text": "RIFY_RESULT* pVerifyResult);", "parent": 1105, "children": [1107, 1108], "start_point": {"row": 345, "column": 47}, "end_point": {"row": 345, "column": 75}}, {"id": 1107, "type": "type_identifier", "text": "RIFY_RESULT* ", "parent": 1106, "children": [], "start_point": {"row": 345, "column": 47}, "end_point": {"row": 345, "column": 60}}, {"id": 1108, "type": "pointer_declarator", "text": "pVerifyResult);", "parent": 1106, "children": [1109, 1110], "start_point": {"row": 345, "column": 60}, "end_point": {"row": 345, "column": 75}}, {"id": 1109, "type": "*", "text": "p", "parent": 1108, "children": [], "start_point": {"row": 345, "column": 60}, "end_point": {"row": 345, "column": 61}}, {"id": 1110, "type": "identifier", "text": "erifyResult);", "parent": 1108, "children": [], "start_point": {"row": 345, "column": 62}, "end_point": {"row": 345, "column": 75}}, {"id": 1111, "type": "declaration", "text": "SIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx);\r\n", "parent": 0, "children": [1112, 1115], "start_point": {"row": 348, "column": 0}, "end_point": {"row": 348, "column": 57}}, {"id": 1112, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1111, "children": [1113, 1114], "start_point": {"row": 348, "column": 0}, "end_point": {"row": 348, "column": 16}}, {"id": 1113, "type": "type_identifier", "text": "SIGON_API l", "parent": 1112, "children": [], "start_point": {"row": 348, "column": 0}, "end_point": {"row": 348, "column": 11}}, {"id": 1114, "type": "long", "text": "ng d", "parent": 1112, "children": [], "start_point": {"row": 348, "column": 12}, "end_point": {"row": 348, "column": 16}}, {"id": 1115, "type": "function_declarator", "text": "sigon_verify_cleanup(DISIGON_CTX ctx);\r", "parent": 1111, "children": [1116, 1117], "start_point": {"row": 348, "column": 17}, "end_point": {"row": 348, "column": 56}}, {"id": 1116, "type": "identifier", "text": "sigon_verify_cleanup(D", "parent": 1115, "children": [], "start_point": {"row": 348, "column": 17}, "end_point": {"row": 348, "column": 39}}, {"id": 1117, "type": "parameter_list", "text": "ISIGON_CTX ctx);\r", "parent": 1115, "children": [1118], "start_point": {"row": 348, "column": 39}, "end_point": {"row": 348, "column": 56}}, {"id": 1118, "type": "parameter_declaration", "text": "SIGON_CTX ctx);", "parent": 1117, "children": [1119, 1120], "start_point": {"row": 348, "column": 40}, "end_point": {"row": 348, "column": 55}}, {"id": 1119, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1118, "children": [], "start_point": {"row": 348, "column": 40}, "end_point": {"row": 348, "column": 51}}, {"id": 1120, "type": "identifier", "text": "x);", "parent": 1118, "children": [], "start_point": {"row": 348, "column": 52}, "end_point": {"row": 348, "column": 55}}, {"id": 1121, "type": "declaration", "text": "SIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx);\r\n", "parent": 0, "children": [1122, 1125], "start_point": {"row": 351, "column": 0}, "end_point": {"row": 351, "column": 60}}, {"id": 1122, "type": "sized_type_specifier", "text": "SIGON_API long d", "parent": 1121, "children": [1123, 1124], "start_point": {"row": 351, "column": 0}, "end_point": {"row": 351, "column": 16}}, {"id": 1123, "type": "type_identifier", "text": "SIGON_API l", "parent": 1122, "children": [], "start_point": {"row": 351, "column": 0}, "end_point": {"row": 351, "column": 11}}, {"id": 1124, "type": "long", "text": "ng d", "parent": 1122, "children": [], "start_point": {"row": 351, "column": 12}, "end_point": {"row": 351, "column": 16}}, {"id": 1125, "type": "function_declarator", "text": "sigon_get_file_from_p7m(DISIGON_CTX ctx);\r", "parent": 1121, "children": [1126, 1127], "start_point": {"row": 351, "column": 17}, "end_point": {"row": 351, "column": 59}}, {"id": 1126, "type": "identifier", "text": "sigon_get_file_from_p7m(D", "parent": 1125, "children": [], "start_point": {"row": 351, "column": 17}, "end_point": {"row": 351, "column": 42}}, {"id": 1127, "type": "parameter_list", "text": "ISIGON_CTX ctx);\r", "parent": 1125, "children": [1128], "start_point": {"row": 351, "column": 42}, "end_point": {"row": 351, "column": 59}}, {"id": 1128, "type": "parameter_declaration", "text": "SIGON_CTX ctx);", "parent": 1127, "children": [1129, 1130], "start_point": {"row": 351, "column": 43}, "end_point": {"row": 351, "column": 58}}, {"id": 1129, "type": "type_identifier", "text": "SIGON_CTX c", "parent": 1128, "children": [], "start_point": {"row": 351, "column": 43}, "end_point": {"row": 351, "column": 54}}, {"id": 1130, "type": "identifier", "text": "x);", "parent": 1128, "children": [], "start_point": {"row": 351, "column": 55}, "end_point": {"row": 351, "column": 58}}, {"id": 1131, "type": "#endif", "text": "ndif /", "parent": 0, "children": [], "start_point": {"row": 359, "column": 0}, "end_point": {"row": 359, "column": 6}}]}, "node_categories": {"declarations": {"functions": [874, 889, 902, 917, 930, 946, 964, 982, 992, 1002, 1017, 1036, 1054, 1070, 1088, 1103, 1115, 1125], "variables": [567, 572, 575, 580, 585, 588, 594, 599, 606, 613, 620, 627, 634, 641, 648, 651, 656, 661, 665, 670, 675, 680, 683, 688, 691, 696, 701, 706, 710, 715, 718, 723, 728, 733, 739, 744, 749, 753, 758, 763, 769, 774, 777, 780, 783, 787, 792, 798, 803, 810, 817, 824, 831, 836, 841, 846, 850, 855, 860, 864, 870, 877, 880, 885, 892, 895, 898, 905, 908, 913, 919, 926, 933, 936, 939, 942, 949, 952, 955, 960, 967, 970, 973, 978, 985, 988, 995, 998, 1005, 1008, 1013, 1020, 1025, 1032, 1039, 1042, 1045, 1050, 1057, 1060, 1063, 1066, 1073, 1076, 1079, 1084, 1091, 1094, 1099, 1106, 1111, 1118, 1121, 1128], "classes": [569, 570, 596, 597, 712, 713, 741, 742, 755, 756, 771, 772, 800, 801, 852, 853], "imports": [40, 41], "modules": [], "enums": []}, "statements": {"expressions": [603, 610, 617, 624, 631, 638, 807, 814, 821, 828, 922, 1028], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 11, 14, 15, 16, 19, 22, 23, 24, 27, 32, 33, 34, 35, 38, 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, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 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, 557, 561, 565, 571, 574, 578, 583, 587, 591, 593, 598, 602, 604, 609, 611, 616, 618, 623, 625, 630, 632, 637, 639, 647, 650, 654, 655, 659, 660, 662, 664, 668, 669, 673, 674, 678, 679, 681, 682, 684, 687, 690, 695, 697, 700, 705, 708, 709, 714, 716, 717, 721, 722, 726, 727, 731, 732, 736, 737, 738, 743, 745, 748, 751, 752, 757, 759, 762, 764, 767, 768, 773, 776, 778, 779, 781, 782, 784, 786, 790, 791, 795, 796, 797, 802, 806, 808, 813, 815, 820, 822, 827, 829, 834, 835, 839, 840, 842, 845, 848, 849, 854, 856, 859, 862, 863, 869, 871, 872, 875, 879, 884, 886, 887, 890, 894, 897, 899, 900, 903, 907, 912, 914, 916, 918, 920, 921, 923, 925, 927, 928, 931, 934, 935, 938, 941, 943, 944, 947, 950, 951, 954, 959, 961, 962, 965, 968, 969, 972, 977, 979, 980, 983, 986, 987, 989, 990, 993, 996, 997, 999, 1000, 1003, 1006, 1007, 1009, 1012, 1014, 1016, 1018, 1021, 1024, 1026, 1027, 1029, 1031, 1033, 1034, 1037, 1040, 1041, 1044, 1049, 1051, 1052, 1055, 1058, 1059, 1062, 1065, 1067, 1068, 1071, 1074, 1075, 1078, 1083, 1085, 1086, 1089, 1092, 1093, 1095, 1098, 1100, 1101, 1104, 1107, 1110, 1112, 1113, 1116, 1119, 1120, 1122, 1123, 1126, 1129, 1130, 1131], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [42, 579, 584, 592], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 874, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_set(int option, void* value);\r"}, {"node_id": 889, "universal_type": "function", "name": "value);", "text_snippet": "sigon_set_int(int option, int value);\r"}, {"node_id": 902, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_set_string(int option, char* value);\r"}, {"node_id": 917, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_cleanup();\r"}, {"node_id": 930, "universal_type": "function", "name": "option,", "text_snippet": "sigon_sign_set_int(DISIGON_CTX ctx, int option, int value);\r"}, {"node_id": 946, "universal_type": "function", "name": "option,", "text_snippet": "sigon_sign_set_string(DISIGON_CTX ctx, int option, char* value);\r"}, {"node_id": 964, "universal_type": "function", "name": "option,", "text_snippet": "sigon_sign_set(DISIGON_CTX ctx, int option, void* value);\r"}, {"node_id": 982, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_sign_sign(DISIGON_CTX ctx);\r"}, {"node_id": 992, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_sign_cleanup(DISIGON_CTX ctx);\r"}, {"node_id": 1002, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs);\r"}, {"node_id": 1017, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_sign_freecertificates(CERTIFICATES* certs);\r"}, {"node_id": 1036, "universal_type": "function", "name": "option,", "text_snippet": "sigon_verify_set(DISIGON_CTX ctx, int option, void* value);\r"}, {"node_id": 1054, "universal_type": "function", "name": "option,", "text_snippet": "sigon_verify_set_int(DISIGON_CTX ctx, int option, int value);\r"}, {"node_id": 1070, "universal_type": "function", "name": "option,", "text_snippet": "sigon_verify_set_string(DISIGON_CTX ctx, int option, char* value);\r"}, {"node_id": 1088, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r"}, {"node_id": 1103, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult);\r"}, {"node_id": 1115, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_verify_cleanup(DISIGON_CTX ctx);\r"}, {"node_id": 1125, "universal_type": "function", "name": "unknown", "text_snippet": "sigon_get_file_from_p7m(DISIGON_CTX ctx);\r"}], "class_declarations": [{"node_id": 569, "universal_type": "class", "name": "nType;", "text_snippet": "ruct _REVOCATION_INFO\r\n{\r\n\tint nType; // OCSP, CRL\r\n\tchar szExpiration[60];\r\n\tchar szThisUpdate[60]"}, {"node_id": 570, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 596, "universal_type": "class", "name": "nExtensionsCount;", "text_snippet": "ruct _SIGNER_INFO\r\n{\r\n\tchar szCN[MAX_LEN * 2];\r\n char szDN[MAX_LEN * 2];\r\n char szGIVENNAME[MA"}, {"node_id": 597, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 712, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _TS_INFO\r\n{\r\n\tSIGNER_INFO signerInfo;\r\n\tchar szTimestamp[MAX_LEN]; \r\n\tchar szTimeStampImprintA"}, {"node_id": 713, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 741, "universal_type": "class", "name": "nCount;", "text_snippet": "ruct _SIGNER_INFOS \r\n{\r\n\tSIGNER_INFO* pSignerInfo;\r\n\tint nCount;\r\n} S"}, {"node_id": 742, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 755, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _VERIFY_INFO\r\n{\r\n\tSIGNER_INFOS* pSignerInfos;\r\n\tTS_INFO* pTSInfo;\r\n\r\n} V"}, {"node_id": 756, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 771, "universal_type": "class", "name": "nResultType;", "text_snippet": "ruct _VERIFY_RESULT\r\n{\r\n\tint nResultType;\r\n\tBOOL bVerifyCRL;\r\n\tVERIFY_INFO verifyInfo;\r\n\tlong nError"}, {"node_id": 772, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 800, "universal_type": "class", "name": "nCertLen;", "text_snippet": "ruct _CERTIFICATE\r\n{\r\n\tchar szLabel[MAX_LEN * 2];\r\n\tchar szCN[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2]"}, {"node_id": 801, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}, {"node_id": 852, "universal_type": "class", "name": "nCount;", "text_snippet": "ruct _CERTIFICATES \r\n{\r\n\tCERTIFICATE* pCertificate;\r\n\tint nCount;\r\n} C"}, {"node_id": 853, "universal_type": "class", "name": "unknown", "text_snippet": "ruct _"}], "import_statements": [{"node_id": 40, "text": "#include \"definitions.h\"\r\n"}, {"node_id": 41, "text": "#include"}]}, "original_source_code": "\r\n#ifndef __DISIGON_H\r\n#define __DISIGON_H\r\n\r\n#ifndef WIN32\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#ifdef DISIGON_STATIC\r\n#define DISIGON_API\r\n#else\r\n#ifdef DISIGON_EXPORTS\r\n#define DISIGON_API //__declspec(dllexport)\r\n#else\r\n#define DISIGON_API //__declspec(dllimport)\r\n#endif\r\n#endif\r\n#endif\r\n\r\n#define MAX_LEN\t\t\t\t\t\t\t256\r\n\r\n#include \"definitions.h\"\r\n\r\n#define VERIFIED_CERT_VALIDITY\t\t\t0x000001\r\n#define VERIFIED_CERT_REVOKED\t\t\t0x000002\r\n#define VERIFIED_CERT_SUSPENDED\t\t\t0x000004\r\n#define VERIFIED_CERT_GOOD\t\t\t\t0x000008\r\n#define VERIFIED_CERT_SHA256\t\t\t0x000010\r\n#define VERIFIED_CERT_QUALIFIED\t\t\t0x000020\r\n#define VERIFIED_CERT_CHAIN\t\t\t0x000040\r\n\r\n#define VERIFIED_CRL_LOADED\t\t\t\t0x000080\r\n#define VERIFIED_CRL_EXPIRED\t\t\t0x000100\r\n\r\n#define VERIFIED_SIGNED_ATTRIBUTE_CT\t0x000200\r\n#define VERIFIED_SIGNED_ATTRIBUTE_MD 0x000400\r\n#define VERIFIED_SIGNED_ATTRIBUTE_SC 0x000800\r\n\r\n#define VERIFIED_SIGNATURE\t\t\t\t0x001000\r\n#define VERIFIED_SHA256\t\t\t\t\t0x002000\r\n\r\n#define VERIFIED_CACERT_VALIDITY\t\t0x004000\r\n#define VERIFIED_CACERT_REVOKED\t\t\t0x008000\r\n#define VERIFIED_CACERT_SUSPENDED\t\t0x010000\r\n#define VERIFIED_CACERT_GOOD\t\t\t0x020000\r\n#define VERIFIED_CACERT_SIGNATURE\t\t0x040000\r\n#define VERIFIED_CACRL_LOADED\t\t\t0x080000\r\n#define VERIFIED_CACERT_FOUND\t\t\t0x100000\r\n\r\n#define VERIFIED_KEY_USAGE\t\t\t\t0x200000\r\n\r\n// TODO\r\n// certificate store con cache degli esiti delle verifiche dei certificati\r\n// stato revoca e validit\ufffd dei certificati nella chain\r\n\r\n\r\n#define REVOCATION_STATUS_GOOD 0\r\n#define REVOCATION_STATUS_REVOKED 1\r\n#define REVOCATION_STATUS_SUSPENDED 2\r\n#define REVOCATION_STATUS_UNKNOWN 3\r\n#define REVOCATION_STATUS_NOTLOADED 4\r\n\r\n#define DISIGON_OPT_PKCS11\t\t\t\t1\r\n#define DISIGON_OPT_SLOT\t\t\t\t\t2\r\n#define DISIGON_OPT_PIN\t\t\t\t\t3\r\n#define DISIGON_OPT_ALIAS\t\t\t\t4\r\n#define DISIGON_OPT_CADES\t\t\t\t5\r\n#define DISIGON_OPT_XADES\t\t\t\t5\r\n#define DISIGON_OPT_DETACHED\t\t\t\t6\r\n#define DISIGON_OPT_INPUTFILE\t\t\t7\r\n#define DISIGON_OPT_OUTPUTFILE\t\t\t8\r\n#define DISIGON_OPT_INPUTFILE_TYPE\t\t9\r\n#define DISIGON_OPT_TSA_URL\t\t\t\t10\r\n#define DISIGON_OPT_TSA_USERNAME\t\t\t11\r\n#define DISIGON_OPT_TSA_PASSWORD\t\t\t12\r\n#define DISIGON_OPT_VERIFY_REVOCATION\t13\r\n#define DISIGON_OPT_LOG_LEVEL\t\t\t14\r\n#define DISIGON_OPT_LOG_FILE\t\t\t\t15\r\n#define DISIGON_OPT_INPUTFILE_PLAINTEXT\t16\r\n#define DISIGON_OPT_CACERT_DIR\t\t\t17\r\n#define DISIGON_OPT_PDF_SUBFILTER\t\t18\r\n#define DISIGON_OPT_CONFIG_FILE\t\t\t19\r\n#define DISIGON_OPT_PROXY\t\t\t\t20\r\n#define DISIGON_OPT_PROXY_PORT\t\t\t21\r\n#define DISIGON_OPT_PROXY_USRPASS\t\t22\r\n#define DISIGON_OPT_OID_MAP_FILE\t\t\t23\r\n#define DISIGON_OPT_TCP_TIMEOUT\t\t\t24\r\n#define DISIGON_OPT_PDF_REASON\t\t\t25\r\n#define DISIGON_OPT_PDF_NAME\t\t\t\t26\r\n#define DISIGON_OPT_PDF_LOCATION\t\t\t27\r\n#define DISIGON_OPT_PDF_PAGE\t\t\t\t28\r\n#define DISIGON_OPT_PDF_LEFT\t\t\t\t29\r\n#define DISIGON_OPT_PDF_BOTTOM\t\t\t30\r\n#define DISIGON_OPT_PDF_WIDTH\t\t\t31\r\n#define DISIGON_OPT_PDF_HEIGHT\t\t\t32\r\n#define DISIGON_OPT_PDF_IMAGEPATH\t\t\t33\r\n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA\t34\r\n#define DISIGON_OPT_PDF_GRAPHOMETRIC_DATA_VER 35\r\n\r\n#define DISIGON_OPT_ATR_LIST_FILE\t\t36\r\n#define DISIGON_OPT_HASH_ALGO\t\t\t37\r\n\r\n#define DISIGON_OPT_LICENSEE\t\t\t\t38\r\n#define DISIGON_OPT_PRODUCTKEY\t\t\t39\r\n\r\n#define DISIGON_OPT_RS_OTP_PIN\t\t\t40\r\n#define DISIGON_OPT_RS_HSMTYPE\t\t\t41\r\n#define DISIGON_OPT_RS_TYPE_OTP_AUTH\t\t42\r\n#define DISIGON_OPT_RS_USERNAME\t\t\t43\r\n#define DISIGON_OPT_RS_PASSWORD\t\t\t44\r\n#define DISIGON_OPT_RS_CERTID\t\t\t45\r\n#define DISIGON_OPT_RS_SERVICE_URL\t\t46\r\n#define DISIGON_OPT_RS_USER_CODE\t\t\t47\r\n#define DISIGON_OPT_RS_SERVICE_TYPE\t\t48\r\n\r\n#define DISIGON_OPT_PDF_DESCRIPTION\t\t50\r\n#define DISIGON_OPT_PDF_NAME_LABEL\t\t51\r\n#define DISIGON_OPT_PDF_REASON_LABEL\t\t52\r\n#define DISIGON_OPT_PDF_LOCATION_LABEL\t53\r\n\r\n#define DISIGON_OPT_TSL_URL\t\t\t\t60\r\n#define DISIGON_OPT_VERIFY_USER_CERTIFICATE\t61\r\n\r\n#define DISIGON_OPT_P12_FILEPATH\t\t\t70\r\n#define DISIGON_OPT_P12_PASSWORD\t\t\t71\r\n\r\n#define DISIGON_OPT_IAS_INSTANCE 80\r\n\r\n#define DISIGON_PDF_SUBFILTER_PKCS_DETACHED \"adbe.pkcs7.detached\"\r\n#define DISIGON_PDF_SUBFILTER_ETSI_CADES \"ETSI.CAdES.detached\"\r\n\r\n\r\n#define DISIGON_ERROR_BASE\t\t\t0x84000000UL\r\n\r\n\r\n#define DISIGON_ERROR_UNEXPECTED\t\t\tDISIGON_ERROR_BASE + 1\r\n#define DISIGON_ERROR_FILE_NOT_FOUND\t\tDISIGON_ERROR_BASE + 2\r\n#define DISIGON_ERROR_DETACHED_PKCS7\t\tDISIGON_ERROR_BASE + 3\r\n#define DISIGON_ERROR_CERT_REVOKED\t\tDISIGON_ERROR_BASE + 4\r\n#define DISIGON_ERROR_INVALID_FILE\t\tDISIGON_ERROR_BASE + 5\r\n#define DISIGON_ERROR_INVALID_P11\t\tDISIGON_ERROR_BASE + 6\r\n#define DISIGON_ERROR_INVALID_ALIAS\t\tDISIGON_ERROR_BASE + 7\r\n#define DISIGON_ERROR_INVALID_SIGOPT\t\tDISIGON_ERROR_BASE + 8\r\n#define DISIGON_ERROR_ARRS_BASE\t\t\tDISIGON_ERROR_BASE + 0x00100000\r\n#define DISIGON_ERROR_CERT_INVALID\t\tDISIGON_ERROR_BASE + 9\r\n#define DISIGON_ERROR_CERT_EXPIRED\t\tDISIGON_ERROR_BASE + 10\r\n#define DISIGON_ERROR_CACERT_NOTFOUND\tDISIGON_ERROR_BASE + 11\r\n#define DISIGON_ERROR_CERT_NOTFOUND\t\tDISIGON_ERROR_BASE + 12\r\n#define DISIGON_ERROR_CERT_NOT_FOR_SIGNATURE\t\tDISIGON_ERROR_BASE + 13\r\n\r\n#define DISIGON_ERROR_TSL_LOAD\t\t\tDISIGON_ERROR_BASE + 20\r\n#define DISIGON_ERROR_TSL_PARSE\t\t\tDISIGON_ERROR_BASE + 21\r\n#define DISIGON_ERROR_TSL_INVALID\t\tDISIGON_ERROR_BASE + 22\r\n#define DISIGON_ERROR_TSL_CACERTDIR_NOT_SET\t\tDISIGON_ERROR_BASE + 23\r\n#define DISIGON_ERROR_TSA\t\tDISIGON_ERROR_BASE + 30\r\n\r\n#define DISIGON_ERROR_WRONG_PIN DISIGON_ERROR_BASE + 40\r\n#define DISIGON_ERROR_PIN_LOCKED DISIGON_ERROR_BASE + 41\r\n\r\n \r\n#define DISIGON_FILETYPE_PLAINTEXT\t0\r\n#define DISIGON_FILETYPE_P7M\t\t\t1\r\n#define DISIGON_FILETYPE_PDF\t\t\t2\r\n#define DISIGON_FILETYPE_M7M\t\t\t3\r\n#define DISIGON_FILETYPE_TSR\t\t\t4\r\n#define DISIGON_FILETYPE_TST\t\t\t5\r\n#define DISIGON_FILETYPE_TSD\t\t\t6\r\n#define DISIGON_FILETYPE_XML\t\t\t7\r\n#define DISIGON_FILETYPE_AUTO\t\t8\r\n\r\n/*\r\n#define DISIGON_VERIFYTYPE_P7M\t\t1\r\n#define DISIGON_VERIFYTYPE_TSD\t\t2\r\n#define DISIGON_VERIFYTYPE_TST\t\t3\r\n#define DISIGON_VERIFYTYPE_TSR\t\t4\r\n#define DISIGON_VERIFYTYPE_PDF\t\t5\r\n#define DISIGON_VERIFYTYPE_XML\t\t6\r\n#define DISIGON_VERIFYTYPE_M7M 7\r\n*/\r\n#define DISIGON_ALGO_SHA1\t\t\t1\r\n#define DISIGON_ALGO_SHA256\t\t\t2\r\n#define DISIGON_ALGO_SHA512\t\t\t3\r\n#define DISIGON_ALGO_MD5\t\t\t\t4\r\n\r\n#define LOG_TYPE_ERROR\t\t\t1\r\n#define LOG_TYPE_WARNING\t\t2\r\n#define LOG_TYPE_MESSAGE\t\t3\r\n#define LOG_TYPE_DEBUG\t\t\t4 \r\n\r\n#define TYPE_OCSP 1\r\n#define TYPE_CRL 2\r\n\r\n#define DISIGON_RS_SERVICE_TYPE_NONE\t\t\t0\r\n#define DISIGON_RS_SERVICE_TYPE_ARUBA\t\t1\r\n#define DISIGON_RS_SERVICE_TYPE_ITTELECOM\t2\r\n\r\n\r\n\r\ntypedef struct _REVOCATION_INFO\r\n{\r\n\tint nType; // OCSP, CRL\r\n\tchar szExpiration[60];\r\n\tchar szThisUpdate[60];\r\n\tint nRevocationStatus;\r\n\tchar szRevocationDate[60];\r\n} REVOCATION_INFO;\r\n\r\n\r\ntypedef struct _SIGNER_INFO\r\n{\r\n\tchar szCN[MAX_LEN * 2];\r\n char szDN[MAX_LEN * 2];\r\n char szGIVENNAME[MAX_LEN * 2];\r\n char szSURNAME[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCADN[MAX_LEN * 2];\r\n\tchar** pszExtensions;\r\n\tint nExtensionsCount;\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tlong bitmask;\r\n\tchar szDigestAlgorithm[MAX_LEN];\r\n\tchar szSigningTime[MAX_LEN];\r\n\tchar szCertificateV2[MAX_LEN];\r\n\tBOOL b2011Error;\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n\tvoid* pTimeStamp;\r\n\tREVOCATION_INFO* pRevocationInfo;\r\n\tvoid* pCounterSignatures;\r\n\tint nCounterSignatureCount;\r\n} SIGNER_INFO;\r\n\r\ntypedef struct _TS_INFO\r\n{\r\n\tSIGNER_INFO signerInfo;\r\n\tchar szTimestamp[MAX_LEN]; \r\n\tchar szTimeStampImprintAlgorithm[MAX_LEN];\r\n\tchar szTimeStampMessageImprint[MAX_LEN];\r\n\tchar szTimeStampSerial[MAX_LEN];\r\n} TS_INFO;\r\n \r\n\r\ntypedef struct _SIGNER_INFOS \r\n{\r\n\tSIGNER_INFO* pSignerInfo;\r\n\tint nCount;\r\n} SIGNER_INFOS;\r\n\r\ntypedef struct _VERIFY_INFO\r\n{\r\n\tSIGNER_INFOS* pSignerInfos;\r\n\tTS_INFO* pTSInfo;\r\n\r\n} VERIFY_INFO;\r\n\r\ntypedef struct _VERIFY_RESULT\r\n{\r\n\tint nResultType;\r\n\tBOOL bVerifyCRL;\r\n\tVERIFY_INFO verifyInfo;\r\n\tlong nErrorCode;\r\n\tchar szInputFile[MAX_PATH];\r\n\tchar szPlainTextFile[MAX_PATH];\r\n} VERIFY_RESULT;\r\n\r\n\r\ntypedef struct _CERTIFICATE\r\n{\r\n\tchar szLabel[MAX_LEN * 2];\r\n\tchar szCN[MAX_LEN * 2];\r\n\tchar szSN[MAX_LEN * 2];\r\n\tchar szCACN[MAX_LEN * 2];\r\n\tchar szExpiration[MAX_LEN];\r\n\tchar szValidFrom[MAX_LEN];\r\n\tBYTE* pCertificate;\r\n\tint nCertLen;\r\n} CERTIFICATE;\r\n\r\n\r\ntypedef struct _CERTIFICATES \r\n{\r\n\tCERTIFICATE* pCertificate;\r\n\tint nCount;\r\n} CERTIFICATES;\r\n\r\n\r\ntypedef void* DISIGON_CTX;\r\n\r\n/*\r\n#ifdef __cplusplus\r\nextern \"C\" {\r\n#endif\r\n*/\r\n\r\n// Imposta le opzioni generali della libreria\r\nDISIGON_API long disigon_set(int option, void* value);\r\n\r\nDISIGON_API long disigon_set_int(int option, int value);\r\n\r\nDISIGON_API long disigon_set_string(int option, char* value);\r\n\r\n// libera la memoria allocata dalla libreria\r\nDISIGON_API void disigon_cleanup();\r\n\r\n///////////////////////////////////\r\n// Funzioni di firma digitale\r\n\r\n// inizializza la funzione di firma\r\nDISIGON_API DISIGON_CTX disigon_sign_init(void);\r\n\r\n// imposta le opzioni di firma\r\nDISIGON_API long disigon_sign_set_int(DISIGON_CTX ctx, int option, int value);\r\n\r\nDISIGON_API long disigon_sign_set_string(DISIGON_CTX ctx, int option, char* value);\r\n\r\nDISIGON_API long disigon_sign_set(DISIGON_CTX ctx, int option, void* value);\r\n\r\n// esegue la firma secondo le opzioni passate\r\nDISIGON_API long disigon_sign_sign(DISIGON_CTX ctx);\r\n\r\n// libera la memoria allocata nell'operazione di firma\r\nDISIGON_API long disigon_sign_cleanup(DISIGON_CTX ctx);\r\n\r\nDISIGON_API long disigon_sign_getcertificates(DISIGON_CTX ctx, CERTIFICATES* certs);\r\n\r\nDISIGON_API void disigon_sign_freecertificates(CERTIFICATES* certs);\r\n\r\n//\r\n///////////////////////////////////////////\r\n\r\n//////////////////////////////////////////\r\n// Funzioni di verifica della firma\r\n\r\n// inizializza l'operazione di verifica\r\nDISIGON_API DISIGON_CTX disigon_verify_init(void);\r\n\r\n// imposta le opzioni di verifica\r\nDISIGON_API long disigon_verify_set(DISIGON_CTX ctx, int option, void* value);\r\nDISIGON_API long disigon_verify_set_int(DISIGON_CTX ctx, int option, int value);\r\nDISIGON_API long disigon_verify_set_string(DISIGON_CTX ctx, int option, char* value);\r\n\r\n// esegue l'operazione di verifica secondo le opzioni passate\r\nDISIGON_API long disigon_verify_verify(DISIGON_CTX ctx, VERIFY_RESULT* pVerifyResult);\r\n\r\n// libera la memoria allocata per la struttura dei risultati delle verifica\r\nDISIGON_API long disigon_verify_cleanup_result(VERIFY_RESULT* pVerifyResult);\r\n\r\n// libera la memoria allocata nell'operazione di verifica\r\nDISIGON_API long disigon_verify_cleanup(DISIGON_CTX ctx);\r\n\r\n//estra il documento originale da un file p7m\r\nDISIGON_API long disigon_get_file_from_p7m(DISIGON_CTX ctx);\r\n// operazione di sbustamento veloce\r\n\r\n/*\r\n#ifdef __cplusplus\r\n}\r\n#endif\r\n*/\r\n#endif // __DISIGON_H\r\n\r\n"}
113
c
// // RightImageButton.h // MyFitness // // Created by <NAME> on 2018/12/18. // Copyright © 2018 KMZJ. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface RightImageButton : UIControl - (void)setTitle:(NSString*)string; - (void)setImage:(UIImage*)image; - (void)setTitleFont:(UIFont*)font; - (void)setTitleColor:(UIColor*)color; - (void)rotateImageView; - (void)cancelRotateImageView; @end NS_ASSUME_NONNULL_END
23.83
18
(translation_unit) "//\n// RightImageButton.h\n// MyFitness\n//\n// Created by <NAME> on 2018/12/18.\n// Copyright © 2018 KMZJ. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RightImageButton : UIControl\n\n- (void)setTitle:(NSString*)string;\n\n- (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;\n\n- (void)rotateImageView;\n\n- (void)cancelRotateImageView;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// RightImageButton.h" (comment) "// MyFitness" (comment) "//" (comment) "// Created by <NAME> on 2018/12/18." (comment) "// Copyright © 2018 KMZJ. 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) "ightImageButton : UIControl\n\n- (void)setTitle:(NSString*)string;\n" (statement_identifier) "ightImageButton " (ERROR) " UIControl\n\n- (void)setTitle:" (:) " " (binary_expression) "IControl\n\n- (void)setTitle:" (identifier) "IControl\n" (-) " " (cast_expression) "void)setTitle:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etTitle:" (:) "(" (expression_statement) "NSString*)string;\n" (cast_expression) "NSString*)string;" (() "N" (type_descriptor) "SString*)" (type_identifier) "SString*" (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "tring;" (;) "\n" (expression_statement) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;\n" (update_expression) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;" (binary_expression) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;" (binary_expression) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:" (binary_expression) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;" (binary_expression) " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:" (binary_expression) " (void)setImage:(UIImage*)image;" (unary_expression) " (void)setImage:" (-) " " (cast_expression) "void)setImage:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etImage:" (ERROR) "(UIImage*" (:) "(" (() "U" (identifier) "IImage*" (*) ")" (ERROR) "i" ()) "i" (identifier) "mage;" (ERROR) "\n" (;) "\n" (-) " " (cast_expression) "void)setTitleFont:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etTitleFont:" (ERROR) "(UIFont*" (:) "(" (() "U" (identifier) "IFont*" (*) ")" (ERROR) "f" ()) "f" (identifier) "ont;" (ERROR) "\n" (;) "\n" (-) " " (cast_expression) "void)setTitleColor:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etTitleColor:" (ERROR) "(UIColor*" (:) "(" (() "U" (identifier) "IColor*" (*) ")" (ERROR) "c" ()) "c" (identifier) "olor;" (--) "" (;) "\n" (expression_statement) " (void)rotateImageView;\n" (unary_expression) " (void)rotateImageView;" (-) " " (cast_expression) "void)rotateImageView;" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "r" (identifier) "otateImageView;" (;) "\n" (expression_statement) " (void)cancelRotateImageView;\n" (unary_expression) " (void)cancelRotateImageView;" (-) " " (cast_expression) "void)cancelRotateImageView;" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "c" (identifier) "ancelRotateImageView;" (;) "\n" (ERROR) "e" (ERROR) "e" (declaration) "nd\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
126
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.83, "nodes": 75, "errors": 0, "source_hash": "b714348729c48295f35588b42ea9793cd9a957937f841523ade962fd300a457c", "categorized_nodes": 40}, "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": "ightImageButton : UIControl\n\n- (void)setTitle:(NSString*)string;\n", "parent": null, "children": [8, 9], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 14, "column": 35}}, {"id": 8, "type": "statement_identifier", "text": "ightImageButton ", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 27}}, {"id": 9, "type": "ERROR", "text": " UIControl\n\n- (void)setTitle:", "parent": 7, "children": [10], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 14, "column": 16}}, {"id": 10, "type": "binary_expression", "text": "IControl\n\n- (void)setTitle:", "parent": 9, "children": [11, 12, 13], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 14, "column": 16}}, {"id": 11, "type": "identifier", "text": "IControl\n", "parent": 10, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 39}}, {"id": 12, "type": "-", "text": " ", "parent": 10, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 13, "type": "cast_expression", "text": "void)setTitle:", "parent": 10, "children": [14, 16], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 16}}, {"id": 14, "type": "type_descriptor", "text": "oid)", "parent": 13, "children": [15], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 15, "type": "primitive_type", "text": "oid)", "parent": 14, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 16, "type": "identifier", "text": "etTitle:", "parent": 13, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 16}}, {"id": 17, "type": "cast_expression", "text": "NSString*)string;", "parent": 7, "children": [18, 20], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 34}}, {"id": 18, "type": "type_descriptor", "text": "SString*)", "parent": 17, "children": [19], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 27}}, {"id": 19, "type": "type_identifier", "text": "SString*", "parent": 18, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 26}}, {"id": 20, "type": "identifier", "text": "tring;", "parent": 17, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 34}}, {"id": 21, "type": "update_expression", "text": " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;", "parent": null, "children": [22, 57], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 37}}, {"id": 22, "type": "binary_expression", "text": " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;", "parent": 21, "children": [23, 53, 55, 56], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 37}}, {"id": 23, "type": "binary_expression", "text": " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:", "parent": 22, "children": [24, 47, 48, 49], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 20, "column": 21}}, {"id": 24, "type": "binary_expression", "text": " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;", "parent": 23, "children": [25, 43, 45, 46], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 18, "column": 34}}, {"id": 25, "type": "binary_expression", "text": " (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:", "parent": 24, "children": [26, 37, 38, 39], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 18, "column": 20}}, {"id": 26, "type": "binary_expression", "text": " (void)setImage:(UIImage*)image;", "parent": 25, "children": [27, 33, 35, 36], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 32}}, {"id": 27, "type": "unary_expression", "text": " (void)setImage:", "parent": 26, "children": [28, 29], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 16}}, {"id": 28, "type": "-", "text": " ", "parent": 27, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 29, "type": "cast_expression", "text": "void)setImage:", "parent": 27, "children": [30, 32], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 16}}, {"id": 30, "type": "type_descriptor", "text": "oid)", "parent": 29, "children": [31], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 31, "type": "primitive_type", "text": "oid)", "parent": 30, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 32, "type": "identifier", "text": "etImage:", "parent": 29, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 33, "type": "ERROR", "text": "(UIImage*", "parent": 26, "children": [34], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 25}}, {"id": 34, "type": "identifier", "text": "IImage*", "parent": 33, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 25}}, {"id": 35, "type": "ERROR", "text": "i", "parent": 26, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 36, "type": "identifier", "text": "mage;", "parent": 26, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 32}}, {"id": 37, "type": "ERROR", "text": "\n", "parent": 25, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 33}}, {"id": 38, "type": "-", "text": " ", "parent": 25, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 39, "type": "cast_expression", "text": "void)setTitleFont:", "parent": 25, "children": [40, 42], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 20}}, {"id": 40, "type": "type_descriptor", "text": "oid)", "parent": 39, "children": [41], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 41, "type": "primitive_type", "text": "oid)", "parent": 40, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 42, "type": "identifier", "text": "etTitleFont:", "parent": 39, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 20}}, {"id": 43, "type": "ERROR", "text": "(UIFont*", "parent": 24, "children": [44], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 28}}, {"id": 44, "type": "identifier", "text": "IFont*", "parent": 43, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 28}}, {"id": 45, "type": "ERROR", "text": "f", "parent": 24, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 30}}, {"id": 46, "type": "identifier", "text": "ont;", "parent": 24, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 34}}, {"id": 47, "type": "ERROR", "text": "\n", "parent": 23, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 35}}, {"id": 48, "type": "-", "text": " ", "parent": 23, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 49, "type": "cast_expression", "text": "void)setTitleColor:", "parent": 23, "children": [50, 52], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 21}}, {"id": 50, "type": "type_descriptor", "text": "oid)", "parent": 49, "children": [51], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 51, "type": "primitive_type", "text": "oid)", "parent": 50, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 52, "type": "identifier", "text": "etTitleColor:", "parent": 49, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 53, "type": "ERROR", "text": "(UIColor*", "parent": 22, "children": [54], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 30}}, {"id": 54, "type": "identifier", "text": "IColor*", "parent": 53, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 30}}, {"id": 55, "type": "ERROR", "text": "c", "parent": 22, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 32}}, {"id": 56, "type": "identifier", "text": "olor;", "parent": 22, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 37}}, {"id": 57, "type": "--", "text": "", "parent": 21, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 37}}, {"id": 58, "type": "unary_expression", "text": " (void)rotateImageView;", "parent": null, "children": [59, 60], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 23}}, {"id": 59, "type": "-", "text": " ", "parent": 58, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 60, "type": "cast_expression", "text": "void)rotateImageView;", "parent": 58, "children": [61, 63], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 23}}, {"id": 61, "type": "type_descriptor", "text": "oid)", "parent": 60, "children": [62], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 62, "type": "primitive_type", "text": "oid)", "parent": 61, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 63, "type": "identifier", "text": "otateImageView;", "parent": 60, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 23}}, {"id": 64, "type": "unary_expression", "text": " (void)cancelRotateImageView;", "parent": null, "children": [65, 66], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 29}}, {"id": 65, "type": "-", "text": " ", "parent": 64, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 66, "type": "cast_expression", "text": "void)cancelRotateImageView;", "parent": 64, "children": [67, 69], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 29}}, {"id": 67, "type": "type_descriptor", "text": "oid)", "parent": 66, "children": [68], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 68, "type": "primitive_type", "text": "oid)", "parent": 67, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 69, "type": "identifier", "text": "ancelRotateImageView;", "parent": 66, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 29}}, {"id": 70, "type": "ERROR", "text": "e", "parent": null, "children": [71], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 71, "type": "ERROR", "text": "e", "parent": 70, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 72, "type": "declaration", "text": "nd\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [73, 74], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 28, "column": 21}}, {"id": 73, "type": "type_identifier", "text": "nd\n", "parent": 72, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}, {"id": 74, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 72, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 72], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 13, 17, 21, 22, 23, 24, 25, 26, 27, 29, 39, 49, 58, 60, 64, 66], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 11, 16, 19, 20, 32, 34, 36, 42, 44, 46, 52, 54, 56, 63, 69, 73, 74], "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// RightImageButton.h\n// MyFitness\n//\n// Created by <NAME> on 2018/12/18.\n// Copyright \u00a9 2018 KMZJ. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RightImageButton : UIControl\n\n- (void)setTitle:(NSString*)string;\n\n- (void)setImage:(UIImage*)image;\n\n- (void)setTitleFont:(UIFont*)font;\n\n- (void)setTitleColor:(UIColor*)color;\n\n- (void)rotateImageView;\n\n- (void)cancelRotateImageView;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
114
c
#pragma once #include <glm.hpp> #include <vector> #include <Helper.h> #include <iostream> /* An easy way to keep track of what object has moved is once it has moved remove this object and then see if it can be inserted completely into the parent, if not continue up until there is a parent that the object can completely fix inside of. */ using std::cout; using std::endl; static const int OCTREE_MAX_OBJECTS = 5; static const int MAX_DEPTH = 20; struct Octree { Octree() : numberOfObjects(0) { for (int i = 0; i < 8; i++) { childrenIndices[i] = -1; } for (int i = 0; i < OCTREE_MAX_OBJECTS; i++) { treeObjects[i] = -1; } } Octree(glm::vec3 origin, BBox boundingBox, int index) : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index) { for (int i = 0; i < 8; i++) { childrenIndices[i] = -1; } for (int i = 0; i < OCTREE_MAX_OBJECTS; i++) { treeObjects[i] = -1; } } ~Octree() { } inline bool isLeaf() { return childrenIndices[0] == -1; } BBox boundingBox; int childrenIndices[8]; int treeObjects[OCTREE_MAX_OBJECTS]; glm::vec3 origin; int index; int numberOfObjects; void add(Object object, std::vector<Octree> & nodes) { int nodeIndex = index; nodes[nodeIndex].numberOfObjects++; if(nodes[nodeIndex].isLeaf()) { if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS) { int previousSize = nodes.size(); //nodes.reserve(nodes.size() + 8); int j = previousSize; for (int i = 0; i < 8; i++) { glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min); octantHalfDimension /= 2.0f; octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f); octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f); octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f); glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension; BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f}; glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f; Octree o(newOrigin,box,previousSize + i); //cout<< "Push Back" << endl; nodes.push_back(o); nodes[nodeIndex].childrenIndices[i] = previousSize + i; //cout<< "If Collision" << endl; if(objectBoxCollided(nodes[previousSize + i].boundingBox,object)) { //cout<< "Add Object" << endl; nodes[previousSize + i].addObject(object); } } } else { nodes[nodeIndex].treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index; } } else { for (int i = 0; i < 8; i++) { if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object)) { nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes); } } } } void addObject(Object o) { treeObjects[numberOfObjects++] = o.index; } void add(const std::vector<Object> & objects , std::vector<Octree> & nodes) { for (int i = 0; i < objects.size(); i++) { add(objects[i], nodes); } } }; struct OctreeManager { OctreeManager(Octree root) //: root(root) { octreeNodes.push_back(root); } //Octree root; std::vector<Octree> octreeNodes; void insert(const std::vector<Object> & objects ) { for (int i = 0; i < objects.size(); i++) { octreeNodes[0].add(objects[i],octreeNodes); } } };
25.31
132
(translation_unit) "#pragma once\n#include <glm.hpp>\n\n#include <vector>\n#include <Helper.h>\n#include <iostream>\n\n\n/*\nAn easy way to keep track of what object has moved is once it has moved remove this object and then see if it can be inserted completely into the parent,\nif not continue up until there is a parent that the object can completely fix inside of.\n\n*/\n\nusing std::cout;\nusing std::endl;\n\nstatic const int OCTREE_MAX_OBJECTS = 5;\nstatic const int MAX_DEPTH = 20;\nstruct Octree\n{\n\n Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n {\n int previousSize = nodes.size();\n //nodes.reserve(nodes.size() + 8);\n\n int j = previousSize;\n for (int i = 0; i < 8; i++)\n {\n\n glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n octantHalfDimension /= 2.0f;\n \n octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n Octree o(newOrigin,box,previousSize + i);\n //cout<< "Push Back" << endl; \n nodes.push_back(o);\n nodes[nodeIndex].childrenIndices[i] = previousSize + i;\n //cout<< "If Collision" << endl; \n\n if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {\n //cout<< "Add Object" << endl; \n\n nodes[previousSize + i].addObject(object);\n }\n }\n\n }\n else\n {\n\n nodes[nodeIndex].treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index;\n }\n }\n else\n {\n for (int i = 0; i < 8; i++)\n {\n if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n {\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }\n }\n }\n }\n\n void addObject(Object o)\n {\n treeObjects[numberOfObjects++] = o.index;\n }\n\n void add(const std::vector<Object> & objects , std::vector<Octree> & nodes)\n {\n\n for (int i = 0; i < objects.size(); i++)\n {\n add(objects[i], nodes);\n }\n }\n\n};\n\nstruct OctreeManager\n{\n OctreeManager(Octree root) //: root(root)\n {\n octreeNodes.push_back(root);\n }\n\n //Octree root;\n std::vector<Octree> octreeNodes;\n void insert(const std::vector<Object> & objects )\n {\n for (int i = 0; i < objects.size(); i++)\n {\n octreeNodes[0].add(objects[i],octreeNodes);\n } \n }\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <glm.hpp>\n" (#include) "#include" (system_lib_string) "<glm.hpp>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <Helper.h>\n" (#include) "#include" (system_lib_string) "<Helper.h>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (comment) "/*\nAn easy way to keep track of what object has moved is once it has moved remove this object and then see if it can be inserted completely into the parent,\nif not continue up until there is a parent that the object can completely fix inside of.\n\n*/" (declaration) "using std::cout;" (type_identifier) "using" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "cout" (;) ";" (declaration) "using std::endl;" (type_identifier) "using" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "endl" (;) ";" (declaration) "static const int OCTREE_MAX_OBJECTS = 5;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "OCTREE_MAX_OBJECTS = 5" (identifier) "OCTREE_MAX_OBJECTS" (=) "=" (number_literal) "5" (;) ";" (declaration) "static const int MAX_DEPTH = 20;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "MAX_DEPTH = 20" (identifier) "MAX_DEPTH" (=) "=" (number_literal) "20" (;) ";" (declaration) "struct Octree\n{\n\n Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n {\n int previousSize = nodes.size();\n //nodes.reserve(nodes.size() + 8);\n\n int j = previousSize;\n for (int i = 0; i < 8; i++)\n {\n\n glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n octantHalfDimension /= 2.0f;\n \n octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n Octree o(newOrigin,box,previousSize + i);\n //cout<< "Push Back" << endl; \n nodes.push_back(o);\n nodes[nodeIndex].childrenIndices[i] = previousSize + i;\n //cout<< "If Collision" << endl; \n\n if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {\n //cout<< "Add Object" << endl; \n\n nodes[previousSize + i].addObject(object);\n }\n }\n\n }\n else\n {\n\n nodes[nodeIndex].treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index;" (struct_specifier) "struct Octree\n{\n\n Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n {\n int previousSize = nodes.size();\n //nodes.reserve(nodes.size() + 8);\n\n int j = previousSize;\n for (int i = 0; i < 8; i++)\n {\n\n glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n octantHalfDimension /= 2.0f;\n \n octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n Octree o(newOrigin,box,previousSize + i);\n //cout<< "Push Back" << endl; \n nodes.push_back(o);\n nodes[nodeIndex].childrenIndices[i] = previousSize + i;\n //cout<< "If Collision" << endl; \n\n if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {\n //cout<< "Add Object" << endl; \n\n nodes[previousSize + i].addObject(object);\n }" (struct) "struct" (type_identifier) "Octree" (field_declaration_list) "{\n\n Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n {\n int previousSize = nodes.size();\n //nodes.reserve(nodes.size() + 8);\n\n int j = previousSize;\n for (int i = 0; i < 8; i++)\n {\n\n glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n octantHalfDimension /= 2.0f;\n \n octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n Octree o(newOrigin,box,previousSize + i);\n //cout<< "Push Back" << endl; \n nodes.push_back(o);\n nodes[nodeIndex].childrenIndices[i] = previousSize + i;\n //cout<< "If Collision" << endl; \n\n if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {\n //cout<< "Add Object" << endl; \n\n nodes[previousSize + i].addObject(object);\n }" ({) "{" (field_declaration) "Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n {\n int previousSize = nodes.size();" (macro_type_specifier) "Octree() : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)" (identifier) "Octree" (() "(" (ERROR) ") : numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n Octree(glm::vec3 origin, BBox boundingBox, int index)\n : origin(origin), boundingBox(boundingBox)," ()) ")" (:) ":" (type_descriptor) "numberOfObjects(0)\n {\n for (int i = 0; i < 8; i++)" (type_identifier) "numberOfObjects" (ERROR) "(0)\n {\n for" (() "(" (number_literal) "0" ()) ")" ({) "{" (for) "for" (abstract_function_declarator) "(int i = 0; i < 8; i++)" (parameter_list) "(int i = 0; i < 8; i++)" (() "(" (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" (ERROR) "= 0; i < 8; i++" (=) "=" (number_literal) "0" (;) ";" (identifier) "i" (<) "<" (number_literal) "8" (;) ";" (identifier) "i" (++) "++" ()) ")" ({) "{" (type_descriptor) "childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (type_identifier) "childrenIndices" (abstract_function_declarator) "[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (abstract_array_declarator) "[i]" ([) "[" (identifier) "i" (]) "]" (ERROR) "= -1;\n }\n for" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (for) "for" (parameter_list) "(int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (() "(" (parameter_declaration) "int i = 0; i < OCTREE_MAX_OBJECTS; i" (primitive_type) "int" (ERROR) "i = 0; i < OCTREE_MAX_OBJECTS;" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (identifier) "i" (<) "<" (identifier) "OCTREE_MAX_OBJECTS" (;) ";" (identifier) "i" (ERROR) "++" (++) "++" ()) ")" ({) "{" (type_descriptor) "treeObjects[i]" (type_identifier) "treeObjects" (abstract_array_declarator) "[i]" ([) "[" (identifier) "i" (]) "]" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (}) "}" (type_descriptor) "Octree(glm::vec3 origin, BBox boundingBox, int index)" (macro_type_specifier) "Octree(glm::vec3 origin, BBox boundingBox, int index)" (identifier) "Octree" (() "(" (ERROR) "glm::vec3 origin, BBox boundingBox, int" (type_descriptor) "glm" (type_identifier) "glm" (:) ":" (:) ":" (type_identifier) "vec3" (type_descriptor) "origin" (type_identifier) "origin" (,) "," (type_identifier) "BBox" (type_descriptor) "boundingBox" (type_identifier) "boundingBox" (,) "," (primitive_type) "int" (type_descriptor) "index" (type_identifier) "index" ()) ")" (:) ":" (type_descriptor) "origin(origin)" (type_identifier) "origin" (abstract_function_declarator) "(origin)" (parameter_list) "(origin)" (() "(" (parameter_declaration) "origin" (type_identifier) "origin" ()) ")" (,) "," (type_descriptor) "boundingBox(boundingBox)" (type_identifier) "boundingBox" (abstract_function_declarator) "(boundingBox)" (parameter_list) "(boundingBox)" (() "(" (parameter_declaration) "boundingBox" (type_identifier) "boundingBox" ()) ")" (,) "," (type_descriptor) "numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())\n {\n if(nodes[nodeIndex]" (macro_type_specifier) "numberOfObjects(0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex].isLeaf())" (identifier) "numberOfObjects" (() "(" (ERROR) "0), index(index)\n {\n for (int i = 0; i < 8; i++)\n {\n childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n {\n treeObjects[i] = -1;\n }\n }\n\n ~Octree()\n {\n\n }\n\n inline bool isLeaf()\n {\n return childrenIndices[0] == -1;\n }\n \n BBox boundingBox;\n int childrenIndices[8];\n int treeObjects[OCTREE_MAX_OBJECTS];\n glm::vec3 origin;\n int index;\n int numberOfObjects;\n\n\n\n void add(Object object, std::vector<Octree> & nodes)\n {\n int nodeIndex = index;\n nodes[nodeIndex].numberOfObjects++;\n if(nodes[nodeIndex]." (number_literal) "0" ()) ")" (,) "," (type_descriptor) "index(index)\n {\n for (int i = 0; i < 8; i++)" (macro_type_specifier) "index(index)" (identifier) "index" (() "(" (type_descriptor) "index" (type_identifier) "index" ()) ")" (ERROR) "{\n for" ({) "{" (for) "for" (abstract_function_declarator) "(int i = 0; i < 8; i++)" (parameter_list) "(int i = 0; i < 8; i++)" (() "(" (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" (ERROR) "= 0; i < 8; i++" (=) "=" (number_literal) "0" (;) ";" (identifier) "i" (<) "<" (number_literal) "8" (;) ";" (identifier) "i" (++) "++" ()) ")" ({) "{" (type_descriptor) "childrenIndices[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (type_identifier) "childrenIndices" (abstract_function_declarator) "[i] = -1;\n }\n for (int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (abstract_array_declarator) "[i]" ([) "[" (identifier) "i" (]) "]" (ERROR) "= -1;\n }\n for" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (for) "for" (parameter_list) "(int i = 0; i < OCTREE_MAX_OBJECTS; i++)" (() "(" (parameter_declaration) "int i = 0; i < OCTREE_MAX_OBJECTS; i" (primitive_type) "int" (ERROR) "i = 0; i < OCTREE_MAX_OBJECTS;" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (identifier) "i" (<) "<" (identifier) "OCTREE_MAX_OBJECTS" (;) ";" (identifier) "i" (ERROR) "++" (++) "++" ()) ")" ({) "{" (type_descriptor) "treeObjects[i]" (type_identifier) "treeObjects" (abstract_array_declarator) "[i]" ([) "[" (identifier) "i" (]) "]" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (}) "}" (~) "~" (type_descriptor) "Octree()" (type_identifier) "Octree" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ({) "{" (}) "}" (inline) "inline" (primitive_type) "bool" (type_descriptor) "isLeaf()" (type_identifier) "isLeaf" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ({) "{" (return) "return" (type_descriptor) "childrenIndices[0]" (type_identifier) "childrenIndices" (abstract_array_declarator) "[0]" ([) "[" (number_literal) "0" (]) "]" (==) "==" (number_literal) "-1" (;) ";" (}) "}" (type_identifier) "BBox" (identifier) "boundingBox" (;) ";" (primitive_type) "int" (type_descriptor) "childrenIndices[8]" (type_identifier) "childrenIndices" (abstract_array_declarator) "[8]" ([) "[" (number_literal) "8" (]) "]" (;) ";" (primitive_type) "int" (type_descriptor) "treeObjects[OCTREE_MAX_OBJECTS]" (type_identifier) "treeObjects" (abstract_array_declarator) "[OCTREE_MAX_OBJECTS]" ([) "[" (identifier) "OCTREE_MAX_OBJECTS" (]) "]" (;) ";" (type_descriptor) "glm" (type_identifier) "glm" (:) ":" (:) ":" (type_identifier) "vec3" (type_identifier) "origin" (;) ";" (primitive_type) "int" (identifier) "index" (;) ";" (primitive_type) "int" (identifier) "numberOfObjects" (;) ";" (primitive_type) "void" (type_descriptor) "add(Object object, std::vector<Octree> & nodes)" (type_identifier) "add" (abstract_function_declarator) "(Object object, std::vector<Octree> & nodes)" (parameter_list) "(Object object, std::vector<Octree> & nodes)" (() "(" (parameter_declaration) "Object object" (type_identifier) "Object" (identifier) "object" (,) "," (parameter_declaration) "std::vector<Octree> & nodes" (type_identifier) "std" (ERROR) "::vector<Octree> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Octree" (>) ">" (&) "&" (identifier) "nodes" ()) ")" ({) "{" (primitive_type) "int" (identifier) "nodeIndex" (=) "=" (type_identifier) "index" (;) ";" (type_descriptor) "nodes[nodeIndex]" (type_identifier) "nodes" (abstract_array_declarator) "[nodeIndex]" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (type_descriptor) "numberOfObjects++;\n if(nodes[nodeIndex]" (type_identifier) "numberOfObjects" (ERROR) "++;\n if(nodes" (++) "++" (;) ";" (if) "if" (() "(" (identifier) "nodes" (abstract_array_declarator) "[nodeIndex]" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (type_descriptor) "isLeaf()" (type_identifier) "isLeaf" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ()) ")" (ERROR) "{\n if(nodes" ({) "{" (if) "if" (() "(" (identifier) "nodes" (abstract_array_declarator) "[nodeIndex]" ([) "[" (identifier) "nodeIndex" (]) "]" (ERROR) ".numberOfObjects-1 >= OCTREE_MAX_OBJECTS" (.) "." (identifier) "numberOfObjects" (number_literal) "-1" (>=) ">=" (identifier) "OCTREE_MAX_OBJECTS" ()) ")" (ERROR) "{\n int previousSize = nodes." ({) "{" (primitive_type) "int" (field_identifier) "previousSize" (=) "=" (field_identifier) "nodes" (.) "." (function_declarator) "size()" (field_identifier) "size" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "//nodes.reserve(nodes.size() + 8);" (field_declaration) "int j = previousSize;" (primitive_type) "int" (ERROR) "j =" (field_identifier) "j" (=) "=" (field_identifier) "previousSize" (;) ";" (field_declaration) "for (int i = 0; i < 8; i++)\n {\n\n glm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);" (macro_type_specifier) "for (int i = 0; i < 8; i++)" (identifier) "for" (() "(" (type_descriptor) "int" (primitive_type) "int" (ERROR) "i = 0; i < 8; i++" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (identifier) "i" (<) "<" (number_literal) "8" (;) ";" (identifier) "i" (++) "++" ()) ")" (ERROR) "{" ({) "{" (field_identifier) "glm" (bitfield_clause) "::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)" (:) ":" (ERROR) ":vec3 octantHalfDimension = glm::" (:) ":" (identifier) "vec3" (assignment_expression) "octantHalfDimension = glm" (identifier) "octantHalfDimension" (=) "=" (identifier) "glm" (:) ":" (:) ":" (call_expression) "abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)" (identifier) "abs" (argument_list) "(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)" (() "(" (binary_expression) "nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min" (field_expression) "nodes[nodeIndex].boundingBox.max" (field_expression) "nodes[nodeIndex].boundingBox" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "boundingBox" (.) "." (field_identifier) "max" (-) "-" (field_expression) "nodes[nodeIndex].boundingBox.min" (field_expression) "nodes[nodeIndex].boundingBox" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "boundingBox" (.) "." (field_identifier) "min" ()) ")" (;) ";" (field_declaration) "octantHalfDimension /= 2.0f;" (type_identifier) "octantHalfDimension" (ERROR) "/= 2.0f" (/=) "/=" (number_literal) "2.0f" (;) ";" (field_declaration) "octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);" (type_identifier) "octantHalfDimension" (ERROR) ".x = octantHalfDimension.x" (.) "." (field_identifier) "x" (=) "=" (field_identifier) "octantHalfDimension" (.) "." (field_identifier) "x" (pointer_declarator) "* (i&4 ? 1.0f : -1.0f)" (*) "*" (parenthesized_declarator) "(i&4 ? 1.0f : -1.0f)" (() "(" (field_identifier) "i" (ERROR) "&4 ? 1.0f : -1.0f" (&) "&" (number_literal) "4" (?) "?" (number_literal) "1.0f" (:) ":" (number_literal) "-1.0f" ()) ")" (;) ";" (field_declaration) "octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);" (type_identifier) "octantHalfDimension" (ERROR) ".y = octantHalfDimension.y" (.) "." (field_identifier) "y" (=) "=" (field_identifier) "octantHalfDimension" (.) "." (field_identifier) "y" (pointer_declarator) "* (i&2 ? 1.0f : -1.0f)" (*) "*" (parenthesized_declarator) "(i&2 ? 1.0f : -1.0f)" (() "(" (field_identifier) "i" (ERROR) "&2 ? 1.0f : -1.0f" (&) "&" (number_literal) "2" (?) "?" (number_literal) "1.0f" (:) ":" (number_literal) "-1.0f" ()) ")" (;) ";" (field_declaration) "octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);" (type_identifier) "octantHalfDimension" (ERROR) ".z = octantHalfDimension.z" (.) "." (field_identifier) "z" (=) "=" (field_identifier) "octantHalfDimension" (.) "." (field_identifier) "z" (pointer_declarator) "* (i&1 ? 1.0f : -1.0f)" (*) "*" (parenthesized_declarator) "(i&1 ? 1.0f : -1.0f)" (() "(" (field_identifier) "i" (ERROR) "&1 ? 1.0f : -1.0f" (&) "&" (number_literal) "1" (?) "?" (number_literal) "1.0f" (:) ":" (number_literal) "-1.0f" ()) ")" (;) ";" (field_declaration) "glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;" (type_identifier) "glm" (ERROR) "::vec3 newBoxDimension = nodes[nodeIndex].origin +" (:) ":" (:) ":" (field_identifier) "vec3" (field_identifier) "newBoxDimension" (=) "=" (array_declarator) "nodes[nodeIndex]" (field_identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "origin" (+) "+" (field_identifier) "octantHalfDimension" (;) ";" (field_declaration) "BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n glm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;" (type_identifier) "BBox" (field_identifier) "box" (ERROR) "= {glm:" (=) "=" ({) "{" (identifier) "glm" (:) ":" (bitfield_clause) ":min(nodes[nodeIndex].origin,newBoxDimension)" (:) ":" (call_expression) "min(nodes[nodeIndex].origin,newBoxDimension)" (identifier) "min" (argument_list) "(nodes[nodeIndex].origin,newBoxDimension)" (() "(" (field_expression) "nodes[nodeIndex].origin" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "origin" (,) "," (identifier) "newBoxDimension" ()) ")" (ERROR) ",0.0f" (,) "," (number_literal) "0.0f" (,) "," (field_identifier) "glm" (ERROR) ":" (:) ":" (bitfield_clause) ":max(nodes[nodeIndex].origin,newBoxDimension)" (:) ":" (call_expression) "max(nodes[nodeIndex].origin,newBoxDimension)" (identifier) "max" (argument_list) "(nodes[nodeIndex].origin,newBoxDimension)" (() "(" (field_expression) "nodes[nodeIndex].origin" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "origin" (,) "," (identifier) "newBoxDimension" ()) ")" (,) "," (ERROR) "0.0f};" (number_literal) "0.0f" (}) "}" (;) ";" (field_identifier) "glm" (bitfield_clause) "::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f" (:) ":" (ERROR) ":vec3 newOrigin = nodes[nodeIndex].origin + glm::" (:) ":" (identifier) "vec3" (assignment_expression) "newOrigin = nodes[nodeIndex].origin + glm" (identifier) "newOrigin" (=) "=" (binary_expression) "nodes[nodeIndex].origin + glm" (field_expression) "nodes[nodeIndex].origin" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "origin" (+) "+" (identifier) "glm" (:) ":" (:) ":" (binary_expression) "abs(box.max - box.min)/2.0f" (call_expression) "abs(box.max - box.min)" (identifier) "abs" (argument_list) "(box.max - box.min)" (() "(" (binary_expression) "box.max - box.min" (field_expression) "box.max" (identifier) "box" (.) "." (field_identifier) "max" (-) "-" (field_expression) "box.min" (identifier) "box" (.) "." (field_identifier) "min" ()) ")" (/) "/" (number_literal) "2.0f" (;) ";" (field_declaration) "Octree o(newOrigin,box,previousSize + i);" (type_identifier) "Octree" (function_declarator) "o(newOrigin,box,previousSize + i)" (field_identifier) "o" (parameter_list) "(newOrigin,box,previousSize + i)" (() "(" (parameter_declaration) "newOrigin" (type_identifier) "newOrigin" (,) "," (parameter_declaration) "box" (type_identifier) "box" (,) "," (parameter_declaration) "previousSize + i" (type_identifier) "previousSize" (ERROR) "+" (+) "+" (identifier) "i" ()) ")" (;) ";" (comment) "//cout<< "Push Back" << endl; " (field_declaration) "nodes.push_back(o);" (type_identifier) "nodes" (ERROR) "." (.) "." (function_declarator) "push_back(o)" (field_identifier) "push_back" (parameter_list) "(o)" (() "(" (parameter_declaration) "o" (type_identifier) "o" ()) ")" (;) ";" (field_declaration) "nodes[nodeIndex].childrenIndices[i] = previousSize + i;" (type_identifier) "nodes" (ERROR) "[nodeIndex].childrenIndices[i] = previousSize +" (array_declarator) "[nodeIndex]" (field_identifier) "" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (array_declarator) "childrenIndices[i]" (field_identifier) "childrenIndices" ([) "[" (identifier) "i" (]) "]" (=) "=" (field_identifier) "previousSize" (+) "+" (field_identifier) "i" (;) ";" (comment) "//cout<< "If Collision" << endl; " (field_declaration) "if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {\n //cout<< "Add Object" << endl; \n\n nodes[previousSize + i].addObject(object);" (type_identifier) "if" (ERROR) "(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n {" (parenthesized_declarator) "(objectBoxCollided(nodes[previousSize + i].boundingBox,object))" (() "(" (function_declarator) "objectBoxCollided(nodes[previousSize + i].boundingBox,object)" (field_identifier) "objectBoxCollided" (parameter_list) "(nodes[previousSize + i].boundingBox,object)" (() "(" (parameter_declaration) "nodes[previousSize + i].boundingBox" (type_identifier) "nodes" (ERROR) "[previousSize + i]." (abstract_array_declarator) "[previousSize + i]" ([) "[" (binary_expression) "previousSize + i" (identifier) "previousSize" (+) "+" (identifier) "i" (]) "]" (.) "." (identifier) "boundingBox" (,) "," (parameter_declaration) "object" (type_identifier) "object" ()) ")" ()) ")" ({) "{" (comment) "//cout<< "Add Object" << endl; " (ERROR) "nodes[previousSize + i]." (array_declarator) "nodes[previousSize + i]" (field_identifier) "nodes" ([) "[" (binary_expression) "previousSize + i" (identifier) "previousSize" (+) "+" (identifier) "i" (]) "]" (.) "." (function_declarator) "addObject(object)" (field_identifier) "addObject" (parameter_list) "(object)" (() "(" (parameter_declaration) "object" (type_identifier) "object" ()) ")" (;) ";" (}) "}" (ERROR) "}\n\n }\n else\n {\n\n nodes[nodeIndex]." (}) "}" (}) "}" (else) "else" ({) "{" (array_declarator) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (init_declarator) "treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index" (array_declarator) "treeObjects[nodes[nodeIndex].numberOfObjects-1]" (identifier) "treeObjects" ([) "[" (binary_expression) "nodes[nodeIndex].numberOfObjects-1" (field_expression) "nodes[nodeIndex].numberOfObjects" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "numberOfObjects" (-) "-" (number_literal) "1" (]) "]" (=) "=" (field_expression) "object.index" (identifier) "object" (.) "." (field_identifier) "index" (;) ";" (ERROR) "}\n }\n else" (}) "}" (}) "}" (else) "else" (compound_statement) "{\n for (int i = 0; i < 8; i++)\n {\n if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n {\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }\n }\n }" ({) "{" (for_statement) "for (int i = 0; i < 8; i++)\n {\n if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n {\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 8" (identifier) "i" (<) "<" (number_literal) "8" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n {\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }\n }" ({) "{" (if_statement) "if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n {\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }" (if) "if" (parenthesized_expression) "(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))" (() "(" (call_expression) "objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object)" (identifier) "objectBoxCollided" (argument_list) "(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object)" (() "(" (field_expression) "nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox" (subscript_expression) "nodes[nodes[nodeIndex].childrenIndices[i]]" (identifier) "nodes" ([) "[" (subscript_expression) "nodes[nodeIndex].childrenIndices[i]" (field_expression) "nodes[nodeIndex].childrenIndices" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "childrenIndices" ([) "[" (identifier) "i" (]) "]" (]) "]" (.) "." (field_identifier) "boundingBox" (,) "," (identifier) "object" ()) ")" ()) ")" (compound_statement) "{\n nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n }" ({) "{" (expression_statement) "nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);" (call_expression) "nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes)" (field_expression) "nodes[nodes[nodeIndex].childrenIndices[i]].add" (subscript_expression) "nodes[nodes[nodeIndex].childrenIndices[i]]" (identifier) "nodes" ([) "[" (subscript_expression) "nodes[nodeIndex].childrenIndices[i]" (field_expression) "nodes[nodeIndex].childrenIndices" (subscript_expression) "nodes[nodeIndex]" (identifier) "nodes" ([) "[" (identifier) "nodeIndex" (]) "]" (.) "." (field_identifier) "childrenIndices" ([) "[" (identifier) "i" (]) "]" (]) "]" (.) "." (field_identifier) "add" (argument_list) "(object,nodes)" (() "(" (identifier) "object" (,) "," (identifier) "nodes" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (ERROR) "}" (}) "}" (function_definition) "void addObject(Object o)\n {\n treeObjects[numberOfObjects++] = o.index;\n }" (primitive_type) "void" (function_declarator) "addObject(Object o)" (identifier) "addObject" (parameter_list) "(Object o)" (() "(" (parameter_declaration) "Object o" (type_identifier) "Object" (identifier) "o" ()) ")" (compound_statement) "{\n treeObjects[numberOfObjects++] = o.index;\n }" ({) "{" (expression_statement) "treeObjects[numberOfObjects++] = o.index;" (assignment_expression) "treeObjects[numberOfObjects++] = o.index" (subscript_expression) "treeObjects[numberOfObjects++]" (identifier) "treeObjects" ([) "[" (update_expression) "numberOfObjects++" (identifier) "numberOfObjects" (++) "++" (]) "]" (=) "=" (field_expression) "o.index" (identifier) "o" (.) "." (field_identifier) "index" (;) ";" (}) "}" (function_definition) "void add(const std::vector<Object> & objects , std::vector<Octree> & nodes)\n {\n\n for (int i = 0; i < objects.size(); i++)\n {\n add(objects[i], nodes);\n }\n }" (primitive_type) "void" (function_declarator) "add(const std::vector<Object> & objects , std::vector<Octree> & nodes)" (identifier) "add" (parameter_list) "(const std::vector<Object> & objects , std::vector<Octree> & nodes)" (() "(" (parameter_declaration) "const std::vector<Object> & objects" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<Object> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Object" (>) ">" (&) "&" (identifier) "objects" (,) "," (parameter_declaration) "std::vector<Octree> & nodes" (type_identifier) "std" (ERROR) "::vector<Octree> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Octree" (>) ">" (&) "&" (identifier) "nodes" ()) ")" (compound_statement) "{\n\n for (int i = 0; i < objects.size(); i++)\n {\n add(objects[i], nodes);\n }\n }" ({) "{" (for_statement) "for (int i = 0; i < objects.size(); i++)\n {\n add(objects[i], nodes);\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < objects.size()" (identifier) "i" (<) "<" (call_expression) "objects.size()" (field_expression) "objects.size" (identifier) "objects" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n add(objects[i], nodes);\n }" ({) "{" (expression_statement) "add(objects[i], nodes);" (call_expression) "add(objects[i], nodes)" (identifier) "add" (argument_list) "(objects[i], nodes)" (() "(" (subscript_expression) "objects[i]" (identifier) "objects" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "nodes" ()) ")" (;) ";" (}) "}" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (declaration) "struct OctreeManager\n{\n OctreeManager(Octree root) //: root(root)\n {\n octreeNodes.push_back(root);\n }\n\n //Octree root;\n std::vector<Octree> octreeNodes;" (struct_specifier) "struct OctreeManager\n{\n OctreeManager(Octree root) //: root(root)\n {\n octreeNodes.push_back(root);\n }" (struct) "struct" (type_identifier) "OctreeManager" (field_declaration_list) "{\n OctreeManager(Octree root) //: root(root)\n {\n octreeNodes.push_back(root);\n }" ({) "{" (field_declaration) "OctreeManager(Octree root) //: root(root)\n {\n octreeNodes.push_back(root);" (macro_type_specifier) "OctreeManager(Octree root)" (identifier) "OctreeManager" (() "(" (type_descriptor) "Octree" (type_identifier) "Octree" (ERROR) "root" (identifier) "root" ()) ")" (comment) "//: root(root)" (ERROR) "{\n octreeNodes." ({) "{" (field_identifier) "octreeNodes" (.) "." (function_declarator) "push_back(root)" (field_identifier) "push_back" (parameter_list) "(root)" (() "(" (parameter_declaration) "root" (type_identifier) "root" ()) ")" (;) ";" (}) "}" (comment) "//Octree root;" (ERROR) "std::vector<Octree>" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Octree" (>) ">" (identifier) "octreeNodes" (;) ";" (function_definition) "void insert(const std::vector<Object> & objects )\n {\n for (int i = 0; i < objects.size(); i++)\n {\n octreeNodes[0].add(objects[i],octreeNodes);\n } \n }" (primitive_type) "void" (function_declarator) "insert(const std::vector<Object> & objects )" (identifier) "insert" (parameter_list) "(const std::vector<Object> & objects )" (() "(" (parameter_declaration) "const std::vector<Object> & objects" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<Object> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Object" (>) ">" (&) "&" (identifier) "objects" ()) ")" (compound_statement) "{\n for (int i = 0; i < objects.size(); i++)\n {\n octreeNodes[0].add(objects[i],octreeNodes);\n } \n }" ({) "{" (for_statement) "for (int i = 0; i < objects.size(); i++)\n {\n octreeNodes[0].add(objects[i],octreeNodes);\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < objects.size()" (identifier) "i" (<) "<" (call_expression) "objects.size()" (field_expression) "objects.size" (identifier) "objects" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n octreeNodes[0].add(objects[i],octreeNodes);\n }" ({) "{" (expression_statement) "octreeNodes[0].add(objects[i],octreeNodes);" (call_expression) "octreeNodes[0].add(objects[i],octreeNodes)" (field_expression) "octreeNodes[0].add" (subscript_expression) "octreeNodes[0]" (identifier) "octreeNodes" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "add" (argument_list) "(objects[i],octreeNodes)" (() "(" (subscript_expression) "objects[i]" (identifier) "objects" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "octreeNodes" ()) ")" (;) ";" (}) "}" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
1,109
54
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 25.31, "nodes": 687, "errors": 0, "source_hash": "d1cce5128c145194a8e52dea7cc8003d3becdc6cdf3da4036f7653cff85d5fa8", "categorized_nodes": 452}, "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 <glm.hpp>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<glm.hpp>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <vector>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<vector>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <Helper.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Helper.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <iostream>\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<iostream>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 15, "type": "declaration", "text": "using std::cout;", "parent": null, "children": [16, 17, 19], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 16}}, {"id": 16, "type": "type_identifier", "text": "using", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 17, "type": "ERROR", "text": "std::", "parent": 15, "children": [18], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 11}}, {"id": 18, "type": "identifier", "text": "std", "parent": 17, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 9}}, {"id": 19, "type": "identifier", "text": "cout", "parent": 15, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 15}}, {"id": 20, "type": "declaration", "text": "using std::endl;", "parent": null, "children": [21, 22, 24], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 16}}, {"id": 21, "type": "type_identifier", "text": "using", "parent": 20, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 5}}, {"id": 22, "type": "ERROR", "text": "std::", "parent": 20, "children": [23], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 11}}, {"id": 23, "type": "identifier", "text": "std", "parent": 22, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 9}}, {"id": 24, "type": "identifier", "text": "endl", "parent": 20, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 15}}, {"id": 25, "type": "declaration", "text": "static const int OCTREE_MAX_OBJECTS = 5;", "parent": null, "children": [26, 27], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 40}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 16}}, {"id": 27, "type": "init_declarator", "text": "OCTREE_MAX_OBJECTS = 5", "parent": 25, "children": [28, 29, 30], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 39}}, {"id": 28, "type": "identifier", "text": "OCTREE_MAX_OBJECTS", "parent": 27, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 35}}, {"id": 29, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 30, "type": "number_literal", "text": "5", "parent": 27, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 31, "type": "declaration", "text": "static const int MAX_DEPTH = 20;", "parent": null, "children": [32, 33], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 32}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 16}}, {"id": 33, "type": "init_declarator", "text": "MAX_DEPTH = 20", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 31}}, {"id": 34, "type": "identifier", "text": "MAX_DEPTH", "parent": 33, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 26}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 28}}, {"id": 36, "type": "number_literal", "text": "20", "parent": 33, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 31}}, {"id": 37, "type": "declaration", "text": "struct Octree\n{\n\n\tOctree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n\t\t\t{\n\t\t\t\tint previousSize = nodes.size();\n\t\t\t\t//nodes.reserve(nodes.size() + 8);\n\n\t\t\t\tint j = previousSize;\n\t\t\t\tfor (int i = 0; i < 8; i++)\n\t\t\t\t{\n\n\t\t\t\t\tglm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n\t\t\t\t\toctantHalfDimension /= 2.0f;\n\t\t\t\t\t\n\t\t\t\t\toctantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n\t\t\t\t\tglm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n\t\t\t\t\tBBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n\t\t\t\t\tglm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n\t\t\t\t\tOctree o(newOrigin,box,previousSize + i);\n\t\t\t\t\t//cout<< \"Push Back\" << endl; \n\t\t\t\t\tnodes.push_back(o);\n\t\t\t\t\tnodes[nodeIndex].childrenIndices[i] = previousSize + i;\n\t\t\t\t\t//cout<< \"If Collision\" << endl; \n\n\t\t\t\t\tif(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n\t\t\t\t\t{\n\t\t\t\t\t\t//cout<< \"Add Object\" << endl; \n\n\t\t\t\t\t\tnodes[previousSize + i].addObject(object);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tnodes[nodeIndex].treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index;", "parent": null, "children": [38, 490, 494], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 110, "column": 84}}, {"id": 38, "type": "struct_specifier", "text": "struct Octree\n{\n\n\tOctree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n\t\t\t{\n\t\t\t\tint previousSize = nodes.size();\n\t\t\t\t//nodes.reserve(nodes.size() + 8);\n\n\t\t\t\tint j = previousSize;\n\t\t\t\tfor (int i = 0; i < 8; i++)\n\t\t\t\t{\n\n\t\t\t\t\tglm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n\t\t\t\t\toctantHalfDimension /= 2.0f;\n\t\t\t\t\t\n\t\t\t\t\toctantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n\t\t\t\t\tglm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n\t\t\t\t\tBBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n\t\t\t\t\tglm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n\t\t\t\t\tOctree o(newOrigin,box,previousSize + i);\n\t\t\t\t\t//cout<< \"Push Back\" << endl; \n\t\t\t\t\tnodes.push_back(o);\n\t\t\t\t\tnodes[nodeIndex].childrenIndices[i] = previousSize + i;\n\t\t\t\t\t//cout<< \"If Collision\" << endl; \n\n\t\t\t\t\tif(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n\t\t\t\t\t{\n\t\t\t\t\t\t//cout<< \"Add Object\" << endl; \n\n\t\t\t\t\t\tnodes[previousSize + i].addObject(object);\n\t\t\t\t\t}", "parent": 37, "children": [39, 40], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 39, "type": "struct", "text": "struct", "parent": 38, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 40, "type": "type_identifier", "text": "Octree", "parent": 38, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 13}}, {"id": 41, "type": "field_declaration", "text": "Octree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n\t\t\t{\n\t\t\t\tint previousSize = nodes.size();", "parent": 38, "children": [42, 248, 253], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 74, "column": 36}}, {"id": 42, "type": "macro_type_specifier", "text": "Octree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)", "parent": 41, "children": [43, 44, 116, 243], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 72, "column": 63}}, {"id": 43, "type": "identifier", "text": "Octree", "parent": 42, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 7}}, {"id": 44, "type": "ERROR", "text": ") : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox),", "parent": 42, "children": [45, 62, 83, 87, 88, 89, 104, 110], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 35, "column": 45}}, {"id": 45, "type": "type_descriptor", "text": "numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)", "parent": 44, "children": [46, 47, 49], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 24, "column": 29}}, {"id": 46, "type": "type_identifier", "text": "numberOfObjects", "parent": 45, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 27}}, {"id": 47, "type": "ERROR", "text": "(0)\n\t{\n\t\tfor", "parent": 45, "children": [48], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 24, "column": 5}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 29}}, {"id": 49, "type": "abstract_function_declarator", "text": "(int i = 0; i < 8; i++)", "parent": 45, "children": [50], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 29}}, {"id": 50, "type": "parameter_list", "text": "(int i = 0; i < 8; i++)", "parent": 49, "children": [51, 54], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 29}}, {"id": 51, "type": "parameter_declaration", "text": "int i", "parent": 50, "children": [52, 53], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 12}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 10}}, {"id": 53, "type": "identifier", "text": "i", "parent": 51, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 54, "type": "ERROR", "text": "= 0; i < 8; i++", "parent": 50, "children": [55, 56, 57, 58, 59, 60, 61], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 28}}, {"id": 55, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 54, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 57, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 58, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 59, "type": "number_literal", "text": "8", "parent": 54, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 60, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 26}}, {"id": 61, "type": "++", "text": "++", "parent": 54, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 28}}, {"id": 62, "type": "type_descriptor", "text": "childrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 44, "children": [63, 64], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 28, "column": 46}}, {"id": 63, "type": "type_identifier", "text": "childrenIndices", "parent": 62, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 18}}, {"id": 64, "type": "abstract_function_declarator", "text": "[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 62, "children": [65, 67, 70], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 28, "column": 46}}, {"id": 65, "type": "abstract_array_declarator", "text": "[i]", "parent": 64, "children": [66], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 21}}, {"id": 66, "type": "identifier", "text": "i", "parent": 65, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 20}}, {"id": 67, "type": "ERROR", "text": "= -1;\n\t\t}\n\t\tfor", "parent": 64, "children": [68, 69], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 28, "column": 5}}, {"id": 68, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 69, "type": "number_literal", "text": "-1", "parent": 67, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 70, "type": "parameter_list", "text": "(int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 64, "children": [71, 81], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 46}}, {"id": 71, "type": "parameter_declaration", "text": "int i = 0; i < OCTREE_MAX_OBJECTS; i", "parent": 70, "children": [72, 73, 80], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 43}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 10}}, {"id": 73, "type": "ERROR", "text": "i = 0; i < OCTREE_MAX_OBJECTS;", "parent": 71, "children": [74, 75, 76, 77, 78, 79], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 41}}, {"id": 74, "type": "identifier", "text": "i", "parent": 73, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 14}}, {"id": 76, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 77, "type": "identifier", "text": "i", "parent": 73, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 19}}, {"id": 78, "type": "<", "text": "<", "parent": 73, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 79, "type": "identifier", "text": "OCTREE_MAX_OBJECTS", "parent": 73, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 40}}, {"id": 80, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 43}}, {"id": 81, "type": "ERROR", "text": "++", "parent": 70, "children": [82], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 45}}, {"id": 82, "type": "++", "text": "++", "parent": 81, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 45}}, {"id": 83, "type": "type_descriptor", "text": "treeObjects[i]", "parent": 44, "children": [84, 85], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 17}}, {"id": 84, "type": "type_identifier", "text": "treeObjects", "parent": 83, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 14}}, {"id": 85, "type": "abstract_array_declarator", "text": "[i]", "parent": 83, "children": [86], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 17}}, {"id": 86, "type": "identifier", "text": "i", "parent": 85, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 16}}, {"id": 87, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 19}}, {"id": 88, "type": "number_literal", "text": "-1", "parent": 44, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 22}}, {"id": 89, "type": "type_descriptor", "text": "Octree(glm::vec3 origin, BBox boundingBox, int index)", "parent": 44, "children": [90], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 54}}, {"id": 90, "type": "macro_type_specifier", "text": "Octree(glm::vec3 origin, BBox boundingBox, int index)", "parent": 89, "children": [91, 92, 102], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 54}}, {"id": 91, "type": "identifier", "text": "Octree", "parent": 90, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 7}}, {"id": 92, "type": "ERROR", "text": "glm::vec3 origin, BBox boundingBox, int", "parent": 90, "children": [93, 95, 96, 98, 99, 101], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 47}}, {"id": 93, "type": "type_descriptor", "text": "glm", "parent": 92, "children": [94], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 11}}, {"id": 94, "type": "type_identifier", "text": "glm", "parent": 93, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 11}}, {"id": 95, "type": "type_identifier", "text": "vec3", "parent": 92, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 17}}, {"id": 96, "type": "type_descriptor", "text": "origin", "parent": 92, "children": [97], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 24}}, {"id": 97, "type": "type_identifier", "text": "origin", "parent": 96, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 24}}, {"id": 98, "type": "type_identifier", "text": "BBox", "parent": 92, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 30}}, {"id": 99, "type": "type_descriptor", "text": "boundingBox", "parent": 92, "children": [100], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 42}}, {"id": 100, "type": "type_identifier", "text": "boundingBox", "parent": 99, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 42}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 47}}, {"id": 102, "type": "type_descriptor", "text": "index", "parent": 90, "children": [103], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 53}}, {"id": 103, "type": "type_identifier", "text": "index", "parent": 102, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 53}}, {"id": 104, "type": "type_descriptor", "text": "origin(origin)", "parent": 44, "children": [105, 106], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 18}}, {"id": 105, "type": "type_identifier", "text": "origin", "parent": 104, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 106, "type": "abstract_function_declarator", "text": "(origin)", "parent": 104, "children": [107], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 107, "type": "parameter_list", "text": "(origin)", "parent": 106, "children": [108], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 108, "type": "parameter_declaration", "text": "origin", "parent": 107, "children": [109], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 17}}, {"id": 109, "type": "type_identifier", "text": "origin", "parent": 108, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 17}}, {"id": 110, "type": "type_descriptor", "text": "boundingBox(boundingBox)", "parent": 44, "children": [111, 112], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 44}}, {"id": 111, "type": "type_identifier", "text": "boundingBox", "parent": 110, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 31}}, {"id": 112, "type": "abstract_function_declarator", "text": "(boundingBox)", "parent": 110, "children": [113], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 44}}, {"id": 113, "type": "parameter_list", "text": "(boundingBox)", "parent": 112, "children": [114], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 44}}, {"id": 114, "type": "parameter_declaration", "text": "boundingBox", "parent": 113, "children": [115], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 43}}, {"id": 115, "type": "type_identifier", "text": "boundingBox", "parent": 114, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 43}}, {"id": 116, "type": "type_descriptor", "text": "numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex]", "parent": 42, "children": [117, 239, 241], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 72, "column": 22}}, {"id": 117, "type": "macro_type_specifier", "text": "numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())", "parent": 116, "children": [118, 119, 235], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 70, "column": 31}}, {"id": 118, "type": "identifier", "text": "numberOfObjects", "parent": 117, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 61}}, {"id": 119, "type": "ERROR", "text": "0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].", "parent": 117, "children": [120, 121, 140, 161, 165, 166, 167, 168, 172, 173, 174, 178, 182, 183, 184, 185, 186, 187, 191, 192, 196, 198, 199, 200, 201, 202, 203, 204, 205, 220, 221, 222, 223, 224, 228], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 70, "column": 22}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 63}}, {"id": 121, "type": "type_descriptor", "text": "index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)", "parent": 119, "children": [122, 126, 127], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 37, "column": 29}}, {"id": 122, "type": "macro_type_specifier", "text": "index(index)", "parent": 121, "children": [123, 124], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 78}}, {"id": 123, "type": "identifier", "text": "index", "parent": 122, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 71}}, {"id": 124, "type": "type_descriptor", "text": "index", "parent": 122, "children": [125], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 77}}, {"id": 125, "type": "type_identifier", "text": "index", "parent": 124, "children": [], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 77}}, {"id": 126, "type": "ERROR", "text": "{\n\t\tfor", "parent": 121, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 127, "type": "abstract_function_declarator", "text": "(int i = 0; i < 8; i++)", "parent": 121, "children": [128], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 29}}, {"id": 128, "type": "parameter_list", "text": "(int i = 0; i < 8; i++)", "parent": 127, "children": [129, 132], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 29}}, {"id": 129, "type": "parameter_declaration", "text": "int i", "parent": 128, "children": [130, 131], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 12}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 129, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 10}}, {"id": 131, "type": "identifier", "text": "i", "parent": 129, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 132, "type": "ERROR", "text": "= 0; i < 8; i++", "parent": 128, "children": [133, 134, 135, 136, 137, 138, 139], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 28}}, {"id": 133, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 134, "type": "number_literal", "text": "0", "parent": 132, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 16}}, {"id": 135, "type": "identifier", "text": "i", "parent": 132, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 136, "type": "<", "text": "<", "parent": 132, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 137, "type": "number_literal", "text": "8", "parent": 132, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 23}}, {"id": 138, "type": "identifier", "text": "i", "parent": 132, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 26}}, {"id": 139, "type": "++", "text": "++", "parent": 132, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 28}}, {"id": 140, "type": "type_descriptor", "text": "childrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 119, "children": [141, 142], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 41, "column": 46}}, {"id": 141, "type": "type_identifier", "text": "childrenIndices", "parent": 140, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 18}}, {"id": 142, "type": "abstract_function_declarator", "text": "[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 140, "children": [143, 145, 148], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 41, "column": 46}}, {"id": 143, "type": "abstract_array_declarator", "text": "[i]", "parent": 142, "children": [144], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 21}}, {"id": 144, "type": "identifier", "text": "i", "parent": 143, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 145, "type": "ERROR", "text": "= -1;\n\t\t}\n\t\tfor", "parent": 142, "children": [146, 147], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 41, "column": 5}}, {"id": 146, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 147, "type": "number_literal", "text": "-1", "parent": 145, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 26}}, {"id": 148, "type": "parameter_list", "text": "(int i = 0; i < OCTREE_MAX_OBJECTS; i++)", "parent": 142, "children": [149, 159], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 46}}, {"id": 149, "type": "parameter_declaration", "text": "int i = 0; i < OCTREE_MAX_OBJECTS; i", "parent": 148, "children": [150, 151, 158], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 43}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 10}}, {"id": 151, "type": "ERROR", "text": "i = 0; i < OCTREE_MAX_OBJECTS;", "parent": 149, "children": [152, 153, 154, 155, 156, 157], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 41}}, {"id": 152, "type": "identifier", "text": "i", "parent": 151, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 14}}, {"id": 154, "type": "number_literal", "text": "0", "parent": 151, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 155, "type": "identifier", "text": "i", "parent": 151, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 156, "type": "<", "text": "<", "parent": 151, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 157, "type": "identifier", "text": "OCTREE_MAX_OBJECTS", "parent": 151, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 40}}, {"id": 158, "type": "identifier", "text": "i", "parent": 149, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 43}}, {"id": 159, "type": "ERROR", "text": "++", "parent": 148, "children": [160], "start_point": {"row": 41, "column": 43}, "end_point": {"row": 41, "column": 45}}, {"id": 160, "type": "++", "text": "++", "parent": 159, "children": [], "start_point": {"row": 41, "column": 43}, "end_point": {"row": 41, "column": 45}}, {"id": 161, "type": "type_descriptor", "text": "treeObjects[i]", "parent": 119, "children": [162, 163], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 17}}, {"id": 162, "type": "type_identifier", "text": "treeObjects", "parent": 161, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 14}}, {"id": 163, "type": "abstract_array_declarator", "text": "[i]", "parent": 161, "children": [164], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 17}}, {"id": 164, "type": "identifier", "text": "i", "parent": 163, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 165, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 166, "type": "number_literal", "text": "-1", "parent": 119, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 22}}, {"id": 167, "type": "~", "text": "~", "parent": 119, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 2}}, {"id": 168, "type": "type_descriptor", "text": "Octree()", "parent": 119, "children": [169, 170], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 10}}, {"id": 169, "type": "type_identifier", "text": "Octree", "parent": 168, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 170, "type": "abstract_function_declarator", "text": "()", "parent": 168, "children": [171], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 10}}, {"id": 171, "type": "parameter_list", "text": "()", "parent": 170, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 10}}, {"id": 172, "type": "inline", "text": "inline", "parent": 119, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 7}}, {"id": 173, "type": "primitive_type", "text": "bool", "parent": 119, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 12}}, {"id": 174, "type": "type_descriptor", "text": "isLeaf()", "parent": 119, "children": [175, 176], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 21}}, {"id": 175, "type": "type_identifier", "text": "isLeaf", "parent": 174, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 19}}, {"id": 176, "type": "abstract_function_declarator", "text": "()", "parent": 174, "children": [177], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 21}}, {"id": 177, "type": "parameter_list", "text": "()", "parent": 176, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 21}}, {"id": 178, "type": "type_descriptor", "text": "childrenIndices[0]", "parent": 119, "children": [179, 180], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 27}}, {"id": 179, "type": "type_identifier", "text": "childrenIndices", "parent": 178, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 24}}, {"id": 180, "type": "abstract_array_declarator", "text": "[0]", "parent": 178, "children": [181], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 27}}, {"id": 181, "type": "number_literal", "text": "0", "parent": 180, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 26}}, {"id": 182, "type": "==", "text": "==", "parent": 119, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 30}}, {"id": 183, "type": "number_literal", "text": "-1", "parent": 119, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 33}}, {"id": 184, "type": "type_identifier", "text": "BBox", "parent": 119, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 5}}, {"id": 185, "type": "identifier", "text": "boundingBox", "parent": 119, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 17}}, {"id": 186, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 187, "type": "type_descriptor", "text": "childrenIndices[8]", "parent": 119, "children": [188, 189], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 23}}, {"id": 188, "type": "type_identifier", "text": "childrenIndices", "parent": 187, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 20}}, {"id": 189, "type": "abstract_array_declarator", "text": "[8]", "parent": 187, "children": [190], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 23}}, {"id": 190, "type": "number_literal", "text": "8", "parent": 189, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 22}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 4}}, {"id": 192, "type": "type_descriptor", "text": "treeObjects[OCTREE_MAX_OBJECTS]", "parent": 119, "children": [193, 194], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 36}}, {"id": 193, "type": "type_identifier", "text": "treeObjects", "parent": 192, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 16}}, {"id": 194, "type": "abstract_array_declarator", "text": "[OCTREE_MAX_OBJECTS]", "parent": 192, "children": [195], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 36}}, {"id": 195, "type": "identifier", "text": "OCTREE_MAX_OBJECTS", "parent": 194, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 35}}, {"id": 196, "type": "type_descriptor", "text": "glm", "parent": 119, "children": [197], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 197, "type": "type_identifier", "text": "glm", "parent": 196, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 198, "type": "type_identifier", "text": "vec3", "parent": 119, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 10}}, {"id": 199, "type": "type_identifier", "text": "origin", "parent": 119, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 17}}, {"id": 200, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 201, "type": "identifier", "text": "index", "parent": 119, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 10}}, {"id": 202, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 4}}, {"id": 203, "type": "identifier", "text": "numberOfObjects", "parent": 119, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 20}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 205, "type": "type_descriptor", "text": "add(Object object, std::vector<Octree> & nodes)", "parent": 119, "children": [206, 207], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 53}}, {"id": 206, "type": "type_identifier", "text": "add", "parent": 205, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 9}}, {"id": 207, "type": "abstract_function_declarator", "text": "(Object object, std::vector<Octree> & nodes)", "parent": 205, "children": [208], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 53}}, {"id": 208, "type": "parameter_list", "text": "(Object object, std::vector<Octree> & nodes)", "parent": 207, "children": [209, 212], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 53}}, {"id": 209, "type": "parameter_declaration", "text": "Object object", "parent": 208, "children": [210, 211], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 23}}, {"id": 210, "type": "type_identifier", "text": "Object", "parent": 209, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 16}}, {"id": 211, "type": "identifier", "text": "object", "parent": 209, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 23}}, {"id": 212, "type": "parameter_declaration", "text": "std::vector<Octree> & nodes", "parent": 208, "children": [213, 214, 219], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 52}}, {"id": 213, "type": "type_identifier", "text": "std", "parent": 212, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 28}}, {"id": 214, "type": "ERROR", "text": "::vector<Octree> &", "parent": 212, "children": [215, 216, 217, 218], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 46}}, {"id": 215, "type": "identifier", "text": "vector", "parent": 214, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 36}}, {"id": 216, "type": "<", "text": "<", "parent": 214, "children": [], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 37}}, {"id": 217, "type": "identifier", "text": "Octree", "parent": 214, "children": [], "start_point": {"row": 66, "column": 37}, "end_point": {"row": 66, "column": 43}}, {"id": 218, "type": ">", "text": ">", "parent": 214, "children": [], "start_point": {"row": 66, "column": 43}, "end_point": {"row": 66, "column": 44}}, {"id": 219, "type": "identifier", "text": "nodes", "parent": 212, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 52}}, {"id": 220, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 5}}, {"id": 221, "type": "identifier", "text": "nodeIndex", "parent": 119, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 15}}, {"id": 222, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 223, "type": "type_identifier", "text": "index", "parent": 119, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 23}}, {"id": 224, "type": "type_descriptor", "text": "nodes[nodeIndex]", "parent": 119, "children": [225, 226], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 18}}, {"id": 225, "type": "type_identifier", "text": "nodes", "parent": 224, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 7}}, {"id": 226, "type": "abstract_array_declarator", "text": "[nodeIndex]", "parent": 224, "children": [227], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 18}}, {"id": 227, "type": "identifier", "text": "nodeIndex", "parent": 226, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 17}}, {"id": 228, "type": "type_descriptor", "text": "numberOfObjects++;\n\t\tif(nodes[nodeIndex]", "parent": 119, "children": [229, 230, 233], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 70, "column": 21}}, {"id": 229, "type": "type_identifier", "text": "numberOfObjects", "parent": 228, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 34}}, {"id": 230, "type": "ERROR", "text": "++;\n\t\tif(nodes", "parent": 228, "children": [231, 232], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 70, "column": 10}}, {"id": 231, "type": "++", "text": "++", "parent": 230, "children": [], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 36}}, {"id": 232, "type": "identifier", "text": "nodes", "parent": 230, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 10}}, {"id": 233, "type": "abstract_array_declarator", "text": "[nodeIndex]", "parent": 228, "children": [234], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 21}}, {"id": 234, "type": "identifier", "text": "nodeIndex", "parent": 233, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 20}}, {"id": 235, "type": "type_descriptor", "text": "isLeaf()", "parent": 117, "children": [236, 237], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 30}}, {"id": 236, "type": "type_identifier", "text": "isLeaf", "parent": 235, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 28}}, {"id": 237, "type": "abstract_function_declarator", "text": "()", "parent": 235, "children": [238], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 30}}, {"id": 238, "type": "parameter_list", "text": "()", "parent": 237, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 30}}, {"id": 239, "type": "ERROR", "text": "{\n\t\t\tif(nodes", "parent": 116, "children": [240], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 72, "column": 11}}, {"id": 240, "type": "identifier", "text": "nodes", "parent": 239, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 11}}, {"id": 241, "type": "abstract_array_declarator", "text": "[nodeIndex]", "parent": 116, "children": [242], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 22}}, {"id": 242, "type": "identifier", "text": "nodeIndex", "parent": 241, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 21}}, {"id": 243, "type": "ERROR", "text": ".numberOfObjects-1 >= OCTREE_MAX_OBJECTS", "parent": 42, "children": [244, 245, 246, 247], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 62}}, {"id": 244, "type": "identifier", "text": "numberOfObjects", "parent": 243, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 38}}, {"id": 245, "type": "number_literal", "text": "-1", "parent": 243, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 40}}, {"id": 246, "type": ">=", "text": ">=", "parent": 243, "children": [], "start_point": {"row": 72, "column": 41}, "end_point": {"row": 72, "column": 43}}, {"id": 247, "type": "identifier", "text": "OCTREE_MAX_OBJECTS", "parent": 243, "children": [], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 62}}, {"id": 248, "type": "ERROR", "text": "{\n\t\t\t\tint previousSize = nodes.", "parent": 41, "children": [249, 250, 251, 252], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 74, "column": 29}}, {"id": 249, "type": "primitive_type", "text": "int", "parent": 248, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 7}}, {"id": 250, "type": "field_identifier", "text": "previousSize", "parent": 248, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 20}}, {"id": 251, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 252, "type": "field_identifier", "text": "nodes", "parent": 248, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 28}}, {"id": 253, "type": "function_declarator", "text": "size()", "parent": 41, "children": [254, 255], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 35}}, {"id": 254, "type": "field_identifier", "text": "size", "parent": 253, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 33}}, {"id": 255, "type": "parameter_list", "text": "()", "parent": 253, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 35}}, {"id": 256, "type": "field_declaration", "text": "int j = previousSize;", "parent": 38, "children": [257, 258, 261], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 25}}, {"id": 257, "type": "primitive_type", "text": "int", "parent": 256, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 7}}, {"id": 258, "type": "ERROR", "text": "j =", "parent": 256, "children": [259, 260], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 11}}, {"id": 259, "type": "field_identifier", "text": "j", "parent": 258, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}, {"id": 260, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 261, "type": "field_identifier", "text": "previousSize", "parent": 256, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 24}}, {"id": 262, "type": "field_declaration", "text": "for (int i = 0; i < 8; i++)\n\t\t\t\t{\n\n\t\t\t\t\tglm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);", "parent": 38, "children": [263, 275, 276], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 81, "column": 115}}, {"id": 263, "type": "macro_type_specifier", "text": "for (int i = 0; i < 8; i++)", "parent": 262, "children": [264, 266], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 31}}, {"id": 264, "type": "type_descriptor", "text": "int", "parent": 263, "children": [265], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 12}}, {"id": 265, "type": "primitive_type", "text": "int", "parent": 264, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 12}}, {"id": 266, "type": "ERROR", "text": "i = 0; i < 8; i++", "parent": 263, "children": [267, 268, 269, 270, 271, 272, 273, 274], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 30}}, {"id": 267, "type": "identifier", "text": "i", "parent": 266, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 14}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 269, "type": "number_literal", "text": "0", "parent": 266, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 18}}, {"id": 270, "type": "identifier", "text": "i", "parent": 266, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 21}}, {"id": 271, "type": "<", "text": "<", "parent": 266, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 23}}, {"id": 272, "type": "number_literal", "text": "8", "parent": 266, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 25}}, {"id": 273, "type": "identifier", "text": "i", "parent": 266, "children": [], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 28}}, {"id": 274, "type": "++", "text": "++", "parent": 266, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 30}}, {"id": 275, "type": "field_identifier", "text": "glm", "parent": 262, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 8}}, {"id": 276, "type": "bitfield_clause", "text": "::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)", "parent": 262, "children": [277, 283], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 114}}, {"id": 277, "type": "ERROR", "text": ":vec3 octantHalfDimension = glm::", "parent": 276, "children": [278, 279], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 42}}, {"id": 278, "type": "identifier", "text": "vec3", "parent": 277, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 14}}, {"id": 279, "type": "assignment_expression", "text": "octantHalfDimension = glm", "parent": 277, "children": [280, 281, 282], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 40}}, {"id": 280, "type": "identifier", "text": "octantHalfDimension", "parent": 279, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 34}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 36}}, {"id": 282, "type": "identifier", "text": "glm", "parent": 279, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 40}}, {"id": 283, "type": "call_expression", "text": "abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)", "parent": 276, "children": [284, 285], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 114}}, {"id": 284, "type": "identifier", "text": "abs", "parent": 283, "children": [], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 45}}, {"id": 285, "type": "argument_list", "text": "(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min)", "parent": 283, "children": [286], "start_point": {"row": 81, "column": 45}, "end_point": {"row": 81, "column": 114}}, {"id": 286, "type": "binary_expression", "text": "nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min", "parent": 285, "children": [287, 294, 295], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 113}}, {"id": 287, "type": "field_expression", "text": "nodes[nodeIndex].boundingBox.max", "parent": 286, "children": [288, 293], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 78}}, {"id": 288, "type": "field_expression", "text": "nodes[nodeIndex].boundingBox", "parent": 287, "children": [289, 292], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 74}}, {"id": 289, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 288, "children": [290, 291], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 62}}, {"id": 290, "type": "identifier", "text": "nodes", "parent": 289, "children": [], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 51}}, {"id": 291, "type": "identifier", "text": "nodeIndex", "parent": 289, "children": [], "start_point": {"row": 81, "column": 52}, "end_point": {"row": 81, "column": 61}}, {"id": 292, "type": "field_identifier", "text": "boundingBox", "parent": 288, "children": [], "start_point": {"row": 81, "column": 63}, "end_point": {"row": 81, "column": 74}}, {"id": 293, "type": "field_identifier", "text": "max", "parent": 287, "children": [], "start_point": {"row": 81, "column": 75}, "end_point": {"row": 81, "column": 78}}, {"id": 294, "type": "-", "text": "-", "parent": 286, "children": [], "start_point": {"row": 81, "column": 79}, "end_point": {"row": 81, "column": 80}}, {"id": 295, "type": "field_expression", "text": "nodes[nodeIndex].boundingBox.min", "parent": 286, "children": [296, 301], "start_point": {"row": 81, "column": 81}, "end_point": {"row": 81, "column": 113}}, {"id": 296, "type": "field_expression", "text": "nodes[nodeIndex].boundingBox", "parent": 295, "children": [297, 300], "start_point": {"row": 81, "column": 81}, "end_point": {"row": 81, "column": 109}}, {"id": 297, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 296, "children": [298, 299], "start_point": {"row": 81, "column": 81}, "end_point": {"row": 81, "column": 97}}, {"id": 298, "type": "identifier", "text": "nodes", "parent": 297, "children": [], "start_point": {"row": 81, "column": 81}, "end_point": {"row": 81, "column": 86}}, {"id": 299, "type": "identifier", "text": "nodeIndex", "parent": 297, "children": [], "start_point": {"row": 81, "column": 87}, "end_point": {"row": 81, "column": 96}}, {"id": 300, "type": "field_identifier", "text": "boundingBox", "parent": 296, "children": [], "start_point": {"row": 81, "column": 98}, "end_point": {"row": 81, "column": 109}}, {"id": 301, "type": "field_identifier", "text": "min", "parent": 295, "children": [], "start_point": {"row": 81, "column": 110}, "end_point": {"row": 81, "column": 113}}, {"id": 302, "type": "field_declaration", "text": "octantHalfDimension /= 2.0f;", "parent": 38, "children": [303, 304], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 33}}, {"id": 303, "type": "type_identifier", "text": "octantHalfDimension", "parent": 302, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 24}}, {"id": 304, "type": "ERROR", "text": "/= 2.0f", "parent": 302, "children": [305, 306], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 32}}, {"id": 305, "type": "/=", "text": "/=", "parent": 304, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 27}}, {"id": 306, "type": "number_literal", "text": "2.0f", "parent": 304, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 32}}, {"id": 307, "type": "field_declaration", "text": "octantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);", "parent": 38, "children": [308, 309, 314], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 75}}, {"id": 308, "type": "type_identifier", "text": "octantHalfDimension", "parent": 307, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 24}}, {"id": 309, "type": "ERROR", "text": ".x = octantHalfDimension.x", "parent": 307, "children": [310, 311, 312, 313], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 50}}, {"id": 310, "type": "field_identifier", "text": "x", "parent": 309, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 311, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 28}}, {"id": 312, "type": "field_identifier", "text": "octantHalfDimension", "parent": 309, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 48}}, {"id": 313, "type": "field_identifier", "text": "x", "parent": 309, "children": [], "start_point": {"row": 84, "column": 49}, "end_point": {"row": 84, "column": 50}}, {"id": 314, "type": "pointer_declarator", "text": "* (i&4 ? 1.0f : -1.0f)", "parent": 307, "children": [315, 316], "start_point": {"row": 84, "column": 51}, "end_point": {"row": 84, "column": 74}}, {"id": 315, "type": "*", "text": "*", "parent": 314, "children": [], "start_point": {"row": 84, "column": 51}, "end_point": {"row": 84, "column": 52}}, {"id": 316, "type": "parenthesized_declarator", "text": "(i&4 ? 1.0f : -1.0f)", "parent": 314, "children": [317, 318], "start_point": {"row": 84, "column": 54}, "end_point": {"row": 84, "column": 74}}, {"id": 317, "type": "field_identifier", "text": "i", "parent": 316, "children": [], "start_point": {"row": 84, "column": 55}, "end_point": {"row": 84, "column": 56}}, {"id": 318, "type": "ERROR", "text": "&4 ? 1.0f : -1.0f", "parent": 316, "children": [319, 320, 321, 322], "start_point": {"row": 84, "column": 56}, "end_point": {"row": 84, "column": 73}}, {"id": 319, "type": "number_literal", "text": "4", "parent": 318, "children": [], "start_point": {"row": 84, "column": 57}, "end_point": {"row": 84, "column": 58}}, {"id": 320, "type": "?", "text": "?", "parent": 318, "children": [], "start_point": {"row": 84, "column": 59}, "end_point": {"row": 84, "column": 60}}, {"id": 321, "type": "number_literal", "text": "1.0f", "parent": 318, "children": [], "start_point": {"row": 84, "column": 61}, "end_point": {"row": 84, "column": 65}}, {"id": 322, "type": "number_literal", "text": "-1.0f", "parent": 318, "children": [], "start_point": {"row": 84, "column": 68}, "end_point": {"row": 84, "column": 73}}, {"id": 323, "type": "field_declaration", "text": "octantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);", "parent": 38, "children": [324, 325, 330], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 75}}, {"id": 324, "type": "type_identifier", "text": "octantHalfDimension", "parent": 323, "children": [], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 24}}, {"id": 325, "type": "ERROR", "text": ".y = octantHalfDimension.y", "parent": 323, "children": [326, 327, 328, 329], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 50}}, {"id": 326, "type": "field_identifier", "text": "y", "parent": 325, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 26}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 28}}, {"id": 328, "type": "field_identifier", "text": "octantHalfDimension", "parent": 325, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 48}}, {"id": 329, "type": "field_identifier", "text": "y", "parent": 325, "children": [], "start_point": {"row": 85, "column": 49}, "end_point": {"row": 85, "column": 50}}, {"id": 330, "type": "pointer_declarator", "text": "* (i&2 ? 1.0f : -1.0f)", "parent": 323, "children": [331, 332], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 74}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 52}}, {"id": 332, "type": "parenthesized_declarator", "text": "(i&2 ? 1.0f : -1.0f)", "parent": 330, "children": [333, 334], "start_point": {"row": 85, "column": 54}, "end_point": {"row": 85, "column": 74}}, {"id": 333, "type": "field_identifier", "text": "i", "parent": 332, "children": [], "start_point": {"row": 85, "column": 55}, "end_point": {"row": 85, "column": 56}}, {"id": 334, "type": "ERROR", "text": "&2 ? 1.0f : -1.0f", "parent": 332, "children": [335, 336, 337, 338], "start_point": {"row": 85, "column": 56}, "end_point": {"row": 85, "column": 73}}, {"id": 335, "type": "number_literal", "text": "2", "parent": 334, "children": [], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 58}}, {"id": 336, "type": "?", "text": "?", "parent": 334, "children": [], "start_point": {"row": 85, "column": 59}, "end_point": {"row": 85, "column": 60}}, {"id": 337, "type": "number_literal", "text": "1.0f", "parent": 334, "children": [], "start_point": {"row": 85, "column": 61}, "end_point": {"row": 85, "column": 65}}, {"id": 338, "type": "number_literal", "text": "-1.0f", "parent": 334, "children": [], "start_point": {"row": 85, "column": 68}, "end_point": {"row": 85, "column": 73}}, {"id": 339, "type": "field_declaration", "text": "octantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);", "parent": 38, "children": [340, 341, 346], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 75}}, {"id": 340, "type": "type_identifier", "text": "octantHalfDimension", "parent": 339, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 24}}, {"id": 341, "type": "ERROR", "text": ".z = octantHalfDimension.z", "parent": 339, "children": [342, 343, 344, 345], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 50}}, {"id": 342, "type": "field_identifier", "text": "z", "parent": 341, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 26}}, {"id": 343, "type": "=", "text": "=", "parent": 341, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 28}}, {"id": 344, "type": "field_identifier", "text": "octantHalfDimension", "parent": 341, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 48}}, {"id": 345, "type": "field_identifier", "text": "z", "parent": 341, "children": [], "start_point": {"row": 86, "column": 49}, "end_point": {"row": 86, "column": 50}}, {"id": 346, "type": "pointer_declarator", "text": "* (i&1 ? 1.0f : -1.0f)", "parent": 339, "children": [347, 348], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 74}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 52}}, {"id": 348, "type": "parenthesized_declarator", "text": "(i&1 ? 1.0f : -1.0f)", "parent": 346, "children": [349, 350], "start_point": {"row": 86, "column": 54}, "end_point": {"row": 86, "column": 74}}, {"id": 349, "type": "field_identifier", "text": "i", "parent": 348, "children": [], "start_point": {"row": 86, "column": 55}, "end_point": {"row": 86, "column": 56}}, {"id": 350, "type": "ERROR", "text": "&1 ? 1.0f : -1.0f", "parent": 348, "children": [351, 352, 353, 354], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 73}}, {"id": 351, "type": "number_literal", "text": "1", "parent": 350, "children": [], "start_point": {"row": 86, "column": 57}, "end_point": {"row": 86, "column": 58}}, {"id": 352, "type": "?", "text": "?", "parent": 350, "children": [], "start_point": {"row": 86, "column": 59}, "end_point": {"row": 86, "column": 60}}, {"id": 353, "type": "number_literal", "text": "1.0f", "parent": 350, "children": [], "start_point": {"row": 86, "column": 61}, "end_point": {"row": 86, "column": 65}}, {"id": 354, "type": "number_literal", "text": "-1.0f", "parent": 350, "children": [], "start_point": {"row": 86, "column": 68}, "end_point": {"row": 86, "column": 73}}, {"id": 355, "type": "field_declaration", "text": "glm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;", "parent": 38, "children": [356, 357, 366], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 79}}, {"id": 356, "type": "type_identifier", "text": "glm", "parent": 355, "children": [], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 8}}, {"id": 357, "type": "ERROR", "text": "::vec3 newBoxDimension = nodes[nodeIndex].origin +", "parent": 355, "children": [358, 359, 360, 361, 364, 365], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 58}}, {"id": 358, "type": "field_identifier", "text": "vec3", "parent": 357, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 14}}, {"id": 359, "type": "field_identifier", "text": "newBoxDimension", "parent": 357, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 30}}, {"id": 360, "type": "=", "text": "=", "parent": 357, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 32}}, {"id": 361, "type": "array_declarator", "text": "nodes[nodeIndex]", "parent": 357, "children": [362, 363], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 49}}, {"id": 362, "type": "field_identifier", "text": "nodes", "parent": 361, "children": [], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 38}}, {"id": 363, "type": "identifier", "text": "nodeIndex", "parent": 361, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 48}}, {"id": 364, "type": "field_identifier", "text": "origin", "parent": 357, "children": [], "start_point": {"row": 88, "column": 50}, "end_point": {"row": 88, "column": 56}}, {"id": 365, "type": "+", "text": "+", "parent": 357, "children": [], "start_point": {"row": 88, "column": 57}, "end_point": {"row": 88, "column": 58}}, {"id": 366, "type": "field_identifier", "text": "octantHalfDimension", "parent": 355, "children": [], "start_point": {"row": 88, "column": 59}, "end_point": {"row": 88, "column": 78}}, {"id": 367, "type": "field_declaration", "text": "BBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n\t\t\t\t\tglm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;", "parent": 38, "children": [368, 369, 370, 373, 383, 385, 386, 396, 398, 399], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 91, "column": 86}}, {"id": 368, "type": "type_identifier", "text": "BBox", "parent": 367, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 9}}, {"id": 369, "type": "field_identifier", "text": "box", "parent": 367, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 13}}, {"id": 370, "type": "ERROR", "text": "= {glm:", "parent": 367, "children": [371, 372], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 21}}, {"id": 371, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 15}}, {"id": 372, "type": "identifier", "text": "glm", "parent": 370, "children": [], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 20}}, {"id": 373, "type": "bitfield_clause", "text": ":min(nodes[nodeIndex].origin,newBoxDimension)", "parent": 367, "children": [374], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 66}}, {"id": 374, "type": "call_expression", "text": "min(nodes[nodeIndex].origin,newBoxDimension)", "parent": 373, "children": [375, 376], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 66}}, {"id": 375, "type": "identifier", "text": "min", "parent": 374, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 25}}, {"id": 376, "type": "argument_list", "text": "(nodes[nodeIndex].origin,newBoxDimension)", "parent": 374, "children": [377, 382], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 66}}, {"id": 377, "type": "field_expression", "text": "nodes[nodeIndex].origin", "parent": 376, "children": [378, 381], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 49}}, {"id": 378, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 377, "children": [379, 380], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 42}}, {"id": 379, "type": "identifier", "text": "nodes", "parent": 378, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 31}}, {"id": 380, "type": "identifier", "text": "nodeIndex", "parent": 378, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 41}}, {"id": 381, "type": "field_identifier", "text": "origin", "parent": 377, "children": [], "start_point": {"row": 90, "column": 43}, "end_point": {"row": 90, "column": 49}}, {"id": 382, "type": "identifier", "text": "newBoxDimension", "parent": 376, "children": [], "start_point": {"row": 90, "column": 50}, "end_point": {"row": 90, "column": 65}}, {"id": 383, "type": "ERROR", "text": ",0.0f", "parent": 367, "children": [384], "start_point": {"row": 90, "column": 67}, "end_point": {"row": 90, "column": 72}}, {"id": 384, "type": "number_literal", "text": "0.0f", "parent": 383, "children": [], "start_point": {"row": 90, "column": 68}, "end_point": {"row": 90, "column": 72}}, {"id": 385, "type": "field_identifier", "text": "glm", "parent": 367, "children": [], "start_point": {"row": 90, "column": 73}, "end_point": {"row": 90, "column": 76}}, {"id": 386, "type": "bitfield_clause", "text": ":max(nodes[nodeIndex].origin,newBoxDimension)", "parent": 367, "children": [387], "start_point": {"row": 90, "column": 77}, "end_point": {"row": 90, "column": 122}}, {"id": 387, "type": "call_expression", "text": "max(nodes[nodeIndex].origin,newBoxDimension)", "parent": 386, "children": [388, 389], "start_point": {"row": 90, "column": 78}, "end_point": {"row": 90, "column": 122}}, {"id": 388, "type": "identifier", "text": "max", "parent": 387, "children": [], "start_point": {"row": 90, "column": 78}, "end_point": {"row": 90, "column": 81}}, {"id": 389, "type": "argument_list", "text": "(nodes[nodeIndex].origin,newBoxDimension)", "parent": 387, "children": [390, 395], "start_point": {"row": 90, "column": 81}, "end_point": {"row": 90, "column": 122}}, {"id": 390, "type": "field_expression", "text": "nodes[nodeIndex].origin", "parent": 389, "children": [391, 394], "start_point": {"row": 90, "column": 82}, "end_point": {"row": 90, "column": 105}}, {"id": 391, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 390, "children": [392, 393], "start_point": {"row": 90, "column": 82}, "end_point": {"row": 90, "column": 98}}, {"id": 392, "type": "identifier", "text": "nodes", "parent": 391, "children": [], "start_point": {"row": 90, "column": 82}, "end_point": {"row": 90, "column": 87}}, {"id": 393, "type": "identifier", "text": "nodeIndex", "parent": 391, "children": [], "start_point": {"row": 90, "column": 88}, "end_point": {"row": 90, "column": 97}}, {"id": 394, "type": "field_identifier", "text": "origin", "parent": 390, "children": [], "start_point": {"row": 90, "column": 99}, "end_point": {"row": 90, "column": 105}}, {"id": 395, "type": "identifier", "text": "newBoxDimension", "parent": 389, "children": [], "start_point": {"row": 90, "column": 106}, "end_point": {"row": 90, "column": 121}}, {"id": 396, "type": "ERROR", "text": "0.0f};", "parent": 367, "children": [397], "start_point": {"row": 90, "column": 124}, "end_point": {"row": 90, "column": 130}}, {"id": 397, "type": "number_literal", "text": "0.0f", "parent": 396, "children": [], "start_point": {"row": 90, "column": 124}, "end_point": {"row": 90, "column": 128}}, {"id": 398, "type": "field_identifier", "text": "glm", "parent": 367, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 8}}, {"id": 399, "type": "bitfield_clause", "text": "::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f", "parent": 367, "children": [400, 413], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 85}}, {"id": 400, "type": "ERROR", "text": ":vec3 newOrigin = nodes[nodeIndex].origin + glm::", "parent": 399, "children": [401, 402], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 58}}, {"id": 401, "type": "identifier", "text": "vec3", "parent": 400, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 14}}, {"id": 402, "type": "assignment_expression", "text": "newOrigin = nodes[nodeIndex].origin + glm", "parent": 400, "children": [403, 404, 405], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 56}}, {"id": 403, "type": "identifier", "text": "newOrigin", "parent": 402, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 24}}, {"id": 404, "type": "=", "text": "=", "parent": 402, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 26}}, {"id": 405, "type": "binary_expression", "text": "nodes[nodeIndex].origin + glm", "parent": 402, "children": [406, 411, 412], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 56}}, {"id": 406, "type": "field_expression", "text": "nodes[nodeIndex].origin", "parent": 405, "children": [407, 410], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 50}}, {"id": 407, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 406, "children": [408, 409], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 43}}, {"id": 408, "type": "identifier", "text": "nodes", "parent": 407, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 32}}, {"id": 409, "type": "identifier", "text": "nodeIndex", "parent": 407, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 42}}, {"id": 410, "type": "field_identifier", "text": "origin", "parent": 406, "children": [], "start_point": {"row": 91, "column": 44}, "end_point": {"row": 91, "column": 50}}, {"id": 411, "type": "+", "text": "+", "parent": 405, "children": [], "start_point": {"row": 91, "column": 51}, "end_point": {"row": 91, "column": 52}}, {"id": 412, "type": "identifier", "text": "glm", "parent": 405, "children": [], "start_point": {"row": 91, "column": 53}, "end_point": {"row": 91, "column": 56}}, {"id": 413, "type": "binary_expression", "text": "abs(box.max - box.min)/2.0f", "parent": 399, "children": [414, 425, 426], "start_point": {"row": 91, "column": 58}, "end_point": {"row": 91, "column": 85}}, {"id": 414, "type": "call_expression", "text": "abs(box.max - box.min)", "parent": 413, "children": [415, 416], "start_point": {"row": 91, "column": 58}, "end_point": {"row": 91, "column": 80}}, {"id": 415, "type": "identifier", "text": "abs", "parent": 414, "children": [], "start_point": {"row": 91, "column": 58}, "end_point": {"row": 91, "column": 61}}, {"id": 416, "type": "argument_list", "text": "(box.max - box.min)", "parent": 414, "children": [417], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 80}}, {"id": 417, "type": "binary_expression", "text": "box.max - box.min", "parent": 416, "children": [418, 421, 422], "start_point": {"row": 91, "column": 62}, "end_point": {"row": 91, "column": 79}}, {"id": 418, "type": "field_expression", "text": "box.max", "parent": 417, "children": [419, 420], "start_point": {"row": 91, "column": 62}, "end_point": {"row": 91, "column": 69}}, {"id": 419, "type": "identifier", "text": "box", "parent": 418, "children": [], "start_point": {"row": 91, "column": 62}, "end_point": {"row": 91, "column": 65}}, {"id": 420, "type": "field_identifier", "text": "max", "parent": 418, "children": [], "start_point": {"row": 91, "column": 66}, "end_point": {"row": 91, "column": 69}}, {"id": 421, "type": "-", "text": "-", "parent": 417, "children": [], "start_point": {"row": 91, "column": 70}, "end_point": {"row": 91, "column": 71}}, {"id": 422, "type": "field_expression", "text": "box.min", "parent": 417, "children": [423, 424], "start_point": {"row": 91, "column": 72}, "end_point": {"row": 91, "column": 79}}, {"id": 423, "type": "identifier", "text": "box", "parent": 422, "children": [], "start_point": {"row": 91, "column": 72}, "end_point": {"row": 91, "column": 75}}, {"id": 424, "type": "field_identifier", "text": "min", "parent": 422, "children": [], "start_point": {"row": 91, "column": 76}, "end_point": {"row": 91, "column": 79}}, {"id": 425, "type": "/", "text": "/", "parent": 413, "children": [], "start_point": {"row": 91, "column": 80}, "end_point": {"row": 91, "column": 81}}, {"id": 426, "type": "number_literal", "text": "2.0f", "parent": 413, "children": [], "start_point": {"row": 91, "column": 81}, "end_point": {"row": 91, "column": 85}}, {"id": 427, "type": "field_declaration", "text": "Octree o(newOrigin,box,previousSize + i);", "parent": 38, "children": [428, 429], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 46}}, {"id": 428, "type": "type_identifier", "text": "Octree", "parent": 427, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 11}}, {"id": 429, "type": "function_declarator", "text": "o(newOrigin,box,previousSize + i)", "parent": 427, "children": [430, 431], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 45}}, {"id": 430, "type": "field_identifier", "text": "o", "parent": 429, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 13}}, {"id": 431, "type": "parameter_list", "text": "(newOrigin,box,previousSize + i)", "parent": 429, "children": [432, 434, 436], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 45}}, {"id": 432, "type": "parameter_declaration", "text": "newOrigin", "parent": 431, "children": [433], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 23}}, {"id": 433, "type": "type_identifier", "text": "newOrigin", "parent": 432, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 23}}, {"id": 434, "type": "parameter_declaration", "text": "box", "parent": 431, "children": [435], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 27}}, {"id": 435, "type": "type_identifier", "text": "box", "parent": 434, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 27}}, {"id": 436, "type": "parameter_declaration", "text": "previousSize + i", "parent": 431, "children": [437, 438, 440], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 44}}, {"id": 437, "type": "type_identifier", "text": "previousSize", "parent": 436, "children": [], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 40}}, {"id": 438, "type": "ERROR", "text": "+", "parent": 436, "children": [439], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 42}}, {"id": 439, "type": "+", "text": "+", "parent": 438, "children": [], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 42}}, {"id": 440, "type": "identifier", "text": "i", "parent": 436, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 44}}, {"id": 441, "type": "field_declaration", "text": "nodes.push_back(o);", "parent": 38, "children": [442, 443], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 24}}, {"id": 442, "type": "type_identifier", "text": "nodes", "parent": 441, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 10}}, {"id": 443, "type": "function_declarator", "text": "push_back(o)", "parent": 441, "children": [444, 445], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 23}}, {"id": 444, "type": "field_identifier", "text": "push_back", "parent": 443, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 20}}, {"id": 445, "type": "parameter_list", "text": "(o)", "parent": 443, "children": [446], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 23}}, {"id": 446, "type": "parameter_declaration", "text": "o", "parent": 445, "children": [447], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 22}}, {"id": 447, "type": "type_identifier", "text": "o", "parent": 446, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 22}}, {"id": 448, "type": "field_declaration", "text": "nodes[nodeIndex].childrenIndices[i] = previousSize + i;", "parent": 38, "children": [449, 450, 460], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 60}}, {"id": 449, "type": "type_identifier", "text": "nodes", "parent": 448, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 10}}, {"id": 450, "type": "ERROR", "text": "[nodeIndex].childrenIndices[i] = previousSize +", "parent": 448, "children": [451, 454, 457, 458, 459], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 57}}, {"id": 451, "type": "array_declarator", "text": "[nodeIndex]", "parent": 450, "children": [452, 453], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 21}}, {"id": 452, "type": "field_identifier", "text": "", "parent": 451, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 10}}, {"id": 453, "type": "identifier", "text": "nodeIndex", "parent": 451, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 20}}, {"id": 454, "type": "array_declarator", "text": "childrenIndices[i]", "parent": 450, "children": [455, 456], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 40}}, {"id": 455, "type": "field_identifier", "text": "childrenIndices", "parent": 454, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 37}}, {"id": 456, "type": "identifier", "text": "i", "parent": 454, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 39}}, {"id": 457, "type": "=", "text": "=", "parent": 450, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 42}}, {"id": 458, "type": "field_identifier", "text": "previousSize", "parent": 450, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 55}}, {"id": 459, "type": "+", "text": "+", "parent": 450, "children": [], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 57}}, {"id": 460, "type": "field_identifier", "text": "i", "parent": 448, "children": [], "start_point": {"row": 95, "column": 58}, "end_point": {"row": 95, "column": 59}}, {"id": 461, "type": "field_declaration", "text": "if(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n\t\t\t\t\t{\n\t\t\t\t\t\t//cout<< \"Add Object\" << endl; \n\n\t\t\t\t\t\tnodes[previousSize + i].addObject(object);", "parent": 38, "children": [462, 478, 485], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 102, "column": 48}}, {"id": 462, "type": "ERROR", "text": "(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n\t\t\t\t\t{", "parent": 461, "children": [463], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 99, "column": 6}}, {"id": 463, "type": "parenthesized_declarator", "text": "(objectBoxCollided(nodes[previousSize + i].boundingBox,object))", "parent": 462, "children": [464], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 70}}, {"id": 464, "type": "function_declarator", "text": "objectBoxCollided(nodes[previousSize + i].boundingBox,object)", "parent": 463, "children": [465, 466], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 69}}, {"id": 465, "type": "field_identifier", "text": "objectBoxCollided", "parent": 464, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 25}}, {"id": 466, "type": "parameter_list", "text": "(nodes[previousSize + i].boundingBox,object)", "parent": 464, "children": [467, 476], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 69}}, {"id": 467, "type": "parameter_declaration", "text": "nodes[previousSize + i].boundingBox", "parent": 466, "children": [468, 469, 475], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 61}}, {"id": 468, "type": "type_identifier", "text": "nodes", "parent": 467, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 31}}, {"id": 469, "type": "ERROR", "text": "[previousSize + i].", "parent": 467, "children": [470], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 50}}, {"id": 470, "type": "abstract_array_declarator", "text": "[previousSize + i]", "parent": 469, "children": [471], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 49}}, {"id": 471, "type": "binary_expression", "text": "previousSize + i", "parent": 470, "children": [472, 473, 474], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 48}}, {"id": 472, "type": "identifier", "text": "previousSize", "parent": 471, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 44}}, {"id": 473, "type": "+", "text": "+", "parent": 471, "children": [], "start_point": {"row": 98, "column": 45}, "end_point": {"row": 98, "column": 46}}, {"id": 474, "type": "identifier", "text": "i", "parent": 471, "children": [], "start_point": {"row": 98, "column": 47}, "end_point": {"row": 98, "column": 48}}, {"id": 475, "type": "identifier", "text": "boundingBox", "parent": 467, "children": [], "start_point": {"row": 98, "column": 50}, "end_point": {"row": 98, "column": 61}}, {"id": 476, "type": "parameter_declaration", "text": "object", "parent": 466, "children": [477], "start_point": {"row": 98, "column": 62}, "end_point": {"row": 98, "column": 68}}, {"id": 477, "type": "type_identifier", "text": "object", "parent": 476, "children": [], "start_point": {"row": 98, "column": 62}, "end_point": {"row": 98, "column": 68}}, {"id": 478, "type": "ERROR", "text": "nodes[previousSize + i].", "parent": 461, "children": [479], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 30}}, {"id": 479, "type": "array_declarator", "text": "nodes[previousSize + i]", "parent": 478, "children": [480, 481], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 29}}, {"id": 480, "type": "field_identifier", "text": "nodes", "parent": 479, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 11}}, {"id": 481, "type": "binary_expression", "text": "previousSize + i", "parent": 479, "children": [482, 483, 484], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 28}}, {"id": 482, "type": "identifier", "text": "previousSize", "parent": 481, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 24}}, {"id": 483, "type": "+", "text": "+", "parent": 481, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 26}}, {"id": 484, "type": "identifier", "text": "i", "parent": 481, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 28}}, {"id": 485, "type": "function_declarator", "text": "addObject(object)", "parent": 461, "children": [486, 487], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 47}}, {"id": 486, "type": "field_identifier", "text": "addObject", "parent": 485, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 39}}, {"id": 487, "type": "parameter_list", "text": "(object)", "parent": 485, "children": [488], "start_point": {"row": 102, "column": 39}, "end_point": {"row": 102, "column": 47}}, {"id": 488, "type": "parameter_declaration", "text": "object", "parent": 487, "children": [489], "start_point": {"row": 102, "column": 40}, "end_point": {"row": 102, "column": 46}}, {"id": 489, "type": "type_identifier", "text": "object", "parent": 488, "children": [], "start_point": {"row": 102, "column": 40}, "end_point": {"row": 102, "column": 46}}, {"id": 490, "type": "ERROR", "text": "}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tnodes[nodeIndex].", "parent": 37, "children": [491], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 110, "column": 21}}, {"id": 491, "type": "array_declarator", "text": "nodes[nodeIndex]", "parent": 490, "children": [492, 493], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 20}}, {"id": 492, "type": "identifier", "text": "nodes", "parent": 491, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 9}}, {"id": 493, "type": "identifier", "text": "nodeIndex", "parent": 491, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 19}}, {"id": 494, "type": "init_declarator", "text": "treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index", "parent": 37, "children": [495, 505, 506], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 83}}, {"id": 495, "type": "array_declarator", "text": "treeObjects[nodes[nodeIndex].numberOfObjects-1]", "parent": 494, "children": [496, 497], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 68}}, {"id": 496, "type": "identifier", "text": "treeObjects", "parent": 495, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 32}}, {"id": 497, "type": "binary_expression", "text": "nodes[nodeIndex].numberOfObjects-1", "parent": 495, "children": [498, 503, 504], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 67}}, {"id": 498, "type": "field_expression", "text": "nodes[nodeIndex].numberOfObjects", "parent": 497, "children": [499, 502], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 65}}, {"id": 499, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 498, "children": [500, 501], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 49}}, {"id": 500, "type": "identifier", "text": "nodes", "parent": 499, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 38}}, {"id": 501, "type": "identifier", "text": "nodeIndex", "parent": 499, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 48}}, {"id": 502, "type": "field_identifier", "text": "numberOfObjects", "parent": 498, "children": [], "start_point": {"row": 110, "column": 50}, "end_point": {"row": 110, "column": 65}}, {"id": 503, "type": "-", "text": "-", "parent": 497, "children": [], "start_point": {"row": 110, "column": 65}, "end_point": {"row": 110, "column": 66}}, {"id": 504, "type": "number_literal", "text": "1", "parent": 497, "children": [], "start_point": {"row": 110, "column": 66}, "end_point": {"row": 110, "column": 67}}, {"id": 505, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 110, "column": 69}, "end_point": {"row": 110, "column": 70}}, {"id": 506, "type": "field_expression", "text": "object.index", "parent": 494, "children": [507, 508], "start_point": {"row": 110, "column": 71}, "end_point": {"row": 110, "column": 83}}, {"id": 507, "type": "identifier", "text": "object", "parent": 506, "children": [], "start_point": {"row": 110, "column": 71}, "end_point": {"row": 110, "column": 77}}, {"id": 508, "type": "field_identifier", "text": "index", "parent": 506, "children": [], "start_point": {"row": 110, "column": 78}, "end_point": {"row": 110, "column": 83}}, {"id": 509, "type": "ERROR", "text": "}\n\t\t}\n\t\telse", "parent": null, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 113, "column": 6}}, {"id": 510, "type": "for_statement", "text": "for (int i = 0; i < 8; i++)\n\t\t\t{\n\t\t\t\tif(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n\t\t\t\t{\n\t\t\t\t\tnodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n\t\t\t\t}\n\t\t\t}", "parent": null, "children": [511, 517, 521], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 121, "column": 4}}, {"id": 511, "type": "declaration", "text": "int i = 0;", "parent": 510, "children": [512, 513], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 18}}, {"id": 512, "type": "primitive_type", "text": "int", "parent": 511, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 11}}, {"id": 513, "type": "init_declarator", "text": "i = 0", "parent": 511, "children": [514, 515, 516], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 17}}, {"id": 514, "type": "identifier", "text": "i", "parent": 513, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 13}}, {"id": 515, "type": "=", "text": "=", "parent": 513, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 15}}, {"id": 516, "type": "number_literal", "text": "0", "parent": 513, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 17}}, {"id": 517, "type": "binary_expression", "text": "i < 8", "parent": 510, "children": [518, 519, 520], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 24}}, {"id": 518, "type": "identifier", "text": "i", "parent": 517, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 20}}, {"id": 519, "type": "<", "text": "<", "parent": 517, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 22}}, {"id": 520, "type": "number_literal", "text": "8", "parent": 517, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 24}}, {"id": 521, "type": "update_expression", "text": "i++", "parent": 510, "children": [522, 523], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 29}}, {"id": 522, "type": "identifier", "text": "i", "parent": 521, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 27}}, {"id": 523, "type": "++", "text": "++", "parent": 521, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 29}}, {"id": 524, "type": "if_statement", "text": "if(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n\t\t\t\t{\n\t\t\t\t\tnodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n\t\t\t\t}", "parent": 510, "children": [525], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 120, "column": 5}}, {"id": 525, "type": "parenthesized_expression", "text": "(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))", "parent": 524, "children": [526], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 88}}, {"id": 526, "type": "call_expression", "text": "objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object)", "parent": 525, "children": [527, 528], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 87}}, {"id": 527, "type": "identifier", "text": "objectBoxCollided", "parent": 526, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 24}}, {"id": 528, "type": "argument_list", "text": "(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object)", "parent": 526, "children": [529, 540], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 87}}, {"id": 529, "type": "field_expression", "text": "nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox", "parent": 528, "children": [530, 539], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 79}}, {"id": 530, "type": "subscript_expression", "text": "nodes[nodes[nodeIndex].childrenIndices[i]]", "parent": 529, "children": [531, 532], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 67}}, {"id": 531, "type": "identifier", "text": "nodes", "parent": 530, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 30}}, {"id": 532, "type": "subscript_expression", "text": "nodes[nodeIndex].childrenIndices[i]", "parent": 530, "children": [533, 538], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 66}}, {"id": 533, "type": "field_expression", "text": "nodes[nodeIndex].childrenIndices", "parent": 532, "children": [534, 537], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 63}}, {"id": 534, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 533, "children": [535, 536], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 47}}, {"id": 535, "type": "identifier", "text": "nodes", "parent": 534, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 36}}, {"id": 536, "type": "identifier", "text": "nodeIndex", "parent": 534, "children": [], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 46}}, {"id": 537, "type": "field_identifier", "text": "childrenIndices", "parent": 533, "children": [], "start_point": {"row": 117, "column": 48}, "end_point": {"row": 117, "column": 63}}, {"id": 538, "type": "identifier", "text": "i", "parent": 532, "children": [], "start_point": {"row": 117, "column": 64}, "end_point": {"row": 117, "column": 65}}, {"id": 539, "type": "field_identifier", "text": "boundingBox", "parent": 529, "children": [], "start_point": {"row": 117, "column": 68}, "end_point": {"row": 117, "column": 79}}, {"id": 540, "type": "identifier", "text": "object", "parent": 528, "children": [], "start_point": {"row": 117, "column": 80}, "end_point": {"row": 117, "column": 86}}, {"id": 541, "type": "call_expression", "text": "nodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes)", "parent": 524, "children": [542, 553], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 65}}, {"id": 542, "type": "field_expression", "text": "nodes[nodes[nodeIndex].childrenIndices[i]].add", "parent": 541, "children": [543, 552], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 51}}, {"id": 543, "type": "subscript_expression", "text": "nodes[nodes[nodeIndex].childrenIndices[i]]", "parent": 542, "children": [544, 545], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 47}}, {"id": 544, "type": "identifier", "text": "nodes", "parent": 543, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 10}}, {"id": 545, "type": "subscript_expression", "text": "nodes[nodeIndex].childrenIndices[i]", "parent": 543, "children": [546, 551], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 46}}, {"id": 546, "type": "field_expression", "text": "nodes[nodeIndex].childrenIndices", "parent": 545, "children": [547, 550], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 43}}, {"id": 547, "type": "subscript_expression", "text": "nodes[nodeIndex]", "parent": 546, "children": [548, 549], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 27}}, {"id": 548, "type": "identifier", "text": "nodes", "parent": 547, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 16}}, {"id": 549, "type": "identifier", "text": "nodeIndex", "parent": 547, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 26}}, {"id": 550, "type": "field_identifier", "text": "childrenIndices", "parent": 546, "children": [], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 43}}, {"id": 551, "type": "identifier", "text": "i", "parent": 545, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 552, "type": "field_identifier", "text": "add", "parent": 542, "children": [], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 51}}, {"id": 553, "type": "argument_list", "text": "(object,nodes)", "parent": 541, "children": [554, 555], "start_point": {"row": 119, "column": 51}, "end_point": {"row": 119, "column": 65}}, {"id": 554, "type": "identifier", "text": "object", "parent": 553, "children": [], "start_point": {"row": 119, "column": 52}, "end_point": {"row": 119, "column": 58}}, {"id": 555, "type": "identifier", "text": "nodes", "parent": 553, "children": [], "start_point": {"row": 119, "column": 59}, "end_point": {"row": 119, "column": 64}}, {"id": 556, "type": "function_definition", "text": "void addObject(Object o)\n\t{\n\t\ttreeObjects[numberOfObjects++] = o.index;\n\t}", "parent": null, "children": [557, 558], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 128, "column": 2}}, {"id": 557, "type": "primitive_type", "text": "void", "parent": 556, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 5}}, {"id": 558, "type": "function_declarator", "text": "addObject(Object o)", "parent": 556, "children": [559, 560], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 25}}, {"id": 559, "type": "identifier", "text": "addObject", "parent": 558, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 15}}, {"id": 560, "type": "parameter_list", "text": "(Object o)", "parent": 558, "children": [561], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 25}}, {"id": 561, "type": "parameter_declaration", "text": "Object o", "parent": 560, "children": [562, 563], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 24}}, {"id": 562, "type": "type_identifier", "text": "Object", "parent": 561, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 22}}, {"id": 563, "type": "identifier", "text": "o", "parent": 561, "children": [], "start_point": {"row": 125, "column": 23}, "end_point": {"row": 125, "column": 24}}, {"id": 564, "type": "assignment_expression", "text": "treeObjects[numberOfObjects++] = o.index", "parent": 556, "children": [565, 570, 571], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 42}}, {"id": 565, "type": "subscript_expression", "text": "treeObjects[numberOfObjects++]", "parent": 564, "children": [566, 567], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 32}}, {"id": 566, "type": "identifier", "text": "treeObjects", "parent": 565, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 13}}, {"id": 567, "type": "update_expression", "text": "numberOfObjects++", "parent": 565, "children": [568, 569], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 31}}, {"id": 568, "type": "identifier", "text": "numberOfObjects", "parent": 567, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 29}}, {"id": 569, "type": "++", "text": "++", "parent": 567, "children": [], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 31}}, {"id": 570, "type": "=", "text": "=", "parent": 564, "children": [], "start_point": {"row": 127, "column": 33}, "end_point": {"row": 127, "column": 34}}, {"id": 571, "type": "field_expression", "text": "o.index", "parent": 564, "children": [572, 573], "start_point": {"row": 127, "column": 35}, "end_point": {"row": 127, "column": 42}}, {"id": 572, "type": "identifier", "text": "o", "parent": 571, "children": [], "start_point": {"row": 127, "column": 35}, "end_point": {"row": 127, "column": 36}}, {"id": 573, "type": "field_identifier", "text": "index", "parent": 571, "children": [], "start_point": {"row": 127, "column": 37}, "end_point": {"row": 127, "column": 42}}, {"id": 574, "type": "function_definition", "text": "void add(const std::vector<Object> & objects , std::vector<Octree> & nodes)\n\t{\n\n\t\tfor (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\tadd(objects[i], nodes);\n\t\t}\n\t}", "parent": null, "children": [575, 576], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 137, "column": 2}}, {"id": 575, "type": "primitive_type", "text": "void", "parent": 574, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 5}}, {"id": 576, "type": "function_declarator", "text": "add(const std::vector<Object> & objects , std::vector<Octree> & nodes)", "parent": 574, "children": [577, 578], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 76}}, {"id": 577, "type": "identifier", "text": "add", "parent": 576, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 9}}, {"id": 578, "type": "parameter_list", "text": "(const std::vector<Object> & objects , std::vector<Octree> & nodes)", "parent": 576, "children": [579, 587], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 76}}, {"id": 579, "type": "parameter_declaration", "text": "const std::vector<Object> & objects", "parent": 578, "children": [580, 581, 586], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 45}}, {"id": 580, "type": "type_identifier", "text": "std", "parent": 579, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 19}}, {"id": 581, "type": "ERROR", "text": "::vector<Object> &", "parent": 579, "children": [582, 583, 584, 585], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 37}}, {"id": 582, "type": "identifier", "text": "vector", "parent": 581, "children": [], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 27}}, {"id": 583, "type": "<", "text": "<", "parent": 581, "children": [], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 28}}, {"id": 584, "type": "identifier", "text": "Object", "parent": 581, "children": [], "start_point": {"row": 130, "column": 28}, "end_point": {"row": 130, "column": 34}}, {"id": 585, "type": ">", "text": ">", "parent": 581, "children": [], "start_point": {"row": 130, "column": 34}, "end_point": {"row": 130, "column": 35}}, {"id": 586, "type": "identifier", "text": "objects", "parent": 579, "children": [], "start_point": {"row": 130, "column": 38}, "end_point": {"row": 130, "column": 45}}, {"id": 587, "type": "parameter_declaration", "text": "std::vector<Octree> & nodes", "parent": 578, "children": [588, 589, 594], "start_point": {"row": 130, "column": 48}, "end_point": {"row": 130, "column": 75}}, {"id": 588, "type": "type_identifier", "text": "std", "parent": 587, "children": [], "start_point": {"row": 130, "column": 48}, "end_point": {"row": 130, "column": 51}}, {"id": 589, "type": "ERROR", "text": "::vector<Octree> &", "parent": 587, "children": [590, 591, 592, 593], "start_point": {"row": 130, "column": 51}, "end_point": {"row": 130, "column": 69}}, {"id": 590, "type": "identifier", "text": "vector", "parent": 589, "children": [], "start_point": {"row": 130, "column": 53}, "end_point": {"row": 130, "column": 59}}, {"id": 591, "type": "<", "text": "<", "parent": 589, "children": [], "start_point": {"row": 130, "column": 59}, "end_point": {"row": 130, "column": 60}}, {"id": 592, "type": "identifier", "text": "Octree", "parent": 589, "children": [], "start_point": {"row": 130, "column": 60}, "end_point": {"row": 130, "column": 66}}, {"id": 593, "type": ">", "text": ">", "parent": 589, "children": [], "start_point": {"row": 130, "column": 66}, "end_point": {"row": 130, "column": 67}}, {"id": 594, "type": "identifier", "text": "nodes", "parent": 587, "children": [], "start_point": {"row": 130, "column": 70}, "end_point": {"row": 130, "column": 75}}, {"id": 595, "type": "for_statement", "text": "for (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\tadd(objects[i], nodes);\n\t\t}", "parent": 574, "children": [596, 602, 610], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 136, "column": 3}}, {"id": 596, "type": "declaration", "text": "int i = 0;", "parent": 595, "children": [597, 598], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 17}}, {"id": 597, "type": "primitive_type", "text": "int", "parent": 596, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 10}}, {"id": 598, "type": "init_declarator", "text": "i = 0", "parent": 596, "children": [599, 600, 601], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 16}}, {"id": 599, "type": "identifier", "text": "i", "parent": 598, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 12}}, {"id": 600, "type": "=", "text": "=", "parent": 598, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 14}}, {"id": 601, "type": "number_literal", "text": "0", "parent": 598, "children": [], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 16}}, {"id": 602, "type": "binary_expression", "text": "i < objects.size()", "parent": 595, "children": [603, 604, 605], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 36}}, {"id": 603, "type": "identifier", "text": "i", "parent": 602, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 604, "type": "<", "text": "<", "parent": 602, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 21}}, {"id": 605, "type": "call_expression", "text": "objects.size()", "parent": 602, "children": [606, 609], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 36}}, {"id": 606, "type": "field_expression", "text": "objects.size", "parent": 605, "children": [607, 608], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 34}}, {"id": 607, "type": "identifier", "text": "objects", "parent": 606, "children": [], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 29}}, {"id": 608, "type": "field_identifier", "text": "size", "parent": 606, "children": [], "start_point": {"row": 133, "column": 30}, "end_point": {"row": 133, "column": 34}}, {"id": 609, "type": "argument_list", "text": "()", "parent": 605, "children": [], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 36}}, {"id": 610, "type": "update_expression", "text": "i++", "parent": 595, "children": [611, 612], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 41}}, {"id": 611, "type": "identifier", "text": "i", "parent": 610, "children": [], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 39}}, {"id": 612, "type": "++", "text": "++", "parent": 610, "children": [], "start_point": {"row": 133, "column": 39}, "end_point": {"row": 133, "column": 41}}, {"id": 613, "type": "call_expression", "text": "add(objects[i], nodes)", "parent": 595, "children": [614, 615], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 25}}, {"id": 614, "type": "identifier", "text": "add", "parent": 613, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 6}}, {"id": 615, "type": "argument_list", "text": "(objects[i], nodes)", "parent": 613, "children": [616, 619], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 25}}, {"id": 616, "type": "subscript_expression", "text": "objects[i]", "parent": 615, "children": [617, 618], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 17}}, {"id": 617, "type": "identifier", "text": "objects", "parent": 616, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 14}}, {"id": 618, "type": "identifier", "text": "i", "parent": 616, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 16}}, {"id": 619, "type": "identifier", "text": "nodes", "parent": 615, "children": [], "start_point": {"row": 135, "column": 19}, "end_point": {"row": 135, "column": 24}}, {"id": 620, "type": "declaration", "text": "struct OctreeManager\n{\n\tOctreeManager(Octree root) //: root(root)\n\t{\n\t\toctreeNodes.push_back(root);\n\t}\n\n\t//Octree root;\n\tstd::vector<Octree> octreeNodes;", "parent": null, "children": [621, 638, 644], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 149, "column": 33}}, {"id": 621, "type": "struct_specifier", "text": "struct OctreeManager\n{\n\tOctreeManager(Octree root) //: root(root)\n\t{\n\t\toctreeNodes.push_back(root);\n\t}", "parent": 620, "children": [622, 623], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 146, "column": 2}}, {"id": 622, "type": "struct", "text": "struct", "parent": 621, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 6}}, {"id": 623, "type": "type_identifier", "text": "OctreeManager", "parent": 621, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 20}}, {"id": 624, "type": "field_declaration", "text": "OctreeManager(Octree root) //: root(root)\n\t{\n\t\toctreeNodes.push_back(root);", "parent": 621, "children": [625, 631, 633], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 145, "column": 30}}, {"id": 625, "type": "macro_type_specifier", "text": "OctreeManager(Octree root)", "parent": 624, "children": [626, 627, 629], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 27}}, {"id": 626, "type": "identifier", "text": "OctreeManager", "parent": 625, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 14}}, {"id": 627, "type": "type_descriptor", "text": "Octree", "parent": 625, "children": [628], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 21}}, {"id": 628, "type": "type_identifier", "text": "Octree", "parent": 627, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 21}}, {"id": 629, "type": "ERROR", "text": "root", "parent": 625, "children": [630], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 26}}, {"id": 630, "type": "identifier", "text": "root", "parent": 629, "children": [], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 26}}, {"id": 631, "type": "ERROR", "text": "{\n\t\toctreeNodes.", "parent": 624, "children": [632], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 145, "column": 14}}, {"id": 632, "type": "field_identifier", "text": "octreeNodes", "parent": 631, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 13}}, {"id": 633, "type": "function_declarator", "text": "push_back(root)", "parent": 624, "children": [634, 635], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 29}}, {"id": 634, "type": "field_identifier", "text": "push_back", "parent": 633, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 23}}, {"id": 635, "type": "parameter_list", "text": "(root)", "parent": 633, "children": [636], "start_point": {"row": 145, "column": 23}, "end_point": {"row": 145, "column": 29}}, {"id": 636, "type": "parameter_declaration", "text": "root", "parent": 635, "children": [637], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 28}}, {"id": 637, "type": "type_identifier", "text": "root", "parent": 636, "children": [], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 28}}, {"id": 638, "type": "ERROR", "text": "std::vector<Octree>", "parent": 620, "children": [639, 640, 641, 642, 643], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 20}}, {"id": 639, "type": "identifier", "text": "std", "parent": 638, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 4}}, {"id": 640, "type": "identifier", "text": "vector", "parent": 638, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 12}}, {"id": 641, "type": "<", "text": "<", "parent": 638, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 13}}, {"id": 642, "type": "identifier", "text": "Octree", "parent": 638, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 19}}, {"id": 643, "type": ">", "text": ">", "parent": 638, "children": [], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 20}}, {"id": 644, "type": "identifier", "text": "octreeNodes", "parent": 620, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 32}}, {"id": 645, "type": "function_definition", "text": "void insert(const std::vector<Object> & objects )\n\t{\n\t\tfor (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\toctreeNodes[0].add(objects[i],octreeNodes);\n\t\t}\t\n\t}", "parent": null, "children": [646, 647], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 156, "column": 2}}, {"id": 646, "type": "primitive_type", "text": "void", "parent": 645, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 5}}, {"id": 647, "type": "function_declarator", "text": "insert(const std::vector<Object> & objects )", "parent": 645, "children": [648, 649], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 50}}, {"id": 648, "type": "identifier", "text": "insert", "parent": 647, "children": [], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 12}}, {"id": 649, "type": "parameter_list", "text": "(const std::vector<Object> & objects )", "parent": 647, "children": [650], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 50}}, {"id": 650, "type": "parameter_declaration", "text": "const std::vector<Object> & objects", "parent": 649, "children": [651, 652, 657], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 48}}, {"id": 651, "type": "type_identifier", "text": "std", "parent": 650, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 22}}, {"id": 652, "type": "ERROR", "text": "::vector<Object> &", "parent": 650, "children": [653, 654, 655, 656], "start_point": {"row": 150, "column": 22}, "end_point": {"row": 150, "column": 40}}, {"id": 653, "type": "identifier", "text": "vector", "parent": 652, "children": [], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 30}}, {"id": 654, "type": "<", "text": "<", "parent": 652, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 31}}, {"id": 655, "type": "identifier", "text": "Object", "parent": 652, "children": [], "start_point": {"row": 150, "column": 31}, "end_point": {"row": 150, "column": 37}}, {"id": 656, "type": ">", "text": ">", "parent": 652, "children": [], "start_point": {"row": 150, "column": 37}, "end_point": {"row": 150, "column": 38}}, {"id": 657, "type": "identifier", "text": "objects", "parent": 650, "children": [], "start_point": {"row": 150, "column": 41}, "end_point": {"row": 150, "column": 48}}, {"id": 658, "type": "for_statement", "text": "for (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\toctreeNodes[0].add(objects[i],octreeNodes);\n\t\t}", "parent": 645, "children": [659, 665, 673], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 155, "column": 3}}, {"id": 659, "type": "declaration", "text": "int i = 0;", "parent": 658, "children": [660, 661], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 17}}, {"id": 660, "type": "primitive_type", "text": "int", "parent": 659, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 10}}, {"id": 661, "type": "init_declarator", "text": "i = 0", "parent": 659, "children": [662, 663, 664], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 16}}, {"id": 662, "type": "identifier", "text": "i", "parent": 661, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 12}}, {"id": 663, "type": "=", "text": "=", "parent": 661, "children": [], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 14}}, {"id": 664, "type": "number_literal", "text": "0", "parent": 661, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 16}}, {"id": 665, "type": "binary_expression", "text": "i < objects.size()", "parent": 658, "children": [666, 667, 668], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 36}}, {"id": 666, "type": "identifier", "text": "i", "parent": 665, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 19}}, {"id": 667, "type": "<", "text": "<", "parent": 665, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 21}}, {"id": 668, "type": "call_expression", "text": "objects.size()", "parent": 665, "children": [669, 672], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 36}}, {"id": 669, "type": "field_expression", "text": "objects.size", "parent": 668, "children": [670, 671], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 34}}, {"id": 670, "type": "identifier", "text": "objects", "parent": 669, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 29}}, {"id": 671, "type": "field_identifier", "text": "size", "parent": 669, "children": [], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 34}}, {"id": 672, "type": "argument_list", "text": "()", "parent": 668, "children": [], "start_point": {"row": 152, "column": 34}, "end_point": {"row": 152, "column": 36}}, {"id": 673, "type": "update_expression", "text": "i++", "parent": 658, "children": [674, 675], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 41}}, {"id": 674, "type": "identifier", "text": "i", "parent": 673, "children": [], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 39}}, {"id": 675, "type": "++", "text": "++", "parent": 673, "children": [], "start_point": {"row": 152, "column": 39}, "end_point": {"row": 152, "column": 41}}, {"id": 676, "type": "call_expression", "text": "octreeNodes[0].add(objects[i],octreeNodes)", "parent": 658, "children": [677, 682], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 45}}, {"id": 677, "type": "field_expression", "text": "octreeNodes[0].add", "parent": 676, "children": [678, 681], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 21}}, {"id": 678, "type": "subscript_expression", "text": "octreeNodes[0]", "parent": 677, "children": [679, 680], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 17}}, {"id": 679, "type": "identifier", "text": "octreeNodes", "parent": 678, "children": [], "start_point": {"row": 154, "column": 3}, "end_point": {"row": 154, "column": 14}}, {"id": 680, "type": "number_literal", "text": "0", "parent": 678, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 16}}, {"id": 681, "type": "field_identifier", "text": "add", "parent": 677, "children": [], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 21}}, {"id": 682, "type": "argument_list", "text": "(objects[i],octreeNodes)", "parent": 676, "children": [683, 686], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 45}}, {"id": 683, "type": "subscript_expression", "text": "objects[i]", "parent": 682, "children": [684, 685], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 32}}, {"id": 684, "type": "identifier", "text": "objects", "parent": 683, "children": [], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 29}}, {"id": 685, "type": "identifier", "text": "i", "parent": 683, "children": [], "start_point": {"row": 154, "column": 30}, "end_point": {"row": 154, "column": 31}}, {"id": 686, "type": "identifier", "text": "octreeNodes", "parent": 682, "children": [], "start_point": {"row": 154, "column": 33}, "end_point": {"row": 154, "column": 44}}]}, "node_categories": {"declarations": {"functions": [49, 64, 106, 112, 127, 142, 170, 176, 207, 237, 253, 429, 443, 464, 485, 556, 558, 574, 576, 633, 645, 647], "variables": [15, 20, 25, 31, 37, 41, 51, 71, 108, 114, 129, 149, 209, 212, 256, 262, 302, 307, 323, 339, 355, 367, 427, 432, 434, 436, 441, 446, 448, 461, 467, 476, 488, 511, 561, 579, 587, 596, 620, 624, 636, 650, 659], "classes": [38, 39, 621, 622], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [283, 286, 287, 288, 289, 295, 296, 297, 374, 377, 378, 387, 390, 391, 405, 406, 407, 413, 414, 417, 418, 422, 471, 481, 497, 498, 499, 506, 517, 521, 525, 526, 529, 530, 532, 533, 534, 541, 542, 543, 545, 546, 547, 565, 567, 571, 602, 605, 606, 610, 613, 616, 665, 668, 669, 673, 676, 677, 678, 683], "assignments": [279, 402, 564], "loops": [510, 595, 658], "conditionals": [16, 18, 19, 21, 23, 24, 28, 34, 40, 42, 43, 46, 53, 57, 60, 63, 66, 74, 77, 79, 80, 84, 86, 90, 91, 94, 95, 97, 98, 100, 103, 105, 109, 111, 115, 117, 118, 122, 123, 125, 131, 135, 138, 141, 144, 152, 155, 157, 158, 162, 164, 169, 175, 179, 184, 185, 188, 193, 195, 197, 198, 199, 201, 203, 206, 210, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 232, 234, 236, 240, 242, 244, 247, 250, 252, 254, 259, 261, 263, 267, 270, 273, 275, 278, 280, 282, 284, 290, 291, 292, 293, 298, 299, 300, 301, 303, 308, 310, 312, 313, 317, 324, 326, 328, 329, 333, 340, 342, 344, 345, 349, 356, 358, 359, 362, 363, 364, 366, 368, 369, 372, 375, 379, 380, 381, 382, 385, 388, 392, 393, 394, 395, 398, 401, 403, 408, 409, 410, 412, 415, 419, 420, 423, 424, 428, 430, 433, 435, 437, 440, 442, 444, 447, 449, 452, 453, 455, 456, 458, 460, 465, 468, 472, 474, 475, 477, 480, 482, 484, 486, 489, 492, 493, 496, 500, 501, 502, 507, 508, 514, 518, 522, 524, 527, 531, 535, 536, 537, 538, 539, 540, 544, 548, 549, 550, 551, 552, 554, 555, 559, 562, 563, 566, 568, 572, 573, 577, 580, 582, 584, 586, 588, 590, 592, 594, 599, 603, 607, 608, 611, 614, 617, 618, 619, 623, 625, 626, 628, 630, 632, 634, 637, 639, 640, 642, 644, 648, 651, 653, 655, 657, 662, 666, 670, 671, 674, 679, 681, 684, 685, 686], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 30, 36, 48, 56, 59, 69, 76, 88, 120, 134, 137, 147, 154, 166, 181, 183, 190, 245, 269, 272, 306, 319, 321, 322, 335, 337, 338, 351, 353, 354, 384, 397, 426, 504, 516, 520, 601, 664, 680], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [276, 373, 386, 399]}}, "cross_language_map": {"function_declarations": [{"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "(int i = 0; i < 8; i++)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "(origin)"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "(boundingBox)"}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "(int i = 0; i < 8; i++)"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "(Object object, std::vector<Octree> & nodes)"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 253, "universal_type": "function", "name": "unknown", "text_snippet": "size()"}, {"node_id": 429, "universal_type": "function", "name": "unknown", "text_snippet": "o(newOrigin,box,previousSize + i)"}, {"node_id": 443, "universal_type": "function", "name": "unknown", "text_snippet": "push_back(o)"}, {"node_id": 464, "universal_type": "function", "name": "unknown", "text_snippet": "objectBoxCollided(nodes[previousSize + i].boundingBox,object)"}, {"node_id": 485, "universal_type": "function", "name": "unknown", "text_snippet": "addObject(object)"}, {"node_id": 556, "universal_type": "function", "name": "addObject", "text_snippet": "void addObject(Object o)\n\t{\n\t\ttreeObjects[numberOfObjects++] = o.index;\n\t}"}, {"node_id": 558, "universal_type": "function", "name": "unknown", "text_snippet": "addObject(Object o)"}, {"node_id": 574, "universal_type": "function", "name": "add", "text_snippet": "void add(const std::vector<Object> & objects , std::vector<Octree> & nodes)\n\t{\n\n\t\tfor (int i = 0; i "}, {"node_id": 576, "universal_type": "function", "name": "unknown", "text_snippet": "add(const std::vector<Object> & objects , std::vector<Octree> & nodes)"}, {"node_id": 633, "universal_type": "function", "name": "unknown", "text_snippet": "push_back(root)"}, {"node_id": 645, "universal_type": "function", "name": "insert", "text_snippet": "void insert(const std::vector<Object> & objects )\n\t{\n\t\tfor (int i = 0; i < objects.size(); i++)\n\t\t{\n"}, {"node_id": 647, "universal_type": "function", "name": "unknown", "text_snippet": "insert(const std::vector<Object> & objects )"}], "class_declarations": [{"node_id": 38, "universal_type": "class", "name": "Octree", "text_snippet": "struct Octree\n{\n\n\tOctree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndi"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 621, "universal_type": "class", "name": "OctreeManager", "text_snippet": "struct OctreeManager\n{\n\tOctreeManager(Octree root) //: root(root)\n\t{\n\t\toctreeNodes.push_back(root);\n"}, {"node_id": 622, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <glm.hpp>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <vector>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Helper.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <iostream>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n#include <glm.hpp>\n\n#include <vector>\n#include <Helper.h>\n#include <iostream>\n\n\n/*\nAn easy way to keep track of what object has moved is once it has moved remove this object and then see if it can be inserted completely into the parent,\nif not continue up until there is a parent that the object can completely fix inside of.\n\n*/\n\nusing std::cout;\nusing std::endl;\n\nstatic const int OCTREE_MAX_OBJECTS = 5;\nstatic const int MAX_DEPTH = 20;\nstruct Octree\n{\n\n\tOctree() : numberOfObjects(0)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\tOctree(glm::vec3 origin, BBox boundingBox, int index)\n\t\t: origin(origin), boundingBox(boundingBox), numberOfObjects(0), index(index)\n\t{\n\t\tfor (int i = 0; i < 8; i++)\n\t\t{\n\t\t\tchildrenIndices[i] = -1;\n\t\t}\n\t\tfor (int i = 0; i < OCTREE_MAX_OBJECTS; i++)\n\t\t{\n\t\t\ttreeObjects[i] = -1;\n\t\t}\n\t}\n\n\t~Octree()\n\t{\n\n\t}\n\n\tinline bool isLeaf()\n\t{\n\t\treturn childrenIndices[0] == -1;\n\t}\n\t\n\tBBox boundingBox;\n\tint childrenIndices[8];\n\tint treeObjects[OCTREE_MAX_OBJECTS];\n\tglm::vec3 origin;\n\tint index;\n\tint numberOfObjects;\n\n\n\n\tvoid add(Object object, std::vector<Octree> & nodes)\n\t{\n\t\tint nodeIndex = index;\n\t\tnodes[nodeIndex].numberOfObjects++;\n\t\tif(nodes[nodeIndex].isLeaf())\n\t\t{\n\t\t\tif(nodes[nodeIndex].numberOfObjects-1 >= OCTREE_MAX_OBJECTS)\n\t\t\t{\n\t\t\t\tint previousSize = nodes.size();\n\t\t\t\t//nodes.reserve(nodes.size() + 8);\n\n\t\t\t\tint j = previousSize;\n\t\t\t\tfor (int i = 0; i < 8; i++)\n\t\t\t\t{\n\n\t\t\t\t\tglm::vec3 octantHalfDimension = glm::abs(nodes[nodeIndex].boundingBox.max - nodes[nodeIndex].boundingBox.min);\n\t\t\t\t\toctantHalfDimension /= 2.0f;\n\t\t\t\t\t\n\t\t\t\t\toctantHalfDimension.x = octantHalfDimension.x * (i&4 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.y = octantHalfDimension.y * (i&2 ? 1.0f : -1.0f);\n\t\t\t\t\toctantHalfDimension.z = octantHalfDimension.z * (i&1 ? 1.0f : -1.0f);\n\n\t\t\t\t\tglm::vec3 newBoxDimension = nodes[nodeIndex].origin + octantHalfDimension;\n\n\t\t\t\t\tBBox box = {glm::min(nodes[nodeIndex].origin,newBoxDimension) ,0.0f,glm::max(nodes[nodeIndex].origin,newBoxDimension), 0.0f};\n\t\t\t\t\tglm::vec3 newOrigin = nodes[nodeIndex].origin + glm::abs(box.max - box.min)/2.0f;\n\t\t\t\t\tOctree o(newOrigin,box,previousSize + i);\n\t\t\t\t\t//cout<< \"Push Back\" << endl; \n\t\t\t\t\tnodes.push_back(o);\n\t\t\t\t\tnodes[nodeIndex].childrenIndices[i] = previousSize + i;\n\t\t\t\t\t//cout<< \"If Collision\" << endl; \n\n\t\t\t\t\tif(objectBoxCollided(nodes[previousSize + i].boundingBox,object))\n\t\t\t\t\t{\n\t\t\t\t\t\t//cout<< \"Add Object\" << endl; \n\n\t\t\t\t\t\tnodes[previousSize + i].addObject(object);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tnodes[nodeIndex].treeObjects[nodes[nodeIndex].numberOfObjects-1] = object.index;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (int i = 0; i < 8; i++)\n\t\t\t{\n\t\t\t\tif(objectBoxCollided(nodes[nodes[nodeIndex].childrenIndices[i]].boundingBox,object))\n\t\t\t\t{\n\t\t\t\t\tnodes[nodes[nodeIndex].childrenIndices[i]].add(object,nodes);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tvoid addObject(Object o)\n\t{\n\t\ttreeObjects[numberOfObjects++] = o.index;\n\t}\n\n\tvoid add(const std::vector<Object> & objects , std::vector<Octree> & nodes)\n\t{\n\n\t\tfor (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\tadd(objects[i], nodes);\n\t\t}\n\t}\n\n};\n\nstruct OctreeManager\n{\n\tOctreeManager(Octree root) //: root(root)\n\t{\n\t\toctreeNodes.push_back(root);\n\t}\n\n\t//Octree root;\n\tstd::vector<Octree> octreeNodes;\n\tvoid insert(const std::vector<Object> & objects )\n\t{\n\t\tfor (int i = 0; i < objects.size(); i++)\n\t\t{\n\t\t\toctreeNodes[0].add(objects[i],octreeNodes);\n\t\t}\t\n\t}\n};"}
115
c
/* * Atrac 3 compatible decoder data * Copyright (c) 2006-2007 <NAME> * Copyright (c) 2006-2007 <NAME> * * 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 */ /** * @file * Atrac 3 AKA RealAudio 8 compatible decoder data */ #ifndef AVCODEC_ATRAC3DATA_H #define AVCODEC_ATRAC3DATA_H #include <stdint.h> /* VLC tables */ static const uint8_t huffcode1[9] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F }; static const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; static const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 }; static const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 }; static const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }; static const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 }; static const uint8_t huffcode4[9] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F }; static const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; static const uint8_t huffcode5[15] = { 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D }; static const uint8_t huffbits5[15] = { 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 }; static const uint8_t huffcode6[31] = { 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 }; static const uint8_t huffbits6[31] = { 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 }; static const uint8_t huffcode7[63] = { 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 }; static const uint8_t huffbits7[63] = { 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 }; static const uint8_t huff_tab_sizes[7] = { 9, 5, 7, 9, 15, 31, 63, }; static const uint8_t* const huff_codes[7] = { huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 }; static const uint8_t* const huff_bits[7] = { huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, }; static const uint16_t atrac3_vlc_offs[9] = { 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 }; /* selector tables */ static const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 }; static const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 }; static const int8_t mantissa_vlc_tab[18] = { 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 }; /* tables for the scalefactor decoding */ static const float inv_max_quant[8] = { 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 }; static const uint16_t subband_tab[33] = { 0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480, 512, 576, 640, 704, 768, 896, 1024 }; /* joint stereo related tables */ static const float matrix_coeffs[8] = { 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 }; #endif /* AVCODEC_ATRAC3DATA_H */
29.96
141
(translation_unit) "/* \n * Atrac 3 compatible decoder data \n * Copyright (c) 2006-2007 <NAME> \n * Copyright (c) 2006-2007 <NAME> \n * \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/** \n * @file \n * Atrac 3 AKA RealAudio 8 compatible decoder data \n */ \n \n#ifndef AVCODEC_ATRAC3DATA_H \n#define AVCODEC_ATRAC3DATA_H \n \n#include <stdint.h> \n \n/* VLC tables */ \n \nstatic const uint8_t huffcode1[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}; \n \nstatic const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; \n \nstatic const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 }; \n \nstatic const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 }; \n \nstatic const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }; \n \nstatic const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 }; \n \nstatic const uint8_t huffcode4[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}; \n \nstatic const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; \n \nstatic const uint8_t huffcode5[15] = { \n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, \n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D \n}; \n \nstatic const uint8_t huffbits5[15] = { \n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 \n}; \n \nstatic const uint8_t huffcode6[31] = { \n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, \n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, \n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, \n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 \n}; \n \nstatic const uint8_t huffbits6[31] = { \n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, \n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 \n}; \n \nstatic const uint8_t huffcode7[63] = { \n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, \n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, \n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, \n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, \n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, \n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, \n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, \n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 \n}; \n \nstatic const uint8_t huffbits7[63] = { \n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, \n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, \n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, \n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 \n}; \n \nstatic const uint8_t huff_tab_sizes[7] = { \n 9, 5, 7, 9, 15, 31, 63, \n}; \n \nstatic const uint8_t* const huff_codes[7] = { \n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 \n}; \n \nstatic const uint8_t* const huff_bits[7] = { \n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, \n}; \n \nstatic const uint16_t atrac3_vlc_offs[9] = { \n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 \n}; \n \n/* selector tables */ \n \nstatic const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 }; \n \nstatic const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 }; \n \nstatic const int8_t mantissa_vlc_tab[18] = { \n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 \n}; \n \n \n/* tables for the scalefactor decoding */ \n \nstatic const float inv_max_quant[8] = { \n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, \n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 \n}; \n \nstatic const uint16_t subband_tab[33] = { \n 0, 8, 16, 24, 32, 40, 48, 56, \n 64, 80, 96, 112, 128, 144, 160, 176, \n 192, 224, 256, 288, 320, 352, 384, 416, \n 448, 480, 512, 576, 640, 704, 768, 896, \n 1024 \n}; \n \n/* joint stereo related tables */ \nstatic const float matrix_coeffs[8] = { \n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 \n}; \n \n#endif /* AVCODEC_ATRAC3DATA_H */ \n" (comment) "/* \n * Atrac 3 compatible decoder data \n * Copyright (c) 2006-2007 <NAME> \n * Copyright (c) 2006-2007 <NAME> \n * \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 */" (comment) "/** \n * @file \n * Atrac 3 AKA RealAudio 8 compatible decoder data \n */" (preproc_ifdef) "#ifndef AVCODEC_ATRAC3DATA_H \n#define AVCODEC_ATRAC3DATA_H \n \n#include <stdint.h> \n \n/* VLC tables */ \n \nstatic const uint8_t huffcode1[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}; \n \nstatic const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; \n \nstatic const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 }; \n \nstatic const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 }; \n \nstatic const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }; \n \nstatic const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 }; \n \nstatic const uint8_t huffcode4[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}; \n \nstatic const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }; \n \nstatic const uint8_t huffcode5[15] = { \n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, \n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D \n}; \n \nstatic const uint8_t huffbits5[15] = { \n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 \n}; \n \nstatic const uint8_t huffcode6[31] = { \n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, \n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, \n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, \n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 \n}; \n \nstatic const uint8_t huffbits6[31] = { \n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, \n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 \n}; \n \nstatic const uint8_t huffcode7[63] = { \n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, \n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, \n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, \n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, \n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, \n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, \n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, \n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 \n}; \n \nstatic const uint8_t huffbits7[63] = { \n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, \n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, \n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, \n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 \n}; \n \nstatic const uint8_t huff_tab_sizes[7] = { \n 9, 5, 7, 9, 15, 31, 63, \n}; \n \nstatic const uint8_t* const huff_codes[7] = { \n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 \n}; \n \nstatic const uint8_t* const huff_bits[7] = { \n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, \n}; \n \nstatic const uint16_t atrac3_vlc_offs[9] = { \n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 \n}; \n \n/* selector tables */ \n \nstatic const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 }; \n \nstatic const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 }; \n \nstatic const int8_t mantissa_vlc_tab[18] = { \n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 \n}; \n \n \n/* tables for the scalefactor decoding */ \n \nstatic const float inv_max_quant[8] = { \n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, \n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 \n}; \n \nstatic const uint16_t subband_tab[33] = { \n 0, 8, 16, 24, 32, 40, 48, 56, \n 64, 80, 96, 112, 128, 144, 160, 176, \n 192, 224, 256, 288, 320, 352, 384, 416, \n 448, 480, 512, 576, 640, 704, 768, 896, \n 1024 \n}; \n \n/* joint stereo related tables */ \nstatic const float matrix_coeffs[8] = { \n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "AVCODEC_ATRAC3DATA_H" (preproc_def) "#define AVCODEC_ATRAC3DATA_H \n" (#define) "#define" (identifier) "AVCODEC_ATRAC3DATA_H" (preproc_include) "#include <stdint.h> \n" (#include) "#include" (system_lib_string) "<stdint.h>" (comment) "/* VLC tables */" (declaration) "static const uint8_t huffcode1[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode1[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}" (array_declarator) "huffcode1[9]" (identifier) "huffcode1" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{ \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}" ({) "{" (number_literal) "0x0" (,) "," (number_literal) "0x4" (,) "," (number_literal) "0x5" (,) "," (number_literal) "0xC" (,) "," (number_literal) "0xD" (,) "," (number_literal) "0x1C" (,) "," (number_literal) "0x1D" (,) "," (number_literal) "0x1E" (,) "," (number_literal) "0x1F" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }" (array_declarator) "huffbits1[9]" (identifier) "huffbits1" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{ 1, 3, 3, 4, 4, 5, 5, 5, 5 }" ({) "{" (number_literal) "1" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 }" (array_declarator) "huffcode2[5]" (identifier) "huffcode2" ([) "[" (number_literal) "5" (]) "]" (=) "=" (initializer_list) "{ 0x0, 0x4, 0x5, 0x6, 0x7 }" ({) "{" (number_literal) "0x0" (,) "," (number_literal) "0x4" (,) "," (number_literal) "0x5" (,) "," (number_literal) "0x6" (,) "," (number_literal) "0x7" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits2[5] = { 1, 3, 3, 3, 3 }" (array_declarator) "huffbits2[5]" (identifier) "huffbits2" ([) "[" (number_literal) "5" (]) "]" (=) "=" (initializer_list) "{ 1, 3, 3, 3, 3 }" ({) "{" (number_literal) "1" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }" (array_declarator) "huffcode3[7]" (identifier) "huffcode3" ([) "[" (number_literal) "7" (]) "]" (=) "=" (initializer_list) "{ 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }" ({) "{" (number_literal) "0x0" (,) "," (number_literal) "0x4" (,) "," (number_literal) "0x5" (,) "," (number_literal) "0xC" (,) "," (number_literal) "0xD" (,) "," (number_literal) "0xE" (,) "," (number_literal) "0xF" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 }" (array_declarator) "huffbits3[7]" (identifier) "huffbits3" ([) "[" (number_literal) "7" (]) "]" (=) "=" (initializer_list) "{ 1, 3, 3, 4, 4, 4, 4 }" ({) "{" (number_literal) "1" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode4[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode4[9] = { \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}" (array_declarator) "huffcode4[9]" (identifier) "huffcode4" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{ \n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F \n}" ({) "{" (number_literal) "0x0" (,) "," (number_literal) "0x4" (,) "," (number_literal) "0x5" (,) "," (number_literal) "0xC" (,) "," (number_literal) "0xD" (,) "," (number_literal) "0x1C" (,) "," (number_literal) "0x1D" (,) "," (number_literal) "0x1E" (,) "," (number_literal) "0x1F" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }" (array_declarator) "huffbits4[9]" (identifier) "huffbits4" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{ 1, 3, 3, 4, 4, 5, 5, 5, 5 }" ({) "{" (number_literal) "1" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode5[15] = { \n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, \n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode5[15] = { \n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, \n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D \n}" (array_declarator) "huffcode5[15]" (identifier) "huffcode5" ([) "[" (number_literal) "15" (]) "]" (=) "=" (initializer_list) "{ \n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C, \n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D \n}" ({) "{" (number_literal) "0x00" (,) "," (number_literal) "0x02" (,) "," (number_literal) "0x03" (,) "," (number_literal) "0x08" (,) "," (number_literal) "0x09" (,) "," (number_literal) "0x0A" (,) "," (number_literal) "0x0B" (,) "," (number_literal) "0x1C" (,) "," (number_literal) "0x1D" (,) "," (number_literal) "0x3C" (,) "," (number_literal) "0x3D" (,) "," (number_literal) "0x3E" (,) "," (number_literal) "0x3F" (,) "," (number_literal) "0x0C" (,) "," (number_literal) "0x0D" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits5[15] = { \n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits5[15] = { \n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 \n}" (array_declarator) "huffbits5[15]" (identifier) "huffbits5" ([) "[" (number_literal) "15" (]) "]" (=) "=" (initializer_list) "{ \n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4 \n}" ({) "{" (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode6[31] = { \n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, \n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, \n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, \n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode6[31] = { \n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, \n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, \n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, \n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 \n}" (array_declarator) "huffcode6[31]" (identifier) "huffcode6" ([) "[" (number_literal) "31" (]) "]" (=) "=" (initializer_list) "{ \n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14, \n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36, \n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A, \n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09 \n}" ({) "{" (number_literal) "0x00" (,) "," (number_literal) "0x02" (,) "," (number_literal) "0x03" (,) "," (number_literal) "0x04" (,) "," (number_literal) "0x05" (,) "," (number_literal) "0x06" (,) "," (number_literal) "0x07" (,) "," (number_literal) "0x14" (,) "," (number_literal) "0x15" (,) "," (number_literal) "0x16" (,) "," (number_literal) "0x17" (,) "," (number_literal) "0x18" (,) "," (number_literal) "0x19" (,) "," (number_literal) "0x34" (,) "," (number_literal) "0x35" (,) "," (number_literal) "0x36" (,) "," (number_literal) "0x37" (,) "," (number_literal) "0x38" (,) "," (number_literal) "0x39" (,) "," (number_literal) "0x3A" (,) "," (number_literal) "0x3B" (,) "," (number_literal) "0x78" (,) "," (number_literal) "0x79" (,) "," (number_literal) "0x7A" (,) "," (number_literal) "0x7B" (,) "," (number_literal) "0x7C" (,) "," (number_literal) "0x7D" (,) "," (number_literal) "0x7E" (,) "," (number_literal) "0x7F" (,) "," (number_literal) "0x08" (,) "," (number_literal) "0x09" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits6[31] = { \n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, \n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits6[31] = { \n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, \n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 \n}" (array_declarator) "huffbits6[31]" (identifier) "huffbits6" ([) "[" (number_literal) "31" (]) "]" (=) "=" (initializer_list) "{ \n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, \n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4 \n}" ({) "{" (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (}) "}" (;) ";" (declaration) "static const uint8_t huffcode7[63] = { \n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, \n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, \n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, \n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, \n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, \n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, \n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, \n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffcode7[63] = { \n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, \n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, \n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, \n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, \n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, \n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, \n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, \n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 \n}" (array_declarator) "huffcode7[63]" (identifier) "huffcode7" ([) "[" (number_literal) "63" (]) "]" (=) "=" (initializer_list) "{ \n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, \n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28, \n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, \n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C, \n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, \n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, \n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, \n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03 \n}" ({) "{" (number_literal) "0x00" (,) "," (number_literal) "0x08" (,) "," (number_literal) "0x09" (,) "," (number_literal) "0x0A" (,) "," (number_literal) "0x0B" (,) "," (number_literal) "0x0C" (,) "," (number_literal) "0x0D" (,) "," (number_literal) "0x0E" (,) "," (number_literal) "0x0F" (,) "," (number_literal) "0x10" (,) "," (number_literal) "0x11" (,) "," (number_literal) "0x24" (,) "," (number_literal) "0x25" (,) "," (number_literal) "0x26" (,) "," (number_literal) "0x27" (,) "," (number_literal) "0x28" (,) "," (number_literal) "0x29" (,) "," (number_literal) "0x2A" (,) "," (number_literal) "0x2B" (,) "," (number_literal) "0x2C" (,) "," (number_literal) "0x2D" (,) "," (number_literal) "0x2E" (,) "," (number_literal) "0x2F" (,) "," (number_literal) "0x30" (,) "," (number_literal) "0x31" (,) "," (number_literal) "0x32" (,) "," (number_literal) "0x33" (,) "," (number_literal) "0x68" (,) "," (number_literal) "0x69" (,) "," (number_literal) "0x6A" (,) "," (number_literal) "0x6B" (,) "," (number_literal) "0x6C" (,) "," (number_literal) "0x6D" (,) "," (number_literal) "0x6E" (,) "," (number_literal) "0x6F" (,) "," (number_literal) "0x70" (,) "," (number_literal) "0x71" (,) "," (number_literal) "0x72" (,) "," (number_literal) "0x73" (,) "," (number_literal) "0x74" (,) "," (number_literal) "0x75" (,) "," (number_literal) "0xEC" (,) "," (number_literal) "0xED" (,) "," (number_literal) "0xEE" (,) "," (number_literal) "0xEF" (,) "," (number_literal) "0xF0" (,) "," (number_literal) "0xF1" (,) "," (number_literal) "0xF2" (,) "," (number_literal) "0xF3" (,) "," (number_literal) "0xF4" (,) "," (number_literal) "0xF5" (,) "," (number_literal) "0xF6" (,) "," (number_literal) "0xF7" (,) "," (number_literal) "0xF8" (,) "," (number_literal) "0xF9" (,) "," (number_literal) "0xFA" (,) "," (number_literal) "0xFB" (,) "," (number_literal) "0xFC" (,) "," (number_literal) "0xFD" (,) "," (number_literal) "0xFE" (,) "," (number_literal) "0xFF" (,) "," (number_literal) "0x02" (,) "," (number_literal) "0x03" (}) "}" (;) ";" (declaration) "static const uint8_t huffbits7[63] = { \n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, \n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, \n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, \n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huffbits7[63] = { \n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, \n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, \n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, \n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 \n}" (array_declarator) "huffbits7[63]" (identifier) "huffbits7" ([) "[" (number_literal) "63" (]) "]" (=) "=" (initializer_list) "{ \n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, \n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, \n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, \n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4 \n}" ({) "{" (number_literal) "3" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "6" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "7" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "8" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (}) "}" (;) ";" (declaration) "static const uint8_t huff_tab_sizes[7] = { \n 9, 5, 7, 9, 15, 31, 63, \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "huff_tab_sizes[7] = { \n 9, 5, 7, 9, 15, 31, 63, \n}" (array_declarator) "huff_tab_sizes[7]" (identifier) "huff_tab_sizes" ([) "[" (number_literal) "7" (]) "]" (=) "=" (initializer_list) "{ \n 9, 5, 7, 9, 15, 31, 63, \n}" ({) "{" (number_literal) "9" (,) "," (number_literal) "5" (,) "," (number_literal) "7" (,) "," (number_literal) "9" (,) "," (number_literal) "15" (,) "," (number_literal) "31" (,) "," (number_literal) "63" (,) "," (}) "}" (;) ";" (declaration) "static const uint8_t* const huff_codes[7] = { \n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "* const huff_codes[7] = { \n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 \n}" (pointer_declarator) "* const huff_codes[7]" (*) "*" (type_qualifier) "const" (const) "const" (array_declarator) "huff_codes[7]" (identifier) "huff_codes" ([) "[" (number_literal) "7" (]) "]" (=) "=" (initializer_list) "{ \n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7 \n}" ({) "{" (identifier) "huffcode1" (,) "," (identifier) "huffcode2" (,) "," (identifier) "huffcode3" (,) "," (identifier) "huffcode4" (,) "," (identifier) "huffcode5" (,) "," (identifier) "huffcode6" (,) "," (identifier) "huffcode7" (}) "}" (;) ";" (declaration) "static const uint8_t* const huff_bits[7] = { \n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "* const huff_bits[7] = { \n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, \n}" (pointer_declarator) "* const huff_bits[7]" (*) "*" (type_qualifier) "const" (const) "const" (array_declarator) "huff_bits[7]" (identifier) "huff_bits" ([) "[" (number_literal) "7" (]) "]" (=) "=" (initializer_list) "{ \n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7, \n}" ({) "{" (identifier) "huffbits1" (,) "," (identifier) "huffbits2" (,) "," (identifier) "huffbits3" (,) "," (identifier) "huffbits4" (,) "," (identifier) "huffbits5" (,) "," (identifier) "huffbits6" (,) "," (identifier) "huffbits7" (,) "," (}) "}" (;) ";" (declaration) "static const uint16_t atrac3_vlc_offs[9] = { \n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint16_t" (init_declarator) "atrac3_vlc_offs[9] = { \n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 \n}" (array_declarator) "atrac3_vlc_offs[9]" (identifier) "atrac3_vlc_offs" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{ \n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 \n}" ({) "{" (number_literal) "0" (,) "," (number_literal) "512" (,) "," (number_literal) "1024" (,) "," (number_literal) "1536" (,) "," (number_literal) "2048" (,) "," (number_literal) "2560" (,) "," (number_literal) "3072" (,) "," (number_literal) "3584" (,) "," (number_literal) "4096" (}) "}" (;) ";" (comment) "/* selector tables */" (declaration) "static const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 }" (array_declarator) "clc_length_tab[8]" (identifier) "clc_length_tab" ([) "[" (number_literal) "8" (]) "]" (=) "=" (initializer_list) "{ 0, 4, 3, 3, 4, 4, 5, 6 }" ({) "{" (number_literal) "0" (,) "," (number_literal) "4" (,) "," (number_literal) "3" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (}) "}" (;) ";" (declaration) "static const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int8_t" (init_declarator) "mantissa_clc_tab[4] = { 0, 1, -2, -1 }" (array_declarator) "mantissa_clc_tab[4]" (identifier) "mantissa_clc_tab" ([) "[" (number_literal) "4" (]) "]" (=) "=" (initializer_list) "{ 0, 1, -2, -1 }" ({) "{" (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "-2" (,) "," (number_literal) "-1" (}) "}" (;) ";" (declaration) "static const int8_t mantissa_vlc_tab[18] = { \n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int8_t" (init_declarator) "mantissa_vlc_tab[18] = { \n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 \n}" (array_declarator) "mantissa_vlc_tab[18]" (identifier) "mantissa_vlc_tab" ([) "[" (number_literal) "18" (]) "]" (=) "=" (initializer_list) "{ \n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1 \n}" ({) "{" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "-1" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "-1" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (,) "," (number_literal) "1" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (}) "}" (;) ";" (comment) "/* tables for the scalefactor decoding */" (declaration) "static const float inv_max_quant[8] = { \n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, \n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "inv_max_quant[8] = { \n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, \n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 \n}" (array_declarator) "inv_max_quant[8]" (identifier) "inv_max_quant" ([) "[" (number_literal) "8" (]) "]" (=) "=" (initializer_list) "{ \n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5, \n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5 \n}" ({) "{" (number_literal) "0.0" (,) "," (binary_expression) "1.0 / 1.5" (number_literal) "1.0" (/) "/" (number_literal) "1.5" (,) "," (binary_expression) "1.0 / 2.5" (number_literal) "1.0" (/) "/" (number_literal) "2.5" (,) "," (binary_expression) "1.0 / 3.5" (number_literal) "1.0" (/) "/" (number_literal) "3.5" (,) "," (binary_expression) "1.0 / 4.5" (number_literal) "1.0" (/) "/" (number_literal) "4.5" (,) "," (binary_expression) "1.0 / 7.5" (number_literal) "1.0" (/) "/" (number_literal) "7.5" (,) "," (binary_expression) "1.0 / 15.5" (number_literal) "1.0" (/) "/" (number_literal) "15.5" (,) "," (binary_expression) "1.0 / 31.5" (number_literal) "1.0" (/) "/" (number_literal) "31.5" (}) "}" (;) ";" (declaration) "static const uint16_t subband_tab[33] = { \n 0, 8, 16, 24, 32, 40, 48, 56, \n 64, 80, 96, 112, 128, 144, 160, 176, \n 192, 224, 256, 288, 320, 352, 384, 416, \n 448, 480, 512, 576, 640, 704, 768, 896, \n 1024 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "uint16_t" (init_declarator) "subband_tab[33] = { \n 0, 8, 16, 24, 32, 40, 48, 56, \n 64, 80, 96, 112, 128, 144, 160, 176, \n 192, 224, 256, 288, 320, 352, 384, 416, \n 448, 480, 512, 576, 640, 704, 768, 896, \n 1024 \n}" (array_declarator) "subband_tab[33]" (identifier) "subband_tab" ([) "[" (number_literal) "33" (]) "]" (=) "=" (initializer_list) "{ \n 0, 8, 16, 24, 32, 40, 48, 56, \n 64, 80, 96, 112, 128, 144, 160, 176, \n 192, 224, 256, 288, 320, 352, 384, 416, \n 448, 480, 512, 576, 640, 704, 768, 896, \n 1024 \n}" ({) "{" (number_literal) "0" (,) "," (number_literal) "8" (,) "," (number_literal) "16" (,) "," (number_literal) "24" (,) "," (number_literal) "32" (,) "," (number_literal) "40" (,) "," (number_literal) "48" (,) "," (number_literal) "56" (,) "," (number_literal) "64" (,) "," (number_literal) "80" (,) "," (number_literal) "96" (,) "," (number_literal) "112" (,) "," (number_literal) "128" (,) "," (number_literal) "144" (,) "," (number_literal) "160" (,) "," (number_literal) "176" (,) "," (number_literal) "192" (,) "," (number_literal) "224" (,) "," (number_literal) "256" (,) "," (number_literal) "288" (,) "," (number_literal) "320" (,) "," (number_literal) "352" (,) "," (number_literal) "384" (,) "," (number_literal) "416" (,) "," (number_literal) "448" (,) "," (number_literal) "480" (,) "," (number_literal) "512" (,) "," (number_literal) "576" (,) "," (number_literal) "640" (,) "," (number_literal) "704" (,) "," (number_literal) "768" (,) "," (number_literal) "896" (,) "," (number_literal) "1024" (}) "}" (;) ";" (comment) "/* joint stereo related tables */" (declaration) "static const float matrix_coeffs[8] = { \n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "matrix_coeffs[8] = { \n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 \n}" (array_declarator) "matrix_coeffs[8]" (identifier) "matrix_coeffs" ([) "[" (number_literal) "8" (]) "]" (=) "=" (initializer_list) "{ \n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0 \n}" ({) "{" (number_literal) "0.0" (,) "," (number_literal) "2.0" (,) "," (number_literal) "2.0" (,) "," (number_literal) "2.0" (,) "," (number_literal) "0.0" (,) "," (number_literal) "0.0" (,) "," (number_literal) "1.0" (,) "," (number_literal) "1.0" (}) "}" (;) ";" (#endif) "#endif" (comment) "/* AVCODEC_ATRAC3DATA_H */"
1,207
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 29.96, "nodes": 614, "errors": 0, "source_hash": "a3adada6c2375909f13e16c29c14e5421d6f8cf07e05e67fdc00b453793a4c97", "categorized_nodes": 481}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef AVCODEC_ATRAC3DATA_H\r\n#define AVCODEC_ATRAC3DATA_H\r\n\r\n#include <stdint.h>\r\n\r\n/* VLC tables */\r\n\r\nstatic const uint8_t huffcode1[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};\r\n\r\nstatic const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };\r\n\r\nstatic const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 };\r\n\r\nstatic const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 };\r\n\r\nstatic const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF };\r\n\r\nstatic const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 };\r\n\r\nstatic const uint8_t huffcode4[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};\r\n\r\nstatic const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };\r\n\r\nstatic const uint8_t huffcode5[15] = {\r\n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C,\r\n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D\r\n};\r\n\r\nstatic const uint8_t huffbits5[15] = {\r\n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4\r\n};\r\n\r\nstatic const uint8_t huffcode6[31] = {\r\n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14,\r\n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36,\r\n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A,\r\n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09\r\n};\r\n\r\nstatic const uint8_t huffbits6[31] = {\r\n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4\r\n};\r\n\r\nstatic const uint8_t huffcode7[63] = {\r\n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,\r\n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28,\r\n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,\r\n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C,\r\n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74,\r\n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,\r\n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,\r\n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03\r\n};\r\n\r\nstatic const uint8_t huffbits7[63] = {\r\n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7,\r\n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8,\r\n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4\r\n};\r\n\r\nstatic const uint8_t huff_tab_sizes[7] = {\r\n 9, 5, 7, 9, 15, 31, 63,\r\n};\r\n\r\nstatic const uint8_t* const huff_codes[7] = {\r\n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7\r\n};\r\n\r\nstatic const uint8_t* const huff_bits[7] = {\r\n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,\r\n};\r\n\r\nstatic const uint16_t atrac3_vlc_offs[9] = {\r\n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096\r\n};\r\n\r\n/* selector tables */\r\n\r\nstatic const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 };\r\n\r\nstatic const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 };\r\n\r\nstatic const int8_t mantissa_vlc_tab[18] = {\r\n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1\r\n};\r\n\r\n\r\n/* tables for the scalefactor decoding */\r\n\r\nstatic const float inv_max_quant[8] = {\r\n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5,\r\n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5\r\n};\r\n\r\nstatic const uint16_t subband_tab[33] = {\r\n 0, 8, 16, 24, 32, 40, 48, 56,\r\n 64, 80, 96, 112, 128, 144, 160, 176,\r\n 192, 224, 256, 288, 320, 352, 384, 416,\r\n 448, 480, 512, 576, 640, 704, 768, 896,\r\n 1024\r\n};\r\n\r\n/* joint stereo related tables */\r\nstatic const float matrix_coeffs[8] = {\r\n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 26, 43, 56, 69, 84, 99, 116, 133, 156, 179, 218, 257, 328, 399, 414, 431, 448, 465, 481, 493, 519, 556, 597, 613], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 140, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 2, "type": "identifier", "text": "AVCODEC_ATRAC3DATA_H", "parent": 0, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define AVCODEC_ATRAC3DATA_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 5, "type": "identifier", "text": "AVCODEC_ATRAC3DATA_H", "parent": 3, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.h>\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 19}}, {"id": 9, "type": "declaration", "text": "static const uint8_t huffcode1[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};", "parent": 0, "children": [10, 11], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 2}}, {"id": 10, "type": "primitive_type", "text": "uint8_t", "parent": 9, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 20}}, {"id": 11, "type": "init_declarator", "text": "huffcode1[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n}", "parent": 9, "children": [12, 15, 16], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 36, "column": 1}}, {"id": 12, "type": "array_declarator", "text": "huffcode1[9]", "parent": 11, "children": [13, 14], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 33}}, {"id": 13, "type": "identifier", "text": "huffcode1", "parent": 12, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 30}}, {"id": 14, "type": "number_literal", "text": "9", "parent": 12, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 32}}, {"id": 15, "type": "=", "text": "=", "parent": 11, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 35}}, {"id": 16, "type": "initializer_list", "text": "{\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n}", "parent": 11, "children": [17, 18, 19, 20, 21, 22, 23, 24, 25], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 36, "column": 1}}, {"id": 17, "type": "number_literal", "text": "0x0", "parent": 16, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 18, "type": "number_literal", "text": "0x4", "parent": 16, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 12}}, {"id": 19, "type": "number_literal", "text": "0x5", "parent": 16, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 17}}, {"id": 20, "type": "number_literal", "text": "0xC", "parent": 16, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 22}}, {"id": 21, "type": "number_literal", "text": "0xD", "parent": 16, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 27}}, {"id": 22, "type": "number_literal", "text": "0x1C", "parent": 16, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 33}}, {"id": 23, "type": "number_literal", "text": "0x1D", "parent": 16, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 39}}, {"id": 24, "type": "number_literal", "text": "0x1E", "parent": 16, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 45}}, {"id": 25, "type": "number_literal", "text": "0x1F", "parent": 16, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 51}}, {"id": 26, "type": "declaration", "text": "static const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };", "parent": 0, "children": [27, 28], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 66}}, {"id": 27, "type": "primitive_type", "text": "uint8_t", "parent": 26, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 20}}, {"id": 28, "type": "init_declarator", "text": "huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }", "parent": 26, "children": [29, 32, 33], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 65}}, {"id": 29, "type": "array_declarator", "text": "huffbits1[9]", "parent": 28, "children": [30, 31], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 33}}, {"id": 30, "type": "identifier", "text": "huffbits1", "parent": 29, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 30}}, {"id": 31, "type": "number_literal", "text": "9", "parent": 29, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 32}}, {"id": 32, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 35}}, {"id": 33, "type": "initializer_list", "text": "{ 1, 3, 3, 4, 4, 5, 5, 5, 5 }", "parent": 28, "children": [34, 35, 36, 37, 38, 39, 40, 41, 42], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 65}}, {"id": 34, "type": "number_literal", "text": "1", "parent": 33, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 39}}, {"id": 35, "type": "number_literal", "text": "3", "parent": 33, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 36, "type": "number_literal", "text": "3", "parent": 33, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 45}}, {"id": 37, "type": "number_literal", "text": "4", "parent": 33, "children": [], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 48}}, {"id": 38, "type": "number_literal", "text": "4", "parent": 33, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 51}}, {"id": 39, "type": "number_literal", "text": "5", "parent": 33, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 54}}, {"id": 40, "type": "number_literal", "text": "5", "parent": 33, "children": [], "start_point": {"row": 38, "column": 56}, "end_point": {"row": 38, "column": 57}}, {"id": 41, "type": "number_literal", "text": "5", "parent": 33, "children": [], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 60}}, {"id": 42, "type": "number_literal", "text": "5", "parent": 33, "children": [], "start_point": {"row": 38, "column": 62}, "end_point": {"row": 38, "column": 63}}, {"id": 43, "type": "declaration", "text": "static const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 };", "parent": 0, "children": [44, 45], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 64}}, {"id": 44, "type": "primitive_type", "text": "uint8_t", "parent": 43, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 20}}, {"id": 45, "type": "init_declarator", "text": "huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 }", "parent": 43, "children": [46, 49, 50], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 63}}, {"id": 46, "type": "array_declarator", "text": "huffcode2[5]", "parent": 45, "children": [47, 48], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 33}}, {"id": 47, "type": "identifier", "text": "huffcode2", "parent": 46, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 30}}, {"id": 48, "type": "number_literal", "text": "5", "parent": 46, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 49, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 35}}, {"id": 50, "type": "initializer_list", "text": "{ 0x0, 0x4, 0x5, 0x6, 0x7 }", "parent": 45, "children": [51, 52, 53, 54, 55], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 63}}, {"id": 51, "type": "number_literal", "text": "0x0", "parent": 50, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 41}}, {"id": 52, "type": "number_literal", "text": "0x4", "parent": 50, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 46}}, {"id": 53, "type": "number_literal", "text": "0x5", "parent": 50, "children": [], "start_point": {"row": 40, "column": 48}, "end_point": {"row": 40, "column": 51}}, {"id": 54, "type": "number_literal", "text": "0x6", "parent": 50, "children": [], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 56}}, {"id": 55, "type": "number_literal", "text": "0x7", "parent": 50, "children": [], "start_point": {"row": 40, "column": 58}, "end_point": {"row": 40, "column": 61}}, {"id": 56, "type": "declaration", "text": "static const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 };", "parent": 0, "children": [57, 58], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 54}}, {"id": 57, "type": "primitive_type", "text": "uint8_t", "parent": 56, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 20}}, {"id": 58, "type": "init_declarator", "text": "huffbits2[5] = { 1, 3, 3, 3, 3 }", "parent": 56, "children": [59, 62, 63], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 53}}, {"id": 59, "type": "array_declarator", "text": "huffbits2[5]", "parent": 58, "children": [60, 61], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 33}}, {"id": 60, "type": "identifier", "text": "huffbits2", "parent": 59, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 30}}, {"id": 61, "type": "number_literal", "text": "5", "parent": 59, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 32}}, {"id": 62, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 35}}, {"id": 63, "type": "initializer_list", "text": "{ 1, 3, 3, 3, 3 }", "parent": 58, "children": [64, 65, 66, 67, 68], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 53}}, {"id": 64, "type": "number_literal", "text": "1", "parent": 63, "children": [], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 39}}, {"id": 65, "type": "number_literal", "text": "3", "parent": 63, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 42}}, {"id": 66, "type": "number_literal", "text": "3", "parent": 63, "children": [], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 45}}, {"id": 67, "type": "number_literal", "text": "3", "parent": 63, "children": [], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 48}}, {"id": 68, "type": "number_literal", "text": "3", "parent": 63, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 51}}, {"id": 69, "type": "declaration", "text": "static const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF };", "parent": 0, "children": [70, 71], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 74}}, {"id": 70, "type": "primitive_type", "text": "uint8_t", "parent": 69, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 20}}, {"id": 71, "type": "init_declarator", "text": "huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }", "parent": 69, "children": [72, 75, 76], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 73}}, {"id": 72, "type": "array_declarator", "text": "huffcode3[7]", "parent": 71, "children": [73, 74], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 33}}, {"id": 73, "type": "identifier", "text": "huffcode3", "parent": 72, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 30}}, {"id": 74, "type": "number_literal", "text": "7", "parent": 72, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 32}}, {"id": 75, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 35}}, {"id": 76, "type": "initializer_list", "text": "{ 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF }", "parent": 71, "children": [77, 78, 79, 80, 81, 82, 83], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 73}}, {"id": 77, "type": "number_literal", "text": "0x0", "parent": 76, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 41}}, {"id": 78, "type": "number_literal", "text": "0x4", "parent": 76, "children": [], "start_point": {"row": 44, "column": 43}, "end_point": {"row": 44, "column": 46}}, {"id": 79, "type": "number_literal", "text": "0x5", "parent": 76, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 51}}, {"id": 80, "type": "number_literal", "text": "0xC", "parent": 76, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 44, "column": 56}}, {"id": 81, "type": "number_literal", "text": "0xD", "parent": 76, "children": [], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 61}}, {"id": 82, "type": "number_literal", "text": "0xE", "parent": 76, "children": [], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 66}}, {"id": 83, "type": "number_literal", "text": "0xF", "parent": 76, "children": [], "start_point": {"row": 44, "column": 68}, "end_point": {"row": 44, "column": 71}}, {"id": 84, "type": "declaration", "text": "static const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 };", "parent": 0, "children": [85, 86], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 60}}, {"id": 85, "type": "primitive_type", "text": "uint8_t", "parent": 84, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 20}}, {"id": 86, "type": "init_declarator", "text": "huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 }", "parent": 84, "children": [87, 90, 91], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 59}}, {"id": 87, "type": "array_declarator", "text": "huffbits3[7]", "parent": 86, "children": [88, 89], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 33}}, {"id": 88, "type": "identifier", "text": "huffbits3", "parent": 87, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 30}}, {"id": 89, "type": "number_literal", "text": "7", "parent": 87, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 32}}, {"id": 90, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 35}}, {"id": 91, "type": "initializer_list", "text": "{ 1, 3, 3, 4, 4, 4, 4 }", "parent": 86, "children": [92, 93, 94, 95, 96, 97, 98], "start_point": {"row": 46, "column": 36}, "end_point": {"row": 46, "column": 59}}, {"id": 92, "type": "number_literal", "text": "1", "parent": 91, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 39}}, {"id": 93, "type": "number_literal", "text": "3", "parent": 91, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 42}}, {"id": 94, "type": "number_literal", "text": "3", "parent": 91, "children": [], "start_point": {"row": 46, "column": 44}, "end_point": {"row": 46, "column": 45}}, {"id": 95, "type": "number_literal", "text": "4", "parent": 91, "children": [], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 48}}, {"id": 96, "type": "number_literal", "text": "4", "parent": 91, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 97, "type": "number_literal", "text": "4", "parent": 91, "children": [], "start_point": {"row": 46, "column": 53}, "end_point": {"row": 46, "column": 54}}, {"id": 98, "type": "number_literal", "text": "4", "parent": 91, "children": [], "start_point": {"row": 46, "column": 56}, "end_point": {"row": 46, "column": 57}}, {"id": 99, "type": "declaration", "text": "static const uint8_t huffcode4[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};", "parent": 0, "children": [100, 101], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 50, "column": 2}}, {"id": 100, "type": "primitive_type", "text": "uint8_t", "parent": 99, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 20}}, {"id": 101, "type": "init_declarator", "text": "huffcode4[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n}", "parent": 99, "children": [102, 105, 106], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 50, "column": 1}}, {"id": 102, "type": "array_declarator", "text": "huffcode4[9]", "parent": 101, "children": [103, 104], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 33}}, {"id": 103, "type": "identifier", "text": "huffcode4", "parent": 102, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 30}}, {"id": 104, "type": "number_literal", "text": "9", "parent": 102, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 32}}, {"id": 105, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 35}}, {"id": 106, "type": "initializer_list", "text": "{\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n}", "parent": 101, "children": [107, 108, 109, 110, 111, 112, 113, 114, 115], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 50, "column": 1}}, {"id": 107, "type": "number_literal", "text": "0x0", "parent": 106, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 7}}, {"id": 108, "type": "number_literal", "text": "0x4", "parent": 106, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 12}}, {"id": 109, "type": "number_literal", "text": "0x5", "parent": 106, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 17}}, {"id": 110, "type": "number_literal", "text": "0xC", "parent": 106, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 22}}, {"id": 111, "type": "number_literal", "text": "0xD", "parent": 106, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 27}}, {"id": 112, "type": "number_literal", "text": "0x1C", "parent": 106, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 33}}, {"id": 113, "type": "number_literal", "text": "0x1D", "parent": 106, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 39}}, {"id": 114, "type": "number_literal", "text": "0x1E", "parent": 106, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 45}}, {"id": 115, "type": "number_literal", "text": "0x1F", "parent": 106, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 51}}, {"id": 116, "type": "declaration", "text": "static const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };", "parent": 0, "children": [117, 118], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 66}}, {"id": 117, "type": "primitive_type", "text": "uint8_t", "parent": 116, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 20}}, {"id": 118, "type": "init_declarator", "text": "huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 }", "parent": 116, "children": [119, 122, 123], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 65}}, {"id": 119, "type": "array_declarator", "text": "huffbits4[9]", "parent": 118, "children": [120, 121], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 33}}, {"id": 120, "type": "identifier", "text": "huffbits4", "parent": 119, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 30}}, {"id": 121, "type": "number_literal", "text": "9", "parent": 119, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 32}}, {"id": 122, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 35}}, {"id": 123, "type": "initializer_list", "text": "{ 1, 3, 3, 4, 4, 5, 5, 5, 5 }", "parent": 118, "children": [124, 125, 126, 127, 128, 129, 130, 131, 132], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 65}}, {"id": 124, "type": "number_literal", "text": "1", "parent": 123, "children": [], "start_point": {"row": 52, "column": 38}, "end_point": {"row": 52, "column": 39}}, {"id": 125, "type": "number_literal", "text": "3", "parent": 123, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 42}}, {"id": 126, "type": "number_literal", "text": "3", "parent": 123, "children": [], "start_point": {"row": 52, "column": 44}, "end_point": {"row": 52, "column": 45}}, {"id": 127, "type": "number_literal", "text": "4", "parent": 123, "children": [], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 48}}, {"id": 128, "type": "number_literal", "text": "4", "parent": 123, "children": [], "start_point": {"row": 52, "column": 50}, "end_point": {"row": 52, "column": 51}}, {"id": 129, "type": "number_literal", "text": "5", "parent": 123, "children": [], "start_point": {"row": 52, "column": 53}, "end_point": {"row": 52, "column": 54}}, {"id": 130, "type": "number_literal", "text": "5", "parent": 123, "children": [], "start_point": {"row": 52, "column": 56}, "end_point": {"row": 52, "column": 57}}, {"id": 131, "type": "number_literal", "text": "5", "parent": 123, "children": [], "start_point": {"row": 52, "column": 59}, "end_point": {"row": 52, "column": 60}}, {"id": 132, "type": "number_literal", "text": "5", "parent": 123, "children": [], "start_point": {"row": 52, "column": 62}, "end_point": {"row": 52, "column": 63}}, {"id": 133, "type": "declaration", "text": "static const uint8_t huffcode5[15] = {\r\n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C,\r\n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D\r\n};", "parent": 0, "children": [134, 135], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 57, "column": 2}}, {"id": 134, "type": "primitive_type", "text": "uint8_t", "parent": 133, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 20}}, {"id": 135, "type": "init_declarator", "text": "huffcode5[15] = {\r\n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C,\r\n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D\r\n}", "parent": 133, "children": [136, 139, 140], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 57, "column": 1}}, {"id": 136, "type": "array_declarator", "text": "huffcode5[15]", "parent": 135, "children": [137, 138], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 34}}, {"id": 137, "type": "identifier", "text": "huffcode5", "parent": 136, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 30}}, {"id": 138, "type": "number_literal", "text": "15", "parent": 136, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 33}}, {"id": 139, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 36}}, {"id": 140, "type": "initializer_list", "text": "{\r\n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C,\r\n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D\r\n}", "parent": 135, "children": [141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 57, "column": 1}}, {"id": 141, "type": "number_literal", "text": "0x00", "parent": 140, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 142, "type": "number_literal", "text": "0x02", "parent": 140, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 14}}, {"id": 143, "type": "number_literal", "text": "0x03", "parent": 140, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 20}}, {"id": 144, "type": "number_literal", "text": "0x08", "parent": 140, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 26}}, {"id": 145, "type": "number_literal", "text": "0x09", "parent": 140, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 32}}, {"id": 146, "type": "number_literal", "text": "0x0A", "parent": 140, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 38}}, {"id": 147, "type": "number_literal", "text": "0x0B", "parent": 140, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 44}}, {"id": 148, "type": "number_literal", "text": "0x1C", "parent": 140, "children": [], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 50}}, {"id": 149, "type": "number_literal", "text": "0x1D", "parent": 140, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 150, "type": "number_literal", "text": "0x3C", "parent": 140, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 14}}, {"id": 151, "type": "number_literal", "text": "0x3D", "parent": 140, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 20}}, {"id": 152, "type": "number_literal", "text": "0x3E", "parent": 140, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 26}}, {"id": 153, "type": "number_literal", "text": "0x3F", "parent": 140, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 32}}, {"id": 154, "type": "number_literal", "text": "0x0C", "parent": 140, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 38}}, {"id": 155, "type": "number_literal", "text": "0x0D", "parent": 140, "children": [], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 44}}, {"id": 156, "type": "declaration", "text": "static const uint8_t huffbits5[15] = {\r\n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4\r\n};", "parent": 0, "children": [157, 158], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 61, "column": 2}}, {"id": 157, "type": "primitive_type", "text": "uint8_t", "parent": 156, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 20}}, {"id": 158, "type": "init_declarator", "text": "huffbits5[15] = {\r\n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4\r\n}", "parent": 156, "children": [159, 162, 163], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 61, "column": 1}}, {"id": 159, "type": "array_declarator", "text": "huffbits5[15]", "parent": 158, "children": [160, 161], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 34}}, {"id": 160, "type": "identifier", "text": "huffbits5", "parent": 159, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 30}}, {"id": 161, "type": "number_literal", "text": "15", "parent": 159, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 33}}, {"id": 162, "type": "=", "text": "=", "parent": 158, "children": [], "start_point": {"row": 59, "column": 35}, "end_point": {"row": 59, "column": 36}}, {"id": 163, "type": "initializer_list", "text": "{\r\n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4\r\n}", "parent": 158, "children": [164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 61, "column": 1}}, {"id": 164, "type": "number_literal", "text": "2", "parent": 163, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 165, "type": "number_literal", "text": "3", "parent": 163, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 8}}, {"id": 166, "type": "number_literal", "text": "3", "parent": 163, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 11}}, {"id": 167, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 168, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 169, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 170, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 171, "type": "number_literal", "text": "5", "parent": 163, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 26}}, {"id": 172, "type": "number_literal", "text": "5", "parent": 163, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 29}}, {"id": 173, "type": "number_literal", "text": "6", "parent": 163, "children": [], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 32}}, {"id": 174, "type": "number_literal", "text": "6", "parent": 163, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 35}}, {"id": 175, "type": "number_literal", "text": "6", "parent": 163, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 38}}, {"id": 176, "type": "number_literal", "text": "6", "parent": 163, "children": [], "start_point": {"row": 60, "column": 40}, "end_point": {"row": 60, "column": 41}}, {"id": 177, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 44}}, {"id": 178, "type": "number_literal", "text": "4", "parent": 163, "children": [], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 47}}, {"id": 179, "type": "declaration", "text": "static const uint8_t huffcode6[31] = {\r\n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14,\r\n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36,\r\n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A,\r\n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09\r\n};", "parent": 0, "children": [180, 181], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 68, "column": 2}}, {"id": 180, "type": "primitive_type", "text": "uint8_t", "parent": 179, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 20}}, {"id": 181, "type": "init_declarator", "text": "huffcode6[31] = {\r\n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14,\r\n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36,\r\n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A,\r\n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09\r\n}", "parent": 179, "children": [182, 185, 186], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 68, "column": 1}}, {"id": 182, "type": "array_declarator", "text": "huffcode6[31]", "parent": 181, "children": [183, 184], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 34}}, {"id": 183, "type": "identifier", "text": "huffcode6", "parent": 182, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 30}}, {"id": 184, "type": "number_literal", "text": "31", "parent": 182, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 33}}, {"id": 185, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 36}}, {"id": 186, "type": "initializer_list", "text": "{\r\n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14,\r\n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36,\r\n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A,\r\n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09\r\n}", "parent": 181, "children": [187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 68, "column": 1}}, {"id": 187, "type": "number_literal", "text": "0x00", "parent": 186, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 8}}, {"id": 188, "type": "number_literal", "text": "0x02", "parent": 186, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 14}}, {"id": 189, "type": "number_literal", "text": "0x03", "parent": 186, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 20}}, {"id": 190, "type": "number_literal", "text": "0x04", "parent": 186, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 26}}, {"id": 191, "type": "number_literal", "text": "0x05", "parent": 186, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 32}}, {"id": 192, "type": "number_literal", "text": "0x06", "parent": 186, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 38}}, {"id": 193, "type": "number_literal", "text": "0x07", "parent": 186, "children": [], "start_point": {"row": 64, "column": 40}, "end_point": {"row": 64, "column": 44}}, {"id": 194, "type": "number_literal", "text": "0x14", "parent": 186, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 50}}, {"id": 195, "type": "number_literal", "text": "0x15", "parent": 186, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 8}}, {"id": 196, "type": "number_literal", "text": "0x16", "parent": 186, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 14}}, {"id": 197, "type": "number_literal", "text": "0x17", "parent": 186, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 20}}, {"id": 198, "type": "number_literal", "text": "0x18", "parent": 186, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 26}}, {"id": 199, "type": "number_literal", "text": "0x19", "parent": 186, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 32}}, {"id": 200, "type": "number_literal", "text": "0x34", "parent": 186, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 38}}, {"id": 201, "type": "number_literal", "text": "0x35", "parent": 186, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 44}}, {"id": 202, "type": "number_literal", "text": "0x36", "parent": 186, "children": [], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 50}}, {"id": 203, "type": "number_literal", "text": "0x37", "parent": 186, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 8}}, {"id": 204, "type": "number_literal", "text": "0x38", "parent": 186, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 14}}, {"id": 205, "type": "number_literal", "text": "0x39", "parent": 186, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 20}}, {"id": 206, "type": "number_literal", "text": "0x3A", "parent": 186, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 26}}, {"id": 207, "type": "number_literal", "text": "0x3B", "parent": 186, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 32}}, {"id": 208, "type": "number_literal", "text": "0x78", "parent": 186, "children": [], "start_point": {"row": 66, "column": 34}, "end_point": {"row": 66, "column": 38}}, {"id": 209, "type": "number_literal", "text": "0x79", "parent": 186, "children": [], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 44}}, {"id": 210, "type": "number_literal", "text": "0x7A", "parent": 186, "children": [], "start_point": {"row": 66, "column": 46}, "end_point": {"row": 66, "column": 50}}, {"id": 211, "type": "number_literal", "text": "0x7B", "parent": 186, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 8}}, {"id": 212, "type": "number_literal", "text": "0x7C", "parent": 186, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 14}}, {"id": 213, "type": "number_literal", "text": "0x7D", "parent": 186, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 20}}, {"id": 214, "type": "number_literal", "text": "0x7E", "parent": 186, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 26}}, {"id": 215, "type": "number_literal", "text": "0x7F", "parent": 186, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 32}}, {"id": 216, "type": "number_literal", "text": "0x08", "parent": 186, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 38}}, {"id": 217, "type": "number_literal", "text": "0x09", "parent": 186, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 44}}, {"id": 218, "type": "declaration", "text": "static const uint8_t huffbits6[31] = {\r\n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4\r\n};", "parent": 0, "children": [219, 220], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 73, "column": 2}}, {"id": 219, "type": "primitive_type", "text": "uint8_t", "parent": 218, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 20}}, {"id": 220, "type": "init_declarator", "text": "huffbits6[31] = {\r\n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4\r\n}", "parent": 218, "children": [221, 224, 225], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 73, "column": 1}}, {"id": 221, "type": "array_declarator", "text": "huffbits6[31]", "parent": 220, "children": [222, 223], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 34}}, {"id": 222, "type": "identifier", "text": "huffbits6", "parent": 221, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 30}}, {"id": 223, "type": "number_literal", "text": "31", "parent": 221, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 33}}, {"id": 224, "type": "=", "text": "=", "parent": 220, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 36}}, {"id": 225, "type": "initializer_list", "text": "{\r\n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4\r\n}", "parent": 220, "children": [226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 73, "column": 1}}, {"id": 226, "type": "number_literal", "text": "3", "parent": 225, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 5}}, {"id": 227, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 8}}, {"id": 228, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 11}}, {"id": 229, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 14}}, {"id": 230, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 17}}, {"id": 231, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 20}}, {"id": 232, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 233, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 26}}, {"id": 234, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 29}}, {"id": 235, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 32}}, {"id": 236, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 35}}, {"id": 237, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 37}, "end_point": {"row": 71, "column": 38}}, {"id": 238, "type": "number_literal", "text": "5", "parent": 225, "children": [], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 41}}, {"id": 239, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 44}}, {"id": 240, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 47}}, {"id": 241, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 50}}, {"id": 242, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 243, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 8}}, {"id": 244, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 11}}, {"id": 245, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 14}}, {"id": 246, "type": "number_literal", "text": "6", "parent": 225, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 17}}, {"id": 247, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 20}}, {"id": 248, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 23}}, {"id": 249, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 26}}, {"id": 250, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 251, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 32}}, {"id": 252, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 35}}, {"id": 253, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 38}}, {"id": 254, "type": "number_literal", "text": "7", "parent": 225, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 41}}, {"id": 255, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 44}}, {"id": 256, "type": "number_literal", "text": "4", "parent": 225, "children": [], "start_point": {"row": 72, "column": 46}, "end_point": {"row": 72, "column": 47}}, {"id": 257, "type": "declaration", "text": "static const uint8_t huffcode7[63] = {\r\n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,\r\n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28,\r\n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,\r\n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C,\r\n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74,\r\n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,\r\n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,\r\n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03\r\n};", "parent": 0, "children": [258, 259], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 84, "column": 2}}, {"id": 258, "type": "primitive_type", "text": "uint8_t", "parent": 257, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 20}}, {"id": 259, "type": "init_declarator", "text": "huffcode7[63] = {\r\n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,\r\n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28,\r\n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,\r\n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C,\r\n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74,\r\n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,\r\n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,\r\n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03\r\n}", "parent": 257, "children": [260, 263, 264], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 84, "column": 1}}, {"id": 260, "type": "array_declarator", "text": "huffcode7[63]", "parent": 259, "children": [261, 262], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 34}}, {"id": 261, "type": "identifier", "text": "huffcode7", "parent": 260, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 30}}, {"id": 262, "type": "number_literal", "text": "63", "parent": 260, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 33}}, {"id": 263, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 36}}, {"id": 264, "type": "initializer_list", "text": "{\r\n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,\r\n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28,\r\n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,\r\n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C,\r\n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74,\r\n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,\r\n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,\r\n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03\r\n}", "parent": 259, "children": [265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 84, "column": 1}}, {"id": 265, "type": "number_literal", "text": "0x00", "parent": 264, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 266, "type": "number_literal", "text": "0x08", "parent": 264, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 14}}, {"id": 267, "type": "number_literal", "text": "0x09", "parent": 264, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 20}}, {"id": 268, "type": "number_literal", "text": "0x0A", "parent": 264, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 26}}, {"id": 269, "type": "number_literal", "text": "0x0B", "parent": 264, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 32}}, {"id": 270, "type": "number_literal", "text": "0x0C", "parent": 264, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 38}}, {"id": 271, "type": "number_literal", "text": "0x0D", "parent": 264, "children": [], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 44}}, {"id": 272, "type": "number_literal", "text": "0x0E", "parent": 264, "children": [], "start_point": {"row": 76, "column": 46}, "end_point": {"row": 76, "column": 50}}, {"id": 273, "type": "number_literal", "text": "0x0F", "parent": 264, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 274, "type": "number_literal", "text": "0x10", "parent": 264, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 14}}, {"id": 275, "type": "number_literal", "text": "0x11", "parent": 264, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 20}}, {"id": 276, "type": "number_literal", "text": "0x24", "parent": 264, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 26}}, {"id": 277, "type": "number_literal", "text": "0x25", "parent": 264, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 32}}, {"id": 278, "type": "number_literal", "text": "0x26", "parent": 264, "children": [], "start_point": {"row": 77, "column": 34}, "end_point": {"row": 77, "column": 38}}, {"id": 279, "type": "number_literal", "text": "0x27", "parent": 264, "children": [], "start_point": {"row": 77, "column": 40}, "end_point": {"row": 77, "column": 44}}, {"id": 280, "type": "number_literal", "text": "0x28", "parent": 264, "children": [], "start_point": {"row": 77, "column": 46}, "end_point": {"row": 77, "column": 50}}, {"id": 281, "type": "number_literal", "text": "0x29", "parent": 264, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 8}}, {"id": 282, "type": "number_literal", "text": "0x2A", "parent": 264, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 14}}, {"id": 283, "type": "number_literal", "text": "0x2B", "parent": 264, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 20}}, {"id": 284, "type": "number_literal", "text": "0x2C", "parent": 264, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 26}}, {"id": 285, "type": "number_literal", "text": "0x2D", "parent": 264, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 32}}, {"id": 286, "type": "number_literal", "text": "0x2E", "parent": 264, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 38}}, {"id": 287, "type": "number_literal", "text": "0x2F", "parent": 264, "children": [], "start_point": {"row": 78, "column": 40}, "end_point": {"row": 78, "column": 44}}, {"id": 288, "type": "number_literal", "text": "0x30", "parent": 264, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 50}}, {"id": 289, "type": "number_literal", "text": "0x31", "parent": 264, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 8}}, {"id": 290, "type": "number_literal", "text": "0x32", "parent": 264, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 14}}, {"id": 291, "type": "number_literal", "text": "0x33", "parent": 264, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 20}}, {"id": 292, "type": "number_literal", "text": "0x68", "parent": 264, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 26}}, {"id": 293, "type": "number_literal", "text": "0x69", "parent": 264, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 32}}, {"id": 294, "type": "number_literal", "text": "0x6A", "parent": 264, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 38}}, {"id": 295, "type": "number_literal", "text": "0x6B", "parent": 264, "children": [], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 44}}, {"id": 296, "type": "number_literal", "text": "0x6C", "parent": 264, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 50}}, {"id": 297, "type": "number_literal", "text": "0x6D", "parent": 264, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 298, "type": "number_literal", "text": "0x6E", "parent": 264, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 14}}, {"id": 299, "type": "number_literal", "text": "0x6F", "parent": 264, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 20}}, {"id": 300, "type": "number_literal", "text": "0x70", "parent": 264, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 26}}, {"id": 301, "type": "number_literal", "text": "0x71", "parent": 264, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 32}}, {"id": 302, "type": "number_literal", "text": "0x72", "parent": 264, "children": [], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 38}}, {"id": 303, "type": "number_literal", "text": "0x73", "parent": 264, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 44}}, {"id": 304, "type": "number_literal", "text": "0x74", "parent": 264, "children": [], "start_point": {"row": 80, "column": 46}, "end_point": {"row": 80, "column": 50}}, {"id": 305, "type": "number_literal", "text": "0x75", "parent": 264, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 306, "type": "number_literal", "text": "0xEC", "parent": 264, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 14}}, {"id": 307, "type": "number_literal", "text": "0xED", "parent": 264, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 20}}, {"id": 308, "type": "number_literal", "text": "0xEE", "parent": 264, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 26}}, {"id": 309, "type": "number_literal", "text": "0xEF", "parent": 264, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 32}}, {"id": 310, "type": "number_literal", "text": "0xF0", "parent": 264, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 38}}, {"id": 311, "type": "number_literal", "text": "0xF1", "parent": 264, "children": [], "start_point": {"row": 81, "column": 40}, "end_point": {"row": 81, "column": 44}}, {"id": 312, "type": "number_literal", "text": "0xF2", "parent": 264, "children": [], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 50}}, {"id": 313, "type": "number_literal", "text": "0xF3", "parent": 264, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 8}}, {"id": 314, "type": "number_literal", "text": "0xF4", "parent": 264, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 14}}, {"id": 315, "type": "number_literal", "text": "0xF5", "parent": 264, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 20}}, {"id": 316, "type": "number_literal", "text": "0xF6", "parent": 264, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 26}}, {"id": 317, "type": "number_literal", "text": "0xF7", "parent": 264, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 32}}, {"id": 318, "type": "number_literal", "text": "0xF8", "parent": 264, "children": [], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 38}}, {"id": 319, "type": "number_literal", "text": "0xF9", "parent": 264, "children": [], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 44}}, {"id": 320, "type": "number_literal", "text": "0xFA", "parent": 264, "children": [], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 50}}, {"id": 321, "type": "number_literal", "text": "0xFB", "parent": 264, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 8}}, {"id": 322, "type": "number_literal", "text": "0xFC", "parent": 264, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 14}}, {"id": 323, "type": "number_literal", "text": "0xFD", "parent": 264, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 20}}, {"id": 324, "type": "number_literal", "text": "0xFE", "parent": 264, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 26}}, {"id": 325, "type": "number_literal", "text": "0xFF", "parent": 264, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 32}}, {"id": 326, "type": "number_literal", "text": "0x02", "parent": 264, "children": [], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 38}}, {"id": 327, "type": "number_literal", "text": "0x03", "parent": 264, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 44}}, {"id": 328, "type": "declaration", "text": "static const uint8_t huffbits7[63] = {\r\n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7,\r\n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8,\r\n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4\r\n};", "parent": 0, "children": [329, 330], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 91, "column": 2}}, {"id": 329, "type": "primitive_type", "text": "uint8_t", "parent": 328, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 20}}, {"id": 330, "type": "init_declarator", "text": "huffbits7[63] = {\r\n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7,\r\n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8,\r\n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4\r\n}", "parent": 328, "children": [331, 334, 335], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 91, "column": 1}}, {"id": 331, "type": "array_declarator", "text": "huffbits7[63]", "parent": 330, "children": [332, 333], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 34}}, {"id": 332, "type": "identifier", "text": "huffbits7", "parent": 331, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 30}}, {"id": 333, "type": "number_literal", "text": "63", "parent": 331, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 33}}, {"id": 334, "type": "=", "text": "=", "parent": 330, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 36}}, {"id": 335, "type": "initializer_list", "text": "{\r\n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7,\r\n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8,\r\n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4\r\n}", "parent": 330, "children": [336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 91, "column": 1}}, {"id": 336, "type": "number_literal", "text": "3", "parent": 335, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 337, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 338, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 11}}, {"id": 339, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 14}}, {"id": 340, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 17}}, {"id": 341, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 19}, "end_point": {"row": 87, "column": 20}}, {"id": 342, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 23}}, {"id": 343, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 26}}, {"id": 344, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 29}}, {"id": 345, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 32}}, {"id": 346, "type": "number_literal", "text": "5", "parent": 335, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 35}}, {"id": 347, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 38}}, {"id": 348, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 87, "column": 40}, "end_point": {"row": 87, "column": 41}}, {"id": 349, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 87, "column": 43}, "end_point": {"row": 87, "column": 44}}, {"id": 350, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 87, "column": 46}, "end_point": {"row": 87, "column": 47}}, {"id": 351, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 87, "column": 49}, "end_point": {"row": 87, "column": 50}}, {"id": 352, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 353, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 8}}, {"id": 354, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 11}}, {"id": 355, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 14}}, {"id": 356, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 17}}, {"id": 357, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 20}}, {"id": 358, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 23}}, {"id": 359, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 26}}, {"id": 360, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 361, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 32}}, {"id": 362, "type": "number_literal", "text": "6", "parent": 335, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 35}}, {"id": 363, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 38}}, {"id": 364, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 41}}, {"id": 365, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 88, "column": 43}, "end_point": {"row": 88, "column": 44}}, {"id": 366, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 88, "column": 46}, "end_point": {"row": 88, "column": 47}}, {"id": 367, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 88, "column": 49}, "end_point": {"row": 88, "column": 50}}, {"id": 368, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 369, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 8}}, {"id": 370, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 11}}, {"id": 371, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 14}}, {"id": 372, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 17}}, {"id": 373, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 374, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 23}}, {"id": 375, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 26}}, {"id": 376, "type": "number_literal", "text": "7", "parent": 335, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 29}}, {"id": 377, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 32}}, {"id": 378, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 35}}, {"id": 379, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 38}}, {"id": 380, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 41}}, {"id": 381, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 43}, "end_point": {"row": 89, "column": 44}}, {"id": 382, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 47}}, {"id": 383, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 50}}, {"id": 384, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 5}}, {"id": 385, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 8}}, {"id": 386, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 11}}, {"id": 387, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 388, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 17}}, {"id": 389, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 20}}, {"id": 390, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 23}}, {"id": 391, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 26}}, {"id": 392, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 29}}, {"id": 393, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 32}}, {"id": 394, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 35}}, {"id": 395, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 38}}, {"id": 396, "type": "number_literal", "text": "8", "parent": 335, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 41}}, {"id": 397, "type": "number_literal", "text": "4", "parent": 335, "children": [], "start_point": {"row": 90, "column": 43}, "end_point": {"row": 90, "column": 44}}, {"id": 398, "type": "number_literal", "text": "4", "parent": 335, "children": [], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 47}}, {"id": 399, "type": "declaration", "text": "static const uint8_t huff_tab_sizes[7] = {\r\n 9, 5, 7, 9, 15, 31, 63,\r\n};", "parent": 0, "children": [400, 401], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 95, "column": 2}}, {"id": 400, "type": "primitive_type", "text": "uint8_t", "parent": 399, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 20}}, {"id": 401, "type": "init_declarator", "text": "huff_tab_sizes[7] = {\r\n 9, 5, 7, 9, 15, 31, 63,\r\n}", "parent": 399, "children": [402, 405, 406], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 95, "column": 1}}, {"id": 402, "type": "array_declarator", "text": "huff_tab_sizes[7]", "parent": 401, "children": [403, 404], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 38}}, {"id": 403, "type": "identifier", "text": "huff_tab_sizes", "parent": 402, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 35}}, {"id": 404, "type": "number_literal", "text": "7", "parent": 402, "children": [], "start_point": {"row": 93, "column": 36}, "end_point": {"row": 93, "column": 37}}, {"id": 405, "type": "=", "text": "=", "parent": 401, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 40}}, {"id": 406, "type": "initializer_list", "text": "{\r\n 9, 5, 7, 9, 15, 31, 63,\r\n}", "parent": 401, "children": [407, 408, 409, 410, 411, 412, 413], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 95, "column": 1}}, {"id": 407, "type": "number_literal", "text": "9", "parent": 406, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 5}}, {"id": 408, "type": "number_literal", "text": "5", "parent": 406, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 8}}, {"id": 409, "type": "number_literal", "text": "7", "parent": 406, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 410, "type": "number_literal", "text": "9", "parent": 406, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 14}}, {"id": 411, "type": "number_literal", "text": "15", "parent": 406, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 18}}, {"id": 412, "type": "number_literal", "text": "31", "parent": 406, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 22}}, {"id": 413, "type": "number_literal", "text": "63", "parent": 406, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 414, "type": "declaration", "text": "static const uint8_t* const huff_codes[7] = {\r\n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7\r\n};", "parent": 0, "children": [415, 416], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 99, "column": 2}}, {"id": 415, "type": "primitive_type", "text": "uint8_t", "parent": 414, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 20}}, {"id": 416, "type": "init_declarator", "text": "* const huff_codes[7] = {\r\n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7\r\n}", "parent": 414, "children": [417, 422, 423], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 99, "column": 1}}, {"id": 417, "type": "pointer_declarator", "text": "* const huff_codes[7]", "parent": 416, "children": [418, 419], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 41}}, {"id": 418, "type": "*", "text": "*", "parent": 417, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 419, "type": "array_declarator", "text": "huff_codes[7]", "parent": 417, "children": [420, 421], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 41}}, {"id": 420, "type": "identifier", "text": "huff_codes", "parent": 419, "children": [], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 38}}, {"id": 421, "type": "number_literal", "text": "7", "parent": 419, "children": [], "start_point": {"row": 97, "column": 39}, "end_point": {"row": 97, "column": 40}}, {"id": 422, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 43}}, {"id": 423, "type": "initializer_list", "text": "{\r\n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7\r\n}", "parent": 416, "children": [424, 425, 426, 427, 428, 429, 430], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 99, "column": 1}}, {"id": 424, "type": "identifier", "text": "huffcode1", "parent": 423, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 13}}, {"id": 425, "type": "identifier", "text": "huffcode2", "parent": 423, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 24}}, {"id": 426, "type": "identifier", "text": "huffcode3", "parent": 423, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 35}}, {"id": 427, "type": "identifier", "text": "huffcode4", "parent": 423, "children": [], "start_point": {"row": 98, "column": 37}, "end_point": {"row": 98, "column": 46}}, {"id": 428, "type": "identifier", "text": "huffcode5", "parent": 423, "children": [], "start_point": {"row": 98, "column": 48}, "end_point": {"row": 98, "column": 57}}, {"id": 429, "type": "identifier", "text": "huffcode6", "parent": 423, "children": [], "start_point": {"row": 98, "column": 59}, "end_point": {"row": 98, "column": 68}}, {"id": 430, "type": "identifier", "text": "huffcode7", "parent": 423, "children": [], "start_point": {"row": 98, "column": 70}, "end_point": {"row": 98, "column": 79}}, {"id": 431, "type": "declaration", "text": "static const uint8_t* const huff_bits[7] = {\r\n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,\r\n};", "parent": 0, "children": [432, 433], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 103, "column": 2}}, {"id": 432, "type": "primitive_type", "text": "uint8_t", "parent": 431, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 20}}, {"id": 433, "type": "init_declarator", "text": "* const huff_bits[7] = {\r\n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,\r\n}", "parent": 431, "children": [434, 439, 440], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 103, "column": 1}}, {"id": 434, "type": "pointer_declarator", "text": "* const huff_bits[7]", "parent": 433, "children": [435, 436], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 40}}, {"id": 435, "type": "*", "text": "*", "parent": 434, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 21}}, {"id": 436, "type": "array_declarator", "text": "huff_bits[7]", "parent": 434, "children": [437, 438], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 40}}, {"id": 437, "type": "identifier", "text": "huff_bits", "parent": 436, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 37}}, {"id": 438, "type": "number_literal", "text": "7", "parent": 436, "children": [], "start_point": {"row": 101, "column": 38}, "end_point": {"row": 101, "column": 39}}, {"id": 439, "type": "=", "text": "=", "parent": 433, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 42}}, {"id": 440, "type": "initializer_list", "text": "{\r\n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,\r\n}", "parent": 433, "children": [441, 442, 443, 444, 445, 446, 447], "start_point": {"row": 101, "column": 43}, "end_point": {"row": 103, "column": 1}}, {"id": 441, "type": "identifier", "text": "huffbits1", "parent": 440, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 13}}, {"id": 442, "type": "identifier", "text": "huffbits2", "parent": 440, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 24}}, {"id": 443, "type": "identifier", "text": "huffbits3", "parent": 440, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 35}}, {"id": 444, "type": "identifier", "text": "huffbits4", "parent": 440, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 46}}, {"id": 445, "type": "identifier", "text": "huffbits5", "parent": 440, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 57}}, {"id": 446, "type": "identifier", "text": "huffbits6", "parent": 440, "children": [], "start_point": {"row": 102, "column": 59}, "end_point": {"row": 102, "column": 68}}, {"id": 447, "type": "identifier", "text": "huffbits7", "parent": 440, "children": [], "start_point": {"row": 102, "column": 70}, "end_point": {"row": 102, "column": 79}}, {"id": 448, "type": "declaration", "text": "static const uint16_t atrac3_vlc_offs[9] = {\r\n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096\r\n};", "parent": 0, "children": [449, 450], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 107, "column": 2}}, {"id": 449, "type": "primitive_type", "text": "uint16_t", "parent": 448, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 21}}, {"id": 450, "type": "init_declarator", "text": "atrac3_vlc_offs[9] = {\r\n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096\r\n}", "parent": 448, "children": [451, 454, 455], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 107, "column": 1}}, {"id": 451, "type": "array_declarator", "text": "atrac3_vlc_offs[9]", "parent": 450, "children": [452, 453], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 40}}, {"id": 452, "type": "identifier", "text": "atrac3_vlc_offs", "parent": 451, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 37}}, {"id": 453, "type": "number_literal", "text": "9", "parent": 451, "children": [], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 39}}, {"id": 454, "type": "=", "text": "=", "parent": 450, "children": [], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 42}}, {"id": 455, "type": "initializer_list", "text": "{\r\n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096\r\n}", "parent": 450, "children": [456, 457, 458, 459, 460, 461, 462, 463, 464], "start_point": {"row": 105, "column": 43}, "end_point": {"row": 107, "column": 1}}, {"id": 456, "type": "number_literal", "text": "0", "parent": 455, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 5}}, {"id": 457, "type": "number_literal", "text": "512", "parent": 455, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 10}}, {"id": 458, "type": "number_literal", "text": "1024", "parent": 455, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 16}}, {"id": 459, "type": "number_literal", "text": "1536", "parent": 455, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 22}}, {"id": 460, "type": "number_literal", "text": "2048", "parent": 455, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 28}}, {"id": 461, "type": "number_literal", "text": "2560", "parent": 455, "children": [], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 34}}, {"id": 462, "type": "number_literal", "text": "3072", "parent": 455, "children": [], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 40}}, {"id": 463, "type": "number_literal", "text": "3584", "parent": 455, "children": [], "start_point": {"row": 106, "column": 42}, "end_point": {"row": 106, "column": 46}}, {"id": 464, "type": "number_literal", "text": "4096", "parent": 455, "children": [], "start_point": {"row": 106, "column": 48}, "end_point": {"row": 106, "column": 52}}, {"id": 465, "type": "declaration", "text": "static const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 };", "parent": 0, "children": [466, 467], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 68}}, {"id": 466, "type": "primitive_type", "text": "uint8_t", "parent": 465, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 20}}, {"id": 467, "type": "init_declarator", "text": "clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 }", "parent": 465, "children": [468, 471, 472], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 67}}, {"id": 468, "type": "array_declarator", "text": "clc_length_tab[8]", "parent": 467, "children": [469, 470], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 38}}, {"id": 469, "type": "identifier", "text": "clc_length_tab", "parent": 468, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 35}}, {"id": 470, "type": "number_literal", "text": "8", "parent": 468, "children": [], "start_point": {"row": 111, "column": 36}, "end_point": {"row": 111, "column": 37}}, {"id": 471, "type": "=", "text": "=", "parent": 467, "children": [], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 40}}, {"id": 472, "type": "initializer_list", "text": "{ 0, 4, 3, 3, 4, 4, 5, 6 }", "parent": 467, "children": [473, 474, 475, 476, 477, 478, 479, 480], "start_point": {"row": 111, "column": 41}, "end_point": {"row": 111, "column": 67}}, {"id": 473, "type": "number_literal", "text": "0", "parent": 472, "children": [], "start_point": {"row": 111, "column": 43}, "end_point": {"row": 111, "column": 44}}, {"id": 474, "type": "number_literal", "text": "4", "parent": 472, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 47}}, {"id": 475, "type": "number_literal", "text": "3", "parent": 472, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 50}}, {"id": 476, "type": "number_literal", "text": "3", "parent": 472, "children": [], "start_point": {"row": 111, "column": 52}, "end_point": {"row": 111, "column": 53}}, {"id": 477, "type": "number_literal", "text": "4", "parent": 472, "children": [], "start_point": {"row": 111, "column": 55}, "end_point": {"row": 111, "column": 56}}, {"id": 478, "type": "number_literal", "text": "4", "parent": 472, "children": [], "start_point": {"row": 111, "column": 58}, "end_point": {"row": 111, "column": 59}}, {"id": 479, "type": "number_literal", "text": "5", "parent": 472, "children": [], "start_point": {"row": 111, "column": 61}, "end_point": {"row": 111, "column": 62}}, {"id": 480, "type": "number_literal", "text": "6", "parent": 472, "children": [], "start_point": {"row": 111, "column": 64}, "end_point": {"row": 111, "column": 65}}, {"id": 481, "type": "declaration", "text": "static const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 };", "parent": 0, "children": [482, 483], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 59}}, {"id": 482, "type": "primitive_type", "text": "int8_t", "parent": 481, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 19}}, {"id": 483, "type": "init_declarator", "text": "mantissa_clc_tab[4] = { 0, 1, -2, -1 }", "parent": 481, "children": [484, 487, 488], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 58}}, {"id": 484, "type": "array_declarator", "text": "mantissa_clc_tab[4]", "parent": 483, "children": [485, 486], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 39}}, {"id": 485, "type": "identifier", "text": "mantissa_clc_tab", "parent": 484, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 36}}, {"id": 486, "type": "number_literal", "text": "4", "parent": 484, "children": [], "start_point": {"row": 113, "column": 37}, "end_point": {"row": 113, "column": 38}}, {"id": 487, "type": "=", "text": "=", "parent": 483, "children": [], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 41}}, {"id": 488, "type": "initializer_list", "text": "{ 0, 1, -2, -1 }", "parent": 483, "children": [489, 490, 491, 492], "start_point": {"row": 113, "column": 42}, "end_point": {"row": 113, "column": 58}}, {"id": 489, "type": "number_literal", "text": "0", "parent": 488, "children": [], "start_point": {"row": 113, "column": 44}, "end_point": {"row": 113, "column": 45}}, {"id": 490, "type": "number_literal", "text": "1", "parent": 488, "children": [], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 48}}, {"id": 491, "type": "number_literal", "text": "-2", "parent": 488, "children": [], "start_point": {"row": 113, "column": 50}, "end_point": {"row": 113, "column": 52}}, {"id": 492, "type": "number_literal", "text": "-1", "parent": 488, "children": [], "start_point": {"row": 113, "column": 54}, "end_point": {"row": 113, "column": 56}}, {"id": 493, "type": "declaration", "text": "static const int8_t mantissa_vlc_tab[18] = {\r\n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1\r\n};", "parent": 0, "children": [494, 495], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 117, "column": 2}}, {"id": 494, "type": "primitive_type", "text": "int8_t", "parent": 493, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 19}}, {"id": 495, "type": "init_declarator", "text": "mantissa_vlc_tab[18] = {\r\n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1\r\n}", "parent": 493, "children": [496, 499, 500], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 117, "column": 1}}, {"id": 496, "type": "array_declarator", "text": "mantissa_vlc_tab[18]", "parent": 495, "children": [497, 498], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 40}}, {"id": 497, "type": "identifier", "text": "mantissa_vlc_tab", "parent": 496, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 36}}, {"id": 498, "type": "number_literal", "text": "18", "parent": 496, "children": [], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 39}}, {"id": 499, "type": "=", "text": "=", "parent": 495, "children": [], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 42}}, {"id": 500, "type": "initializer_list", "text": "{\r\n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1\r\n}", "parent": 495, "children": [501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518], "start_point": {"row": 115, "column": 43}, "end_point": {"row": 117, "column": 1}}, {"id": 501, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 5}}, {"id": 502, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 8}}, {"id": 503, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 12}}, {"id": 504, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 15}}, {"id": 505, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 19}}, {"id": 506, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 23}}, {"id": 507, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 27}}, {"id": 508, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 30}}, {"id": 509, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 35}}, {"id": 510, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 116, "column": 37}, "end_point": {"row": 116, "column": 38}}, {"id": 511, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 42}}, {"id": 512, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 44}, "end_point": {"row": 116, "column": 45}}, {"id": 513, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 49}}, {"id": 514, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 53}}, {"id": 515, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 56}, "end_point": {"row": 116, "column": 58}}, {"id": 516, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 60}, "end_point": {"row": 116, "column": 61}}, {"id": 517, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 64}, "end_point": {"row": 116, "column": 66}}, {"id": 518, "type": "number_literal", "text": "-1", "parent": 500, "children": [], "start_point": {"row": 116, "column": 68}, "end_point": {"row": 116, "column": 70}}, {"id": 519, "type": "declaration", "text": "static const float inv_max_quant[8] = {\r\n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5,\r\n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5\r\n};", "parent": 0, "children": [520, 521], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 125, "column": 2}}, {"id": 520, "type": "primitive_type", "text": "float", "parent": 519, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 18}}, {"id": 521, "type": "init_declarator", "text": "inv_max_quant[8] = {\r\n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5,\r\n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5\r\n}", "parent": 519, "children": [522, 525, 526], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 125, "column": 1}}, {"id": 522, "type": "array_declarator", "text": "inv_max_quant[8]", "parent": 521, "children": [523, 524], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 35}}, {"id": 523, "type": "identifier", "text": "inv_max_quant", "parent": 522, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 32}}, {"id": 524, "type": "number_literal", "text": "8", "parent": 522, "children": [], "start_point": {"row": 122, "column": 33}, "end_point": {"row": 122, "column": 34}}, {"id": 525, "type": "=", "text": "=", "parent": 521, "children": [], "start_point": {"row": 122, "column": 36}, "end_point": {"row": 122, "column": 37}}, {"id": 526, "type": "initializer_list", "text": "{\r\n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5,\r\n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5\r\n}", "parent": 521, "children": [527, 528, 532, 536, 540, 544, 548, 552], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 125, "column": 1}}, {"id": 527, "type": "number_literal", "text": "0.0", "parent": 526, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 9}}, {"id": 528, "type": "binary_expression", "text": "1.0 / 1.5", "parent": 526, "children": [529, 530, 531], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 26}}, {"id": 529, "type": "number_literal", "text": "1.0", "parent": 528, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 20}}, {"id": 530, "type": "/", "text": "/", "parent": 528, "children": [], "start_point": {"row": 123, "column": 21}, "end_point": {"row": 123, "column": 22}}, {"id": 531, "type": "number_literal", "text": "1.5", "parent": 528, "children": [], "start_point": {"row": 123, "column": 23}, "end_point": {"row": 123, "column": 26}}, {"id": 532, "type": "binary_expression", "text": "1.0 / 2.5", "parent": 526, "children": [533, 534, 535], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 38}}, {"id": 533, "type": "number_literal", "text": "1.0", "parent": 532, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 31}}, {"id": 534, "type": "/", "text": "/", "parent": 532, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 33}}, {"id": 535, "type": "number_literal", "text": "2.5", "parent": 532, "children": [], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 38}}, {"id": 536, "type": "binary_expression", "text": "1.0 / 3.5", "parent": 526, "children": [537, 538, 539], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 50}}, {"id": 537, "type": "number_literal", "text": "1.0", "parent": 536, "children": [], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 43}}, {"id": 538, "type": "/", "text": "/", "parent": 536, "children": [], "start_point": {"row": 123, "column": 44}, "end_point": {"row": 123, "column": 45}}, {"id": 539, "type": "number_literal", "text": "3.5", "parent": 536, "children": [], "start_point": {"row": 123, "column": 47}, "end_point": {"row": 123, "column": 50}}, {"id": 540, "type": "binary_expression", "text": "1.0 / 4.5", "parent": 526, "children": [541, 542, 543], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 15}}, {"id": 541, "type": "number_literal", "text": "1.0", "parent": 540, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 9}}, {"id": 542, "type": "/", "text": "/", "parent": 540, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 11}}, {"id": 543, "type": "number_literal", "text": "4.5", "parent": 540, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 15}}, {"id": 544, "type": "binary_expression", "text": "1.0 / 7.5", "parent": 526, "children": [545, 546, 547], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 26}}, {"id": 545, "type": "number_literal", "text": "1.0", "parent": 544, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 20}}, {"id": 546, "type": "/", "text": "/", "parent": 544, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 22}}, {"id": 547, "type": "number_literal", "text": "7.5", "parent": 544, "children": [], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 26}}, {"id": 548, "type": "binary_expression", "text": "1.0 / 15.5", "parent": 526, "children": [549, 550, 551], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 38}}, {"id": 549, "type": "number_literal", "text": "1.0", "parent": 548, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 31}}, {"id": 550, "type": "/", "text": "/", "parent": 548, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 33}}, {"id": 551, "type": "number_literal", "text": "15.5", "parent": 548, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 38}}, {"id": 552, "type": "binary_expression", "text": "1.0 / 31.5", "parent": 526, "children": [553, 554, 555], "start_point": {"row": 124, "column": 40}, "end_point": {"row": 124, "column": 50}}, {"id": 553, "type": "number_literal", "text": "1.0", "parent": 552, "children": [], "start_point": {"row": 124, "column": 40}, "end_point": {"row": 124, "column": 43}}, {"id": 554, "type": "/", "text": "/", "parent": 552, "children": [], "start_point": {"row": 124, "column": 44}, "end_point": {"row": 124, "column": 45}}, {"id": 555, "type": "number_literal", "text": "31.5", "parent": 552, "children": [], "start_point": {"row": 124, "column": 46}, "end_point": {"row": 124, "column": 50}}, {"id": 556, "type": "declaration", "text": "static const uint16_t subband_tab[33] = {\r\n 0, 8, 16, 24, 32, 40, 48, 56,\r\n 64, 80, 96, 112, 128, 144, 160, 176,\r\n 192, 224, 256, 288, 320, 352, 384, 416,\r\n 448, 480, 512, 576, 640, 704, 768, 896,\r\n 1024\r\n};", "parent": 0, "children": [557, 558], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 133, "column": 2}}, {"id": 557, "type": "primitive_type", "text": "uint16_t", "parent": 556, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 21}}, {"id": 558, "type": "init_declarator", "text": "subband_tab[33] = {\r\n 0, 8, 16, 24, 32, 40, 48, 56,\r\n 64, 80, 96, 112, 128, 144, 160, 176,\r\n 192, 224, 256, 288, 320, 352, 384, 416,\r\n 448, 480, 512, 576, 640, 704, 768, 896,\r\n 1024\r\n}", "parent": 556, "children": [559, 562, 563], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 133, "column": 1}}, {"id": 559, "type": "array_declarator", "text": "subband_tab[33]", "parent": 558, "children": [560, 561], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 37}}, {"id": 560, "type": "identifier", "text": "subband_tab", "parent": 559, "children": [], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 33}}, {"id": 561, "type": "number_literal", "text": "33", "parent": 559, "children": [], "start_point": {"row": 127, "column": 34}, "end_point": {"row": 127, "column": 36}}, {"id": 562, "type": "=", "text": "=", "parent": 558, "children": [], "start_point": {"row": 127, "column": 38}, "end_point": {"row": 127, "column": 39}}, {"id": 563, "type": "initializer_list", "text": "{\r\n 0, 8, 16, 24, 32, 40, 48, 56,\r\n 64, 80, 96, 112, 128, 144, 160, 176,\r\n 192, 224, 256, 288, 320, 352, 384, 416,\r\n 448, 480, 512, 576, 640, 704, 768, 896,\r\n 1024\r\n}", "parent": 558, "children": [564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596], "start_point": {"row": 127, "column": 40}, "end_point": {"row": 133, "column": 1}}, {"id": 564, "type": "number_literal", "text": "0", "parent": 563, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 7}}, {"id": 565, "type": "number_literal", "text": "8", "parent": 563, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 12}}, {"id": 566, "type": "number_literal", "text": "16", "parent": 563, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 17}}, {"id": 567, "type": "number_literal", "text": "24", "parent": 563, "children": [], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 22}}, {"id": 568, "type": "number_literal", "text": "32", "parent": 563, "children": [], "start_point": {"row": 128, "column": 25}, "end_point": {"row": 128, "column": 27}}, {"id": 569, "type": "number_literal", "text": "40", "parent": 563, "children": [], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 32}}, {"id": 570, "type": "number_literal", "text": "48", "parent": 563, "children": [], "start_point": {"row": 128, "column": 35}, "end_point": {"row": 128, "column": 37}}, {"id": 571, "type": "number_literal", "text": "56", "parent": 563, "children": [], "start_point": {"row": 128, "column": 40}, "end_point": {"row": 128, "column": 42}}, {"id": 572, "type": "number_literal", "text": "64", "parent": 563, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 7}}, {"id": 573, "type": "number_literal", "text": "80", "parent": 563, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 12}}, {"id": 574, "type": "number_literal", "text": "96", "parent": 563, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 17}}, {"id": 575, "type": "number_literal", "text": "112", "parent": 563, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 22}}, {"id": 576, "type": "number_literal", "text": "128", "parent": 563, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 27}}, {"id": 577, "type": "number_literal", "text": "144", "parent": 563, "children": [], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 32}}, {"id": 578, "type": "number_literal", "text": "160", "parent": 563, "children": [], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 37}}, {"id": 579, "type": "number_literal", "text": "176", "parent": 563, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 42}}, {"id": 580, "type": "number_literal", "text": "192", "parent": 563, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 7}}, {"id": 581, "type": "number_literal", "text": "224", "parent": 563, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 12}}, {"id": 582, "type": "number_literal", "text": "256", "parent": 563, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 17}}, {"id": 583, "type": "number_literal", "text": "288", "parent": 563, "children": [], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 22}}, {"id": 584, "type": "number_literal", "text": "320", "parent": 563, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 27}}, {"id": 585, "type": "number_literal", "text": "352", "parent": 563, "children": [], "start_point": {"row": 130, "column": 29}, "end_point": {"row": 130, "column": 32}}, {"id": 586, "type": "number_literal", "text": "384", "parent": 563, "children": [], "start_point": {"row": 130, "column": 34}, "end_point": {"row": 130, "column": 37}}, {"id": 587, "type": "number_literal", "text": "416", "parent": 563, "children": [], "start_point": {"row": 130, "column": 39}, "end_point": {"row": 130, "column": 42}}, {"id": 588, "type": "number_literal", "text": "448", "parent": 563, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 7}}, {"id": 589, "type": "number_literal", "text": "480", "parent": 563, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 12}}, {"id": 590, "type": "number_literal", "text": "512", "parent": 563, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 17}}, {"id": 591, "type": "number_literal", "text": "576", "parent": 563, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 22}}, {"id": 592, "type": "number_literal", "text": "640", "parent": 563, "children": [], "start_point": {"row": 131, "column": 24}, "end_point": {"row": 131, "column": 27}}, {"id": 593, "type": "number_literal", "text": "704", "parent": 563, "children": [], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 32}}, {"id": 594, "type": "number_literal", "text": "768", "parent": 563, "children": [], "start_point": {"row": 131, "column": 34}, "end_point": {"row": 131, "column": 37}}, {"id": 595, "type": "number_literal", "text": "896", "parent": 563, "children": [], "start_point": {"row": 131, "column": 39}, "end_point": {"row": 131, "column": 42}}, {"id": 596, "type": "number_literal", "text": "1024", "parent": 563, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 597, "type": "declaration", "text": "static const float matrix_coeffs[8] = {\r\n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0\r\n};", "parent": 0, "children": [598, 599], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 138, "column": 2}}, {"id": 598, "type": "primitive_type", "text": "float", "parent": 597, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 18}}, {"id": 599, "type": "init_declarator", "text": "matrix_coeffs[8] = {\r\n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0\r\n}", "parent": 597, "children": [600, 603, 604], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 138, "column": 1}}, {"id": 600, "type": "array_declarator", "text": "matrix_coeffs[8]", "parent": 599, "children": [601, 602], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 35}}, {"id": 601, "type": "identifier", "text": "matrix_coeffs", "parent": 600, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 32}}, {"id": 602, "type": "number_literal", "text": "8", "parent": 600, "children": [], "start_point": {"row": 136, "column": 33}, "end_point": {"row": 136, "column": 34}}, {"id": 603, "type": "=", "text": "=", "parent": 599, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 37}}, {"id": 604, "type": "initializer_list", "text": "{\r\n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0\r\n}", "parent": 599, "children": [605, 606, 607, 608, 609, 610, 611, 612], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 138, "column": 1}}, {"id": 605, "type": "number_literal", "text": "0.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 7}}, {"id": 606, "type": "number_literal", "text": "2.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 12}}, {"id": 607, "type": "number_literal", "text": "2.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 17}}, {"id": 608, "type": "number_literal", "text": "2.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 22}}, {"id": 609, "type": "number_literal", "text": "0.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 27}}, {"id": 610, "type": "number_literal", "text": "0.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 29}, "end_point": {"row": 137, "column": 32}}, {"id": 611, "type": "number_literal", "text": "1.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 37}}, {"id": 612, "type": "number_literal", "text": "1.0", "parent": 604, "children": [], "start_point": {"row": 137, "column": 39}, "end_point": {"row": 137, "column": 42}}, {"id": 613, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [9, 26, 43, 56, 69, 84, 99, 116, 133, 156, 179, 218, 257, 328, 399, 414, 431, 448, 465, 481, 493, 519, 556, 597], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [528, 532, 536, 540, 544, 548, 552], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 30, 47, 60, 73, 88, 103, 120, 137, 160, 183, 222, 261, 332, 403, 420, 424, 425, 426, 427, 428, 429, 430, 437, 441, 442, 443, 444, 445, 446, 447, 452, 469, 485, 497, 523, 560, 601, 613], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 31, 34, 35, 36, 37, 38, 39, 40, 41, 42, 48, 51, 52, 53, 54, 55, 61, 64, 65, 66, 67, 68, 74, 77, 78, 79, 80, 81, 82, 83, 89, 92, 93, 94, 95, 96, 97, 98, 104, 107, 108, 109, 110, 111, 112, 113, 114, 115, 121, 124, 125, 126, 127, 128, 129, 130, 131, 132, 138, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 161, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 184, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 223, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 262, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 333, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 404, 407, 408, 409, 410, 411, 412, 413, 421, 438, 453, 456, 457, 458, 459, 460, 461, 462, 463, 464, 470, 473, 474, 475, 476, 477, 478, 479, 480, 486, 489, 490, 491, 492, 498, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 524, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545, 547, 549, 551, 553, 555, 561, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 602, 605, 606, 607, 608, 609, 610, 611, 612], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.h>\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\r\n * Atrac 3 compatible decoder data\r\n * Copyright (c) 2006-2007 <NAME>\r\n * Copyright (c) 2006-2007 <NAME>\r\n *\r\n * This file is part of FFmpeg.\r\n *\r\n * FFmpeg is free software; you can redistribute it and/or\r\n * modify it under the terms of the GNU Lesser General Public\r\n * License as published by the Free Software Foundation; either\r\n * version 2.1 of the License, or (at your option) any later version.\r\n *\r\n * FFmpeg is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r\n * Lesser General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU Lesser General Public\r\n * License along with FFmpeg; if not, write to the Free Software\r\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r\n */\r\n\r\n/**\r\n * @file\r\n * Atrac 3 AKA RealAudio 8 compatible decoder data\r\n */\r\n\r\n#ifndef AVCODEC_ATRAC3DATA_H\r\n#define AVCODEC_ATRAC3DATA_H\r\n\r\n#include <stdint.h>\r\n\r\n/* VLC tables */\r\n\r\nstatic const uint8_t huffcode1[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};\r\n\r\nstatic const uint8_t huffbits1[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };\r\n\r\nstatic const uint8_t huffcode2[5] = { 0x0, 0x4, 0x5, 0x6, 0x7 };\r\n\r\nstatic const uint8_t huffbits2[5] = { 1, 3, 3, 3, 3 };\r\n\r\nstatic const uint8_t huffcode3[7] = { 0x0, 0x4, 0x5, 0xC, 0xD, 0xE, 0xF };\r\n\r\nstatic const uint8_t huffbits3[7] = { 1, 3, 3, 4, 4, 4, 4 };\r\n\r\nstatic const uint8_t huffcode4[9] = {\r\n 0x0, 0x4, 0x5, 0xC, 0xD, 0x1C, 0x1D, 0x1E, 0x1F\r\n};\r\n\r\nstatic const uint8_t huffbits4[9] = { 1, 3, 3, 4, 4, 5, 5, 5, 5 };\r\n\r\nstatic const uint8_t huffcode5[15] = {\r\n 0x00, 0x02, 0x03, 0x08, 0x09, 0x0A, 0x0B, 0x1C,\r\n 0x1D, 0x3C, 0x3D, 0x3E, 0x3F, 0x0C, 0x0D\r\n};\r\n\r\nstatic const uint8_t huffbits5[15] = {\r\n 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 4, 4\r\n};\r\n\r\nstatic const uint8_t huffcode6[31] = {\r\n 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x14,\r\n 0x15, 0x16, 0x17, 0x18, 0x19, 0x34, 0x35, 0x36,\r\n 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x78, 0x79, 0x7A,\r\n 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x08, 0x09\r\n};\r\n\r\nstatic const uint8_t huffbits6[31] = {\r\n 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 4, 4\r\n};\r\n\r\nstatic const uint8_t huffcode7[63] = {\r\n 0x00, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,\r\n 0x0F, 0x10, 0x11, 0x24, 0x25, 0x26, 0x27, 0x28,\r\n 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,\r\n 0x31, 0x32, 0x33, 0x68, 0x69, 0x6A, 0x6B, 0x6C,\r\n 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74,\r\n 0x75, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,\r\n 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA,\r\n 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x02, 0x03\r\n};\r\n\r\nstatic const uint8_t huffbits7[63] = {\r\n 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6,\r\n 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7,\r\n 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8,\r\n 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4\r\n};\r\n\r\nstatic const uint8_t huff_tab_sizes[7] = {\r\n 9, 5, 7, 9, 15, 31, 63,\r\n};\r\n\r\nstatic const uint8_t* const huff_codes[7] = {\r\n huffcode1, huffcode2, huffcode3, huffcode4, huffcode5, huffcode6, huffcode7\r\n};\r\n\r\nstatic const uint8_t* const huff_bits[7] = {\r\n huffbits1, huffbits2, huffbits3, huffbits4, huffbits5, huffbits6, huffbits7,\r\n};\r\n\r\nstatic const uint16_t atrac3_vlc_offs[9] = {\r\n 0, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096\r\n};\r\n\r\n/* selector tables */\r\n\r\nstatic const uint8_t clc_length_tab[8] = { 0, 4, 3, 3, 4, 4, 5, 6 };\r\n\r\nstatic const int8_t mantissa_clc_tab[4] = { 0, 1, -2, -1 };\r\n\r\nstatic const int8_t mantissa_vlc_tab[18] = {\r\n 0, 0, 0, 1, 0, -1, 1, 0, -1, 0, 1, 1, 1, -1, -1, 1, -1, -1\r\n};\r\n\r\n\r\n/* tables for the scalefactor decoding */\r\n\r\nstatic const float inv_max_quant[8] = {\r\n 0.0, 1.0 / 1.5, 1.0 / 2.5, 1.0 / 3.5,\r\n 1.0 / 4.5, 1.0 / 7.5, 1.0 / 15.5, 1.0 / 31.5\r\n};\r\n\r\nstatic const uint16_t subband_tab[33] = {\r\n 0, 8, 16, 24, 32, 40, 48, 56,\r\n 64, 80, 96, 112, 128, 144, 160, 176,\r\n 192, 224, 256, 288, 320, 352, 384, 416,\r\n 448, 480, 512, 576, 640, 704, 768, 896,\r\n 1024\r\n};\r\n\r\n/* joint stereo related tables */\r\nstatic const float matrix_coeffs[8] = {\r\n 0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0\r\n};\r\n\r\n#endif /* AVCODEC_ATRAC3DATA_H */\r\n"}
116
c
#pragma once #include "ScriptComponent.h" #include "CameraComponent.h" #include "ModuleCamera3D.h" #include "ModuleRenderer3D.h" #include "Math/float3x3.h" #include "Geometry/LineSegment.h" #include "Geometry/Triangle.h" #include "Geometry/Capsule.h" #include "ScriptBindings.h" #include <metadata\object-forward.h> #include <metadata\object.h> #include <metadata/class.h> void LookAt(MonoObject* go, MonoObject* transformToLook) { float3 target = app->moduleMono->UnboxVector(transformToLook); Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum(); float3 directionFrustum = target - cameraFrustum->Pos(); directionFrustum.Normalize(); float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f)); cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized()); cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized()); } void ChangeFov(MonoObject* go, float newFov) { CameraComponent* camComp = GetComponentMono<CameraComponent*>(go); camComp->SetNewFov(DegToRad(newFov)); camComp->UpdateFov(); camComp->CompileBuffers(); } MonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag) { float3 pointA = app->moduleMono->UnboxVector(initPos); float3 pointB = app->moduleMono->UnboxVector(endPos); char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0)); LineSegment picking(pointA, pointB); std::stack<QuadtreeNode*> nodes; std::set<GameObject*> gameObjects; app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking); app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes); std::map<float, GameObject*> triangleMap; float3 hit; app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit); // Throw Ray from enemy head to player head if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName) return app->moduleMono->GoToCSGO((*triangleMap.begin()).second); triangleMap.clear(); return nullptr; } int PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize) { float3 pointA = app->moduleMono->UnboxVector(initPos); float3 forward = app->moduleMono->UnboxVector(_forward); std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize); std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize); std::set<GameObject*> gameObjects(colliders.begin(), colliders.end()); float angle = _angle * DEGTORAD; forward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD); std::vector<float3> vertex; vertex.reserve(rays); std::map<float, GameObject*> triangleMap; float3 hit = float3::zero; for (int i = 0; i < rays; i++) { LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius)); app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit); vertex.push_back(pointA); // origin if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous vertex.push_back(hit); // this if (i == 1) { vertex.erase(vertex.begin()); vertex.erase(vertex.begin()); } triangleMap.clear(); hit = float3::zero; } int ret = -1; for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3) { Triangle t(vertex[i], vertex[i+1], vertex[i+2]); for (size_t j = 0; j < players.size(); j++) { if (t.Intersects(players.at(j)->GetOOB())) { vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition(); vec topPoint = bottomPoint; topPoint.y += 1; if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) { ret = j; break; } } } } // Inverse triangle std::reverse(vertex.begin(), vertex.end()); // Add to enemyCones list int sizeCon = app->renderer3D->enemyCones.size(); app->renderer3D->enemyCones.resize(sizeCon + vertex.size()); memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3)); return ret; }
38.06
105
(translation_unit) "#pragma once\n#include "ScriptComponent.h"\n#include "CameraComponent.h"\n#include "ModuleCamera3D.h"\n#include "ModuleRenderer3D.h"\n\n#include "Math/float3x3.h"\n#include "Geometry/LineSegment.h"\n#include "Geometry/Triangle.h"\n#include "Geometry/Capsule.h"\n\n#include "ScriptBindings.h"\n#include <metadata\object-forward.h>\n#include <metadata\object.h>\n#include <metadata/class.h>\n\nvoid LookAt(MonoObject* go, MonoObject* transformToLook)\n{\n float3 target = app->moduleMono->UnboxVector(transformToLook);\n\n Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();\n float3 directionFrustum = target - cameraFrustum->Pos();\n directionFrustum.Normalize();\n\n float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));\n cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());\n cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());\n}\n\nvoid ChangeFov(MonoObject* go, float newFov)\n{\n CameraComponent* camComp = GetComponentMono<CameraComponent*>(go);\n camComp->SetNewFov(DegToRad(newFov));\n camComp->UpdateFov();\n camComp->CompileBuffers();\n}\n\nMonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)\n{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 pointB = app->moduleMono->UnboxVector(endPos);\n char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));\n LineSegment picking(pointA, pointB);\n\n std::stack<QuadtreeNode*> nodes;\n std::set<GameObject*> gameObjects;\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);\n\n std::map<float, GameObject*> triangleMap;\n float3 hit;\n app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);\n\n // Throw Ray from enemy head to player head\n if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);\n\n triangleMap.clear();\n return nullptr;\n}\n\nint PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)\n{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 forward = app->moduleMono->UnboxVector(_forward);\n std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);\n std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);\n std::set<GameObject*> gameObjects(colliders.begin(), colliders.end());\n\n float angle = _angle * DEGTORAD;\n forward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD);\n std::vector<float3> vertex;\n vertex.reserve(rays);\n std::map<float, GameObject*> triangleMap;\n float3 hit = float3::zero;\n\n for (int i = 0; i < rays; i++)\n {\n LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n \n vertex.push_back(pointA); // origin\n if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n vertex.push_back(hit); // this\n\n if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }\n triangleMap.clear();\n hit = float3::zero;\n }\n\n int ret = -1;\n for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n {\n Triangle t(vertex[i], vertex[i+1], vertex[i+2]);\n for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n } \n }\n\n // Inverse triangle\n std::reverse(vertex.begin(), vertex.end());\n\n // Add to enemyCones list\n int sizeCon = app->renderer3D->enemyCones.size();\n app->renderer3D->enemyCones.resize(sizeCon + vertex.size());\n memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));\n\n return ret;\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ScriptComponent.h"\n" (#include) "#include" (string_literal) ""ScriptComponent.h"" (") """ (string_content) "ScriptComponent.h" (") """ (preproc_include) "#include "CameraComponent.h"\n" (#include) "#include" (string_literal) ""CameraComponent.h"" (") """ (string_content) "CameraComponent.h" (") """ (preproc_include) "#include "ModuleCamera3D.h"\n" (#include) "#include" (string_literal) ""ModuleCamera3D.h"" (") """ (string_content) "ModuleCamera3D.h" (") """ (preproc_include) "#include "ModuleRenderer3D.h"\n" (#include) "#include" (string_literal) ""ModuleRenderer3D.h"" (") """ (string_content) "ModuleRenderer3D.h" (") """ (preproc_include) "#include "Math/float3x3.h"\n" (#include) "#include" (string_literal) ""Math/float3x3.h"" (") """ (string_content) "Math/float3x3.h" (") """ (preproc_include) "#include "Geometry/LineSegment.h"\n" (#include) "#include" (string_literal) ""Geometry/LineSegment.h"" (") """ (string_content) "Geometry/LineSegment.h" (") """ (preproc_include) "#include "Geometry/Triangle.h"\n" (#include) "#include" (string_literal) ""Geometry/Triangle.h"" (") """ (string_content) "Geometry/Triangle.h" (") """ (preproc_include) "#include "Geometry/Capsule.h"\n" (#include) "#include" (string_literal) ""Geometry/Capsule.h"" (") """ (string_content) "Geometry/Capsule.h" (") """ (preproc_include) "#include "ScriptBindings.h"\n" (#include) "#include" (string_literal) ""ScriptBindings.h"" (") """ (string_content) "ScriptBindings.h" (") """ (preproc_include) "#include <metadata\object-forward.h>\n" (#include) "#include" (system_lib_string) "<metadata\object-forward.h>" (preproc_include) "#include <metadata\object.h>\n" (#include) "#include" (system_lib_string) "<metadata\object.h>" (preproc_include) "#include <metadata/class.h>\n" (#include) "#include" (system_lib_string) "<metadata/class.h>" (function_definition) "void LookAt(MonoObject* go, MonoObject* transformToLook)\n{\n float3 target = app->moduleMono->UnboxVector(transformToLook);\n\n Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();\n float3 directionFrustum = target - cameraFrustum->Pos();\n directionFrustum.Normalize();\n\n float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));\n cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());\n cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());\n}" (primitive_type) "void" (function_declarator) "LookAt(MonoObject* go, MonoObject* transformToLook)" (identifier) "LookAt" (parameter_list) "(MonoObject* go, MonoObject* transformToLook)" (() "(" (parameter_declaration) "MonoObject* go" (type_identifier) "MonoObject" (pointer_declarator) "* go" (*) "*" (identifier) "go" (,) "," (parameter_declaration) "MonoObject* transformToLook" (type_identifier) "MonoObject" (pointer_declarator) "* transformToLook" (*) "*" (identifier) "transformToLook" ()) ")" (compound_statement) "{\n float3 target = app->moduleMono->UnboxVector(transformToLook);\n\n Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();\n float3 directionFrustum = target - cameraFrustum->Pos();\n directionFrustum.Normalize();\n\n float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));\n cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());\n cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());\n}" ({) "{" (declaration) "float3 target = app->moduleMono->UnboxVector(transformToLook);" (type_identifier) "float3" (init_declarator) "target = app->moduleMono->UnboxVector(transformToLook)" (identifier) "target" (=) "=" (call_expression) "app->moduleMono->UnboxVector(transformToLook)" (field_expression) "app->moduleMono->UnboxVector" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxVector" (argument_list) "(transformToLook)" (() "(" (identifier) "transformToLook" ()) ")" (;) ";" (declaration) "Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();" (type_identifier) "Frustum" (init_declarator) "* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum()" (pointer_declarator) "* cameraFrustum" (*) "*" (identifier) "cameraFrustum" (=) "=" (binary_expression) "GetComponentMono<CameraComponent*>(go)->GetFrustum()" (binary_expression) "GetComponentMono<CameraComponent" (identifier) "GetComponentMono" (<) "<" (identifier) "CameraComponent" (ERROR) "*" (*) "*" (>) ">" (call_expression) "(go)->GetFrustum()" (field_expression) "(go)->GetFrustum" (parenthesized_expression) "(go)" (() "(" (identifier) "go" ()) ")" (->) "->" (field_identifier) "GetFrustum" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "float3 directionFrustum = target - cameraFrustum->Pos();" (type_identifier) "float3" (init_declarator) "directionFrustum = target - cameraFrustum->Pos()" (identifier) "directionFrustum" (=) "=" (binary_expression) "target - cameraFrustum->Pos()" (identifier) "target" (-) "-" (call_expression) "cameraFrustum->Pos()" (field_expression) "cameraFrustum->Pos" (identifier) "cameraFrustum" (->) "->" (field_identifier) "Pos" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "directionFrustum.Normalize();" (call_expression) "directionFrustum.Normalize()" (field_expression) "directionFrustum.Normalize" (identifier) "directionFrustum" (.) "." (field_identifier) "Normalize" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));" (type_identifier) "float3x3" (init_declarator) "lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))" (identifier) "lookAt" (=) "=" (ERROR) "float3x3::" (identifier) "float3x3" (:) ":" (:) ":" (call_expression) "LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))" (identifier) "LookAt" (argument_list) "(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))" (() "(" (call_expression) "cameraFrustum->Front()" (field_expression) "cameraFrustum->Front" (identifier) "cameraFrustum" (->) "->" (field_identifier) "Front" (argument_list) "()" (() "(" ()) ")" (,) "," (identifier) "directionFrustum" (,) "," (call_expression) "cameraFrustum->Up()" (field_expression) "cameraFrustum->Up" (identifier) "cameraFrustum" (->) "->" (field_identifier) "Up" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "float3(0.0f, 1.0f, 0.0f)" (identifier) "float3" (argument_list) "(0.0f, 1.0f, 0.0f)" (() "(" (number_literal) "0.0f" (,) "," (number_literal) "1.0f" (,) "," (number_literal) "0.0f" ()) ")" ()) ")" (;) ";" (expression_statement) "cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());" (call_expression) "cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized())" (field_expression) "cameraFrustum->SetFront" (identifier) "cameraFrustum" (->) "->" (field_identifier) "SetFront" (argument_list) "(lookAt.MulDir(cameraFrustum->Front()).Normalized())" (() "(" (call_expression) "lookAt.MulDir(cameraFrustum->Front()).Normalized()" (field_expression) "lookAt.MulDir(cameraFrustum->Front()).Normalized" (call_expression) "lookAt.MulDir(cameraFrustum->Front())" (field_expression) "lookAt.MulDir" (identifier) "lookAt" (.) "." (field_identifier) "MulDir" (argument_list) "(cameraFrustum->Front())" (() "(" (call_expression) "cameraFrustum->Front()" (field_expression) "cameraFrustum->Front" (identifier) "cameraFrustum" (->) "->" (field_identifier) "Front" (argument_list) "()" (() "(" ()) ")" ()) ")" (.) "." (field_identifier) "Normalized" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());" (call_expression) "cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized())" (field_expression) "cameraFrustum->SetUp" (identifier) "cameraFrustum" (->) "->" (field_identifier) "SetUp" (argument_list) "(lookAt.MulDir(cameraFrustum->Up()).Normalized())" (() "(" (call_expression) "lookAt.MulDir(cameraFrustum->Up()).Normalized()" (field_expression) "lookAt.MulDir(cameraFrustum->Up()).Normalized" (call_expression) "lookAt.MulDir(cameraFrustum->Up())" (field_expression) "lookAt.MulDir" (identifier) "lookAt" (.) "." (field_identifier) "MulDir" (argument_list) "(cameraFrustum->Up())" (() "(" (call_expression) "cameraFrustum->Up()" (field_expression) "cameraFrustum->Up" (identifier) "cameraFrustum" (->) "->" (field_identifier) "Up" (argument_list) "()" (() "(" ()) ")" ()) ")" (.) "." (field_identifier) "Normalized" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void ChangeFov(MonoObject* go, float newFov)\n{\n CameraComponent* camComp = GetComponentMono<CameraComponent*>(go);\n camComp->SetNewFov(DegToRad(newFov));\n camComp->UpdateFov();\n camComp->CompileBuffers();\n}" (primitive_type) "void" (function_declarator) "ChangeFov(MonoObject* go, float newFov)" (identifier) "ChangeFov" (parameter_list) "(MonoObject* go, float newFov)" (() "(" (parameter_declaration) "MonoObject* go" (type_identifier) "MonoObject" (pointer_declarator) "* go" (*) "*" (identifier) "go" (,) "," (parameter_declaration) "float newFov" (primitive_type) "float" (identifier) "newFov" ()) ")" (compound_statement) "{\n CameraComponent* camComp = GetComponentMono<CameraComponent*>(go);\n camComp->SetNewFov(DegToRad(newFov));\n camComp->UpdateFov();\n camComp->CompileBuffers();\n}" ({) "{" (declaration) "CameraComponent* camComp = GetComponentMono<CameraComponent*>(go);" (type_identifier) "CameraComponent" (init_declarator) "* camComp = GetComponentMono<CameraComponent*>(go)" (pointer_declarator) "* camComp" (*) "*" (identifier) "camComp" (=) "=" (binary_expression) "GetComponentMono<CameraComponent*>(go)" (binary_expression) "GetComponentMono<CameraComponent" (identifier) "GetComponentMono" (<) "<" (identifier) "CameraComponent" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(go)" (() "(" (identifier) "go" ()) ")" (;) ";" (expression_statement) "camComp->SetNewFov(DegToRad(newFov));" (call_expression) "camComp->SetNewFov(DegToRad(newFov))" (field_expression) "camComp->SetNewFov" (identifier) "camComp" (->) "->" (field_identifier) "SetNewFov" (argument_list) "(DegToRad(newFov))" (() "(" (call_expression) "DegToRad(newFov)" (identifier) "DegToRad" (argument_list) "(newFov)" (() "(" (identifier) "newFov" ()) ")" ()) ")" (;) ";" (expression_statement) "camComp->UpdateFov();" (call_expression) "camComp->UpdateFov()" (field_expression) "camComp->UpdateFov" (identifier) "camComp" (->) "->" (field_identifier) "UpdateFov" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "camComp->CompileBuffers();" (call_expression) "camComp->CompileBuffers()" (field_expression) "camComp->CompileBuffers" (identifier) "camComp" (->) "->" (field_identifier) "CompileBuffers" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "MonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)\n{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 pointB = app->moduleMono->UnboxVector(endPos);\n char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));\n LineSegment picking(pointA, pointB);\n\n std::stack<QuadtreeNode*> nodes;\n std::set<GameObject*> gameObjects;\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);\n\n std::map<float, GameObject*> triangleMap;\n float3 hit;\n app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);\n\n // Throw Ray from enemy head to player head\n if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);\n\n triangleMap.clear();\n return nullptr;\n}" (type_identifier) "MonoObject" (pointer_declarator) "* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)" (*) "*" (function_declarator) "HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)" (identifier) "HitToTag" (parameter_list) "(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)" (() "(" (parameter_declaration) "MonoObject* initPos" (type_identifier) "MonoObject" (pointer_declarator) "* initPos" (*) "*" (identifier) "initPos" (,) "," (parameter_declaration) "MonoObject* endPos" (type_identifier) "MonoObject" (pointer_declarator) "* endPos" (*) "*" (identifier) "endPos" (,) "," (parameter_declaration) "MonoObject* tag" (type_identifier) "MonoObject" (pointer_declarator) "* tag" (*) "*" (identifier) "tag" ()) ")" (compound_statement) "{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 pointB = app->moduleMono->UnboxVector(endPos);\n char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));\n LineSegment picking(pointA, pointB);\n\n std::stack<QuadtreeNode*> nodes;\n std::set<GameObject*> gameObjects;\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);\n app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);\n\n std::map<float, GameObject*> triangleMap;\n float3 hit;\n app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);\n\n // Throw Ray from enemy head to player head\n if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);\n\n triangleMap.clear();\n return nullptr;\n}" ({) "{" (declaration) "float3 pointA = app->moduleMono->UnboxVector(initPos);" (type_identifier) "float3" (init_declarator) "pointA = app->moduleMono->UnboxVector(initPos)" (identifier) "pointA" (=) "=" (call_expression) "app->moduleMono->UnboxVector(initPos)" (field_expression) "app->moduleMono->UnboxVector" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxVector" (argument_list) "(initPos)" (() "(" (identifier) "initPos" ()) ")" (;) ";" (declaration) "float3 pointB = app->moduleMono->UnboxVector(endPos);" (type_identifier) "float3" (init_declarator) "pointB = app->moduleMono->UnboxVector(endPos)" (identifier) "pointB" (=) "=" (call_expression) "app->moduleMono->UnboxVector(endPos)" (field_expression) "app->moduleMono->UnboxVector" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxVector" (argument_list) "(endPos)" (() "(" (identifier) "endPos" ()) ")" (;) ";" (declaration) "char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));" (primitive_type) "char" (init_declarator) "* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0))" (pointer_declarator) "* tagName" (*) "*" (identifier) "tagName" (=) "=" (call_expression) "mono_string_to_utf8(mono_object_to_string(tag, 0))" (identifier) "mono_string_to_utf8" (argument_list) "(mono_object_to_string(tag, 0))" (() "(" (call_expression) "mono_object_to_string(tag, 0)" (identifier) "mono_object_to_string" (argument_list) "(tag, 0)" (() "(" (identifier) "tag" (,) "," (number_literal) "0" ()) ")" ()) ")" (;) ";" (declaration) "LineSegment picking(pointA, pointB);" (type_identifier) "LineSegment" (function_declarator) "picking(pointA, pointB)" (identifier) "picking" (parameter_list) "(pointA, pointB)" (() "(" (parameter_declaration) "pointA" (type_identifier) "pointA" (,) "," (parameter_declaration) "pointB" (type_identifier) "pointB" ()) ")" (;) ";" (labeled_statement) "std::stack<QuadtreeNode*> nodes;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "stack<QuadtreeNode*> nodes;" (binary_expression) "stack<QuadtreeNode*> nodes" (binary_expression) "stack<QuadtreeNode" (identifier) "stack" (<) "<" (identifier) "QuadtreeNode" (ERROR) "*" (*) "*" (>) ">" (identifier) "nodes" (;) ";" (labeled_statement) "std::set<GameObject*> gameObjects;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "set<GameObject*> gameObjects;" (binary_expression) "set<GameObject*> gameObjects" (binary_expression) "set<GameObject" (identifier) "set" (<) "<" (identifier) "GameObject" (ERROR) "*" (*) "*" (>) ">" (identifier) "gameObjects" (;) ";" (expression_statement) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);" (call_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking)" (field_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes" (call_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree()" (field_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree" (call_expression) "app->sceneManager->GetCurrentScene()" (field_expression) "app->sceneManager->GetCurrentScene" (field_expression) "app->sceneManager" (identifier) "app" (->) "->" (field_identifier) "sceneManager" (->) "->" (field_identifier) "GetCurrentScene" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "GetQuadtree" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "CollectNodes" (argument_list) "(nodes, picking)" (() "(" (identifier) "nodes" (,) "," (identifier) "picking" ()) ")" (;) ";" (expression_statement) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);" (call_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes)" (field_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic" (call_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree()" (field_expression) "app->sceneManager->GetCurrentScene()->GetQuadtree" (call_expression) "app->sceneManager->GetCurrentScene()" (field_expression) "app->sceneManager->GetCurrentScene" (field_expression) "app->sceneManager" (identifier) "app" (->) "->" (field_identifier) "sceneManager" (->) "->" (field_identifier) "GetCurrentScene" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "GetQuadtree" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "CollectGoOnlyStatic" (argument_list) "(gameObjects, nodes)" (() "(" (identifier) "gameObjects" (,) "," (identifier) "nodes" ()) ")" (;) ";" (labeled_statement) "std::map<float, GameObject*> triangleMap;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "map<float, GameObject*> triangleMap;" (comma_expression) "map<float, GameObject*> triangleMap" (binary_expression) "map<float" (identifier) "map" (<) "<" (identifier) "float" (,) "," (binary_expression) "GameObject*> triangleMap" (identifier) "GameObject" (*) "*" (ERROR) ">" (>) ">" (identifier) "triangleMap" (;) ";" (declaration) "float3 hit;" (type_identifier) "float3" (identifier) "hit" (;) ";" (expression_statement) "app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);" (call_expression) "app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit)" (field_expression) "app->camera->ThrowRayCast" (field_expression) "app->camera" (identifier) "app" (->) "->" (field_identifier) "camera" (->) "->" (field_identifier) "ThrowRayCast" (argument_list) "(gameObjects, picking, triangleMap, hit)" (() "(" (identifier) "gameObjects" (,) "," (identifier) "picking" (,) "," (identifier) "triangleMap" (,) "," (identifier) "hit" ()) ")" (;) ";" (comment) "// Throw Ray from enemy head to player head" (if_statement) "if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);" (if) "if" (parenthesized_expression) "(!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)" (() "(" (binary_expression) "!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName" (unary_expression) "!triangleMap.empty()" (!) "!" (call_expression) "triangleMap.empty()" (field_expression) "triangleMap.empty" (identifier) "triangleMap" (.) "." (field_identifier) "empty" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (binary_expression) "(*triangleMap.begin()).second->tag == tagName" (field_expression) "(*triangleMap.begin()).second->tag" (field_expression) "(*triangleMap.begin()).second" (parenthesized_expression) "(*triangleMap.begin())" (() "(" (pointer_expression) "*triangleMap.begin()" (*) "*" (call_expression) "triangleMap.begin()" (field_expression) "triangleMap.begin" (identifier) "triangleMap" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" ()) ")" (.) "." (field_identifier) "second" (->) "->" (field_identifier) "tag" (==) "==" (identifier) "tagName" ()) ")" (return_statement) "return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);" (return) "return" (call_expression) "app->moduleMono->GoToCSGO((*triangleMap.begin()).second)" (field_expression) "app->moduleMono->GoToCSGO" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "GoToCSGO" (argument_list) "((*triangleMap.begin()).second)" (() "(" (field_expression) "(*triangleMap.begin()).second" (parenthesized_expression) "(*triangleMap.begin())" (() "(" (pointer_expression) "*triangleMap.begin()" (*) "*" (call_expression) "triangleMap.begin()" (field_expression) "triangleMap.begin" (identifier) "triangleMap" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" ()) ")" (.) "." (field_identifier) "second" ()) ")" (;) ";" (expression_statement) "triangleMap.clear();" (call_expression) "triangleMap.clear()" (field_expression) "triangleMap.clear" (identifier) "triangleMap" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (function_definition) "int PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)\n{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 forward = app->moduleMono->UnboxVector(_forward);\n std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);\n std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);\n std::set<GameObject*> gameObjects(colliders.begin(), colliders.end());\n\n float angle = _angle * DEGTORAD;\n forward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD);\n std::vector<float3> vertex;\n vertex.reserve(rays);\n std::map<float, GameObject*> triangleMap;\n float3 hit = float3::zero;\n\n for (int i = 0; i < rays; i++)\n {\n LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n \n vertex.push_back(pointA); // origin\n if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n vertex.push_back(hit); // this\n\n if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }\n triangleMap.clear();\n hit = float3::zero;\n }\n\n int ret = -1;\n for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n {\n Triangle t(vertex[i], vertex[i+1], vertex[i+2]);\n for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n } \n }\n\n // Inverse triangle\n std::reverse(vertex.begin(), vertex.end());\n\n // Add to enemyCones list\n int sizeCon = app->renderer3D->enemyCones.size();\n app->renderer3D->enemyCones.resize(sizeCon + vertex.size());\n memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));\n\n return ret;\n}" (primitive_type) "int" (function_declarator) "PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)" (identifier) "PerceptionCone" (parameter_list) "(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)" (() "(" (parameter_declaration) "MonoObject* initPos" (type_identifier) "MonoObject" (pointer_declarator) "* initPos" (*) "*" (identifier) "initPos" (,) "," (parameter_declaration) "MonoObject* _forward" (type_identifier) "MonoObject" (pointer_declarator) "* _forward" (*) "*" (identifier) "_forward" (,) "," (parameter_declaration) "int _angle" (primitive_type) "int" (identifier) "_angle" (,) "," (parameter_declaration) "int rays" (primitive_type) "int" (identifier) "rays" (,) "," (parameter_declaration) "int radius" (primitive_type) "int" (identifier) "radius" (,) "," (parameter_declaration) "MonoArray* _players" (type_identifier) "MonoArray" (pointer_declarator) "* _players" (*) "*" (identifier) "_players" (,) "," (parameter_declaration) "int playersSize" (primitive_type) "int" (identifier) "playersSize" (,) "," (parameter_declaration) "MonoArray* _colliders" (type_identifier) "MonoArray" (pointer_declarator) "* _colliders" (*) "*" (identifier) "_colliders" (,) "," (parameter_declaration) "int collidersSize" (primitive_type) "int" (identifier) "collidersSize" ()) ")" (compound_statement) "{\n float3 pointA = app->moduleMono->UnboxVector(initPos);\n float3 forward = app->moduleMono->UnboxVector(_forward);\n std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);\n std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);\n std::set<GameObject*> gameObjects(colliders.begin(), colliders.end());\n\n float angle = _angle * DEGTORAD;\n forward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD);\n std::vector<float3> vertex;\n vertex.reserve(rays);\n std::map<float, GameObject*> triangleMap;\n float3 hit = float3::zero;\n\n for (int i = 0; i < rays; i++)\n {\n LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n \n vertex.push_back(pointA); // origin\n if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n vertex.push_back(hit); // this\n\n if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }\n triangleMap.clear();\n hit = float3::zero;\n }\n\n int ret = -1;\n for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n {\n Triangle t(vertex[i], vertex[i+1], vertex[i+2]);\n for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n } \n }\n\n // Inverse triangle\n std::reverse(vertex.begin(), vertex.end());\n\n // Add to enemyCones list\n int sizeCon = app->renderer3D->enemyCones.size();\n app->renderer3D->enemyCones.resize(sizeCon + vertex.size());\n memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));\n\n return ret;\n}" ({) "{" (declaration) "float3 pointA = app->moduleMono->UnboxVector(initPos);" (type_identifier) "float3" (init_declarator) "pointA = app->moduleMono->UnboxVector(initPos)" (identifier) "pointA" (=) "=" (call_expression) "app->moduleMono->UnboxVector(initPos)" (field_expression) "app->moduleMono->UnboxVector" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxVector" (argument_list) "(initPos)" (() "(" (identifier) "initPos" ()) ")" (;) ";" (declaration) "float3 forward = app->moduleMono->UnboxVector(_forward);" (type_identifier) "float3" (init_declarator) "forward = app->moduleMono->UnboxVector(_forward)" (identifier) "forward" (=) "=" (call_expression) "app->moduleMono->UnboxVector(_forward)" (field_expression) "app->moduleMono->UnboxVector" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxVector" (argument_list) "(_forward)" (() "(" (identifier) "_forward" ()) ")" (;) ";" (labeled_statement) "std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);" (binary_expression) "vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize)" (binary_expression) "vector<GameObject" (identifier) "vector" (<) "<" (identifier) "GameObject" (ERROR) "*" (*) "*" (>) ">" (assignment_expression) "players = app->moduleMono->UnboxArray(_players, playersSize)" (identifier) "players" (=) "=" (call_expression) "app->moduleMono->UnboxArray(_players, playersSize)" (field_expression) "app->moduleMono->UnboxArray" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxArray" (argument_list) "(_players, playersSize)" (() "(" (identifier) "_players" (,) "," (identifier) "playersSize" ()) ")" (;) ";" (labeled_statement) "std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);" (binary_expression) "vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize)" (binary_expression) "vector<GameObject" (identifier) "vector" (<) "<" (identifier) "GameObject" (ERROR) "*" (*) "*" (>) ">" (assignment_expression) "colliders = app->moduleMono->UnboxArray(_colliders, collidersSize)" (identifier) "colliders" (=) "=" (call_expression) "app->moduleMono->UnboxArray(_colliders, collidersSize)" (field_expression) "app->moduleMono->UnboxArray" (field_expression) "app->moduleMono" (identifier) "app" (->) "->" (field_identifier) "moduleMono" (->) "->" (field_identifier) "UnboxArray" (argument_list) "(_colliders, collidersSize)" (() "(" (identifier) "_colliders" (,) "," (identifier) "collidersSize" ()) ")" (;) ";" (labeled_statement) "std::set<GameObject*> gameObjects(colliders.begin(), colliders.end());" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "set<GameObject*> gameObjects(colliders.begin(), colliders.end());" (binary_expression) "set<GameObject*> gameObjects(colliders.begin(), colliders.end())" (binary_expression) "set<GameObject" (identifier) "set" (<) "<" (identifier) "GameObject" (ERROR) "*" (*) "*" (>) ">" (call_expression) "gameObjects(colliders.begin(), colliders.end())" (identifier) "gameObjects" (argument_list) "(colliders.begin(), colliders.end())" (() "(" (call_expression) "colliders.begin()" (field_expression) "colliders.begin" (identifier) "colliders" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "colliders.end()" (field_expression) "colliders.end" (identifier) "colliders" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (declaration) "float angle = _angle * DEGTORAD;" (primitive_type) "float" (init_declarator) "angle = _angle * DEGTORAD" (identifier) "angle" (=) "=" (binary_expression) "_angle * DEGTORAD" (identifier) "_angle" (*) "*" (identifier) "DEGTORAD" (;) ";" (ERROR) "forward = forward * float3x3::" (assignment_expression) "forward = forward * float3x3" (identifier) "forward" (=) "=" (binary_expression) "forward * float3x3" (identifier) "forward" (*) "*" (identifier) "float3x3" (:) ":" (:) ":" (expression_statement) "RotateY((360-(_angle/2)) * DEGTORAD);" (call_expression) "RotateY((360-(_angle/2)) * DEGTORAD)" (identifier) "RotateY" (argument_list) "((360-(_angle/2)) * DEGTORAD)" (() "(" (binary_expression) "(360-(_angle/2)) * DEGTORAD" (parenthesized_expression) "(360-(_angle/2))" (() "(" (binary_expression) "360-(_angle/2)" (number_literal) "360" (-) "-" (parenthesized_expression) "(_angle/2)" (() "(" (binary_expression) "_angle/2" (identifier) "_angle" (/) "/" (number_literal) "2" ()) ")" ()) ")" (*) "*" (identifier) "DEGTORAD" ()) ")" (;) ";" (labeled_statement) "std::vector<float3> vertex;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<float3> vertex;" (binary_expression) "vector<float3> vertex" (binary_expression) "vector<float3" (identifier) "vector" (<) "<" (identifier) "float3" (>) ">" (identifier) "vertex" (;) ";" (expression_statement) "vertex.reserve(rays);" (call_expression) "vertex.reserve(rays)" (field_expression) "vertex.reserve" (identifier) "vertex" (.) "." (field_identifier) "reserve" (argument_list) "(rays)" (() "(" (identifier) "rays" ()) ")" (;) ";" (labeled_statement) "std::map<float, GameObject*> triangleMap;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "map<float, GameObject*> triangleMap;" (comma_expression) "map<float, GameObject*> triangleMap" (binary_expression) "map<float" (identifier) "map" (<) "<" (identifier) "float" (,) "," (binary_expression) "GameObject*> triangleMap" (identifier) "GameObject" (*) "*" (ERROR) ">" (>) ">" (identifier) "triangleMap" (;) ";" (declaration) "float3 hit = float3::zero;" (type_identifier) "float3" (init_declarator) "hit = float3" (identifier) "hit" (=) "=" (identifier) "float3" (ERROR) "::zero" (:) ":" (:) ":" (identifier) "zero" (;) ";" (for_statement) "for (int i = 0; i < rays; i++)\n {\n LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n \n vertex.push_back(pointA); // origin\n if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n vertex.push_back(hit); // this\n\n if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }\n triangleMap.clear();\n hit = float3::zero;\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < rays" (identifier) "i" (<) "<" (identifier) "rays" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n \n vertex.push_back(pointA); // origin\n if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n vertex.push_back(hit); // this\n\n if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }\n triangleMap.clear();\n hit = float3::zero;\n }" ({) "{" (declaration) "LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));" (type_identifier) "LineSegment" (function_declarator) "ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius))" (identifier) "ray" (parameter_list) "(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius))" (() "(" (parameter_declaration) "pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius)" (type_identifier) "pointA" (ERROR) ", pointA +" (,) "," (identifier) "pointA" (+) "+" (abstract_function_declarator) "(forward * float3x3::RotateY(angle/rays * i) * radius)" (parameter_list) "(forward * float3x3::RotateY(angle/rays * i) * radius)" (() "(" (parameter_declaration) "forward * float3x3::RotateY(angle/rays * i) * radius" (type_identifier) "forward" (pointer_declarator) "* float3x3::RotateY(angle/rays * i) * radius" (*) "*" (ERROR) "float3x3::RotateY(angle/rays * i)" (identifier) "float3x3" (:) ":" (:) ":" (function_declarator) "RotateY(angle/rays * i)" (identifier) "RotateY" (parameter_list) "(angle/rays * i)" (() "(" (parameter_declaration) "angle/rays * i" (type_identifier) "angle" (ERROR) "/rays" (/) "/" (identifier) "rays" (pointer_declarator) "* i" (*) "*" (identifier) "i" ()) ")" (pointer_declarator) "* radius" (*) "*" (identifier) "radius" ()) ")" ()) ")" (;) ";" (expression_statement) "app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);" (call_expression) "app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit)" (field_expression) "app->camera->ThrowRayCast" (field_expression) "app->camera" (identifier) "app" (->) "->" (field_identifier) "camera" (->) "->" (field_identifier) "ThrowRayCast" (argument_list) "(gameObjects, ray, triangleMap, hit)" (() "(" (identifier) "gameObjects" (,) "," (identifier) "ray" (,) "," (identifier) "triangleMap" (,) "," (identifier) "hit" ()) ")" (;) ";" (expression_statement) "vertex.push_back(pointA);" (call_expression) "vertex.push_back(pointA)" (field_expression) "vertex.push_back" (identifier) "vertex" (.) "." (field_identifier) "push_back" (argument_list) "(pointA)" (() "(" (identifier) "pointA" ()) ")" (;) ";" (comment) "// origin" (if_statement) "if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2));" (if) "if" (parenthesized_expression) "(i != 0)" (() "(" (binary_expression) "i != 0" (identifier) "i" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "vertex.push_back(vertex.at(vertex.size() - 2));" (call_expression) "vertex.push_back(vertex.at(vertex.size() - 2))" (field_expression) "vertex.push_back" (identifier) "vertex" (.) "." (field_identifier) "push_back" (argument_list) "(vertex.at(vertex.size() - 2))" (() "(" (call_expression) "vertex.at(vertex.size() - 2)" (field_expression) "vertex.at" (identifier) "vertex" (.) "." (field_identifier) "at" (argument_list) "(vertex.size() - 2)" (() "(" (binary_expression) "vertex.size() - 2" (call_expression) "vertex.size()" (field_expression) "vertex.size" (identifier) "vertex" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "2" ()) ")" ()) ")" (;) ";" (comment) "// previous " (expression_statement) "vertex.push_back(hit);" (call_expression) "vertex.push_back(hit)" (field_expression) "vertex.push_back" (identifier) "vertex" (.) "." (field_identifier) "push_back" (argument_list) "(hit)" (() "(" (identifier) "hit" ()) ")" (;) ";" (comment) "// this" (if_statement) "if (i == 1)\n {\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }" (if) "if" (parenthesized_expression) "(i == 1)" (() "(" (binary_expression) "i == 1" (identifier) "i" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n vertex.erase(vertex.begin());\n vertex.erase(vertex.begin());\n }" ({) "{" (expression_statement) "vertex.erase(vertex.begin());" (call_expression) "vertex.erase(vertex.begin())" (field_expression) "vertex.erase" (identifier) "vertex" (.) "." (field_identifier) "erase" (argument_list) "(vertex.begin())" (() "(" (call_expression) "vertex.begin()" (field_expression) "vertex.begin" (identifier) "vertex" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "vertex.erase(vertex.begin());" (call_expression) "vertex.erase(vertex.begin())" (field_expression) "vertex.erase" (identifier) "vertex" (.) "." (field_identifier) "erase" (argument_list) "(vertex.begin())" (() "(" (call_expression) "vertex.begin()" (field_expression) "vertex.begin" (identifier) "vertex" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "triangleMap.clear();" (call_expression) "triangleMap.clear()" (field_expression) "triangleMap.clear" (identifier) "triangleMap" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "hit = float3::zero;" (assignment_expression) "hit = float3" (identifier) "hit" (=) "=" (identifier) "float3" (ERROR) "::zero" (:) ":" (:) ":" (identifier) "zero" (;) ";" (}) "}" (declaration) "int ret = -1;" (primitive_type) "int" (init_declarator) "ret = -1" (identifier) "ret" (=) "=" (number_literal) "-1" (;) ";" (for_statement) "for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n {\n Triangle t(vertex[i], vertex[i+1], vertex[i+2]);\n for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n } \n }" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < vertex.size() && ret == -1" (binary_expression) "i < vertex.size()" (identifier) "i" (<) "<" (call_expression) "vertex.size()" (field_expression) "vertex.size" (identifier) "vertex" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (binary_expression) "ret == -1" (identifier) "ret" (==) "==" (number_literal) "-1" (;) ";" (assignment_expression) "i+=3" (identifier) "i" (+=) "+=" (number_literal) "3" ()) ")" (compound_statement) "{\n Triangle t(vertex[i], vertex[i+1], vertex[i+2]);\n for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n } \n }" ({) "{" (declaration) "Triangle t(vertex[i], vertex[i+1], vertex[i+2]);" (type_identifier) "Triangle" (function_declarator) "t(vertex[i], vertex[i+1], vertex[i+2])" (identifier) "t" (parameter_list) "(vertex[i], vertex[i+1], vertex[i+2])" (() "(" (parameter_declaration) "vertex[i]" (type_identifier) "vertex" (abstract_array_declarator) "[i]" ([) "[" (identifier) "i" (]) "]" (,) "," (parameter_declaration) "vertex[i+1]" (type_identifier) "vertex" (abstract_array_declarator) "[i+1]" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (,) "," (parameter_declaration) "vertex[i+2]" (type_identifier) "vertex" (abstract_array_declarator) "[i+2]" ([) "[" (binary_expression) "i+2" (identifier) "i" (+) "+" (number_literal) "2" (]) "]" ()) ")" (;) ";" (for_statement) "for (size_t j = 0; j < players.size(); j++)\n {\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n }" (for) "for" (() "(" (declaration) "size_t j = 0;" (primitive_type) "size_t" (init_declarator) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < players.size()" (identifier) "j" (<) "<" (call_expression) "players.size()" (field_expression) "players.size" (identifier) "players" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }\n }" ({) "{" (if_statement) "if (t.Intersects(players.at(j)->GetOOB()))\n {\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }" (if) "if" (parenthesized_expression) "(t.Intersects(players.at(j)->GetOOB()))" (() "(" (call_expression) "t.Intersects(players.at(j)->GetOOB())" (field_expression) "t.Intersects" (identifier) "t" (.) "." (field_identifier) "Intersects" (argument_list) "(players.at(j)->GetOOB())" (() "(" (call_expression) "players.at(j)->GetOOB()" (field_expression) "players.at(j)->GetOOB" (call_expression) "players.at(j)" (field_expression) "players.at" (identifier) "players" (.) "." (field_identifier) "at" (argument_list) "(j)" (() "(" (identifier) "j" ()) ")" (->) "->" (field_identifier) "GetOOB" (argument_list) "()" (() "(" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n vec topPoint = bottomPoint;\n topPoint.y += 1;\n if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }\n \n }" ({) "{" (declaration) "vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();" (type_identifier) "vec" (init_declarator) "bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition()" (identifier) "bottomPoint" (=) "=" (binary_expression) "players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition()" (binary_expression) "players.at(j)->GetComponent<TransformComponent" (field_expression) "players.at(j)->GetComponent" (call_expression) "players.at(j)" (field_expression) "players.at" (identifier) "players" (.) "." (field_identifier) "at" (argument_list) "(j)" (() "(" (identifier) "j" ()) ")" (->) "->" (field_identifier) "GetComponent" (<) "<" (identifier) "TransformComponent" (>) ">" (call_expression) "()->GetGlobalPosition()" (field_expression) "()->GetGlobalPosition" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (->) "->" (field_identifier) "GetGlobalPosition" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "vec topPoint = bottomPoint;" (type_identifier) "vec" (init_declarator) "topPoint = bottomPoint" (identifier) "topPoint" (=) "=" (identifier) "bottomPoint" (;) ";" (expression_statement) "topPoint.y += 1;" (assignment_expression) "topPoint.y += 1" (field_expression) "topPoint.y" (identifier) "topPoint" (.) "." (field_identifier) "y" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n ret = j;\n break;\n }" (if) "if" (parenthesized_expression) "(t.Intersects(Capsule(bottomPoint, topPoint, 0.60f)))" (() "(" (call_expression) "t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))" (field_expression) "t.Intersects" (identifier) "t" (.) "." (field_identifier) "Intersects" (argument_list) "(Capsule(bottomPoint, topPoint, 0.60f))" (() "(" (call_expression) "Capsule(bottomPoint, topPoint, 0.60f)" (identifier) "Capsule" (argument_list) "(bottomPoint, topPoint, 0.60f)" (() "(" (identifier) "bottomPoint" (,) "," (identifier) "topPoint" (,) "," (number_literal) "0.60f" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n ret = j;\n break;\n }" ({) "{" (expression_statement) "ret = j;" (assignment_expression) "ret = j" (identifier) "ret" (=) "=" (identifier) "j" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}" (comment) "// Inverse triangle" (labeled_statement) "std::reverse(vertex.begin(), vertex.end());" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "reverse(vertex.begin(), vertex.end());" (call_expression) "reverse(vertex.begin(), vertex.end())" (identifier) "reverse" (argument_list) "(vertex.begin(), vertex.end())" (() "(" (call_expression) "vertex.begin()" (field_expression) "vertex.begin" (identifier) "vertex" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "vertex.end()" (field_expression) "vertex.end" (identifier) "vertex" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (comment) "// Add to enemyCones list" (declaration) "int sizeCon = app->renderer3D->enemyCones.size();" (primitive_type) "int" (init_declarator) "sizeCon = app->renderer3D->enemyCones.size()" (identifier) "sizeCon" (=) "=" (call_expression) "app->renderer3D->enemyCones.size()" (field_expression) "app->renderer3D->enemyCones.size" (field_expression) "app->renderer3D->enemyCones" (field_expression) "app->renderer3D" (identifier) "app" (->) "->" (field_identifier) "renderer3D" (->) "->" (field_identifier) "enemyCones" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "app->renderer3D->enemyCones.resize(sizeCon + vertex.size());" (call_expression) "app->renderer3D->enemyCones.resize(sizeCon + vertex.size())" (field_expression) "app->renderer3D->enemyCones.resize" (field_expression) "app->renderer3D->enemyCones" (field_expression) "app->renderer3D" (identifier) "app" (->) "->" (field_identifier) "renderer3D" (->) "->" (field_identifier) "enemyCones" (.) "." (field_identifier) "resize" (argument_list) "(sizeCon + vertex.size())" (() "(" (binary_expression) "sizeCon + vertex.size()" (identifier) "sizeCon" (+) "+" (call_expression) "vertex.size()" (field_expression) "vertex.size" (identifier) "vertex" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));" (call_expression) "memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3))" (identifier) "memcpy" (argument_list) "(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3))" (() "(" (pointer_expression) "&app->renderer3D->enemyCones[sizeCon]" (&) "&" (subscript_expression) "app->renderer3D->enemyCones[sizeCon]" (field_expression) "app->renderer3D->enemyCones" (field_expression) "app->renderer3D" (identifier) "app" (->) "->" (field_identifier) "renderer3D" (->) "->" (field_identifier) "enemyCones" ([) "[" (identifier) "sizeCon" (]) "]" (,) "," (pointer_expression) "&vertex[0]" (&) "&" (subscript_expression) "vertex[0]" (identifier) "vertex" ([) "[" (number_literal) "0" (]) "]" (,) "," (binary_expression) "vertex.size() * sizeof(float3)" (call_expression) "vertex.size()" (field_expression) "vertex.size" (identifier) "vertex" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (*) "*" (sizeof_expression) "sizeof(float3)" (sizeof) "sizeof" (parenthesized_expression) "(float3)" (() "(" (identifier) "float3" ()) ")" ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}"
1,518
25
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 38.06, "nodes": 967, "errors": 0, "source_hash": "bc67bb615e270f113aeef7e6ffeae98a2531ef416025fb8ae490be1d1f95ee32", "categorized_nodes": 698}, "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 \"ScriptComponent.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": "\"ScriptComponent.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"CameraComponent.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": "\"CameraComponent.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"ModuleCamera3D.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": "\"ModuleCamera3D.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include \"ModuleRenderer3D.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"ModuleRenderer3D.h\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 29}}, {"id": 15, "type": "preproc_include", "text": "#include \"Math/float3x3.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"Math/float3x3.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 26}}, {"id": 18, "type": "preproc_include", "text": "#include \"Geometry/LineSegment.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"Geometry/LineSegment.h\"", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 33}}, {"id": 21, "type": "preproc_include", "text": "#include \"Geometry/Triangle.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"Geometry/Triangle.h\"", "parent": 21, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 30}}, {"id": 24, "type": "preproc_include", "text": "#include \"Geometry/Capsule.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"Geometry/Capsule.h\"", "parent": 24, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 29}}, {"id": 27, "type": "preproc_include", "text": "#include \"ScriptBindings.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"ScriptBindings.h\"", "parent": 27, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 27}}, {"id": 30, "type": "preproc_include", "text": "#include <metadata\\object-forward.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<metadata\\object-forward.h>", "parent": 30, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 36}}, {"id": 33, "type": "preproc_include", "text": "#include <metadata\\object.h>\n", "parent": null, "children": [34, 35], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<metadata\\object.h>", "parent": 33, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 28}}, {"id": 36, "type": "preproc_include", "text": "#include <metadata/class.h>\n", "parent": null, "children": [37, 38], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<metadata/class.h>", "parent": 36, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 39, "type": "function_definition", "text": "void LookAt(MonoObject* go, MonoObject* transformToLook)\n{\n\tfloat3 target = app->moduleMono->UnboxVector(transformToLook);\n\n\tFrustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();\n\tfloat3 directionFrustum = target - cameraFrustum->Pos();\n\tdirectionFrustum.Normalize();\n\n\tfloat3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));\n\tcameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());\n\tcameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());\n}", "parent": null, "children": [40, 41], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 41, "type": "function_declarator", "text": "LookAt(MonoObject* go, MonoObject* transformToLook)", "parent": 39, "children": [42, 43], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 56}}, {"id": 42, "type": "identifier", "text": "LookAt", "parent": 41, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 11}}, {"id": 43, "type": "parameter_list", "text": "(MonoObject* go, MonoObject* transformToLook)", "parent": 41, "children": [44, 49], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 56}}, {"id": 44, "type": "parameter_declaration", "text": "MonoObject* go", "parent": 43, "children": [45, 46], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 26}}, {"id": 45, "type": "type_identifier", "text": "MonoObject", "parent": 44, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 22}}, {"id": 46, "type": "pointer_declarator", "text": "* go", "parent": 44, "children": [47, 48], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 23}}, {"id": 48, "type": "identifier", "text": "go", "parent": 46, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 26}}, {"id": 49, "type": "parameter_declaration", "text": "MonoObject* transformToLook", "parent": 43, "children": [50, 51], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 55}}, {"id": 50, "type": "type_identifier", "text": "MonoObject", "parent": 49, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 38}}, {"id": 51, "type": "pointer_declarator", "text": "* transformToLook", "parent": 49, "children": [52, 53], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 55}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 53, "type": "identifier", "text": "transformToLook", "parent": 51, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 55}}, {"id": 54, "type": "declaration", "text": "float3 target = app->moduleMono->UnboxVector(transformToLook);", "parent": 39, "children": [55, 56], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 63}}, {"id": 55, "type": "type_identifier", "text": "float3", "parent": 54, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 7}}, {"id": 56, "type": "init_declarator", "text": "target = app->moduleMono->UnboxVector(transformToLook)", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 62}}, {"id": 57, "type": "identifier", "text": "target", "parent": 56, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 59, "type": "call_expression", "text": "app->moduleMono->UnboxVector(transformToLook)", "parent": 56, "children": [60, 65], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 62}}, {"id": 60, "type": "field_expression", "text": "app->moduleMono->UnboxVector", "parent": 59, "children": [61, 64], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 45}}, {"id": 61, "type": "field_expression", "text": "app->moduleMono", "parent": 60, "children": [62, 63], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 32}}, {"id": 62, "type": "identifier", "text": "app", "parent": 61, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 20}}, {"id": 63, "type": "field_identifier", "text": "moduleMono", "parent": 61, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 32}}, {"id": 64, "type": "field_identifier", "text": "UnboxVector", "parent": 60, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 45}}, {"id": 65, "type": "argument_list", "text": "(transformToLook)", "parent": 59, "children": [66], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 62}}, {"id": 66, "type": "identifier", "text": "transformToLook", "parent": 65, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 61}}, {"id": 67, "type": "declaration", "text": "Frustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();", "parent": 39, "children": [68, 69], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 79}}, {"id": 68, "type": "type_identifier", "text": "Frustum", "parent": 67, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 8}}, {"id": 69, "type": "init_declarator", "text": "* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum()", "parent": 67, "children": [70, 73, 74], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 78}}, {"id": 70, "type": "pointer_declarator", "text": "* cameraFrustum", "parent": 69, "children": [71, 72], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 23}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 72, "type": "identifier", "text": "cameraFrustum", "parent": 70, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 23}}, {"id": 73, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 74, "type": "binary_expression", "text": "GetComponentMono<CameraComponent*>(go)->GetFrustum()", "parent": 69, "children": [75, 79, 81, 82], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 78}}, {"id": 75, "type": "binary_expression", "text": "GetComponentMono<CameraComponent", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 58}}, {"id": 76, "type": "identifier", "text": "GetComponentMono", "parent": 75, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 42}}, {"id": 77, "type": "<", "text": "<", "parent": 75, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 43}}, {"id": 78, "type": "identifier", "text": "CameraComponent", "parent": 75, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 58}}, {"id": 79, "type": "ERROR", "text": "*", "parent": 74, "children": [80], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 59}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 59}}, {"id": 81, "type": ">", "text": ">", "parent": 74, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 60}}, {"id": 82, "type": "call_expression", "text": "(go)->GetFrustum()", "parent": 74, "children": [83, 87], "start_point": {"row": 20, "column": 60}, "end_point": {"row": 20, "column": 78}}, {"id": 83, "type": "field_expression", "text": "(go)->GetFrustum", "parent": 82, "children": [84, 86], "start_point": {"row": 20, "column": 60}, "end_point": {"row": 20, "column": 76}}, {"id": 84, "type": "parenthesized_expression", "text": "(go)", "parent": 83, "children": [85], "start_point": {"row": 20, "column": 60}, "end_point": {"row": 20, "column": 64}}, {"id": 85, "type": "identifier", "text": "go", "parent": 84, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 63}}, {"id": 86, "type": "field_identifier", "text": "GetFrustum", "parent": 83, "children": [], "start_point": {"row": 20, "column": 66}, "end_point": {"row": 20, "column": 76}}, {"id": 87, "type": "argument_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 20, "column": 76}, "end_point": {"row": 20, "column": 78}}, {"id": 88, "type": "declaration", "text": "float3 directionFrustum = target - cameraFrustum->Pos();", "parent": 39, "children": [89, 90], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 57}}, {"id": 89, "type": "type_identifier", "text": "float3", "parent": 88, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 7}}, {"id": 90, "type": "init_declarator", "text": "directionFrustum = target - cameraFrustum->Pos()", "parent": 88, "children": [91, 92, 93], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 56}}, {"id": 91, "type": "identifier", "text": "directionFrustum", "parent": 90, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 24}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 93, "type": "binary_expression", "text": "target - cameraFrustum->Pos()", "parent": 90, "children": [94, 95, 96], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 56}}, {"id": 94, "type": "identifier", "text": "target", "parent": 93, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 33}}, {"id": 95, "type": "-", "text": "-", "parent": 93, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 96, "type": "call_expression", "text": "cameraFrustum->Pos()", "parent": 93, "children": [97, 100], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 56}}, {"id": 97, "type": "field_expression", "text": "cameraFrustum->Pos", "parent": 96, "children": [98, 99], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 54}}, {"id": 98, "type": "identifier", "text": "cameraFrustum", "parent": 97, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 49}}, {"id": 99, "type": "field_identifier", "text": "Pos", "parent": 97, "children": [], "start_point": {"row": 21, "column": 51}, "end_point": {"row": 21, "column": 54}}, {"id": 100, "type": "argument_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 56}}, {"id": 101, "type": "call_expression", "text": "directionFrustum.Normalize()", "parent": 39, "children": [102, 105], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 29}}, {"id": 102, "type": "field_expression", "text": "directionFrustum.Normalize", "parent": 101, "children": [103, 104], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 27}}, {"id": 103, "type": "identifier", "text": "directionFrustum", "parent": 102, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 17}}, {"id": 104, "type": "field_identifier", "text": "Normalize", "parent": 102, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 27}}, {"id": 105, "type": "argument_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 29}}, {"id": 106, "type": "declaration", "text": "float3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));", "parent": 39, "children": [107, 108], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 125}}, {"id": 107, "type": "type_identifier", "text": "float3x3", "parent": 106, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 108, "type": "init_declarator", "text": "lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))", "parent": 106, "children": [109, 110, 111, 113], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 124}}, {"id": 109, "type": "identifier", "text": "lookAt", "parent": 108, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 111, "type": "ERROR", "text": "float3x3::", "parent": 108, "children": [112], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 29}}, {"id": 112, "type": "identifier", "text": "float3x3", "parent": 111, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 27}}, {"id": 113, "type": "call_expression", "text": "LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))", "parent": 108, "children": [114, 115], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 124}}, {"id": 114, "type": "identifier", "text": "LookAt", "parent": 113, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 35}}, {"id": 115, "type": "argument_list", "text": "(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f))", "parent": 113, "children": [116, 121, 122, 127], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 124}}, {"id": 116, "type": "call_expression", "text": "cameraFrustum->Front()", "parent": 115, "children": [117, 120], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 58}}, {"id": 117, "type": "field_expression", "text": "cameraFrustum->Front", "parent": 116, "children": [118, 119], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 56}}, {"id": 118, "type": "identifier", "text": "cameraFrustum", "parent": 117, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 49}}, {"id": 119, "type": "field_identifier", "text": "Front", "parent": 117, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 56}}, {"id": 120, "type": "argument_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 58}}, {"id": 121, "type": "identifier", "text": "directionFrustum", "parent": 115, "children": [], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 76}}, {"id": 122, "type": "call_expression", "text": "cameraFrustum->Up()", "parent": 115, "children": [123, 126], "start_point": {"row": 24, "column": 78}, "end_point": {"row": 24, "column": 97}}, {"id": 123, "type": "field_expression", "text": "cameraFrustum->Up", "parent": 122, "children": [124, 125], "start_point": {"row": 24, "column": 78}, "end_point": {"row": 24, "column": 95}}, {"id": 124, "type": "identifier", "text": "cameraFrustum", "parent": 123, "children": [], "start_point": {"row": 24, "column": 78}, "end_point": {"row": 24, "column": 91}}, {"id": 125, "type": "field_identifier", "text": "Up", "parent": 123, "children": [], "start_point": {"row": 24, "column": 93}, "end_point": {"row": 24, "column": 95}}, {"id": 126, "type": "argument_list", "text": "()", "parent": 122, "children": [], "start_point": {"row": 24, "column": 95}, "end_point": {"row": 24, "column": 97}}, {"id": 127, "type": "call_expression", "text": "float3(0.0f, 1.0f, 0.0f)", "parent": 115, "children": [128, 129], "start_point": {"row": 24, "column": 99}, "end_point": {"row": 24, "column": 123}}, {"id": 128, "type": "identifier", "text": "float3", "parent": 127, "children": [], "start_point": {"row": 24, "column": 99}, "end_point": {"row": 24, "column": 105}}, {"id": 129, "type": "argument_list", "text": "(0.0f, 1.0f, 0.0f)", "parent": 127, "children": [130, 131, 132], "start_point": {"row": 24, "column": 105}, "end_point": {"row": 24, "column": 123}}, {"id": 130, "type": "number_literal", "text": "0.0f", "parent": 129, "children": [], "start_point": {"row": 24, "column": 106}, "end_point": {"row": 24, "column": 110}}, {"id": 131, "type": "number_literal", "text": "1.0f", "parent": 129, "children": [], "start_point": {"row": 24, "column": 112}, "end_point": {"row": 24, "column": 116}}, {"id": 132, "type": "number_literal", "text": "0.0f", "parent": 129, "children": [], "start_point": {"row": 24, "column": 118}, "end_point": {"row": 24, "column": 122}}, {"id": 133, "type": "call_expression", "text": "cameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized())", "parent": 39, "children": [134, 137], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 76}}, {"id": 134, "type": "field_expression", "text": "cameraFrustum->SetFront", "parent": 133, "children": [135, 136], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 24}}, {"id": 135, "type": "identifier", "text": "cameraFrustum", "parent": 134, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 14}}, {"id": 136, "type": "field_identifier", "text": "SetFront", "parent": 134, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 24}}, {"id": 137, "type": "argument_list", "text": "(lookAt.MulDir(cameraFrustum->Front()).Normalized())", "parent": 133, "children": [138], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 76}}, {"id": 138, "type": "call_expression", "text": "lookAt.MulDir(cameraFrustum->Front()).Normalized()", "parent": 137, "children": [139, 151], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 75}}, {"id": 139, "type": "field_expression", "text": "lookAt.MulDir(cameraFrustum->Front()).Normalized", "parent": 138, "children": [140, 150], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 73}}, {"id": 140, "type": "call_expression", "text": "lookAt.MulDir(cameraFrustum->Front())", "parent": 139, "children": [141, 144], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 62}}, {"id": 141, "type": "field_expression", "text": "lookAt.MulDir", "parent": 140, "children": [142, 143], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 38}}, {"id": 142, "type": "identifier", "text": "lookAt", "parent": 141, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 31}}, {"id": 143, "type": "field_identifier", "text": "MulDir", "parent": 141, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 38}}, {"id": 144, "type": "argument_list", "text": "(cameraFrustum->Front())", "parent": 140, "children": [145], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 62}}, {"id": 145, "type": "call_expression", "text": "cameraFrustum->Front()", "parent": 144, "children": [146, 149], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 61}}, {"id": 146, "type": "field_expression", "text": "cameraFrustum->Front", "parent": 145, "children": [147, 148], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 59}}, {"id": 147, "type": "identifier", "text": "cameraFrustum", "parent": 146, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 52}}, {"id": 148, "type": "field_identifier", "text": "Front", "parent": 146, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 59}}, {"id": 149, "type": "argument_list", "text": "()", "parent": 145, "children": [], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 61}}, {"id": 150, "type": "field_identifier", "text": "Normalized", "parent": 139, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 73}}, {"id": 151, "type": "argument_list", "text": "()", "parent": 138, "children": [], "start_point": {"row": 25, "column": 73}, "end_point": {"row": 25, "column": 75}}, {"id": 152, "type": "call_expression", "text": "cameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized())", "parent": 39, "children": [153, 156], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 70}}, {"id": 153, "type": "field_expression", "text": "cameraFrustum->SetUp", "parent": 152, "children": [154, 155], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 21}}, {"id": 154, "type": "identifier", "text": "cameraFrustum", "parent": 153, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 14}}, {"id": 155, "type": "field_identifier", "text": "SetUp", "parent": 153, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 21}}, {"id": 156, "type": "argument_list", "text": "(lookAt.MulDir(cameraFrustum->Up()).Normalized())", "parent": 152, "children": [157], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 70}}, {"id": 157, "type": "call_expression", "text": "lookAt.MulDir(cameraFrustum->Up()).Normalized()", "parent": 156, "children": [158, 170], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 69}}, {"id": 158, "type": "field_expression", "text": "lookAt.MulDir(cameraFrustum->Up()).Normalized", "parent": 157, "children": [159, 169], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 67}}, {"id": 159, "type": "call_expression", "text": "lookAt.MulDir(cameraFrustum->Up())", "parent": 158, "children": [160, 163], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 56}}, {"id": 160, "type": "field_expression", "text": "lookAt.MulDir", "parent": 159, "children": [161, 162], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 35}}, {"id": 161, "type": "identifier", "text": "lookAt", "parent": 160, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 28}}, {"id": 162, "type": "field_identifier", "text": "MulDir", "parent": 160, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 35}}, {"id": 163, "type": "argument_list", "text": "(cameraFrustum->Up())", "parent": 159, "children": [164], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 56}}, {"id": 164, "type": "call_expression", "text": "cameraFrustum->Up()", "parent": 163, "children": [165, 168], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 55}}, {"id": 165, "type": "field_expression", "text": "cameraFrustum->Up", "parent": 164, "children": [166, 167], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 53}}, {"id": 166, "type": "identifier", "text": "cameraFrustum", "parent": 165, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 49}}, {"id": 167, "type": "field_identifier", "text": "Up", "parent": 165, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 53}}, {"id": 168, "type": "argument_list", "text": "()", "parent": 164, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 55}}, {"id": 169, "type": "field_identifier", "text": "Normalized", "parent": 158, "children": [], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 67}}, {"id": 170, "type": "argument_list", "text": "()", "parent": 157, "children": [], "start_point": {"row": 26, "column": 67}, "end_point": {"row": 26, "column": 69}}, {"id": 171, "type": "function_definition", "text": "void ChangeFov(MonoObject* go, float newFov)\n{\n\tCameraComponent* camComp = GetComponentMono<CameraComponent*>(go);\n\tcamComp->SetNewFov(DegToRad(newFov));\n\tcamComp->UpdateFov();\n\tcamComp->CompileBuffers();\n}", "parent": null, "children": [172, 173], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 172, "type": "primitive_type", "text": "void", "parent": 171, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 173, "type": "function_declarator", "text": "ChangeFov(MonoObject* go, float newFov)", "parent": 171, "children": [174, 175], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 44}}, {"id": 174, "type": "identifier", "text": "ChangeFov", "parent": 173, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 14}}, {"id": 175, "type": "parameter_list", "text": "(MonoObject* go, float newFov)", "parent": 173, "children": [176, 181], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 44}}, {"id": 176, "type": "parameter_declaration", "text": "MonoObject* go", "parent": 175, "children": [177, 178], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 29}}, {"id": 177, "type": "type_identifier", "text": "MonoObject", "parent": 176, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 25}}, {"id": 178, "type": "pointer_declarator", "text": "* go", "parent": 176, "children": [179, 180], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 29}}, {"id": 179, "type": "*", "text": "*", "parent": 178, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 180, "type": "identifier", "text": "go", "parent": 178, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 29}}, {"id": 181, "type": "parameter_declaration", "text": "float newFov", "parent": 175, "children": [182, 183], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 43}}, {"id": 182, "type": "primitive_type", "text": "float", "parent": 181, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 36}}, {"id": 183, "type": "identifier", "text": "newFov", "parent": 181, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 43}}, {"id": 184, "type": "declaration", "text": "CameraComponent* camComp = GetComponentMono<CameraComponent*>(go);", "parent": 171, "children": [185, 186], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 67}}, {"id": 185, "type": "type_identifier", "text": "CameraComponent", "parent": 184, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 16}}, {"id": 186, "type": "init_declarator", "text": "* camComp = GetComponentMono<CameraComponent*>(go)", "parent": 184, "children": [187, 190, 191], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 66}}, {"id": 187, "type": "pointer_declarator", "text": "* camComp", "parent": 186, "children": [188, 189], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 25}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 189, "type": "identifier", "text": "camComp", "parent": 187, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 25}}, {"id": 190, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 191, "type": "binary_expression", "text": "GetComponentMono<CameraComponent*>(go)", "parent": 186, "children": [192, 196, 198, 199], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 66}}, {"id": 192, "type": "binary_expression", "text": "GetComponentMono<CameraComponent", "parent": 191, "children": [193, 194, 195], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 60}}, {"id": 193, "type": "identifier", "text": "GetComponentMono", "parent": 192, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 44}}, {"id": 194, "type": "<", "text": "<", "parent": 192, "children": [], "start_point": {"row": 31, "column": 44}, "end_point": {"row": 31, "column": 45}}, {"id": 195, "type": "identifier", "text": "CameraComponent", "parent": 192, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 60}}, {"id": 196, "type": "ERROR", "text": "*", "parent": 191, "children": [197], "start_point": {"row": 31, "column": 60}, "end_point": {"row": 31, "column": 61}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 31, "column": 60}, "end_point": {"row": 31, "column": 61}}, {"id": 198, "type": ">", "text": ">", "parent": 191, "children": [], "start_point": {"row": 31, "column": 61}, "end_point": {"row": 31, "column": 62}}, {"id": 199, "type": "parenthesized_expression", "text": "(go)", "parent": 191, "children": [200], "start_point": {"row": 31, "column": 62}, "end_point": {"row": 31, "column": 66}}, {"id": 200, "type": "identifier", "text": "go", "parent": 199, "children": [], "start_point": {"row": 31, "column": 63}, "end_point": {"row": 31, "column": 65}}, {"id": 201, "type": "call_expression", "text": "camComp->SetNewFov(DegToRad(newFov))", "parent": 171, "children": [202, 205], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 37}}, {"id": 202, "type": "field_expression", "text": "camComp->SetNewFov", "parent": 201, "children": [203, 204], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 19}}, {"id": 203, "type": "identifier", "text": "camComp", "parent": 202, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 8}}, {"id": 204, "type": "field_identifier", "text": "SetNewFov", "parent": 202, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 19}}, {"id": 205, "type": "argument_list", "text": "(DegToRad(newFov))", "parent": 201, "children": [206], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 37}}, {"id": 206, "type": "call_expression", "text": "DegToRad(newFov)", "parent": 205, "children": [207, 208], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 36}}, {"id": 207, "type": "identifier", "text": "DegToRad", "parent": 206, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 28}}, {"id": 208, "type": "argument_list", "text": "(newFov)", "parent": 206, "children": [209], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 36}}, {"id": 209, "type": "identifier", "text": "newFov", "parent": 208, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 35}}, {"id": 210, "type": "call_expression", "text": "camComp->UpdateFov()", "parent": 171, "children": [211, 214], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 21}}, {"id": 211, "type": "field_expression", "text": "camComp->UpdateFov", "parent": 210, "children": [212, 213], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 19}}, {"id": 212, "type": "identifier", "text": "camComp", "parent": 211, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 8}}, {"id": 213, "type": "field_identifier", "text": "UpdateFov", "parent": 211, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 19}}, {"id": 214, "type": "argument_list", "text": "()", "parent": 210, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 21}}, {"id": 215, "type": "call_expression", "text": "camComp->CompileBuffers()", "parent": 171, "children": [216, 219], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 26}}, {"id": 216, "type": "field_expression", "text": "camComp->CompileBuffers", "parent": 215, "children": [217, 218], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 24}}, {"id": 217, "type": "identifier", "text": "camComp", "parent": 216, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 8}}, {"id": 218, "type": "field_identifier", "text": "CompileBuffers", "parent": 216, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 24}}, {"id": 219, "type": "argument_list", "text": "()", "parent": 215, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 26}}, {"id": 220, "type": "function_definition", "text": "MonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)\n{\n\tfloat3 pointA = app->moduleMono->UnboxVector(initPos);\n\tfloat3 pointB = app->moduleMono->UnboxVector(endPos);\n\tchar* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));\n\tLineSegment picking(pointA, pointB);\n\n\tstd::stack<QuadtreeNode*> nodes;\n\tstd::set<GameObject*> gameObjects;\n\tapp->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);\n\tapp->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);\n\n\tstd::map<float, GameObject*> triangleMap;\n\tfloat3 hit;\n\tapp->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);\n\n\t// Throw Ray from enemy head to player head\n\tif (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n\t\treturn app->moduleMono->GoToCSGO((*triangleMap.begin()).second);\n\n\ttriangleMap.clear();\n\treturn nullptr;\n}", "parent": null, "children": [221, 222], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 221, "type": "type_identifier", "text": "MonoObject", "parent": 220, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 10}}, {"id": 222, "type": "pointer_declarator", "text": "* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)", "parent": 220, "children": [223, 224], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 78}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 224, "type": "function_declarator", "text": "HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)", "parent": 222, "children": [225, 226], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 78}}, {"id": 225, "type": "identifier", "text": "HitToTag", "parent": 224, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 20}}, {"id": 226, "type": "parameter_list", "text": "(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)", "parent": 224, "children": [227, 232, 237], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 78}}, {"id": 227, "type": "parameter_declaration", "text": "MonoObject* initPos", "parent": 226, "children": [228, 229], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 40}}, {"id": 228, "type": "type_identifier", "text": "MonoObject", "parent": 227, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 31}}, {"id": 229, "type": "pointer_declarator", "text": "* initPos", "parent": 227, "children": [230, 231], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 40}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 32}}, {"id": 231, "type": "identifier", "text": "initPos", "parent": 229, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 40}}, {"id": 232, "type": "parameter_declaration", "text": "MonoObject* endPos", "parent": 226, "children": [233, 234], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 60}}, {"id": 233, "type": "type_identifier", "text": "MonoObject", "parent": 232, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 52}}, {"id": 234, "type": "pointer_declarator", "text": "* endPos", "parent": 232, "children": [235, 236], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 60}}, {"id": 235, "type": "*", "text": "*", "parent": 234, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 53}}, {"id": 236, "type": "identifier", "text": "endPos", "parent": 234, "children": [], "start_point": {"row": 37, "column": 54}, "end_point": {"row": 37, "column": 60}}, {"id": 237, "type": "parameter_declaration", "text": "MonoObject* tag", "parent": 226, "children": [238, 239], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 77}}, {"id": 238, "type": "type_identifier", "text": "MonoObject", "parent": 237, "children": [], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 72}}, {"id": 239, "type": "pointer_declarator", "text": "* tag", "parent": 237, "children": [240, 241], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 77}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 73}}, {"id": 241, "type": "identifier", "text": "tag", "parent": 239, "children": [], "start_point": {"row": 37, "column": 74}, "end_point": {"row": 37, "column": 77}}, {"id": 242, "type": "declaration", "text": "float3 pointA = app->moduleMono->UnboxVector(initPos);", "parent": 220, "children": [243, 244], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 55}}, {"id": 243, "type": "type_identifier", "text": "float3", "parent": 242, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 244, "type": "init_declarator", "text": "pointA = app->moduleMono->UnboxVector(initPos)", "parent": 242, "children": [245, 246, 247], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 54}}, {"id": 245, "type": "identifier", "text": "pointA", "parent": 244, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 246, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 247, "type": "call_expression", "text": "app->moduleMono->UnboxVector(initPos)", "parent": 244, "children": [248, 253], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 54}}, {"id": 248, "type": "field_expression", "text": "app->moduleMono->UnboxVector", "parent": 247, "children": [249, 252], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 45}}, {"id": 249, "type": "field_expression", "text": "app->moduleMono", "parent": 248, "children": [250, 251], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 32}}, {"id": 250, "type": "identifier", "text": "app", "parent": 249, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 20}}, {"id": 251, "type": "field_identifier", "text": "moduleMono", "parent": 249, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 32}}, {"id": 252, "type": "field_identifier", "text": "UnboxVector", "parent": 248, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 45}}, {"id": 253, "type": "argument_list", "text": "(initPos)", "parent": 247, "children": [254], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 54}}, {"id": 254, "type": "identifier", "text": "initPos", "parent": 253, "children": [], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 53}}, {"id": 255, "type": "declaration", "text": "float3 pointB = app->moduleMono->UnboxVector(endPos);", "parent": 220, "children": [256, 257], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 54}}, {"id": 256, "type": "type_identifier", "text": "float3", "parent": 255, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 7}}, {"id": 257, "type": "init_declarator", "text": "pointB = app->moduleMono->UnboxVector(endPos)", "parent": 255, "children": [258, 259, 260], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 53}}, {"id": 258, "type": "identifier", "text": "pointB", "parent": 257, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 14}}, {"id": 259, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 16}}, {"id": 260, "type": "call_expression", "text": "app->moduleMono->UnboxVector(endPos)", "parent": 257, "children": [261, 266], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 53}}, {"id": 261, "type": "field_expression", "text": "app->moduleMono->UnboxVector", "parent": 260, "children": [262, 265], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 45}}, {"id": 262, "type": "field_expression", "text": "app->moduleMono", "parent": 261, "children": [263, 264], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 32}}, {"id": 263, "type": "identifier", "text": "app", "parent": 262, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 20}}, {"id": 264, "type": "field_identifier", "text": "moduleMono", "parent": 262, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 32}}, {"id": 265, "type": "field_identifier", "text": "UnboxVector", "parent": 261, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 45}}, {"id": 266, "type": "argument_list", "text": "(endPos)", "parent": 260, "children": [267], "start_point": {"row": 40, "column": 45}, "end_point": {"row": 40, "column": 53}}, {"id": 267, "type": "identifier", "text": "endPos", "parent": 266, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 52}}, {"id": 268, "type": "declaration", "text": "char* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));", "parent": 220, "children": [269, 270], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 68}}, {"id": 269, "type": "primitive_type", "text": "char", "parent": 268, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 270, "type": "init_declarator", "text": "* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0))", "parent": 268, "children": [271, 274, 275], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 67}}, {"id": 271, "type": "pointer_declarator", "text": "* tagName", "parent": 270, "children": [272, 273], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 14}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 6}}, {"id": 273, "type": "identifier", "text": "tagName", "parent": 271, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 14}}, {"id": 274, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 275, "type": "call_expression", "text": "mono_string_to_utf8(mono_object_to_string(tag, 0))", "parent": 270, "children": [276, 277], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 67}}, {"id": 276, "type": "identifier", "text": "mono_string_to_utf8", "parent": 275, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 36}}, {"id": 277, "type": "argument_list", "text": "(mono_object_to_string(tag, 0))", "parent": 275, "children": [278], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 67}}, {"id": 278, "type": "call_expression", "text": "mono_object_to_string(tag, 0)", "parent": 277, "children": [279, 280], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 66}}, {"id": 279, "type": "identifier", "text": "mono_object_to_string", "parent": 278, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 58}}, {"id": 280, "type": "argument_list", "text": "(tag, 0)", "parent": 278, "children": [281, 282], "start_point": {"row": 41, "column": 58}, "end_point": {"row": 41, "column": 66}}, {"id": 281, "type": "identifier", "text": "tag", "parent": 280, "children": [], "start_point": {"row": 41, "column": 59}, "end_point": {"row": 41, "column": 62}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 280, "children": [], "start_point": {"row": 41, "column": 64}, "end_point": {"row": 41, "column": 65}}, {"id": 283, "type": "declaration", "text": "LineSegment picking(pointA, pointB);", "parent": 220, "children": [284, 285], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 37}}, {"id": 284, "type": "type_identifier", "text": "LineSegment", "parent": 283, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 12}}, {"id": 285, "type": "function_declarator", "text": "picking(pointA, pointB)", "parent": 283, "children": [286, 287], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 36}}, {"id": 286, "type": "identifier", "text": "picking", "parent": 285, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 20}}, {"id": 287, "type": "parameter_list", "text": "(pointA, pointB)", "parent": 285, "children": [288, 290], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 36}}, {"id": 288, "type": "parameter_declaration", "text": "pointA", "parent": 287, "children": [289], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 27}}, {"id": 289, "type": "type_identifier", "text": "pointA", "parent": 288, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 27}}, {"id": 290, "type": "parameter_declaration", "text": "pointB", "parent": 287, "children": [291], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 35}}, {"id": 291, "type": "type_identifier", "text": "pointB", "parent": 290, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 35}}, {"id": 292, "type": "labeled_statement", "text": "std::stack<QuadtreeNode*> nodes;", "parent": 220, "children": [293], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 33}}, {"id": 293, "type": "statement_identifier", "text": "std", "parent": 292, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 294, "type": "binary_expression", "text": "stack<QuadtreeNode*> nodes", "parent": 292, "children": [295, 299, 301, 302], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 32}}, {"id": 295, "type": "binary_expression", "text": "stack<QuadtreeNode", "parent": 294, "children": [296, 297, 298], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 24}}, {"id": 296, "type": "identifier", "text": "stack", "parent": 295, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 11}}, {"id": 297, "type": "<", "text": "<", "parent": 295, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 298, "type": "identifier", "text": "QuadtreeNode", "parent": 295, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 24}}, {"id": 299, "type": "ERROR", "text": "*", "parent": 294, "children": [300], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 25}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 25}}, {"id": 301, "type": ">", "text": ">", "parent": 294, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 26}}, {"id": 302, "type": "identifier", "text": "nodes", "parent": 294, "children": [], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 32}}, {"id": 303, "type": "labeled_statement", "text": "std::set<GameObject*> gameObjects;", "parent": 220, "children": [304], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 35}}, {"id": 304, "type": "statement_identifier", "text": "std", "parent": 303, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 4}}, {"id": 305, "type": "binary_expression", "text": "set<GameObject*> gameObjects", "parent": 303, "children": [306, 310, 312, 313], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 34}}, {"id": 306, "type": "binary_expression", "text": "set<GameObject", "parent": 305, "children": [307, 308, 309], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 20}}, {"id": 307, "type": "identifier", "text": "set", "parent": 306, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 9}}, {"id": 308, "type": "<", "text": "<", "parent": 306, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 10}}, {"id": 309, "type": "identifier", "text": "GameObject", "parent": 306, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 20}}, {"id": 310, "type": "ERROR", "text": "*", "parent": 305, "children": [311], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 312, "type": ">", "text": ">", "parent": 305, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 22}}, {"id": 313, "type": "identifier", "text": "gameObjects", "parent": 305, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 34}}, {"id": 314, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking)", "parent": 220, "children": [315, 328], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 81}}, {"id": 315, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes", "parent": 314, "children": [316, 327], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 65}}, {"id": 316, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree()", "parent": 315, "children": [317, 326], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 52}}, {"id": 317, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree", "parent": 316, "children": [318, 325], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 50}}, {"id": 318, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()", "parent": 317, "children": [319, 324], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 37}}, {"id": 319, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene", "parent": 318, "children": [320, 323], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 35}}, {"id": 320, "type": "field_expression", "text": "app->sceneManager", "parent": 319, "children": [321, 322], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 18}}, {"id": 321, "type": "identifier", "text": "app", "parent": 320, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 4}}, {"id": 322, "type": "field_identifier", "text": "sceneManager", "parent": 320, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 18}}, {"id": 323, "type": "field_identifier", "text": "GetCurrentScene", "parent": 319, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 35}}, {"id": 324, "type": "argument_list", "text": "()", "parent": 318, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 37}}, {"id": 325, "type": "field_identifier", "text": "GetQuadtree", "parent": 317, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 50}}, {"id": 326, "type": "argument_list", "text": "()", "parent": 316, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 52}}, {"id": 327, "type": "field_identifier", "text": "CollectNodes", "parent": 315, "children": [], "start_point": {"row": 46, "column": 53}, "end_point": {"row": 46, "column": 65}}, {"id": 328, "type": "argument_list", "text": "(nodes, picking)", "parent": 314, "children": [329, 330], "start_point": {"row": 46, "column": 65}, "end_point": {"row": 46, "column": 81}}, {"id": 329, "type": "identifier", "text": "nodes", "parent": 328, "children": [], "start_point": {"row": 46, "column": 66}, "end_point": {"row": 46, "column": 71}}, {"id": 330, "type": "identifier", "text": "picking", "parent": 328, "children": [], "start_point": {"row": 46, "column": 73}, "end_point": {"row": 46, "column": 80}}, {"id": 331, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes)", "parent": 220, "children": [332, 345], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 92}}, {"id": 332, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic", "parent": 331, "children": [333, 344], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 72}}, {"id": 333, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree()", "parent": 332, "children": [334, 343], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 52}}, {"id": 334, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene()->GetQuadtree", "parent": 333, "children": [335, 342], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 50}}, {"id": 335, "type": "call_expression", "text": "app->sceneManager->GetCurrentScene()", "parent": 334, "children": [336, 341], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 37}}, {"id": 336, "type": "field_expression", "text": "app->sceneManager->GetCurrentScene", "parent": 335, "children": [337, 340], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 35}}, {"id": 337, "type": "field_expression", "text": "app->sceneManager", "parent": 336, "children": [338, 339], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 18}}, {"id": 338, "type": "identifier", "text": "app", "parent": 337, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 339, "type": "field_identifier", "text": "sceneManager", "parent": 337, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 18}}, {"id": 340, "type": "field_identifier", "text": "GetCurrentScene", "parent": 336, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 35}}, {"id": 341, "type": "argument_list", "text": "()", "parent": 335, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 37}}, {"id": 342, "type": "field_identifier", "text": "GetQuadtree", "parent": 334, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 50}}, {"id": 343, "type": "argument_list", "text": "()", "parent": 333, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 52}}, {"id": 344, "type": "field_identifier", "text": "CollectGoOnlyStatic", "parent": 332, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 72}}, {"id": 345, "type": "argument_list", "text": "(gameObjects, nodes)", "parent": 331, "children": [346, 347], "start_point": {"row": 47, "column": 72}, "end_point": {"row": 47, "column": 92}}, {"id": 346, "type": "identifier", "text": "gameObjects", "parent": 345, "children": [], "start_point": {"row": 47, "column": 73}, "end_point": {"row": 47, "column": 84}}, {"id": 347, "type": "identifier", "text": "nodes", "parent": 345, "children": [], "start_point": {"row": 47, "column": 86}, "end_point": {"row": 47, "column": 91}}, {"id": 348, "type": "labeled_statement", "text": "std::map<float, GameObject*> triangleMap;", "parent": 220, "children": [349], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 42}}, {"id": 349, "type": "statement_identifier", "text": "std", "parent": 348, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 4}}, {"id": 350, "type": "comma_expression", "text": "map<float, GameObject*> triangleMap", "parent": 348, "children": [351, 355], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 41}}, {"id": 351, "type": "binary_expression", "text": "map<float", "parent": 350, "children": [352, 353, 354], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 15}}, {"id": 352, "type": "identifier", "text": "map", "parent": 351, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 9}}, {"id": 353, "type": "<", "text": "<", "parent": 351, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 354, "type": "identifier", "text": "float", "parent": 351, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 15}}, {"id": 355, "type": "binary_expression", "text": "GameObject*> triangleMap", "parent": 350, "children": [356, 357, 358, 360], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 41}}, {"id": 356, "type": "identifier", "text": "GameObject", "parent": 355, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 27}}, {"id": 357, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 28}}, {"id": 358, "type": "ERROR", "text": ">", "parent": 355, "children": [359], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 29}}, {"id": 359, "type": ">", "text": ">", "parent": 358, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 29}}, {"id": 360, "type": "identifier", "text": "triangleMap", "parent": 355, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 41}}, {"id": 361, "type": "declaration", "text": "float3 hit;", "parent": 220, "children": [362, 363], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 12}}, {"id": 362, "type": "type_identifier", "text": "float3", "parent": 361, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 7}}, {"id": 363, "type": "identifier", "text": "hit", "parent": 361, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 364, "type": "call_expression", "text": "app->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit)", "parent": 220, "children": [365, 370], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 66}}, {"id": 365, "type": "field_expression", "text": "app->camera->ThrowRayCast", "parent": 364, "children": [366, 369], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 26}}, {"id": 366, "type": "field_expression", "text": "app->camera", "parent": 365, "children": [367, 368], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 12}}, {"id": 367, "type": "identifier", "text": "app", "parent": 366, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 4}}, {"id": 368, "type": "field_identifier", "text": "camera", "parent": 366, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 12}}, {"id": 369, "type": "field_identifier", "text": "ThrowRayCast", "parent": 365, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 26}}, {"id": 370, "type": "argument_list", "text": "(gameObjects, picking, triangleMap, hit)", "parent": 364, "children": [371, 372, 373, 374], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 66}}, {"id": 371, "type": "identifier", "text": "gameObjects", "parent": 370, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 38}}, {"id": 372, "type": "identifier", "text": "picking", "parent": 370, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 47}}, {"id": 373, "type": "identifier", "text": "triangleMap", "parent": 370, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 60}}, {"id": 374, "type": "identifier", "text": "hit", "parent": 370, "children": [], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 65}}, {"id": 375, "type": "if_statement", "text": "if (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n\t\treturn app->moduleMono->GoToCSGO((*triangleMap.begin()).second);", "parent": 220, "children": [376, 400], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 55, "column": 66}}, {"id": 376, "type": "parenthesized_expression", "text": "(!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)", "parent": 375, "children": [377], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 75}}, {"id": 377, "type": "binary_expression", "text": "!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName", "parent": 376, "children": [378, 385, 386], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 74}}, {"id": 378, "type": "unary_expression", "text": "!triangleMap.empty()", "parent": 377, "children": [379, 380], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 25}}, {"id": 379, "type": "!", "text": "!", "parent": 378, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 6}}, {"id": 380, "type": "call_expression", "text": "triangleMap.empty()", "parent": 378, "children": [381, 384], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 25}}, {"id": 381, "type": "field_expression", "text": "triangleMap.empty", "parent": 380, "children": [382, 383], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 23}}, {"id": 382, "type": "identifier", "text": "triangleMap", "parent": 381, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 17}}, {"id": 383, "type": "field_identifier", "text": "empty", "parent": 381, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 23}}, {"id": 384, "type": "argument_list", "text": "()", "parent": 380, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 25}}, {"id": 385, "type": "&&", "text": "&&", "parent": 377, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 28}}, {"id": 386, "type": "binary_expression", "text": "(*triangleMap.begin()).second->tag == tagName", "parent": 377, "children": [387, 398, 399], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 74}}, {"id": 387, "type": "field_expression", "text": "(*triangleMap.begin()).second->tag", "parent": 386, "children": [388, 397], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 63}}, {"id": 388, "type": "field_expression", "text": "(*triangleMap.begin()).second", "parent": 387, "children": [389, 396], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 58}}, {"id": 389, "type": "parenthesized_expression", "text": "(*triangleMap.begin())", "parent": 388, "children": [390], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 51}}, {"id": 390, "type": "pointer_expression", "text": "*triangleMap.begin()", "parent": 389, "children": [391, 392], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 50}}, {"id": 391, "type": "*", "text": "*", "parent": 390, "children": [], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 31}}, {"id": 392, "type": "call_expression", "text": "triangleMap.begin()", "parent": 390, "children": [393, 395], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 50}}, {"id": 393, "type": "field_expression", "text": "triangleMap.begin", "parent": 392, "children": [394], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 48}}, {"id": 394, "type": "identifier", "text": "triangleMap", "parent": 393, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 42}}, {"id": 395, "type": "argument_list", "text": "()", "parent": 392, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 50}}, {"id": 396, "type": "field_identifier", "text": "second", "parent": 388, "children": [], "start_point": {"row": 54, "column": 52}, "end_point": {"row": 54, "column": 58}}, {"id": 397, "type": "field_identifier", "text": "tag", "parent": 387, "children": [], "start_point": {"row": 54, "column": 60}, "end_point": {"row": 54, "column": 63}}, {"id": 398, "type": "==", "text": "==", "parent": 386, "children": [], "start_point": {"row": 54, "column": 64}, "end_point": {"row": 54, "column": 66}}, {"id": 399, "type": "identifier", "text": "tagName", "parent": 386, "children": [], "start_point": {"row": 54, "column": 67}, "end_point": {"row": 54, "column": 74}}, {"id": 400, "type": "return_statement", "text": "return app->moduleMono->GoToCSGO((*triangleMap.begin()).second);", "parent": 375, "children": [401], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 66}}, {"id": 401, "type": "call_expression", "text": "app->moduleMono->GoToCSGO((*triangleMap.begin()).second)", "parent": 400, "children": [402, 407], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 65}}, {"id": 402, "type": "field_expression", "text": "app->moduleMono->GoToCSGO", "parent": 401, "children": [403, 406], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 34}}, {"id": 403, "type": "field_expression", "text": "app->moduleMono", "parent": 402, "children": [404, 405], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 24}}, {"id": 404, "type": "identifier", "text": "app", "parent": 403, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 12}}, {"id": 405, "type": "field_identifier", "text": "moduleMono", "parent": 403, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 24}}, {"id": 406, "type": "field_identifier", "text": "GoToCSGO", "parent": 402, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 34}}, {"id": 407, "type": "argument_list", "text": "((*triangleMap.begin()).second)", "parent": 401, "children": [408], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 65}}, {"id": 408, "type": "field_expression", "text": "(*triangleMap.begin()).second", "parent": 407, "children": [409, 416], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 64}}, {"id": 409, "type": "parenthesized_expression", "text": "(*triangleMap.begin())", "parent": 408, "children": [410], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 57}}, {"id": 410, "type": "pointer_expression", "text": "*triangleMap.begin()", "parent": 409, "children": [411, 412], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 56}}, {"id": 411, "type": "*", "text": "*", "parent": 410, "children": [], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 37}}, {"id": 412, "type": "call_expression", "text": "triangleMap.begin()", "parent": 410, "children": [413, 415], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 56}}, {"id": 413, "type": "field_expression", "text": "triangleMap.begin", "parent": 412, "children": [414], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 54}}, {"id": 414, "type": "identifier", "text": "triangleMap", "parent": 413, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 48}}, {"id": 415, "type": "argument_list", "text": "()", "parent": 412, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 56}}, {"id": 416, "type": "field_identifier", "text": "second", "parent": 408, "children": [], "start_point": {"row": 55, "column": 58}, "end_point": {"row": 55, "column": 64}}, {"id": 417, "type": "call_expression", "text": "triangleMap.clear()", "parent": 220, "children": [418, 421], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 20}}, {"id": 418, "type": "field_expression", "text": "triangleMap.clear", "parent": 417, "children": [419, 420], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 18}}, {"id": 419, "type": "identifier", "text": "triangleMap", "parent": 418, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 12}}, {"id": 420, "type": "field_identifier", "text": "clear", "parent": 418, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 18}}, {"id": 421, "type": "argument_list", "text": "()", "parent": 417, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 20}}, {"id": 422, "type": "return_statement", "text": "return nullptr;", "parent": 220, "children": [423], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 16}}, {"id": 423, "type": "null", "text": "nullptr", "parent": 422, "children": [424], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 424, "type": "nullptr", "text": "nullptr", "parent": 423, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 425, "type": "function_definition", "text": "int PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)\n{\n\tfloat3 pointA = app->moduleMono->UnboxVector(initPos);\n\tfloat3 forward = app->moduleMono->UnboxVector(_forward);\n\tstd::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);\n\tstd::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);\n\tstd::set<GameObject*> gameObjects(colliders.begin(), colliders.end());\n\n\tfloat angle = _angle * DEGTORAD;\n\tforward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD);\n\tstd::vector<float3> vertex;\n\tvertex.reserve(rays);\n\tstd::map<float, GameObject*> triangleMap;\n\tfloat3 hit = float3::zero;\n\n\tfor (int i = 0; i < rays; i++)\n\t{\n\t\tLineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n\t\tapp->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n\t\t\n\t\tvertex.push_back(pointA); // origin\n\t\tif (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n\t\tvertex.push_back(hit); // this\n\n\t\tif (i == 1)\n\t\t{\n\t\t\tvertex.erase(vertex.begin());\n\t\t\tvertex.erase(vertex.begin());\n\t\t}\n\t\ttriangleMap.clear();\n\t\thit = float3::zero;\n\t}\n\n\tint ret = -1;\n\tfor (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n\t{\n\t\tTriangle t(vertex[i], vertex[i+1], vertex[i+2]);\n\t\tfor (size_t j = 0; j < players.size(); j++)\n\t\t{\n\t\t\tif (t.Intersects(players.at(j)->GetOOB()))\n\t\t\t{\n\t\t\t\tvec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n\t\t\t\tvec topPoint = bottomPoint;\n\t\t\t\ttopPoint.y += 1;\n\t\t\t\tif (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t}\n\n\t// Inverse triangle\n\tstd::reverse(vertex.begin(), vertex.end());\n\n\t// Add to enemyCones list\n\tint sizeCon = app->renderer3D->enemyCones.size();\n\tapp->renderer3D->enemyCones.resize(sizeCon + vertex.size());\n\tmemcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));\n\n\treturn ret;\n}", "parent": null, "children": [426, 427], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 123, "column": 1}}, {"id": 426, "type": "primitive_type", "text": "int", "parent": 425, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 3}}, {"id": 427, "type": "function_declarator", "text": "PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)", "parent": 425, "children": [428, 429], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 175}}, {"id": 428, "type": "identifier", "text": "PerceptionCone", "parent": 427, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 18}}, {"id": 429, "type": "parameter_list", "text": "(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)", "parent": 427, "children": [430, 435, 440, 443, 446, 449, 454, 457, 462], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 175}}, {"id": 430, "type": "parameter_declaration", "text": "MonoObject* initPos", "parent": 429, "children": [431, 432], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 38}}, {"id": 431, "type": "type_identifier", "text": "MonoObject", "parent": 430, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 29}}, {"id": 432, "type": "pointer_declarator", "text": "* initPos", "parent": 430, "children": [433, 434], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 38}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 30}}, {"id": 434, "type": "identifier", "text": "initPos", "parent": 432, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 38}}, {"id": 435, "type": "parameter_declaration", "text": "MonoObject* _forward", "parent": 429, "children": [436, 437], "start_point": {"row": 61, "column": 40}, "end_point": {"row": 61, "column": 60}}, {"id": 436, "type": "type_identifier", "text": "MonoObject", "parent": 435, "children": [], "start_point": {"row": 61, "column": 40}, "end_point": {"row": 61, "column": 50}}, {"id": 437, "type": "pointer_declarator", "text": "* _forward", "parent": 435, "children": [438, 439], "start_point": {"row": 61, "column": 50}, "end_point": {"row": 61, "column": 60}}, {"id": 438, "type": "*", "text": "*", "parent": 437, "children": [], "start_point": {"row": 61, "column": 50}, "end_point": {"row": 61, "column": 51}}, {"id": 439, "type": "identifier", "text": "_forward", "parent": 437, "children": [], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 60}}, {"id": 440, "type": "parameter_declaration", "text": "int _angle", "parent": 429, "children": [441, 442], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 61, "column": 72}}, {"id": 441, "type": "primitive_type", "text": "int", "parent": 440, "children": [], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 61, "column": 65}}, {"id": 442, "type": "identifier", "text": "_angle", "parent": 440, "children": [], "start_point": {"row": 61, "column": 66}, "end_point": {"row": 61, "column": 72}}, {"id": 443, "type": "parameter_declaration", "text": "int rays", "parent": 429, "children": [444, 445], "start_point": {"row": 61, "column": 74}, "end_point": {"row": 61, "column": 82}}, {"id": 444, "type": "primitive_type", "text": "int", "parent": 443, "children": [], "start_point": {"row": 61, "column": 74}, "end_point": {"row": 61, "column": 77}}, {"id": 445, "type": "identifier", "text": "rays", "parent": 443, "children": [], "start_point": {"row": 61, "column": 78}, "end_point": {"row": 61, "column": 82}}, {"id": 446, "type": "parameter_declaration", "text": "int radius", "parent": 429, "children": [447, 448], "start_point": {"row": 61, "column": 84}, "end_point": {"row": 61, "column": 94}}, {"id": 447, "type": "primitive_type", "text": "int", "parent": 446, "children": [], "start_point": {"row": 61, "column": 84}, "end_point": {"row": 61, "column": 87}}, {"id": 448, "type": "identifier", "text": "radius", "parent": 446, "children": [], "start_point": {"row": 61, "column": 88}, "end_point": {"row": 61, "column": 94}}, {"id": 449, "type": "parameter_declaration", "text": "MonoArray* _players", "parent": 429, "children": [450, 451], "start_point": {"row": 61, "column": 96}, "end_point": {"row": 61, "column": 115}}, {"id": 450, "type": "type_identifier", "text": "MonoArray", "parent": 449, "children": [], "start_point": {"row": 61, "column": 96}, "end_point": {"row": 61, "column": 105}}, {"id": 451, "type": "pointer_declarator", "text": "* _players", "parent": 449, "children": [452, 453], "start_point": {"row": 61, "column": 105}, "end_point": {"row": 61, "column": 115}}, {"id": 452, "type": "*", "text": "*", "parent": 451, "children": [], "start_point": {"row": 61, "column": 105}, "end_point": {"row": 61, "column": 106}}, {"id": 453, "type": "identifier", "text": "_players", "parent": 451, "children": [], "start_point": {"row": 61, "column": 107}, "end_point": {"row": 61, "column": 115}}, {"id": 454, "type": "parameter_declaration", "text": "int playersSize", "parent": 429, "children": [455, 456], "start_point": {"row": 61, "column": 117}, "end_point": {"row": 61, "column": 132}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 454, "children": [], "start_point": {"row": 61, "column": 117}, "end_point": {"row": 61, "column": 120}}, {"id": 456, "type": "identifier", "text": "playersSize", "parent": 454, "children": [], "start_point": {"row": 61, "column": 121}, "end_point": {"row": 61, "column": 132}}, {"id": 457, "type": "parameter_declaration", "text": "MonoArray* _colliders", "parent": 429, "children": [458, 459], "start_point": {"row": 61, "column": 134}, "end_point": {"row": 61, "column": 155}}, {"id": 458, "type": "type_identifier", "text": "MonoArray", "parent": 457, "children": [], "start_point": {"row": 61, "column": 134}, "end_point": {"row": 61, "column": 143}}, {"id": 459, "type": "pointer_declarator", "text": "* _colliders", "parent": 457, "children": [460, 461], "start_point": {"row": 61, "column": 143}, "end_point": {"row": 61, "column": 155}}, {"id": 460, "type": "*", "text": "*", "parent": 459, "children": [], "start_point": {"row": 61, "column": 143}, "end_point": {"row": 61, "column": 144}}, {"id": 461, "type": "identifier", "text": "_colliders", "parent": 459, "children": [], "start_point": {"row": 61, "column": 145}, "end_point": {"row": 61, "column": 155}}, {"id": 462, "type": "parameter_declaration", "text": "int collidersSize", "parent": 429, "children": [463, 464], "start_point": {"row": 61, "column": 157}, "end_point": {"row": 61, "column": 174}}, {"id": 463, "type": "primitive_type", "text": "int", "parent": 462, "children": [], "start_point": {"row": 61, "column": 157}, "end_point": {"row": 61, "column": 160}}, {"id": 464, "type": "identifier", "text": "collidersSize", "parent": 462, "children": [], "start_point": {"row": 61, "column": 161}, "end_point": {"row": 61, "column": 174}}, {"id": 465, "type": "declaration", "text": "float3 pointA = app->moduleMono->UnboxVector(initPos);", "parent": 425, "children": [466, 467], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 55}}, {"id": 466, "type": "type_identifier", "text": "float3", "parent": 465, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 467, "type": "init_declarator", "text": "pointA = app->moduleMono->UnboxVector(initPos)", "parent": 465, "children": [468, 469, 470], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 54}}, {"id": 468, "type": "identifier", "text": "pointA", "parent": 467, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 469, "type": "=", "text": "=", "parent": 467, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 16}}, {"id": 470, "type": "call_expression", "text": "app->moduleMono->UnboxVector(initPos)", "parent": 467, "children": [471, 476], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 54}}, {"id": 471, "type": "field_expression", "text": "app->moduleMono->UnboxVector", "parent": 470, "children": [472, 475], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 45}}, {"id": 472, "type": "field_expression", "text": "app->moduleMono", "parent": 471, "children": [473, 474], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 32}}, {"id": 473, "type": "identifier", "text": "app", "parent": 472, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 20}}, {"id": 474, "type": "field_identifier", "text": "moduleMono", "parent": 472, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 32}}, {"id": 475, "type": "field_identifier", "text": "UnboxVector", "parent": 471, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 45}}, {"id": 476, "type": "argument_list", "text": "(initPos)", "parent": 470, "children": [477], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 54}}, {"id": 477, "type": "identifier", "text": "initPos", "parent": 476, "children": [], "start_point": {"row": 63, "column": 46}, "end_point": {"row": 63, "column": 53}}, {"id": 478, "type": "declaration", "text": "float3 forward = app->moduleMono->UnboxVector(_forward);", "parent": 425, "children": [479, 480], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 57}}, {"id": 479, "type": "type_identifier", "text": "float3", "parent": 478, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 480, "type": "init_declarator", "text": "forward = app->moduleMono->UnboxVector(_forward)", "parent": 478, "children": [481, 482, 483], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 56}}, {"id": 481, "type": "identifier", "text": "forward", "parent": 480, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 482, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 17}}, {"id": 483, "type": "call_expression", "text": "app->moduleMono->UnboxVector(_forward)", "parent": 480, "children": [484, 489], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 56}}, {"id": 484, "type": "field_expression", "text": "app->moduleMono->UnboxVector", "parent": 483, "children": [485, 488], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 46}}, {"id": 485, "type": "field_expression", "text": "app->moduleMono", "parent": 484, "children": [486, 487], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 33}}, {"id": 486, "type": "identifier", "text": "app", "parent": 485, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 21}}, {"id": 487, "type": "field_identifier", "text": "moduleMono", "parent": 485, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 33}}, {"id": 488, "type": "field_identifier", "text": "UnboxVector", "parent": 484, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 46}}, {"id": 489, "type": "argument_list", "text": "(_forward)", "parent": 483, "children": [490], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 56}}, {"id": 490, "type": "identifier", "text": "_forward", "parent": 489, "children": [], "start_point": {"row": 64, "column": 47}, "end_point": {"row": 64, "column": 55}}, {"id": 491, "type": "labeled_statement", "text": "std::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);", "parent": 425, "children": [492], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 87}}, {"id": 492, "type": "statement_identifier", "text": "std", "parent": 491, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 4}}, {"id": 493, "type": "binary_expression", "text": "vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize)", "parent": 491, "children": [494, 498, 500, 501], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 86}}, {"id": 494, "type": "binary_expression", "text": "vector<GameObject", "parent": 493, "children": [495, 496, 497], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 23}}, {"id": 495, "type": "identifier", "text": "vector", "parent": 494, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 12}}, {"id": 496, "type": "<", "text": "<", "parent": 494, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 497, "type": "identifier", "text": "GameObject", "parent": 494, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 23}}, {"id": 498, "type": "ERROR", "text": "*", "parent": 493, "children": [499], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 24}}, {"id": 499, "type": "*", "text": "*", "parent": 498, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 24}}, {"id": 500, "type": ">", "text": ">", "parent": 493, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 25}}, {"id": 501, "type": "assignment_expression", "text": "players = app->moduleMono->UnboxArray(_players, playersSize)", "parent": 493, "children": [502, 503, 504], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 86}}, {"id": 502, "type": "identifier", "text": "players", "parent": 501, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 33}}, {"id": 503, "type": "=", "text": "=", "parent": 501, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 35}}, {"id": 504, "type": "call_expression", "text": "app->moduleMono->UnboxArray(_players, playersSize)", "parent": 501, "children": [505, 510], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 86}}, {"id": 505, "type": "field_expression", "text": "app->moduleMono->UnboxArray", "parent": 504, "children": [506, 509], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 63}}, {"id": 506, "type": "field_expression", "text": "app->moduleMono", "parent": 505, "children": [507, 508], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 51}}, {"id": 507, "type": "identifier", "text": "app", "parent": 506, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 39}}, {"id": 508, "type": "field_identifier", "text": "moduleMono", "parent": 506, "children": [], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 51}}, {"id": 509, "type": "field_identifier", "text": "UnboxArray", "parent": 505, "children": [], "start_point": {"row": 65, "column": 53}, "end_point": {"row": 65, "column": 63}}, {"id": 510, "type": "argument_list", "text": "(_players, playersSize)", "parent": 504, "children": [511, 512], "start_point": {"row": 65, "column": 63}, "end_point": {"row": 65, "column": 86}}, {"id": 511, "type": "identifier", "text": "_players", "parent": 510, "children": [], "start_point": {"row": 65, "column": 64}, "end_point": {"row": 65, "column": 72}}, {"id": 512, "type": "identifier", "text": "playersSize", "parent": 510, "children": [], "start_point": {"row": 65, "column": 74}, "end_point": {"row": 65, "column": 85}}, {"id": 513, "type": "labeled_statement", "text": "std::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);", "parent": 425, "children": [514], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 93}}, {"id": 514, "type": "statement_identifier", "text": "std", "parent": 513, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 4}}, {"id": 515, "type": "binary_expression", "text": "vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize)", "parent": 513, "children": [516, 520, 522, 523], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 92}}, {"id": 516, "type": "binary_expression", "text": "vector<GameObject", "parent": 515, "children": [517, 518, 519], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 23}}, {"id": 517, "type": "identifier", "text": "vector", "parent": 516, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 12}}, {"id": 518, "type": "<", "text": "<", "parent": 516, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 519, "type": "identifier", "text": "GameObject", "parent": 516, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 23}}, {"id": 520, "type": "ERROR", "text": "*", "parent": 515, "children": [521], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 24}}, {"id": 521, "type": "*", "text": "*", "parent": 520, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 24}}, {"id": 522, "type": ">", "text": ">", "parent": 515, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 523, "type": "assignment_expression", "text": "colliders = app->moduleMono->UnboxArray(_colliders, collidersSize)", "parent": 515, "children": [524, 525, 526], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 92}}, {"id": 524, "type": "identifier", "text": "colliders", "parent": 523, "children": [], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 35}}, {"id": 525, "type": "=", "text": "=", "parent": 523, "children": [], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 37}}, {"id": 526, "type": "call_expression", "text": "app->moduleMono->UnboxArray(_colliders, collidersSize)", "parent": 523, "children": [527, 532], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 92}}, {"id": 527, "type": "field_expression", "text": "app->moduleMono->UnboxArray", "parent": 526, "children": [528, 531], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 65}}, {"id": 528, "type": "field_expression", "text": "app->moduleMono", "parent": 527, "children": [529, 530], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 53}}, {"id": 529, "type": "identifier", "text": "app", "parent": 528, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 41}}, {"id": 530, "type": "field_identifier", "text": "moduleMono", "parent": 528, "children": [], "start_point": {"row": 66, "column": 43}, "end_point": {"row": 66, "column": 53}}, {"id": 531, "type": "field_identifier", "text": "UnboxArray", "parent": 527, "children": [], "start_point": {"row": 66, "column": 55}, "end_point": {"row": 66, "column": 65}}, {"id": 532, "type": "argument_list", "text": "(_colliders, collidersSize)", "parent": 526, "children": [533, 534], "start_point": {"row": 66, "column": 65}, "end_point": {"row": 66, "column": 92}}, {"id": 533, "type": "identifier", "text": "_colliders", "parent": 532, "children": [], "start_point": {"row": 66, "column": 66}, "end_point": {"row": 66, "column": 76}}, {"id": 534, "type": "identifier", "text": "collidersSize", "parent": 532, "children": [], "start_point": {"row": 66, "column": 78}, "end_point": {"row": 66, "column": 91}}, {"id": 535, "type": "labeled_statement", "text": "std::set<GameObject*> gameObjects(colliders.begin(), colliders.end());", "parent": 425, "children": [536], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 71}}, {"id": 536, "type": "statement_identifier", "text": "std", "parent": 535, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 4}}, {"id": 537, "type": "binary_expression", "text": "set<GameObject*> gameObjects(colliders.begin(), colliders.end())", "parent": 535, "children": [538, 542, 544, 545], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 70}}, {"id": 538, "type": "binary_expression", "text": "set<GameObject", "parent": 537, "children": [539, 540, 541], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 20}}, {"id": 539, "type": "identifier", "text": "set", "parent": 538, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 9}}, {"id": 540, "type": "<", "text": "<", "parent": 538, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 541, "type": "identifier", "text": "GameObject", "parent": 538, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 20}}, {"id": 542, "type": "ERROR", "text": "*", "parent": 537, "children": [543], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 543, "type": "*", "text": "*", "parent": 542, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 544, "type": ">", "text": ">", "parent": 537, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 22}}, {"id": 545, "type": "call_expression", "text": "gameObjects(colliders.begin(), colliders.end())", "parent": 537, "children": [546, 547], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 70}}, {"id": 546, "type": "identifier", "text": "gameObjects", "parent": 545, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 34}}, {"id": 547, "type": "argument_list", "text": "(colliders.begin(), colliders.end())", "parent": 545, "children": [548, 552], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 70}}, {"id": 548, "type": "call_expression", "text": "colliders.begin()", "parent": 547, "children": [549, 551], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 52}}, {"id": 549, "type": "field_expression", "text": "colliders.begin", "parent": 548, "children": [550], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 50}}, {"id": 550, "type": "identifier", "text": "colliders", "parent": 549, "children": [], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 44}}, {"id": 551, "type": "argument_list", "text": "()", "parent": 548, "children": [], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 67, "column": 52}}, {"id": 552, "type": "call_expression", "text": "colliders.end()", "parent": 547, "children": [553, 555], "start_point": {"row": 67, "column": 54}, "end_point": {"row": 67, "column": 69}}, {"id": 553, "type": "field_expression", "text": "colliders.end", "parent": 552, "children": [554], "start_point": {"row": 67, "column": 54}, "end_point": {"row": 67, "column": 67}}, {"id": 554, "type": "identifier", "text": "colliders", "parent": 553, "children": [], "start_point": {"row": 67, "column": 54}, "end_point": {"row": 67, "column": 63}}, {"id": 555, "type": "argument_list", "text": "()", "parent": 552, "children": [], "start_point": {"row": 67, "column": 67}, "end_point": {"row": 67, "column": 69}}, {"id": 556, "type": "declaration", "text": "float angle = _angle * DEGTORAD;", "parent": 425, "children": [557, 558], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 33}}, {"id": 557, "type": "primitive_type", "text": "float", "parent": 556, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 6}}, {"id": 558, "type": "init_declarator", "text": "angle = _angle * DEGTORAD", "parent": 556, "children": [559, 560, 561], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 32}}, {"id": 559, "type": "identifier", "text": "angle", "parent": 558, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 12}}, {"id": 560, "type": "=", "text": "=", "parent": 558, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 14}}, {"id": 561, "type": "binary_expression", "text": "_angle * DEGTORAD", "parent": 558, "children": [562, 563, 564], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 32}}, {"id": 562, "type": "identifier", "text": "_angle", "parent": 561, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 21}}, {"id": 563, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 23}}, {"id": 564, "type": "identifier", "text": "DEGTORAD", "parent": 561, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 32}}, {"id": 565, "type": "ERROR", "text": "forward = forward * float3x3::", "parent": 425, "children": [566], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 31}}, {"id": 566, "type": "assignment_expression", "text": "forward = forward * float3x3", "parent": 565, "children": [567, 568, 569], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 29}}, {"id": 567, "type": "identifier", "text": "forward", "parent": 566, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 8}}, {"id": 568, "type": "=", "text": "=", "parent": 566, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 569, "type": "binary_expression", "text": "forward * float3x3", "parent": 566, "children": [570, 571, 572], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 29}}, {"id": 570, "type": "identifier", "text": "forward", "parent": 569, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 18}}, {"id": 571, "type": "*", "text": "*", "parent": 569, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 20}}, {"id": 572, "type": "identifier", "text": "float3x3", "parent": 569, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 29}}, {"id": 573, "type": "call_expression", "text": "RotateY((360-(_angle/2)) * DEGTORAD)", "parent": 425, "children": [574, 575], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 67}}, {"id": 574, "type": "identifier", "text": "RotateY", "parent": 573, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 38}}, {"id": 575, "type": "argument_list", "text": "((360-(_angle/2)) * DEGTORAD)", "parent": 573, "children": [576], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 67}}, {"id": 576, "type": "binary_expression", "text": "(360-(_angle/2)) * DEGTORAD", "parent": 575, "children": [577, 586, 587], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 66}}, {"id": 577, "type": "parenthesized_expression", "text": "(360-(_angle/2))", "parent": 576, "children": [578], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 55}}, {"id": 578, "type": "binary_expression", "text": "360-(_angle/2)", "parent": 577, "children": [579, 580, 581], "start_point": {"row": 70, "column": 40}, "end_point": {"row": 70, "column": 54}}, {"id": 579, "type": "number_literal", "text": "360", "parent": 578, "children": [], "start_point": {"row": 70, "column": 40}, "end_point": {"row": 70, "column": 43}}, {"id": 580, "type": "-", "text": "-", "parent": 578, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 44}}, {"id": 581, "type": "parenthesized_expression", "text": "(_angle/2)", "parent": 578, "children": [582], "start_point": {"row": 70, "column": 44}, "end_point": {"row": 70, "column": 54}}, {"id": 582, "type": "binary_expression", "text": "_angle/2", "parent": 581, "children": [583, 584, 585], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 53}}, {"id": 583, "type": "identifier", "text": "_angle", "parent": 582, "children": [], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 51}}, {"id": 584, "type": "/", "text": "/", "parent": 582, "children": [], "start_point": {"row": 70, "column": 51}, "end_point": {"row": 70, "column": 52}}, {"id": 585, "type": "number_literal", "text": "2", "parent": 582, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 53}}, {"id": 586, "type": "*", "text": "*", "parent": 576, "children": [], "start_point": {"row": 70, "column": 56}, "end_point": {"row": 70, "column": 57}}, {"id": 587, "type": "identifier", "text": "DEGTORAD", "parent": 576, "children": [], "start_point": {"row": 70, "column": 58}, "end_point": {"row": 70, "column": 66}}, {"id": 588, "type": "labeled_statement", "text": "std::vector<float3> vertex;", "parent": 425, "children": [589], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 28}}, {"id": 589, "type": "statement_identifier", "text": "std", "parent": 588, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 590, "type": "binary_expression", "text": "vector<float3> vertex", "parent": 588, "children": [591, 595, 596], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 27}}, {"id": 591, "type": "binary_expression", "text": "vector<float3", "parent": 590, "children": [592, 593, 594], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 19}}, {"id": 592, "type": "identifier", "text": "vector", "parent": 591, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 12}}, {"id": 593, "type": "<", "text": "<", "parent": 591, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 13}}, {"id": 594, "type": "identifier", "text": "float3", "parent": 591, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 19}}, {"id": 595, "type": ">", "text": ">", "parent": 590, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 20}}, {"id": 596, "type": "identifier", "text": "vertex", "parent": 590, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 27}}, {"id": 597, "type": "call_expression", "text": "vertex.reserve(rays)", "parent": 425, "children": [598, 601], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 21}}, {"id": 598, "type": "field_expression", "text": "vertex.reserve", "parent": 597, "children": [599, 600], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 15}}, {"id": 599, "type": "identifier", "text": "vertex", "parent": 598, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 7}}, {"id": 600, "type": "field_identifier", "text": "reserve", "parent": 598, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 15}}, {"id": 601, "type": "argument_list", "text": "(rays)", "parent": 597, "children": [602], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 21}}, {"id": 602, "type": "identifier", "text": "rays", "parent": 601, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 20}}, {"id": 603, "type": "labeled_statement", "text": "std::map<float, GameObject*> triangleMap;", "parent": 425, "children": [604], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 42}}, {"id": 604, "type": "statement_identifier", "text": "std", "parent": 603, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 605, "type": "comma_expression", "text": "map<float, GameObject*> triangleMap", "parent": 603, "children": [606, 610], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 41}}, {"id": 606, "type": "binary_expression", "text": "map<float", "parent": 605, "children": [607, 608, 609], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 15}}, {"id": 607, "type": "identifier", "text": "map", "parent": 606, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 9}}, {"id": 608, "type": "<", "text": "<", "parent": 606, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 609, "type": "identifier", "text": "float", "parent": 606, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 15}}, {"id": 610, "type": "binary_expression", "text": "GameObject*> triangleMap", "parent": 605, "children": [611, 612, 613, 615], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 41}}, {"id": 611, "type": "identifier", "text": "GameObject", "parent": 610, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 27}}, {"id": 612, "type": "*", "text": "*", "parent": 610, "children": [], "start_point": {"row": 73, "column": 27}, "end_point": {"row": 73, "column": 28}}, {"id": 613, "type": "ERROR", "text": ">", "parent": 610, "children": [614], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 614, "type": ">", "text": ">", "parent": 613, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 615, "type": "identifier", "text": "triangleMap", "parent": 610, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 41}}, {"id": 616, "type": "declaration", "text": "float3 hit = float3::zero;", "parent": 425, "children": [617, 618, 622], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 27}}, {"id": 617, "type": "type_identifier", "text": "float3", "parent": 616, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 7}}, {"id": 618, "type": "init_declarator", "text": "hit = float3", "parent": 616, "children": [619, 620, 621], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 20}}, {"id": 619, "type": "identifier", "text": "hit", "parent": 618, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 11}}, {"id": 620, "type": "=", "text": "=", "parent": 618, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 13}}, {"id": 621, "type": "identifier", "text": "float3", "parent": 618, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 20}}, {"id": 622, "type": "ERROR", "text": "::zero", "parent": 616, "children": [623], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 26}}, {"id": 623, "type": "identifier", "text": "zero", "parent": 622, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 26}}, {"id": 624, "type": "for_statement", "text": "for (int i = 0; i < rays; i++)\n\t{\n\t\tLineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n\t\tapp->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n\t\t\n\t\tvertex.push_back(pointA); // origin\n\t\tif (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n\t\tvertex.push_back(hit); // this\n\n\t\tif (i == 1)\n\t\t{\n\t\t\tvertex.erase(vertex.begin());\n\t\t\tvertex.erase(vertex.begin());\n\t\t}\n\t\ttriangleMap.clear();\n\t\thit = float3::zero;\n\t}", "parent": 425, "children": [625, 631, 635], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 92, "column": 2}}, {"id": 625, "type": "declaration", "text": "int i = 0;", "parent": 624, "children": [626, 627], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 16}}, {"id": 626, "type": "primitive_type", "text": "int", "parent": 625, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 9}}, {"id": 627, "type": "init_declarator", "text": "i = 0", "parent": 625, "children": [628, 629, 630], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 15}}, {"id": 628, "type": "identifier", "text": "i", "parent": 627, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 11}}, {"id": 629, "type": "=", "text": "=", "parent": 627, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 13}}, {"id": 630, "type": "number_literal", "text": "0", "parent": 627, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 15}}, {"id": 631, "type": "binary_expression", "text": "i < rays", "parent": 624, "children": [632, 633, 634], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 25}}, {"id": 632, "type": "identifier", "text": "i", "parent": 631, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 18}}, {"id": 633, "type": "<", "text": "<", "parent": 631, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 20}}, {"id": 634, "type": "identifier", "text": "rays", "parent": 631, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 25}}, {"id": 635, "type": "update_expression", "text": "i++", "parent": 624, "children": [636, 637], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 30}}, {"id": 636, "type": "identifier", "text": "i", "parent": 635, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 28}}, {"id": 637, "type": "++", "text": "++", "parent": 635, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 30}}, {"id": 638, "type": "declaration", "text": "LineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));", "parent": 624, "children": [639, 640], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 91}}, {"id": 639, "type": "type_identifier", "text": "LineSegment", "parent": 638, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 13}}, {"id": 640, "type": "function_declarator", "text": "ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius))", "parent": 638, "children": [641, 642], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 90}}, {"id": 641, "type": "identifier", "text": "ray", "parent": 640, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 17}}, {"id": 642, "type": "parameter_list", "text": "(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius))", "parent": 640, "children": [643], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 90}}, {"id": 643, "type": "parameter_declaration", "text": "pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius)", "parent": 642, "children": [644, 645, 648], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 89}}, {"id": 644, "type": "type_identifier", "text": "pointA", "parent": 643, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 24}}, {"id": 645, "type": "ERROR", "text": ", pointA +", "parent": 643, "children": [646, 647], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 34}}, {"id": 646, "type": "identifier", "text": "pointA", "parent": 645, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 32}}, {"id": 647, "type": "+", "text": "+", "parent": 645, "children": [], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 34}}, {"id": 648, "type": "abstract_function_declarator", "text": "(forward * float3x3::RotateY(angle/rays * i) * radius)", "parent": 643, "children": [649], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 89}}, {"id": 649, "type": "parameter_list", "text": "(forward * float3x3::RotateY(angle/rays * i) * radius)", "parent": 648, "children": [650], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 89}}, {"id": 650, "type": "parameter_declaration", "text": "forward * float3x3::RotateY(angle/rays * i) * radius", "parent": 649, "children": [651, 652], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 78, "column": 88}}, {"id": 651, "type": "type_identifier", "text": "forward", "parent": 650, "children": [], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 78, "column": 43}}, {"id": 652, "type": "pointer_declarator", "text": "* float3x3::RotateY(angle/rays * i) * radius", "parent": 650, "children": [653, 654, 667], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 88}}, {"id": 653, "type": "*", "text": "*", "parent": 652, "children": [], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 45}}, {"id": 654, "type": "ERROR", "text": "float3x3::RotateY(angle/rays * i)", "parent": 652, "children": [655, 656], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 79}}, {"id": 655, "type": "identifier", "text": "float3x3", "parent": 654, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 54}}, {"id": 656, "type": "function_declarator", "text": "RotateY(angle/rays * i)", "parent": 654, "children": [657, 658], "start_point": {"row": 78, "column": 56}, "end_point": {"row": 78, "column": 79}}, {"id": 657, "type": "identifier", "text": "RotateY", "parent": 656, "children": [], "start_point": {"row": 78, "column": 56}, "end_point": {"row": 78, "column": 63}}, {"id": 658, "type": "parameter_list", "text": "(angle/rays * i)", "parent": 656, "children": [659], "start_point": {"row": 78, "column": 63}, "end_point": {"row": 78, "column": 79}}, {"id": 659, "type": "parameter_declaration", "text": "angle/rays * i", "parent": 658, "children": [660, 661, 664], "start_point": {"row": 78, "column": 64}, "end_point": {"row": 78, "column": 78}}, {"id": 660, "type": "type_identifier", "text": "angle", "parent": 659, "children": [], "start_point": {"row": 78, "column": 64}, "end_point": {"row": 78, "column": 69}}, {"id": 661, "type": "ERROR", "text": "/rays", "parent": 659, "children": [662, 663], "start_point": {"row": 78, "column": 69}, "end_point": {"row": 78, "column": 74}}, {"id": 662, "type": "/", "text": "/", "parent": 661, "children": [], "start_point": {"row": 78, "column": 69}, "end_point": {"row": 78, "column": 70}}, {"id": 663, "type": "identifier", "text": "rays", "parent": 661, "children": [], "start_point": {"row": 78, "column": 70}, "end_point": {"row": 78, "column": 74}}, {"id": 664, "type": "pointer_declarator", "text": "* i", "parent": 659, "children": [665, 666], "start_point": {"row": 78, "column": 75}, "end_point": {"row": 78, "column": 78}}, {"id": 665, "type": "*", "text": "*", "parent": 664, "children": [], "start_point": {"row": 78, "column": 75}, "end_point": {"row": 78, "column": 76}}, {"id": 666, "type": "identifier", "text": "i", "parent": 664, "children": [], "start_point": {"row": 78, "column": 77}, "end_point": {"row": 78, "column": 78}}, {"id": 667, "type": "pointer_declarator", "text": "* radius", "parent": 652, "children": [668, 669], "start_point": {"row": 78, "column": 80}, "end_point": {"row": 78, "column": 88}}, {"id": 668, "type": "*", "text": "*", "parent": 667, "children": [], "start_point": {"row": 78, "column": 80}, "end_point": {"row": 78, "column": 81}}, {"id": 669, "type": "identifier", "text": "radius", "parent": 667, "children": [], "start_point": {"row": 78, "column": 82}, "end_point": {"row": 78, "column": 88}}, {"id": 670, "type": "call_expression", "text": "app->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit)", "parent": 624, "children": [671, 676], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 63}}, {"id": 671, "type": "field_expression", "text": "app->camera->ThrowRayCast", "parent": 670, "children": [672, 675], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 27}}, {"id": 672, "type": "field_expression", "text": "app->camera", "parent": 671, "children": [673, 674], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 13}}, {"id": 673, "type": "identifier", "text": "app", "parent": 672, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 5}}, {"id": 674, "type": "field_identifier", "text": "camera", "parent": 672, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 675, "type": "field_identifier", "text": "ThrowRayCast", "parent": 671, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 27}}, {"id": 676, "type": "argument_list", "text": "(gameObjects, ray, triangleMap, hit)", "parent": 670, "children": [677, 678, 679, 680], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 63}}, {"id": 677, "type": "identifier", "text": "gameObjects", "parent": 676, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 39}}, {"id": 678, "type": "identifier", "text": "ray", "parent": 676, "children": [], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 44}}, {"id": 679, "type": "identifier", "text": "triangleMap", "parent": 676, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 57}}, {"id": 680, "type": "identifier", "text": "hit", "parent": 676, "children": [], "start_point": {"row": 79, "column": 59}, "end_point": {"row": 79, "column": 62}}, {"id": 681, "type": "call_expression", "text": "vertex.push_back(pointA)", "parent": 624, "children": [682, 685], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 26}}, {"id": 682, "type": "field_expression", "text": "vertex.push_back", "parent": 681, "children": [683, 684], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 18}}, {"id": 683, "type": "identifier", "text": "vertex", "parent": 682, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 8}}, {"id": 684, "type": "field_identifier", "text": "push_back", "parent": 682, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 18}}, {"id": 685, "type": "argument_list", "text": "(pointA)", "parent": 681, "children": [686], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 26}}, {"id": 686, "type": "identifier", "text": "pointA", "parent": 685, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 25}}, {"id": 687, "type": "if_statement", "text": "if (i != 0) vertex.push_back(vertex.at(vertex.size() - 2));", "parent": 624, "children": [688], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 61}}, {"id": 688, "type": "parenthesized_expression", "text": "(i != 0)", "parent": 687, "children": [689], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 13}}, {"id": 689, "type": "binary_expression", "text": "i != 0", "parent": 688, "children": [690, 691, 692], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 12}}, {"id": 690, "type": "identifier", "text": "i", "parent": 689, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 691, "type": "!=", "text": "!=", "parent": 689, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 10}}, {"id": 692, "type": "number_literal", "text": "0", "parent": 689, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 693, "type": "call_expression", "text": "vertex.push_back(vertex.at(vertex.size() - 2))", "parent": 687, "children": [694, 697], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 60}}, {"id": 694, "type": "field_expression", "text": "vertex.push_back", "parent": 693, "children": [695, 696], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 30}}, {"id": 695, "type": "identifier", "text": "vertex", "parent": 694, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 20}}, {"id": 696, "type": "field_identifier", "text": "push_back", "parent": 694, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 30}}, {"id": 697, "type": "argument_list", "text": "(vertex.at(vertex.size() - 2))", "parent": 693, "children": [698], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 60}}, {"id": 698, "type": "call_expression", "text": "vertex.at(vertex.size() - 2)", "parent": 697, "children": [699, 702], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 59}}, {"id": 699, "type": "field_expression", "text": "vertex.at", "parent": 698, "children": [700, 701], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 40}}, {"id": 700, "type": "identifier", "text": "vertex", "parent": 699, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 37}}, {"id": 701, "type": "field_identifier", "text": "at", "parent": 699, "children": [], "start_point": {"row": 82, "column": 38}, "end_point": {"row": 82, "column": 40}}, {"id": 702, "type": "argument_list", "text": "(vertex.size() - 2)", "parent": 698, "children": [703], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 59}}, {"id": 703, "type": "binary_expression", "text": "vertex.size() - 2", "parent": 702, "children": [704, 709, 710], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 58}}, {"id": 704, "type": "call_expression", "text": "vertex.size()", "parent": 703, "children": [705, 708], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 54}}, {"id": 705, "type": "field_expression", "text": "vertex.size", "parent": 704, "children": [706, 707], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 52}}, {"id": 706, "type": "identifier", "text": "vertex", "parent": 705, "children": [], "start_point": {"row": 82, "column": 41}, "end_point": {"row": 82, "column": 47}}, {"id": 707, "type": "field_identifier", "text": "size", "parent": 705, "children": [], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 52}}, {"id": 708, "type": "argument_list", "text": "()", "parent": 704, "children": [], "start_point": {"row": 82, "column": 52}, "end_point": {"row": 82, "column": 54}}, {"id": 709, "type": "-", "text": "-", "parent": 703, "children": [], "start_point": {"row": 82, "column": 55}, "end_point": {"row": 82, "column": 56}}, {"id": 710, "type": "number_literal", "text": "2", "parent": 703, "children": [], "start_point": {"row": 82, "column": 57}, "end_point": {"row": 82, "column": 58}}, {"id": 711, "type": "call_expression", "text": "vertex.push_back(hit)", "parent": 624, "children": [712, 715], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 23}}, {"id": 712, "type": "field_expression", "text": "vertex.push_back", "parent": 711, "children": [713, 714], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 18}}, {"id": 713, "type": "identifier", "text": "vertex", "parent": 712, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 8}}, {"id": 714, "type": "field_identifier", "text": "push_back", "parent": 712, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 18}}, {"id": 715, "type": "argument_list", "text": "(hit)", "parent": 711, "children": [716], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 23}}, {"id": 716, "type": "identifier", "text": "hit", "parent": 715, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 22}}, {"id": 717, "type": "if_statement", "text": "if (i == 1)\n\t\t{\n\t\t\tvertex.erase(vertex.begin());\n\t\t\tvertex.erase(vertex.begin());\n\t\t}", "parent": 624, "children": [718], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 89, "column": 3}}, {"id": 718, "type": "parenthesized_expression", "text": "(i == 1)", "parent": 717, "children": [719], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 13}}, {"id": 719, "type": "binary_expression", "text": "i == 1", "parent": 718, "children": [720, 721, 722], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 12}}, {"id": 720, "type": "identifier", "text": "i", "parent": 719, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 7}}, {"id": 721, "type": "==", "text": "==", "parent": 719, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 10}}, {"id": 722, "type": "number_literal", "text": "1", "parent": 719, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 12}}, {"id": 723, "type": "call_expression", "text": "vertex.erase(vertex.begin())", "parent": 717, "children": [724, 727], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 31}}, {"id": 724, "type": "field_expression", "text": "vertex.erase", "parent": 723, "children": [725, 726], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 15}}, {"id": 725, "type": "identifier", "text": "vertex", "parent": 724, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 9}}, {"id": 726, "type": "field_identifier", "text": "erase", "parent": 724, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 15}}, {"id": 727, "type": "argument_list", "text": "(vertex.begin())", "parent": 723, "children": [728], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 31}}, {"id": 728, "type": "call_expression", "text": "vertex.begin()", "parent": 727, "children": [729, 731], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 30}}, {"id": 729, "type": "field_expression", "text": "vertex.begin", "parent": 728, "children": [730], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 28}}, {"id": 730, "type": "identifier", "text": "vertex", "parent": 729, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 22}}, {"id": 731, "type": "argument_list", "text": "()", "parent": 728, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 30}}, {"id": 732, "type": "call_expression", "text": "vertex.erase(vertex.begin())", "parent": 717, "children": [733, 736], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 31}}, {"id": 733, "type": "field_expression", "text": "vertex.erase", "parent": 732, "children": [734, 735], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 15}}, {"id": 734, "type": "identifier", "text": "vertex", "parent": 733, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 9}}, {"id": 735, "type": "field_identifier", "text": "erase", "parent": 733, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 15}}, {"id": 736, "type": "argument_list", "text": "(vertex.begin())", "parent": 732, "children": [737], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 31}}, {"id": 737, "type": "call_expression", "text": "vertex.begin()", "parent": 736, "children": [738, 740], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 30}}, {"id": 738, "type": "field_expression", "text": "vertex.begin", "parent": 737, "children": [739], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 28}}, {"id": 739, "type": "identifier", "text": "vertex", "parent": 738, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 22}}, {"id": 740, "type": "argument_list", "text": "()", "parent": 737, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 30}}, {"id": 741, "type": "call_expression", "text": "triangleMap.clear()", "parent": 624, "children": [742, 745], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 21}}, {"id": 742, "type": "field_expression", "text": "triangleMap.clear", "parent": 741, "children": [743, 744], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 19}}, {"id": 743, "type": "identifier", "text": "triangleMap", "parent": 742, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 13}}, {"id": 744, "type": "field_identifier", "text": "clear", "parent": 742, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 19}}, {"id": 745, "type": "argument_list", "text": "()", "parent": 741, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 21}}, {"id": 746, "type": "assignment_expression", "text": "hit = float3", "parent": 624, "children": [747, 748, 749], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 14}}, {"id": 747, "type": "identifier", "text": "hit", "parent": 746, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 5}}, {"id": 748, "type": "=", "text": "=", "parent": 746, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 7}}, {"id": 749, "type": "identifier", "text": "float3", "parent": 746, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 14}}, {"id": 750, "type": "ERROR", "text": "::zero", "parent": 624, "children": [751], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 20}}, {"id": 751, "type": "identifier", "text": "zero", "parent": 750, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 20}}, {"id": 752, "type": "declaration", "text": "int ret = -1;", "parent": 425, "children": [753, 754], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 14}}, {"id": 753, "type": "primitive_type", "text": "int", "parent": 752, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 4}}, {"id": 754, "type": "init_declarator", "text": "ret = -1", "parent": 752, "children": [755, 756, 757], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 13}}, {"id": 755, "type": "identifier", "text": "ret", "parent": 754, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 8}}, {"id": 756, "type": "=", "text": "=", "parent": 754, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 10}}, {"id": 757, "type": "number_literal", "text": "-1", "parent": 754, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 13}}, {"id": 758, "type": "for_statement", "text": "for (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n\t{\n\t\tTriangle t(vertex[i], vertex[i+1], vertex[i+2]);\n\t\tfor (size_t j = 0; j < players.size(); j++)\n\t\t{\n\t\t\tif (t.Intersects(players.at(j)->GetOOB()))\n\t\t\t{\n\t\t\t\tvec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n\t\t\t\tvec topPoint = bottomPoint;\n\t\t\t\ttopPoint.y += 1;\n\t\t\t\tif (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t}", "parent": 425, "children": [759, 765, 779], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 112, "column": 2}}, {"id": 759, "type": "declaration", "text": "size_t i = 0;", "parent": 758, "children": [760, 761], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 19}}, {"id": 760, "type": "primitive_type", "text": "size_t", "parent": 759, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 12}}, {"id": 761, "type": "init_declarator", "text": "i = 0", "parent": 759, "children": [762, 763, 764], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 18}}, {"id": 762, "type": "identifier", "text": "i", "parent": 761, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 14}}, {"id": 763, "type": "=", "text": "=", "parent": 761, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 16}}, {"id": 764, "type": "number_literal", "text": "0", "parent": 761, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 18}}, {"id": 765, "type": "binary_expression", "text": "i < vertex.size() && ret == -1", "parent": 758, "children": [766, 774, 775], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 50}}, {"id": 766, "type": "binary_expression", "text": "i < vertex.size()", "parent": 765, "children": [767, 768, 769], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 37}}, {"id": 767, "type": "identifier", "text": "i", "parent": 766, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 21}}, {"id": 768, "type": "<", "text": "<", "parent": 766, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 23}}, {"id": 769, "type": "call_expression", "text": "vertex.size()", "parent": 766, "children": [770, 773], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 37}}, {"id": 770, "type": "field_expression", "text": "vertex.size", "parent": 769, "children": [771, 772], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 35}}, {"id": 771, "type": "identifier", "text": "vertex", "parent": 770, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 30}}, {"id": 772, "type": "field_identifier", "text": "size", "parent": 770, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 35}}, {"id": 773, "type": "argument_list", "text": "()", "parent": 769, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 37}}, {"id": 774, "type": "&&", "text": "&&", "parent": 765, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 40}}, {"id": 775, "type": "binary_expression", "text": "ret == -1", "parent": 765, "children": [776, 777, 778], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 50}}, {"id": 776, "type": "identifier", "text": "ret", "parent": 775, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 44}}, {"id": 777, "type": "==", "text": "==", "parent": 775, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 47}}, {"id": 778, "type": "number_literal", "text": "-1", "parent": 775, "children": [], "start_point": {"row": 95, "column": 48}, "end_point": {"row": 95, "column": 50}}, {"id": 779, "type": "assignment_expression", "text": "i+=3", "parent": 758, "children": [780, 781, 782], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 57}}, {"id": 780, "type": "identifier", "text": "i", "parent": 779, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 54}}, {"id": 781, "type": "+=", "text": "+=", "parent": 779, "children": [], "start_point": {"row": 95, "column": 54}, "end_point": {"row": 95, "column": 56}}, {"id": 782, "type": "number_literal", "text": "3", "parent": 779, "children": [], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 57}}, {"id": 783, "type": "declaration", "text": "Triangle t(vertex[i], vertex[i+1], vertex[i+2]);", "parent": 758, "children": [784, 785], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 50}}, {"id": 784, "type": "type_identifier", "text": "Triangle", "parent": 783, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 10}}, {"id": 785, "type": "function_declarator", "text": "t(vertex[i], vertex[i+1], vertex[i+2])", "parent": 783, "children": [786, 787], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 49}}, {"id": 786, "type": "identifier", "text": "t", "parent": 785, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 787, "type": "parameter_list", "text": "(vertex[i], vertex[i+1], vertex[i+2])", "parent": 785, "children": [788, 792, 799], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 49}}, {"id": 788, "type": "parameter_declaration", "text": "vertex[i]", "parent": 787, "children": [789, 790], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 22}}, {"id": 789, "type": "type_identifier", "text": "vertex", "parent": 788, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 19}}, {"id": 790, "type": "abstract_array_declarator", "text": "[i]", "parent": 788, "children": [791], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 22}}, {"id": 791, "type": "identifier", "text": "i", "parent": 790, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 792, "type": "parameter_declaration", "text": "vertex[i+1]", "parent": 787, "children": [793, 794], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 35}}, {"id": 793, "type": "type_identifier", "text": "vertex", "parent": 792, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 30}}, {"id": 794, "type": "abstract_array_declarator", "text": "[i+1]", "parent": 792, "children": [795], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 35}}, {"id": 795, "type": "binary_expression", "text": "i+1", "parent": 794, "children": [796, 797, 798], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 34}}, {"id": 796, "type": "identifier", "text": "i", "parent": 795, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 797, "type": "+", "text": "+", "parent": 795, "children": [], "start_point": {"row": 97, "column": 32}, "end_point": {"row": 97, "column": 33}}, {"id": 798, "type": "number_literal", "text": "1", "parent": 795, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 34}}, {"id": 799, "type": "parameter_declaration", "text": "vertex[i+2]", "parent": 787, "children": [800, 801], "start_point": {"row": 97, "column": 37}, "end_point": {"row": 97, "column": 48}}, {"id": 800, "type": "type_identifier", "text": "vertex", "parent": 799, "children": [], "start_point": {"row": 97, "column": 37}, "end_point": {"row": 97, "column": 43}}, {"id": 801, "type": "abstract_array_declarator", "text": "[i+2]", "parent": 799, "children": [802], "start_point": {"row": 97, "column": 43}, "end_point": {"row": 97, "column": 48}}, {"id": 802, "type": "binary_expression", "text": "i+2", "parent": 801, "children": [803, 804, 805], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 97, "column": 47}}, {"id": 803, "type": "identifier", "text": "i", "parent": 802, "children": [], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 97, "column": 45}}, {"id": 804, "type": "+", "text": "+", "parent": 802, "children": [], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 46}}, {"id": 805, "type": "number_literal", "text": "2", "parent": 802, "children": [], "start_point": {"row": 97, "column": 46}, "end_point": {"row": 97, "column": 47}}, {"id": 806, "type": "for_statement", "text": "for (size_t j = 0; j < players.size(); j++)\n\t\t{\n\t\t\tif (t.Intersects(players.at(j)->GetOOB()))\n\t\t\t{\n\t\t\t\tvec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n\t\t\t\tvec topPoint = bottomPoint;\n\t\t\t\ttopPoint.y += 1;\n\t\t\t\tif (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "parent": 758, "children": [807, 813, 821], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 111, "column": 3}}, {"id": 807, "type": "declaration", "text": "size_t j = 0;", "parent": 806, "children": [808, 809], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 20}}, {"id": 808, "type": "primitive_type", "text": "size_t", "parent": 807, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 13}}, {"id": 809, "type": "init_declarator", "text": "j = 0", "parent": 807, "children": [810, 811, 812], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 19}}, {"id": 810, "type": "identifier", "text": "j", "parent": 809, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 15}}, {"id": 811, "type": "=", "text": "=", "parent": 809, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 17}}, {"id": 812, "type": "number_literal", "text": "0", "parent": 809, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 19}}, {"id": 813, "type": "binary_expression", "text": "j < players.size()", "parent": 806, "children": [814, 815, 816], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 39}}, {"id": 814, "type": "identifier", "text": "j", "parent": 813, "children": [], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 22}}, {"id": 815, "type": "<", "text": "<", "parent": 813, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 24}}, {"id": 816, "type": "call_expression", "text": "players.size()", "parent": 813, "children": [817, 820], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 39}}, {"id": 817, "type": "field_expression", "text": "players.size", "parent": 816, "children": [818, 819], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 37}}, {"id": 818, "type": "identifier", "text": "players", "parent": 817, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 32}}, {"id": 819, "type": "field_identifier", "text": "size", "parent": 817, "children": [], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 37}}, {"id": 820, "type": "argument_list", "text": "()", "parent": 816, "children": [], "start_point": {"row": 98, "column": 37}, "end_point": {"row": 98, "column": 39}}, {"id": 821, "type": "update_expression", "text": "j++", "parent": 806, "children": [822, 823], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 44}}, {"id": 822, "type": "identifier", "text": "j", "parent": 821, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 42}}, {"id": 823, "type": "++", "text": "++", "parent": 821, "children": [], "start_point": {"row": 98, "column": 42}, "end_point": {"row": 98, "column": 44}}, {"id": 824, "type": "if_statement", "text": "if (t.Intersects(players.at(j)->GetOOB()))\n\t\t\t{\n\t\t\t\tvec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n\t\t\t\tvec topPoint = bottomPoint;\n\t\t\t\ttopPoint.y += 1;\n\t\t\t\tif (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "parent": 806, "children": [825], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 110, "column": 4}}, {"id": 825, "type": "parenthesized_expression", "text": "(t.Intersects(players.at(j)->GetOOB()))", "parent": 824, "children": [826], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 45}}, {"id": 826, "type": "call_expression", "text": "t.Intersects(players.at(j)->GetOOB())", "parent": 825, "children": [827, 830], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 44}}, {"id": 827, "type": "field_expression", "text": "t.Intersects", "parent": 826, "children": [828, 829], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 19}}, {"id": 828, "type": "identifier", "text": "t", "parent": 827, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 8}}, {"id": 829, "type": "field_identifier", "text": "Intersects", "parent": 827, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 19}}, {"id": 830, "type": "argument_list", "text": "(players.at(j)->GetOOB())", "parent": 826, "children": [831], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 44}}, {"id": 831, "type": "call_expression", "text": "players.at(j)->GetOOB()", "parent": 830, "children": [832, 840], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 43}}, {"id": 832, "type": "field_expression", "text": "players.at(j)->GetOOB", "parent": 831, "children": [833, 839], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 41}}, {"id": 833, "type": "call_expression", "text": "players.at(j)", "parent": 832, "children": [834, 837], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 33}}, {"id": 834, "type": "field_expression", "text": "players.at", "parent": 833, "children": [835, 836], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 30}}, {"id": 835, "type": "identifier", "text": "players", "parent": 834, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 27}}, {"id": 836, "type": "field_identifier", "text": "at", "parent": 834, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 30}}, {"id": 837, "type": "argument_list", "text": "(j)", "parent": 833, "children": [838], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 33}}, {"id": 838, "type": "identifier", "text": "j", "parent": 837, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 32}}, {"id": 839, "type": "field_identifier", "text": "GetOOB", "parent": 832, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 41}}, {"id": 840, "type": "argument_list", "text": "()", "parent": 831, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 43}}, {"id": 841, "type": "declaration", "text": "vec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();", "parent": 824, "children": [842, 843], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 93}}, {"id": 842, "type": "type_identifier", "text": "vec", "parent": 841, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 7}}, {"id": 843, "type": "init_declarator", "text": "bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition()", "parent": 841, "children": [844, 845, 846], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 92}}, {"id": 844, "type": "identifier", "text": "bottomPoint", "parent": 843, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 19}}, {"id": 845, "type": "=", "text": "=", "parent": 843, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 846, "type": "binary_expression", "text": "players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition()", "parent": 843, "children": [847, 858, 859], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 92}}, {"id": 847, "type": "binary_expression", "text": "players.at(j)->GetComponent<TransformComponent", "parent": 846, "children": [848, 856, 857], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 68}}, {"id": 848, "type": "field_expression", "text": "players.at(j)->GetComponent", "parent": 847, "children": [849, 855], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 49}}, {"id": 849, "type": "call_expression", "text": "players.at(j)", "parent": 848, "children": [850, 853], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 35}}, {"id": 850, "type": "field_expression", "text": "players.at", "parent": 849, "children": [851, 852], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 32}}, {"id": 851, "type": "identifier", "text": "players", "parent": 850, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 29}}, {"id": 852, "type": "field_identifier", "text": "at", "parent": 850, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 32}}, {"id": 853, "type": "argument_list", "text": "(j)", "parent": 849, "children": [854], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 35}}, {"id": 854, "type": "identifier", "text": "j", "parent": 853, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 34}}, {"id": 855, "type": "field_identifier", "text": "GetComponent", "parent": 848, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 49}}, {"id": 856, "type": "<", "text": "<", "parent": 847, "children": [], "start_point": {"row": 102, "column": 49}, "end_point": {"row": 102, "column": 50}}, {"id": 857, "type": "identifier", "text": "TransformComponent", "parent": 847, "children": [], "start_point": {"row": 102, "column": 50}, "end_point": {"row": 102, "column": 68}}, {"id": 858, "type": ">", "text": ">", "parent": 846, "children": [], "start_point": {"row": 102, "column": 68}, "end_point": {"row": 102, "column": 69}}, {"id": 859, "type": "call_expression", "text": "()->GetGlobalPosition()", "parent": 846, "children": [860, 864], "start_point": {"row": 102, "column": 69}, "end_point": {"row": 102, "column": 92}}, {"id": 860, "type": "field_expression", "text": "()->GetGlobalPosition", "parent": 859, "children": [861, 863], "start_point": {"row": 102, "column": 69}, "end_point": {"row": 102, "column": 90}}, {"id": 861, "type": "parenthesized_expression", "text": "()", "parent": 860, "children": [862], "start_point": {"row": 102, "column": 69}, "end_point": {"row": 102, "column": 71}}, {"id": 862, "type": "identifier", "text": "", "parent": 861, "children": [], "start_point": {"row": 102, "column": 70}, "end_point": {"row": 102, "column": 70}}, {"id": 863, "type": "field_identifier", "text": "GetGlobalPosition", "parent": 860, "children": [], "start_point": {"row": 102, "column": 73}, "end_point": {"row": 102, "column": 90}}, {"id": 864, "type": "argument_list", "text": "()", "parent": 859, "children": [], "start_point": {"row": 102, "column": 90}, "end_point": {"row": 102, "column": 92}}, {"id": 865, "type": "declaration", "text": "vec topPoint = bottomPoint;", "parent": 824, "children": [866, 867], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 31}}, {"id": 866, "type": "type_identifier", "text": "vec", "parent": 865, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 7}}, {"id": 867, "type": "init_declarator", "text": "topPoint = bottomPoint", "parent": 865, "children": [868, 869, 870], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 30}}, {"id": 868, "type": "identifier", "text": "topPoint", "parent": 867, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 16}}, {"id": 869, "type": "=", "text": "=", "parent": 867, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 870, "type": "identifier", "text": "bottomPoint", "parent": 867, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 30}}, {"id": 871, "type": "assignment_expression", "text": "topPoint.y += 1", "parent": 824, "children": [872, 875, 876], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 19}}, {"id": 872, "type": "field_expression", "text": "topPoint.y", "parent": 871, "children": [873, 874], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 14}}, {"id": 873, "type": "identifier", "text": "topPoint", "parent": 872, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 12}}, {"id": 874, "type": "field_identifier", "text": "y", "parent": 872, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 875, "type": "+=", "text": "+=", "parent": 871, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 17}}, {"id": 876, "type": "number_literal", "text": "1", "parent": 871, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 877, "type": "if_statement", "text": "if (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "parent": 824, "children": [878], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 108, "column": 5}}, {"id": 878, "type": "parenthesized_expression", "text": "(t.Intersects(Capsule(bottomPoint, topPoint, 0.60f)))", "parent": 877, "children": [879], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 60}}, {"id": 879, "type": "call_expression", "text": "t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))", "parent": 878, "children": [880, 883], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 59}}, {"id": 880, "type": "field_expression", "text": "t.Intersects", "parent": 879, "children": [881, 882], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 20}}, {"id": 881, "type": "identifier", "text": "t", "parent": 880, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 882, "type": "field_identifier", "text": "Intersects", "parent": 880, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 20}}, {"id": 883, "type": "argument_list", "text": "(Capsule(bottomPoint, topPoint, 0.60f))", "parent": 879, "children": [884], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 59}}, {"id": 884, "type": "call_expression", "text": "Capsule(bottomPoint, topPoint, 0.60f)", "parent": 883, "children": [885, 886], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 58}}, {"id": 885, "type": "identifier", "text": "Capsule", "parent": 884, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 28}}, {"id": 886, "type": "argument_list", "text": "(bottomPoint, topPoint, 0.60f)", "parent": 884, "children": [887, 888, 889], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 58}}, {"id": 887, "type": "identifier", "text": "bottomPoint", "parent": 886, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 40}}, {"id": 888, "type": "identifier", "text": "topPoint", "parent": 886, "children": [], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 50}}, {"id": 889, "type": "number_literal", "text": "0.60f", "parent": 886, "children": [], "start_point": {"row": 105, "column": 52}, "end_point": {"row": 105, "column": 57}}, {"id": 890, "type": "assignment_expression", "text": "ret = j", "parent": 877, "children": [891, 892, 893], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 12}}, {"id": 891, "type": "identifier", "text": "ret", "parent": 890, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 8}}, {"id": 892, "type": "=", "text": "=", "parent": 890, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 893, "type": "identifier", "text": "j", "parent": 890, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 894, "type": "break_statement", "text": "break;", "parent": 877, "children": [895], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 11}}, {"id": 895, "type": "break", "text": "break", "parent": 894, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 10}}, {"id": 896, "type": "labeled_statement", "text": "std::reverse(vertex.begin(), vertex.end());", "parent": 425, "children": [897], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 44}}, {"id": 897, "type": "statement_identifier", "text": "std", "parent": 896, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 4}}, {"id": 898, "type": "call_expression", "text": "reverse(vertex.begin(), vertex.end())", "parent": 896, "children": [899, 900], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 43}}, {"id": 899, "type": "identifier", "text": "reverse", "parent": 898, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 13}}, {"id": 900, "type": "argument_list", "text": "(vertex.begin(), vertex.end())", "parent": 898, "children": [901, 905], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 43}}, {"id": 901, "type": "call_expression", "text": "vertex.begin()", "parent": 900, "children": [902, 904], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 28}}, {"id": 902, "type": "field_expression", "text": "vertex.begin", "parent": 901, "children": [903], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 26}}, {"id": 903, "type": "identifier", "text": "vertex", "parent": 902, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 20}}, {"id": 904, "type": "argument_list", "text": "()", "parent": 901, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 28}}, {"id": 905, "type": "call_expression", "text": "vertex.end()", "parent": 900, "children": [906, 908], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 42}}, {"id": 906, "type": "field_expression", "text": "vertex.end", "parent": 905, "children": [907], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 40}}, {"id": 907, "type": "identifier", "text": "vertex", "parent": 906, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 36}}, {"id": 908, "type": "argument_list", "text": "()", "parent": 905, "children": [], "start_point": {"row": 115, "column": 40}, "end_point": {"row": 115, "column": 42}}, {"id": 909, "type": "declaration", "text": "int sizeCon = app->renderer3D->enemyCones.size();", "parent": 425, "children": [910, 911], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 50}}, {"id": 910, "type": "primitive_type", "text": "int", "parent": 909, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 4}}, {"id": 911, "type": "init_declarator", "text": "sizeCon = app->renderer3D->enemyCones.size()", "parent": 909, "children": [912, 913, 914], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 49}}, {"id": 912, "type": "identifier", "text": "sizeCon", "parent": 911, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 12}}, {"id": 913, "type": "=", "text": "=", "parent": 911, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 14}}, {"id": 914, "type": "call_expression", "text": "app->renderer3D->enemyCones.size()", "parent": 911, "children": [915, 922], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 49}}, {"id": 915, "type": "field_expression", "text": "app->renderer3D->enemyCones.size", "parent": 914, "children": [916, 921], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 47}}, {"id": 916, "type": "field_expression", "text": "app->renderer3D->enemyCones", "parent": 915, "children": [917, 920], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 42}}, {"id": 917, "type": "field_expression", "text": "app->renderer3D", "parent": 916, "children": [918, 919], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 30}}, {"id": 918, "type": "identifier", "text": "app", "parent": 917, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 18}}, {"id": 919, "type": "field_identifier", "text": "renderer3D", "parent": 917, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 30}}, {"id": 920, "type": "field_identifier", "text": "enemyCones", "parent": 916, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 42}}, {"id": 921, "type": "field_identifier", "text": "size", "parent": 915, "children": [], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 47}}, {"id": 922, "type": "argument_list", "text": "()", "parent": 914, "children": [], "start_point": {"row": 118, "column": 47}, "end_point": {"row": 118, "column": 49}}, {"id": 923, "type": "call_expression", "text": "app->renderer3D->enemyCones.resize(sizeCon + vertex.size())", "parent": 425, "children": [924, 931], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 60}}, {"id": 924, "type": "field_expression", "text": "app->renderer3D->enemyCones.resize", "parent": 923, "children": [925, 930], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 35}}, {"id": 925, "type": "field_expression", "text": "app->renderer3D->enemyCones", "parent": 924, "children": [926, 929], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 28}}, {"id": 926, "type": "field_expression", "text": "app->renderer3D", "parent": 925, "children": [927, 928], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 16}}, {"id": 927, "type": "identifier", "text": "app", "parent": 926, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 4}}, {"id": 928, "type": "field_identifier", "text": "renderer3D", "parent": 926, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 16}}, {"id": 929, "type": "field_identifier", "text": "enemyCones", "parent": 925, "children": [], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 28}}, {"id": 930, "type": "field_identifier", "text": "resize", "parent": 924, "children": [], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 35}}, {"id": 931, "type": "argument_list", "text": "(sizeCon + vertex.size())", "parent": 923, "children": [932], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 60}}, {"id": 932, "type": "binary_expression", "text": "sizeCon + vertex.size()", "parent": 931, "children": [933, 934, 935], "start_point": {"row": 119, "column": 36}, "end_point": {"row": 119, "column": 59}}, {"id": 933, "type": "identifier", "text": "sizeCon", "parent": 932, "children": [], "start_point": {"row": 119, "column": 36}, "end_point": {"row": 119, "column": 43}}, {"id": 934, "type": "+", "text": "+", "parent": 932, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 935, "type": "call_expression", "text": "vertex.size()", "parent": 932, "children": [936, 939], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 59}}, {"id": 936, "type": "field_expression", "text": "vertex.size", "parent": 935, "children": [937, 938], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 57}}, {"id": 937, "type": "identifier", "text": "vertex", "parent": 936, "children": [], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 52}}, {"id": 938, "type": "field_identifier", "text": "size", "parent": 936, "children": [], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 57}}, {"id": 939, "type": "argument_list", "text": "()", "parent": 935, "children": [], "start_point": {"row": 119, "column": 57}, "end_point": {"row": 119, "column": 59}}, {"id": 940, "type": "call_expression", "text": "memcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3))", "parent": 425, "children": [941, 942], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 90}}, {"id": 941, "type": "identifier", "text": "memcpy", "parent": 940, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 7}}, {"id": 942, "type": "argument_list", "text": "(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3))", "parent": 940, "children": [943, 951, 955], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 90}}, {"id": 943, "type": "pointer_expression", "text": "&app->renderer3D->enemyCones[sizeCon]", "parent": 942, "children": [944], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 45}}, {"id": 944, "type": "subscript_expression", "text": "app->renderer3D->enemyCones[sizeCon]", "parent": 943, "children": [945, 950], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 45}}, {"id": 945, "type": "field_expression", "text": "app->renderer3D->enemyCones", "parent": 944, "children": [946, 949], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 36}}, {"id": 946, "type": "field_expression", "text": "app->renderer3D", "parent": 945, "children": [947, 948], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 24}}, {"id": 947, "type": "identifier", "text": "app", "parent": 946, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 12}}, {"id": 948, "type": "field_identifier", "text": "renderer3D", "parent": 946, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 24}}, {"id": 949, "type": "field_identifier", "text": "enemyCones", "parent": 945, "children": [], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 36}}, {"id": 950, "type": "identifier", "text": "sizeCon", "parent": 944, "children": [], "start_point": {"row": 120, "column": 37}, "end_point": {"row": 120, "column": 44}}, {"id": 951, "type": "pointer_expression", "text": "&vertex[0]", "parent": 942, "children": [952], "start_point": {"row": 120, "column": 47}, "end_point": {"row": 120, "column": 57}}, {"id": 952, "type": "subscript_expression", "text": "vertex[0]", "parent": 951, "children": [953, 954], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 57}}, {"id": 953, "type": "identifier", "text": "vertex", "parent": 952, "children": [], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 54}}, {"id": 954, "type": "number_literal", "text": "0", "parent": 952, "children": [], "start_point": {"row": 120, "column": 55}, "end_point": {"row": 120, "column": 56}}, {"id": 955, "type": "binary_expression", "text": "vertex.size() * sizeof(float3)", "parent": 942, "children": [956, 961, 962], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 89}}, {"id": 956, "type": "call_expression", "text": "vertex.size()", "parent": 955, "children": [957, 960], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 72}}, {"id": 957, "type": "field_expression", "text": "vertex.size", "parent": 956, "children": [958, 959], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 70}}, {"id": 958, "type": "identifier", "text": "vertex", "parent": 957, "children": [], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 65}}, {"id": 959, "type": "field_identifier", "text": "size", "parent": 957, "children": [], "start_point": {"row": 120, "column": 66}, "end_point": {"row": 120, "column": 70}}, {"id": 960, "type": "argument_list", "text": "()", "parent": 956, "children": [], "start_point": {"row": 120, "column": 70}, "end_point": {"row": 120, "column": 72}}, {"id": 961, "type": "*", "text": "*", "parent": 955, "children": [], "start_point": {"row": 120, "column": 73}, "end_point": {"row": 120, "column": 74}}, {"id": 962, "type": "sizeof_expression", "text": "sizeof(float3)", "parent": 955, "children": [963], "start_point": {"row": 120, "column": 75}, "end_point": {"row": 120, "column": 89}}, {"id": 963, "type": "parenthesized_expression", "text": "(float3)", "parent": 962, "children": [964], "start_point": {"row": 120, "column": 81}, "end_point": {"row": 120, "column": 89}}, {"id": 964, "type": "identifier", "text": "float3", "parent": 963, "children": [], "start_point": {"row": 120, "column": 82}, "end_point": {"row": 120, "column": 88}}, {"id": 965, "type": "return_statement", "text": "return ret;", "parent": 425, "children": [966], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 12}}, {"id": 966, "type": "identifier", "text": "ret", "parent": 965, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 11}}]}, "node_categories": {"declarations": {"functions": [39, 41, 171, 173, 220, 224, 285, 425, 427, 640, 648, 656, 785], "variables": [44, 49, 54, 67, 88, 106, 176, 181, 184, 227, 232, 237, 242, 255, 268, 283, 288, 290, 361, 430, 435, 440, 443, 446, 449, 454, 457, 462, 465, 478, 556, 616, 625, 638, 643, 650, 659, 752, 759, 783, 788, 792, 799, 807, 841, 865, 909], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": []}, "statements": {"expressions": [59, 60, 61, 74, 75, 82, 83, 84, 93, 96, 97, 101, 102, 113, 116, 117, 122, 123, 127, 133, 134, 138, 139, 140, 141, 145, 146, 152, 153, 157, 158, 159, 160, 164, 165, 191, 192, 199, 201, 202, 206, 210, 211, 215, 216, 247, 248, 249, 260, 261, 262, 275, 278, 294, 295, 305, 306, 314, 315, 316, 317, 318, 319, 320, 331, 332, 333, 334, 335, 336, 337, 350, 351, 355, 364, 365, 366, 376, 377, 378, 380, 381, 386, 387, 388, 389, 390, 392, 393, 401, 402, 403, 408, 409, 410, 412, 413, 417, 418, 470, 471, 472, 483, 484, 485, 493, 494, 504, 505, 506, 515, 516, 526, 527, 528, 537, 538, 545, 548, 549, 552, 553, 561, 569, 573, 576, 577, 578, 581, 582, 590, 591, 597, 598, 605, 606, 610, 631, 635, 670, 671, 672, 681, 682, 688, 689, 693, 694, 698, 699, 703, 704, 705, 711, 712, 718, 719, 723, 724, 728, 729, 732, 733, 737, 738, 741, 742, 765, 766, 769, 770, 775, 795, 802, 813, 816, 817, 821, 825, 826, 827, 831, 832, 833, 834, 846, 847, 848, 849, 850, 859, 860, 861, 872, 878, 879, 880, 884, 898, 901, 902, 905, 906, 914, 915, 916, 917, 923, 924, 925, 926, 932, 935, 936, 940, 943, 944, 945, 946, 951, 952, 955, 956, 957, 962, 963], "assignments": [501, 523, 566, 746, 779, 871, 890], "loops": [624, 758, 806], "conditionals": [42, 45, 48, 50, 53, 55, 57, 62, 63, 64, 66, 68, 72, 76, 78, 85, 86, 89, 91, 94, 98, 99, 103, 104, 107, 109, 112, 114, 118, 119, 121, 124, 125, 128, 135, 136, 142, 143, 147, 148, 150, 154, 155, 161, 162, 166, 167, 169, 174, 177, 180, 183, 185, 189, 193, 195, 200, 203, 204, 207, 209, 212, 213, 217, 218, 221, 225, 228, 231, 233, 236, 238, 241, 243, 245, 250, 251, 252, 254, 256, 258, 263, 264, 265, 267, 273, 276, 279, 281, 284, 286, 289, 291, 293, 296, 298, 302, 304, 307, 309, 313, 321, 322, 323, 325, 327, 329, 330, 338, 339, 340, 342, 344, 346, 347, 349, 352, 354, 356, 360, 362, 363, 367, 368, 369, 371, 372, 373, 374, 375, 382, 383, 394, 396, 397, 399, 404, 405, 406, 414, 416, 419, 420, 428, 431, 434, 436, 439, 442, 445, 448, 450, 453, 456, 458, 461, 464, 466, 468, 473, 474, 475, 477, 479, 481, 486, 487, 488, 490, 492, 495, 497, 502, 507, 508, 509, 511, 512, 514, 517, 519, 524, 529, 530, 531, 533, 534, 536, 539, 541, 546, 550, 554, 559, 562, 564, 567, 570, 572, 574, 583, 587, 589, 592, 594, 596, 599, 600, 602, 604, 607, 609, 611, 615, 617, 619, 621, 623, 628, 632, 634, 636, 639, 641, 644, 646, 651, 655, 657, 660, 663, 666, 669, 673, 674, 675, 677, 678, 679, 680, 683, 684, 686, 687, 690, 695, 696, 700, 701, 706, 707, 713, 714, 716, 717, 720, 725, 726, 730, 734, 735, 739, 743, 744, 747, 749, 751, 755, 762, 767, 771, 772, 776, 780, 784, 786, 789, 791, 793, 796, 800, 803, 810, 814, 818, 819, 822, 824, 828, 829, 835, 836, 838, 839, 842, 844, 851, 852, 854, 855, 857, 862, 863, 866, 868, 870, 873, 874, 877, 881, 882, 885, 887, 888, 891, 893, 897, 899, 903, 907, 912, 918, 919, 920, 921, 927, 928, 929, 930, 933, 937, 938, 941, 947, 948, 949, 950, 953, 958, 959, 964, 966], "returns": [400, 422, 965], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 130, 131, 132, 282, 579, 585, 630, 692, 710, 722, 757, 764, 778, 782, 798, 805, 812, 876, 889, 954], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "LookAt", "text_snippet": "void LookAt(MonoObject* go, MonoObject* transformToLook)\n{\n\tfloat3 target = app->moduleMono->UnboxVe"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "LookAt(MonoObject* go, MonoObject* transformToLook)"}, {"node_id": 171, "universal_type": "function", "name": "ChangeFov", "text_snippet": "void ChangeFov(MonoObject* go, float newFov)\n{\n\tCameraComponent* camComp = GetComponentMono<CameraCo"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "ChangeFov(MonoObject* go, float newFov)"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "MonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)\n{\n\tfloat3 pointA = ap"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "picking(pointA, pointB)"}, {"node_id": 425, "universal_type": "function", "name": "PerceptionCone", "text_snippet": "int PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, Mono"}, {"node_id": 427, "universal_type": "function", "name": "_angle,", "text_snippet": "PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArra"}, {"node_id": 640, "universal_type": "function", "name": "unknown", "text_snippet": "ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius))"}, {"node_id": 648, "universal_type": "function", "name": "unknown", "text_snippet": "(forward * float3x3::RotateY(angle/rays * i) * radius)"}, {"node_id": 656, "universal_type": "function", "name": "unknown", "text_snippet": "RotateY(angle/rays * i)"}, {"node_id": 785, "universal_type": "function", "name": "unknown", "text_snippet": "t(vertex[i], vertex[i+1], vertex[i+2])"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"ScriptComponent.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"CameraComponent.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"ModuleCamera3D.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"ModuleRenderer3D.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"Math/float3x3.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"Geometry/LineSegment.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"Geometry/Triangle.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"Geometry/Capsule.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"ScriptBindings.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <metadata\\object-forward.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <metadata\\object.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <metadata/class.h>\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"ScriptComponent.h\"\n#include \"CameraComponent.h\"\n#include \"ModuleCamera3D.h\"\n#include \"ModuleRenderer3D.h\"\n\n#include \"Math/float3x3.h\"\n#include \"Geometry/LineSegment.h\"\n#include \"Geometry/Triangle.h\"\n#include \"Geometry/Capsule.h\"\n\n#include \"ScriptBindings.h\"\n#include <metadata\\object-forward.h>\n#include <metadata\\object.h>\n#include <metadata/class.h>\n\nvoid LookAt(MonoObject* go, MonoObject* transformToLook)\n{\n\tfloat3 target = app->moduleMono->UnboxVector(transformToLook);\n\n\tFrustum* cameraFrustum = GetComponentMono<CameraComponent*>(go)->GetFrustum();\n\tfloat3 directionFrustum = target - cameraFrustum->Pos();\n\tdirectionFrustum.Normalize();\n\n\tfloat3x3 lookAt = float3x3::LookAt(cameraFrustum->Front(), directionFrustum, cameraFrustum->Up(), float3(0.0f, 1.0f, 0.0f));\n\tcameraFrustum->SetFront(lookAt.MulDir(cameraFrustum->Front()).Normalized());\n\tcameraFrustum->SetUp(lookAt.MulDir(cameraFrustum->Up()).Normalized());\n}\n\nvoid ChangeFov(MonoObject* go, float newFov)\n{\n\tCameraComponent* camComp = GetComponentMono<CameraComponent*>(go);\n\tcamComp->SetNewFov(DegToRad(newFov));\n\tcamComp->UpdateFov();\n\tcamComp->CompileBuffers();\n}\n\nMonoObject* HitToTag(MonoObject* initPos, MonoObject* endPos, MonoObject* tag)\n{\n\tfloat3 pointA = app->moduleMono->UnboxVector(initPos);\n\tfloat3 pointB = app->moduleMono->UnboxVector(endPos);\n\tchar* tagName = mono_string_to_utf8(mono_object_to_string(tag, 0));\n\tLineSegment picking(pointA, pointB);\n\n\tstd::stack<QuadtreeNode*> nodes;\n\tstd::set<GameObject*> gameObjects;\n\tapp->sceneManager->GetCurrentScene()->GetQuadtree().CollectNodes(nodes, picking);\n\tapp->sceneManager->GetCurrentScene()->GetQuadtree().CollectGoOnlyStatic(gameObjects, nodes);\n\n\tstd::map<float, GameObject*> triangleMap;\n\tfloat3 hit;\n\tapp->camera->ThrowRayCast(gameObjects, picking, triangleMap, hit);\n\n\t// Throw Ray from enemy head to player head\n\tif (!triangleMap.empty() && (*triangleMap.begin()).second->tag == tagName)\n\t\treturn app->moduleMono->GoToCSGO((*triangleMap.begin()).second);\n\n\ttriangleMap.clear();\n\treturn nullptr;\n}\n\nint PerceptionCone(MonoObject* initPos, MonoObject* _forward, int _angle, int rays, int radius, MonoArray* _players, int playersSize, MonoArray* _colliders, int collidersSize)\n{\n\tfloat3 pointA = app->moduleMono->UnboxVector(initPos);\n\tfloat3 forward = app->moduleMono->UnboxVector(_forward);\n\tstd::vector<GameObject*> players = app->moduleMono->UnboxArray(_players, playersSize);\n\tstd::vector<GameObject*> colliders = app->moduleMono->UnboxArray(_colliders, collidersSize);\n\tstd::set<GameObject*> gameObjects(colliders.begin(), colliders.end());\n\n\tfloat angle = _angle * DEGTORAD;\n\tforward = forward * float3x3::RotateY((360-(_angle/2)) * DEGTORAD);\n\tstd::vector<float3> vertex;\n\tvertex.reserve(rays);\n\tstd::map<float, GameObject*> triangleMap;\n\tfloat3 hit = float3::zero;\n\n\tfor (int i = 0; i < rays; i++)\n\t{\n\t\tLineSegment ray(pointA, pointA + (forward * float3x3::RotateY(angle/rays * i) * radius));\n\t\tapp->camera->ThrowRayCast(gameObjects, ray, triangleMap, hit);\n\t\t\n\t\tvertex.push_back(pointA); // origin\n\t\tif (i != 0) vertex.push_back(vertex.at(vertex.size() - 2)); // previous \n\t\tvertex.push_back(hit); // this\n\n\t\tif (i == 1)\n\t\t{\n\t\t\tvertex.erase(vertex.begin());\n\t\t\tvertex.erase(vertex.begin());\n\t\t}\n\t\ttriangleMap.clear();\n\t\thit = float3::zero;\n\t}\n\n\tint ret = -1;\n\tfor (size_t i = 0; i < vertex.size() && ret == -1 ; i+=3)\n\t{\n\t\tTriangle t(vertex[i], vertex[i+1], vertex[i+2]);\n\t\tfor (size_t j = 0; j < players.size(); j++)\n\t\t{\n\t\t\tif (t.Intersects(players.at(j)->GetOOB()))\n\t\t\t{\n\t\t\t\tvec bottomPoint = players.at(j)->GetComponent<TransformComponent>()->GetGlobalPosition();\n\t\t\t\tvec topPoint = bottomPoint;\n\t\t\t\ttopPoint.y += 1;\n\t\t\t\tif (t.Intersects(Capsule(bottomPoint, topPoint, 0.60f))) {\n\t\t\t\t\tret = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t}\n\n\t// Inverse triangle\n\tstd::reverse(vertex.begin(), vertex.end());\n\n\t// Add to enemyCones list\n\tint sizeCon = app->renderer3D->enemyCones.size();\n\tapp->renderer3D->enemyCones.resize(sizeCon + vertex.size());\n\tmemcpy(&app->renderer3D->enemyCones[sizeCon], &vertex[0], vertex.size() * sizeof(float3));\n\n\treturn ret;\n}"}
117
c
#ifndef DRONE_NODE__VISIBILITY_CONTROL_H_ #define DRONE_NODE__VISIBILITY_CONTROL_H_ #ifdef __cplusplus extern "C" { #endif // This logic was borrowed (then namespaced) from the examples on the gcc wiki: // https://gcc.gnu.org/wiki/Visibility #if defined _WIN32 || defined __CYGWIN__ #ifdef __GNUC__ #define DRONE_NODE_EXPORT __attribute__ ((dllexport)) #define DRONE_NODE_IMPORT __attribute__ ((dllimport)) #else #define DRONE_NODE_EXPORT __declspec(dllexport) #define DRONE_NODE_IMPORT __declspec(dllimport) #endif #ifdef DRONE_NODE_BUILDING_DLL #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT #else #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT #endif #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC #define DRONE_NODE_LOCAL #else #define DRONE_NODE_EXPORT __attribute__ ((visibility("default"))) #define DRONE_NODE_IMPORT #if __GNUC__ >= 4 #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default"))) #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden"))) #else #define DRONE_NODE_PUBLIC #define DRONE_NODE_LOCAL #endif #define DRONE_NODE_PUBLIC_TYPE #endif #ifdef __cplusplus } #endif #endif // DRONE_NODE__VISIBILITY_CONTROL_H_
30.18
39
(translation_unit) "#ifndef DRONE_NODE__VISIBILITY_CONTROL_H_\n#define DRONE_NODE__VISIBILITY_CONTROL_H_\n\n#ifdef __cplusplus\nextern "C"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // DRONE_NODE__VISIBILITY_CONTROL_H_\n" (preproc_ifdef) "#ifndef DRONE_NODE__VISIBILITY_CONTROL_H_\n#define DRONE_NODE__VISIBILITY_CONTROL_H_\n\n#ifdef __cplusplus\nextern "C"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "DRONE_NODE__VISIBILITY_CONTROL_H_" (preproc_def) "#define DRONE_NODE__VISIBILITY_CONTROL_H_\n" (#define) "#define" (identifier) "DRONE_NODE__VISIBILITY_CONTROL_H_" (preproc_ifdef) "#ifdef __cplusplus\nextern "C"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "// This logic was borrowed (then namespaced) from the examples on the gcc wiki:" (comment) "// https://gcc.gnu.org/wiki/Visibility" (preproc_if) "#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif" (#if) "#if" (binary_expression) "defined _WIN32 || defined __CYGWIN__" (preproc_defined) "defined _WIN32" (defined) "defined" (identifier) "_WIN32" (||) "||" (preproc_defined) "defined __CYGWIN__" (defined) "defined" (identifier) "__CYGWIN__" ( ) "\n" (preproc_ifdef) "#ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif" (#ifdef) "#ifdef" (identifier) "__GNUC__" (preproc_def) "#define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n" (#define) "#define" (identifier) "DRONE_NODE_EXPORT" (preproc_arg) "__attribute__ ((dllexport))" (preproc_def) "#define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n" (#define) "#define" (identifier) "DRONE_NODE_IMPORT" (preproc_arg) "__attribute__ ((dllimport))" (preproc_else) "#else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n" (#else) "#else" (preproc_def) "#define DRONE_NODE_EXPORT __declspec(dllexport)\n" (#define) "#define" (identifier) "DRONE_NODE_EXPORT" (preproc_arg) "__declspec(dllexport)" (preproc_def) "#define DRONE_NODE_IMPORT __declspec(dllimport)\n" (#define) "#define" (identifier) "DRONE_NODE_IMPORT" (preproc_arg) "__declspec(dllimport)" (#endif) "#endif" (preproc_ifdef) "#ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif" (#ifdef) "#ifdef" (identifier) "DRONE_NODE_BUILDING_DLL" (preproc_def) "#define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC" (preproc_arg) "DRONE_NODE_EXPORT" (preproc_else) "#else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n" (#else) "#else" (preproc_def) "#define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC" (preproc_arg) "DRONE_NODE_IMPORT" (#endif) "#endif" (preproc_def) "#define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC_TYPE" (preproc_arg) "DRONE_NODE_PUBLIC" (preproc_def) "#define DRONE_NODE_LOCAL\n" (#define) "#define" (identifier) "DRONE_NODE_LOCAL" (preproc_else) "#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n" (#else) "#else" (preproc_def) "#define DRONE_NODE_EXPORT __attribute__ ((visibility("default")))\n" (#define) "#define" (identifier) "DRONE_NODE_EXPORT" (preproc_arg) "__attribute__ ((visibility("default")))" (preproc_def) "#define DRONE_NODE_IMPORT\n" (#define) "#define" (identifier) "DRONE_NODE_IMPORT" (preproc_if) "#if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif" (#if) "#if" (binary_expression) "__GNUC__ >= 4" (identifier) "__GNUC__" (>=) ">=" (number_literal) "4" ( ) "\n" (preproc_def) "#define DRONE_NODE_PUBLIC __attribute__ ((visibility("default")))\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC" (preproc_arg) "__attribute__ ((visibility("default")))" (preproc_def) "#define DRONE_NODE_LOCAL __attribute__ ((visibility("hidden")))\n" (#define) "#define" (identifier) "DRONE_NODE_LOCAL" (preproc_arg) "__attribute__ ((visibility("hidden")))" (preproc_else) "#else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n" (#else) "#else" (preproc_def) "#define DRONE_NODE_PUBLIC\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC" (preproc_def) "#define DRONE_NODE_LOCAL\n" (#define) "#define" (identifier) "DRONE_NODE_LOCAL" (#endif) "#endif" (preproc_def) "#define DRONE_NODE_PUBLIC_TYPE\n" (#define) "#define" (identifier) "DRONE_NODE_PUBLIC_TYPE" (#endif) "#endif" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "// DRONE_NODE__VISIBILITY_CONTROL_H_"
121
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.18, "nodes": 111, "errors": 0, "source_hash": "0c3a7b4ac2e2447a19791f232d5e051b7bb2d268c440a16670dd25562849819a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DRONE_NODE__VISIBILITY_CONTROL_H_\n#define DRONE_NODE__VISIBILITY_CONTROL_H_\n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 110], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 43, "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": "DRONE_NODE__VISIBILITY_CONTROL_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 41}}, {"id": 3, "type": "preproc_def", "text": "#define DRONE_NODE__VISIBILITY_CONTROL_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": "DRONE_NODE__VISIBILITY_CONTROL_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 41}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 109], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "preproc_if", "text": "#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif", "parent": 9, "children": [15, 16, 24, 25, 47, 61, 65, 68, 104], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 15, "type": "#if", "text": "#if", "parent": 14, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 3}}, {"id": 16, "type": "binary_expression", "text": "defined _WIN32 || defined __CYGWIN__", "parent": 14, "children": [17, 20, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 40}}, {"id": 17, "type": "preproc_defined", "text": "defined _WIN32", "parent": 16, "children": [18, 19], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 18}}, {"id": 18, "type": "defined", "text": "defined", "parent": 17, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 19, "type": "identifier", "text": "_WIN32", "parent": 17, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 18}}, {"id": 20, "type": "||", "text": "||", "parent": 16, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 21}}, {"id": 21, "type": "preproc_defined", "text": "defined __CYGWIN__", "parent": 16, "children": [22, 23], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 40}}, {"id": 22, "type": "defined", "text": "defined", "parent": 21, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 29}}, {"id": 23, "type": "identifier", "text": "__CYGWIN__", "parent": 21, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 40}}, {"id": 24, "type": "\n", "text": "\n", "parent": 14, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 12, "column": 0}}, {"id": 25, "type": "preproc_ifdef", "text": "#ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif", "parent": 14, "children": [26, 27, 28, 32, 36, 46], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "#ifdef", "text": "#ifdef", "parent": 25, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 27, "type": "identifier", "text": "__GNUC__", "parent": 25, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 28, "type": "preproc_def", "text": "#define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n", "parent": 25, "children": [29, 30, 31], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 14, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 30, "type": "identifier", "text": "DRONE_NODE_EXPORT", "parent": 28, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 29}}, {"id": 31, "type": "preproc_arg", "text": "__attribute__ ((dllexport))", "parent": 28, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 57}}, {"id": 32, "type": "preproc_def", "text": "#define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n", "parent": 25, "children": [33, 34, 35], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 15, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 34, "type": "identifier", "text": "DRONE_NODE_IMPORT", "parent": 32, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 29}}, {"id": 35, "type": "preproc_arg", "text": "__attribute__ ((dllimport))", "parent": 32, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 57}}, {"id": 36, "type": "preproc_else", "text": "#else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n", "parent": 25, "children": [37, 38, 42], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 18, "column": 0}}, {"id": 37, "type": "#else", "text": "#else", "parent": 36, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 7}}, {"id": 38, "type": "preproc_def", "text": "#define DRONE_NODE_EXPORT __declspec(dllexport)\n", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 17, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 40, "type": "identifier", "text": "DRONE_NODE_EXPORT", "parent": 38, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 29}}, {"id": 41, "type": "preproc_arg", "text": "__declspec(dllexport)", "parent": 38, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 51}}, {"id": 42, "type": "preproc_def", "text": "#define DRONE_NODE_IMPORT __declspec(dllimport)\n", "parent": 36, "children": [43, 44, 45], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 44, "type": "identifier", "text": "DRONE_NODE_IMPORT", "parent": 42, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 29}}, {"id": 45, "type": "preproc_arg", "text": "__declspec(dllimport)", "parent": 42, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 51}}, {"id": 46, "type": "#endif", "text": "#endif", "parent": 25, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 8}}, {"id": 47, "type": "preproc_ifdef", "text": "#ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif", "parent": 14, "children": [48, 49, 50, 54, 60], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 48, "type": "#ifdef", "text": "#ifdef", "parent": 47, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 8}}, {"id": 49, "type": "identifier", "text": "DRONE_NODE_BUILDING_DLL", "parent": 47, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 32}}, {"id": 50, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n", "parent": 47, "children": [51, 52, 53], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 21, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 52, "type": "identifier", "text": "DRONE_NODE_PUBLIC", "parent": 50, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 29}}, {"id": 53, "type": "preproc_arg", "text": "DRONE_NODE_EXPORT", "parent": 50, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 47}}, {"id": 54, "type": "preproc_else", "text": "#else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n", "parent": 47, "children": [55, 56], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 23, "column": 0}}, {"id": 55, "type": "#else", "text": "#else", "parent": 54, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 7}}, {"id": 56, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 23, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 58, "type": "identifier", "text": "DRONE_NODE_PUBLIC", "parent": 56, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 29}}, {"id": 59, "type": "preproc_arg", "text": "DRONE_NODE_IMPORT", "parent": 56, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 47}}, {"id": 60, "type": "#endif", "text": "#endif", "parent": 47, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 61, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n", "parent": 14, "children": [62, 63, 64], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 0}}, {"id": 62, "type": "#define", "text": "#define", "parent": 61, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 63, "type": "identifier", "text": "DRONE_NODE_PUBLIC_TYPE", "parent": 61, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 32}}, {"id": 64, "type": "preproc_arg", "text": "DRONE_NODE_PUBLIC", "parent": 61, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 50}}, {"id": 65, "type": "preproc_def", "text": "#define DRONE_NODE_LOCAL\n", "parent": 14, "children": [66, 67], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 26, "column": 0}}, {"id": 66, "type": "#define", "text": "#define", "parent": 65, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 9}}, {"id": 67, "type": "identifier", "text": "DRONE_NODE_LOCAL", "parent": 65, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 26}}, {"id": 68, "type": "preproc_else", "text": "#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n", "parent": 14, "children": [69, 70, 74, 77, 101], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 69, "type": "#else", "text": "#else", "parent": 68, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 5}}, {"id": 70, "type": "preproc_def", "text": "#define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 28, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 9}}, {"id": 72, "type": "identifier", "text": "DRONE_NODE_EXPORT", "parent": 70, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 27}}, {"id": 73, "type": "preproc_arg", "text": "__attribute__ ((visibility(\"default\")))", "parent": 70, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 67}}, {"id": 74, "type": "preproc_def", "text": "#define DRONE_NODE_IMPORT\n", "parent": 68, "children": [75, 76], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 29, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 9}}, {"id": 76, "type": "identifier", "text": "DRONE_NODE_IMPORT", "parent": 74, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 27}}, {"id": 77, "type": "preproc_if", "text": "#if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif", "parent": 68, "children": [78, 79, 83, 84, 88, 92, 100], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 78, "type": "#if", "text": "#if", "parent": 77, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 79, "type": "binary_expression", "text": "__GNUC__ >= 4", "parent": 77, "children": [80, 81, 82], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 19}}, {"id": 80, "type": "identifier", "text": "__GNUC__", "parent": 79, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 81, "type": ">=", "text": ">=", "parent": 79, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 82, "type": "number_literal", "text": "4", "parent": 79, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 19}}, {"id": 83, "type": "\n", "text": "\n", "parent": 77, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 30, "column": 0}}, {"id": 84, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n", "parent": 77, "children": [85, 86, 87], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 31, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 86, "type": "identifier", "text": "DRONE_NODE_PUBLIC", "parent": 84, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 29}}, {"id": 87, "type": "preproc_arg", "text": "__attribute__ ((visibility(\"default\")))", "parent": 84, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 69}}, {"id": 88, "type": "preproc_def", "text": "#define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n", "parent": 77, "children": [89, 90, 91], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 32, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 90, "type": "identifier", "text": "DRONE_NODE_LOCAL", "parent": 88, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 28}}, {"id": 91, "type": "preproc_arg", "text": "__attribute__ ((visibility(\"hidden\")))", "parent": 88, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 68}}, {"id": 92, "type": "preproc_else", "text": "#else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n", "parent": 77, "children": [93, 94, 97], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 35, "column": 0}}, {"id": 93, "type": "#else", "text": "#else", "parent": 92, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 7}}, {"id": 94, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC\n", "parent": 92, "children": [95, 96], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 34, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 96, "type": "identifier", "text": "DRONE_NODE_PUBLIC", "parent": 94, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 29}}, {"id": 97, "type": "preproc_def", "text": "#define DRONE_NODE_LOCAL\n", "parent": 92, "children": [98, 99], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 35, "column": 0}}, {"id": 98, "type": "#define", "text": "#define", "parent": 97, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 99, "type": "identifier", "text": "DRONE_NODE_LOCAL", "parent": 97, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 28}}, {"id": 100, "type": "#endif", "text": "#endif", "parent": 77, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 101, "type": "preproc_def", "text": "#define DRONE_NODE_PUBLIC_TYPE\n", "parent": 68, "children": [102, 103], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 103, "type": "identifier", "text": "DRONE_NODE_PUBLIC_TYPE", "parent": 101, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 32}}, {"id": 104, "type": "#endif", "text": "#endif", "parent": 14, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 105, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [106, 107, 108], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 18}}, {"id": 106, "type": "#ifdef", "text": "#ifdef", "parent": 105, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 107, "type": "identifier", "text": "__cplusplus", "parent": 105, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 18}}, {"id": 108, "type": "#endif", "text": "", "parent": 105, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 18}}, {"id": 109, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 110, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 79], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 14, 15, 19, 23, 25, 26, 27, 30, 34, 40, 44, 46, 47, 48, 49, 52, 58, 60, 63, 67, 72, 76, 77, 78, 80, 86, 90, 96, 99, 100, 103, 104, 105, 106, 107, 108, 109, 110], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11, 82], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef DRONE_NODE__VISIBILITY_CONTROL_H_\n#define DRONE_NODE__VISIBILITY_CONTROL_H_\n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n// This logic was borrowed (then namespaced) from the examples on the gcc wiki:\n// https://gcc.gnu.org/wiki/Visibility\n\n#if defined _WIN32 || defined __CYGWIN__\n #ifdef __GNUC__\n #define DRONE_NODE_EXPORT __attribute__ ((dllexport))\n #define DRONE_NODE_IMPORT __attribute__ ((dllimport))\n #else\n #define DRONE_NODE_EXPORT __declspec(dllexport)\n #define DRONE_NODE_IMPORT __declspec(dllimport)\n #endif\n #ifdef DRONE_NODE_BUILDING_DLL\n #define DRONE_NODE_PUBLIC DRONE_NODE_EXPORT\n #else\n #define DRONE_NODE_PUBLIC DRONE_NODE_IMPORT\n #endif\n #define DRONE_NODE_PUBLIC_TYPE DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n#else\n #define DRONE_NODE_EXPORT __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_IMPORT\n #if __GNUC__ >= 4\n #define DRONE_NODE_PUBLIC __attribute__ ((visibility(\"default\")))\n #define DRONE_NODE_LOCAL __attribute__ ((visibility(\"hidden\")))\n #else\n #define DRONE_NODE_PUBLIC\n #define DRONE_NODE_LOCAL\n #endif\n #define DRONE_NODE_PUBLIC_TYPE\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // DRONE_NODE__VISIBILITY_CONTROL_H_\n"}
118
c
/* Created (MFS based): * February 2010 (<NAME>) */ #include "fs.h" #include <assert.h> #include <stdarg.h> #include "puffs.h" #include "puffs_priv.h" /*===========================================================================* * no_sys * *===========================================================================*/ int no_sys(void) { /* Somebody has used an illegal system call number */ lpuffs_debug("no_sys: invalid call %d\n", req_nr); return(EINVAL); } /*===========================================================================* * mfs_nul * *===========================================================================*/ void mfs_nul_f(const char *file, int line, char *str, unsigned int len, unsigned int maxlen) { if (len < maxlen && str[len-1] != '\0') { lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n", file, line, len, maxlen); } } /*===========================================================================* * clock_timespec * *===========================================================================*/ struct timespec clock_timespec(void) { /* This routine returns the time in seconds since 1.1.1970. MINIX is an * astrophysically naive system that assumes the earth rotates at a constant * rate and that such things as leap seconds do not exist. */ static long system_hz = 0; register int k; struct timespec tv; clock_t uptime; clock_t realtime; time_t boottime; if (system_hz == 0) system_hz = sys_hz(); if ((k=getuptime(&uptime, &realtime, &boottime)) != OK) panic("clock_timespec: getuptime failed: %d", k); tv.tv_sec = (time_t) (boottime + (realtime/system_hz)); /* We do not want to overflow, and system_hz can be as high as 50kHz */ assert(system_hz < LONG_MAX/40000); tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000; return tv; } /*===========================================================================* * update_timens * *===========================================================================*/ int update_timens(struct puffs_node *pn, int flags, struct timespec *t) { int r; struct vattr va; struct timespec new_time; PUFFS_MAKECRED(pcr, &global_kcred); if (!flags) return 0; if (global_pu->pu_ops.puffs_node_setattr == NULL) return EINVAL; new_time = t != NULL ? *t : clock_timespec(); puffs_vattr_null(&va); /* librefuse modifies atime and mtime together, * so set old values to avoid setting either one * to PUFFS_VNOVAL (set by puffs_vattr_null). */ va.va_atime = pn->pn_va.va_atime; va.va_mtime = pn->pn_va.va_mtime; if (flags & ATIME) va.va_atime = new_time; if (flags & MTIME) va.va_mtime = new_time; if (flags & CTIME) va.va_ctime = new_time; r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr); return(r); } /*===========================================================================* * lpuffs_debug * *===========================================================================*/ void lpuffs_debug(const char *format, ...) { char buffer[256]; va_list args; va_start (args, format); vsprintf (buffer,format, args); printf("%s: %s", fs_name, buffer); va_end (args); }
32.45
100
(translation_unit) "/* Created (MFS based):\n * February 2010 (<NAME>)\n */\n\n#include "fs.h"\n\n#include <assert.h>\n#include <stdarg.h>\n\n#include "puffs.h"\n#include "puffs_priv.h"\n\n\n/*===========================================================================*\n * no_sys *\n *===========================================================================*/\nint no_sys(void)\n{\n/* Somebody has used an illegal system call number */\n lpuffs_debug("no_sys: invalid call %d\n", req_nr);\n return(EINVAL);\n}\n\n\n/*===========================================================================*\n * mfs_nul *\n *===========================================================================*/\nvoid mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)\n{\n if (len < maxlen && str[len-1] != '\0') {\n lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);\n }\n}\n\n\n/*===========================================================================*\n * clock_timespec *\n *===========================================================================*/\nstruct timespec clock_timespec(void)\n{\n/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */\n static long system_hz = 0;\n\n register int k;\n struct timespec tv;\n clock_t uptime;\n clock_t realtime;\n time_t boottime;\n\n if (system_hz == 0) system_hz = sys_hz();\n if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n panic("clock_timespec: getuptime failed: %d", k);\n\n tv.tv_sec = (time_t) (boottime + (realtime/system_hz));\n /* We do not want to overflow, and system_hz can be as high as 50kHz */\n assert(system_hz < LONG_MAX/40000);\n tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;\n return tv;\n}\n\n\n/*===========================================================================*\n * update_timens *\n *===========================================================================*/\nint update_timens(struct puffs_node *pn, int flags, struct timespec *t)\n{\n int r;\n struct vattr va;\n struct timespec new_time;\n PUFFS_MAKECRED(pcr, &global_kcred);\n\n if (!flags)\n return 0;\n\n if (global_pu->pu_ops.puffs_node_setattr == NULL)\n return EINVAL;\n\n new_time = t != NULL ? *t : clock_timespec();\n \n puffs_vattr_null(&va);\n /* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */\n va.va_atime = pn->pn_va.va_atime;\n va.va_mtime = pn->pn_va.va_mtime;\n\n if (flags & ATIME)\n va.va_atime = new_time;\n if (flags & MTIME)\n va.va_mtime = new_time;\n if (flags & CTIME)\n va.va_ctime = new_time;\n\n r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);\n\n return(r);\n}\n\n\n/*===========================================================================*\n * lpuffs_debug *\n *===========================================================================*/\nvoid lpuffs_debug(const char *format, ...)\n{ \n char buffer[256];\n va_list args;\n va_start (args, format);\n vsprintf (buffer,format, args);\n printf("%s: %s", fs_name, buffer);\n va_end (args);\n}\n" (comment) "/* Created (MFS based):\n * February 2010 (<NAME>)\n */" (preproc_include) "#include "fs.h"\n" (#include) "#include" (string_literal) ""fs.h"" (") """ (string_content) "fs.h" (") """ (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <stdarg.h>\n" (#include) "#include" (system_lib_string) "<stdarg.h>" (preproc_include) "#include "puffs.h"\n" (#include) "#include" (string_literal) ""puffs.h"" (") """ (string_content) "puffs.h" (") """ (preproc_include) "#include "puffs_priv.h"\n" (#include) "#include" (string_literal) ""puffs_priv.h"" (") """ (string_content) "puffs_priv.h" (") """ (comment) "/*===========================================================================*\n * no_sys *\n *===========================================================================*/" (function_definition) "int no_sys(void)\n{\n/* Somebody has used an illegal system call number */\n lpuffs_debug("no_sys: invalid call %d\n", req_nr);\n return(EINVAL);\n}" (primitive_type) "int" (function_declarator) "no_sys(void)" (identifier) "no_sys" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n/* Somebody has used an illegal system call number */\n lpuffs_debug("no_sys: invalid call %d\n", req_nr);\n return(EINVAL);\n}" ({) "{" (comment) "/* Somebody has used an illegal system call number */" (expression_statement) "lpuffs_debug("no_sys: invalid call %d\n", req_nr);" (call_expression) "lpuffs_debug("no_sys: invalid call %d\n", req_nr)" (identifier) "lpuffs_debug" (argument_list) "("no_sys: invalid call %d\n", req_nr)" (() "(" (string_literal) ""no_sys: invalid call %d\n"" (") """ (string_content) "no_sys: invalid call %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "req_nr" ()) ")" (;) ";" (return_statement) "return(EINVAL);" (return) "return" (parenthesized_expression) "(EINVAL)" (() "(" (identifier) "EINVAL" ()) ")" (;) ";" (}) "}" (comment) "/*===========================================================================*\n * mfs_nul *\n *===========================================================================*/" (function_definition) "void mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)\n{\n if (len < maxlen && str[len-1] != '\0') {\n lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);\n }\n}" (primitive_type) "void" (function_declarator) "mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)" (identifier) "mfs_nul_f" (parameter_list) "(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)" (() "(" (parameter_declaration) "const char *file" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*file" (*) "*" (identifier) "file" (,) "," (parameter_declaration) "int line" (primitive_type) "int" (identifier) "line" (,) "," (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "unsigned int len" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "len" (,) "," (parameter_declaration) "unsigned int maxlen" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "maxlen" ()) ")" (compound_statement) "{\n if (len < maxlen && str[len-1] != '\0') {\n lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);\n }\n}" ({) "{" (if_statement) "if (len < maxlen && str[len-1] != '\0') {\n lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);\n }" (if) "if" (parenthesized_expression) "(len < maxlen && str[len-1] != '\0')" (() "(" (binary_expression) "len < maxlen && str[len-1] != '\0'" (binary_expression) "len < maxlen" (identifier) "len" (<) "<" (identifier) "maxlen" (&&) "&&" (binary_expression) "str[len-1] != '\0'" (subscript_expression) "str[len-1]" (identifier) "str" ([) "[" (binary_expression) "len-1" (identifier) "len" (-) "-" (number_literal) "1" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" ()) ")" (compound_statement) "{\n lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);\n }" ({) "{" (expression_statement) "lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen);" (call_expression) "lpuffs_debug("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen)" (identifier) "lpuffs_debug" (argument_list) "("%s:%d string (length %d,maxlen %d) not null-terminated\n",\n file, line, len, maxlen)" (() "(" (string_literal) ""%s:%d string (length %d,maxlen %d) not null-terminated\n"" (") """ (string_content) "%s:%d string (length %d,maxlen %d) not null-terminated" (escape_sequence) "\n" (") """ (,) "," (identifier) "file" (,) "," (identifier) "line" (,) "," (identifier) "len" (,) "," (identifier) "maxlen" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "/*===========================================================================*\n * clock_timespec *\n *===========================================================================*/" (function_definition) "struct timespec clock_timespec(void)\n{\n/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */\n static long system_hz = 0;\n\n register int k;\n struct timespec tv;\n clock_t uptime;\n clock_t realtime;\n time_t boottime;\n\n if (system_hz == 0) system_hz = sys_hz();\n if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n panic("clock_timespec: getuptime failed: %d", k);\n\n tv.tv_sec = (time_t) (boottime + (realtime/system_hz));\n /* We do not want to overflow, and system_hz can be as high as 50kHz */\n assert(system_hz < LONG_MAX/40000);\n tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;\n return tv;\n}" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (function_declarator) "clock_timespec(void)" (identifier) "clock_timespec" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */\n static long system_hz = 0;\n\n register int k;\n struct timespec tv;\n clock_t uptime;\n clock_t realtime;\n time_t boottime;\n\n if (system_hz == 0) system_hz = sys_hz();\n if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n panic("clock_timespec: getuptime failed: %d", k);\n\n tv.tv_sec = (time_t) (boottime + (realtime/system_hz));\n /* We do not want to overflow, and system_hz can be as high as 50kHz */\n assert(system_hz < LONG_MAX/40000);\n tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;\n return tv;\n}" ({) "{" (comment) "/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */" (declaration) "static long system_hz = 0;" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "long" (long) "long" (init_declarator) "system_hz = 0" (identifier) "system_hz" (=) "=" (number_literal) "0" (;) ";" (declaration) "register int k;" (storage_class_specifier) "register" (register) "register" (primitive_type) "int" (identifier) "k" (;) ";" (declaration) "struct timespec tv;" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "tv" (;) ";" (declaration) "clock_t uptime;" (type_identifier) "clock_t" (identifier) "uptime" (;) ";" (declaration) "clock_t realtime;" (type_identifier) "clock_t" (identifier) "realtime" (;) ";" (declaration) "time_t boottime;" (type_identifier) "time_t" (identifier) "boottime" (;) ";" (if_statement) "if (system_hz == 0) system_hz = sys_hz();" (if) "if" (parenthesized_expression) "(system_hz == 0)" (() "(" (binary_expression) "system_hz == 0" (identifier) "system_hz" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "system_hz = sys_hz();" (assignment_expression) "system_hz = sys_hz()" (identifier) "system_hz" (=) "=" (call_expression) "sys_hz()" (identifier) "sys_hz" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n panic("clock_timespec: getuptime failed: %d", k);" (if) "if" (parenthesized_expression) "((k=getuptime(&uptime, &realtime, &boottime)) != OK)" (() "(" (binary_expression) "(k=getuptime(&uptime, &realtime, &boottime)) != OK" (parenthesized_expression) "(k=getuptime(&uptime, &realtime, &boottime))" (() "(" (assignment_expression) "k=getuptime(&uptime, &realtime, &boottime)" (identifier) "k" (=) "=" (call_expression) "getuptime(&uptime, &realtime, &boottime)" (identifier) "getuptime" (argument_list) "(&uptime, &realtime, &boottime)" (() "(" (pointer_expression) "&uptime" (&) "&" (identifier) "uptime" (,) "," (pointer_expression) "&realtime" (&) "&" (identifier) "realtime" (,) "," (pointer_expression) "&boottime" (&) "&" (identifier) "boottime" ()) ")" ()) ")" (!=) "!=" (identifier) "OK" ()) ")" (expression_statement) "panic("clock_timespec: getuptime failed: %d", k);" (call_expression) "panic("clock_timespec: getuptime failed: %d", k)" (identifier) "panic" (argument_list) "("clock_timespec: getuptime failed: %d", k)" (() "(" (string_literal) ""clock_timespec: getuptime failed: %d"" (") """ (string_content) "clock_timespec: getuptime failed: %d" (") """ (,) "," (identifier) "k" ()) ")" (;) ";" (expression_statement) "tv.tv_sec = (time_t) (boottime + (realtime/system_hz));" (assignment_expression) "tv.tv_sec = (time_t) (boottime + (realtime/system_hz))" (field_expression) "tv.tv_sec" (identifier) "tv" (.) "." (field_identifier) "tv_sec" (=) "=" (call_expression) "(time_t) (boottime + (realtime/system_hz))" (parenthesized_expression) "(time_t)" (() "(" (identifier) "time_t" ()) ")" (argument_list) "(boottime + (realtime/system_hz))" (() "(" (binary_expression) "boottime + (realtime/system_hz)" (identifier) "boottime" (+) "+" (parenthesized_expression) "(realtime/system_hz)" (() "(" (binary_expression) "realtime/system_hz" (identifier) "realtime" (/) "/" (identifier) "system_hz" ()) ")" ()) ")" (;) ";" (comment) "/* We do not want to overflow, and system_hz can be as high as 50kHz */" (expression_statement) "assert(system_hz < LONG_MAX/40000);" (call_expression) "assert(system_hz < LONG_MAX/40000)" (identifier) "assert" (argument_list) "(system_hz < LONG_MAX/40000)" (() "(" (binary_expression) "system_hz < LONG_MAX/40000" (identifier) "system_hz" (<) "<" (binary_expression) "LONG_MAX/40000" (identifier) "LONG_MAX" (/) "/" (number_literal) "40000" ()) ")" (;) ";" (expression_statement) "tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;" (assignment_expression) "tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000" (field_expression) "tv.tv_nsec" (identifier) "tv" (.) "." (field_identifier) "tv_nsec" (=) "=" (binary_expression) "(realtime%system_hz) * 40000 / system_hz * 25000" (binary_expression) "(realtime%system_hz) * 40000 / system_hz" (binary_expression) "(realtime%system_hz) * 40000" (parenthesized_expression) "(realtime%system_hz)" (() "(" (binary_expression) "realtime%system_hz" (identifier) "realtime" (%) "%" (identifier) "system_hz" ()) ")" (*) "*" (number_literal) "40000" (/) "/" (identifier) "system_hz" (*) "*" (number_literal) "25000" (;) ";" (return_statement) "return tv;" (return) "return" (identifier) "tv" (;) ";" (}) "}" (comment) "/*===========================================================================*\n * update_timens *\n *===========================================================================*/" (function_definition) "int update_timens(struct puffs_node *pn, int flags, struct timespec *t)\n{\n int r;\n struct vattr va;\n struct timespec new_time;\n PUFFS_MAKECRED(pcr, &global_kcred);\n\n if (!flags)\n return 0;\n\n if (global_pu->pu_ops.puffs_node_setattr == NULL)\n return EINVAL;\n\n new_time = t != NULL ? *t : clock_timespec();\n \n puffs_vattr_null(&va);\n /* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */\n va.va_atime = pn->pn_va.va_atime;\n va.va_mtime = pn->pn_va.va_mtime;\n\n if (flags & ATIME)\n va.va_atime = new_time;\n if (flags & MTIME)\n va.va_mtime = new_time;\n if (flags & CTIME)\n va.va_ctime = new_time;\n\n r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);\n\n return(r);\n}" (primitive_type) "int" (function_declarator) "update_timens(struct puffs_node *pn, int flags, struct timespec *t)" (identifier) "update_timens" (parameter_list) "(struct puffs_node *pn, int flags, struct timespec *t)" (() "(" (parameter_declaration) "struct puffs_node *pn" (struct_specifier) "struct puffs_node" (struct) "struct" (type_identifier) "puffs_node" (pointer_declarator) "*pn" (*) "*" (identifier) "pn" (,) "," (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" (,) "," (parameter_declaration) "struct timespec *t" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n int r;\n struct vattr va;\n struct timespec new_time;\n PUFFS_MAKECRED(pcr, &global_kcred);\n\n if (!flags)\n return 0;\n\n if (global_pu->pu_ops.puffs_node_setattr == NULL)\n return EINVAL;\n\n new_time = t != NULL ? *t : clock_timespec();\n \n puffs_vattr_null(&va);\n /* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */\n va.va_atime = pn->pn_va.va_atime;\n va.va_mtime = pn->pn_va.va_mtime;\n\n if (flags & ATIME)\n va.va_atime = new_time;\n if (flags & MTIME)\n va.va_mtime = new_time;\n if (flags & CTIME)\n va.va_ctime = new_time;\n\n r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);\n\n return(r);\n}" ({) "{" (declaration) "int r;" (primitive_type) "int" (identifier) "r" (;) ";" (declaration) "struct vattr va;" (struct_specifier) "struct vattr" (struct) "struct" (type_identifier) "vattr" (identifier) "va" (;) ";" (declaration) "struct timespec new_time;" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "new_time" (;) ";" (expression_statement) "PUFFS_MAKECRED(pcr, &global_kcred);" (call_expression) "PUFFS_MAKECRED(pcr, &global_kcred)" (identifier) "PUFFS_MAKECRED" (argument_list) "(pcr, &global_kcred)" (() "(" (identifier) "pcr" (,) "," (pointer_expression) "&global_kcred" (&) "&" (identifier) "global_kcred" ()) ")" (;) ";" (if_statement) "if (!flags)\n return 0;" (if) "if" (parenthesized_expression) "(!flags)" (() "(" (unary_expression) "!flags" (!) "!" (identifier) "flags" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if (global_pu->pu_ops.puffs_node_setattr == NULL)\n return EINVAL;" (if) "if" (parenthesized_expression) "(global_pu->pu_ops.puffs_node_setattr == NULL)" (() "(" (binary_expression) "global_pu->pu_ops.puffs_node_setattr == NULL" (field_expression) "global_pu->pu_ops.puffs_node_setattr" (field_expression) "global_pu->pu_ops" (identifier) "global_pu" (->) "->" (field_identifier) "pu_ops" (.) "." (field_identifier) "puffs_node_setattr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return EINVAL;" (return) "return" (identifier) "EINVAL" (;) ";" (expression_statement) "new_time = t != NULL ? *t : clock_timespec();" (assignment_expression) "new_time = t != NULL ? *t : clock_timespec()" (identifier) "new_time" (=) "=" (conditional_expression) "t != NULL ? *t : clock_timespec()" (binary_expression) "t != NULL" (identifier) "t" (!=) "!=" (null) "NULL" (NULL) "NULL" (?) "?" (pointer_expression) "*t" (*) "*" (identifier) "t" (:) ":" (call_expression) "clock_timespec()" (identifier) "clock_timespec" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "puffs_vattr_null(&va);" (call_expression) "puffs_vattr_null(&va)" (identifier) "puffs_vattr_null" (argument_list) "(&va)" (() "(" (pointer_expression) "&va" (&) "&" (identifier) "va" ()) ")" (;) ";" (comment) "/* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */" (expression_statement) "va.va_atime = pn->pn_va.va_atime;" (assignment_expression) "va.va_atime = pn->pn_va.va_atime" (field_expression) "va.va_atime" (identifier) "va" (.) "." (field_identifier) "va_atime" (=) "=" (field_expression) "pn->pn_va.va_atime" (field_expression) "pn->pn_va" (identifier) "pn" (->) "->" (field_identifier) "pn_va" (.) "." (field_identifier) "va_atime" (;) ";" (expression_statement) "va.va_mtime = pn->pn_va.va_mtime;" (assignment_expression) "va.va_mtime = pn->pn_va.va_mtime" (field_expression) "va.va_mtime" (identifier) "va" (.) "." (field_identifier) "va_mtime" (=) "=" (field_expression) "pn->pn_va.va_mtime" (field_expression) "pn->pn_va" (identifier) "pn" (->) "->" (field_identifier) "pn_va" (.) "." (field_identifier) "va_mtime" (;) ";" (if_statement) "if (flags & ATIME)\n va.va_atime = new_time;" (if) "if" (parenthesized_expression) "(flags & ATIME)" (() "(" (binary_expression) "flags & ATIME" (identifier) "flags" (&) "&" (identifier) "ATIME" ()) ")" (expression_statement) "va.va_atime = new_time;" (assignment_expression) "va.va_atime = new_time" (field_expression) "va.va_atime" (identifier) "va" (.) "." (field_identifier) "va_atime" (=) "=" (identifier) "new_time" (;) ";" (if_statement) "if (flags & MTIME)\n va.va_mtime = new_time;" (if) "if" (parenthesized_expression) "(flags & MTIME)" (() "(" (binary_expression) "flags & MTIME" (identifier) "flags" (&) "&" (identifier) "MTIME" ()) ")" (expression_statement) "va.va_mtime = new_time;" (assignment_expression) "va.va_mtime = new_time" (field_expression) "va.va_mtime" (identifier) "va" (.) "." (field_identifier) "va_mtime" (=) "=" (identifier) "new_time" (;) ";" (if_statement) "if (flags & CTIME)\n va.va_ctime = new_time;" (if) "if" (parenthesized_expression) "(flags & CTIME)" (() "(" (binary_expression) "flags & CTIME" (identifier) "flags" (&) "&" (identifier) "CTIME" ()) ")" (expression_statement) "va.va_ctime = new_time;" (assignment_expression) "va.va_ctime = new_time" (field_expression) "va.va_ctime" (identifier) "va" (.) "." (field_identifier) "va_ctime" (=) "=" (identifier) "new_time" (;) ";" (expression_statement) "r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);" (assignment_expression) "r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr)" (identifier) "r" (=) "=" (call_expression) "global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr)" (field_expression) "global_pu->pu_ops.puffs_node_setattr" (field_expression) "global_pu->pu_ops" (identifier) "global_pu" (->) "->" (field_identifier) "pu_ops" (.) "." (field_identifier) "puffs_node_setattr" (argument_list) "(global_pu, pn, &va, pcr)" (() "(" (identifier) "global_pu" (,) "," (identifier) "pn" (,) "," (pointer_expression) "&va" (&) "&" (identifier) "va" (,) "," (identifier) "pcr" ()) ")" (;) ";" (return_statement) "return(r);" (return) "return" (parenthesized_expression) "(r)" (() "(" (identifier) "r" ()) ")" (;) ";" (}) "}" (comment) "/*===========================================================================*\n * lpuffs_debug *\n *===========================================================================*/" (function_definition) "void lpuffs_debug(const char *format, ...)\n{ \n char buffer[256];\n va_list args;\n va_start (args, format);\n vsprintf (buffer,format, args);\n printf("%s: %s", fs_name, buffer);\n va_end (args);\n}" (primitive_type) "void" (function_declarator) "lpuffs_debug(const char *format, ...)" (identifier) "lpuffs_debug" (parameter_list) "(const char *format, ...)" (() "(" (parameter_declaration) "const char *format" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*format" (*) "*" (identifier) "format" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{ \n char buffer[256];\n va_list args;\n va_start (args, format);\n vsprintf (buffer,format, args);\n printf("%s: %s", fs_name, buffer);\n va_end (args);\n}" ({) "{" (declaration) "char buffer[256];" (primitive_type) "char" (array_declarator) "buffer[256]" (identifier) "buffer" ([) "[" (number_literal) "256" (]) "]" (;) ";" (declaration) "va_list args;" (type_identifier) "va_list" (identifier) "args" (;) ";" (expression_statement) "va_start (args, format);" (call_expression) "va_start (args, format)" (identifier) "va_start" (argument_list) "(args, format)" (() "(" (identifier) "args" (,) "," (identifier) "format" ()) ")" (;) ";" (expression_statement) "vsprintf (buffer,format, args);" (call_expression) "vsprintf (buffer,format, args)" (identifier) "vsprintf" (argument_list) "(buffer,format, args)" (() "(" (identifier) "buffer" (,) "," (identifier) "format" (,) "," (identifier) "args" ()) ")" (;) ";" (expression_statement) "printf("%s: %s", fs_name, buffer);" (call_expression) "printf("%s: %s", fs_name, buffer)" (identifier) "printf" (argument_list) "("%s: %s", fs_name, buffer)" (() "(" (string_literal) ""%s: %s"" (") """ (string_content) "%s: %s" (") """ (,) "," (identifier) "fs_name" (,) "," (identifier) "buffer" ()) ")" (;) ";" (expression_statement) "va_end (args);" (call_expression) "va_end (args)" (identifier) "va_end" (argument_list) "(args)" (() "(" (identifier) "args" ()) ")" (;) ";" (}) "}"
646
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 32.45, "nodes": 398, "errors": 0, "source_hash": "60b0de8f64d57f29e404aa322f7814e1bdae0b63221105c5ae3e3daf30c99339", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"fs.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": "string_literal", "text": "\"fs.h\"", "parent": 0, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<assert.h>", "parent": 3, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdarg.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdarg.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"puffs.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"puffs.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"puffs_priv.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"puffs_priv.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 15, "type": "function_definition", "text": "int no_sys(void)\n{\n/* Somebody has used an illegal system call number */\n lpuffs_debug(\"no_sys: invalid call %d\\n\", req_nr);\n return(EINVAL);\n}", "parent": null, "children": [16, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 3}}, {"id": 17, "type": "function_declarator", "text": "no_sys(void)", "parent": 15, "children": [18, 19], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 18, "type": "identifier", "text": "no_sys", "parent": 17, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 19, "type": "parameter_list", "text": "(void)", "parent": 17, "children": [20], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 16}}, {"id": 20, "type": "parameter_declaration", "text": "void", "parent": 19, "children": [21], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 22, "type": "call_expression", "text": "lpuffs_debug(\"no_sys: invalid call %d\\n\", req_nr)", "parent": 15, "children": [23, 24], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 51}}, {"id": 23, "type": "identifier", "text": "lpuffs_debug", "parent": 22, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 14}}, {"id": 24, "type": "argument_list", "text": "(\"no_sys: invalid call %d\\n\", req_nr)", "parent": 22, "children": [25, 27], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 51}}, {"id": 25, "type": "string_literal", "text": "\"no_sys: invalid call %d\\n\"", "parent": 24, "children": [26], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 42}}, {"id": 26, "type": "escape_sequence", "text": "\\n", "parent": 25, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 41}}, {"id": 27, "type": "identifier", "text": "req_nr", "parent": 24, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 50}}, {"id": 28, "type": "return_statement", "text": "return(EINVAL);", "parent": 15, "children": [29], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 17}}, {"id": 29, "type": "parenthesized_expression", "text": "(EINVAL)", "parent": 28, "children": [30], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 30, "type": "identifier", "text": "EINVAL", "parent": 29, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 15}}, {"id": 31, "type": "function_definition", "text": "void mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)\n{\n if (len < maxlen && str[len-1] != '\\0') {\n\tlpuffs_debug(\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\",\n file, line, len, maxlen);\n }\n}", "parent": null, "children": [32, 33], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 32, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 33, "type": "function_declarator", "text": "mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)", "parent": 31, "children": [34, 35], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 28, "column": 42}}, {"id": 34, "type": "identifier", "text": "mfs_nul_f", "parent": 33, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 14}}, {"id": 35, "type": "parameter_list", "text": "(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)", "parent": 33, "children": [36, 41, 44, 49, 54], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 28, "column": 42}}, {"id": 36, "type": "parameter_declaration", "text": "const char *file", "parent": 35, "children": [37, 38], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 31}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 38, "type": "pointer_declarator", "text": "*file", "parent": 36, "children": [39, 40], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 31}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 40, "type": "identifier", "text": "file", "parent": 38, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 31}}, {"id": 41, "type": "parameter_declaration", "text": "int line", "parent": 35, "children": [42, 43], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 41}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 36}}, {"id": 43, "type": "identifier", "text": "line", "parent": 41, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 41}}, {"id": 44, "type": "parameter_declaration", "text": "char *str", "parent": 35, "children": [45, 46], "start_point": {"row": 27, "column": 43}, "end_point": {"row": 27, "column": 52}}, {"id": 45, "type": "primitive_type", "text": "char", "parent": 44, "children": [], "start_point": {"row": 27, "column": 43}, "end_point": {"row": 27, "column": 47}}, {"id": 46, "type": "pointer_declarator", "text": "*str", "parent": 44, "children": [47, 48], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 27, "column": 52}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 27, "column": 49}}, {"id": 48, "type": "identifier", "text": "str", "parent": 46, "children": [], "start_point": {"row": 27, "column": 49}, "end_point": {"row": 27, "column": 52}}, {"id": 49, "type": "parameter_declaration", "text": "unsigned int len", "parent": 35, "children": [50, 53], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 70}}, {"id": 50, "type": "sized_type_specifier", "text": "unsigned int", "parent": 49, "children": [51, 52], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 66}}, {"id": 51, "type": "unsigned", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 62}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 27, "column": 63}, "end_point": {"row": 27, "column": 66}}, {"id": 53, "type": "identifier", "text": "len", "parent": 49, "children": [], "start_point": {"row": 27, "column": 67}, "end_point": {"row": 27, "column": 70}}, {"id": 54, "type": "parameter_declaration", "text": "unsigned int maxlen", "parent": 35, "children": [55, 58], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 41}}, {"id": 55, "type": "sized_type_specifier", "text": "unsigned int", "parent": 54, "children": [56, 57], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 34}}, {"id": 56, "type": "unsigned", "text": "unsigned", "parent": 55, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 30}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 34}}, {"id": 58, "type": "identifier", "text": "maxlen", "parent": 54, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 41}}, {"id": 59, "type": "if_statement", "text": "if (len < maxlen && str[len-1] != '\\0') {\n\tlpuffs_debug(\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\",\n file, line, len, maxlen);\n }", "parent": 31, "children": [60], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 33, "column": 3}}, {"id": 60, "type": "parenthesized_expression", "text": "(len < maxlen && str[len-1] != '\\0')", "parent": 59, "children": [61], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 41}}, {"id": 61, "type": "binary_expression", "text": "len < maxlen && str[len-1] != '\\0'", "parent": 60, "children": [62, 66, 67], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 40}}, {"id": 62, "type": "binary_expression", "text": "len < maxlen", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 18}}, {"id": 63, "type": "identifier", "text": "len", "parent": 62, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 9}}, {"id": 64, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 11}}, {"id": 65, "type": "identifier", "text": "maxlen", "parent": 62, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 18}}, {"id": 66, "type": "&&", "text": "&&", "parent": 61, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 21}}, {"id": 67, "type": "binary_expression", "text": "str[len-1] != '\\0'", "parent": 61, "children": [68, 74, 75], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 40}}, {"id": 68, "type": "subscript_expression", "text": "str[len-1]", "parent": 67, "children": [69, 70], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 32}}, {"id": 69, "type": "identifier", "text": "str", "parent": 68, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 25}}, {"id": 70, "type": "binary_expression", "text": "len-1", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 31}}, {"id": 71, "type": "identifier", "text": "len", "parent": 70, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 29}}, {"id": 72, "type": "-", "text": "-", "parent": 70, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 30}}, {"id": 73, "type": "number_literal", "text": "1", "parent": 70, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 31}}, {"id": 74, "type": "!=", "text": "!=", "parent": 67, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 35}}, {"id": 75, "type": "char_literal", "text": "'\\0'", "parent": 67, "children": [76, 77, 78], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 40}}, {"id": 76, "type": "'", "text": "'", "parent": 75, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 77, "type": "escape_sequence", "text": "\\0", "parent": 75, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 39}}, {"id": 78, "type": "'", "text": "'", "parent": 75, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 40}}, {"id": 79, "type": "call_expression", "text": "lpuffs_debug(\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\",\n file, line, len, maxlen)", "parent": 59, "children": [80, 81], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 32, "column": 40}}, {"id": 80, "type": "identifier", "text": "lpuffs_debug", "parent": 79, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 13}}, {"id": 81, "type": "argument_list", "text": "(\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\",\n file, line, len, maxlen)", "parent": 79, "children": [82, 84, 85, 86, 87], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 32, "column": 40}}, {"id": 82, "type": "string_literal", "text": "\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\"", "parent": 81, "children": [83], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 72}}, {"id": 83, "type": "escape_sequence", "text": "\\n", "parent": 82, "children": [], "start_point": {"row": 31, "column": 69}, "end_point": {"row": 31, "column": 71}}, {"id": 84, "type": "identifier", "text": "file", "parent": 81, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 20}}, {"id": 85, "type": "identifier", "text": "line", "parent": 81, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}, {"id": 86, "type": "identifier", "text": "len", "parent": 81, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 31}}, {"id": 87, "type": "identifier", "text": "maxlen", "parent": 81, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 39}}, {"id": 88, "type": "function_definition", "text": "struct timespec clock_timespec(void)\n{\n/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */\n static long system_hz = 0;\n\n register int k;\n struct timespec tv;\n clock_t uptime;\n clock_t realtime;\n time_t boottime;\n\n if (system_hz == 0) system_hz = sys_hz();\n if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n\tpanic(\"clock_timespec: getuptime failed: %d\", k);\n\n tv.tv_sec = (time_t) (boottime + (realtime/system_hz));\n /* We do not want to overflow, and system_hz can be as high as 50kHz */\n assert(system_hz < LONG_MAX/40000);\n tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;\n return tv;\n}", "parent": null, "children": [89, 92], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 89, "type": "struct_specifier", "text": "struct timespec", "parent": 88, "children": [90, 91], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 15}}, {"id": 90, "type": "struct", "text": "struct", "parent": 89, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}, {"id": 91, "type": "type_identifier", "text": "timespec", "parent": 89, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 15}}, {"id": 92, "type": "function_declarator", "text": "clock_timespec(void)", "parent": 88, "children": [93, 94], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 36}}, {"id": 93, "type": "identifier", "text": "clock_timespec", "parent": 92, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 30}}, {"id": 94, "type": "parameter_list", "text": "(void)", "parent": 92, "children": [95], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 36}}, {"id": 95, "type": "parameter_declaration", "text": "void", "parent": 94, "children": [96], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 35}}, {"id": 96, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 35}}, {"id": 97, "type": "declaration", "text": "static long system_hz = 0;", "parent": 88, "children": [98, 100], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 28}}, {"id": 98, "type": "sized_type_specifier", "text": "long", "parent": 97, "children": [99], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 99, "type": "long", "text": "long", "parent": 98, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 100, "type": "init_declarator", "text": "system_hz = 0", "parent": 97, "children": [101, 102, 103], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 27}}, {"id": 101, "type": "identifier", "text": "system_hz", "parent": 100, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 23}}, {"id": 102, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 25}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 100, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 27}}, {"id": 104, "type": "declaration", "text": "register int k;", "parent": 88, "children": [105, 107, 108], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 17}}, {"id": 105, "type": "storage_class_specifier", "text": "register", "parent": 104, "children": [106], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 106, "type": "register", "text": "register", "parent": 105, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 107, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 14}}, {"id": 108, "type": "identifier", "text": "k", "parent": 104, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 109, "type": "declaration", "text": "struct timespec tv;", "parent": 88, "children": [110, 113], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 21}}, {"id": 110, "type": "struct_specifier", "text": "struct timespec", "parent": 109, "children": [111, 112], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 17}}, {"id": 111, "type": "struct", "text": "struct", "parent": 110, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 8}}, {"id": 112, "type": "type_identifier", "text": "timespec", "parent": 110, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 17}}, {"id": 113, "type": "identifier", "text": "tv", "parent": 109, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 20}}, {"id": 114, "type": "declaration", "text": "clock_t uptime;", "parent": 88, "children": [115, 116], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 17}}, {"id": 115, "type": "type_identifier", "text": "clock_t", "parent": 114, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 116, "type": "identifier", "text": "uptime", "parent": 114, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 16}}, {"id": 117, "type": "declaration", "text": "clock_t realtime;", "parent": 88, "children": [118, 119], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 19}}, {"id": 118, "type": "type_identifier", "text": "clock_t", "parent": 117, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 9}}, {"id": 119, "type": "identifier", "text": "realtime", "parent": 117, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 18}}, {"id": 120, "type": "declaration", "text": "time_t boottime;", "parent": 88, "children": [121, 122], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 18}}, {"id": 121, "type": "type_identifier", "text": "time_t", "parent": 120, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 8}}, {"id": 122, "type": "identifier", "text": "boottime", "parent": 120, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 17}}, {"id": 123, "type": "if_statement", "text": "if (system_hz == 0) system_hz = sys_hz();", "parent": 88, "children": [124], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 43}}, {"id": 124, "type": "parenthesized_expression", "text": "(system_hz == 0)", "parent": 123, "children": [125], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 21}}, {"id": 125, "type": "binary_expression", "text": "system_hz == 0", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 20}}, {"id": 126, "type": "identifier", "text": "system_hz", "parent": 125, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 15}}, {"id": 127, "type": "==", "text": "==", "parent": 125, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 18}}, {"id": 128, "type": "number_literal", "text": "0", "parent": 125, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 129, "type": "assignment_expression", "text": "system_hz = sys_hz()", "parent": 123, "children": [130, 131, 132], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 42}}, {"id": 130, "type": "identifier", "text": "system_hz", "parent": 129, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 31}}, {"id": 131, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 33}}, {"id": 132, "type": "call_expression", "text": "sys_hz()", "parent": 129, "children": [133, 134], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 42}}, {"id": 133, "type": "identifier", "text": "sys_hz", "parent": 132, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 40}}, {"id": 134, "type": "argument_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 42}}, {"id": 135, "type": "if_statement", "text": "if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n\tpanic(\"clock_timespec: getuptime failed: %d\", k);", "parent": 88, "children": [136], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 56, "column": 50}}, {"id": 136, "type": "parenthesized_expression", "text": "((k=getuptime(&uptime, &realtime, &boottime)) != OK)", "parent": 135, "children": [137], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 57}}, {"id": 137, "type": "binary_expression", "text": "(k=getuptime(&uptime, &realtime, &boottime)) != OK", "parent": 136, "children": [138, 151, 152], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 56}}, {"id": 138, "type": "parenthesized_expression", "text": "(k=getuptime(&uptime, &realtime, &boottime))", "parent": 137, "children": [139], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 50}}, {"id": 139, "type": "assignment_expression", "text": "k=getuptime(&uptime, &realtime, &boottime)", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 49}}, {"id": 140, "type": "identifier", "text": "k", "parent": 139, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 8}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 142, "type": "call_expression", "text": "getuptime(&uptime, &realtime, &boottime)", "parent": 139, "children": [143, 144], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 49}}, {"id": 143, "type": "identifier", "text": "getuptime", "parent": 142, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 18}}, {"id": 144, "type": "argument_list", "text": "(&uptime, &realtime, &boottime)", "parent": 142, "children": [145, 147, 149], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 49}}, {"id": 145, "type": "pointer_expression", "text": "&uptime", "parent": 144, "children": [146], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 26}}, {"id": 146, "type": "identifier", "text": "uptime", "parent": 145, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 26}}, {"id": 147, "type": "pointer_expression", "text": "&realtime", "parent": 144, "children": [148], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 37}}, {"id": 148, "type": "identifier", "text": "realtime", "parent": 147, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 37}}, {"id": 149, "type": "pointer_expression", "text": "&boottime", "parent": 144, "children": [150], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 48}}, {"id": 150, "type": "identifier", "text": "boottime", "parent": 149, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 48}}, {"id": 151, "type": "!=", "text": "!=", "parent": 137, "children": [], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 53}}, {"id": 152, "type": "identifier", "text": "OK", "parent": 137, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 56}}, {"id": 153, "type": "call_expression", "text": "panic(\"clock_timespec: getuptime failed: %d\", k)", "parent": 135, "children": [154, 155], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 49}}, {"id": 154, "type": "identifier", "text": "panic", "parent": 153, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 6}}, {"id": 155, "type": "argument_list", "text": "(\"clock_timespec: getuptime failed: %d\", k)", "parent": 153, "children": [156, 157], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 49}}, {"id": 156, "type": "string_literal", "text": "\"clock_timespec: getuptime failed: %d\"", "parent": 155, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 45}}, {"id": 157, "type": "identifier", "text": "k", "parent": 155, "children": [], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 48}}, {"id": 158, "type": "assignment_expression", "text": "tv.tv_sec = (time_t) (boottime + (realtime/system_hz))", "parent": 88, "children": [159, 162, 163], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 56}}, {"id": 159, "type": "field_expression", "text": "tv.tv_sec", "parent": 158, "children": [160, 161], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 11}}, {"id": 160, "type": "identifier", "text": "tv", "parent": 159, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 4}}, {"id": 161, "type": "field_identifier", "text": "tv_sec", "parent": 159, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 11}}, {"id": 162, "type": "=", "text": "=", "parent": 158, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 163, "type": "call_expression", "text": "(time_t) (boottime + (realtime/system_hz))", "parent": 158, "children": [164, 166], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 56}}, {"id": 164, "type": "parenthesized_expression", "text": "(time_t)", "parent": 163, "children": [165], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 22}}, {"id": 165, "type": "identifier", "text": "time_t", "parent": 164, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 21}}, {"id": 166, "type": "argument_list", "text": "(boottime + (realtime/system_hz))", "parent": 163, "children": [167], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 56}}, {"id": 167, "type": "binary_expression", "text": "boottime + (realtime/system_hz)", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 55}}, {"id": 168, "type": "identifier", "text": "boottime", "parent": 167, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 32}}, {"id": 169, "type": "+", "text": "+", "parent": 167, "children": [], "start_point": {"row": 58, "column": 33}, "end_point": {"row": 58, "column": 34}}, {"id": 170, "type": "parenthesized_expression", "text": "(realtime/system_hz)", "parent": 167, "children": [171], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 55}}, {"id": 171, "type": "binary_expression", "text": "realtime/system_hz", "parent": 170, "children": [172, 173, 174], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 54}}, {"id": 172, "type": "identifier", "text": "realtime", "parent": 171, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 44}}, {"id": 173, "type": "/", "text": "/", "parent": 171, "children": [], "start_point": {"row": 58, "column": 44}, "end_point": {"row": 58, "column": 45}}, {"id": 174, "type": "identifier", "text": "system_hz", "parent": 171, "children": [], "start_point": {"row": 58, "column": 45}, "end_point": {"row": 58, "column": 54}}, {"id": 175, "type": "call_expression", "text": "assert(system_hz < LONG_MAX/40000)", "parent": 88, "children": [176, 177], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 36}}, {"id": 176, "type": "identifier", "text": "assert", "parent": 175, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 8}}, {"id": 177, "type": "argument_list", "text": "(system_hz < LONG_MAX/40000)", "parent": 175, "children": [178], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 36}}, {"id": 178, "type": "binary_expression", "text": "system_hz < LONG_MAX/40000", "parent": 177, "children": [179, 180, 181], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 35}}, {"id": 179, "type": "identifier", "text": "system_hz", "parent": 178, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 18}}, {"id": 180, "type": "<", "text": "<", "parent": 178, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 181, "type": "binary_expression", "text": "LONG_MAX/40000", "parent": 178, "children": [182, 183, 184], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 35}}, {"id": 182, "type": "identifier", "text": "LONG_MAX", "parent": 181, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 29}}, {"id": 183, "type": "/", "text": "/", "parent": 181, "children": [], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 30}}, {"id": 184, "type": "number_literal", "text": "40000", "parent": 181, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 35}}, {"id": 185, "type": "assignment_expression", "text": "tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000", "parent": 88, "children": [186, 189, 190], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 63}}, {"id": 186, "type": "field_expression", "text": "tv.tv_nsec", "parent": 185, "children": [187, 188], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 12}}, {"id": 187, "type": "identifier", "text": "tv", "parent": 186, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 4}}, {"id": 188, "type": "field_identifier", "text": "tv_nsec", "parent": 186, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 12}}, {"id": 189, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 14}}, {"id": 190, "type": "binary_expression", "text": "(realtime%system_hz) * 40000 / system_hz * 25000", "parent": 185, "children": [191, 202, 203], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 63}}, {"id": 191, "type": "binary_expression", "text": "(realtime%system_hz) * 40000 / system_hz", "parent": 190, "children": [192, 200, 201], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 55}}, {"id": 192, "type": "binary_expression", "text": "(realtime%system_hz) * 40000", "parent": 191, "children": [193, 198, 199], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 43}}, {"id": 193, "type": "parenthesized_expression", "text": "(realtime%system_hz)", "parent": 192, "children": [194], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 35}}, {"id": 194, "type": "binary_expression", "text": "realtime%system_hz", "parent": 193, "children": [195, 196, 197], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 34}}, {"id": 195, "type": "identifier", "text": "realtime", "parent": 194, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 24}}, {"id": 196, "type": "%", "text": "%", "parent": 194, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 25}}, {"id": 197, "type": "identifier", "text": "system_hz", "parent": 194, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 34}}, {"id": 198, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 199, "type": "number_literal", "text": "40000", "parent": 192, "children": [], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 43}}, {"id": 200, "type": "/", "text": "/", "parent": 191, "children": [], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 45}}, {"id": 201, "type": "identifier", "text": "system_hz", "parent": 191, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 55}}, {"id": 202, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 57}}, {"id": 203, "type": "number_literal", "text": "25000", "parent": 190, "children": [], "start_point": {"row": 61, "column": 58}, "end_point": {"row": 61, "column": 63}}, {"id": 204, "type": "return_statement", "text": "return tv;", "parent": 88, "children": [205], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 12}}, {"id": 205, "type": "identifier", "text": "tv", "parent": 204, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 11}}, {"id": 206, "type": "function_definition", "text": "int update_timens(struct puffs_node *pn, int flags, struct timespec *t)\n{\n int r;\n struct vattr va;\n struct timespec new_time;\n PUFFS_MAKECRED(pcr, &global_kcred);\n\n if (!flags)\n\treturn 0;\n\n if (global_pu->pu_ops.puffs_node_setattr == NULL)\n\treturn EINVAL;\n\n new_time = t != NULL ? *t : clock_timespec();\n \n puffs_vattr_null(&va);\n /* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */\n va.va_atime = pn->pn_va.va_atime;\n va.va_mtime = pn->pn_va.va_mtime;\n\n if (flags & ATIME)\n\tva.va_atime = new_time;\n if (flags & MTIME)\n\tva.va_mtime = new_time;\n if (flags & CTIME)\n\tva.va_ctime = new_time;\n\n r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);\n\n return(r);\n}", "parent": null, "children": [207, 208], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 207, "type": "primitive_type", "text": "int", "parent": 206, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 3}}, {"id": 208, "type": "function_declarator", "text": "update_timens(struct puffs_node *pn, int flags, struct timespec *t)", "parent": 206, "children": [209, 210], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 71}}, {"id": 209, "type": "identifier", "text": "update_timens", "parent": 208, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 17}}, {"id": 210, "type": "parameter_list", "text": "(struct puffs_node *pn, int flags, struct timespec *t)", "parent": 208, "children": [211, 218, 221], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 71}}, {"id": 211, "type": "parameter_declaration", "text": "struct puffs_node *pn", "parent": 210, "children": [212, 215], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 39}}, {"id": 212, "type": "struct_specifier", "text": "struct puffs_node", "parent": 211, "children": [213, 214], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 35}}, {"id": 213, "type": "struct", "text": "struct", "parent": 212, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 24}}, {"id": 214, "type": "type_identifier", "text": "puffs_node", "parent": 212, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 35}}, {"id": 215, "type": "pointer_declarator", "text": "*pn", "parent": 211, "children": [216, 217], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 39}}, {"id": 216, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 37}}, {"id": 217, "type": "identifier", "text": "pn", "parent": 215, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 39}}, {"id": 218, "type": "parameter_declaration", "text": "int flags", "parent": 210, "children": [219, 220], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 50}}, {"id": 219, "type": "primitive_type", "text": "int", "parent": 218, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 44}}, {"id": 220, "type": "identifier", "text": "flags", "parent": 218, "children": [], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 50}}, {"id": 221, "type": "parameter_declaration", "text": "struct timespec *t", "parent": 210, "children": [222, 225], "start_point": {"row": 69, "column": 52}, "end_point": {"row": 69, "column": 70}}, {"id": 222, "type": "struct_specifier", "text": "struct timespec", "parent": 221, "children": [223, 224], "start_point": {"row": 69, "column": 52}, "end_point": {"row": 69, "column": 67}}, {"id": 223, "type": "struct", "text": "struct", "parent": 222, "children": [], "start_point": {"row": 69, "column": 52}, "end_point": {"row": 69, "column": 58}}, {"id": 224, "type": "type_identifier", "text": "timespec", "parent": 222, "children": [], "start_point": {"row": 69, "column": 59}, "end_point": {"row": 69, "column": 67}}, {"id": 225, "type": "pointer_declarator", "text": "*t", "parent": 221, "children": [226, 227], "start_point": {"row": 69, "column": 68}, "end_point": {"row": 69, "column": 70}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 69, "column": 68}, "end_point": {"row": 69, "column": 69}}, {"id": 227, "type": "identifier", "text": "t", "parent": 225, "children": [], "start_point": {"row": 69, "column": 69}, "end_point": {"row": 69, "column": 70}}, {"id": 228, "type": "declaration", "text": "int r;", "parent": 206, "children": [229, 230], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 8}}, {"id": 229, "type": "primitive_type", "text": "int", "parent": 228, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 5}}, {"id": 230, "type": "identifier", "text": "r", "parent": 228, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 7}}, {"id": 231, "type": "declaration", "text": "struct vattr va;", "parent": 206, "children": [232, 235], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 18}}, {"id": 232, "type": "struct_specifier", "text": "struct vattr", "parent": 231, "children": [233, 234], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 14}}, {"id": 233, "type": "struct", "text": "struct", "parent": 232, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 8}}, {"id": 234, "type": "type_identifier", "text": "vattr", "parent": 232, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 14}}, {"id": 235, "type": "identifier", "text": "va", "parent": 231, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 17}}, {"id": 236, "type": "declaration", "text": "struct timespec new_time;", "parent": 206, "children": [237, 240], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 27}}, {"id": 237, "type": "struct_specifier", "text": "struct timespec", "parent": 236, "children": [238, 239], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 17}}, {"id": 238, "type": "struct", "text": "struct", "parent": 237, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 8}}, {"id": 239, "type": "type_identifier", "text": "timespec", "parent": 237, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 17}}, {"id": 240, "type": "identifier", "text": "new_time", "parent": 236, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 26}}, {"id": 241, "type": "call_expression", "text": "PUFFS_MAKECRED(pcr, &global_kcred)", "parent": 206, "children": [242, 243], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 36}}, {"id": 242, "type": "identifier", "text": "PUFFS_MAKECRED", "parent": 241, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 16}}, {"id": 243, "type": "argument_list", "text": "(pcr, &global_kcred)", "parent": 241, "children": [244, 245], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 36}}, {"id": 244, "type": "identifier", "text": "pcr", "parent": 243, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 20}}, {"id": 245, "type": "pointer_expression", "text": "&global_kcred", "parent": 243, "children": [246], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 35}}, {"id": 246, "type": "identifier", "text": "global_kcred", "parent": 245, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 35}}, {"id": 247, "type": "if_statement", "text": "if (!flags)\n\treturn 0;", "parent": 206, "children": [248, 252], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 77, "column": 10}}, {"id": 248, "type": "parenthesized_expression", "text": "(!flags)", "parent": 247, "children": [249], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 13}}, {"id": 249, "type": "unary_expression", "text": "!flags", "parent": 248, "children": [250, 251], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 12}}, {"id": 250, "type": "!", "text": "!", "parent": 249, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 7}}, {"id": 251, "type": "identifier", "text": "flags", "parent": 249, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 12}}, {"id": 252, "type": "return_statement", "text": "return 0;", "parent": 247, "children": [253], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 253, "type": "number_literal", "text": "0", "parent": 252, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}, {"id": 254, "type": "if_statement", "text": "if (global_pu->pu_ops.puffs_node_setattr == NULL)\n\treturn EINVAL;", "parent": 206, "children": [255, 265], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 80, "column": 15}}, {"id": 255, "type": "parenthesized_expression", "text": "(global_pu->pu_ops.puffs_node_setattr == NULL)", "parent": 254, "children": [256], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 51}}, {"id": 256, "type": "binary_expression", "text": "global_pu->pu_ops.puffs_node_setattr == NULL", "parent": 255, "children": [257, 262, 263], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 50}}, {"id": 257, "type": "field_expression", "text": "global_pu->pu_ops.puffs_node_setattr", "parent": 256, "children": [258, 261], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 42}}, {"id": 258, "type": "field_expression", "text": "global_pu->pu_ops", "parent": 257, "children": [259, 260], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 23}}, {"id": 259, "type": "identifier", "text": "global_pu", "parent": 258, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 15}}, {"id": 260, "type": "field_identifier", "text": "pu_ops", "parent": 258, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 23}}, {"id": 261, "type": "field_identifier", "text": "puffs_node_setattr", "parent": 257, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 42}}, {"id": 262, "type": "==", "text": "==", "parent": 256, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 45}}, {"id": 263, "type": "null", "text": "NULL", "parent": 256, "children": [264], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 50}}, {"id": 264, "type": "NULL", "text": "NULL", "parent": 263, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 50}}, {"id": 265, "type": "return_statement", "text": "return EINVAL;", "parent": 254, "children": [266], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 15}}, {"id": 266, "type": "identifier", "text": "EINVAL", "parent": 265, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 14}}, {"id": 267, "type": "assignment_expression", "text": "new_time = t != NULL ? *t : clock_timespec()", "parent": 206, "children": [268, 269, 270], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 46}}, {"id": 268, "type": "identifier", "text": "new_time", "parent": 267, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 10}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 270, "type": "conditional_expression", "text": "t != NULL ? *t : clock_timespec()", "parent": 267, "children": [271, 276, 277, 280], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 46}}, {"id": 271, "type": "binary_expression", "text": "t != NULL", "parent": 270, "children": [272, 273, 274], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 22}}, {"id": 272, "type": "identifier", "text": "t", "parent": 271, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 14}}, {"id": 273, "type": "!=", "text": "!=", "parent": 271, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 17}}, {"id": 274, "type": "null", "text": "NULL", "parent": 271, "children": [275], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 22}}, {"id": 275, "type": "NULL", "text": "NULL", "parent": 274, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 22}}, {"id": 276, "type": "?", "text": "?", "parent": 270, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 24}}, {"id": 277, "type": "pointer_expression", "text": "*t", "parent": 270, "children": [278, 279], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 27}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 279, "type": "identifier", "text": "t", "parent": 277, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 27}}, {"id": 280, "type": "call_expression", "text": "clock_timespec()", "parent": 270, "children": [281, 282], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 46}}, {"id": 281, "type": "identifier", "text": "clock_timespec", "parent": 280, "children": [], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 44}}, {"id": 282, "type": "argument_list", "text": "()", "parent": 280, "children": [], "start_point": {"row": 82, "column": 44}, "end_point": {"row": 82, "column": 46}}, {"id": 283, "type": "call_expression", "text": "puffs_vattr_null(&va)", "parent": 206, "children": [284, 285], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 23}}, {"id": 284, "type": "identifier", "text": "puffs_vattr_null", "parent": 283, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 18}}, {"id": 285, "type": "argument_list", "text": "(&va)", "parent": 283, "children": [286], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 23}}, {"id": 286, "type": "pointer_expression", "text": "&va", "parent": 285, "children": [287], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 22}}, {"id": 287, "type": "identifier", "text": "va", "parent": 286, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 22}}, {"id": 288, "type": "assignment_expression", "text": "va.va_atime = pn->pn_va.va_atime", "parent": 206, "children": [289, 292, 293], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 34}}, {"id": 289, "type": "field_expression", "text": "va.va_atime", "parent": 288, "children": [290, 291], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 13}}, {"id": 290, "type": "identifier", "text": "va", "parent": 289, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 4}}, {"id": 291, "type": "field_identifier", "text": "va_atime", "parent": 289, "children": [], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 13}}, {"id": 292, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 293, "type": "field_expression", "text": "pn->pn_va.va_atime", "parent": 288, "children": [294, 297], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 34}}, {"id": 294, "type": "field_expression", "text": "pn->pn_va", "parent": 293, "children": [295, 296], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 25}}, {"id": 295, "type": "identifier", "text": "pn", "parent": 294, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 18}}, {"id": 296, "type": "field_identifier", "text": "pn_va", "parent": 294, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 25}}, {"id": 297, "type": "field_identifier", "text": "va_atime", "parent": 293, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 34}}, {"id": 298, "type": "assignment_expression", "text": "va.va_mtime = pn->pn_va.va_mtime", "parent": 206, "children": [299, 302, 303], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 34}}, {"id": 299, "type": "field_expression", "text": "va.va_mtime", "parent": 298, "children": [300, 301], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 13}}, {"id": 300, "type": "identifier", "text": "va", "parent": 299, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 4}}, {"id": 301, "type": "field_identifier", "text": "va_mtime", "parent": 299, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 13}}, {"id": 302, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 15}}, {"id": 303, "type": "field_expression", "text": "pn->pn_va.va_mtime", "parent": 298, "children": [304, 307], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 34}}, {"id": 304, "type": "field_expression", "text": "pn->pn_va", "parent": 303, "children": [305, 306], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 25}}, {"id": 305, "type": "identifier", "text": "pn", "parent": 304, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 18}}, {"id": 306, "type": "field_identifier", "text": "pn_va", "parent": 304, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 25}}, {"id": 307, "type": "field_identifier", "text": "va_mtime", "parent": 303, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 34}}, {"id": 308, "type": "if_statement", "text": "if (flags & ATIME)\n\tva.va_atime = new_time;", "parent": 206, "children": [309], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 93, "column": 24}}, {"id": 309, "type": "parenthesized_expression", "text": "(flags & ATIME)", "parent": 308, "children": [310], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 20}}, {"id": 310, "type": "binary_expression", "text": "flags & ATIME", "parent": 309, "children": [311, 312], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 19}}, {"id": 311, "type": "identifier", "text": "flags", "parent": 310, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 11}}, {"id": 312, "type": "identifier", "text": "ATIME", "parent": 310, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 19}}, {"id": 313, "type": "assignment_expression", "text": "va.va_atime = new_time", "parent": 308, "children": [314, 317, 318], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 23}}, {"id": 314, "type": "field_expression", "text": "va.va_atime", "parent": 313, "children": [315, 316], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 12}}, {"id": 315, "type": "identifier", "text": "va", "parent": 314, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 3}}, {"id": 316, "type": "field_identifier", "text": "va_atime", "parent": 314, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 12}}, {"id": 317, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 14}}, {"id": 318, "type": "identifier", "text": "new_time", "parent": 313, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 23}}, {"id": 319, "type": "if_statement", "text": "if (flags & MTIME)\n\tva.va_mtime = new_time;", "parent": 206, "children": [320], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 95, "column": 24}}, {"id": 320, "type": "parenthesized_expression", "text": "(flags & MTIME)", "parent": 319, "children": [321], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 20}}, {"id": 321, "type": "binary_expression", "text": "flags & MTIME", "parent": 320, "children": [322, 323], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 19}}, {"id": 322, "type": "identifier", "text": "flags", "parent": 321, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 11}}, {"id": 323, "type": "identifier", "text": "MTIME", "parent": 321, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 19}}, {"id": 324, "type": "assignment_expression", "text": "va.va_mtime = new_time", "parent": 319, "children": [325, 328, 329], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 23}}, {"id": 325, "type": "field_expression", "text": "va.va_mtime", "parent": 324, "children": [326, 327], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 12}}, {"id": 326, "type": "identifier", "text": "va", "parent": 325, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 3}}, {"id": 327, "type": "field_identifier", "text": "va_mtime", "parent": 325, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 12}}, {"id": 328, "type": "=", "text": "=", "parent": 324, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 14}}, {"id": 329, "type": "identifier", "text": "new_time", "parent": 324, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 23}}, {"id": 330, "type": "if_statement", "text": "if (flags & CTIME)\n\tva.va_ctime = new_time;", "parent": 206, "children": [331], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 97, "column": 24}}, {"id": 331, "type": "parenthesized_expression", "text": "(flags & CTIME)", "parent": 330, "children": [332], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 20}}, {"id": 332, "type": "binary_expression", "text": "flags & CTIME", "parent": 331, "children": [333, 334], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 19}}, {"id": 333, "type": "identifier", "text": "flags", "parent": 332, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 11}}, {"id": 334, "type": "identifier", "text": "CTIME", "parent": 332, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 19}}, {"id": 335, "type": "assignment_expression", "text": "va.va_ctime = new_time", "parent": 330, "children": [336, 339, 340], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 23}}, {"id": 336, "type": "field_expression", "text": "va.va_ctime", "parent": 335, "children": [337, 338], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 12}}, {"id": 337, "type": "identifier", "text": "va", "parent": 336, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 3}}, {"id": 338, "type": "field_identifier", "text": "va_ctime", "parent": 336, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 12}}, {"id": 339, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 14}}, {"id": 340, "type": "identifier", "text": "new_time", "parent": 335, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 23}}, {"id": 341, "type": "assignment_expression", "text": "r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr)", "parent": 206, "children": [342, 343, 344], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 67}}, {"id": 342, "type": "identifier", "text": "r", "parent": 341, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 3}}, {"id": 343, "type": "=", "text": "=", "parent": 341, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 5}}, {"id": 344, "type": "call_expression", "text": "global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr)", "parent": 341, "children": [345, 350], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 67}}, {"id": 345, "type": "field_expression", "text": "global_pu->pu_ops.puffs_node_setattr", "parent": 344, "children": [346, 349], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 42}}, {"id": 346, "type": "field_expression", "text": "global_pu->pu_ops", "parent": 345, "children": [347, 348], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 23}}, {"id": 347, "type": "identifier", "text": "global_pu", "parent": 346, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 15}}, {"id": 348, "type": "field_identifier", "text": "pu_ops", "parent": 346, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 23}}, {"id": 349, "type": "field_identifier", "text": "puffs_node_setattr", "parent": 345, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 42}}, {"id": 350, "type": "argument_list", "text": "(global_pu, pn, &va, pcr)", "parent": 344, "children": [351, 352, 353, 355], "start_point": {"row": 99, "column": 42}, "end_point": {"row": 99, "column": 67}}, {"id": 351, "type": "identifier", "text": "global_pu", "parent": 350, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 52}}, {"id": 352, "type": "identifier", "text": "pn", "parent": 350, "children": [], "start_point": {"row": 99, "column": 54}, "end_point": {"row": 99, "column": 56}}, {"id": 353, "type": "pointer_expression", "text": "&va", "parent": 350, "children": [354], "start_point": {"row": 99, "column": 58}, "end_point": {"row": 99, "column": 61}}, {"id": 354, "type": "identifier", "text": "va", "parent": 353, "children": [], "start_point": {"row": 99, "column": 59}, "end_point": {"row": 99, "column": 61}}, {"id": 355, "type": "identifier", "text": "pcr", "parent": 350, "children": [], "start_point": {"row": 99, "column": 63}, "end_point": {"row": 99, "column": 66}}, {"id": 356, "type": "return_statement", "text": "return(r);", "parent": 206, "children": [357], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 12}}, {"id": 357, "type": "parenthesized_expression", "text": "(r)", "parent": 356, "children": [358], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 11}}, {"id": 358, "type": "identifier", "text": "r", "parent": 357, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 10}}, {"id": 359, "type": "function_definition", "text": "void lpuffs_debug(const char *format, ...)\n{ \n char buffer[256];\n va_list args;\n va_start (args, format);\n vsprintf (buffer,format, args);\n printf(\"%s: %s\", fs_name, buffer);\n va_end (args);\n}", "parent": null, "children": [360, 361], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 116, "column": 1}}, {"id": 360, "type": "primitive_type", "text": "void", "parent": 359, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 4}}, {"id": 361, "type": "function_declarator", "text": "lpuffs_debug(const char *format, ...)", "parent": 359, "children": [362, 363], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 42}}, {"id": 362, "type": "identifier", "text": "lpuffs_debug", "parent": 361, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 17}}, {"id": 363, "type": "parameter_list", "text": "(const char *format, ...)", "parent": 361, "children": [364], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 42}}, {"id": 364, "type": "parameter_declaration", "text": "const char *format", "parent": 363, "children": [365, 366], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 36}}, {"id": 365, "type": "primitive_type", "text": "char", "parent": 364, "children": [], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 28}}, {"id": 366, "type": "pointer_declarator", "text": "*format", "parent": 364, "children": [367, 368], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 36}}, {"id": 367, "type": "*", "text": "*", "parent": 366, "children": [], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 30}}, {"id": 368, "type": "identifier", "text": "format", "parent": 366, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 36}}, {"id": 369, "type": "declaration", "text": "char buffer[256];", "parent": 359, "children": [370, 371], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 19}}, {"id": 370, "type": "primitive_type", "text": "char", "parent": 369, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 6}}, {"id": 371, "type": "array_declarator", "text": "buffer[256]", "parent": 369, "children": [372, 373], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 18}}, {"id": 372, "type": "identifier", "text": "buffer", "parent": 371, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 13}}, {"id": 373, "type": "number_literal", "text": "256", "parent": 371, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 17}}, {"id": 374, "type": "declaration", "text": "va_list args;", "parent": 359, "children": [375, 376], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 15}}, {"id": 375, "type": "type_identifier", "text": "va_list", "parent": 374, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 9}}, {"id": 376, "type": "identifier", "text": "args", "parent": 374, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 14}}, {"id": 377, "type": "call_expression", "text": "va_start (args, format)", "parent": 359, "children": [378, 379], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 25}}, {"id": 378, "type": "identifier", "text": "va_start", "parent": 377, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 10}}, {"id": 379, "type": "argument_list", "text": "(args, format)", "parent": 377, "children": [380, 381], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 25}}, {"id": 380, "type": "identifier", "text": "args", "parent": 379, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 16}}, {"id": 381, "type": "identifier", "text": "format", "parent": 379, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 24}}, {"id": 382, "type": "call_expression", "text": "vsprintf (buffer,format, args)", "parent": 359, "children": [383, 384], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 32}}, {"id": 383, "type": "identifier", "text": "vsprintf", "parent": 382, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 10}}, {"id": 384, "type": "argument_list", "text": "(buffer,format, args)", "parent": 382, "children": [385, 386, 387], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 32}}, {"id": 385, "type": "identifier", "text": "buffer", "parent": 384, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 18}}, {"id": 386, "type": "identifier", "text": "format", "parent": 384, "children": [], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 25}}, {"id": 387, "type": "identifier", "text": "args", "parent": 384, "children": [], "start_point": {"row": 113, "column": 27}, "end_point": {"row": 113, "column": 31}}, {"id": 388, "type": "call_expression", "text": "printf(\"%s: %s\", fs_name, buffer)", "parent": 359, "children": [389, 390], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 35}}, {"id": 389, "type": "identifier", "text": "printf", "parent": 388, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 8}}, {"id": 390, "type": "argument_list", "text": "(\"%s: %s\", fs_name, buffer)", "parent": 388, "children": [391, 392, 393], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 35}}, {"id": 391, "type": "string_literal", "text": "\"%s: %s\"", "parent": 390, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 17}}, {"id": 392, "type": "identifier", "text": "fs_name", "parent": 390, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 26}}, {"id": 393, "type": "identifier", "text": "buffer", "parent": 390, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 34}}, {"id": 394, "type": "call_expression", "text": "va_end (args)", "parent": 359, "children": [395, 396], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 15}}, {"id": 395, "type": "identifier", "text": "va_end", "parent": 394, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 8}}, {"id": 396, "type": "argument_list", "text": "(args)", "parent": 394, "children": [397], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 15}}, {"id": 397, "type": "identifier", "text": "args", "parent": 396, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 14}}]}, "node_categories": {"declarations": {"functions": [15, 17, 31, 33, 88, 92, 206, 208, 359, 361], "variables": [20, 36, 41, 44, 49, 54, 95, 97, 104, 109, 114, 117, 120, 211, 218, 221, 228, 231, 236, 364, 369, 374], "classes": [89, 90, 105, 110, 111, 212, 213, 222, 223, 232, 233, 237, 238], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [22, 29, 60, 61, 62, 67, 68, 70, 79, 124, 125, 132, 136, 137, 138, 142, 145, 147, 149, 153, 159, 163, 164, 167, 170, 171, 175, 178, 181, 186, 190, 191, 192, 193, 194, 241, 245, 248, 249, 255, 256, 257, 258, 271, 277, 280, 283, 286, 289, 293, 294, 299, 303, 304, 309, 310, 314, 320, 321, 325, 331, 332, 336, 344, 345, 346, 353, 357, 377, 382, 388, 394], "assignments": [129, 139, 158, 185, 267, 288, 298, 313, 324, 335, 341], "loops": [], "conditionals": [18, 23, 27, 30, 34, 40, 43, 48, 50, 53, 55, 58, 59, 63, 65, 69, 71, 80, 84, 85, 86, 87, 91, 93, 98, 101, 108, 112, 113, 115, 116, 118, 119, 121, 122, 123, 126, 130, 133, 135, 140, 143, 146, 148, 150, 152, 154, 157, 160, 161, 165, 168, 172, 174, 176, 179, 182, 187, 188, 195, 197, 201, 205, 209, 214, 217, 220, 224, 227, 230, 234, 235, 239, 240, 242, 244, 246, 247, 251, 254, 259, 260, 261, 266, 268, 270, 272, 279, 281, 284, 287, 290, 291, 295, 296, 297, 300, 301, 305, 306, 307, 308, 311, 312, 315, 316, 318, 319, 322, 323, 326, 327, 329, 330, 333, 334, 337, 338, 340, 342, 347, 348, 349, 351, 352, 354, 355, 358, 362, 368, 372, 375, 376, 378, 380, 381, 383, 385, 386, 387, 389, 392, 393, 395, 397], "returns": [28, 204, 252, 265, 356], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 25, 73, 75, 82, 103, 128, 156, 184, 199, 203, 253, 373, 391], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "no_sys", "text_snippet": "int no_sys(void)\n{\n/* Somebody has used an illegal system call number */\n lpuffs_debug(\"no_sys: inv"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "no_sys(void)"}, {"node_id": 31, "universal_type": "function", "name": "mfs_nul_f", "text_snippet": "void mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsign"}, {"node_id": 33, "universal_type": "function", "name": "line,", "text_snippet": "mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned in"}, {"node_id": 88, "universal_type": "function", "name": "timespec", "text_snippet": "struct timespec clock_timespec(void)\n{\n/* This routine returns the time in seconds since 1.1.1970. "}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "clock_timespec(void)"}, {"node_id": 206, "universal_type": "function", "name": "update_timens", "text_snippet": "int update_timens(struct puffs_node *pn, int flags, struct timespec *t)\n{\n int r;\n struct vattr va"}, {"node_id": 208, "universal_type": "function", "name": "flags,", "text_snippet": "update_timens(struct puffs_node *pn, int flags, struct timespec *t)"}, {"node_id": 359, "universal_type": "function", "name": "lpuffs_debug", "text_snippet": "void lpuffs_debug(const char *format, ...)\n{ \n char buffer[256];\n va_list args;\n va_start (args"}, {"node_id": 361, "universal_type": "function", "name": "unknown", "text_snippet": "lpuffs_debug(const char *format, ...)"}], "class_declarations": [{"node_id": 89, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 90, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 105, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 110, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 212, "universal_type": "class", "name": "puffs_node", "text_snippet": "struct puffs_node"}, {"node_id": 213, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 222, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 223, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 232, "universal_type": "class", "name": "vattr", "text_snippet": "struct vattr"}, {"node_id": 233, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 237, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 238, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"fs.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <assert.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdarg.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"puffs.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"puffs_priv.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* Created (MFS based):\n * February 2010 (<NAME>)\n */\n\n#include \"fs.h\"\n\n#include <assert.h>\n#include <stdarg.h>\n\n#include \"puffs.h\"\n#include \"puffs_priv.h\"\n\n\n/*===========================================================================*\n *\t\t\t\tno_sys\t\t\t\t\t *\n *===========================================================================*/\nint no_sys(void)\n{\n/* Somebody has used an illegal system call number */\n lpuffs_debug(\"no_sys: invalid call %d\\n\", req_nr);\n return(EINVAL);\n}\n\n\n/*===========================================================================*\n * mfs_nul *\n *===========================================================================*/\nvoid mfs_nul_f(const char *file, int line, char *str, unsigned int len,\n unsigned int maxlen)\n{\n if (len < maxlen && str[len-1] != '\\0') {\n\tlpuffs_debug(\"%s:%d string (length %d,maxlen %d) not null-terminated\\n\",\n file, line, len, maxlen);\n }\n}\n\n\n/*===========================================================================*\n *\t\t\t\tclock_timespec\t\t\t\t *\n *===========================================================================*/\nstruct timespec clock_timespec(void)\n{\n/* This routine returns the time in seconds since 1.1.1970. MINIX is an\n * astrophysically naive system that assumes the earth rotates at a constant\n * rate and that such things as leap seconds do not exist.\n */\n static long system_hz = 0;\n\n register int k;\n struct timespec tv;\n clock_t uptime;\n clock_t realtime;\n time_t boottime;\n\n if (system_hz == 0) system_hz = sys_hz();\n if ((k=getuptime(&uptime, &realtime, &boottime)) != OK)\n\tpanic(\"clock_timespec: getuptime failed: %d\", k);\n\n tv.tv_sec = (time_t) (boottime + (realtime/system_hz));\n /* We do not want to overflow, and system_hz can be as high as 50kHz */\n assert(system_hz < LONG_MAX/40000);\n tv.tv_nsec = (realtime%system_hz) * 40000 / system_hz * 25000;\n return tv;\n}\n\n\n/*===========================================================================*\n *\t\t\t\tupdate_timens\t\t\t\t *\n *===========================================================================*/\nint update_timens(struct puffs_node *pn, int flags, struct timespec *t)\n{\n int r;\n struct vattr va;\n struct timespec new_time;\n PUFFS_MAKECRED(pcr, &global_kcred);\n\n if (!flags)\n\treturn 0;\n\n if (global_pu->pu_ops.puffs_node_setattr == NULL)\n\treturn EINVAL;\n\n new_time = t != NULL ? *t : clock_timespec();\n \n puffs_vattr_null(&va);\n /* librefuse modifies atime and mtime together,\n * so set old values to avoid setting either one\n * to PUFFS_VNOVAL (set by puffs_vattr_null).\n */\n va.va_atime = pn->pn_va.va_atime;\n va.va_mtime = pn->pn_va.va_mtime;\n\n if (flags & ATIME)\n\tva.va_atime = new_time;\n if (flags & MTIME)\n\tva.va_mtime = new_time;\n if (flags & CTIME)\n\tva.va_ctime = new_time;\n\n r = global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr);\n\n return(r);\n}\n\n\n/*===========================================================================*\n *\t\t\t\tlpuffs_debug\t\t\t\t *\n *===========================================================================*/\nvoid lpuffs_debug(const char *format, ...)\n{ \n char buffer[256];\n va_list args;\n va_start (args, format);\n vsprintf (buffer,format, args);\n printf(\"%s: %s\", fs_name, buffer);\n va_end (args);\n}\n"}
119
c
// Custo da lata de cerveja, L1a - 3 // Custo do alumínio por metro quadrado = R$100. #include <stdio.h> #define PI 3.14159 main(){ double raio, altura; double areaL, custoL; scanf("%lf%lf", &raio, &altura); areaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura); custoL = (areaL * 100); printf("O VALOR DO CUSTO E = %.2lf\n", custoL); }
21.62
16
(translation_unit) "// Custo da lata de cerveja, L1a - 3 \n// Custo do alumínio por metro quadrado = R$100. \n#include <stdio.h> \n#define PI 3.14159 \n \nmain(){ \ndouble raio, altura; \ndouble areaL, custoL; \n \nscanf("%lf%lf", &raio, &altura); \n \nareaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura); \ncustoL = (areaL * 100); \n \nprintf("O VALOR DO CUSTO E = %.2lf\n", custoL); \n}" (comment) "// Custo da lata de cerveja, L1a - 3 " (comment) "// Custo do alumínio por metro quadrado = R$100. \n" (preproc_include) "include <stdio.h> \n#" (#include) "include " (system_lib_string) "stdio.h> " (preproc_def) "define PI 3.14159 \n " (#define) "define " (identifier) "I " (preproc_arg) ".14159 \n" (expression_statement) "ain(){" (call_expression) "ain(){" (identifier) "ain(" (argument_list) "){" (() ")" ()) "{" (;) "" (compound_statement) " \ndouble raio, altura; \ndouble areaL, custoL; \n \nscanf("%lf%lf", &raio, &altura); \n \nareaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura); \ncustoL = (areaL * 100); \n \nprintf("O VALOR DO CUSTO E = %.2lf\n", custoL); \n}" ({) " " (declaration) "ouble raio, altura; " (primitive_type) "ouble " (identifier) "aio," (,) " " (identifier) "ltura;" (;) " " (declaration) "ouble areaL, custoL; " (primitive_type) "ouble " (identifier) "reaL," (,) " " (identifier) "ustoL;" (;) " " (expression_statement) "canf("%lf%lf", &raio, &altura); " (call_expression) "canf("%lf%lf", &raio, &altura);" (identifier) "canf(" (argument_list) ""%lf%lf", &raio, &altura);" (() """ (string_literal) "%lf%lf"," (") "%" (string_content) "lf%lf"" (") "," (,) " " (pointer_expression) "raio," (&) "r" (identifier) "aio," (,) " " (pointer_expression) "altura)" (&) "a" (identifier) "ltura)" ()) ";" (;) " " (expression_statement) "reaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura); " (assignment_expression) "reaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura);" (identifier) "reaL " (=) " " (binary_expression) "2 * (PI * raio * raio)) + (2 * PI * raio * altura);" (parenthesized_expression) "2 * (PI * raio * raio)) " (() "2" (binary_expression) " * (PI * raio * raio))" (number_literal) " " (*) " " (parenthesized_expression) "PI * raio * raio))" (() "P" (binary_expression) "I * raio * raio)" (binary_expression) "I * raio " (identifier) "I " (*) " " (identifier) "aio " (*) " " (identifier) "aio)" ()) ")" ()) " " (+) " " (parenthesized_expression) "2 * PI * raio * altura);" (() "2" (binary_expression) " * PI * raio * altura)" (binary_expression) " * PI * raio " (binary_expression) " * PI " (number_literal) " " (*) " " (identifier) "I " (*) " " (identifier) "aio " (*) " " (identifier) "ltura)" ()) ";" (;) " " (expression_statement) "ustoL = (areaL * 100); " (assignment_expression) "ustoL = (areaL * 100);" (identifier) "ustoL " (=) " " (parenthesized_expression) "areaL * 100);" (() "a" (binary_expression) "reaL * 100)" (identifier) "reaL " (*) " " (number_literal) "00)" ()) ";" (;) " " (expression_statement) "rintf("O VALOR DO CUSTO E = %.2lf\n", custoL); " (call_expression) "rintf("O VALOR DO CUSTO E = %.2lf\n", custoL);" (identifier) "rintf(" (argument_list) ""O VALOR DO CUSTO E = %.2lf\n", custoL);" (() """ (string_literal) "O VALOR DO CUSTO E = %.2lf\n"," (") "O" (string_content) " VALOR DO CUSTO E = %.2lf\" (escape_sequence) "n"" (") "," (,) " " (identifier) "ustoL)" ()) ";" (;) " " (}) ""
113
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.62, "nodes": 70, "errors": 0, "source_hash": "d4e2249441d51d0bbd95a8d5ed7164ae7c3681eb6f57bb38c4072069f291b9de", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "include <stdio.h>\r\n#", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "#include", "text": "include ", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "stdio.h>\r", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "define PI 3.14159\r\n\r", "parent": null, "children": [4, 5, 6], "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": "I ", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 10}}, {"id": 6, "type": "preproc_arg", "text": ".14159\r\n", "parent": 3, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 19}}, {"id": 7, "type": "call_expression", "text": "ain(){", "parent": null, "children": [8, 9], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 8, "type": "identifier", "text": "ain(", "parent": 7, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 9, "type": "argument_list", "text": "){", "parent": 7, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 6}}, {"id": 10, "type": "declaration", "text": "ouble raio, altura;\r", "parent": null, "children": [11, 12, 13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 20}}, {"id": 11, "type": "primitive_type", "text": "ouble ", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 12, "type": "identifier", "text": "aio,", "parent": 10, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 13, "type": "identifier", "text": "ltura;", "parent": 10, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 19}}, {"id": 14, "type": "declaration", "text": "ouble areaL, custoL;\r", "parent": null, "children": [15, 16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 21}}, {"id": 15, "type": "primitive_type", "text": "ouble ", "parent": 14, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 16, "type": "identifier", "text": "reaL,", "parent": 14, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 12}}, {"id": 17, "type": "identifier", "text": "ustoL;", "parent": 14, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 20}}, {"id": 18, "type": "call_expression", "text": "canf(\"%lf%lf\", &raio, &altura);", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 31}}, {"id": 19, "type": "identifier", "text": "canf(", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 20, "type": "argument_list", "text": "\"%lf%lf\", &raio, &altura);", "parent": 18, "children": [21, 22, 25], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 31}}, {"id": 21, "type": "string_literal", "text": "%lf%lf\",", "parent": 20, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 14}}, {"id": 22, "type": "pointer_expression", "text": "raio,", "parent": 20, "children": [23, 24], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 21}}, {"id": 23, "type": "&", "text": "r", "parent": 22, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 24, "type": "identifier", "text": "aio,", "parent": 22, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 25, "type": "pointer_expression", "text": "altura)", "parent": 20, "children": [26, 27], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 30}}, {"id": 26, "type": "&", "text": "a", "parent": 25, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 24}}, {"id": 27, "type": "identifier", "text": "ltura)", "parent": 25, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 30}}, {"id": 28, "type": "assignment_expression", "text": "reaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura);", "parent": null, "children": [29, 30, 31], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 59}}, {"id": 29, "type": "identifier", "text": "reaL ", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 30, "type": "=", "text": " ", "parent": 28, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 7}}, {"id": 31, "type": "binary_expression", "text": "2 * (PI * raio * raio)) + (2 * PI * raio * altura);", "parent": 28, "children": [32, 44, 45], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 59}}, {"id": 32, "type": "parenthesized_expression", "text": "2 * (PI * raio * raio)) ", "parent": 31, "children": [33], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 32}}, {"id": 33, "type": "binary_expression", "text": " * (PI * raio * raio))", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 31}}, {"id": 34, "type": "number_literal", "text": " ", "parent": 33, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 35, "type": "*", "text": " ", "parent": 33, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 36, "type": "parenthesized_expression", "text": "PI * raio * raio))", "parent": 33, "children": [37], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 31}}, {"id": 37, "type": "binary_expression", "text": "I * raio * raio)", "parent": 36, "children": [38, 42, 43], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 30}}, {"id": 38, "type": "binary_expression", "text": "I * raio ", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 23}}, {"id": 39, "type": "identifier", "text": "I ", "parent": 38, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 16}}, {"id": 40, "type": "*", "text": " ", "parent": 38, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}, {"id": 41, "type": "identifier", "text": "aio ", "parent": 38, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 42, "type": "*", "text": " ", "parent": 37, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 43, "type": "identifier", "text": "aio)", "parent": 37, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 30}}, {"id": 44, "type": "+", "text": " ", "parent": 31, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 34}}, {"id": 45, "type": "parenthesized_expression", "text": "2 * PI * raio * altura);", "parent": 31, "children": [46], "start_point": {"row": 11, "column": 35}, "end_point": {"row": 11, "column": 59}}, {"id": 46, "type": "binary_expression", "text": " * PI * raio * altura)", "parent": 45, "children": [47, 54, 55], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 58}}, {"id": 47, "type": "binary_expression", "text": " * PI * raio ", "parent": 46, "children": [48, 52, 53], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 49}}, {"id": 48, "type": "binary_expression", "text": " * PI ", "parent": 47, "children": [49, 50, 51], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 42}}, {"id": 49, "type": "number_literal", "text": " ", "parent": 48, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 37}}, {"id": 50, "type": "*", "text": " ", "parent": 48, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 39}}, {"id": 51, "type": "identifier", "text": "I ", "parent": 48, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 42}}, {"id": 52, "type": "*", "text": " ", "parent": 47, "children": [], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 44}}, {"id": 53, "type": "identifier", "text": "aio ", "parent": 47, "children": [], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 49}}, {"id": 54, "type": "*", "text": " ", "parent": 46, "children": [], "start_point": {"row": 11, "column": 50}, "end_point": {"row": 11, "column": 51}}, {"id": 55, "type": "identifier", "text": "ltura)", "parent": 46, "children": [], "start_point": {"row": 11, "column": 52}, "end_point": {"row": 11, "column": 58}}, {"id": 56, "type": "assignment_expression", "text": "ustoL = (areaL * 100);", "parent": null, "children": [57, 58, 59], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 22}}, {"id": 57, "type": "identifier", "text": "ustoL ", "parent": 56, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 58, "type": "=", "text": " ", "parent": 56, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 59, "type": "parenthesized_expression", "text": "areaL * 100);", "parent": 56, "children": [60], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 60, "type": "binary_expression", "text": "reaL * 100)", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 21}}, {"id": 61, "type": "identifier", "text": "reaL ", "parent": 60, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 15}}, {"id": 62, "type": "*", "text": " ", "parent": 60, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 63, "type": "number_literal", "text": "00)", "parent": 60, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 21}}, {"id": 64, "type": "call_expression", "text": "rintf(\"O VALOR DO CUSTO E = %.2lf\\n\", custoL);", "parent": null, "children": [65, 66], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 46}}, {"id": 65, "type": "identifier", "text": "rintf(", "parent": 64, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 66, "type": "argument_list", "text": "\"O VALOR DO CUSTO E = %.2lf\\n\", custoL);", "parent": 64, "children": [67, 69], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 46}}, {"id": 67, "type": "string_literal", "text": "O VALOR DO CUSTO E = %.2lf\\n\",", "parent": 66, "children": [68], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 37}}, {"id": 68, "type": "escape_sequence", "text": "n\"", "parent": 67, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 36}}, {"id": 69, "type": "identifier", "text": "ustoL)", "parent": 66, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 45}}]}, "node_categories": {"declarations": {"functions": [], "variables": [10, 14], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [7, 18, 22, 25, 31, 32, 33, 36, 37, 38, 45, 46, 47, 48, 59, 60, 64], "assignments": [28, 56], "loops": [], "conditionals": [5, 8, 12, 13, 16, 17, 19, 24, 27, 29, 39, 41, 43, 51, 53, 55, 57, 61, 65, 69], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 21, 34, 49, 63, 67], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "include <stdio.h>\r\n#"}, {"node_id": 1, "text": "include "}]}, "original_source_code": "// Custo da lata de cerveja, L1a - 3\r\n// Custo do alum\u00ednio por metro quadrado = R$100.\r\n#include <stdio.h>\r\n#define PI 3.14159\r\n\r\nmain(){\r\ndouble raio, altura;\r\ndouble areaL, custoL;\r\n\r\nscanf(\"%lf%lf\", &raio, &altura);\r\n\r\nareaL = (2 * (PI * raio * raio)) + (2 * PI * raio * altura);\r\ncustoL = (areaL * 100);\r\n\r\nprintf(\"O VALOR DO CUSTO E = %.2lf\\n\", custoL);\r\n}"}
120
c
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <zephyr.h> #include <misc/util.h> #include <misc/dlist.h> #include "aos/errno.h" #include "aos/kernel.h" #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE) #include <common/log.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "atomic.h" #ifdef OSAL_RHINO #include "k_api.h" #endif int k_sem_init(struct k_sem *sem, unsigned int initial_count, unsigned int limit) { int ret; if (NULL == sem) { BT_ERR("sem is NULL\n"); return -EINVAL; } ret = krhino_sem_create(&sem->sem, "ble", initial_count); sys_dlist_init(&sem->poll_events); return ret; } int k_sem_take(struct k_sem *sem, uint32_t timeout) { tick_t ticks; if (timeout == K_FOREVER) { ticks = RHINO_WAIT_FOREVER; } else { ticks = krhino_ms_to_ticks(timeout); } return krhino_sem_take(&sem->sem, ticks); } int k_sem_give(struct k_sem *sem) { if (NULL == sem) { BT_ERR("sem is NULL\n"); return -EINVAL; } krhino_sem_give(&sem->sem); return 0; } int k_sem_delete(struct k_sem *sem) { if (NULL == sem) { BT_ERR("sem is NULL\n"); return -EINVAL; } krhino_sem_del(&sem->sem); return 0; } unsigned int k_sem_count_get(struct k_sem *sem) { #ifdef OSAL_RHINO sem_count_t count; krhino_sem_count_get(&sem->sem, &count); return (int)count; #endif return 0; } void k_mutex_init(struct k_mutex *mutex) { int stat; if (NULL == mutex) { BT_ERR("mutex is NULL\n"); return; } stat = krhino_mutex_create(&mutex->mutex, "ble"); if(stat){ BT_ERR("mutex buffer over\n"); } sys_dlist_init(&mutex->poll_events); return; } int k_mutex_lock(struct k_mutex *mutex, s32_t timeout) { tick_t ticks; if (timeout == K_FOREVER) { ticks = RHINO_WAIT_FOREVER; } else { ticks = krhino_ms_to_ticks(timeout); } return krhino_mutex_lock(&mutex->mutex, ticks); } void k_mutex_unlock(struct k_mutex *mutex) { if (NULL == mutex) { BT_ERR("mutex is NULL\n"); return; } krhino_mutex_unlock(&mutex->mutex); } int64_t k_uptime_get() { return aos_now_ms(); } u32_t k_uptime_get_32() { return (u32_t)aos_now_ms(); } typedef void (*task_entry_t)(void *args); int k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack, size_t stack_size, k_thread_entry_t entry, void *p1, void *p2, void *p3, int prio, u32_t options, s32_t delay) { if (!stack) { // Use dynamic stack if no static one provided int ret; ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1, stack_size, prio); if (ret) { SYS_LOG_ERR("create ble task fail\n"); } return ret; } else { // Use static statck if provided ktask_t *task_obj; task_obj = krhino_mm_alloc(sizeof(ktask_t)); if (task_obj == NULL) { return RHINO_NO_MEM; } /* Free the below handle whenever task exits. */ new_thread->task.hdl = (void *)task_obj; stack_size = stack_size / sizeof(cpu_stack_t); return krhino_task_create(task_obj, "ble", p1, prio, 0, (cpu_stack_t *)stack, stack_size , (task_entry_t)entry, delay == 0 ? 1: 0); } } int k_yield(void) { return 0; } unsigned int irq_lock(void) { CPSR_ALLOC(); RHINO_CPU_INTRPT_DISABLE(); return cpsr; } void irq_unlock(unsigned int key) { CPSR_ALLOC(); cpsr = key; RHINO_CPU_INTRPT_ENABLE(); } void _SysFatalErrorHandler(unsigned int reason, const void *pEsf){}; void k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args) { int ret; ASSERT(timer, "timer is NULL"); BT_DBG("timer %p,handle %p,args %p", timer, handle, args); timer->handler = handle; timer->args = args; ret = krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler), krhino_ms_to_ticks(1000), 0, args, 0); if (ret) { BT_DBG("fail to create a timer"); } } void k_timer_start(k_timer_t *timer, uint32_t timeout) { int ret; ASSERT(timer, "timer is NULL"); BT_DBG("timer %p,timeout %u", timer, timeout); timer->timeout = timeout; timer->start_ms = (uint32_t)aos_now_ms(); ret = krhino_timer_stop(&timer->timer); if (ret) { BT_DBG("fail to stop timer"); } ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout), krhino_ms_to_ticks(timeout)); if (ret) { BT_DBG("fail to change timeout"); } ret = krhino_timer_start(&timer->timer); if (ret) { BT_DBG("fail to start timer"); } } void k_timer_stop(k_timer_t *timer) { int ret; ASSERT(timer, "timer is NULL"); BT_DBG("timer %p", timer); ret = krhino_timer_stop(&timer->timer); if (ret) { BT_DBG("fail to stop timer"); } /** * Timer may be reused, so its timeout value * should be cleared when stopped. */ timer->timeout = 0; } void k_sleep(s32_t duration) { aos_msleep(duration); } long long k_now_ms() { return aos_now_ms(); } unsigned int find_msb_set(u32_t data) { uint32_t count = 0; uint32_t mask = 0x80000000; if (!data) { return 0; } while ((data & mask) == 0) { count += 1u; mask = mask >> 1u; } return (32 - count); } unsigned int find_lsb_set(u32_t data) { uint32_t count = 1; uint32_t mask = 0x00000001; if (!data) { return 0; } while ((data & mask) == 0) { count += 1u; mask = mask << 1u; } return (count); }
24.03
237
(translation_unit) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n\n#include <zephyr.h>\n#include <misc/util.h>\n#include <misc/dlist.h>\n\n#include "aos/errno.h"\n#include "aos/kernel.h"\n\n#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)\n\n#include <common/log.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <string.h>\n#include "atomic.h"\n\n#ifdef OSAL_RHINO\n#include "k_api.h"\n#endif\n\nint k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)\n{\n int ret;\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n ret = krhino_sem_create(&sem->sem, "ble", initial_count);\n sys_dlist_init(&sem->poll_events);\n return ret;\n}\n\nint k_sem_take(struct k_sem *sem, uint32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n return krhino_sem_take(&sem->sem, ticks);\n}\n\nint k_sem_give(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_give(&sem->sem);\n return 0;\n}\n\nint k_sem_delete(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_del(&sem->sem);\n return 0;\n}\n\nunsigned int k_sem_count_get(struct k_sem *sem)\n{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif\n return 0;\n}\n\n\nvoid k_mutex_init(struct k_mutex *mutex)\n{\n int stat;\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n stat = krhino_mutex_create(&mutex->mutex, "ble");\n if(stat){\n BT_ERR("mutex buffer over\n");\n }\n sys_dlist_init(&mutex->poll_events);\n return;\n}\n\nint k_mutex_lock(struct k_mutex *mutex, s32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n\n return krhino_mutex_lock(&mutex->mutex, ticks);\n}\n\nvoid k_mutex_unlock(struct k_mutex *mutex)\n{\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n krhino_mutex_unlock(&mutex->mutex);\n}\n\nint64_t k_uptime_get()\n{\n return aos_now_ms();\n}\n\nu32_t k_uptime_get_32()\n{\n return (u32_t)aos_now_ms();\n}\n\ntypedef void (*task_entry_t)(void *args);\nint k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)\n{\n if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }\n}\n\nint k_yield(void)\n{\n return 0;\n}\n\nunsigned int irq_lock(void)\n{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}\n\nvoid irq_unlock(unsigned int key)\n{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();\n}\n\nvoid _SysFatalErrorHandler(unsigned int reason, const void *pEsf){};\n\nvoid k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,handle %p,args %p", timer, handle, args);\n timer->handler = handle;\n timer->args = args;\n ret =\n krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);\n if (ret) {\n BT_DBG("fail to create a timer");\n }\n}\n\nvoid k_timer_start(k_timer_t *timer, uint32_t timeout)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,timeout %u", timer, timeout);\n timer->timeout = timeout;\n timer->start_ms = (uint32_t)aos_now_ms();\n\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n\n ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));\n if (ret) {\n BT_DBG("fail to change timeout");\n }\n\n ret = krhino_timer_start(&timer->timer);\n if (ret) {\n BT_DBG("fail to start timer");\n }\n}\n\nvoid k_timer_stop(k_timer_t *timer)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p", timer);\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n /**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */\n timer->timeout = 0;\n}\n\nvoid k_sleep(s32_t duration)\n{\n aos_msleep(duration);\n}\n\nlong long k_now_ms()\n{\n return aos_now_ms();\n}\n\nunsigned int find_msb_set(u32_t data)\n{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }\n return (32 - count);\n}\n\nunsigned int find_lsb_set(u32_t data)\n{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }\n return (count);\n}\n" (comment) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */" (preproc_include) "#include <zephyr.h>\n" (#include) "#include" (system_lib_string) "<zephyr.h>" (preproc_include) "#include <misc/util.h>\n" (#include) "#include" (system_lib_string) "<misc/util.h>" (preproc_include) "#include <misc/dlist.h>\n" (#include) "#include" (system_lib_string) "<misc/dlist.h>" (preproc_include) "#include "aos/errno.h"\n" (#include) "#include" (string_literal) ""aos/errno.h"" (") """ (string_content) "aos/errno.h" (") """ (preproc_include) "#include "aos/kernel.h"\n" (#include) "#include" (string_literal) ""aos/kernel.h"" (") """ (string_content) "aos/kernel.h" (") """ (preproc_def) "#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)\n" (#define) "#define" (identifier) "BT_DBG_ENABLED" (preproc_arg) "IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)" (preproc_include) "#include <common/log.h>\n" (#include) "#include" (system_lib_string) "<common/log.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 <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "atomic.h"\n" (#include) "#include" (string_literal) ""atomic.h"" (") """ (string_content) "atomic.h" (") """ (preproc_ifdef) "#ifdef OSAL_RHINO\n#include "k_api.h"\n#endif" (#ifdef) "#ifdef" (identifier) "OSAL_RHINO" (preproc_include) "#include "k_api.h"\n" (#include) "#include" (string_literal) ""k_api.h"" (") """ (string_content) "k_api.h" (") """ (#endif) "#endif" (function_definition) "int k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)\n{\n int ret;\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n ret = krhino_sem_create(&sem->sem, "ble", initial_count);\n sys_dlist_init(&sem->poll_events);\n return ret;\n}" (primitive_type) "int" (function_declarator) "k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)" (identifier) "k_sem_init" (parameter_list) "(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)" (() "(" (parameter_declaration) "struct k_sem *sem" (struct_specifier) "struct k_sem" (struct) "struct" (type_identifier) "k_sem" (pointer_declarator) "*sem" (*) "*" (identifier) "sem" (,) "," (parameter_declaration) "unsigned int initial_count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "initial_count" (,) "," (parameter_declaration) "unsigned int limit" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "limit" ()) ")" (compound_statement) "{\n int ret;\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n ret = krhino_sem_create(&sem->sem, "ble", initial_count);\n sys_dlist_init(&sem->poll_events);\n return ret;\n}" ({) "{" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (if_statement) "if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(NULL == sem)" (() "(" (binary_expression) "NULL == sem" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "sem" ()) ")" (compound_statement) "{\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" ({) "{" (expression_statement) "BT_ERR("sem is NULL\n");" (call_expression) "BT_ERR("sem is NULL\n")" (identifier) "BT_ERR" (argument_list) "("sem is NULL\n")" (() "(" (string_literal) ""sem is NULL\n"" (") """ (string_content) "sem is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (expression_statement) "ret = krhino_sem_create(&sem->sem, "ble", initial_count);" (assignment_expression) "ret = krhino_sem_create(&sem->sem, "ble", initial_count)" (identifier) "ret" (=) "=" (call_expression) "krhino_sem_create(&sem->sem, "ble", initial_count)" (identifier) "krhino_sem_create" (argument_list) "(&sem->sem, "ble", initial_count)" (() "(" (pointer_expression) "&sem->sem" (&) "&" (field_expression) "sem->sem" (identifier) "sem" (->) "->" (field_identifier) "sem" (,) "," (string_literal) ""ble"" (") """ (string_content) "ble" (") """ (,) "," (identifier) "initial_count" ()) ")" (;) ";" (expression_statement) "sys_dlist_init(&sem->poll_events);" (call_expression) "sys_dlist_init(&sem->poll_events)" (identifier) "sys_dlist_init" (argument_list) "(&sem->poll_events)" (() "(" (pointer_expression) "&sem->poll_events" (&) "&" (field_expression) "sem->poll_events" (identifier) "sem" (->) "->" (field_identifier) "poll_events" ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (function_definition) "int k_sem_take(struct k_sem *sem, uint32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n return krhino_sem_take(&sem->sem, ticks);\n}" (primitive_type) "int" (function_declarator) "k_sem_take(struct k_sem *sem, uint32_t timeout)" (identifier) "k_sem_take" (parameter_list) "(struct k_sem *sem, uint32_t timeout)" (() "(" (parameter_declaration) "struct k_sem *sem" (struct_specifier) "struct k_sem" (struct) "struct" (type_identifier) "k_sem" (pointer_declarator) "*sem" (*) "*" (identifier) "sem" (,) "," (parameter_declaration) "uint32_t timeout" (primitive_type) "uint32_t" (identifier) "timeout" ()) ")" (compound_statement) "{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n return krhino_sem_take(&sem->sem, ticks);\n}" ({) "{" (declaration) "tick_t ticks;" (type_identifier) "tick_t" (identifier) "ticks" (;) ";" (if_statement) "if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }" (if) "if" (parenthesized_expression) "(timeout == K_FOREVER)" (() "(" (binary_expression) "timeout == K_FOREVER" (identifier) "timeout" (==) "==" (identifier) "K_FOREVER" ()) ")" (compound_statement) "{\n ticks = RHINO_WAIT_FOREVER;\n }" ({) "{" (expression_statement) "ticks = RHINO_WAIT_FOREVER;" (assignment_expression) "ticks = RHINO_WAIT_FOREVER" (identifier) "ticks" (=) "=" (identifier) "RHINO_WAIT_FOREVER" (;) ";" (}) "}" (else_clause) "else {\n ticks = krhino_ms_to_ticks(timeout);\n }" (else) "else" (compound_statement) "{\n ticks = krhino_ms_to_ticks(timeout);\n }" ({) "{" (expression_statement) "ticks = krhino_ms_to_ticks(timeout);" (assignment_expression) "ticks = krhino_ms_to_ticks(timeout)" (identifier) "ticks" (=) "=" (call_expression) "krhino_ms_to_ticks(timeout)" (identifier) "krhino_ms_to_ticks" (argument_list) "(timeout)" (() "(" (identifier) "timeout" ()) ")" (;) ";" (}) "}" (return_statement) "return krhino_sem_take(&sem->sem, ticks);" (return) "return" (call_expression) "krhino_sem_take(&sem->sem, ticks)" (identifier) "krhino_sem_take" (argument_list) "(&sem->sem, ticks)" (() "(" (pointer_expression) "&sem->sem" (&) "&" (field_expression) "sem->sem" (identifier) "sem" (->) "->" (field_identifier) "sem" (,) "," (identifier) "ticks" ()) ")" (;) ";" (}) "}" (function_definition) "int k_sem_give(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_give(&sem->sem);\n return 0;\n}" (primitive_type) "int" (function_declarator) "k_sem_give(struct k_sem *sem)" (identifier) "k_sem_give" (parameter_list) "(struct k_sem *sem)" (() "(" (parameter_declaration) "struct k_sem *sem" (struct_specifier) "struct k_sem" (struct) "struct" (type_identifier) "k_sem" (pointer_declarator) "*sem" (*) "*" (identifier) "sem" ()) ")" (compound_statement) "{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_give(&sem->sem);\n return 0;\n}" ({) "{" (if_statement) "if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(NULL == sem)" (() "(" (binary_expression) "NULL == sem" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "sem" ()) ")" (compound_statement) "{\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" ({) "{" (expression_statement) "BT_ERR("sem is NULL\n");" (call_expression) "BT_ERR("sem is NULL\n")" (identifier) "BT_ERR" (argument_list) "("sem is NULL\n")" (() "(" (string_literal) ""sem is NULL\n"" (") """ (string_content) "sem is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (expression_statement) "krhino_sem_give(&sem->sem);" (call_expression) "krhino_sem_give(&sem->sem)" (identifier) "krhino_sem_give" (argument_list) "(&sem->sem)" (() "(" (pointer_expression) "&sem->sem" (&) "&" (field_expression) "sem->sem" (identifier) "sem" (->) "->" (field_identifier) "sem" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int k_sem_delete(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_del(&sem->sem);\n return 0;\n}" (primitive_type) "int" (function_declarator) "k_sem_delete(struct k_sem *sem)" (identifier) "k_sem_delete" (parameter_list) "(struct k_sem *sem)" (() "(" (parameter_declaration) "struct k_sem *sem" (struct_specifier) "struct k_sem" (struct) "struct" (type_identifier) "k_sem" (pointer_declarator) "*sem" (*) "*" (identifier) "sem" ()) ")" (compound_statement) "{\n if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }\n\n krhino_sem_del(&sem->sem);\n return 0;\n}" ({) "{" (if_statement) "if (NULL == sem) {\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(NULL == sem)" (() "(" (binary_expression) "NULL == sem" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "sem" ()) ")" (compound_statement) "{\n BT_ERR("sem is NULL\n");\n return -EINVAL;\n }" ({) "{" (expression_statement) "BT_ERR("sem is NULL\n");" (call_expression) "BT_ERR("sem is NULL\n")" (identifier) "BT_ERR" (argument_list) "("sem is NULL\n")" (() "(" (string_literal) ""sem is NULL\n"" (") """ (string_content) "sem is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (expression_statement) "krhino_sem_del(&sem->sem);" (call_expression) "krhino_sem_del(&sem->sem)" (identifier) "krhino_sem_del" (argument_list) "(&sem->sem)" (() "(" (pointer_expression) "&sem->sem" (&) "&" (field_expression) "sem->sem" (identifier) "sem" (->) "->" (field_identifier) "sem" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "unsigned int k_sem_count_get(struct k_sem *sem)\n{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif\n return 0;\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "k_sem_count_get(struct k_sem *sem)" (identifier) "k_sem_count_get" (parameter_list) "(struct k_sem *sem)" (() "(" (parameter_declaration) "struct k_sem *sem" (struct_specifier) "struct k_sem" (struct) "struct" (type_identifier) "k_sem" (pointer_declarator) "*sem" (*) "*" (identifier) "sem" ()) ")" (compound_statement) "{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif\n return 0;\n}" ({) "{" (preproc_ifdef) "#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif" (#ifdef) "#ifdef" (identifier) "OSAL_RHINO" (declaration) "sem_count_t count;" (type_identifier) "sem_count_t" (identifier) "count" (;) ";" (expression_statement) "krhino_sem_count_get(&sem->sem, &count);" (call_expression) "krhino_sem_count_get(&sem->sem, &count)" (identifier) "krhino_sem_count_get" (argument_list) "(&sem->sem, &count)" (() "(" (pointer_expression) "&sem->sem" (&) "&" (field_expression) "sem->sem" (identifier) "sem" (->) "->" (field_identifier) "sem" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" ()) ")" (;) ";" (return_statement) "return (int)count;" (return) "return" (cast_expression) "(int)count" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "count" (;) ";" (#endif) "#endif" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void k_mutex_init(struct k_mutex *mutex)\n{\n int stat;\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n stat = krhino_mutex_create(&mutex->mutex, "ble");\n if(stat){\n BT_ERR("mutex buffer over\n");\n }\n sys_dlist_init(&mutex->poll_events);\n return;\n}" (primitive_type) "void" (function_declarator) "k_mutex_init(struct k_mutex *mutex)" (identifier) "k_mutex_init" (parameter_list) "(struct k_mutex *mutex)" (() "(" (parameter_declaration) "struct k_mutex *mutex" (struct_specifier) "struct k_mutex" (struct) "struct" (type_identifier) "k_mutex" (pointer_declarator) "*mutex" (*) "*" (identifier) "mutex" ()) ")" (compound_statement) "{\n int stat;\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n stat = krhino_mutex_create(&mutex->mutex, "ble");\n if(stat){\n BT_ERR("mutex buffer over\n");\n }\n sys_dlist_init(&mutex->poll_events);\n return;\n}" ({) "{" (declaration) "int stat;" (primitive_type) "int" (identifier) "stat" (;) ";" (if_statement) "if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }" (if) "if" (parenthesized_expression) "(NULL == mutex)" (() "(" (binary_expression) "NULL == mutex" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "mutex" ()) ")" (compound_statement) "{\n BT_ERR("mutex is NULL\n");\n return;\n }" ({) "{" (expression_statement) "BT_ERR("mutex is NULL\n");" (call_expression) "BT_ERR("mutex is NULL\n")" (identifier) "BT_ERR" (argument_list) "("mutex is NULL\n")" (() "(" (string_literal) ""mutex is NULL\n"" (") """ (string_content) "mutex is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "stat = krhino_mutex_create(&mutex->mutex, "ble");" (assignment_expression) "stat = krhino_mutex_create(&mutex->mutex, "ble")" (identifier) "stat" (=) "=" (call_expression) "krhino_mutex_create(&mutex->mutex, "ble")" (identifier) "krhino_mutex_create" (argument_list) "(&mutex->mutex, "ble")" (() "(" (pointer_expression) "&mutex->mutex" (&) "&" (field_expression) "mutex->mutex" (identifier) "mutex" (->) "->" (field_identifier) "mutex" (,) "," (string_literal) ""ble"" (") """ (string_content) "ble" (") """ ()) ")" (;) ";" (if_statement) "if(stat){\n BT_ERR("mutex buffer over\n");\n }" (if) "if" (parenthesized_expression) "(stat)" (() "(" (identifier) "stat" ()) ")" (compound_statement) "{\n BT_ERR("mutex buffer over\n");\n }" ({) "{" (expression_statement) "BT_ERR("mutex buffer over\n");" (call_expression) "BT_ERR("mutex buffer over\n")" (identifier) "BT_ERR" (argument_list) "("mutex buffer over\n")" (() "(" (string_literal) ""mutex buffer over\n"" (") """ (string_content) "mutex buffer over" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "sys_dlist_init(&mutex->poll_events);" (call_expression) "sys_dlist_init(&mutex->poll_events)" (identifier) "sys_dlist_init" (argument_list) "(&mutex->poll_events)" (() "(" (pointer_expression) "&mutex->poll_events" (&) "&" (field_expression) "mutex->poll_events" (identifier) "mutex" (->) "->" (field_identifier) "poll_events" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (function_definition) "int k_mutex_lock(struct k_mutex *mutex, s32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n\n return krhino_mutex_lock(&mutex->mutex, ticks);\n}" (primitive_type) "int" (function_declarator) "k_mutex_lock(struct k_mutex *mutex, s32_t timeout)" (identifier) "k_mutex_lock" (parameter_list) "(struct k_mutex *mutex, s32_t timeout)" (() "(" (parameter_declaration) "struct k_mutex *mutex" (struct_specifier) "struct k_mutex" (struct) "struct" (type_identifier) "k_mutex" (pointer_declarator) "*mutex" (*) "*" (identifier) "mutex" (,) "," (parameter_declaration) "s32_t timeout" (type_identifier) "s32_t" (identifier) "timeout" ()) ")" (compound_statement) "{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n\n return krhino_mutex_lock(&mutex->mutex, ticks);\n}" ({) "{" (declaration) "tick_t ticks;" (type_identifier) "tick_t" (identifier) "ticks" (;) ";" (if_statement) "if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }" (if) "if" (parenthesized_expression) "(timeout == K_FOREVER)" (() "(" (binary_expression) "timeout == K_FOREVER" (identifier) "timeout" (==) "==" (identifier) "K_FOREVER" ()) ")" (compound_statement) "{\n ticks = RHINO_WAIT_FOREVER;\n }" ({) "{" (expression_statement) "ticks = RHINO_WAIT_FOREVER;" (assignment_expression) "ticks = RHINO_WAIT_FOREVER" (identifier) "ticks" (=) "=" (identifier) "RHINO_WAIT_FOREVER" (;) ";" (}) "}" (else_clause) "else {\n ticks = krhino_ms_to_ticks(timeout);\n }" (else) "else" (compound_statement) "{\n ticks = krhino_ms_to_ticks(timeout);\n }" ({) "{" (expression_statement) "ticks = krhino_ms_to_ticks(timeout);" (assignment_expression) "ticks = krhino_ms_to_ticks(timeout)" (identifier) "ticks" (=) "=" (call_expression) "krhino_ms_to_ticks(timeout)" (identifier) "krhino_ms_to_ticks" (argument_list) "(timeout)" (() "(" (identifier) "timeout" ()) ")" (;) ";" (}) "}" (return_statement) "return krhino_mutex_lock(&mutex->mutex, ticks);" (return) "return" (call_expression) "krhino_mutex_lock(&mutex->mutex, ticks)" (identifier) "krhino_mutex_lock" (argument_list) "(&mutex->mutex, ticks)" (() "(" (pointer_expression) "&mutex->mutex" (&) "&" (field_expression) "mutex->mutex" (identifier) "mutex" (->) "->" (field_identifier) "mutex" (,) "," (identifier) "ticks" ()) ")" (;) ";" (}) "}" (function_definition) "void k_mutex_unlock(struct k_mutex *mutex)\n{\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n krhino_mutex_unlock(&mutex->mutex);\n}" (primitive_type) "void" (function_declarator) "k_mutex_unlock(struct k_mutex *mutex)" (identifier) "k_mutex_unlock" (parameter_list) "(struct k_mutex *mutex)" (() "(" (parameter_declaration) "struct k_mutex *mutex" (struct_specifier) "struct k_mutex" (struct) "struct" (type_identifier) "k_mutex" (pointer_declarator) "*mutex" (*) "*" (identifier) "mutex" ()) ")" (compound_statement) "{\n if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }\n\n krhino_mutex_unlock(&mutex->mutex);\n}" ({) "{" (if_statement) "if (NULL == mutex) {\n BT_ERR("mutex is NULL\n");\n return;\n }" (if) "if" (parenthesized_expression) "(NULL == mutex)" (() "(" (binary_expression) "NULL == mutex" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "mutex" ()) ")" (compound_statement) "{\n BT_ERR("mutex is NULL\n");\n return;\n }" ({) "{" (expression_statement) "BT_ERR("mutex is NULL\n");" (call_expression) "BT_ERR("mutex is NULL\n")" (identifier) "BT_ERR" (argument_list) "("mutex is NULL\n")" (() "(" (string_literal) ""mutex is NULL\n"" (") """ (string_content) "mutex is NULL" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "krhino_mutex_unlock(&mutex->mutex);" (call_expression) "krhino_mutex_unlock(&mutex->mutex)" (identifier) "krhino_mutex_unlock" (argument_list) "(&mutex->mutex)" (() "(" (pointer_expression) "&mutex->mutex" (&) "&" (field_expression) "mutex->mutex" (identifier) "mutex" (->) "->" (field_identifier) "mutex" ()) ")" (;) ";" (}) "}" (function_definition) "int64_t k_uptime_get()\n{\n return aos_now_ms();\n}" (primitive_type) "int64_t" (function_declarator) "k_uptime_get()" (identifier) "k_uptime_get" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return aos_now_ms();\n}" ({) "{" (return_statement) "return aos_now_ms();" (return) "return" (call_expression) "aos_now_ms()" (identifier) "aos_now_ms" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "u32_t k_uptime_get_32()\n{\n return (u32_t)aos_now_ms();\n}" (type_identifier) "u32_t" (function_declarator) "k_uptime_get_32()" (identifier) "k_uptime_get_32" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return (u32_t)aos_now_ms();\n}" ({) "{" (return_statement) "return (u32_t)aos_now_ms();" (return) "return" (cast_expression) "(u32_t)aos_now_ms()" (() "(" (type_descriptor) "u32_t" (type_identifier) "u32_t" ()) ")" (call_expression) "aos_now_ms()" (identifier) "aos_now_ms" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (type_definition) "typedef void (*task_entry_t)(void *args);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*task_entry_t)(void *args)" (parenthesized_declarator) "(*task_entry_t)" (() "(" (pointer_declarator) "*task_entry_t" (*) "*" (type_identifier) "task_entry_t" ()) ")" (parameter_list) "(void *args)" (() "(" (parameter_declaration) "void *args" (primitive_type) "void" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (;) ";" (function_definition) "int k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)\n{\n if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }\n}" (primitive_type) "int" (function_declarator) "k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)" (identifier) "k_thread_create" (parameter_list) "(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)" (() "(" (parameter_declaration) "struct k_thread *new_thread" (struct_specifier) "struct k_thread" (struct) "struct" (type_identifier) "k_thread" (pointer_declarator) "*new_thread" (*) "*" (identifier) "new_thread" (,) "," (parameter_declaration) "k_thread_stack_t *stack" (type_identifier) "k_thread_stack_t" (pointer_declarator) "*stack" (*) "*" (identifier) "stack" (,) "," (parameter_declaration) "size_t stack_size" (primitive_type) "size_t" (identifier) "stack_size" (,) "," (parameter_declaration) "k_thread_entry_t entry" (type_identifier) "k_thread_entry_t" (identifier) "entry" (,) "," (parameter_declaration) "void *p1" (primitive_type) "void" (pointer_declarator) "*p1" (*) "*" (identifier) "p1" (,) "," (parameter_declaration) "void *p2" (primitive_type) "void" (pointer_declarator) "*p2" (*) "*" (identifier) "p2" (,) "," (parameter_declaration) "void *p3" (primitive_type) "void" (pointer_declarator) "*p3" (*) "*" (identifier) "p3" (,) "," (parameter_declaration) "int prio" (primitive_type) "int" (identifier) "prio" (,) "," (parameter_declaration) "u32_t options" (type_identifier) "u32_t" (identifier) "options" (,) "," (parameter_declaration) "s32_t delay" (type_identifier) "s32_t" (identifier) "delay" ()) ")" (compound_statement) "{\n if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }\n}" ({) "{" (if_statement) "if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }" (if) "if" (parenthesized_expression) "(!stack)" (() "(" (unary_expression) "!stack" (!) "!" (identifier) "stack" ()) ")" (compound_statement) "{ // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }\n\n return ret;\n }" ({) "{" (comment) "// Use dynamic stack if no static one provided" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (expression_statement) "ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio);" (assignment_expression) "ret = aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio)" (identifier) "ret" (=) "=" (call_expression) "aos_task_new_ext(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio)" (identifier) "aos_task_new_ext" (argument_list) "(&(new_thread->task), "ble", (task_entry_t)entry, p1,\n stack_size, prio)" (() "(" (pointer_expression) "&(new_thread->task)" (&) "&" (parenthesized_expression) "(new_thread->task)" (() "(" (field_expression) "new_thread->task" (identifier) "new_thread" (->) "->" (field_identifier) "task" ()) ")" (,) "," (string_literal) ""ble"" (") """ (string_content) "ble" (") """ (,) "," (cast_expression) "(task_entry_t)entry" (() "(" (type_descriptor) "task_entry_t" (type_identifier) "task_entry_t" ()) ")" (identifier) "entry" (,) "," (identifier) "p1" (,) "," (identifier) "stack_size" (,) "," (identifier) "prio" ()) ")" (;) ";" (if_statement) "if (ret) {\n SYS_LOG_ERR("create ble task fail\n");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n SYS_LOG_ERR("create ble task fail\n");\n }" ({) "{" (expression_statement) "SYS_LOG_ERR("create ble task fail\n");" (call_expression) "SYS_LOG_ERR("create ble task fail\n")" (identifier) "SYS_LOG_ERR" (argument_list) "("create ble task fail\n")" (() "(" (string_literal) ""create ble task fail\n"" (") """ (string_content) "create ble task fail" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (else_clause) "else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }" (else) "else" (compound_statement) "{ // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }" ({) "{" (comment) "// Use static statck if provided" (declaration) "ktask_t *task_obj;" (type_identifier) "ktask_t" (pointer_declarator) "*task_obj" (*) "*" (identifier) "task_obj" (;) ";" (expression_statement) "task_obj = krhino_mm_alloc(sizeof(ktask_t));" (assignment_expression) "task_obj = krhino_mm_alloc(sizeof(ktask_t))" (identifier) "task_obj" (=) "=" (call_expression) "krhino_mm_alloc(sizeof(ktask_t))" (identifier) "krhino_mm_alloc" (argument_list) "(sizeof(ktask_t))" (() "(" (sizeof_expression) "sizeof(ktask_t)" (sizeof) "sizeof" (parenthesized_expression) "(ktask_t)" (() "(" (identifier) "ktask_t" ()) ")" ()) ")" (;) ";" (if_statement) "if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }" (if) "if" (parenthesized_expression) "(task_obj == NULL)" (() "(" (binary_expression) "task_obj == NULL" (identifier) "task_obj" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return RHINO_NO_MEM;\n }" ({) "{" (return_statement) "return RHINO_NO_MEM;" (return) "return" (identifier) "RHINO_NO_MEM" (;) ";" (}) "}" (comment) "/* Free the below handle whenever task exits. */" (expression_statement) "new_thread->task.hdl = (void *)task_obj;" (assignment_expression) "new_thread->task.hdl = (void *)task_obj" (field_expression) "new_thread->task.hdl" (field_expression) "new_thread->task" (identifier) "new_thread" (->) "->" (field_identifier) "task" (.) "." (field_identifier) "hdl" (=) "=" (cast_expression) "(void *)task_obj" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "task_obj" (;) ";" (expression_statement) "stack_size = stack_size / sizeof(cpu_stack_t);" (assignment_expression) "stack_size = stack_size / sizeof(cpu_stack_t)" (identifier) "stack_size" (=) "=" (binary_expression) "stack_size / sizeof(cpu_stack_t)" (identifier) "stack_size" (/) "/" (sizeof_expression) "sizeof(cpu_stack_t)" (sizeof) "sizeof" (parenthesized_expression) "(cpu_stack_t)" (() "(" (identifier) "cpu_stack_t" ()) ")" (;) ";" (return_statement) "return krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);" (return) "return" (call_expression) "krhino_task_create(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0)" (identifier) "krhino_task_create" (argument_list) "(task_obj, "ble", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0)" (() "(" (identifier) "task_obj" (,) "," (string_literal) ""ble"" (") """ (string_content) "ble" (") """ (,) "," (identifier) "p1" (,) "," (identifier) "prio" (,) "," (number_literal) "0" (,) "," (cast_expression) "(cpu_stack_t *)stack" (() "(" (type_descriptor) "cpu_stack_t *" (type_identifier) "cpu_stack_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "stack" (,) "," (identifier) "stack_size" (,) "," (cast_expression) "(task_entry_t)entry" (() "(" (type_descriptor) "task_entry_t" (type_identifier) "task_entry_t" ()) ")" (identifier) "entry" (,) "," (conditional_expression) "delay == 0 ? 1: 0" (binary_expression) "delay == 0" (identifier) "delay" (==) "==" (number_literal) "0" (?) "?" (number_literal) "1" (:) ":" (number_literal) "0" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int k_yield(void)\n{\n return 0;\n}" (primitive_type) "int" (function_declarator) "k_yield(void)" (identifier) "k_yield" (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) "unsigned int irq_lock(void)\n{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "irq_lock(void)" (identifier) "irq_lock" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}" ({) "{" (expression_statement) "CPSR_ALLOC();" (call_expression) "CPSR_ALLOC()" (identifier) "CPSR_ALLOC" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "RHINO_CPU_INTRPT_DISABLE();" (call_expression) "RHINO_CPU_INTRPT_DISABLE()" (identifier) "RHINO_CPU_INTRPT_DISABLE" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return cpsr;" (return) "return" (identifier) "cpsr" (;) ";" (}) "}" (function_definition) "void irq_unlock(unsigned int key)\n{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();\n}" (primitive_type) "void" (function_declarator) "irq_unlock(unsigned int key)" (identifier) "irq_unlock" (parameter_list) "(unsigned int key)" (() "(" (parameter_declaration) "unsigned int key" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "key" ()) ")" (compound_statement) "{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();\n}" ({) "{" (expression_statement) "CPSR_ALLOC();" (call_expression) "CPSR_ALLOC()" (identifier) "CPSR_ALLOC" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "cpsr = key;" (assignment_expression) "cpsr = key" (identifier) "cpsr" (=) "=" (identifier) "key" (;) ";" (expression_statement) "RHINO_CPU_INTRPT_ENABLE();" (call_expression) "RHINO_CPU_INTRPT_ENABLE()" (identifier) "RHINO_CPU_INTRPT_ENABLE" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void _SysFatalErrorHandler(unsigned int reason, const void *pEsf){}" (primitive_type) "void" (function_declarator) "_SysFatalErrorHandler(unsigned int reason, const void *pEsf)" (identifier) "_SysFatalErrorHandler" (parameter_list) "(unsigned int reason, const void *pEsf)" (() "(" (parameter_declaration) "unsigned int reason" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "reason" (,) "," (parameter_declaration) "const void *pEsf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*pEsf" (*) "*" (identifier) "pEsf" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,handle %p,args %p", timer, handle, args);\n timer->handler = handle;\n timer->args = args;\n ret =\n krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);\n if (ret) {\n BT_DBG("fail to create a timer");\n }\n}" (primitive_type) "void" (function_declarator) "k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)" (identifier) "k_timer_init" (parameter_list) "(k_timer_t *timer, k_timer_handler_t handle, void *args)" (() "(" (parameter_declaration) "k_timer_t *timer" (type_identifier) "k_timer_t" (pointer_declarator) "*timer" (*) "*" (identifier) "timer" (,) "," (parameter_declaration) "k_timer_handler_t handle" (type_identifier) "k_timer_handler_t" (identifier) "handle" (,) "," (parameter_declaration) "void *args" (primitive_type) "void" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,handle %p,args %p", timer, handle, args);\n timer->handler = handle;\n timer->args = args;\n ret =\n krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);\n if (ret) {\n BT_DBG("fail to create a timer");\n }\n}" ({) "{" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (expression_statement) "ASSERT(timer, "timer is NULL");" (call_expression) "ASSERT(timer, "timer is NULL")" (identifier) "ASSERT" (argument_list) "(timer, "timer is NULL")" (() "(" (identifier) "timer" (,) "," (string_literal) ""timer is NULL"" (") """ (string_content) "timer is NULL" (") """ ()) ")" (;) ";" (expression_statement) "BT_DBG("timer %p,handle %p,args %p", timer, handle, args);" (call_expression) "BT_DBG("timer %p,handle %p,args %p", timer, handle, args)" (identifier) "BT_DBG" (argument_list) "("timer %p,handle %p,args %p", timer, handle, args)" (() "(" (string_literal) ""timer %p,handle %p,args %p"" (") """ (string_content) "timer %p,handle %p,args %p" (") """ (,) "," (identifier) "timer" (,) "," (identifier) "handle" (,) "," (identifier) "args" ()) ")" (;) ";" (expression_statement) "timer->handler = handle;" (assignment_expression) "timer->handler = handle" (field_expression) "timer->handler" (identifier) "timer" (->) "->" (field_identifier) "handler" (=) "=" (identifier) "handle" (;) ";" (expression_statement) "timer->args = args;" (assignment_expression) "timer->args = args" (field_expression) "timer->args" (identifier) "timer" (->) "->" (field_identifier) "args" (=) "=" (identifier) "args" (;) ";" (expression_statement) "ret =\n krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);" (assignment_expression) "ret =\n krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)" (identifier) "ret" (=) "=" (call_expression) "krhino_timer_create(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)" (identifier) "krhino_timer_create" (argument_list) "(&timer->timer, "AOS", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)" (() "(" (pointer_expression) "&timer->timer" (&) "&" (field_expression) "timer->timer" (identifier) "timer" (->) "->" (field_identifier) "timer" (,) "," (string_literal) ""AOS"" (") """ (string_content) "AOS" (") """ (,) "," (call_expression) "(timer_cb_t)(timer->handler)" (parenthesized_expression) "(timer_cb_t)" (() "(" (identifier) "timer_cb_t" ()) ")" (argument_list) "(timer->handler)" (() "(" (field_expression) "timer->handler" (identifier) "timer" (->) "->" (field_identifier) "handler" ()) ")" (,) "," (call_expression) "krhino_ms_to_ticks(1000)" (identifier) "krhino_ms_to_ticks" (argument_list) "(1000)" (() "(" (number_literal) "1000" ()) ")" (,) "," (number_literal) "0" (,) "," (identifier) "args" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (ret) {\n BT_DBG("fail to create a timer");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n BT_DBG("fail to create a timer");\n }" ({) "{" (expression_statement) "BT_DBG("fail to create a timer");" (call_expression) "BT_DBG("fail to create a timer")" (identifier) "BT_DBG" (argument_list) "("fail to create a timer")" (() "(" (string_literal) ""fail to create a timer"" (") """ (string_content) "fail to create a timer" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void k_timer_start(k_timer_t *timer, uint32_t timeout)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,timeout %u", timer, timeout);\n timer->timeout = timeout;\n timer->start_ms = (uint32_t)aos_now_ms();\n\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n\n ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));\n if (ret) {\n BT_DBG("fail to change timeout");\n }\n\n ret = krhino_timer_start(&timer->timer);\n if (ret) {\n BT_DBG("fail to start timer");\n }\n}" (primitive_type) "void" (function_declarator) "k_timer_start(k_timer_t *timer, uint32_t timeout)" (identifier) "k_timer_start" (parameter_list) "(k_timer_t *timer, uint32_t timeout)" (() "(" (parameter_declaration) "k_timer_t *timer" (type_identifier) "k_timer_t" (pointer_declarator) "*timer" (*) "*" (identifier) "timer" (,) "," (parameter_declaration) "uint32_t timeout" (primitive_type) "uint32_t" (identifier) "timeout" ()) ")" (compound_statement) "{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p,timeout %u", timer, timeout);\n timer->timeout = timeout;\n timer->start_ms = (uint32_t)aos_now_ms();\n\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n\n ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));\n if (ret) {\n BT_DBG("fail to change timeout");\n }\n\n ret = krhino_timer_start(&timer->timer);\n if (ret) {\n BT_DBG("fail to start timer");\n }\n}" ({) "{" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (expression_statement) "ASSERT(timer, "timer is NULL");" (call_expression) "ASSERT(timer, "timer is NULL")" (identifier) "ASSERT" (argument_list) "(timer, "timer is NULL")" (() "(" (identifier) "timer" (,) "," (string_literal) ""timer is NULL"" (") """ (string_content) "timer is NULL" (") """ ()) ")" (;) ";" (expression_statement) "BT_DBG("timer %p,timeout %u", timer, timeout);" (call_expression) "BT_DBG("timer %p,timeout %u", timer, timeout)" (identifier) "BT_DBG" (argument_list) "("timer %p,timeout %u", timer, timeout)" (() "(" (string_literal) ""timer %p,timeout %u"" (") """ (string_content) "timer %p,timeout %u" (") """ (,) "," (identifier) "timer" (,) "," (identifier) "timeout" ()) ")" (;) ";" (expression_statement) "timer->timeout = timeout;" (assignment_expression) "timer->timeout = timeout" (field_expression) "timer->timeout" (identifier) "timer" (->) "->" (field_identifier) "timeout" (=) "=" (identifier) "timeout" (;) ";" (expression_statement) "timer->start_ms = (uint32_t)aos_now_ms();" (assignment_expression) "timer->start_ms = (uint32_t)aos_now_ms()" (field_expression) "timer->start_ms" (identifier) "timer" (->) "->" (field_identifier) "start_ms" (=) "=" (cast_expression) "(uint32_t)aos_now_ms()" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (call_expression) "aos_now_ms()" (identifier) "aos_now_ms" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ret = krhino_timer_stop(&timer->timer);" (assignment_expression) "ret = krhino_timer_stop(&timer->timer)" (identifier) "ret" (=) "=" (call_expression) "krhino_timer_stop(&timer->timer)" (identifier) "krhino_timer_stop" (argument_list) "(&timer->timer)" (() "(" (pointer_expression) "&timer->timer" (&) "&" (field_expression) "timer->timer" (identifier) "timer" (->) "->" (field_identifier) "timer" ()) ")" (;) ";" (if_statement) "if (ret) {\n BT_DBG("fail to stop timer");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n BT_DBG("fail to stop timer");\n }" ({) "{" (expression_statement) "BT_DBG("fail to stop timer");" (call_expression) "BT_DBG("fail to stop timer")" (identifier) "BT_DBG" (argument_list) "("fail to stop timer")" (() "(" (string_literal) ""fail to stop timer"" (") """ (string_content) "fail to stop timer" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));" (assignment_expression) "ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))" (identifier) "ret" (=) "=" (call_expression) "krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))" (identifier) "krhino_timer_change" (argument_list) "(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))" (() "(" (pointer_expression) "&timer->timer" (&) "&" (field_expression) "timer->timer" (identifier) "timer" (->) "->" (field_identifier) "timer" (,) "," (call_expression) "krhino_ms_to_ticks(timeout)" (identifier) "krhino_ms_to_ticks" (argument_list) "(timeout)" (() "(" (identifier) "timeout" ()) ")" (,) "," (call_expression) "krhino_ms_to_ticks(timeout)" (identifier) "krhino_ms_to_ticks" (argument_list) "(timeout)" (() "(" (identifier) "timeout" ()) ")" ()) ")" (;) ";" (if_statement) "if (ret) {\n BT_DBG("fail to change timeout");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n BT_DBG("fail to change timeout");\n }" ({) "{" (expression_statement) "BT_DBG("fail to change timeout");" (call_expression) "BT_DBG("fail to change timeout")" (identifier) "BT_DBG" (argument_list) "("fail to change timeout")" (() "(" (string_literal) ""fail to change timeout"" (") """ (string_content) "fail to change timeout" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "ret = krhino_timer_start(&timer->timer);" (assignment_expression) "ret = krhino_timer_start(&timer->timer)" (identifier) "ret" (=) "=" (call_expression) "krhino_timer_start(&timer->timer)" (identifier) "krhino_timer_start" (argument_list) "(&timer->timer)" (() "(" (pointer_expression) "&timer->timer" (&) "&" (field_expression) "timer->timer" (identifier) "timer" (->) "->" (field_identifier) "timer" ()) ")" (;) ";" (if_statement) "if (ret) {\n BT_DBG("fail to start timer");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n BT_DBG("fail to start timer");\n }" ({) "{" (expression_statement) "BT_DBG("fail to start timer");" (call_expression) "BT_DBG("fail to start timer")" (identifier) "BT_DBG" (argument_list) "("fail to start timer")" (() "(" (string_literal) ""fail to start timer"" (") """ (string_content) "fail to start timer" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void k_timer_stop(k_timer_t *timer)\n{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p", timer);\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n /**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */\n timer->timeout = 0;\n}" (primitive_type) "void" (function_declarator) "k_timer_stop(k_timer_t *timer)" (identifier) "k_timer_stop" (parameter_list) "(k_timer_t *timer)" (() "(" (parameter_declaration) "k_timer_t *timer" (type_identifier) "k_timer_t" (pointer_declarator) "*timer" (*) "*" (identifier) "timer" ()) ")" (compound_statement) "{\n int ret;\n ASSERT(timer, "timer is NULL");\n BT_DBG("timer %p", timer);\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG("fail to stop timer");\n }\n /**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */\n timer->timeout = 0;\n}" ({) "{" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (expression_statement) "ASSERT(timer, "timer is NULL");" (call_expression) "ASSERT(timer, "timer is NULL")" (identifier) "ASSERT" (argument_list) "(timer, "timer is NULL")" (() "(" (identifier) "timer" (,) "," (string_literal) ""timer is NULL"" (") """ (string_content) "timer is NULL" (") """ ()) ")" (;) ";" (expression_statement) "BT_DBG("timer %p", timer);" (call_expression) "BT_DBG("timer %p", timer)" (identifier) "BT_DBG" (argument_list) "("timer %p", timer)" (() "(" (string_literal) ""timer %p"" (") """ (string_content) "timer %p" (") """ (,) "," (identifier) "timer" ()) ")" (;) ";" (expression_statement) "ret = krhino_timer_stop(&timer->timer);" (assignment_expression) "ret = krhino_timer_stop(&timer->timer)" (identifier) "ret" (=) "=" (call_expression) "krhino_timer_stop(&timer->timer)" (identifier) "krhino_timer_stop" (argument_list) "(&timer->timer)" (() "(" (pointer_expression) "&timer->timer" (&) "&" (field_expression) "timer->timer" (identifier) "timer" (->) "->" (field_identifier) "timer" ()) ")" (;) ";" (if_statement) "if (ret) {\n BT_DBG("fail to stop timer");\n }" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (compound_statement) "{\n BT_DBG("fail to stop timer");\n }" ({) "{" (expression_statement) "BT_DBG("fail to stop timer");" (call_expression) "BT_DBG("fail to stop timer")" (identifier) "BT_DBG" (argument_list) "("fail to stop timer")" (() "(" (string_literal) ""fail to stop timer"" (") """ (string_content) "fail to stop timer" (") """ ()) ")" (;) ";" (}) "}" (comment) "/**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */" (expression_statement) "timer->timeout = 0;" (assignment_expression) "timer->timeout = 0" (field_expression) "timer->timeout" (identifier) "timer" (->) "->" (field_identifier) "timeout" (=) "=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void k_sleep(s32_t duration)\n{\n aos_msleep(duration);\n}" (primitive_type) "void" (function_declarator) "k_sleep(s32_t duration)" (identifier) "k_sleep" (parameter_list) "(s32_t duration)" (() "(" (parameter_declaration) "s32_t duration" (type_identifier) "s32_t" (identifier) "duration" ()) ")" (compound_statement) "{\n aos_msleep(duration);\n}" ({) "{" (expression_statement) "aos_msleep(duration);" (call_expression) "aos_msleep(duration)" (identifier) "aos_msleep" (argument_list) "(duration)" (() "(" (identifier) "duration" ()) ")" (;) ";" (}) "}" (function_definition) "long long k_now_ms()\n{\n return aos_now_ms();\n}" (sized_type_specifier) "long long" (long) "long" (long) "long" (function_declarator) "k_now_ms()" (identifier) "k_now_ms" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return aos_now_ms();\n}" ({) "{" (return_statement) "return aos_now_ms();" (return) "return" (call_expression) "aos_now_ms()" (identifier) "aos_now_ms" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "unsigned int find_msb_set(u32_t data)\n{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }\n return (32 - count);\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "find_msb_set(u32_t data)" (identifier) "find_msb_set" (parameter_list) "(u32_t data)" (() "(" (parameter_declaration) "u32_t data" (type_identifier) "u32_t" (identifier) "data" ()) ")" (compound_statement) "{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }\n return (32 - count);\n}" ({) "{" (declaration) "uint32_t count = 0;" (primitive_type) "uint32_t" (init_declarator) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (declaration) "uint32_t mask = 0x80000000;" (primitive_type) "uint32_t" (init_declarator) "mask = 0x80000000" (identifier) "mask" (=) "=" (number_literal) "0x80000000" (;) ";" (if_statement) "if (!data) {\n return 0;\n }" (if) "if" (parenthesized_expression) "(!data)" (() "(" (unary_expression) "!data" (!) "!" (identifier) "data" ()) ")" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (while_statement) "while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }" (while) "while" (parenthesized_expression) "((data & mask) == 0)" (() "(" (binary_expression) "(data & mask) == 0" (parenthesized_expression) "(data & mask)" (() "(" (binary_expression) "data & mask" (identifier) "data" (&) "&" (identifier) "mask" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n count += 1u;\n mask = mask >> 1u;\n }" ({) "{" (expression_statement) "count += 1u;" (assignment_expression) "count += 1u" (identifier) "count" (+=) "+=" (number_literal) "1u" (;) ";" (expression_statement) "mask = mask >> 1u;" (assignment_expression) "mask = mask >> 1u" (identifier) "mask" (=) "=" (binary_expression) "mask >> 1u" (identifier) "mask" (>>) ">>" (number_literal) "1u" (;) ";" (}) "}" (return_statement) "return (32 - count);" (return) "return" (parenthesized_expression) "(32 - count)" (() "(" (binary_expression) "32 - count" (number_literal) "32" (-) "-" (identifier) "count" ()) ")" (;) ";" (}) "}" (function_definition) "unsigned int find_lsb_set(u32_t data)\n{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }\n return (count);\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "find_lsb_set(u32_t data)" (identifier) "find_lsb_set" (parameter_list) "(u32_t data)" (() "(" (parameter_declaration) "u32_t data" (type_identifier) "u32_t" (identifier) "data" ()) ")" (compound_statement) "{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }\n return (count);\n}" ({) "{" (declaration) "uint32_t count = 1;" (primitive_type) "uint32_t" (init_declarator) "count = 1" (identifier) "count" (=) "=" (number_literal) "1" (;) ";" (declaration) "uint32_t mask = 0x00000001;" (primitive_type) "uint32_t" (init_declarator) "mask = 0x00000001" (identifier) "mask" (=) "=" (number_literal) "0x00000001" (;) ";" (if_statement) "if (!data) {\n return 0;\n }" (if) "if" (parenthesized_expression) "(!data)" (() "(" (unary_expression) "!data" (!) "!" (identifier) "data" ()) ")" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (while_statement) "while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }" (while) "while" (parenthesized_expression) "((data & mask) == 0)" (() "(" (binary_expression) "(data & mask) == 0" (parenthesized_expression) "(data & mask)" (() "(" (binary_expression) "data & mask" (identifier) "data" (&) "&" (identifier) "mask" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n count += 1u;\n mask = mask << 1u;\n }" ({) "{" (expression_statement) "count += 1u;" (assignment_expression) "count += 1u" (identifier) "count" (+=) "+=" (number_literal) "1u" (;) ";" (expression_statement) "mask = mask << 1u;" (assignment_expression) "mask = mask << 1u" (identifier) "mask" (=) "=" (binary_expression) "mask << 1u" (identifier) "mask" (<<) "<<" (number_literal) "1u" (;) ";" (}) "}" (return_statement) "return (count);" (return) "return" (parenthesized_expression) "(count)" (() "(" (identifier) "count" ()) ")" (;) ";" (}) "}"
1,742
0
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 24.03, "nodes": 1001, "errors": 0, "source_hash": "cffd09b95ae1a510b8542793e0b5c7216129c5b8cb5196fc2f0f2f0f3ac02c9e", "categorized_nodes": 732}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <zephyr.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": "<zephyr.h>", "parent": 0, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <misc/util.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": "<misc/util.h>", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <misc/dlist.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": "<misc/dlist.h>", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include \"aos/errno.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"aos/errno.h\"", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include \"aos/kernel.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"aos/kernel.h\"", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 23}}, {"id": 15, "type": "preproc_def", "text": "#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)\n", "parent": null, "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": "BT_DBG_ENABLED", "parent": 15, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 22}}, {"id": 18, "type": "preproc_arg", "text": "IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)", "parent": 15, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 62}}, {"id": 19, "type": "preproc_include", "text": "#include <common/log.h>\n", "parent": null, "children": [20, 21], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 21, "type": "system_lib_string", "text": "<common/log.h>", "parent": 19, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 23}}, {"id": 22, "type": "preproc_include", "text": "#include <stddef.h>\n", "parent": null, "children": [23, 24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 24, "type": "system_lib_string", "text": "<stddef.h>", "parent": 22, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 25, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": null, "children": [26, 27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 26, "type": "#include", "text": "#include", "parent": 25, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 27, "type": "system_lib_string", "text": "<stdint.h>", "parent": 25, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 28, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [29, 30], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 29, "type": "#include", "text": "#include", "parent": 28, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 30, "type": "system_lib_string", "text": "<string.h>", "parent": 28, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 31, "type": "preproc_include", "text": "#include \"atomic.h\"\n", "parent": null, "children": [32, 33], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 32, "type": "#include", "text": "#include", "parent": 31, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 33, "type": "string_literal", "text": "\"atomic.h\"", "parent": 31, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 19}}, {"id": 34, "type": "preproc_ifdef", "text": "#ifdef OSAL_RHINO\n#include \"k_api.h\"\n#endif", "parent": null, "children": [35, 36, 37, 40], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 35, "type": "#ifdef", "text": "#ifdef", "parent": 34, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 36, "type": "identifier", "text": "OSAL_RHINO", "parent": 34, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 17}}, {"id": 37, "type": "preproc_include", "text": "#include \"k_api.h\"\n", "parent": 34, "children": [38, 39], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 38, "type": "#include", "text": "#include", "parent": 37, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 39, "type": "string_literal", "text": "\"k_api.h\"", "parent": 37, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 40, "type": "#endif", "text": "#endif", "parent": 34, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 41, "type": "function_definition", "text": "int k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)\n{\n int ret;\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n ret = krhino_sem_create(&sem->sem, \"ble\", initial_count);\n sys_dlist_init(&sem->poll_events);\n return ret;\n}", "parent": null, "children": [42, 43], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 43, "type": "function_declarator", "text": "k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)", "parent": 41, "children": [44, 45], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 24, "column": 34}}, {"id": 44, "type": "identifier", "text": "k_sem_init", "parent": 43, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 45, "type": "parameter_list", "text": "(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)", "parent": 43, "children": [46, 53, 58], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 24, "column": 34}}, {"id": 46, "type": "parameter_declaration", "text": "struct k_sem *sem", "parent": 45, "children": [47, 50], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 32}}, {"id": 47, "type": "struct_specifier", "text": "struct k_sem", "parent": 46, "children": [48, 49], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 27}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 21}}, {"id": 49, "type": "type_identifier", "text": "k_sem", "parent": 47, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 27}}, {"id": 50, "type": "pointer_declarator", "text": "*sem", "parent": 46, "children": [51, 52], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 52, "type": "identifier", "text": "sem", "parent": 50, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 32}}, {"id": 53, "type": "parameter_declaration", "text": "unsigned int initial_count", "parent": 45, "children": [54, 57], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 60}}, {"id": 54, "type": "sized_type_specifier", "text": "unsigned int", "parent": 53, "children": [55, 56], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 46}}, {"id": 55, "type": "unsigned", "text": "unsigned", "parent": 54, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 42}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 46}}, {"id": 57, "type": "identifier", "text": "initial_count", "parent": 53, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 60}}, {"id": 58, "type": "parameter_declaration", "text": "unsigned int limit", "parent": 45, "children": [59, 62], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 33}}, {"id": 59, "type": "sized_type_specifier", "text": "unsigned int", "parent": 58, "children": [60, 61], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 27}}, {"id": 60, "type": "unsigned", "text": "unsigned", "parent": 59, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 23}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 27}}, {"id": 62, "type": "identifier", "text": "limit", "parent": 58, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 33}}, {"id": 63, "type": "declaration", "text": "int ret;", "parent": 41, "children": [64, 65], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 64, "type": "primitive_type", "text": "int", "parent": 63, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 65, "type": "identifier", "text": "ret", "parent": 63, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 66, "type": "if_statement", "text": "if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }", "parent": 41, "children": [67], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 30, "column": 5}}, {"id": 67, "type": "parenthesized_expression", "text": "(NULL == sem)", "parent": 66, "children": [68], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 20}}, {"id": 68, "type": "binary_expression", "text": "NULL == sem", "parent": 67, "children": [69, 71, 72], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 19}}, {"id": 69, "type": "null", "text": "NULL", "parent": 68, "children": [70], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 70, "type": "NULL", "text": "NULL", "parent": 69, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 71, "type": "==", "text": "==", "parent": 68, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 15}}, {"id": 72, "type": "identifier", "text": "sem", "parent": 68, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 19}}, {"id": 73, "type": "call_expression", "text": "BT_ERR(\"sem is NULL\\n\")", "parent": 66, "children": [74, 75], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 31}}, {"id": 74, "type": "identifier", "text": "BT_ERR", "parent": 73, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 75, "type": "argument_list", "text": "(\"sem is NULL\\n\")", "parent": 73, "children": [76], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 31}}, {"id": 76, "type": "string_literal", "text": "\"sem is NULL\\n\"", "parent": 75, "children": [77], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 30}}, {"id": 77, "type": "escape_sequence", "text": "\\n", "parent": 76, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 29}}, {"id": 78, "type": "return_statement", "text": "return -EINVAL;", "parent": 66, "children": [79], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 23}}, {"id": 79, "type": "unary_expression", "text": "-EINVAL", "parent": 78, "children": [80, 81], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 22}}, {"id": 80, "type": "-", "text": "-", "parent": 79, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 81, "type": "identifier", "text": "EINVAL", "parent": 79, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 22}}, {"id": 82, "type": "assignment_expression", "text": "ret = krhino_sem_create(&sem->sem, \"ble\", initial_count)", "parent": 41, "children": [83, 84, 85], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 60}}, {"id": 83, "type": "identifier", "text": "ret", "parent": 82, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 7}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 9}}, {"id": 85, "type": "call_expression", "text": "krhino_sem_create(&sem->sem, \"ble\", initial_count)", "parent": 82, "children": [86, 87], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 60}}, {"id": 86, "type": "identifier", "text": "krhino_sem_create", "parent": 85, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 27}}, {"id": 87, "type": "argument_list", "text": "(&sem->sem, \"ble\", initial_count)", "parent": 85, "children": [88, 92, 93], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 60}}, {"id": 88, "type": "pointer_expression", "text": "&sem->sem", "parent": 87, "children": [89], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 37}}, {"id": 89, "type": "field_expression", "text": "sem->sem", "parent": 88, "children": [90, 91], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 37}}, {"id": 90, "type": "identifier", "text": "sem", "parent": 89, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 32}}, {"id": 91, "type": "field_identifier", "text": "sem", "parent": 89, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 37}}, {"id": 92, "type": "string_literal", "text": "\"ble\"", "parent": 87, "children": [], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 44}}, {"id": 93, "type": "identifier", "text": "initial_count", "parent": 87, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 59}}, {"id": 94, "type": "call_expression", "text": "sys_dlist_init(&sem->poll_events)", "parent": 41, "children": [95, 96], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 37}}, {"id": 95, "type": "identifier", "text": "sys_dlist_init", "parent": 94, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 18}}, {"id": 96, "type": "argument_list", "text": "(&sem->poll_events)", "parent": 94, "children": [97], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 37}}, {"id": 97, "type": "pointer_expression", "text": "&sem->poll_events", "parent": 96, "children": [98], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 36}}, {"id": 98, "type": "field_expression", "text": "sem->poll_events", "parent": 97, "children": [99, 100], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 36}}, {"id": 99, "type": "identifier", "text": "sem", "parent": 98, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 23}}, {"id": 100, "type": "field_identifier", "text": "poll_events", "parent": 98, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 36}}, {"id": 101, "type": "return_statement", "text": "return ret;", "parent": 41, "children": [102], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 15}}, {"id": 102, "type": "identifier", "text": "ret", "parent": 101, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 14}}, {"id": 103, "type": "function_definition", "text": "int k_sem_take(struct k_sem *sem, uint32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n return krhino_sem_take(&sem->sem, ticks);\n}", "parent": null, "children": [104, 105], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 3}}, {"id": 105, "type": "function_declarator", "text": "k_sem_take(struct k_sem *sem, uint32_t timeout)", "parent": 103, "children": [106, 107], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 51}}, {"id": 106, "type": "identifier", "text": "k_sem_take", "parent": 105, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 14}}, {"id": 107, "type": "parameter_list", "text": "(struct k_sem *sem, uint32_t timeout)", "parent": 105, "children": [108, 115], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 51}}, {"id": 108, "type": "parameter_declaration", "text": "struct k_sem *sem", "parent": 107, "children": [109, 112], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 32}}, {"id": 109, "type": "struct_specifier", "text": "struct k_sem", "parent": 108, "children": [110, 111], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 27}}, {"id": 110, "type": "struct", "text": "struct", "parent": 109, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 21}}, {"id": 111, "type": "type_identifier", "text": "k_sem", "parent": 109, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 27}}, {"id": 112, "type": "pointer_declarator", "text": "*sem", "parent": 108, "children": [113, 114], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 32}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 29}}, {"id": 114, "type": "identifier", "text": "sem", "parent": 112, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 32}}, {"id": 115, "type": "parameter_declaration", "text": "uint32_t timeout", "parent": 107, "children": [116, 117], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 50}}, {"id": 116, "type": "primitive_type", "text": "uint32_t", "parent": 115, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 42}}, {"id": 117, "type": "identifier", "text": "timeout", "parent": 115, "children": [], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 50}}, {"id": 118, "type": "declaration", "text": "tick_t ticks;", "parent": 103, "children": [119, 120], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 17}}, {"id": 119, "type": "type_identifier", "text": "tick_t", "parent": 118, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 120, "type": "identifier", "text": "ticks", "parent": 118, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 16}}, {"id": 121, "type": "if_statement", "text": "if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }", "parent": 103, "children": [122, 131], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 122, "type": "parenthesized_expression", "text": "(timeout == K_FOREVER)", "parent": 121, "children": [123], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 29}}, {"id": 123, "type": "binary_expression", "text": "timeout == K_FOREVER", "parent": 122, "children": [124, 125, 126], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 28}}, {"id": 124, "type": "identifier", "text": "timeout", "parent": 123, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 15}}, {"id": 125, "type": "==", "text": "==", "parent": 123, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 18}}, {"id": 126, "type": "identifier", "text": "K_FOREVER", "parent": 123, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 28}}, {"id": 127, "type": "assignment_expression", "text": "ticks = RHINO_WAIT_FOREVER", "parent": 121, "children": [128, 129, 130], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 34}}, {"id": 128, "type": "identifier", "text": "ticks", "parent": 127, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 13}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 130, "type": "identifier", "text": "RHINO_WAIT_FOREVER", "parent": 127, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 34}}, {"id": 131, "type": "else_clause", "text": "else {\n ticks = krhino_ms_to_ticks(timeout);\n }", "parent": 121, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 45, "column": 5}}, {"id": 132, "type": "assignment_expression", "text": "ticks = krhino_ms_to_ticks(timeout)", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 43}}, {"id": 133, "type": "identifier", "text": "ticks", "parent": 132, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 135, "type": "call_expression", "text": "krhino_ms_to_ticks(timeout)", "parent": 132, "children": [136, 137], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 43}}, {"id": 136, "type": "identifier", "text": "krhino_ms_to_ticks", "parent": 135, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 34}}, {"id": 137, "type": "argument_list", "text": "(timeout)", "parent": 135, "children": [138], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 43}}, {"id": 138, "type": "identifier", "text": "timeout", "parent": 137, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 42}}, {"id": 139, "type": "return_statement", "text": "return krhino_sem_take(&sem->sem, ticks);", "parent": 103, "children": [140], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 45}}, {"id": 140, "type": "call_expression", "text": "krhino_sem_take(&sem->sem, ticks)", "parent": 139, "children": [141, 142], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 44}}, {"id": 141, "type": "identifier", "text": "krhino_sem_take", "parent": 140, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 26}}, {"id": 142, "type": "argument_list", "text": "(&sem->sem, ticks)", "parent": 140, "children": [143, 147], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 44}}, {"id": 143, "type": "pointer_expression", "text": "&sem->sem", "parent": 142, "children": [144], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 36}}, {"id": 144, "type": "field_expression", "text": "sem->sem", "parent": 143, "children": [145, 146], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 36}}, {"id": 145, "type": "identifier", "text": "sem", "parent": 144, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 31}}, {"id": 146, "type": "field_identifier", "text": "sem", "parent": 144, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 36}}, {"id": 147, "type": "identifier", "text": "ticks", "parent": 142, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 43}}, {"id": 148, "type": "function_definition", "text": "int k_sem_give(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n krhino_sem_give(&sem->sem);\n return 0;\n}", "parent": null, "children": [149, 150], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 149, "type": "primitive_type", "text": "int", "parent": 148, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 150, "type": "function_declarator", "text": "k_sem_give(struct k_sem *sem)", "parent": 148, "children": [151, 152], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 33}}, {"id": 151, "type": "identifier", "text": "k_sem_give", "parent": 150, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 14}}, {"id": 152, "type": "parameter_list", "text": "(struct k_sem *sem)", "parent": 150, "children": [153], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 33}}, {"id": 153, "type": "parameter_declaration", "text": "struct k_sem *sem", "parent": 152, "children": [154, 157], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 32}}, {"id": 154, "type": "struct_specifier", "text": "struct k_sem", "parent": 153, "children": [155, 156], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 27}}, {"id": 155, "type": "struct", "text": "struct", "parent": 154, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 21}}, {"id": 156, "type": "type_identifier", "text": "k_sem", "parent": 154, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 27}}, {"id": 157, "type": "pointer_declarator", "text": "*sem", "parent": 153, "children": [158, 159], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 32}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 29}}, {"id": 159, "type": "identifier", "text": "sem", "parent": 157, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 32}}, {"id": 160, "type": "if_statement", "text": "if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }", "parent": 148, "children": [161], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 161, "type": "parenthesized_expression", "text": "(NULL == sem)", "parent": 160, "children": [162], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 20}}, {"id": 162, "type": "binary_expression", "text": "NULL == sem", "parent": 161, "children": [163, 165, 166], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 19}}, {"id": 163, "type": "null", "text": "NULL", "parent": 162, "children": [164], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 164, "type": "NULL", "text": "NULL", "parent": 163, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 165, "type": "==", "text": "==", "parent": 162, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 15}}, {"id": 166, "type": "identifier", "text": "sem", "parent": 162, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 19}}, {"id": 167, "type": "call_expression", "text": "BT_ERR(\"sem is NULL\\n\")", "parent": 160, "children": [168, 169], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 31}}, {"id": 168, "type": "identifier", "text": "BT_ERR", "parent": 167, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 14}}, {"id": 169, "type": "argument_list", "text": "(\"sem is NULL\\n\")", "parent": 167, "children": [170], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 31}}, {"id": 170, "type": "string_literal", "text": "\"sem is NULL\\n\"", "parent": 169, "children": [171], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 30}}, {"id": 171, "type": "escape_sequence", "text": "\\n", "parent": 170, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 29}}, {"id": 172, "type": "return_statement", "text": "return -EINVAL;", "parent": 160, "children": [173], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 23}}, {"id": 173, "type": "unary_expression", "text": "-EINVAL", "parent": 172, "children": [174, 175], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 22}}, {"id": 174, "type": "-", "text": "-", "parent": 173, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 175, "type": "identifier", "text": "EINVAL", "parent": 173, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 22}}, {"id": 176, "type": "call_expression", "text": "krhino_sem_give(&sem->sem)", "parent": 148, "children": [177, 178], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 30}}, {"id": 177, "type": "identifier", "text": "krhino_sem_give", "parent": 176, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 19}}, {"id": 178, "type": "argument_list", "text": "(&sem->sem)", "parent": 176, "children": [179], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 30}}, {"id": 179, "type": "pointer_expression", "text": "&sem->sem", "parent": 178, "children": [180], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 29}}, {"id": 180, "type": "field_expression", "text": "sem->sem", "parent": 179, "children": [181, 182], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 29}}, {"id": 181, "type": "identifier", "text": "sem", "parent": 180, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 24}}, {"id": 182, "type": "field_identifier", "text": "sem", "parent": 180, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 29}}, {"id": 183, "type": "return_statement", "text": "return 0;", "parent": 148, "children": [184], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 13}}, {"id": 184, "type": "number_literal", "text": "0", "parent": 183, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 185, "type": "function_definition", "text": "int k_sem_delete(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n krhino_sem_del(&sem->sem);\n return 0;\n}", "parent": null, "children": [186, 187], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 186, "type": "primitive_type", "text": "int", "parent": 185, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 187, "type": "function_declarator", "text": "k_sem_delete(struct k_sem *sem)", "parent": 185, "children": [188, 189], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 35}}, {"id": 188, "type": "identifier", "text": "k_sem_delete", "parent": 187, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 16}}, {"id": 189, "type": "parameter_list", "text": "(struct k_sem *sem)", "parent": 187, "children": [190], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 35}}, {"id": 190, "type": "parameter_declaration", "text": "struct k_sem *sem", "parent": 189, "children": [191, 194], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 34}}, {"id": 191, "type": "struct_specifier", "text": "struct k_sem", "parent": 190, "children": [192, 193], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 29}}, {"id": 192, "type": "struct", "text": "struct", "parent": 191, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 23}}, {"id": 193, "type": "type_identifier", "text": "k_sem", "parent": 191, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 29}}, {"id": 194, "type": "pointer_declarator", "text": "*sem", "parent": 190, "children": [195, 196], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 34}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 31}}, {"id": 196, "type": "identifier", "text": "sem", "parent": 194, "children": [], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 34}}, {"id": 197, "type": "if_statement", "text": "if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }", "parent": 185, "children": [198], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 198, "type": "parenthesized_expression", "text": "(NULL == sem)", "parent": 197, "children": [199], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 20}}, {"id": 199, "type": "binary_expression", "text": "NULL == sem", "parent": 198, "children": [200, 202, 203], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 19}}, {"id": 200, "type": "null", "text": "NULL", "parent": 199, "children": [201], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 201, "type": "NULL", "text": "NULL", "parent": 200, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 202, "type": "==", "text": "==", "parent": 199, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 15}}, {"id": 203, "type": "identifier", "text": "sem", "parent": 199, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 19}}, {"id": 204, "type": "call_expression", "text": "BT_ERR(\"sem is NULL\\n\")", "parent": 197, "children": [205, 206], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 31}}, {"id": 205, "type": "identifier", "text": "BT_ERR", "parent": 204, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 206, "type": "argument_list", "text": "(\"sem is NULL\\n\")", "parent": 204, "children": [207], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 31}}, {"id": 207, "type": "string_literal", "text": "\"sem is NULL\\n\"", "parent": 206, "children": [208], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 30}}, {"id": 208, "type": "escape_sequence", "text": "\\n", "parent": 207, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 29}}, {"id": 209, "type": "return_statement", "text": "return -EINVAL;", "parent": 197, "children": [210], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 23}}, {"id": 210, "type": "unary_expression", "text": "-EINVAL", "parent": 209, "children": [211, 212], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 22}}, {"id": 211, "type": "-", "text": "-", "parent": 210, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 16}}, {"id": 212, "type": "identifier", "text": "EINVAL", "parent": 210, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 22}}, {"id": 213, "type": "call_expression", "text": "krhino_sem_del(&sem->sem)", "parent": 185, "children": [214, 215], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 29}}, {"id": 214, "type": "identifier", "text": "krhino_sem_del", "parent": 213, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 18}}, {"id": 215, "type": "argument_list", "text": "(&sem->sem)", "parent": 213, "children": [216], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 29}}, {"id": 216, "type": "pointer_expression", "text": "&sem->sem", "parent": 215, "children": [217], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 28}}, {"id": 217, "type": "field_expression", "text": "sem->sem", "parent": 216, "children": [218, 219], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 28}}, {"id": 218, "type": "identifier", "text": "sem", "parent": 217, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 23}}, {"id": 219, "type": "field_identifier", "text": "sem", "parent": 217, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 28}}, {"id": 220, "type": "return_statement", "text": "return 0;", "parent": 185, "children": [221], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 221, "type": "number_literal", "text": "0", "parent": 220, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 12}}, {"id": 222, "type": "function_definition", "text": "unsigned int k_sem_count_get(struct k_sem *sem)\n{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif\n return 0;\n}", "parent": null, "children": [223, 226], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 80, "column": 1}}, {"id": 223, "type": "sized_type_specifier", "text": "unsigned int", "parent": 222, "children": [224, 225], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 12}}, {"id": 224, "type": "unsigned", "text": "unsigned", "parent": 223, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 225, "type": "primitive_type", "text": "int", "parent": 223, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 12}}, {"id": 226, "type": "function_declarator", "text": "k_sem_count_get(struct k_sem *sem)", "parent": 222, "children": [227, 228], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 47}}, {"id": 227, "type": "identifier", "text": "k_sem_count_get", "parent": 226, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 28}}, {"id": 228, "type": "parameter_list", "text": "(struct k_sem *sem)", "parent": 226, "children": [229], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 47}}, {"id": 229, "type": "parameter_declaration", "text": "struct k_sem *sem", "parent": 228, "children": [230, 233], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 46}}, {"id": 230, "type": "struct_specifier", "text": "struct k_sem", "parent": 229, "children": [231, 232], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 41}}, {"id": 231, "type": "struct", "text": "struct", "parent": 230, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 35}}, {"id": 232, "type": "type_identifier", "text": "k_sem", "parent": 230, "children": [], "start_point": {"row": 71, "column": 36}, "end_point": {"row": 71, "column": 41}}, {"id": 233, "type": "pointer_declarator", "text": "*sem", "parent": 229, "children": [234, 235], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 46}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 43}}, {"id": 235, "type": "identifier", "text": "sem", "parent": 233, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 46}}, {"id": 236, "type": "preproc_ifdef", "text": "#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif", "parent": 222, "children": [237, 238, 239, 251, 256], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 237, "type": "#ifdef", "text": "#ifdef", "parent": 236, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 6}}, {"id": 238, "type": "identifier", "text": "OSAL_RHINO", "parent": 236, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 17}}, {"id": 239, "type": "declaration", "text": "sem_count_t count;", "parent": 236, "children": [240, 241], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 22}}, {"id": 240, "type": "type_identifier", "text": "sem_count_t", "parent": 239, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 15}}, {"id": 241, "type": "identifier", "text": "count", "parent": 239, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 21}}, {"id": 242, "type": "call_expression", "text": "krhino_sem_count_get(&sem->sem, &count)", "parent": 236, "children": [243, 244], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 43}}, {"id": 243, "type": "identifier", "text": "krhino_sem_count_get", "parent": 242, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 24}}, {"id": 244, "type": "argument_list", "text": "(&sem->sem, &count)", "parent": 242, "children": [245, 249], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 43}}, {"id": 245, "type": "pointer_expression", "text": "&sem->sem", "parent": 244, "children": [246], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 34}}, {"id": 246, "type": "field_expression", "text": "sem->sem", "parent": 245, "children": [247, 248], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 34}}, {"id": 247, "type": "identifier", "text": "sem", "parent": 246, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 29}}, {"id": 248, "type": "field_identifier", "text": "sem", "parent": 246, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 34}}, {"id": 249, "type": "pointer_expression", "text": "&count", "parent": 244, "children": [250], "start_point": {"row": 76, "column": 36}, "end_point": {"row": 76, "column": 42}}, {"id": 250, "type": "identifier", "text": "count", "parent": 249, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 42}}, {"id": 251, "type": "return_statement", "text": "return (int)count;", "parent": 236, "children": [252], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 22}}, {"id": 252, "type": "cast_expression", "text": "(int)count", "parent": 251, "children": [253, 255], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 21}}, {"id": 253, "type": "type_descriptor", "text": "int", "parent": 252, "children": [254], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 15}}, {"id": 254, "type": "primitive_type", "text": "int", "parent": 253, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 15}}, {"id": 255, "type": "identifier", "text": "count", "parent": 252, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 21}}, {"id": 256, "type": "#endif", "text": "#endif", "parent": 236, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 257, "type": "return_statement", "text": "return 0;", "parent": 222, "children": [258], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 13}}, {"id": 258, "type": "number_literal", "text": "0", "parent": 257, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 12}}, {"id": 259, "type": "function_definition", "text": "void k_mutex_init(struct k_mutex *mutex)\n{\n int stat;\n if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }\n\n stat = krhino_mutex_create(&mutex->mutex, \"ble\");\n if(stat){\n BT_ERR(\"mutex buffer over\\n\");\n }\n sys_dlist_init(&mutex->poll_events);\n return;\n}", "parent": null, "children": [260, 261], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 260, "type": "primitive_type", "text": "void", "parent": 259, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 4}}, {"id": 261, "type": "function_declarator", "text": "k_mutex_init(struct k_mutex *mutex)", "parent": 259, "children": [262, 263], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 40}}, {"id": 262, "type": "identifier", "text": "k_mutex_init", "parent": 261, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 17}}, {"id": 263, "type": "parameter_list", "text": "(struct k_mutex *mutex)", "parent": 261, "children": [264], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 40}}, {"id": 264, "type": "parameter_declaration", "text": "struct k_mutex *mutex", "parent": 263, "children": [265, 268], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 39}}, {"id": 265, "type": "struct_specifier", "text": "struct k_mutex", "parent": 264, "children": [266, 267], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 32}}, {"id": 266, "type": "struct", "text": "struct", "parent": 265, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 24}}, {"id": 267, "type": "type_identifier", "text": "k_mutex", "parent": 265, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 32}}, {"id": 268, "type": "pointer_declarator", "text": "*mutex", "parent": 264, "children": [269, 270], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 39}}, {"id": 269, "type": "*", "text": "*", "parent": 268, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 34}}, {"id": 270, "type": "identifier", "text": "mutex", "parent": 268, "children": [], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 39}}, {"id": 271, "type": "declaration", "text": "int stat;", "parent": 259, "children": [272, 273], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 13}}, {"id": 272, "type": "primitive_type", "text": "int", "parent": 271, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 7}}, {"id": 273, "type": "identifier", "text": "stat", "parent": 271, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 12}}, {"id": 274, "type": "if_statement", "text": "if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }", "parent": 259, "children": [275], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 275, "type": "parenthesized_expression", "text": "(NULL == mutex)", "parent": 274, "children": [276], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 22}}, {"id": 276, "type": "binary_expression", "text": "NULL == mutex", "parent": 275, "children": [277, 279, 280], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 21}}, {"id": 277, "type": "null", "text": "NULL", "parent": 276, "children": [278], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 12}}, {"id": 278, "type": "NULL", "text": "NULL", "parent": 277, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 12}}, {"id": 279, "type": "==", "text": "==", "parent": 276, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 280, "type": "identifier", "text": "mutex", "parent": 276, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 21}}, {"id": 281, "type": "call_expression", "text": "BT_ERR(\"mutex is NULL\\n\")", "parent": 274, "children": [282, 283], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 33}}, {"id": 282, "type": "identifier", "text": "BT_ERR", "parent": 281, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 14}}, {"id": 283, "type": "argument_list", "text": "(\"mutex is NULL\\n\")", "parent": 281, "children": [284], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 33}}, {"id": 284, "type": "string_literal", "text": "\"mutex is NULL\\n\"", "parent": 283, "children": [285], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 32}}, {"id": 285, "type": "escape_sequence", "text": "\\n", "parent": 284, "children": [], "start_point": {"row": 87, "column": 29}, "end_point": {"row": 87, "column": 31}}, {"id": 286, "type": "return_statement", "text": "return;", "parent": 274, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 15}}, {"id": 287, "type": "assignment_expression", "text": "stat = krhino_mutex_create(&mutex->mutex, \"ble\")", "parent": 259, "children": [288, 289, 290], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 52}}, {"id": 288, "type": "identifier", "text": "stat", "parent": 287, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 8}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 10}}, {"id": 290, "type": "call_expression", "text": "krhino_mutex_create(&mutex->mutex, \"ble\")", "parent": 287, "children": [291, 292], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 52}}, {"id": 291, "type": "identifier", "text": "krhino_mutex_create", "parent": 290, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 30}}, {"id": 292, "type": "argument_list", "text": "(&mutex->mutex, \"ble\")", "parent": 290, "children": [293, 297], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 52}}, {"id": 293, "type": "pointer_expression", "text": "&mutex->mutex", "parent": 292, "children": [294], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 44}}, {"id": 294, "type": "field_expression", "text": "mutex->mutex", "parent": 293, "children": [295, 296], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 44}}, {"id": 295, "type": "identifier", "text": "mutex", "parent": 294, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 37}}, {"id": 296, "type": "field_identifier", "text": "mutex", "parent": 294, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 44}}, {"id": 297, "type": "string_literal", "text": "\"ble\"", "parent": 292, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 51}}, {"id": 298, "type": "if_statement", "text": "if(stat){\n BT_ERR(\"mutex buffer over\\n\");\n }", "parent": 259, "children": [299], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 94, "column": 5}}, {"id": 299, "type": "parenthesized_expression", "text": "(stat)", "parent": 298, "children": [300], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 12}}, {"id": 300, "type": "identifier", "text": "stat", "parent": 299, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 11}}, {"id": 301, "type": "call_expression", "text": "BT_ERR(\"mutex buffer over\\n\")", "parent": 298, "children": [302, 303], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 37}}, {"id": 302, "type": "identifier", "text": "BT_ERR", "parent": 301, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 14}}, {"id": 303, "type": "argument_list", "text": "(\"mutex buffer over\\n\")", "parent": 301, "children": [304], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 37}}, {"id": 304, "type": "string_literal", "text": "\"mutex buffer over\\n\"", "parent": 303, "children": [305], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 36}}, {"id": 305, "type": "escape_sequence", "text": "\\n", "parent": 304, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 35}}, {"id": 306, "type": "call_expression", "text": "sys_dlist_init(&mutex->poll_events)", "parent": 259, "children": [307, 308], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 39}}, {"id": 307, "type": "identifier", "text": "sys_dlist_init", "parent": 306, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 18}}, {"id": 308, "type": "argument_list", "text": "(&mutex->poll_events)", "parent": 306, "children": [309], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 39}}, {"id": 309, "type": "pointer_expression", "text": "&mutex->poll_events", "parent": 308, "children": [310], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 38}}, {"id": 310, "type": "field_expression", "text": "mutex->poll_events", "parent": 309, "children": [311, 312], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 38}}, {"id": 311, "type": "identifier", "text": "mutex", "parent": 310, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 25}}, {"id": 312, "type": "field_identifier", "text": "poll_events", "parent": 310, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 38}}, {"id": 313, "type": "return_statement", "text": "return;", "parent": 259, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 11}}, {"id": 314, "type": "function_definition", "text": "int k_mutex_lock(struct k_mutex *mutex, s32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n\n return krhino_mutex_lock(&mutex->mutex, ticks);\n}", "parent": null, "children": [315, 316], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 315, "type": "primitive_type", "text": "int", "parent": 314, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 3}}, {"id": 316, "type": "function_declarator", "text": "k_mutex_lock(struct k_mutex *mutex, s32_t timeout)", "parent": 314, "children": [317, 318], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 54}}, {"id": 317, "type": "identifier", "text": "k_mutex_lock", "parent": 316, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 16}}, {"id": 318, "type": "parameter_list", "text": "(struct k_mutex *mutex, s32_t timeout)", "parent": 316, "children": [319, 326], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 54}}, {"id": 319, "type": "parameter_declaration", "text": "struct k_mutex *mutex", "parent": 318, "children": [320, 323], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 38}}, {"id": 320, "type": "struct_specifier", "text": "struct k_mutex", "parent": 319, "children": [321, 322], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 31}}, {"id": 321, "type": "struct", "text": "struct", "parent": 320, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 23}}, {"id": 322, "type": "type_identifier", "text": "k_mutex", "parent": 320, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 31}}, {"id": 323, "type": "pointer_declarator", "text": "*mutex", "parent": 319, "children": [324, 325], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 38}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 33}}, {"id": 325, "type": "identifier", "text": "mutex", "parent": 323, "children": [], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 38}}, {"id": 326, "type": "parameter_declaration", "text": "s32_t timeout", "parent": 318, "children": [327, 328], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 53}}, {"id": 327, "type": "type_identifier", "text": "s32_t", "parent": 326, "children": [], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 45}}, {"id": 328, "type": "identifier", "text": "timeout", "parent": 326, "children": [], "start_point": {"row": 99, "column": 46}, "end_point": {"row": 99, "column": 53}}, {"id": 329, "type": "declaration", "text": "tick_t ticks;", "parent": 314, "children": [330, 331], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 17}}, {"id": 330, "type": "type_identifier", "text": "tick_t", "parent": 329, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 10}}, {"id": 331, "type": "identifier", "text": "ticks", "parent": 329, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 16}}, {"id": 332, "type": "if_statement", "text": "if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }", "parent": 314, "children": [333, 342], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 107, "column": 5}}, {"id": 333, "type": "parenthesized_expression", "text": "(timeout == K_FOREVER)", "parent": 332, "children": [334], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 29}}, {"id": 334, "type": "binary_expression", "text": "timeout == K_FOREVER", "parent": 333, "children": [335, 336, 337], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 28}}, {"id": 335, "type": "identifier", "text": "timeout", "parent": 334, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 15}}, {"id": 336, "type": "==", "text": "==", "parent": 334, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 18}}, {"id": 337, "type": "identifier", "text": "K_FOREVER", "parent": 334, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 28}}, {"id": 338, "type": "assignment_expression", "text": "ticks = RHINO_WAIT_FOREVER", "parent": 332, "children": [339, 340, 341], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 34}}, {"id": 339, "type": "identifier", "text": "ticks", "parent": 338, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 13}}, {"id": 340, "type": "=", "text": "=", "parent": 338, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 15}}, {"id": 341, "type": "identifier", "text": "RHINO_WAIT_FOREVER", "parent": 338, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 34}}, {"id": 342, "type": "else_clause", "text": "else {\n ticks = krhino_ms_to_ticks(timeout);\n }", "parent": 332, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 107, "column": 5}}, {"id": 343, "type": "assignment_expression", "text": "ticks = krhino_ms_to_ticks(timeout)", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 43}}, {"id": 344, "type": "identifier", "text": "ticks", "parent": 343, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 13}}, {"id": 345, "type": "=", "text": "=", "parent": 343, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 15}}, {"id": 346, "type": "call_expression", "text": "krhino_ms_to_ticks(timeout)", "parent": 343, "children": [347, 348], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 43}}, {"id": 347, "type": "identifier", "text": "krhino_ms_to_ticks", "parent": 346, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 34}}, {"id": 348, "type": "argument_list", "text": "(timeout)", "parent": 346, "children": [349], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 43}}, {"id": 349, "type": "identifier", "text": "timeout", "parent": 348, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 42}}, {"id": 350, "type": "return_statement", "text": "return krhino_mutex_lock(&mutex->mutex, ticks);", "parent": 314, "children": [351], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 51}}, {"id": 351, "type": "call_expression", "text": "krhino_mutex_lock(&mutex->mutex, ticks)", "parent": 350, "children": [352, 353], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 50}}, {"id": 352, "type": "identifier", "text": "krhino_mutex_lock", "parent": 351, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 28}}, {"id": 353, "type": "argument_list", "text": "(&mutex->mutex, ticks)", "parent": 351, "children": [354, 358], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 50}}, {"id": 354, "type": "pointer_expression", "text": "&mutex->mutex", "parent": 353, "children": [355], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 42}}, {"id": 355, "type": "field_expression", "text": "mutex->mutex", "parent": 354, "children": [356, 357], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 42}}, {"id": 356, "type": "identifier", "text": "mutex", "parent": 355, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 35}}, {"id": 357, "type": "field_identifier", "text": "mutex", "parent": 355, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 42}}, {"id": 358, "type": "identifier", "text": "ticks", "parent": 353, "children": [], "start_point": {"row": 109, "column": 44}, "end_point": {"row": 109, "column": 49}}, {"id": 359, "type": "function_definition", "text": "void k_mutex_unlock(struct k_mutex *mutex)\n{\n if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }\n\n krhino_mutex_unlock(&mutex->mutex);\n}", "parent": null, "children": [360, 361], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 360, "type": "primitive_type", "text": "void", "parent": 359, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 4}}, {"id": 361, "type": "function_declarator", "text": "k_mutex_unlock(struct k_mutex *mutex)", "parent": 359, "children": [362, 363], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 42}}, {"id": 362, "type": "identifier", "text": "k_mutex_unlock", "parent": 361, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 19}}, {"id": 363, "type": "parameter_list", "text": "(struct k_mutex *mutex)", "parent": 361, "children": [364], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 42}}, {"id": 364, "type": "parameter_declaration", "text": "struct k_mutex *mutex", "parent": 363, "children": [365, 368], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 41}}, {"id": 365, "type": "struct_specifier", "text": "struct k_mutex", "parent": 364, "children": [366, 367], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 34}}, {"id": 366, "type": "struct", "text": "struct", "parent": 365, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 26}}, {"id": 367, "type": "type_identifier", "text": "k_mutex", "parent": 365, "children": [], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 34}}, {"id": 368, "type": "pointer_declarator", "text": "*mutex", "parent": 364, "children": [369, 370], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 41}}, {"id": 369, "type": "*", "text": "*", "parent": 368, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 36}}, {"id": 370, "type": "identifier", "text": "mutex", "parent": 368, "children": [], "start_point": {"row": 112, "column": 36}, "end_point": {"row": 112, "column": 41}}, {"id": 371, "type": "if_statement", "text": "if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }", "parent": 359, "children": [372], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 117, "column": 5}}, {"id": 372, "type": "parenthesized_expression", "text": "(NULL == mutex)", "parent": 371, "children": [373], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 22}}, {"id": 373, "type": "binary_expression", "text": "NULL == mutex", "parent": 372, "children": [374, 376, 377], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 21}}, {"id": 374, "type": "null", "text": "NULL", "parent": 373, "children": [375], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 12}}, {"id": 375, "type": "NULL", "text": "NULL", "parent": 374, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 12}}, {"id": 376, "type": "==", "text": "==", "parent": 373, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 15}}, {"id": 377, "type": "identifier", "text": "mutex", "parent": 373, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 21}}, {"id": 378, "type": "call_expression", "text": "BT_ERR(\"mutex is NULL\\n\")", "parent": 371, "children": [379, 380], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 33}}, {"id": 379, "type": "identifier", "text": "BT_ERR", "parent": 378, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 380, "type": "argument_list", "text": "(\"mutex is NULL\\n\")", "parent": 378, "children": [381], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 33}}, {"id": 381, "type": "string_literal", "text": "\"mutex is NULL\\n\"", "parent": 380, "children": [382], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 32}}, {"id": 382, "type": "escape_sequence", "text": "\\n", "parent": 381, "children": [], "start_point": {"row": 115, "column": 29}, "end_point": {"row": 115, "column": 31}}, {"id": 383, "type": "return_statement", "text": "return;", "parent": 371, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 15}}, {"id": 384, "type": "call_expression", "text": "krhino_mutex_unlock(&mutex->mutex)", "parent": 359, "children": [385, 386], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 38}}, {"id": 385, "type": "identifier", "text": "krhino_mutex_unlock", "parent": 384, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 23}}, {"id": 386, "type": "argument_list", "text": "(&mutex->mutex)", "parent": 384, "children": [387], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 38}}, {"id": 387, "type": "pointer_expression", "text": "&mutex->mutex", "parent": 386, "children": [388], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 37}}, {"id": 388, "type": "field_expression", "text": "mutex->mutex", "parent": 387, "children": [389, 390], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 37}}, {"id": 389, "type": "identifier", "text": "mutex", "parent": 388, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 30}}, {"id": 390, "type": "field_identifier", "text": "mutex", "parent": 388, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 37}}, {"id": 391, "type": "function_definition", "text": "int64_t k_uptime_get()\n{\n return aos_now_ms();\n}", "parent": null, "children": [392, 393], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 125, "column": 1}}, {"id": 392, "type": "primitive_type", "text": "int64_t", "parent": 391, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 7}}, {"id": 393, "type": "function_declarator", "text": "k_uptime_get()", "parent": 391, "children": [394, 395], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 22}}, {"id": 394, "type": "identifier", "text": "k_uptime_get", "parent": 393, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 20}}, {"id": 395, "type": "parameter_list", "text": "()", "parent": 393, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 22}}, {"id": 396, "type": "return_statement", "text": "return aos_now_ms();", "parent": 391, "children": [397], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 24}}, {"id": 397, "type": "call_expression", "text": "aos_now_ms()", "parent": 396, "children": [398, 399], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 23}}, {"id": 398, "type": "identifier", "text": "aos_now_ms", "parent": 397, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 21}}, {"id": 399, "type": "argument_list", "text": "()", "parent": 397, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 23}}, {"id": 400, "type": "function_definition", "text": "u32_t k_uptime_get_32()\n{\n return (u32_t)aos_now_ms();\n}", "parent": null, "children": [401, 402], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 130, "column": 1}}, {"id": 401, "type": "type_identifier", "text": "u32_t", "parent": 400, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 5}}, {"id": 402, "type": "function_declarator", "text": "k_uptime_get_32()", "parent": 400, "children": [403, 404], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 23}}, {"id": 403, "type": "identifier", "text": "k_uptime_get_32", "parent": 402, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 21}}, {"id": 404, "type": "parameter_list", "text": "()", "parent": 402, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 23}}, {"id": 405, "type": "return_statement", "text": "return (u32_t)aos_now_ms();", "parent": 400, "children": [406], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 31}}, {"id": 406, "type": "cast_expression", "text": "(u32_t)aos_now_ms()", "parent": 405, "children": [407, 409], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 30}}, {"id": 407, "type": "type_descriptor", "text": "u32_t", "parent": 406, "children": [408], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 17}}, {"id": 408, "type": "type_identifier", "text": "u32_t", "parent": 407, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 17}}, {"id": 409, "type": "call_expression", "text": "aos_now_ms()", "parent": 406, "children": [410, 411], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 30}}, {"id": 410, "type": "identifier", "text": "aos_now_ms", "parent": 409, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 28}}, {"id": 411, "type": "argument_list", "text": "()", "parent": 409, "children": [], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 30}}, {"id": 412, "type": "type_definition", "text": "typedef void (*task_entry_t)(void *args);", "parent": null, "children": [413, 414, 415], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 41}}, {"id": 413, "type": "typedef", "text": "typedef", "parent": 412, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 414, "type": "primitive_type", "text": "void", "parent": 412, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 12}}, {"id": 415, "type": "function_declarator", "text": "(*task_entry_t)(void *args)", "parent": 412, "children": [416, 420], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 40}}, {"id": 416, "type": "parenthesized_declarator", "text": "(*task_entry_t)", "parent": 415, "children": [417], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 28}}, {"id": 417, "type": "pointer_declarator", "text": "*task_entry_t", "parent": 416, "children": [418, 419], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 27}}, {"id": 418, "type": "*", "text": "*", "parent": 417, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 15}}, {"id": 419, "type": "type_identifier", "text": "task_entry_t", "parent": 417, "children": [], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 27}}, {"id": 420, "type": "parameter_list", "text": "(void *args)", "parent": 415, "children": [421], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 40}}, {"id": 421, "type": "parameter_declaration", "text": "void *args", "parent": 420, "children": [422, 423], "start_point": {"row": 132, "column": 29}, "end_point": {"row": 132, "column": 39}}, {"id": 422, "type": "primitive_type", "text": "void", "parent": 421, "children": [], "start_point": {"row": 132, "column": 29}, "end_point": {"row": 132, "column": 33}}, {"id": 423, "type": "pointer_declarator", "text": "*args", "parent": 421, "children": [424, 425], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 39}}, {"id": 424, "type": "*", "text": "*", "parent": 423, "children": [], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 35}}, {"id": 425, "type": "identifier", "text": "args", "parent": 423, "children": [], "start_point": {"row": 132, "column": 35}, "end_point": {"row": 132, "column": 39}}, {"id": 426, "type": "function_definition", "text": "int k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)\n{\n if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR(\"create ble task fail\\n\");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }\n}", "parent": null, "children": [427, 428], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 165, "column": 1}}, {"id": 427, "type": "primitive_type", "text": "int", "parent": 426, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 3}}, {"id": 428, "type": "function_declarator", "text": "k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)", "parent": 426, "children": [429, 430], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 135, "column": 77}}, {"id": 429, "type": "identifier", "text": "k_thread_create", "parent": 428, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 19}}, {"id": 430, "type": "parameter_list", "text": "(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)", "parent": 428, "children": [431, 438, 443, 446, 449, 454, 459, 464, 467, 470], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 135, "column": 77}}, {"id": 431, "type": "parameter_declaration", "text": "struct k_thread *new_thread", "parent": 430, "children": [432, 435], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 47}}, {"id": 432, "type": "struct_specifier", "text": "struct k_thread", "parent": 431, "children": [433, 434], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 35}}, {"id": 433, "type": "struct", "text": "struct", "parent": 432, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 26}}, {"id": 434, "type": "type_identifier", "text": "k_thread", "parent": 432, "children": [], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 133, "column": 35}}, {"id": 435, "type": "pointer_declarator", "text": "*new_thread", "parent": 431, "children": [436, 437], "start_point": {"row": 133, "column": 36}, "end_point": {"row": 133, "column": 47}}, {"id": 436, "type": "*", "text": "*", "parent": 435, "children": [], "start_point": {"row": 133, "column": 36}, "end_point": {"row": 133, "column": 37}}, {"id": 437, "type": "identifier", "text": "new_thread", "parent": 435, "children": [], "start_point": {"row": 133, "column": 37}, "end_point": {"row": 133, "column": 47}}, {"id": 438, "type": "parameter_declaration", "text": "k_thread_stack_t *stack", "parent": 430, "children": [439, 440], "start_point": {"row": 133, "column": 49}, "end_point": {"row": 133, "column": 72}}, {"id": 439, "type": "type_identifier", "text": "k_thread_stack_t", "parent": 438, "children": [], "start_point": {"row": 133, "column": 49}, "end_point": {"row": 133, "column": 65}}, {"id": 440, "type": "pointer_declarator", "text": "*stack", "parent": 438, "children": [441, 442], "start_point": {"row": 133, "column": 66}, "end_point": {"row": 133, "column": 72}}, {"id": 441, "type": "*", "text": "*", "parent": 440, "children": [], "start_point": {"row": 133, "column": 66}, "end_point": {"row": 133, "column": 67}}, {"id": 442, "type": "identifier", "text": "stack", "parent": 440, "children": [], "start_point": {"row": 133, "column": 67}, "end_point": {"row": 133, "column": 72}}, {"id": 443, "type": "parameter_declaration", "text": "size_t stack_size", "parent": 430, "children": [444, 445], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 37}}, {"id": 444, "type": "primitive_type", "text": "size_t", "parent": 443, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 26}}, {"id": 445, "type": "identifier", "text": "stack_size", "parent": 443, "children": [], "start_point": {"row": 134, "column": 27}, "end_point": {"row": 134, "column": 37}}, {"id": 446, "type": "parameter_declaration", "text": "k_thread_entry_t entry", "parent": 430, "children": [447, 448], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 61}}, {"id": 447, "type": "type_identifier", "text": "k_thread_entry_t", "parent": 446, "children": [], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 55}}, {"id": 448, "type": "identifier", "text": "entry", "parent": 446, "children": [], "start_point": {"row": 134, "column": 56}, "end_point": {"row": 134, "column": 61}}, {"id": 449, "type": "parameter_declaration", "text": "void *p1", "parent": 430, "children": [450, 451], "start_point": {"row": 134, "column": 63}, "end_point": {"row": 134, "column": 71}}, {"id": 450, "type": "primitive_type", "text": "void", "parent": 449, "children": [], "start_point": {"row": 134, "column": 63}, "end_point": {"row": 134, "column": 67}}, {"id": 451, "type": "pointer_declarator", "text": "*p1", "parent": 449, "children": [452, 453], "start_point": {"row": 134, "column": 68}, "end_point": {"row": 134, "column": 71}}, {"id": 452, "type": "*", "text": "*", "parent": 451, "children": [], "start_point": {"row": 134, "column": 68}, "end_point": {"row": 134, "column": 69}}, {"id": 453, "type": "identifier", "text": "p1", "parent": 451, "children": [], "start_point": {"row": 134, "column": 69}, "end_point": {"row": 134, "column": 71}}, {"id": 454, "type": "parameter_declaration", "text": "void *p2", "parent": 430, "children": [455, 456], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 28}}, {"id": 455, "type": "primitive_type", "text": "void", "parent": 454, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 24}}, {"id": 456, "type": "pointer_declarator", "text": "*p2", "parent": 454, "children": [457, 458], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 28}}, {"id": 457, "type": "*", "text": "*", "parent": 456, "children": [], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 26}}, {"id": 458, "type": "identifier", "text": "p2", "parent": 456, "children": [], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 28}}, {"id": 459, "type": "parameter_declaration", "text": "void *p3", "parent": 430, "children": [460, 461], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 135, "column": 38}}, {"id": 460, "type": "primitive_type", "text": "void", "parent": 459, "children": [], "start_point": {"row": 135, "column": 30}, "end_point": {"row": 135, "column": 34}}, {"id": 461, "type": "pointer_declarator", "text": "*p3", "parent": 459, "children": [462, 463], "start_point": {"row": 135, "column": 35}, "end_point": {"row": 135, "column": 38}}, {"id": 462, "type": "*", "text": "*", "parent": 461, "children": [], "start_point": {"row": 135, "column": 35}, "end_point": {"row": 135, "column": 36}}, {"id": 463, "type": "identifier", "text": "p3", "parent": 461, "children": [], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 38}}, {"id": 464, "type": "parameter_declaration", "text": "int prio", "parent": 430, "children": [465, 466], "start_point": {"row": 135, "column": 40}, "end_point": {"row": 135, "column": 48}}, {"id": 465, "type": "primitive_type", "text": "int", "parent": 464, "children": [], "start_point": {"row": 135, "column": 40}, "end_point": {"row": 135, "column": 43}}, {"id": 466, "type": "identifier", "text": "prio", "parent": 464, "children": [], "start_point": {"row": 135, "column": 44}, "end_point": {"row": 135, "column": 48}}, {"id": 467, "type": "parameter_declaration", "text": "u32_t options", "parent": 430, "children": [468, 469], "start_point": {"row": 135, "column": 50}, "end_point": {"row": 135, "column": 63}}, {"id": 468, "type": "type_identifier", "text": "u32_t", "parent": 467, "children": [], "start_point": {"row": 135, "column": 50}, "end_point": {"row": 135, "column": 55}}, {"id": 469, "type": "identifier", "text": "options", "parent": 467, "children": [], "start_point": {"row": 135, "column": 56}, "end_point": {"row": 135, "column": 63}}, {"id": 470, "type": "parameter_declaration", "text": "s32_t delay", "parent": 430, "children": [471, 472], "start_point": {"row": 135, "column": 65}, "end_point": {"row": 135, "column": 76}}, {"id": 471, "type": "type_identifier", "text": "s32_t", "parent": 470, "children": [], "start_point": {"row": 135, "column": 65}, "end_point": {"row": 135, "column": 70}}, {"id": 472, "type": "identifier", "text": "delay", "parent": 470, "children": [], "start_point": {"row": 135, "column": 71}, "end_point": {"row": 135, "column": 76}}, {"id": 473, "type": "if_statement", "text": "if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR(\"create ble task fail\\n\");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }", "parent": 426, "children": [474, 510], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 164, "column": 5}}, {"id": 474, "type": "parenthesized_expression", "text": "(!stack)", "parent": 473, "children": [475], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 15}}, {"id": 475, "type": "unary_expression", "text": "!stack", "parent": 474, "children": [476, 477], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 14}}, {"id": 476, "type": "!", "text": "!", "parent": 475, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 9}}, {"id": 477, "type": "identifier", "text": "stack", "parent": 475, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 14}}, {"id": 478, "type": "declaration", "text": "int ret;", "parent": 473, "children": [479, 480], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 16}}, {"id": 479, "type": "primitive_type", "text": "int", "parent": 478, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 11}}, {"id": 480, "type": "identifier", "text": "ret", "parent": 478, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 15}}, {"id": 481, "type": "assignment_expression", "text": "ret = aos_task_new_ext(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio)", "parent": 473, "children": [482, 483, 484], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 141, "column": 48}}, {"id": 482, "type": "identifier", "text": "ret", "parent": 481, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 11}}, {"id": 483, "type": "=", "text": "=", "parent": 481, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 13}}, {"id": 484, "type": "call_expression", "text": "aos_task_new_ext(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio)", "parent": 481, "children": [485, 486], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 141, "column": 48}}, {"id": 485, "type": "identifier", "text": "aos_task_new_ext", "parent": 484, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 30}}, {"id": 486, "type": "argument_list", "text": "(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio)", "parent": 484, "children": [487, 492, 493, 497, 498, 499], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 141, "column": 48}}, {"id": 487, "type": "pointer_expression", "text": "&(new_thread->task)", "parent": 486, "children": [488], "start_point": {"row": 140, "column": 31}, "end_point": {"row": 140, "column": 50}}, {"id": 488, "type": "parenthesized_expression", "text": "(new_thread->task)", "parent": 487, "children": [489], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 50}}, {"id": 489, "type": "field_expression", "text": "new_thread->task", "parent": 488, "children": [490, 491], "start_point": {"row": 140, "column": 33}, "end_point": {"row": 140, "column": 49}}, {"id": 490, "type": "identifier", "text": "new_thread", "parent": 489, "children": [], "start_point": {"row": 140, "column": 33}, "end_point": {"row": 140, "column": 43}}, {"id": 491, "type": "field_identifier", "text": "task", "parent": 489, "children": [], "start_point": {"row": 140, "column": 45}, "end_point": {"row": 140, "column": 49}}, {"id": 492, "type": "string_literal", "text": "\"ble\"", "parent": 486, "children": [], "start_point": {"row": 140, "column": 52}, "end_point": {"row": 140, "column": 57}}, {"id": 493, "type": "cast_expression", "text": "(task_entry_t)entry", "parent": 486, "children": [494, 496], "start_point": {"row": 140, "column": 59}, "end_point": {"row": 140, "column": 78}}, {"id": 494, "type": "type_descriptor", "text": "task_entry_t", "parent": 493, "children": [495], "start_point": {"row": 140, "column": 60}, "end_point": {"row": 140, "column": 72}}, {"id": 495, "type": "type_identifier", "text": "task_entry_t", "parent": 494, "children": [], "start_point": {"row": 140, "column": 60}, "end_point": {"row": 140, "column": 72}}, {"id": 496, "type": "identifier", "text": "entry", "parent": 493, "children": [], "start_point": {"row": 140, "column": 73}, "end_point": {"row": 140, "column": 78}}, {"id": 497, "type": "identifier", "text": "p1", "parent": 486, "children": [], "start_point": {"row": 140, "column": 80}, "end_point": {"row": 140, "column": 82}}, {"id": 498, "type": "identifier", "text": "stack_size", "parent": 486, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 41}}, {"id": 499, "type": "identifier", "text": "prio", "parent": 486, "children": [], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 47}}, {"id": 500, "type": "if_statement", "text": "if (ret) {\n SYS_LOG_ERR(\"create ble task fail\\n\");\n }", "parent": 473, "children": [501], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 144, "column": 9}}, {"id": 501, "type": "parenthesized_expression", "text": "(ret)", "parent": 500, "children": [502], "start_point": {"row": 142, "column": 11}, "end_point": {"row": 142, "column": 16}}, {"id": 502, "type": "identifier", "text": "ret", "parent": 501, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 15}}, {"id": 503, "type": "call_expression", "text": "SYS_LOG_ERR(\"create ble task fail\\n\")", "parent": 500, "children": [504, 505], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 49}}, {"id": 504, "type": "identifier", "text": "SYS_LOG_ERR", "parent": 503, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 23}}, {"id": 505, "type": "argument_list", "text": "(\"create ble task fail\\n\")", "parent": 503, "children": [506], "start_point": {"row": 143, "column": 23}, "end_point": {"row": 143, "column": 49}}, {"id": 506, "type": "string_literal", "text": "\"create ble task fail\\n\"", "parent": 505, "children": [507], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 48}}, {"id": 507, "type": "escape_sequence", "text": "\\n", "parent": 506, "children": [], "start_point": {"row": 143, "column": 45}, "end_point": {"row": 143, "column": 47}}, {"id": 508, "type": "return_statement", "text": "return ret;", "parent": 473, "children": [509], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 19}}, {"id": 509, "type": "identifier", "text": "ret", "parent": 508, "children": [], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 18}}, {"id": 510, "type": "else_clause", "text": "else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }", "parent": 473, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 164, "column": 5}}, {"id": 511, "type": "declaration", "text": "ktask_t *task_obj;", "parent": 510, "children": [512, 513], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 26}}, {"id": 512, "type": "type_identifier", "text": "ktask_t", "parent": 511, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 15}}, {"id": 513, "type": "pointer_declarator", "text": "*task_obj", "parent": 511, "children": [514, 515], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 25}}, {"id": 514, "type": "*", "text": "*", "parent": 513, "children": [], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 17}}, {"id": 515, "type": "identifier", "text": "task_obj", "parent": 513, "children": [], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 25}}, {"id": 516, "type": "assignment_expression", "text": "task_obj = krhino_mm_alloc(sizeof(ktask_t))", "parent": 510, "children": [517, 518, 519], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 51}}, {"id": 517, "type": "identifier", "text": "task_obj", "parent": 516, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 16}}, {"id": 518, "type": "=", "text": "=", "parent": 516, "children": [], "start_point": {"row": 150, "column": 17}, "end_point": {"row": 150, "column": 18}}, {"id": 519, "type": "call_expression", "text": "krhino_mm_alloc(sizeof(ktask_t))", "parent": 516, "children": [520, 521], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 51}}, {"id": 520, "type": "identifier", "text": "krhino_mm_alloc", "parent": 519, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 34}}, {"id": 521, "type": "argument_list", "text": "(sizeof(ktask_t))", "parent": 519, "children": [522], "start_point": {"row": 150, "column": 34}, "end_point": {"row": 150, "column": 51}}, {"id": 522, "type": "sizeof_expression", "text": "sizeof(ktask_t)", "parent": 521, "children": [523], "start_point": {"row": 150, "column": 35}, "end_point": {"row": 150, "column": 50}}, {"id": 523, "type": "parenthesized_expression", "text": "(ktask_t)", "parent": 522, "children": [524], "start_point": {"row": 150, "column": 41}, "end_point": {"row": 150, "column": 50}}, {"id": 524, "type": "identifier", "text": "ktask_t", "parent": 523, "children": [], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 49}}, {"id": 525, "type": "if_statement", "text": "if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }", "parent": 510, "children": [526], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 153, "column": 9}}, {"id": 526, "type": "parenthesized_expression", "text": "(task_obj == NULL)", "parent": 525, "children": [527], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 29}}, {"id": 527, "type": "binary_expression", "text": "task_obj == NULL", "parent": 526, "children": [528, 529, 530], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 28}}, {"id": 528, "type": "identifier", "text": "task_obj", "parent": 527, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 20}}, {"id": 529, "type": "==", "text": "==", "parent": 527, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 23}}, {"id": 530, "type": "null", "text": "NULL", "parent": 527, "children": [531], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 28}}, {"id": 531, "type": "NULL", "text": "NULL", "parent": 530, "children": [], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 28}}, {"id": 532, "type": "return_statement", "text": "return RHINO_NO_MEM;", "parent": 525, "children": [533], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 32}}, {"id": 533, "type": "identifier", "text": "RHINO_NO_MEM", "parent": 532, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 31}}, {"id": 534, "type": "assignment_expression", "text": "new_thread->task.hdl = (void *)task_obj", "parent": 510, "children": [535, 540, 541], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 47}}, {"id": 535, "type": "field_expression", "text": "new_thread->task.hdl", "parent": 534, "children": [536, 539], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 28}}, {"id": 536, "type": "field_expression", "text": "new_thread->task", "parent": 535, "children": [537, 538], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 24}}, {"id": 537, "type": "identifier", "text": "new_thread", "parent": 536, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 18}}, {"id": 538, "type": "field_identifier", "text": "task", "parent": 536, "children": [], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 24}}, {"id": 539, "type": "field_identifier", "text": "hdl", "parent": 535, "children": [], "start_point": {"row": 156, "column": 25}, "end_point": {"row": 156, "column": 28}}, {"id": 540, "type": "=", "text": "=", "parent": 534, "children": [], "start_point": {"row": 156, "column": 29}, "end_point": {"row": 156, "column": 30}}, {"id": 541, "type": "cast_expression", "text": "(void *)task_obj", "parent": 534, "children": [542, 546], "start_point": {"row": 156, "column": 31}, "end_point": {"row": 156, "column": 47}}, {"id": 542, "type": "type_descriptor", "text": "void *", "parent": 541, "children": [543, 544], "start_point": {"row": 156, "column": 32}, "end_point": {"row": 156, "column": 38}}, {"id": 543, "type": "primitive_type", "text": "void", "parent": 542, "children": [], "start_point": {"row": 156, "column": 32}, "end_point": {"row": 156, "column": 36}}, {"id": 544, "type": "abstract_pointer_declarator", "text": "*", "parent": 542, "children": [545], "start_point": {"row": 156, "column": 37}, "end_point": {"row": 156, "column": 38}}, {"id": 545, "type": "*", "text": "*", "parent": 544, "children": [], "start_point": {"row": 156, "column": 37}, "end_point": {"row": 156, "column": 38}}, {"id": 546, "type": "identifier", "text": "task_obj", "parent": 541, "children": [], "start_point": {"row": 156, "column": 39}, "end_point": {"row": 156, "column": 47}}, {"id": 547, "type": "assignment_expression", "text": "stack_size = stack_size / sizeof(cpu_stack_t)", "parent": 510, "children": [548, 549, 550], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 53}}, {"id": 548, "type": "identifier", "text": "stack_size", "parent": 547, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 18}}, {"id": 549, "type": "=", "text": "=", "parent": 547, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 20}}, {"id": 550, "type": "binary_expression", "text": "stack_size / sizeof(cpu_stack_t)", "parent": 547, "children": [551, 552, 553], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 53}}, {"id": 551, "type": "identifier", "text": "stack_size", "parent": 550, "children": [], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 31}}, {"id": 552, "type": "/", "text": "/", "parent": 550, "children": [], "start_point": {"row": 158, "column": 32}, "end_point": {"row": 158, "column": 33}}, {"id": 553, "type": "sizeof_expression", "text": "sizeof(cpu_stack_t)", "parent": 550, "children": [554], "start_point": {"row": 158, "column": 34}, "end_point": {"row": 158, "column": 53}}, {"id": 554, "type": "parenthesized_expression", "text": "(cpu_stack_t)", "parent": 553, "children": [555], "start_point": {"row": 158, "column": 40}, "end_point": {"row": 158, "column": 53}}, {"id": 555, "type": "identifier", "text": "cpu_stack_t", "parent": 554, "children": [], "start_point": {"row": 158, "column": 41}, "end_point": {"row": 158, "column": 52}}, {"id": 556, "type": "return_statement", "text": "return krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);", "parent": 510, "children": [557], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 163, "column": 53}}, {"id": 557, "type": "call_expression", "text": "krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0)", "parent": 556, "children": [558, 559], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 163, "column": 52}}, {"id": 558, "type": "identifier", "text": "krhino_task_create", "parent": 557, "children": [], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 33}}, {"id": 559, "type": "argument_list", "text": "(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0)", "parent": 557, "children": [560, 561, 562, 563, 564, 565, 571, 572, 576], "start_point": {"row": 159, "column": 33}, "end_point": {"row": 163, "column": 52}}, {"id": 560, "type": "identifier", "text": "task_obj", "parent": 559, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 42}}, {"id": 561, "type": "string_literal", "text": "\"ble\"", "parent": 559, "children": [], "start_point": {"row": 159, "column": 44}, "end_point": {"row": 159, "column": 49}}, {"id": 562, "type": "identifier", "text": "p1", "parent": 559, "children": [], "start_point": {"row": 159, "column": 51}, "end_point": {"row": 159, "column": 53}}, {"id": 563, "type": "identifier", "text": "prio", "parent": 559, "children": [], "start_point": {"row": 159, "column": 55}, "end_point": {"row": 159, "column": 59}}, {"id": 564, "type": "number_literal", "text": "0", "parent": 559, "children": [], "start_point": {"row": 159, "column": 61}, "end_point": {"row": 159, "column": 62}}, {"id": 565, "type": "cast_expression", "text": "(cpu_stack_t *)stack", "parent": 559, "children": [566, 570], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 54}}, {"id": 566, "type": "type_descriptor", "text": "cpu_stack_t *", "parent": 565, "children": [567, 568], "start_point": {"row": 160, "column": 35}, "end_point": {"row": 160, "column": 48}}, {"id": 567, "type": "type_identifier", "text": "cpu_stack_t", "parent": 566, "children": [], "start_point": {"row": 160, "column": 35}, "end_point": {"row": 160, "column": 46}}, {"id": 568, "type": "abstract_pointer_declarator", "text": "*", "parent": 566, "children": [569], "start_point": {"row": 160, "column": 47}, "end_point": {"row": 160, "column": 48}}, {"id": 569, "type": "*", "text": "*", "parent": 568, "children": [], "start_point": {"row": 160, "column": 47}, "end_point": {"row": 160, "column": 48}}, {"id": 570, "type": "identifier", "text": "stack", "parent": 565, "children": [], "start_point": {"row": 160, "column": 49}, "end_point": {"row": 160, "column": 54}}, {"id": 571, "type": "identifier", "text": "stack_size", "parent": 559, "children": [], "start_point": {"row": 161, "column": 34}, "end_point": {"row": 161, "column": 44}}, {"id": 572, "type": "cast_expression", "text": "(task_entry_t)entry", "parent": 559, "children": [573, 575], "start_point": {"row": 162, "column": 34}, "end_point": {"row": 162, "column": 53}}, {"id": 573, "type": "type_descriptor", "text": "task_entry_t", "parent": 572, "children": [574], "start_point": {"row": 162, "column": 35}, "end_point": {"row": 162, "column": 47}}, {"id": 574, "type": "type_identifier", "text": "task_entry_t", "parent": 573, "children": [], "start_point": {"row": 162, "column": 35}, "end_point": {"row": 162, "column": 47}}, {"id": 575, "type": "identifier", "text": "entry", "parent": 572, "children": [], "start_point": {"row": 162, "column": 48}, "end_point": {"row": 162, "column": 53}}, {"id": 576, "type": "conditional_expression", "text": "delay == 0 ? 1: 0", "parent": 559, "children": [577, 581, 582, 583], "start_point": {"row": 163, "column": 34}, "end_point": {"row": 163, "column": 51}}, {"id": 577, "type": "binary_expression", "text": "delay == 0", "parent": 576, "children": [578, 579, 580], "start_point": {"row": 163, "column": 34}, "end_point": {"row": 163, "column": 44}}, {"id": 578, "type": "identifier", "text": "delay", "parent": 577, "children": [], "start_point": {"row": 163, "column": 34}, "end_point": {"row": 163, "column": 39}}, {"id": 579, "type": "==", "text": "==", "parent": 577, "children": [], "start_point": {"row": 163, "column": 40}, "end_point": {"row": 163, "column": 42}}, {"id": 580, "type": "number_literal", "text": "0", "parent": 577, "children": [], "start_point": {"row": 163, "column": 43}, "end_point": {"row": 163, "column": 44}}, {"id": 581, "type": "?", "text": "?", "parent": 576, "children": [], "start_point": {"row": 163, "column": 45}, "end_point": {"row": 163, "column": 46}}, {"id": 582, "type": "number_literal", "text": "1", "parent": 576, "children": [], "start_point": {"row": 163, "column": 47}, "end_point": {"row": 163, "column": 48}}, {"id": 583, "type": "number_literal", "text": "0", "parent": 576, "children": [], "start_point": {"row": 163, "column": 50}, "end_point": {"row": 163, "column": 51}}, {"id": 584, "type": "function_definition", "text": "int k_yield(void)\n{\n return 0;\n}", "parent": null, "children": [585, 586], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 170, "column": 1}}, {"id": 585, "type": "primitive_type", "text": "int", "parent": 584, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 3}}, {"id": 586, "type": "function_declarator", "text": "k_yield(void)", "parent": 584, "children": [587, 588], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 17}}, {"id": 587, "type": "identifier", "text": "k_yield", "parent": 586, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 11}}, {"id": 588, "type": "parameter_list", "text": "(void)", "parent": 586, "children": [589], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 17}}, {"id": 589, "type": "parameter_declaration", "text": "void", "parent": 588, "children": [590], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 16}}, {"id": 590, "type": "primitive_type", "text": "void", "parent": 589, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 16}}, {"id": 591, "type": "return_statement", "text": "return 0;", "parent": 584, "children": [592], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 13}}, {"id": 592, "type": "number_literal", "text": "0", "parent": 591, "children": [], "start_point": {"row": 169, "column": 11}, "end_point": {"row": 169, "column": 12}}, {"id": 593, "type": "function_definition", "text": "unsigned int irq_lock(void)\n{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}", "parent": null, "children": [594, 597], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 177, "column": 1}}, {"id": 594, "type": "sized_type_specifier", "text": "unsigned int", "parent": 593, "children": [595, 596], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 12}}, {"id": 595, "type": "unsigned", "text": "unsigned", "parent": 594, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 8}}, {"id": 596, "type": "primitive_type", "text": "int", "parent": 594, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 12}}, {"id": 597, "type": "function_declarator", "text": "irq_lock(void)", "parent": 593, "children": [598, 599], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 27}}, {"id": 598, "type": "identifier", "text": "irq_lock", "parent": 597, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 21}}, {"id": 599, "type": "parameter_list", "text": "(void)", "parent": 597, "children": [600], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 27}}, {"id": 600, "type": "parameter_declaration", "text": "void", "parent": 599, "children": [601], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 26}}, {"id": 601, "type": "primitive_type", "text": "void", "parent": 600, "children": [], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 26}}, {"id": 602, "type": "call_expression", "text": "CPSR_ALLOC()", "parent": 593, "children": [603, 604], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 16}}, {"id": 603, "type": "identifier", "text": "CPSR_ALLOC", "parent": 602, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 14}}, {"id": 604, "type": "argument_list", "text": "()", "parent": 602, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 16}}, {"id": 605, "type": "call_expression", "text": "RHINO_CPU_INTRPT_DISABLE()", "parent": 593, "children": [606, 607], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 30}}, {"id": 606, "type": "identifier", "text": "RHINO_CPU_INTRPT_DISABLE", "parent": 605, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 28}}, {"id": 607, "type": "argument_list", "text": "()", "parent": 605, "children": [], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 30}}, {"id": 608, "type": "return_statement", "text": "return cpsr;", "parent": 593, "children": [609], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 16}}, {"id": 609, "type": "identifier", "text": "cpsr", "parent": 608, "children": [], "start_point": {"row": 176, "column": 11}, "end_point": {"row": 176, "column": 15}}, {"id": 610, "type": "function_definition", "text": "void irq_unlock(unsigned int key)\n{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();\n}", "parent": null, "children": [611, 612], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 184, "column": 1}}, {"id": 611, "type": "primitive_type", "text": "void", "parent": 610, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 4}}, {"id": 612, "type": "function_declarator", "text": "irq_unlock(unsigned int key)", "parent": 610, "children": [613, 614], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 33}}, {"id": 613, "type": "identifier", "text": "irq_unlock", "parent": 612, "children": [], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 15}}, {"id": 614, "type": "parameter_list", "text": "(unsigned int key)", "parent": 612, "children": [615], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 33}}, {"id": 615, "type": "parameter_declaration", "text": "unsigned int key", "parent": 614, "children": [616, 619], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 32}}, {"id": 616, "type": "sized_type_specifier", "text": "unsigned int", "parent": 615, "children": [617, 618], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 28}}, {"id": 617, "type": "unsigned", "text": "unsigned", "parent": 616, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 24}}, {"id": 618, "type": "primitive_type", "text": "int", "parent": 616, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 28}}, {"id": 619, "type": "identifier", "text": "key", "parent": 615, "children": [], "start_point": {"row": 179, "column": 29}, "end_point": {"row": 179, "column": 32}}, {"id": 620, "type": "call_expression", "text": "CPSR_ALLOC()", "parent": 610, "children": [621, 622], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 16}}, {"id": 621, "type": "identifier", "text": "CPSR_ALLOC", "parent": 620, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 14}}, {"id": 622, "type": "argument_list", "text": "()", "parent": 620, "children": [], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 16}}, {"id": 623, "type": "assignment_expression", "text": "cpsr = key", "parent": 610, "children": [624, 625, 626], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 14}}, {"id": 624, "type": "identifier", "text": "cpsr", "parent": 623, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 8}}, {"id": 625, "type": "=", "text": "=", "parent": 623, "children": [], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 10}}, {"id": 626, "type": "identifier", "text": "key", "parent": 623, "children": [], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 14}}, {"id": 627, "type": "call_expression", "text": "RHINO_CPU_INTRPT_ENABLE()", "parent": 610, "children": [628, 629], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 29}}, {"id": 628, "type": "identifier", "text": "RHINO_CPU_INTRPT_ENABLE", "parent": 627, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 27}}, {"id": 629, "type": "argument_list", "text": "()", "parent": 627, "children": [], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 29}}, {"id": 630, "type": "function_definition", "text": "void _SysFatalErrorHandler(unsigned int reason, const void *pEsf){}", "parent": null, "children": [631, 632], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 67}}, {"id": 631, "type": "primitive_type", "text": "void", "parent": 630, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 4}}, {"id": 632, "type": "function_declarator", "text": "_SysFatalErrorHandler(unsigned int reason, const void *pEsf)", "parent": 630, "children": [633, 634], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 65}}, {"id": 633, "type": "identifier", "text": "_SysFatalErrorHandler", "parent": 632, "children": [], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 26}}, {"id": 634, "type": "parameter_list", "text": "(unsigned int reason, const void *pEsf)", "parent": 632, "children": [635, 640], "start_point": {"row": 186, "column": 26}, "end_point": {"row": 186, "column": 65}}, {"id": 635, "type": "parameter_declaration", "text": "unsigned int reason", "parent": 634, "children": [636, 639], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 46}}, {"id": 636, "type": "sized_type_specifier", "text": "unsigned int", "parent": 635, "children": [637, 638], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 39}}, {"id": 637, "type": "unsigned", "text": "unsigned", "parent": 636, "children": [], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 35}}, {"id": 638, "type": "primitive_type", "text": "int", "parent": 636, "children": [], "start_point": {"row": 186, "column": 36}, "end_point": {"row": 186, "column": 39}}, {"id": 639, "type": "identifier", "text": "reason", "parent": 635, "children": [], "start_point": {"row": 186, "column": 40}, "end_point": {"row": 186, "column": 46}}, {"id": 640, "type": "parameter_declaration", "text": "const void *pEsf", "parent": 634, "children": [641, 642], "start_point": {"row": 186, "column": 48}, "end_point": {"row": 186, "column": 64}}, {"id": 641, "type": "primitive_type", "text": "void", "parent": 640, "children": [], "start_point": {"row": 186, "column": 54}, "end_point": {"row": 186, "column": 58}}, {"id": 642, "type": "pointer_declarator", "text": "*pEsf", "parent": 640, "children": [643, 644], "start_point": {"row": 186, "column": 59}, "end_point": {"row": 186, "column": 64}}, {"id": 643, "type": "*", "text": "*", "parent": 642, "children": [], "start_point": {"row": 186, "column": 59}, "end_point": {"row": 186, "column": 60}}, {"id": 644, "type": "identifier", "text": "pEsf", "parent": 642, "children": [], "start_point": {"row": 186, "column": 60}, "end_point": {"row": 186, "column": 64}}, {"id": 645, "type": "function_definition", "text": "void k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p,handle %p,args %p\", timer, handle, args);\n timer->handler = handle;\n timer->args = args;\n ret =\n krhino_timer_create(&timer->timer, \"AOS\", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);\n if (ret) {\n BT_DBG(\"fail to create a timer\");\n }\n}", "parent": null, "children": [646, 647], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 646, "type": "primitive_type", "text": "void", "parent": 645, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 4}}, {"id": 647, "type": "function_declarator", "text": "k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)", "parent": 645, "children": [648, 649], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 73}}, {"id": 648, "type": "identifier", "text": "k_timer_init", "parent": 647, "children": [], "start_point": {"row": 188, "column": 5}, "end_point": {"row": 188, "column": 17}}, {"id": 649, "type": "parameter_list", "text": "(k_timer_t *timer, k_timer_handler_t handle, void *args)", "parent": 647, "children": [650, 655, 658], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 73}}, {"id": 650, "type": "parameter_declaration", "text": "k_timer_t *timer", "parent": 649, "children": [651, 652], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 34}}, {"id": 651, "type": "type_identifier", "text": "k_timer_t", "parent": 650, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 27}}, {"id": 652, "type": "pointer_declarator", "text": "*timer", "parent": 650, "children": [653, 654], "start_point": {"row": 188, "column": 28}, "end_point": {"row": 188, "column": 34}}, {"id": 653, "type": "*", "text": "*", "parent": 652, "children": [], "start_point": {"row": 188, "column": 28}, "end_point": {"row": 188, "column": 29}}, {"id": 654, "type": "identifier", "text": "timer", "parent": 652, "children": [], "start_point": {"row": 188, "column": 29}, "end_point": {"row": 188, "column": 34}}, {"id": 655, "type": "parameter_declaration", "text": "k_timer_handler_t handle", "parent": 649, "children": [656, 657], "start_point": {"row": 188, "column": 36}, "end_point": {"row": 188, "column": 60}}, {"id": 656, "type": "type_identifier", "text": "k_timer_handler_t", "parent": 655, "children": [], "start_point": {"row": 188, "column": 36}, "end_point": {"row": 188, "column": 53}}, {"id": 657, "type": "identifier", "text": "handle", "parent": 655, "children": [], "start_point": {"row": 188, "column": 54}, "end_point": {"row": 188, "column": 60}}, {"id": 658, "type": "parameter_declaration", "text": "void *args", "parent": 649, "children": [659, 660], "start_point": {"row": 188, "column": 62}, "end_point": {"row": 188, "column": 72}}, {"id": 659, "type": "primitive_type", "text": "void", "parent": 658, "children": [], "start_point": {"row": 188, "column": 62}, "end_point": {"row": 188, "column": 66}}, {"id": 660, "type": "pointer_declarator", "text": "*args", "parent": 658, "children": [661, 662], "start_point": {"row": 188, "column": 67}, "end_point": {"row": 188, "column": 72}}, {"id": 661, "type": "*", "text": "*", "parent": 660, "children": [], "start_point": {"row": 188, "column": 67}, "end_point": {"row": 188, "column": 68}}, {"id": 662, "type": "identifier", "text": "args", "parent": 660, "children": [], "start_point": {"row": 188, "column": 68}, "end_point": {"row": 188, "column": 72}}, {"id": 663, "type": "declaration", "text": "int ret;", "parent": 645, "children": [664, 665], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 12}}, {"id": 664, "type": "primitive_type", "text": "int", "parent": 663, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 7}}, {"id": 665, "type": "identifier", "text": "ret", "parent": 663, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 11}}, {"id": 666, "type": "call_expression", "text": "ASSERT(timer, \"timer is NULL\")", "parent": 645, "children": [667, 668], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 34}}, {"id": 667, "type": "identifier", "text": "ASSERT", "parent": 666, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 10}}, {"id": 668, "type": "argument_list", "text": "(timer, \"timer is NULL\")", "parent": 666, "children": [669, 670], "start_point": {"row": 191, "column": 10}, "end_point": {"row": 191, "column": 34}}, {"id": 669, "type": "identifier", "text": "timer", "parent": 668, "children": [], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 16}}, {"id": 670, "type": "string_literal", "text": "\"timer is NULL\"", "parent": 668, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 33}}, {"id": 671, "type": "call_expression", "text": "BT_DBG(\"timer %p,handle %p,args %p\", timer, handle, args)", "parent": 645, "children": [672, 673], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 61}}, {"id": 672, "type": "identifier", "text": "BT_DBG", "parent": 671, "children": [], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 10}}, {"id": 673, "type": "argument_list", "text": "(\"timer %p,handle %p,args %p\", timer, handle, args)", "parent": 671, "children": [674, 675, 676, 677], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 61}}, {"id": 674, "type": "string_literal", "text": "\"timer %p,handle %p,args %p\"", "parent": 673, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 39}}, {"id": 675, "type": "identifier", "text": "timer", "parent": 673, "children": [], "start_point": {"row": 192, "column": 41}, "end_point": {"row": 192, "column": 46}}, {"id": 676, "type": "identifier", "text": "handle", "parent": 673, "children": [], "start_point": {"row": 192, "column": 48}, "end_point": {"row": 192, "column": 54}}, {"id": 677, "type": "identifier", "text": "args", "parent": 673, "children": [], "start_point": {"row": 192, "column": 56}, "end_point": {"row": 192, "column": 60}}, {"id": 678, "type": "assignment_expression", "text": "timer->handler = handle", "parent": 645, "children": [679, 682, 683], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 27}}, {"id": 679, "type": "field_expression", "text": "timer->handler", "parent": 678, "children": [680, 681], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 18}}, {"id": 680, "type": "identifier", "text": "timer", "parent": 679, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 9}}, {"id": 681, "type": "field_identifier", "text": "handler", "parent": 679, "children": [], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 18}}, {"id": 682, "type": "=", "text": "=", "parent": 678, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 20}}, {"id": 683, "type": "identifier", "text": "handle", "parent": 678, "children": [], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 27}}, {"id": 684, "type": "assignment_expression", "text": "timer->args = args", "parent": 645, "children": [685, 688, 689], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 25}}, {"id": 685, "type": "field_expression", "text": "timer->args", "parent": 684, "children": [686, 687], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 15}}, {"id": 686, "type": "identifier", "text": "timer", "parent": 685, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 9}}, {"id": 687, "type": "field_identifier", "text": "args", "parent": 685, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 15}}, {"id": 688, "type": "=", "text": "=", "parent": 684, "children": [], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 20}}, {"id": 689, "type": "identifier", "text": "args", "parent": 684, "children": [], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 25}}, {"id": 690, "type": "assignment_expression", "text": "ret =\n krhino_timer_create(&timer->timer, \"AOS\", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)", "parent": 645, "children": [691, 692, 693], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 197, "column": 63}}, {"id": 691, "type": "identifier", "text": "ret", "parent": 690, "children": [], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 7}}, {"id": 692, "type": "=", "text": "=", "parent": 690, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 9}}, {"id": 693, "type": "call_expression", "text": "krhino_timer_create(&timer->timer, \"AOS\", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)", "parent": 690, "children": [694, 695], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 197, "column": 63}}, {"id": 694, "type": "identifier", "text": "krhino_timer_create", "parent": 693, "children": [], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 196, "column": 25}}, {"id": 695, "type": "argument_list", "text": "(&timer->timer, \"AOS\", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0)", "parent": 693, "children": [696, 700, 701, 708, 712, 713, 714], "start_point": {"row": 196, "column": 25}, "end_point": {"row": 197, "column": 63}}, {"id": 696, "type": "pointer_expression", "text": "&timer->timer", "parent": 695, "children": [697], "start_point": {"row": 196, "column": 26}, "end_point": {"row": 196, "column": 39}}, {"id": 697, "type": "field_expression", "text": "timer->timer", "parent": 696, "children": [698, 699], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 39}}, {"id": 698, "type": "identifier", "text": "timer", "parent": 697, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 32}}, {"id": 699, "type": "field_identifier", "text": "timer", "parent": 697, "children": [], "start_point": {"row": 196, "column": 34}, "end_point": {"row": 196, "column": 39}}, {"id": 700, "type": "string_literal", "text": "\"AOS\"", "parent": 695, "children": [], "start_point": {"row": 196, "column": 41}, "end_point": {"row": 196, "column": 46}}, {"id": 701, "type": "call_expression", "text": "(timer_cb_t)(timer->handler)", "parent": 695, "children": [702, 704], "start_point": {"row": 196, "column": 48}, "end_point": {"row": 196, "column": 76}}, {"id": 702, "type": "parenthesized_expression", "text": "(timer_cb_t)", "parent": 701, "children": [703], "start_point": {"row": 196, "column": 48}, "end_point": {"row": 196, "column": 60}}, {"id": 703, "type": "identifier", "text": "timer_cb_t", "parent": 702, "children": [], "start_point": {"row": 196, "column": 49}, "end_point": {"row": 196, "column": 59}}, {"id": 704, "type": "argument_list", "text": "(timer->handler)", "parent": 701, "children": [705], "start_point": {"row": 196, "column": 60}, "end_point": {"row": 196, "column": 76}}, {"id": 705, "type": "field_expression", "text": "timer->handler", "parent": 704, "children": [706, 707], "start_point": {"row": 196, "column": 61}, "end_point": {"row": 196, "column": 75}}, {"id": 706, "type": "identifier", "text": "timer", "parent": 705, "children": [], "start_point": {"row": 196, "column": 61}, "end_point": {"row": 196, "column": 66}}, {"id": 707, "type": "field_identifier", "text": "handler", "parent": 705, "children": [], "start_point": {"row": 196, "column": 68}, "end_point": {"row": 196, "column": 75}}, {"id": 708, "type": "call_expression", "text": "krhino_ms_to_ticks(1000)", "parent": 695, "children": [709, 710], "start_point": {"row": 197, "column": 26}, "end_point": {"row": 197, "column": 50}}, {"id": 709, "type": "identifier", "text": "krhino_ms_to_ticks", "parent": 708, "children": [], "start_point": {"row": 197, "column": 26}, "end_point": {"row": 197, "column": 44}}, {"id": 710, "type": "argument_list", "text": "(1000)", "parent": 708, "children": [711], "start_point": {"row": 197, "column": 44}, "end_point": {"row": 197, "column": 50}}, {"id": 711, "type": "number_literal", "text": "1000", "parent": 710, "children": [], "start_point": {"row": 197, "column": 45}, "end_point": {"row": 197, "column": 49}}, {"id": 712, "type": "number_literal", "text": "0", "parent": 695, "children": [], "start_point": {"row": 197, "column": 52}, "end_point": {"row": 197, "column": 53}}, {"id": 713, "type": "identifier", "text": "args", "parent": 695, "children": [], "start_point": {"row": 197, "column": 55}, "end_point": {"row": 197, "column": 59}}, {"id": 714, "type": "number_literal", "text": "0", "parent": 695, "children": [], "start_point": {"row": 197, "column": 61}, "end_point": {"row": 197, "column": 62}}, {"id": 715, "type": "if_statement", "text": "if (ret) {\n BT_DBG(\"fail to create a timer\");\n }", "parent": 645, "children": [716], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 200, "column": 5}}, {"id": 716, "type": "parenthesized_expression", "text": "(ret)", "parent": 715, "children": [717], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 12}}, {"id": 717, "type": "identifier", "text": "ret", "parent": 716, "children": [], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 11}}, {"id": 718, "type": "call_expression", "text": "BT_DBG(\"fail to create a timer\")", "parent": 715, "children": [719, 720], "start_point": {"row": 199, "column": 8}, "end_point": {"row": 199, "column": 40}}, {"id": 719, "type": "identifier", "text": "BT_DBG", "parent": 718, "children": [], "start_point": {"row": 199, "column": 8}, "end_point": {"row": 199, "column": 14}}, {"id": 720, "type": "argument_list", "text": "(\"fail to create a timer\")", "parent": 718, "children": [721], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 40}}, {"id": 721, "type": "string_literal", "text": "\"fail to create a timer\"", "parent": 720, "children": [], "start_point": {"row": 199, "column": 15}, "end_point": {"row": 199, "column": 39}}, {"id": 722, "type": "function_definition", "text": "void k_timer_start(k_timer_t *timer, uint32_t timeout)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p,timeout %u\", timer, timeout);\n timer->timeout = timeout;\n timer->start_ms = (uint32_t)aos_now_ms();\n\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to stop timer\");\n }\n\n ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));\n if (ret) {\n BT_DBG(\"fail to change timeout\");\n }\n\n ret = krhino_timer_start(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to start timer\");\n }\n}", "parent": null, "children": [723, 724], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 226, "column": 1}}, {"id": 723, "type": "primitive_type", "text": "void", "parent": 722, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 4}}, {"id": 724, "type": "function_declarator", "text": "k_timer_start(k_timer_t *timer, uint32_t timeout)", "parent": 722, "children": [725, 726], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 54}}, {"id": 725, "type": "identifier", "text": "k_timer_start", "parent": 724, "children": [], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 18}}, {"id": 726, "type": "parameter_list", "text": "(k_timer_t *timer, uint32_t timeout)", "parent": 724, "children": [727, 732], "start_point": {"row": 203, "column": 18}, "end_point": {"row": 203, "column": 54}}, {"id": 727, "type": "parameter_declaration", "text": "k_timer_t *timer", "parent": 726, "children": [728, 729], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 35}}, {"id": 728, "type": "type_identifier", "text": "k_timer_t", "parent": 727, "children": [], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 28}}, {"id": 729, "type": "pointer_declarator", "text": "*timer", "parent": 727, "children": [730, 731], "start_point": {"row": 203, "column": 29}, "end_point": {"row": 203, "column": 35}}, {"id": 730, "type": "*", "text": "*", "parent": 729, "children": [], "start_point": {"row": 203, "column": 29}, "end_point": {"row": 203, "column": 30}}, {"id": 731, "type": "identifier", "text": "timer", "parent": 729, "children": [], "start_point": {"row": 203, "column": 30}, "end_point": {"row": 203, "column": 35}}, {"id": 732, "type": "parameter_declaration", "text": "uint32_t timeout", "parent": 726, "children": [733, 734], "start_point": {"row": 203, "column": 37}, "end_point": {"row": 203, "column": 53}}, {"id": 733, "type": "primitive_type", "text": "uint32_t", "parent": 732, "children": [], "start_point": {"row": 203, "column": 37}, "end_point": {"row": 203, "column": 45}}, {"id": 734, "type": "identifier", "text": "timeout", "parent": 732, "children": [], "start_point": {"row": 203, "column": 46}, "end_point": {"row": 203, "column": 53}}, {"id": 735, "type": "declaration", "text": "int ret;", "parent": 722, "children": [736, 737], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 12}}, {"id": 736, "type": "primitive_type", "text": "int", "parent": 735, "children": [], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 7}}, {"id": 737, "type": "identifier", "text": "ret", "parent": 735, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 11}}, {"id": 738, "type": "call_expression", "text": "ASSERT(timer, \"timer is NULL\")", "parent": 722, "children": [739, 740], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 34}}, {"id": 739, "type": "identifier", "text": "ASSERT", "parent": 738, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 10}}, {"id": 740, "type": "argument_list", "text": "(timer, \"timer is NULL\")", "parent": 738, "children": [741, 742], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 34}}, {"id": 741, "type": "identifier", "text": "timer", "parent": 740, "children": [], "start_point": {"row": 206, "column": 11}, "end_point": {"row": 206, "column": 16}}, {"id": 742, "type": "string_literal", "text": "\"timer is NULL\"", "parent": 740, "children": [], "start_point": {"row": 206, "column": 18}, "end_point": {"row": 206, "column": 33}}, {"id": 743, "type": "call_expression", "text": "BT_DBG(\"timer %p,timeout %u\", timer, timeout)", "parent": 722, "children": [744, 745], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 49}}, {"id": 744, "type": "identifier", "text": "BT_DBG", "parent": 743, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 10}}, {"id": 745, "type": "argument_list", "text": "(\"timer %p,timeout %u\", timer, timeout)", "parent": 743, "children": [746, 747, 748], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 49}}, {"id": 746, "type": "string_literal", "text": "\"timer %p,timeout %u\"", "parent": 745, "children": [], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 32}}, {"id": 747, "type": "identifier", "text": "timer", "parent": 745, "children": [], "start_point": {"row": 207, "column": 34}, "end_point": {"row": 207, "column": 39}}, {"id": 748, "type": "identifier", "text": "timeout", "parent": 745, "children": [], "start_point": {"row": 207, "column": 41}, "end_point": {"row": 207, "column": 48}}, {"id": 749, "type": "assignment_expression", "text": "timer->timeout = timeout", "parent": 722, "children": [750, 753, 754], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 29}}, {"id": 750, "type": "field_expression", "text": "timer->timeout", "parent": 749, "children": [751, 752], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 18}}, {"id": 751, "type": "identifier", "text": "timer", "parent": 750, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 9}}, {"id": 752, "type": "field_identifier", "text": "timeout", "parent": 750, "children": [], "start_point": {"row": 208, "column": 11}, "end_point": {"row": 208, "column": 18}}, {"id": 753, "type": "=", "text": "=", "parent": 749, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 21}}, {"id": 754, "type": "identifier", "text": "timeout", "parent": 749, "children": [], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 29}}, {"id": 755, "type": "assignment_expression", "text": "timer->start_ms = (uint32_t)aos_now_ms()", "parent": 722, "children": [756, 759, 760], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 44}}, {"id": 756, "type": "field_expression", "text": "timer->start_ms", "parent": 755, "children": [757, 758], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 19}}, {"id": 757, "type": "identifier", "text": "timer", "parent": 756, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 9}}, {"id": 758, "type": "field_identifier", "text": "start_ms", "parent": 756, "children": [], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 19}}, {"id": 759, "type": "=", "text": "=", "parent": 755, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 21}}, {"id": 760, "type": "cast_expression", "text": "(uint32_t)aos_now_ms()", "parent": 755, "children": [761, 763], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 44}}, {"id": 761, "type": "type_descriptor", "text": "uint32_t", "parent": 760, "children": [762], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 31}}, {"id": 762, "type": "primitive_type", "text": "uint32_t", "parent": 761, "children": [], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 31}}, {"id": 763, "type": "call_expression", "text": "aos_now_ms()", "parent": 760, "children": [764, 765], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 44}}, {"id": 764, "type": "identifier", "text": "aos_now_ms", "parent": 763, "children": [], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 42}}, {"id": 765, "type": "argument_list", "text": "()", "parent": 763, "children": [], "start_point": {"row": 209, "column": 42}, "end_point": {"row": 209, "column": 44}}, {"id": 766, "type": "assignment_expression", "text": "ret = krhino_timer_stop(&timer->timer)", "parent": 722, "children": [767, 768, 769], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 42}}, {"id": 767, "type": "identifier", "text": "ret", "parent": 766, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 7}}, {"id": 768, "type": "=", "text": "=", "parent": 766, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 9}}, {"id": 769, "type": "call_expression", "text": "krhino_timer_stop(&timer->timer)", "parent": 766, "children": [770, 771], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 42}}, {"id": 770, "type": "identifier", "text": "krhino_timer_stop", "parent": 769, "children": [], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 27}}, {"id": 771, "type": "argument_list", "text": "(&timer->timer)", "parent": 769, "children": [772], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 42}}, {"id": 772, "type": "pointer_expression", "text": "&timer->timer", "parent": 771, "children": [773], "start_point": {"row": 211, "column": 28}, "end_point": {"row": 211, "column": 41}}, {"id": 773, "type": "field_expression", "text": "timer->timer", "parent": 772, "children": [774, 775], "start_point": {"row": 211, "column": 29}, "end_point": {"row": 211, "column": 41}}, {"id": 774, "type": "identifier", "text": "timer", "parent": 773, "children": [], "start_point": {"row": 211, "column": 29}, "end_point": {"row": 211, "column": 34}}, {"id": 775, "type": "field_identifier", "text": "timer", "parent": 773, "children": [], "start_point": {"row": 211, "column": 36}, "end_point": {"row": 211, "column": 41}}, {"id": 776, "type": "if_statement", "text": "if (ret) {\n BT_DBG(\"fail to stop timer\");\n }", "parent": 722, "children": [777], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 214, "column": 5}}, {"id": 777, "type": "parenthesized_expression", "text": "(ret)", "parent": 776, "children": [778], "start_point": {"row": 212, "column": 7}, "end_point": {"row": 212, "column": 12}}, {"id": 778, "type": "identifier", "text": "ret", "parent": 777, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 11}}, {"id": 779, "type": "call_expression", "text": "BT_DBG(\"fail to stop timer\")", "parent": 776, "children": [780, 781], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 36}}, {"id": 780, "type": "identifier", "text": "BT_DBG", "parent": 779, "children": [], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 14}}, {"id": 781, "type": "argument_list", "text": "(\"fail to stop timer\")", "parent": 779, "children": [782], "start_point": {"row": 213, "column": 14}, "end_point": {"row": 213, "column": 36}}, {"id": 782, "type": "string_literal", "text": "\"fail to stop timer\"", "parent": 781, "children": [], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 35}}, {"id": 783, "type": "assignment_expression", "text": "ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))", "parent": 722, "children": [784, 785, 786], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 217, "column": 58}}, {"id": 784, "type": "identifier", "text": "ret", "parent": 783, "children": [], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 7}}, {"id": 785, "type": "=", "text": "=", "parent": 783, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 9}}, {"id": 786, "type": "call_expression", "text": "krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))", "parent": 783, "children": [787, 788], "start_point": {"row": 216, "column": 10}, "end_point": {"row": 217, "column": 58}}, {"id": 787, "type": "identifier", "text": "krhino_timer_change", "parent": 786, "children": [], "start_point": {"row": 216, "column": 10}, "end_point": {"row": 216, "column": 29}}, {"id": 788, "type": "argument_list", "text": "(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout))", "parent": 786, "children": [789, 793, 797], "start_point": {"row": 216, "column": 29}, "end_point": {"row": 217, "column": 58}}, {"id": 789, "type": "pointer_expression", "text": "&timer->timer", "parent": 788, "children": [790], "start_point": {"row": 216, "column": 30}, "end_point": {"row": 216, "column": 43}}, {"id": 790, "type": "field_expression", "text": "timer->timer", "parent": 789, "children": [791, 792], "start_point": {"row": 216, "column": 31}, "end_point": {"row": 216, "column": 43}}, {"id": 791, "type": "identifier", "text": "timer", "parent": 790, "children": [], "start_point": {"row": 216, "column": 31}, "end_point": {"row": 216, "column": 36}}, {"id": 792, "type": "field_identifier", "text": "timer", "parent": 790, "children": [], "start_point": {"row": 216, "column": 38}, "end_point": {"row": 216, "column": 43}}, {"id": 793, "type": "call_expression", "text": "krhino_ms_to_ticks(timeout)", "parent": 788, "children": [794, 795], "start_point": {"row": 216, "column": 45}, "end_point": {"row": 216, "column": 72}}, {"id": 794, "type": "identifier", "text": "krhino_ms_to_ticks", "parent": 793, "children": [], "start_point": {"row": 216, "column": 45}, "end_point": {"row": 216, "column": 63}}, {"id": 795, "type": "argument_list", "text": "(timeout)", "parent": 793, "children": [796], "start_point": {"row": 216, "column": 63}, "end_point": {"row": 216, "column": 72}}, {"id": 796, "type": "identifier", "text": "timeout", "parent": 795, "children": [], "start_point": {"row": 216, "column": 64}, "end_point": {"row": 216, "column": 71}}, {"id": 797, "type": "call_expression", "text": "krhino_ms_to_ticks(timeout)", "parent": 788, "children": [798, 799], "start_point": {"row": 217, "column": 30}, "end_point": {"row": 217, "column": 57}}, {"id": 798, "type": "identifier", "text": "krhino_ms_to_ticks", "parent": 797, "children": [], "start_point": {"row": 217, "column": 30}, "end_point": {"row": 217, "column": 48}}, {"id": 799, "type": "argument_list", "text": "(timeout)", "parent": 797, "children": [800], "start_point": {"row": 217, "column": 48}, "end_point": {"row": 217, "column": 57}}, {"id": 800, "type": "identifier", "text": "timeout", "parent": 799, "children": [], "start_point": {"row": 217, "column": 49}, "end_point": {"row": 217, "column": 56}}, {"id": 801, "type": "if_statement", "text": "if (ret) {\n BT_DBG(\"fail to change timeout\");\n }", "parent": 722, "children": [802], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 220, "column": 5}}, {"id": 802, "type": "parenthesized_expression", "text": "(ret)", "parent": 801, "children": [803], "start_point": {"row": 218, "column": 7}, "end_point": {"row": 218, "column": 12}}, {"id": 803, "type": "identifier", "text": "ret", "parent": 802, "children": [], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 11}}, {"id": 804, "type": "call_expression", "text": "BT_DBG(\"fail to change timeout\")", "parent": 801, "children": [805, 806], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 40}}, {"id": 805, "type": "identifier", "text": "BT_DBG", "parent": 804, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 14}}, {"id": 806, "type": "argument_list", "text": "(\"fail to change timeout\")", "parent": 804, "children": [807], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 40}}, {"id": 807, "type": "string_literal", "text": "\"fail to change timeout\"", "parent": 806, "children": [], "start_point": {"row": 219, "column": 15}, "end_point": {"row": 219, "column": 39}}, {"id": 808, "type": "assignment_expression", "text": "ret = krhino_timer_start(&timer->timer)", "parent": 722, "children": [809, 810, 811], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 43}}, {"id": 809, "type": "identifier", "text": "ret", "parent": 808, "children": [], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 7}}, {"id": 810, "type": "=", "text": "=", "parent": 808, "children": [], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 9}}, {"id": 811, "type": "call_expression", "text": "krhino_timer_start(&timer->timer)", "parent": 808, "children": [812, 813], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 43}}, {"id": 812, "type": "identifier", "text": "krhino_timer_start", "parent": 811, "children": [], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 28}}, {"id": 813, "type": "argument_list", "text": "(&timer->timer)", "parent": 811, "children": [814], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 43}}, {"id": 814, "type": "pointer_expression", "text": "&timer->timer", "parent": 813, "children": [815], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 42}}, {"id": 815, "type": "field_expression", "text": "timer->timer", "parent": 814, "children": [816, 817], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 42}}, {"id": 816, "type": "identifier", "text": "timer", "parent": 815, "children": [], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 35}}, {"id": 817, "type": "field_identifier", "text": "timer", "parent": 815, "children": [], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 42}}, {"id": 818, "type": "if_statement", "text": "if (ret) {\n BT_DBG(\"fail to start timer\");\n }", "parent": 722, "children": [819], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 225, "column": 5}}, {"id": 819, "type": "parenthesized_expression", "text": "(ret)", "parent": 818, "children": [820], "start_point": {"row": 223, "column": 7}, "end_point": {"row": 223, "column": 12}}, {"id": 820, "type": "identifier", "text": "ret", "parent": 819, "children": [], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 11}}, {"id": 821, "type": "call_expression", "text": "BT_DBG(\"fail to start timer\")", "parent": 818, "children": [822, 823], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 37}}, {"id": 822, "type": "identifier", "text": "BT_DBG", "parent": 821, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 14}}, {"id": 823, "type": "argument_list", "text": "(\"fail to start timer\")", "parent": 821, "children": [824], "start_point": {"row": 224, "column": 14}, "end_point": {"row": 224, "column": 37}}, {"id": 824, "type": "string_literal", "text": "\"fail to start timer\"", "parent": 823, "children": [], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 36}}, {"id": 825, "type": "function_definition", "text": "void k_timer_stop(k_timer_t *timer)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p\", timer);\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to stop timer\");\n }\n /**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */\n timer->timeout = 0;\n}", "parent": null, "children": [826, 827], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 242, "column": 1}}, {"id": 826, "type": "primitive_type", "text": "void", "parent": 825, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 4}}, {"id": 827, "type": "function_declarator", "text": "k_timer_stop(k_timer_t *timer)", "parent": 825, "children": [828, 829], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 35}}, {"id": 828, "type": "identifier", "text": "k_timer_stop", "parent": 827, "children": [], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 17}}, {"id": 829, "type": "parameter_list", "text": "(k_timer_t *timer)", "parent": 827, "children": [830], "start_point": {"row": 228, "column": 17}, "end_point": {"row": 228, "column": 35}}, {"id": 830, "type": "parameter_declaration", "text": "k_timer_t *timer", "parent": 829, "children": [831, 832], "start_point": {"row": 228, "column": 18}, "end_point": {"row": 228, "column": 34}}, {"id": 831, "type": "type_identifier", "text": "k_timer_t", "parent": 830, "children": [], "start_point": {"row": 228, "column": 18}, "end_point": {"row": 228, "column": 27}}, {"id": 832, "type": "pointer_declarator", "text": "*timer", "parent": 830, "children": [833, 834], "start_point": {"row": 228, "column": 28}, "end_point": {"row": 228, "column": 34}}, {"id": 833, "type": "*", "text": "*", "parent": 832, "children": [], "start_point": {"row": 228, "column": 28}, "end_point": {"row": 228, "column": 29}}, {"id": 834, "type": "identifier", "text": "timer", "parent": 832, "children": [], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 34}}, {"id": 835, "type": "declaration", "text": "int ret;", "parent": 825, "children": [836, 837], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 12}}, {"id": 836, "type": "primitive_type", "text": "int", "parent": 835, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 7}}, {"id": 837, "type": "identifier", "text": "ret", "parent": 835, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 11}}, {"id": 838, "type": "call_expression", "text": "ASSERT(timer, \"timer is NULL\")", "parent": 825, "children": [839, 840], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 34}}, {"id": 839, "type": "identifier", "text": "ASSERT", "parent": 838, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 10}}, {"id": 840, "type": "argument_list", "text": "(timer, \"timer is NULL\")", "parent": 838, "children": [841, 842], "start_point": {"row": 231, "column": 10}, "end_point": {"row": 231, "column": 34}}, {"id": 841, "type": "identifier", "text": "timer", "parent": 840, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 16}}, {"id": 842, "type": "string_literal", "text": "\"timer is NULL\"", "parent": 840, "children": [], "start_point": {"row": 231, "column": 18}, "end_point": {"row": 231, "column": 33}}, {"id": 843, "type": "call_expression", "text": "BT_DBG(\"timer %p\", timer)", "parent": 825, "children": [844, 845], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 29}}, {"id": 844, "type": "identifier", "text": "BT_DBG", "parent": 843, "children": [], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 10}}, {"id": 845, "type": "argument_list", "text": "(\"timer %p\", timer)", "parent": 843, "children": [846, 847], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 29}}, {"id": 846, "type": "string_literal", "text": "\"timer %p\"", "parent": 845, "children": [], "start_point": {"row": 232, "column": 11}, "end_point": {"row": 232, "column": 21}}, {"id": 847, "type": "identifier", "text": "timer", "parent": 845, "children": [], "start_point": {"row": 232, "column": 23}, "end_point": {"row": 232, "column": 28}}, {"id": 848, "type": "assignment_expression", "text": "ret = krhino_timer_stop(&timer->timer)", "parent": 825, "children": [849, 850, 851], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 42}}, {"id": 849, "type": "identifier", "text": "ret", "parent": 848, "children": [], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 7}}, {"id": 850, "type": "=", "text": "=", "parent": 848, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 9}}, {"id": 851, "type": "call_expression", "text": "krhino_timer_stop(&timer->timer)", "parent": 848, "children": [852, 853], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 42}}, {"id": 852, "type": "identifier", "text": "krhino_timer_stop", "parent": 851, "children": [], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 27}}, {"id": 853, "type": "argument_list", "text": "(&timer->timer)", "parent": 851, "children": [854], "start_point": {"row": 233, "column": 27}, "end_point": {"row": 233, "column": 42}}, {"id": 854, "type": "pointer_expression", "text": "&timer->timer", "parent": 853, "children": [855], "start_point": {"row": 233, "column": 28}, "end_point": {"row": 233, "column": 41}}, {"id": 855, "type": "field_expression", "text": "timer->timer", "parent": 854, "children": [856, 857], "start_point": {"row": 233, "column": 29}, "end_point": {"row": 233, "column": 41}}, {"id": 856, "type": "identifier", "text": "timer", "parent": 855, "children": [], "start_point": {"row": 233, "column": 29}, "end_point": {"row": 233, "column": 34}}, {"id": 857, "type": "field_identifier", "text": "timer", "parent": 855, "children": [], "start_point": {"row": 233, "column": 36}, "end_point": {"row": 233, "column": 41}}, {"id": 858, "type": "if_statement", "text": "if (ret) {\n BT_DBG(\"fail to stop timer\");\n }", "parent": 825, "children": [859], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 236, "column": 5}}, {"id": 859, "type": "parenthesized_expression", "text": "(ret)", "parent": 858, "children": [860], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 12}}, {"id": 860, "type": "identifier", "text": "ret", "parent": 859, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 11}}, {"id": 861, "type": "call_expression", "text": "BT_DBG(\"fail to stop timer\")", "parent": 858, "children": [862, 863], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 36}}, {"id": 862, "type": "identifier", "text": "BT_DBG", "parent": 861, "children": [], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 14}}, {"id": 863, "type": "argument_list", "text": "(\"fail to stop timer\")", "parent": 861, "children": [864], "start_point": {"row": 235, "column": 14}, "end_point": {"row": 235, "column": 36}}, {"id": 864, "type": "string_literal", "text": "\"fail to stop timer\"", "parent": 863, "children": [], "start_point": {"row": 235, "column": 15}, "end_point": {"row": 235, "column": 35}}, {"id": 865, "type": "assignment_expression", "text": "timer->timeout = 0", "parent": 825, "children": [866, 869, 870], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 22}}, {"id": 866, "type": "field_expression", "text": "timer->timeout", "parent": 865, "children": [867, 868], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 18}}, {"id": 867, "type": "identifier", "text": "timer", "parent": 866, "children": [], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 9}}, {"id": 868, "type": "field_identifier", "text": "timeout", "parent": 866, "children": [], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 18}}, {"id": 869, "type": "=", "text": "=", "parent": 865, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 20}}, {"id": 870, "type": "number_literal", "text": "0", "parent": 865, "children": [], "start_point": {"row": 241, "column": 21}, "end_point": {"row": 241, "column": 22}}, {"id": 871, "type": "function_definition", "text": "void k_sleep(s32_t duration)\n{\n aos_msleep(duration);\n}", "parent": null, "children": [872, 873], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 247, "column": 1}}, {"id": 872, "type": "primitive_type", "text": "void", "parent": 871, "children": [], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 4}}, {"id": 873, "type": "function_declarator", "text": "k_sleep(s32_t duration)", "parent": 871, "children": [874, 875], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 28}}, {"id": 874, "type": "identifier", "text": "k_sleep", "parent": 873, "children": [], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 12}}, {"id": 875, "type": "parameter_list", "text": "(s32_t duration)", "parent": 873, "children": [876], "start_point": {"row": 244, "column": 12}, "end_point": {"row": 244, "column": 28}}, {"id": 876, "type": "parameter_declaration", "text": "s32_t duration", "parent": 875, "children": [877, 878], "start_point": {"row": 244, "column": 13}, "end_point": {"row": 244, "column": 27}}, {"id": 877, "type": "type_identifier", "text": "s32_t", "parent": 876, "children": [], "start_point": {"row": 244, "column": 13}, "end_point": {"row": 244, "column": 18}}, {"id": 878, "type": "identifier", "text": "duration", "parent": 876, "children": [], "start_point": {"row": 244, "column": 19}, "end_point": {"row": 244, "column": 27}}, {"id": 879, "type": "call_expression", "text": "aos_msleep(duration)", "parent": 871, "children": [880, 881], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 24}}, {"id": 880, "type": "identifier", "text": "aos_msleep", "parent": 879, "children": [], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 14}}, {"id": 881, "type": "argument_list", "text": "(duration)", "parent": 879, "children": [882], "start_point": {"row": 246, "column": 14}, "end_point": {"row": 246, "column": 24}}, {"id": 882, "type": "identifier", "text": "duration", "parent": 881, "children": [], "start_point": {"row": 246, "column": 15}, "end_point": {"row": 246, "column": 23}}, {"id": 883, "type": "function_definition", "text": "long long k_now_ms()\n{\n return aos_now_ms();\n}", "parent": null, "children": [884, 887], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 252, "column": 1}}, {"id": 884, "type": "sized_type_specifier", "text": "long long", "parent": 883, "children": [885, 886], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 9}}, {"id": 885, "type": "long", "text": "long", "parent": 884, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 4}}, {"id": 886, "type": "long", "text": "long", "parent": 884, "children": [], "start_point": {"row": 249, "column": 5}, "end_point": {"row": 249, "column": 9}}, {"id": 887, "type": "function_declarator", "text": "k_now_ms()", "parent": 883, "children": [888, 889], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 20}}, {"id": 888, "type": "identifier", "text": "k_now_ms", "parent": 887, "children": [], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 18}}, {"id": 889, "type": "parameter_list", "text": "()", "parent": 887, "children": [], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 20}}, {"id": 890, "type": "return_statement", "text": "return aos_now_ms();", "parent": 883, "children": [891], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 24}}, {"id": 891, "type": "call_expression", "text": "aos_now_ms()", "parent": 890, "children": [892, 893], "start_point": {"row": 251, "column": 11}, "end_point": {"row": 251, "column": 23}}, {"id": 892, "type": "identifier", "text": "aos_now_ms", "parent": 891, "children": [], "start_point": {"row": 251, "column": 11}, "end_point": {"row": 251, "column": 21}}, {"id": 893, "type": "argument_list", "text": "()", "parent": 891, "children": [], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 23}}, {"id": 894, "type": "function_definition", "text": "unsigned int find_msb_set(u32_t data)\n{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }\n return (32 - count);\n}", "parent": null, "children": [895, 898], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 267, "column": 1}}, {"id": 895, "type": "sized_type_specifier", "text": "unsigned int", "parent": 894, "children": [896, 897], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 12}}, {"id": 896, "type": "unsigned", "text": "unsigned", "parent": 895, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 8}}, {"id": 897, "type": "primitive_type", "text": "int", "parent": 895, "children": [], "start_point": {"row": 254, "column": 9}, "end_point": {"row": 254, "column": 12}}, {"id": 898, "type": "function_declarator", "text": "find_msb_set(u32_t data)", "parent": 894, "children": [899, 900], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 37}}, {"id": 899, "type": "identifier", "text": "find_msb_set", "parent": 898, "children": [], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 25}}, {"id": 900, "type": "parameter_list", "text": "(u32_t data)", "parent": 898, "children": [901], "start_point": {"row": 254, "column": 25}, "end_point": {"row": 254, "column": 37}}, {"id": 901, "type": "parameter_declaration", "text": "u32_t data", "parent": 900, "children": [902, 903], "start_point": {"row": 254, "column": 26}, "end_point": {"row": 254, "column": 36}}, {"id": 902, "type": "type_identifier", "text": "u32_t", "parent": 901, "children": [], "start_point": {"row": 254, "column": 26}, "end_point": {"row": 254, "column": 31}}, {"id": 903, "type": "identifier", "text": "data", "parent": 901, "children": [], "start_point": {"row": 254, "column": 32}, "end_point": {"row": 254, "column": 36}}, {"id": 904, "type": "declaration", "text": "uint32_t count = 0;", "parent": 894, "children": [905, 906], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 23}}, {"id": 905, "type": "primitive_type", "text": "uint32_t", "parent": 904, "children": [], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 12}}, {"id": 906, "type": "init_declarator", "text": "count = 0", "parent": 904, "children": [907, 908, 909], "start_point": {"row": 256, "column": 13}, "end_point": {"row": 256, "column": 22}}, {"id": 907, "type": "identifier", "text": "count", "parent": 906, "children": [], "start_point": {"row": 256, "column": 13}, "end_point": {"row": 256, "column": 18}}, {"id": 908, "type": "=", "text": "=", "parent": 906, "children": [], "start_point": {"row": 256, "column": 19}, "end_point": {"row": 256, "column": 20}}, {"id": 909, "type": "number_literal", "text": "0", "parent": 906, "children": [], "start_point": {"row": 256, "column": 21}, "end_point": {"row": 256, "column": 22}}, {"id": 910, "type": "declaration", "text": "uint32_t mask = 0x80000000;", "parent": 894, "children": [911, 912], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 32}}, {"id": 911, "type": "primitive_type", "text": "uint32_t", "parent": 910, "children": [], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 12}}, {"id": 912, "type": "init_declarator", "text": "mask = 0x80000000", "parent": 910, "children": [913, 914, 915], "start_point": {"row": 257, "column": 13}, "end_point": {"row": 257, "column": 31}}, {"id": 913, "type": "identifier", "text": "mask", "parent": 912, "children": [], "start_point": {"row": 257, "column": 13}, "end_point": {"row": 257, "column": 17}}, {"id": 914, "type": "=", "text": "=", "parent": 912, "children": [], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 20}}, {"id": 915, "type": "number_literal", "text": "0x80000000", "parent": 912, "children": [], "start_point": {"row": 257, "column": 21}, "end_point": {"row": 257, "column": 31}}, {"id": 916, "type": "if_statement", "text": "if (!data) {\n return 0;\n }", "parent": 894, "children": [917], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 261, "column": 5}}, {"id": 917, "type": "parenthesized_expression", "text": "(!data)", "parent": 916, "children": [918], "start_point": {"row": 259, "column": 7}, "end_point": {"row": 259, "column": 14}}, {"id": 918, "type": "unary_expression", "text": "!data", "parent": 917, "children": [919, 920], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 13}}, {"id": 919, "type": "!", "text": "!", "parent": 918, "children": [], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 9}}, {"id": 920, "type": "identifier", "text": "data", "parent": 918, "children": [], "start_point": {"row": 259, "column": 9}, "end_point": {"row": 259, "column": 13}}, {"id": 921, "type": "return_statement", "text": "return 0;", "parent": 916, "children": [922], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 17}}, {"id": 922, "type": "number_literal", "text": "0", "parent": 921, "children": [], "start_point": {"row": 260, "column": 15}, "end_point": {"row": 260, "column": 16}}, {"id": 923, "type": "while_statement", "text": "while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }", "parent": 894, "children": [924], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 265, "column": 5}}, {"id": 924, "type": "parenthesized_expression", "text": "((data & mask) == 0)", "parent": 923, "children": [925], "start_point": {"row": 262, "column": 10}, "end_point": {"row": 262, "column": 30}}, {"id": 925, "type": "binary_expression", "text": "(data & mask) == 0", "parent": 924, "children": [926, 930, 931], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 29}}, {"id": 926, "type": "parenthesized_expression", "text": "(data & mask)", "parent": 925, "children": [927], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 24}}, {"id": 927, "type": "binary_expression", "text": "data & mask", "parent": 926, "children": [928, 929], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 23}}, {"id": 928, "type": "identifier", "text": "data", "parent": 927, "children": [], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 16}}, {"id": 929, "type": "identifier", "text": "mask", "parent": 927, "children": [], "start_point": {"row": 262, "column": 19}, "end_point": {"row": 262, "column": 23}}, {"id": 930, "type": "==", "text": "==", "parent": 925, "children": [], "start_point": {"row": 262, "column": 25}, "end_point": {"row": 262, "column": 27}}, {"id": 931, "type": "number_literal", "text": "0", "parent": 925, "children": [], "start_point": {"row": 262, "column": 28}, "end_point": {"row": 262, "column": 29}}, {"id": 932, "type": "assignment_expression", "text": "count += 1u", "parent": 923, "children": [933, 934, 935], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 19}}, {"id": 933, "type": "identifier", "text": "count", "parent": 932, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 13}}, {"id": 934, "type": "+=", "text": "+=", "parent": 932, "children": [], "start_point": {"row": 263, "column": 14}, "end_point": {"row": 263, "column": 16}}, {"id": 935, "type": "number_literal", "text": "1u", "parent": 932, "children": [], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 19}}, {"id": 936, "type": "assignment_expression", "text": "mask = mask >> 1u", "parent": 923, "children": [937, 938, 939], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 25}}, {"id": 937, "type": "identifier", "text": "mask", "parent": 936, "children": [], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 12}}, {"id": 938, "type": "=", "text": "=", "parent": 936, "children": [], "start_point": {"row": 264, "column": 13}, "end_point": {"row": 264, "column": 14}}, {"id": 939, "type": "binary_expression", "text": "mask >> 1u", "parent": 936, "children": [940, 941, 942], "start_point": {"row": 264, "column": 15}, "end_point": {"row": 264, "column": 25}}, {"id": 940, "type": "identifier", "text": "mask", "parent": 939, "children": [], "start_point": {"row": 264, "column": 15}, "end_point": {"row": 264, "column": 19}}, {"id": 941, "type": ">>", "text": ">>", "parent": 939, "children": [], "start_point": {"row": 264, "column": 20}, "end_point": {"row": 264, "column": 22}}, {"id": 942, "type": "number_literal", "text": "1u", "parent": 939, "children": [], "start_point": {"row": 264, "column": 23}, "end_point": {"row": 264, "column": 25}}, {"id": 943, "type": "return_statement", "text": "return (32 - count);", "parent": 894, "children": [944], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 24}}, {"id": 944, "type": "parenthesized_expression", "text": "(32 - count)", "parent": 943, "children": [945], "start_point": {"row": 266, "column": 11}, "end_point": {"row": 266, "column": 23}}, {"id": 945, "type": "binary_expression", "text": "32 - count", "parent": 944, "children": [946, 947, 948], "start_point": {"row": 266, "column": 12}, "end_point": {"row": 266, "column": 22}}, {"id": 946, "type": "number_literal", "text": "32", "parent": 945, "children": [], "start_point": {"row": 266, "column": 12}, "end_point": {"row": 266, "column": 14}}, {"id": 947, "type": "-", "text": "-", "parent": 945, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 16}}, {"id": 948, "type": "identifier", "text": "count", "parent": 945, "children": [], "start_point": {"row": 266, "column": 17}, "end_point": {"row": 266, "column": 22}}, {"id": 949, "type": "function_definition", "text": "unsigned int find_lsb_set(u32_t data)\n{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }\n return (count);\n}", "parent": null, "children": [950, 953], "start_point": {"row": 269, "column": 0}, "end_point": {"row": 282, "column": 1}}, {"id": 950, "type": "sized_type_specifier", "text": "unsigned int", "parent": 949, "children": [951, 952], "start_point": {"row": 269, "column": 0}, "end_point": {"row": 269, "column": 12}}, {"id": 951, "type": "unsigned", "text": "unsigned", "parent": 950, "children": [], "start_point": {"row": 269, "column": 0}, "end_point": {"row": 269, "column": 8}}, {"id": 952, "type": "primitive_type", "text": "int", "parent": 950, "children": [], "start_point": {"row": 269, "column": 9}, "end_point": {"row": 269, "column": 12}}, {"id": 953, "type": "function_declarator", "text": "find_lsb_set(u32_t data)", "parent": 949, "children": [954, 955], "start_point": {"row": 269, "column": 13}, "end_point": {"row": 269, "column": 37}}, {"id": 954, "type": "identifier", "text": "find_lsb_set", "parent": 953, "children": [], "start_point": {"row": 269, "column": 13}, "end_point": {"row": 269, "column": 25}}, {"id": 955, "type": "parameter_list", "text": "(u32_t data)", "parent": 953, "children": [956], "start_point": {"row": 269, "column": 25}, "end_point": {"row": 269, "column": 37}}, {"id": 956, "type": "parameter_declaration", "text": "u32_t data", "parent": 955, "children": [957, 958], "start_point": {"row": 269, "column": 26}, "end_point": {"row": 269, "column": 36}}, {"id": 957, "type": "type_identifier", "text": "u32_t", "parent": 956, "children": [], "start_point": {"row": 269, "column": 26}, "end_point": {"row": 269, "column": 31}}, {"id": 958, "type": "identifier", "text": "data", "parent": 956, "children": [], "start_point": {"row": 269, "column": 32}, "end_point": {"row": 269, "column": 36}}, {"id": 959, "type": "declaration", "text": "uint32_t count = 1;", "parent": 949, "children": [960, 961], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 271, "column": 23}}, {"id": 960, "type": "primitive_type", "text": "uint32_t", "parent": 959, "children": [], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 271, "column": 12}}, {"id": 961, "type": "init_declarator", "text": "count = 1", "parent": 959, "children": [962, 963, 964], "start_point": {"row": 271, "column": 13}, "end_point": {"row": 271, "column": 22}}, {"id": 962, "type": "identifier", "text": "count", "parent": 961, "children": [], "start_point": {"row": 271, "column": 13}, "end_point": {"row": 271, "column": 18}}, {"id": 963, "type": "=", "text": "=", "parent": 961, "children": [], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 20}}, {"id": 964, "type": "number_literal", "text": "1", "parent": 961, "children": [], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 22}}, {"id": 965, "type": "declaration", "text": "uint32_t mask = 0x00000001;", "parent": 949, "children": [966, 967], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 32}}, {"id": 966, "type": "primitive_type", "text": "uint32_t", "parent": 965, "children": [], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 12}}, {"id": 967, "type": "init_declarator", "text": "mask = 0x00000001", "parent": 965, "children": [968, 969, 970], "start_point": {"row": 272, "column": 13}, "end_point": {"row": 272, "column": 31}}, {"id": 968, "type": "identifier", "text": "mask", "parent": 967, "children": [], "start_point": {"row": 272, "column": 13}, "end_point": {"row": 272, "column": 17}}, {"id": 969, "type": "=", "text": "=", "parent": 967, "children": [], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 20}}, {"id": 970, "type": "number_literal", "text": "0x00000001", "parent": 967, "children": [], "start_point": {"row": 272, "column": 21}, "end_point": {"row": 272, "column": 31}}, {"id": 971, "type": "if_statement", "text": "if (!data) {\n return 0;\n }", "parent": 949, "children": [972], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 276, "column": 5}}, {"id": 972, "type": "parenthesized_expression", "text": "(!data)", "parent": 971, "children": [973], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 14}}, {"id": 973, "type": "unary_expression", "text": "!data", "parent": 972, "children": [974, 975], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 13}}, {"id": 974, "type": "!", "text": "!", "parent": 973, "children": [], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 9}}, {"id": 975, "type": "identifier", "text": "data", "parent": 973, "children": [], "start_point": {"row": 274, "column": 9}, "end_point": {"row": 274, "column": 13}}, {"id": 976, "type": "return_statement", "text": "return 0;", "parent": 971, "children": [977], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 17}}, {"id": 977, "type": "number_literal", "text": "0", "parent": 976, "children": [], "start_point": {"row": 275, "column": 15}, "end_point": {"row": 275, "column": 16}}, {"id": 978, "type": "while_statement", "text": "while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }", "parent": 949, "children": [979], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 280, "column": 5}}, {"id": 979, "type": "parenthesized_expression", "text": "((data & mask) == 0)", "parent": 978, "children": [980], "start_point": {"row": 277, "column": 10}, "end_point": {"row": 277, "column": 30}}, {"id": 980, "type": "binary_expression", "text": "(data & mask) == 0", "parent": 979, "children": [981, 985, 986], "start_point": {"row": 277, "column": 11}, "end_point": {"row": 277, "column": 29}}, {"id": 981, "type": "parenthesized_expression", "text": "(data & mask)", "parent": 980, "children": [982], "start_point": {"row": 277, "column": 11}, "end_point": {"row": 277, "column": 24}}, {"id": 982, "type": "binary_expression", "text": "data & mask", "parent": 981, "children": [983, 984], "start_point": {"row": 277, "column": 12}, "end_point": {"row": 277, "column": 23}}, {"id": 983, "type": "identifier", "text": "data", "parent": 982, "children": [], "start_point": {"row": 277, "column": 12}, "end_point": {"row": 277, "column": 16}}, {"id": 984, "type": "identifier", "text": "mask", "parent": 982, "children": [], "start_point": {"row": 277, "column": 19}, "end_point": {"row": 277, "column": 23}}, {"id": 985, "type": "==", "text": "==", "parent": 980, "children": [], "start_point": {"row": 277, "column": 25}, "end_point": {"row": 277, "column": 27}}, {"id": 986, "type": "number_literal", "text": "0", "parent": 980, "children": [], "start_point": {"row": 277, "column": 28}, "end_point": {"row": 277, "column": 29}}, {"id": 987, "type": "assignment_expression", "text": "count += 1u", "parent": 978, "children": [988, 989, 990], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 19}}, {"id": 988, "type": "identifier", "text": "count", "parent": 987, "children": [], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 13}}, {"id": 989, "type": "+=", "text": "+=", "parent": 987, "children": [], "start_point": {"row": 278, "column": 14}, "end_point": {"row": 278, "column": 16}}, {"id": 990, "type": "number_literal", "text": "1u", "parent": 987, "children": [], "start_point": {"row": 278, "column": 17}, "end_point": {"row": 278, "column": 19}}, {"id": 991, "type": "assignment_expression", "text": "mask = mask << 1u", "parent": 978, "children": [992, 993, 994], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 279, "column": 25}}, {"id": 992, "type": "identifier", "text": "mask", "parent": 991, "children": [], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 279, "column": 12}}, {"id": 993, "type": "=", "text": "=", "parent": 991, "children": [], "start_point": {"row": 279, "column": 13}, "end_point": {"row": 279, "column": 14}}, {"id": 994, "type": "binary_expression", "text": "mask << 1u", "parent": 991, "children": [995, 996, 997], "start_point": {"row": 279, "column": 15}, "end_point": {"row": 279, "column": 25}}, {"id": 995, "type": "identifier", "text": "mask", "parent": 994, "children": [], "start_point": {"row": 279, "column": 15}, "end_point": {"row": 279, "column": 19}}, {"id": 996, "type": "<<", "text": "<<", "parent": 994, "children": [], "start_point": {"row": 279, "column": 20}, "end_point": {"row": 279, "column": 22}}, {"id": 997, "type": "number_literal", "text": "1u", "parent": 994, "children": [], "start_point": {"row": 279, "column": 23}, "end_point": {"row": 279, "column": 25}}, {"id": 998, "type": "return_statement", "text": "return (count);", "parent": 949, "children": [999], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 19}}, {"id": 999, "type": "parenthesized_expression", "text": "(count)", "parent": 998, "children": [1000], "start_point": {"row": 281, "column": 11}, "end_point": {"row": 281, "column": 18}}, {"id": 1000, "type": "identifier", "text": "count", "parent": 999, "children": [], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 17}}]}, "node_categories": {"declarations": {"functions": [41, 43, 103, 105, 148, 150, 185, 187, 222, 226, 259, 261, 314, 316, 359, 361, 391, 393, 400, 402, 415, 426, 428, 584, 586, 593, 597, 610, 612, 630, 632, 645, 647, 722, 724, 825, 827, 871, 873, 883, 887, 894, 898, 949, 953], "variables": [46, 53, 58, 63, 108, 115, 118, 153, 190, 229, 239, 264, 271, 319, 326, 329, 364, 412, 421, 431, 438, 443, 446, 449, 454, 459, 464, 467, 470, 478, 511, 589, 600, 615, 635, 640, 650, 655, 658, 663, 727, 732, 735, 830, 835, 876, 901, 904, 910, 956, 959, 965], "classes": [47, 48, 109, 110, 154, 155, 191, 192, 230, 231, 265, 266, 320, 321, 365, 366, 432, 433], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 37, 38], "modules": [], "enums": []}, "statements": {"expressions": [67, 68, 73, 79, 85, 88, 89, 94, 97, 98, 122, 123, 135, 140, 143, 144, 161, 162, 167, 173, 176, 179, 180, 198, 199, 204, 210, 213, 216, 217, 242, 245, 246, 249, 252, 275, 276, 281, 290, 293, 294, 299, 301, 306, 309, 310, 333, 334, 346, 351, 354, 355, 372, 373, 378, 384, 387, 388, 397, 406, 409, 474, 475, 484, 487, 488, 489, 493, 501, 503, 519, 522, 523, 526, 527, 535, 536, 541, 550, 553, 554, 557, 565, 572, 577, 602, 605, 620, 627, 666, 671, 679, 685, 693, 696, 697, 701, 702, 705, 708, 716, 718, 738, 743, 750, 756, 760, 763, 769, 772, 773, 777, 779, 786, 789, 790, 793, 797, 802, 804, 811, 814, 815, 819, 821, 838, 843, 851, 854, 855, 859, 861, 866, 879, 891, 917, 918, 924, 925, 926, 927, 939, 944, 945, 972, 973, 979, 980, 981, 982, 994, 999], "assignments": [82, 127, 132, 287, 338, 343, 481, 516, 534, 547, 623, 678, 684, 690, 749, 755, 766, 783, 808, 848, 865, 932, 936, 987, 991], "loops": [923, 978], "conditionals": [17, 34, 35, 36, 40, 44, 49, 52, 54, 57, 59, 62, 65, 66, 72, 74, 81, 83, 86, 90, 91, 93, 95, 99, 100, 102, 106, 111, 114, 117, 119, 120, 121, 124, 126, 128, 130, 133, 136, 138, 141, 145, 146, 147, 151, 156, 159, 160, 166, 168, 175, 177, 181, 182, 188, 193, 196, 197, 203, 205, 212, 214, 218, 219, 223, 227, 232, 235, 236, 237, 238, 240, 241, 243, 247, 248, 250, 255, 256, 262, 267, 270, 273, 274, 280, 282, 288, 291, 295, 296, 298, 300, 302, 307, 311, 312, 317, 322, 325, 327, 328, 330, 331, 332, 335, 337, 339, 341, 344, 347, 349, 352, 356, 357, 358, 362, 367, 370, 371, 377, 379, 385, 389, 390, 394, 398, 401, 403, 408, 410, 419, 425, 429, 434, 437, 439, 442, 445, 447, 448, 453, 458, 463, 466, 468, 469, 471, 472, 473, 477, 480, 482, 485, 490, 491, 495, 496, 497, 498, 499, 500, 502, 504, 509, 512, 515, 517, 520, 524, 525, 528, 533, 537, 538, 539, 546, 548, 551, 555, 558, 560, 562, 563, 567, 570, 571, 574, 575, 576, 578, 587, 594, 598, 603, 606, 609, 613, 616, 619, 621, 624, 626, 628, 633, 636, 639, 644, 648, 651, 654, 656, 657, 662, 665, 667, 669, 672, 675, 676, 677, 680, 681, 683, 686, 687, 689, 691, 694, 698, 699, 703, 706, 707, 709, 713, 715, 717, 719, 725, 728, 731, 734, 737, 739, 741, 744, 747, 748, 751, 752, 754, 757, 758, 764, 767, 770, 774, 775, 776, 778, 780, 784, 787, 791, 792, 794, 796, 798, 800, 801, 803, 805, 809, 812, 816, 817, 818, 820, 822, 828, 831, 834, 837, 839, 841, 844, 847, 849, 852, 856, 857, 858, 860, 862, 867, 868, 874, 877, 878, 880, 882, 884, 888, 892, 895, 899, 902, 903, 907, 913, 916, 920, 928, 929, 933, 937, 940, 948, 950, 954, 957, 958, 962, 968, 971, 975, 983, 984, 988, 992, 995, 1000], "returns": [78, 101, 139, 172, 183, 209, 220, 251, 257, 286, 313, 350, 383, 396, 405, 508, 532, 556, 591, 608, 890, 921, 943, 976, 998], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 21, 24, 27, 30, 33, 39, 76, 92, 170, 184, 207, 221, 258, 284, 297, 304, 381, 492, 506, 561, 564, 580, 582, 583, 592, 670, 674, 700, 711, 712, 714, 721, 742, 746, 782, 807, 824, 842, 846, 864, 870, 909, 915, 922, 931, 935, 942, 946, 964, 970, 977, 986, 990, 997], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 41, "universal_type": "function", "name": "k_sem_init", "text_snippet": "int k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)\n{\n "}, {"node_id": 43, "universal_type": "function", "name": "initial_count,", "text_snippet": "k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)"}, {"node_id": 103, "universal_type": "function", "name": "k_sem_take", "text_snippet": "int k_sem_take(struct k_sem *sem, uint32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVE"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "k_sem_take(struct k_sem *sem, uint32_t timeout)"}, {"node_id": 148, "universal_type": "function", "name": "k_sem_give", "text_snippet": "int k_sem_give(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n "}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "k_sem_give(struct k_sem *sem)"}, {"node_id": 185, "universal_type": "function", "name": "k_sem_delete", "text_snippet": "int k_sem_delete(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n "}, {"node_id": 187, "universal_type": "function", "name": "unknown", "text_snippet": "k_sem_delete(struct k_sem *sem)"}, {"node_id": 222, "universal_type": "function", "name": "k_sem_count_get", "text_snippet": "unsigned int k_sem_count_get(struct k_sem *sem)\n{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhi"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "k_sem_count_get(struct k_sem *sem)"}, {"node_id": 259, "universal_type": "function", "name": "k_mutex_init", "text_snippet": "void k_mutex_init(struct k_mutex *mutex)\n{\n int stat;\n if (NULL == mutex) {\n BT_ERR(\"mu"}, {"node_id": 261, "universal_type": "function", "name": "unknown", "text_snippet": "k_mutex_init(struct k_mutex *mutex)"}, {"node_id": 314, "universal_type": "function", "name": "k_mutex_lock", "text_snippet": "int k_mutex_lock(struct k_mutex *mutex, s32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOR"}, {"node_id": 316, "universal_type": "function", "name": "unknown", "text_snippet": "k_mutex_lock(struct k_mutex *mutex, s32_t timeout)"}, {"node_id": 359, "universal_type": "function", "name": "k_mutex_unlock", "text_snippet": "void k_mutex_unlock(struct k_mutex *mutex)\n{\n if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\"}, {"node_id": 361, "universal_type": "function", "name": "unknown", "text_snippet": "k_mutex_unlock(struct k_mutex *mutex)"}, {"node_id": 391, "universal_type": "function", "name": "unknown", "text_snippet": "int64_t k_uptime_get()\n{\n return aos_now_ms();\n}"}, {"node_id": 393, "universal_type": "function", "name": "unknown", "text_snippet": "k_uptime_get()"}, {"node_id": 400, "universal_type": "function", "name": "unknown", "text_snippet": "u32_t k_uptime_get_32()\n{\n return (u32_t)aos_now_ms();\n}"}, {"node_id": 402, "universal_type": "function", "name": "unknown", "text_snippet": "k_uptime_get_32()"}, {"node_id": 415, "universal_type": "function", "name": "unknown", "text_snippet": "(*task_entry_t)(void *args)"}, {"node_id": 426, "universal_type": "function", "name": "k_thread_create", "text_snippet": "int k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t"}, {"node_id": 428, "universal_type": "function", "name": "*p1,", "text_snippet": "k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t sta"}, {"node_id": 584, "universal_type": "function", "name": "k_yield", "text_snippet": "int k_yield(void)\n{\n return 0;\n}"}, {"node_id": 586, "universal_type": "function", "name": "unknown", "text_snippet": "k_yield(void)"}, {"node_id": 593, "universal_type": "function", "name": "irq_lock", "text_snippet": "unsigned int irq_lock(void)\n{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}"}, {"node_id": 597, "universal_type": "function", "name": "unknown", "text_snippet": "irq_lock(void)"}, {"node_id": 610, "universal_type": "function", "name": "irq_unlock", "text_snippet": "void irq_unlock(unsigned int key)\n{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();"}, {"node_id": 612, "universal_type": "function", "name": "key)", "text_snippet": "irq_unlock(unsigned int key)"}, {"node_id": 630, "universal_type": "function", "name": "_SysFatalErrorHandler", "text_snippet": "void _SysFatalErrorHandler(unsigned int reason, const void *pEsf){}"}, {"node_id": 632, "universal_type": "function", "name": "reason,", "text_snippet": "_SysFatalErrorHandler(unsigned int reason, const void *pEsf)"}, {"node_id": 645, "universal_type": "function", "name": "k_timer_init", "text_snippet": "void k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)\n{\n int ret;\n ASSERT("}, {"node_id": 647, "universal_type": "function", "name": "*args)", "text_snippet": "k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)"}, {"node_id": 722, "universal_type": "function", "name": "k_timer_start", "text_snippet": "void k_timer_start(k_timer_t *timer, uint32_t timeout)\n{\n int ret;\n ASSERT(timer, \"timer is NU"}, {"node_id": 724, "universal_type": "function", "name": "unknown", "text_snippet": "k_timer_start(k_timer_t *timer, uint32_t timeout)"}, {"node_id": 825, "universal_type": "function", "name": "k_timer_stop", "text_snippet": "void k_timer_stop(k_timer_t *timer)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"t"}, {"node_id": 827, "universal_type": "function", "name": "unknown", "text_snippet": "k_timer_stop(k_timer_t *timer)"}, {"node_id": 871, "universal_type": "function", "name": "k_sleep", "text_snippet": "void k_sleep(s32_t duration)\n{\n aos_msleep(duration);\n}"}, {"node_id": 873, "universal_type": "function", "name": "unknown", "text_snippet": "k_sleep(s32_t duration)"}, {"node_id": 883, "universal_type": "function", "name": "unknown", "text_snippet": "long long k_now_ms()\n{\n return aos_now_ms();\n}"}, {"node_id": 887, "universal_type": "function", "name": "unknown", "text_snippet": "k_now_ms()"}, {"node_id": 894, "universal_type": "function", "name": "find_msb_set", "text_snippet": "unsigned int find_msb_set(u32_t data)\n{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n "}, {"node_id": 898, "universal_type": "function", "name": "unknown", "text_snippet": "find_msb_set(u32_t data)"}, {"node_id": 949, "universal_type": "function", "name": "find_lsb_set", "text_snippet": "unsigned int find_lsb_set(u32_t data)\n{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n "}, {"node_id": 953, "universal_type": "function", "name": "unknown", "text_snippet": "find_lsb_set(u32_t data)"}], "class_declarations": [{"node_id": 47, "universal_type": "class", "name": "k_sem", "text_snippet": "struct k_sem"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 109, "universal_type": "class", "name": "k_sem", "text_snippet": "struct k_sem"}, {"node_id": 110, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 154, "universal_type": "class", "name": "k_sem", "text_snippet": "struct k_sem"}, {"node_id": 155, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 191, "universal_type": "class", "name": "k_sem", "text_snippet": "struct k_sem"}, {"node_id": 192, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 230, "universal_type": "class", "name": "k_sem", "text_snippet": "struct k_sem"}, {"node_id": 231, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 265, "universal_type": "class", "name": "k_mutex", "text_snippet": "struct k_mutex"}, {"node_id": 266, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 320, "universal_type": "class", "name": "k_mutex", "text_snippet": "struct k_mutex"}, {"node_id": 321, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 365, "universal_type": "class", "name": "k_mutex", "text_snippet": "struct k_mutex"}, {"node_id": 366, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 432, "universal_type": "class", "name": "k_thread", "text_snippet": "struct k_thread"}, {"node_id": 433, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <zephyr.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <misc/util.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <misc/dlist.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"aos/errno.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"aos/kernel.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 19, "text": "#include <common/log.h>\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include <stddef.h>\n"}, {"node_id": 23, "text": "#include"}, {"node_id": 25, "text": "#include <stdint.h>\n"}, {"node_id": 26, "text": "#include"}, {"node_id": 28, "text": "#include <string.h>\n"}, {"node_id": 29, "text": "#include"}, {"node_id": 31, "text": "#include \"atomic.h\"\n"}, {"node_id": 32, "text": "#include"}, {"node_id": 37, "text": "#include \"k_api.h\"\n"}, {"node_id": 38, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n\n#include <zephyr.h>\n#include <misc/util.h>\n#include <misc/dlist.h>\n\n#include \"aos/errno.h\"\n#include \"aos/kernel.h\"\n\n#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLUETOOTH_DEBUG_CORE)\n\n#include <common/log.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <string.h>\n#include \"atomic.h\"\n\n#ifdef OSAL_RHINO\n#include \"k_api.h\"\n#endif\n\nint k_sem_init(struct k_sem *sem, unsigned int initial_count,\n unsigned int limit)\n{\n int ret;\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n ret = krhino_sem_create(&sem->sem, \"ble\", initial_count);\n sys_dlist_init(&sem->poll_events);\n return ret;\n}\n\nint k_sem_take(struct k_sem *sem, uint32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n return krhino_sem_take(&sem->sem, ticks);\n}\n\nint k_sem_give(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n krhino_sem_give(&sem->sem);\n return 0;\n}\n\nint k_sem_delete(struct k_sem *sem)\n{\n if (NULL == sem) {\n BT_ERR(\"sem is NULL\\n\");\n return -EINVAL;\n }\n\n krhino_sem_del(&sem->sem);\n return 0;\n}\n\nunsigned int k_sem_count_get(struct k_sem *sem)\n{\n#ifdef OSAL_RHINO\n sem_count_t count;\n\n krhino_sem_count_get(&sem->sem, &count);\n return (int)count;\n#endif\n return 0;\n}\n\n\nvoid k_mutex_init(struct k_mutex *mutex)\n{\n int stat;\n if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }\n\n stat = krhino_mutex_create(&mutex->mutex, \"ble\");\n if(stat){\n BT_ERR(\"mutex buffer over\\n\");\n }\n sys_dlist_init(&mutex->poll_events);\n return;\n}\n\nint k_mutex_lock(struct k_mutex *mutex, s32_t timeout)\n{\n tick_t ticks;\n\n if (timeout == K_FOREVER) {\n ticks = RHINO_WAIT_FOREVER;\n } else {\n ticks = krhino_ms_to_ticks(timeout);\n }\n\n return krhino_mutex_lock(&mutex->mutex, ticks);\n}\n\nvoid k_mutex_unlock(struct k_mutex *mutex)\n{\n if (NULL == mutex) {\n BT_ERR(\"mutex is NULL\\n\");\n return;\n }\n\n krhino_mutex_unlock(&mutex->mutex);\n}\n\nint64_t k_uptime_get()\n{\n return aos_now_ms();\n}\n\nu32_t k_uptime_get_32()\n{\n return (u32_t)aos_now_ms();\n}\n\ntypedef void (*task_entry_t)(void *args);\nint k_thread_create(struct k_thread *new_thread, k_thread_stack_t *stack,\n size_t stack_size, k_thread_entry_t entry, void *p1,\n void *p2, void *p3, int prio, u32_t options, s32_t delay)\n{\n if (!stack) { // Use dynamic stack if no static one provided\n int ret;\n\n ret = aos_task_new_ext(&(new_thread->task), \"ble\", (task_entry_t)entry, p1,\n stack_size, prio);\n if (ret) {\n SYS_LOG_ERR(\"create ble task fail\\n\");\n }\n\n return ret;\n } else { // Use static statck if provided\n ktask_t *task_obj;\n\n task_obj = krhino_mm_alloc(sizeof(ktask_t));\n if (task_obj == NULL) {\n return RHINO_NO_MEM;\n }\n\n /* Free the below handle whenever task exits. */\n new_thread->task.hdl = (void *)task_obj;\n\n stack_size = stack_size / sizeof(cpu_stack_t);\n return krhino_task_create(task_obj, \"ble\", p1, prio, 0,\n (cpu_stack_t *)stack,\n stack_size ,\n (task_entry_t)entry,\n delay == 0 ? 1: 0);\n }\n}\n\nint k_yield(void)\n{\n return 0;\n}\n\nunsigned int irq_lock(void)\n{\n CPSR_ALLOC();\n RHINO_CPU_INTRPT_DISABLE();\n return cpsr;\n}\n\nvoid irq_unlock(unsigned int key)\n{\n CPSR_ALLOC();\n cpsr = key;\n RHINO_CPU_INTRPT_ENABLE();\n}\n\nvoid _SysFatalErrorHandler(unsigned int reason, const void *pEsf){};\n\nvoid k_timer_init(k_timer_t *timer, k_timer_handler_t handle, void *args)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p,handle %p,args %p\", timer, handle, args);\n timer->handler = handle;\n timer->args = args;\n ret =\n krhino_timer_create(&timer->timer, \"AOS\", (timer_cb_t)(timer->handler),\n krhino_ms_to_ticks(1000), 0, args, 0);\n if (ret) {\n BT_DBG(\"fail to create a timer\");\n }\n}\n\nvoid k_timer_start(k_timer_t *timer, uint32_t timeout)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p,timeout %u\", timer, timeout);\n timer->timeout = timeout;\n timer->start_ms = (uint32_t)aos_now_ms();\n\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to stop timer\");\n }\n\n ret = krhino_timer_change(&timer->timer, krhino_ms_to_ticks(timeout),\n krhino_ms_to_ticks(timeout));\n if (ret) {\n BT_DBG(\"fail to change timeout\");\n }\n\n ret = krhino_timer_start(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to start timer\");\n }\n}\n\nvoid k_timer_stop(k_timer_t *timer)\n{\n int ret;\n ASSERT(timer, \"timer is NULL\");\n BT_DBG(\"timer %p\", timer);\n ret = krhino_timer_stop(&timer->timer);\n if (ret) {\n BT_DBG(\"fail to stop timer\");\n }\n /**\n * Timer may be reused, so its timeout value\n * should be cleared when stopped.\n */\n timer->timeout = 0;\n}\n\nvoid k_sleep(s32_t duration)\n{\n aos_msleep(duration);\n}\n\nlong long k_now_ms()\n{\n return aos_now_ms();\n}\n\nunsigned int find_msb_set(u32_t data)\n{\n uint32_t count = 0;\n uint32_t mask = 0x80000000;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask >> 1u;\n }\n return (32 - count);\n}\n\nunsigned int find_lsb_set(u32_t data)\n{\n uint32_t count = 1;\n uint32_t mask = 0x00000001;\n\n if (!data) {\n return 0;\n }\n while ((data & mask) == 0) {\n count += 1u;\n mask = mask << 1u;\n }\n return (count);\n}\n"}
121
c
#ifndef __SF65_TYPES_H__ #define __SF65_TYPES_H__ typedef enum { SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC } sf65Case_t; typedef enum { SF65_STREQ, SF65_STRNOTEQ } sf65StrEq_t; /* * Struct to hold values of command line arguments given to sf65 */ typedef struct { int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces int style; // 0 = four columns, 1 = three columns int processor; // 0 = unknown assembler, 1 = CA65 int start_mnemonic; // x-position where mnemonics should be placed in output file int start_operand; // x-position where operand should be placed in output file int start_comment; // x-position where comments should be placed in output file int start_directive; // x-position where directives should be placed in output file int align_comment; // should comments be aligned with mnemonics if they are found on linestart? int nesting_space; // tab width or according number of spaces to fill in output int labels_own_line; // flag, if labels should be moved to own line in output file int oversized_labels_own_line; int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified int pad_directives; // determine whether certain directives should be padded with empty lines char *infilename; // filename of the unformatted source char *outfilename; // filename of the formatted source } sf65Options_t; /* * Struct to hold the names of the assembler directives * as well as the flags which define how to deal with the former */ typedef struct { char *directive; int flags; } directives_t; #define EXPRTYPES \ ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\ ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\ ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR) #define ET(x) SF65_##x typedef enum { EXPRTYPES } sf65ExpressionEnum_t; #undef ET /* Use XMacro trick to generate appropriate bitmasks for Alignment types */ #define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\ A(LEVEL_IN),\ A(LEVEL_OUT),\ A(LEVEL_MINUS),\ A(ALIGN_MNEMONIC),\ A(ALIGN_HIGHLIMIT) /* First assign bit positions to alignment constants */ #define A(x) x##_BITNO enum { ALGNMTYPES }; #undef A /* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position * constants */ #define A(x) x = 1<<x##_BITNO typedef enum { ALGNMTYPES } sf65Alignment_t; #undef A typedef struct { sf65ExpressionEnum_t exprType; int index; char rightmostChar; } sf65Expression_t; /* * Struct to hold variables needed for parsing of unformatted source */ typedef struct { unsigned int label_detected: 1; unsigned int mnemonic_detected: 1; unsigned int directive_detected: 1; unsigned int operand_detected: 1; unsigned int first_expression: 1; unsigned int beginning_of_line: 1; unsigned int additional_linefeed: 1; unsigned int instant_additional_linefeed: 1; unsigned int force_separating_space: 1; unsigned int line_continuation: 1; int current_column; int last_column; int request; int current_level; int flags; int prev_comment_original_location; int prev_comment_final_location; sf65Expression_t prev_expr; } sf65ParsingData_t; #endif
37.2
95
(translation_unit) "#ifndef __SF65_TYPES_H__\n#define __SF65_TYPES_H__\n\ntypedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;\n\ntypedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;\n\n/*\n * Struct to hold values of command line arguments given to sf65\n */\ntypedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;\n\n\n\n/*\n * Struct to hold the names of the assembler directives\n * as well as the flags which define how to deal with the former\n */\ntypedef struct {\n char *directive;\n int flags;\n} directives_t;\n\n#define EXPRTYPES \\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n\n#define ET(x) SF65_##x\n\ntypedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;\n\n#undef ET\n\n/* Use XMacro trick to generate appropriate bitmasks for Alignment types\n */\n#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\n A(LEVEL_IN),\\n A(LEVEL_OUT),\\n A(LEVEL_MINUS),\\n A(ALIGN_MNEMONIC),\\n A(ALIGN_HIGHLIMIT)\n\n/* First assign bit positions to alignment constants\n */\n#define A(x) x##_BITNO\nenum {\n ALGNMTYPES\n};\n#undef A\n\n/* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position\n * constants\n */\n#define A(x) x = 1<<x##_BITNO\ntypedef enum {\n ALGNMTYPES\n} sf65Alignment_t;\n#undef A\n\ntypedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;\n\n/*\n * Struct to hold variables needed for parsing of unformatted source\n */\ntypedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;\n#endif\n" (preproc_ifdef) "#ifndef __SF65_TYPES_H__\n#define __SF65_TYPES_H__\n\ntypedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;\n\ntypedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;\n\n/*\n * Struct to hold values of command line arguments given to sf65\n */\ntypedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;\n\n\n\n/*\n * Struct to hold the names of the assembler directives\n * as well as the flags which define how to deal with the former\n */\ntypedef struct {\n char *directive;\n int flags;\n} directives_t;\n\n#define EXPRTYPES \\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n\n#define ET(x) SF65_##x\n\ntypedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;\n\n#undef ET\n\n/* Use XMacro trick to generate appropriate bitmasks for Alignment types\n */\n#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\n A(LEVEL_IN),\\n A(LEVEL_OUT),\\n A(LEVEL_MINUS),\\n A(ALIGN_MNEMONIC),\\n A(ALIGN_HIGHLIMIT)\n\n/* First assign bit positions to alignment constants\n */\n#define A(x) x##_BITNO\nenum {\n ALGNMTYPES\n};\n#undef A\n\n/* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position\n * constants\n */\n#define A(x) x = 1<<x##_BITNO\ntypedef enum {\n ALGNMTYPES\n} sf65Alignment_t;\n#undef A\n\ntypedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;\n\n/*\n * Struct to hold variables needed for parsing of unformatted source\n */\ntypedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;\n#endif" (#ifndef) "#ifndef" (identifier) "__SF65_TYPES_H__" (preproc_def) "#define __SF65_TYPES_H__\n" (#define) "#define" (identifier) "__SF65_TYPES_H__" (type_definition) "typedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;" (typedef) "typedef" (enum_specifier) "enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n}" (enum) "enum" (enumerator_list) "{\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n}" ({) "{" (enumerator) "SF65_KEEPCASE" (identifier) "SF65_KEEPCASE" (,) "," (enumerator) "SF65_LOWERC" (identifier) "SF65_LOWERC" (,) "," (enumerator) "SF65_UPPERC" (identifier) "SF65_UPPERC" (}) "}" (type_identifier) "sf65Case_t" (;) ";" (type_definition) "typedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;" (typedef) "typedef" (enum_specifier) "enum {\n SF65_STREQ, SF65_STRNOTEQ\n}" (enum) "enum" (enumerator_list) "{\n SF65_STREQ, SF65_STRNOTEQ\n}" ({) "{" (enumerator) "SF65_STREQ" (identifier) "SF65_STREQ" (,) "," (enumerator) "SF65_STRNOTEQ" (identifier) "SF65_STRNOTEQ" (}) "}" (type_identifier) "sf65StrEq_t" (;) ";" (comment) "/*\n * Struct to hold values of command line arguments given to sf65\n */" (type_definition) "typedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;" (typedef) "typedef" (struct_specifier) "struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n}" (struct) "struct" (field_declaration_list) "{\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n}" ({) "{" (field_declaration) "int tabs;" (primitive_type) "int" (field_identifier) "tabs" (;) ";" (comment) "// 0 = default = use spaces not tabs, 1 = use tabs not spaces" (field_declaration) "int style;" (primitive_type) "int" (field_identifier) "style" (;) ";" (comment) "// 0 = four columns, 1 = three columns" (field_declaration) "int processor;" (primitive_type) "int" (field_identifier) "processor" (;) ";" (comment) "// 0 = unknown assembler, 1 = CA65" (field_declaration) "int start_mnemonic;" (primitive_type) "int" (field_identifier) "start_mnemonic" (;) ";" (comment) "// x-position where mnemonics should be placed in output file" (field_declaration) "int start_operand;" (primitive_type) "int" (field_identifier) "start_operand" (;) ";" (comment) "// x-position where operand should be placed in output file" (field_declaration) "int start_comment;" (primitive_type) "int" (field_identifier) "start_comment" (;) ";" (comment) "// x-position where comments should be placed in output file" (field_declaration) "int start_directive;" (primitive_type) "int" (field_identifier) "start_directive" (;) ";" (comment) "// x-position where directives should be placed in output file" (field_declaration) "int align_comment;" (primitive_type) "int" (field_identifier) "align_comment" (;) ";" (comment) "// should comments be aligned with mnemonics if they are found on linestart?" (field_declaration) "int nesting_space;" (primitive_type) "int" (field_identifier) "nesting_space" (;) ";" (comment) "// tab width or according number of spaces to fill in output" (field_declaration) "int labels_own_line;" (primitive_type) "int" (field_identifier) "labels_own_line" (;) ";" (comment) "// flag, if labels should be moved to own line in output file" (field_declaration) "int oversized_labels_own_line;" (primitive_type) "int" (field_identifier) "oversized_labels_own_line" (;) ";" (field_declaration) "int mnemonics_case;" (primitive_type) "int" (field_identifier) "mnemonics_case" (;) ";" (comment) "// flag, if mnemonics should be output lower/uppercase or leave unmodified" (field_declaration) "int directives_case;" (primitive_type) "int" (field_identifier) "directives_case" (;) ";" (comment) "// flag, if directives should be output lower/uppercase or leave unmodified" (field_declaration) "int pad_directives;" (primitive_type) "int" (field_identifier) "pad_directives" (;) ";" (comment) "// determine whether certain directives should be padded with empty lines" (field_declaration) "char *infilename;" (primitive_type) "char" (pointer_declarator) "*infilename" (*) "*" (field_identifier) "infilename" (;) ";" (comment) "// filename of the unformatted source" (field_declaration) "char *outfilename;" (primitive_type) "char" (pointer_declarator) "*outfilename" (*) "*" (field_identifier) "outfilename" (;) ";" (comment) "// filename of the formatted source" (}) "}" (type_identifier) "sf65Options_t" (;) ";" (comment) "/*\n * Struct to hold the names of the assembler directives\n * as well as the flags which define how to deal with the former\n */" (type_definition) "typedef struct {\n char *directive;\n int flags;\n} directives_t;" (typedef) "typedef" (struct_specifier) "struct {\n char *directive;\n int flags;\n}" (struct) "struct" (field_declaration_list) "{\n char *directive;\n int flags;\n}" ({) "{" (field_declaration) "char *directive;" (primitive_type) "char" (pointer_declarator) "*directive" (*) "*" (field_identifier) "directive" (;) ";" (field_declaration) "int flags;" (primitive_type) "int" (field_identifier) "flags" (;) ";" (}) "}" (type_identifier) "directives_t" (;) ";" (preproc_def) "#define EXPRTYPES \\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n" (#define) "#define" (identifier) "EXPRTYPES" (preproc_arg) "ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)" (preproc_function_def) "#define ET(x) SF65_##x\n" (#define) "#define" (identifier) "ET" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "SF65_##x" (type_definition) "typedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;" (typedef) "typedef" (enum_specifier) "enum {\n EXPRTYPES\n}" (enum) "enum" (enumerator_list) "{\n EXPRTYPES\n}" ({) "{" (enumerator) "EXPRTYPES" (identifier) "EXPRTYPES" (}) "}" (type_identifier) "sf65ExpressionEnum_t" (;) ";" (preproc_call) "#undef ET\n" (preproc_directive) "#undef" (preproc_arg) "ET" (comment) "/* Use XMacro trick to generate appropriate bitmasks for Alignment types\n */" (preproc_def) "#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\n A(LEVEL_IN),\\n A(LEVEL_OUT),\\n A(LEVEL_MINUS),\\n A(ALIGN_MNEMONIC),\\n A(ALIGN_HIGHLIMIT)\n" (#define) "#define" (identifier) "ALGNMTYPES" (preproc_arg) "A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\n A(LEVEL_IN),\\n A(LEVEL_OUT),\\n A(LEVEL_MINUS),\\n A(ALIGN_MNEMONIC),\\n A(ALIGN_HIGHLIMIT)" (comment) "/* First assign bit positions to alignment constants\n */" (preproc_function_def) "#define A(x) x##_BITNO\n" (#define) "#define" (identifier) "A" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "x##_BITNO" (enum_specifier) "enum {\n ALGNMTYPES\n}" (enum) "enum" (enumerator_list) "{\n ALGNMTYPES\n}" ({) "{" (enumerator) "ALGNMTYPES" (identifier) "ALGNMTYPES" (}) "}" (;) ";" (preproc_call) "#undef A\n" (preproc_directive) "#undef" (preproc_arg) "A" (comment) "/* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position\n * constants\n */" (preproc_function_def) "#define A(x) x = 1<<x##_BITNO\n" (#define) "#define" (identifier) "A" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "x = 1<<x##_BITNO" (type_definition) "typedef enum {\n ALGNMTYPES\n} sf65Alignment_t;" (typedef) "typedef" (enum_specifier) "enum {\n ALGNMTYPES\n}" (enum) "enum" (enumerator_list) "{\n ALGNMTYPES\n}" ({) "{" (enumerator) "ALGNMTYPES" (identifier) "ALGNMTYPES" (}) "}" (type_identifier) "sf65Alignment_t" (;) ";" (preproc_call) "#undef A\n" (preproc_directive) "#undef" (preproc_arg) "A" (type_definition) "typedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;" (typedef) "typedef" (struct_specifier) "struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n}" (struct) "struct" (field_declaration_list) "{\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n}" ({) "{" (field_declaration) "sf65ExpressionEnum_t exprType;" (type_identifier) "sf65ExpressionEnum_t" (field_identifier) "exprType" (;) ";" (field_declaration) "int index;" (primitive_type) "int" (field_identifier) "index" (;) ";" (field_declaration) "char rightmostChar;" (primitive_type) "char" (field_identifier) "rightmostChar" (;) ";" (}) "}" (type_identifier) "sf65Expression_t" (;) ";" (comment) "/*\n * Struct to hold variables needed for parsing of unformatted source\n */" (type_definition) "typedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;" (typedef) "typedef" (struct_specifier) "struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n}" (struct) "struct" (field_declaration_list) "{\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n}" ({) "{" (field_declaration) "unsigned int label_detected: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "label_detected" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int mnemonic_detected: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "mnemonic_detected" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int directive_detected: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "directive_detected" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int operand_detected: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "operand_detected" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int first_expression: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "first_expression" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int beginning_of_line: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "beginning_of_line" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int additional_linefeed: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "additional_linefeed" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int instant_additional_linefeed: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "instant_additional_linefeed" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int force_separating_space: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "force_separating_space" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned int line_continuation: 1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "line_continuation" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "int current_column;" (primitive_type) "int" (field_identifier) "current_column" (;) ";" (field_declaration) "int last_column;" (primitive_type) "int" (field_identifier) "last_column" (;) ";" (field_declaration) "int request;" (primitive_type) "int" (field_identifier) "request" (;) ";" (field_declaration) "int current_level;" (primitive_type) "int" (field_identifier) "current_level" (;) ";" (field_declaration) "int flags;" (primitive_type) "int" (field_identifier) "flags" (;) ";" (field_declaration) "int prev_comment_original_location;" (primitive_type) "int" (field_identifier) "prev_comment_original_location" (;) ";" (field_declaration) "int prev_comment_final_location;" (primitive_type) "int" (field_identifier) "prev_comment_final_location" (;) ";" (field_declaration) "sf65Expression_t prev_expr;" (type_identifier) "sf65Expression_t" (field_identifier) "prev_expr" (;) ";" (}) "}" (type_identifier) "sf65ParsingData_t" (;) ";" (#endif) "#endif"
379
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 37.2, "nodes": 268, "errors": 0, "source_hash": "67bdae5caa1cbf5fed275da9667b8aa53bd623b978a490c1729471ddfcf6b513", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __SF65_TYPES_H__\n#define __SF65_TYPES_H__\n\ntypedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;\n\ntypedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;\n\n/*\n * Struct to hold values of command line arguments given to sf65\n */\ntypedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;\n\n\n\n/*\n * Struct to hold the names of the assembler directives\n * as well as the flags which define how to deal with the former\n */\ntypedef struct {\n char *directive;\n int flags;\n} directives_t;\n\n#define EXPRTYPES \\\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n\n#define ET(x) SF65_##x\n\ntypedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;\n\n#undef ET\n\n/* Use XMacro trick to generate appropriate bitmasks for Alignment types\n */\n#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\\n A(LEVEL_IN),\\\n A(LEVEL_OUT),\\\n A(LEVEL_MINUS),\\\n A(ALIGN_MNEMONIC),\\\n A(ALIGN_HIGHLIMIT)\n\n/* First assign bit positions to alignment constants\n */\n#define A(x) x##_BITNO\nenum {\n ALGNMTYPES\n};\n#undef A\n\n/* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position\n * constants\n */\n#define A(x) x = 1<<x##_BITNO\ntypedef enum {\n ALGNMTYPES\n} sf65Alignment_t;\n#undef A\n\ntypedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;\n\n/*\n * Struct to hold variables needed for parsing of unformatted source\n */\ntypedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;\n#endif", "parent": null, "children": [1, 2, 3, 6, 18, 28, 85, 98, 102, 108, 116, 119, 123, 129, 134, 137, 143, 151, 154, 168, 267], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 117, "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": "__SF65_TYPES_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define __SF65_TYPES_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": "__SF65_TYPES_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "type_definition", "text": "typedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;", "parent": 0, "children": [7, 8, 17], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 5, "column": 13}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "enum_specifier", "text": "enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n}", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 5, "column": 1}}, {"id": 9, "type": "enum", "text": "enum", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 10, "type": "enumerator_list", "text": "{\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n}", "parent": 8, "children": [11, 13, 15], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 5, "column": 1}}, {"id": 11, "type": "enumerator", "text": "SF65_KEEPCASE", "parent": 10, "children": [12], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "identifier", "text": "SF65_KEEPCASE", "parent": 11, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 17}}, {"id": 13, "type": "enumerator", "text": "SF65_LOWERC", "parent": 10, "children": [14], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 30}}, {"id": 14, "type": "identifier", "text": "SF65_LOWERC", "parent": 13, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 30}}, {"id": 15, "type": "enumerator", "text": "SF65_UPPERC", "parent": 10, "children": [16], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 43}}, {"id": 16, "type": "identifier", "text": "SF65_UPPERC", "parent": 15, "children": [], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 43}}, {"id": 17, "type": "type_identifier", "text": "sf65Case_t", "parent": 6, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 12}}, {"id": 18, "type": "type_definition", "text": "typedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;", "parent": 0, "children": [19, 20, 27], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 14}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "enum_specifier", "text": "enum {\n SF65_STREQ, SF65_STRNOTEQ\n}", "parent": 18, "children": [21, 22], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 9, "column": 1}}, {"id": 21, "type": "enum", "text": "enum", "parent": 20, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 22, "type": "enumerator_list", "text": "{\n SF65_STREQ, SF65_STRNOTEQ\n}", "parent": 20, "children": [23, 25], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 9, "column": 1}}, {"id": 23, "type": "enumerator", "text": "SF65_STREQ", "parent": 22, "children": [24], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 14}}, {"id": 24, "type": "identifier", "text": "SF65_STREQ", "parent": 23, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 14}}, {"id": 25, "type": "enumerator", "text": "SF65_STRNOTEQ", "parent": 22, "children": [26], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 29}}, {"id": 26, "type": "identifier", "text": "SF65_STRNOTEQ", "parent": 25, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 29}}, {"id": 27, "type": "type_identifier", "text": "sf65StrEq_t", "parent": 18, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 13}}, {"id": 28, "type": "type_definition", "text": "typedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;", "parent": 0, "children": [29, 30, 84], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 31, "column": 16}}, {"id": 29, "type": "typedef", "text": "typedef", "parent": 28, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 30, "type": "struct_specifier", "text": "struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n}", "parent": 28, "children": [31], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 31, "column": 1}}, {"id": 31, "type": "struct", "text": "struct", "parent": 30, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 14}}, {"id": 32, "type": "field_declaration", "text": "int tabs;", "parent": 30, "children": [33, 34], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 7}}, {"id": 34, "type": "field_identifier", "text": "tabs", "parent": 32, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 35, "type": "field_declaration", "text": "int style;", "parent": 30, "children": [36, 37], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 14}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 37, "type": "field_identifier", "text": "style", "parent": 35, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 38, "type": "field_declaration", "text": "int processor;", "parent": 30, "children": [39, 40], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 18}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 7}}, {"id": 40, "type": "field_identifier", "text": "processor", "parent": 38, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 17}}, {"id": 41, "type": "field_declaration", "text": "int start_mnemonic;", "parent": 30, "children": [42, 43], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 23}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 43, "type": "field_identifier", "text": "start_mnemonic", "parent": 41, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 22}}, {"id": 44, "type": "field_declaration", "text": "int start_operand;", "parent": 30, "children": [45, 46], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 22}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 7}}, {"id": 46, "type": "field_identifier", "text": "start_operand", "parent": 44, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 21}}, {"id": 47, "type": "field_declaration", "text": "int start_comment;", "parent": 30, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 22}}, {"id": 48, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 7}}, {"id": 49, "type": "field_identifier", "text": "start_comment", "parent": 47, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 50, "type": "field_declaration", "text": "int start_directive;", "parent": 30, "children": [51, 52], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 24}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 52, "type": "field_identifier", "text": "start_directive", "parent": 50, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 23}}, {"id": 53, "type": "field_declaration", "text": "int align_comment;", "parent": 30, "children": [54, 55], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 22}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 7}}, {"id": 55, "type": "field_identifier", "text": "align_comment", "parent": 53, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 21}}, {"id": 56, "type": "field_declaration", "text": "int nesting_space;", "parent": 30, "children": [57, 58], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 22}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 56, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 58, "type": "field_identifier", "text": "nesting_space", "parent": 56, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 21}}, {"id": 59, "type": "field_declaration", "text": "int labels_own_line;", "parent": 30, "children": [60, 61], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 24}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 7}}, {"id": 61, "type": "field_identifier", "text": "labels_own_line", "parent": 59, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 23}}, {"id": 62, "type": "field_declaration", "text": "int oversized_labels_own_line;", "parent": 30, "children": [63, 64], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 34}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 64, "type": "field_identifier", "text": "oversized_labels_own_line", "parent": 62, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 33}}, {"id": 65, "type": "field_declaration", "text": "int mnemonics_case;", "parent": 30, "children": [66, 67], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 23}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 67, "type": "field_identifier", "text": "mnemonics_case", "parent": 65, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 22}}, {"id": 68, "type": "field_declaration", "text": "int directives_case;", "parent": 30, "children": [69, 70], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 24}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 70, "type": "field_identifier", "text": "directives_case", "parent": 68, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 23}}, {"id": 71, "type": "field_declaration", "text": "int pad_directives;", "parent": 30, "children": [72, 73], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 23}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 73, "type": "field_identifier", "text": "pad_directives", "parent": 71, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 22}}, {"id": 74, "type": "field_declaration", "text": "char *infilename;", "parent": 30, "children": [75, 76], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 21}}, {"id": 75, "type": "primitive_type", "text": "char", "parent": 74, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 76, "type": "pointer_declarator", "text": "*infilename", "parent": 74, "children": [77, 78], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 20}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 10}}, {"id": 78, "type": "field_identifier", "text": "infilename", "parent": 76, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 20}}, {"id": 79, "type": "field_declaration", "text": "char *outfilename;", "parent": 30, "children": [80, 81], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 22}}, {"id": 80, "type": "primitive_type", "text": "char", "parent": 79, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 81, "type": "pointer_declarator", "text": "*outfilename", "parent": 79, "children": [82, 83], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 21}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 83, "type": "field_identifier", "text": "outfilename", "parent": 81, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 21}}, {"id": 84, "type": "type_identifier", "text": "sf65Options_t", "parent": 28, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 15}}, {"id": 85, "type": "type_definition", "text": "typedef struct {\n char *directive;\n int flags;\n} directives_t;", "parent": 0, "children": [86, 87, 97], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 42, "column": 15}}, {"id": 86, "type": "typedef", "text": "typedef", "parent": 85, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 87, "type": "struct_specifier", "text": "struct {\n char *directive;\n int flags;\n}", "parent": 85, "children": [88], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 42, "column": 1}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 89, "type": "field_declaration", "text": "char *directive;", "parent": 87, "children": [90, 91], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 20}}, {"id": 90, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 91, "type": "pointer_declarator", "text": "*directive", "parent": 89, "children": [92, 93], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 19}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 10}}, {"id": 93, "type": "field_identifier", "text": "directive", "parent": 91, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 19}}, {"id": 94, "type": "field_declaration", "text": "int flags;", "parent": 87, "children": [95, 96], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 14}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 94, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 96, "type": "field_identifier", "text": "flags", "parent": 94, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 13}}, {"id": 97, "type": "type_identifier", "text": "directives_t", "parent": 85, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 14}}, {"id": 98, "type": "preproc_def", "text": "#define EXPRTYPES \\\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n", "parent": 0, "children": [99, 100, 101], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 99, "type": "#define", "text": "#define", "parent": 98, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 100, "type": "identifier", "text": "EXPRTYPES", "parent": 98, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 17}}, {"id": 101, "type": "preproc_arg", "text": "ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)", "parent": 98, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 47, "column": 66}}, {"id": 102, "type": "preproc_function_def", "text": "#define ET(x) SF65_##x\n", "parent": 0, "children": [103, 104, 105, 107], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 104, "type": "identifier", "text": "ET", "parent": 102, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 10}}, {"id": 105, "type": "preproc_params", "text": "(x)", "parent": 102, "children": [106], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 13}}, {"id": 106, "type": "identifier", "text": "x", "parent": 105, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 107, "type": "preproc_arg", "text": "SF65_##x", "parent": 102, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 22}}, {"id": 108, "type": "type_definition", "text": "typedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;", "parent": 0, "children": [109, 110, 115], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 53, "column": 23}}, {"id": 109, "type": "typedef", "text": "typedef", "parent": 108, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 110, "type": "enum_specifier", "text": "enum {\n EXPRTYPES\n}", "parent": 108, "children": [111, 112], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 53, "column": 1}}, {"id": 111, "type": "enum", "text": "enum", "parent": 110, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 112, "type": "enumerator_list", "text": "{\n EXPRTYPES\n}", "parent": 110, "children": [113], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 53, "column": 1}}, {"id": 113, "type": "enumerator", "text": "EXPRTYPES", "parent": 112, "children": [114], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 13}}, {"id": 114, "type": "identifier", "text": "EXPRTYPES", "parent": 113, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 13}}, {"id": 115, "type": "type_identifier", "text": "sf65ExpressionEnum_t", "parent": 108, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 22}}, {"id": 116, "type": "preproc_call", "text": "#undef ET\n", "parent": 0, "children": [117, 118], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 117, "type": "preproc_directive", "text": "#undef", "parent": 116, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 118, "type": "preproc_arg", "text": "ET", "parent": 116, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 9}}, {"id": 119, "type": "preproc_def", "text": "#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\\n A(LEVEL_IN),\\\n A(LEVEL_OUT),\\\n A(LEVEL_MINUS),\\\n A(ALIGN_MNEMONIC),\\\n A(ALIGN_HIGHLIMIT)\n", "parent": 0, "children": [120, 121, 122], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 120, "type": "#define", "text": "#define", "parent": 119, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 121, "type": "identifier", "text": "ALGNMTYPES", "parent": 119, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 122, "type": "preproc_arg", "text": "A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\\n A(LEVEL_IN),\\\n A(LEVEL_OUT),\\\n A(LEVEL_MINUS),\\\n A(ALIGN_MNEMONIC),\\\n A(ALIGN_HIGHLIMIT)", "parent": 119, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 64, "column": 22}}, {"id": 123, "type": "preproc_function_def", "text": "#define A(x) x##_BITNO\n", "parent": 0, "children": [124, 125, 126, 128], "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": "A", "parent": 123, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 126, "type": "preproc_params", "text": "(x)", "parent": 123, "children": [127], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 12}}, {"id": 127, "type": "identifier", "text": "x", "parent": 126, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 11}}, {"id": 128, "type": "preproc_arg", "text": "x##_BITNO", "parent": 123, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 22}}, {"id": 129, "type": "enum_specifier", "text": "enum {\n ALGNMTYPES\n}", "parent": 0, "children": [130, 131], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 130, "type": "enum", "text": "enum", "parent": 129, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 131, "type": "enumerator_list", "text": "{\n ALGNMTYPES\n}", "parent": 129, "children": [132], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 71, "column": 1}}, {"id": 132, "type": "enumerator", "text": "ALGNMTYPES", "parent": 131, "children": [133], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 14}}, {"id": 133, "type": "identifier", "text": "ALGNMTYPES", "parent": 132, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 14}}, {"id": 134, "type": "preproc_call", "text": "#undef A\n", "parent": 0, "children": [135, 136], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 135, "type": "preproc_directive", "text": "#undef", "parent": 134, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 136, "type": "preproc_arg", "text": "A", "parent": 134, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 8}}, {"id": 137, "type": "preproc_function_def", "text": "#define A(x) x = 1<<x##_BITNO\n", "parent": 0, "children": [138, 139, 140, 142], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 78, "column": 0}}, {"id": 138, "type": "#define", "text": "#define", "parent": 137, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 7}}, {"id": 139, "type": "identifier", "text": "A", "parent": 137, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}, {"id": 140, "type": "preproc_params", "text": "(x)", "parent": 137, "children": [141], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 12}}, {"id": 141, "type": "identifier", "text": "x", "parent": 140, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 142, "type": "preproc_arg", "text": "x = 1<<x##_BITNO", "parent": 137, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 29}}, {"id": 143, "type": "type_definition", "text": "typedef enum {\n ALGNMTYPES\n} sf65Alignment_t;", "parent": 0, "children": [144, 145, 150], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 80, "column": 18}}, {"id": 144, "type": "typedef", "text": "typedef", "parent": 143, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 7}}, {"id": 145, "type": "enum_specifier", "text": "enum {\n ALGNMTYPES\n}", "parent": 143, "children": [146, 147], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 80, "column": 1}}, {"id": 146, "type": "enum", "text": "enum", "parent": 145, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 12}}, {"id": 147, "type": "enumerator_list", "text": "{\n ALGNMTYPES\n}", "parent": 145, "children": [148], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 80, "column": 1}}, {"id": 148, "type": "enumerator", "text": "ALGNMTYPES", "parent": 147, "children": [149], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 14}}, {"id": 149, "type": "identifier", "text": "ALGNMTYPES", "parent": 148, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 14}}, {"id": 150, "type": "type_identifier", "text": "sf65Alignment_t", "parent": 143, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 17}}, {"id": 151, "type": "preproc_call", "text": "#undef A\n", "parent": 0, "children": [152, 153], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 152, "type": "preproc_directive", "text": "#undef", "parent": 151, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 6}}, {"id": 153, "type": "preproc_arg", "text": "A", "parent": 151, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 8}}, {"id": 154, "type": "type_definition", "text": "typedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;", "parent": 0, "children": [155, 156, 167], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 87, "column": 19}}, {"id": 155, "type": "typedef", "text": "typedef", "parent": 154, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 7}}, {"id": 156, "type": "struct_specifier", "text": "struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n}", "parent": 154, "children": [157], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 87, "column": 1}}, {"id": 157, "type": "struct", "text": "struct", "parent": 156, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 14}}, {"id": 158, "type": "field_declaration", "text": "sf65ExpressionEnum_t exprType;", "parent": 156, "children": [159, 160], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 34}}, {"id": 159, "type": "type_identifier", "text": "sf65ExpressionEnum_t", "parent": 158, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 24}}, {"id": 160, "type": "field_identifier", "text": "exprType", "parent": 158, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 33}}, {"id": 161, "type": "field_declaration", "text": "int index;", "parent": 156, "children": [162, 163], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 14}}, {"id": 162, "type": "primitive_type", "text": "int", "parent": 161, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 7}}, {"id": 163, "type": "field_identifier", "text": "index", "parent": 161, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 13}}, {"id": 164, "type": "field_declaration", "text": "char rightmostChar;", "parent": 156, "children": [165, 166], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 23}}, {"id": 165, "type": "primitive_type", "text": "char", "parent": 164, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 166, "type": "field_identifier", "text": "rightmostChar", "parent": 164, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 22}}, {"id": 167, "type": "type_identifier", "text": "sf65Expression_t", "parent": 154, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 18}}, {"id": 168, "type": "type_definition", "text": "typedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;", "parent": 0, "children": [169, 170, 266], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 116, "column": 20}}, {"id": 169, "type": "typedef", "text": "typedef", "parent": 168, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 170, "type": "struct_specifier", "text": "struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n}", "parent": 168, "children": [171], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 116, "column": 1}}, {"id": 171, "type": "struct", "text": "struct", "parent": 170, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 14}}, {"id": 172, "type": "field_declaration", "text": "unsigned int label_detected: 1;", "parent": 170, "children": [173, 176, 177], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 35}}, {"id": 173, "type": "sized_type_specifier", "text": "unsigned int", "parent": 172, "children": [174, 175], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 16}}, {"id": 174, "type": "unsigned", "text": "unsigned", "parent": 173, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 12}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 16}}, {"id": 176, "type": "field_identifier", "text": "label_detected", "parent": 172, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 31}}, {"id": 177, "type": "bitfield_clause", "text": ": 1", "parent": 172, "children": [178], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 34}}, {"id": 178, "type": "number_literal", "text": "1", "parent": 177, "children": [], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 34}}, {"id": 179, "type": "field_declaration", "text": "unsigned int mnemonic_detected: 1;", "parent": 170, "children": [180, 183, 184], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 38}}, {"id": 180, "type": "sized_type_specifier", "text": "unsigned int", "parent": 179, "children": [181, 182], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 16}}, {"id": 181, "type": "unsigned", "text": "unsigned", "parent": 180, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 12}}, {"id": 182, "type": "primitive_type", "text": "int", "parent": 180, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 16}}, {"id": 183, "type": "field_identifier", "text": "mnemonic_detected", "parent": 179, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 34}}, {"id": 184, "type": "bitfield_clause", "text": ": 1", "parent": 179, "children": [185], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 37}}, {"id": 185, "type": "number_literal", "text": "1", "parent": 184, "children": [], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 37}}, {"id": 186, "type": "field_declaration", "text": "unsigned int directive_detected: 1;", "parent": 170, "children": [187, 190, 191], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 39}}, {"id": 187, "type": "sized_type_specifier", "text": "unsigned int", "parent": 186, "children": [188, 189], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 16}}, {"id": 188, "type": "unsigned", "text": "unsigned", "parent": 187, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 12}}, {"id": 189, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 16}}, {"id": 190, "type": "field_identifier", "text": "directive_detected", "parent": 186, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 35}}, {"id": 191, "type": "bitfield_clause", "text": ": 1", "parent": 186, "children": [192], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 38}}, {"id": 192, "type": "number_literal", "text": "1", "parent": 191, "children": [], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 38}}, {"id": 193, "type": "field_declaration", "text": "unsigned int operand_detected: 1;", "parent": 170, "children": [194, 197, 198], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 37}}, {"id": 194, "type": "sized_type_specifier", "text": "unsigned int", "parent": 193, "children": [195, 196], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 16}}, {"id": 195, "type": "unsigned", "text": "unsigned", "parent": 194, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 12}}, {"id": 196, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 16}}, {"id": 197, "type": "field_identifier", "text": "operand_detected", "parent": 193, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 33}}, {"id": 198, "type": "bitfield_clause", "text": ": 1", "parent": 193, "children": [199], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 36}}, {"id": 199, "type": "number_literal", "text": "1", "parent": 198, "children": [], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 36}}, {"id": 200, "type": "field_declaration", "text": "unsigned int first_expression: 1;", "parent": 170, "children": [201, 204, 205], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 37}}, {"id": 201, "type": "sized_type_specifier", "text": "unsigned int", "parent": 200, "children": [202, 203], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 16}}, {"id": 202, "type": "unsigned", "text": "unsigned", "parent": 201, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 12}}, {"id": 203, "type": "primitive_type", "text": "int", "parent": 201, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 16}}, {"id": 204, "type": "field_identifier", "text": "first_expression", "parent": 200, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 33}}, {"id": 205, "type": "bitfield_clause", "text": ": 1", "parent": 200, "children": [206], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 36}}, {"id": 206, "type": "number_literal", "text": "1", "parent": 205, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 36}}, {"id": 207, "type": "field_declaration", "text": "unsigned int beginning_of_line: 1;", "parent": 170, "children": [208, 211, 212], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 38}}, {"id": 208, "type": "sized_type_specifier", "text": "unsigned int", "parent": 207, "children": [209, 210], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 16}}, {"id": 209, "type": "unsigned", "text": "unsigned", "parent": 208, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 12}}, {"id": 210, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 16}}, {"id": 211, "type": "field_identifier", "text": "beginning_of_line", "parent": 207, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 34}}, {"id": 212, "type": "bitfield_clause", "text": ": 1", "parent": 207, "children": [213], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 37}}, {"id": 213, "type": "number_literal", "text": "1", "parent": 212, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 37}}, {"id": 214, "type": "field_declaration", "text": "unsigned int additional_linefeed: 1;", "parent": 170, "children": [215, 218, 219], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 40}}, {"id": 215, "type": "sized_type_specifier", "text": "unsigned int", "parent": 214, "children": [216, 217], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 16}}, {"id": 216, "type": "unsigned", "text": "unsigned", "parent": 215, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 12}}, {"id": 217, "type": "primitive_type", "text": "int", "parent": 215, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 16}}, {"id": 218, "type": "field_identifier", "text": "additional_linefeed", "parent": 214, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 36}}, {"id": 219, "type": "bitfield_clause", "text": ": 1", "parent": 214, "children": [220], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 39}}, {"id": 220, "type": "number_literal", "text": "1", "parent": 219, "children": [], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 39}}, {"id": 221, "type": "field_declaration", "text": "unsigned int instant_additional_linefeed: 1;", "parent": 170, "children": [222, 225, 226], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 48}}, {"id": 222, "type": "sized_type_specifier", "text": "unsigned int", "parent": 221, "children": [223, 224], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 16}}, {"id": 223, "type": "unsigned", "text": "unsigned", "parent": 222, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 12}}, {"id": 224, "type": "primitive_type", "text": "int", "parent": 222, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 16}}, {"id": 225, "type": "field_identifier", "text": "instant_additional_linefeed", "parent": 221, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 44}}, {"id": 226, "type": "bitfield_clause", "text": ": 1", "parent": 221, "children": [227], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 47}}, {"id": 227, "type": "number_literal", "text": "1", "parent": 226, "children": [], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 47}}, {"id": 228, "type": "field_declaration", "text": "unsigned int force_separating_space: 1;", "parent": 170, "children": [229, 232, 233], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 43}}, {"id": 229, "type": "sized_type_specifier", "text": "unsigned int", "parent": 228, "children": [230, 231], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 16}}, {"id": 230, "type": "unsigned", "text": "unsigned", "parent": 229, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 12}}, {"id": 231, "type": "primitive_type", "text": "int", "parent": 229, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 16}}, {"id": 232, "type": "field_identifier", "text": "force_separating_space", "parent": 228, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 39}}, {"id": 233, "type": "bitfield_clause", "text": ": 1", "parent": 228, "children": [234], "start_point": {"row": 102, "column": 39}, "end_point": {"row": 102, "column": 42}}, {"id": 234, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 42}}, {"id": 235, "type": "field_declaration", "text": "unsigned int line_continuation: 1;", "parent": 170, "children": [236, 239, 240], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 38}}, {"id": 236, "type": "sized_type_specifier", "text": "unsigned int", "parent": 235, "children": [237, 238], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 16}}, {"id": 237, "type": "unsigned", "text": "unsigned", "parent": 236, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 12}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 236, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 16}}, {"id": 239, "type": "field_identifier", "text": "line_continuation", "parent": 235, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 34}}, {"id": 240, "type": "bitfield_clause", "text": ": 1", "parent": 235, "children": [241], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 37}}, {"id": 241, "type": "number_literal", "text": "1", "parent": 240, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 37}}, {"id": 242, "type": "field_declaration", "text": "int current_column;", "parent": 170, "children": [243, 244], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 23}}, {"id": 243, "type": "primitive_type", "text": "int", "parent": 242, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 7}}, {"id": 244, "type": "field_identifier", "text": "current_column", "parent": 242, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 245, "type": "field_declaration", "text": "int last_column;", "parent": 170, "children": [246, 247], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 20}}, {"id": 246, "type": "primitive_type", "text": "int", "parent": 245, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 7}}, {"id": 247, "type": "field_identifier", "text": "last_column", "parent": 245, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 19}}, {"id": 248, "type": "field_declaration", "text": "int request;", "parent": 170, "children": [249, 250], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 16}}, {"id": 249, "type": "primitive_type", "text": "int", "parent": 248, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 7}}, {"id": 250, "type": "field_identifier", "text": "request", "parent": 248, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 15}}, {"id": 251, "type": "field_declaration", "text": "int current_level;", "parent": 170, "children": [252, 253], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 22}}, {"id": 252, "type": "primitive_type", "text": "int", "parent": 251, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 7}}, {"id": 253, "type": "field_identifier", "text": "current_level", "parent": 251, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 21}}, {"id": 254, "type": "field_declaration", "text": "int flags;", "parent": 170, "children": [255, 256], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 14}}, {"id": 255, "type": "primitive_type", "text": "int", "parent": 254, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 7}}, {"id": 256, "type": "field_identifier", "text": "flags", "parent": 254, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 13}}, {"id": 257, "type": "field_declaration", "text": "int prev_comment_original_location;", "parent": 170, "children": [258, 259], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 39}}, {"id": 258, "type": "primitive_type", "text": "int", "parent": 257, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 7}}, {"id": 259, "type": "field_identifier", "text": "prev_comment_original_location", "parent": 257, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 38}}, {"id": 260, "type": "field_declaration", "text": "int prev_comment_final_location;", "parent": 170, "children": [261, 262], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 36}}, {"id": 261, "type": "primitive_type", "text": "int", "parent": 260, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 262, "type": "field_identifier", "text": "prev_comment_final_location", "parent": 260, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 35}}, {"id": 263, "type": "field_declaration", "text": "sf65Expression_t prev_expr;", "parent": 170, "children": [264, 265], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 31}}, {"id": 264, "type": "type_identifier", "text": "sf65Expression_t", "parent": 263, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 20}}, {"id": 265, "type": "field_identifier", "text": "prev_expr", "parent": 263, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 30}}, {"id": 266, "type": "type_identifier", "text": "sf65ParsingData_t", "parent": 168, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 19}}, {"id": 267, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 6}}]}, "node_categories": {"declarations": {"functions": [102, 123, 137], "variables": [6, 18, 28, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 79, 85, 89, 94, 108, 143, 154, 158, 161, 164, 168, 172, 179, 186, 193, 200, 207, 214, 221, 228, 235, 242, 245, 248, 251, 254, 257, 260, 263], "classes": [30, 31, 87, 88, 156, 157, 170, 171], "imports": [], "modules": [], "enums": [8, 9, 10, 11, 13, 15, 20, 21, 22, 23, 25, 110, 111, 112, 113, 129, 130, 131, 132, 145, 146, 147, 148]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 14, 16, 17, 24, 26, 27, 34, 37, 40, 43, 46, 49, 52, 55, 58, 61, 64, 67, 70, 73, 78, 83, 84, 93, 96, 97, 100, 104, 106, 114, 115, 121, 125, 127, 133, 139, 141, 149, 150, 159, 160, 163, 166, 167, 173, 176, 180, 183, 187, 190, 194, 197, 201, 204, 208, 211, 215, 218, 222, 225, 229, 232, 236, 239, 244, 247, 250, 253, 256, 259, 262, 264, 265, 266, 267], "returns": [], "exceptions": []}, "expressions": {"calls": [116, 134, 151], "literals": [178, 185, 192, 199, 206, 213, 220, 227, 234, 241], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [177, 184, 191, 198, 205, 212, 219, 226, 233, 240]}}, "cross_language_map": {"function_declarations": [{"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "#define ET(x) SF65_##x\n"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "#define A(x) x##_BITNO\n"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "#define A(x) x = 1<<x##_BITNO\n"}], "class_declarations": [{"node_id": 30, "universal_type": "class", "name": "{", "text_snippet": "struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n "}, {"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "{", "text_snippet": "struct {\n char *directive;\n int flags;\n}"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 156, "universal_type": "class", "name": "{", "text_snippet": "struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n}"}, {"node_id": 157, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 170, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned in"}, {"node_id": 171, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef __SF65_TYPES_H__\n#define __SF65_TYPES_H__\n\ntypedef enum {\n SF65_KEEPCASE, SF65_LOWERC, SF65_UPPERC\n} sf65Case_t;\n\ntypedef enum {\n SF65_STREQ, SF65_STRNOTEQ\n} sf65StrEq_t;\n\n/*\n * Struct to hold values of command line arguments given to sf65\n */\ntypedef struct {\n int tabs; // 0 = default = use spaces not tabs, 1 = use tabs not spaces\n int style; // 0 = four columns, 1 = three columns\n int processor; // 0 = unknown assembler, 1 = CA65\n int start_mnemonic; // x-position where mnemonics should be placed in output file\n int start_operand; // x-position where operand should be placed in output file\n int start_comment; // x-position where comments should be placed in output file\n int start_directive; // x-position where directives should be placed in output file\n int align_comment; // should comments be aligned with mnemonics if they are found on linestart?\n int nesting_space; // tab width or according number of spaces to fill in output\n int labels_own_line; // flag, if labels should be moved to own line in output file\n int oversized_labels_own_line;\n int mnemonics_case; // flag, if mnemonics should be output lower/uppercase or leave unmodified\n int directives_case; // flag, if directives should be output lower/uppercase or leave unmodified\n int pad_directives; // determine whether certain directives should be padded with empty lines\n char *infilename; // filename of the unformatted source\n char *outfilename; // filename of the formatted source\n} sf65Options_t;\n\n\n\n/*\n * Struct to hold the names of the assembler directives\n * as well as the flags which define how to deal with the former\n */\ntypedef struct {\n char *directive;\n int flags;\n} directives_t;\n\n#define EXPRTYPES \\\n ET(MNEMONIC), ET(DIRECTIVE), ET(OPERAND), ET(LABEL), ET(COMMENT),\\\n ET(EMPTYLINE), ET(MACRONAME), ET(COMMASEP), ET(ASSIGNMENT),\\\n ET(OTHEREXPR), ET(IDENTIFIER), ET(STRLITERAL), ET(INVALIDEXPR)\n\n#define ET(x) SF65_##x\n\ntypedef enum {\n EXPRTYPES\n} sf65ExpressionEnum_t;\n\n#undef ET\n\n/* Use XMacro trick to generate appropriate bitmasks for Alignment types\n */\n#define ALGNMTYPES A(ALIGN_LOWLIMIT), A(DONT_RELOCATE),\\\n A(LEVEL_IN),\\\n A(LEVEL_OUT),\\\n A(LEVEL_MINUS),\\\n A(ALIGN_MNEMONIC),\\\n A(ALIGN_HIGHLIMIT)\n\n/* First assign bit positions to alignment constants\n */\n#define A(x) x##_BITNO\nenum {\n ALGNMTYPES\n};\n#undef A\n\n/* Now generate bitmasks by shifting a 1 bit by the amount of bits defined by the bit position\n * constants\n */\n#define A(x) x = 1<<x##_BITNO\ntypedef enum {\n ALGNMTYPES\n} sf65Alignment_t;\n#undef A\n\ntypedef struct {\n sf65ExpressionEnum_t exprType;\n int index;\n char rightmostChar;\n} sf65Expression_t;\n\n/*\n * Struct to hold variables needed for parsing of unformatted source\n */\ntypedef struct {\n\n unsigned int label_detected: 1;\n unsigned int mnemonic_detected: 1;\n unsigned int directive_detected: 1;\n unsigned int operand_detected: 1;\n unsigned int first_expression: 1;\n unsigned int beginning_of_line: 1;\n unsigned int additional_linefeed: 1;\n unsigned int instant_additional_linefeed: 1;\n unsigned int force_separating_space: 1;\n unsigned int line_continuation: 1;\n\n int current_column;\n int last_column;\n int request;\n int current_level;\n\n int flags;\n\n int prev_comment_original_location;\n int prev_comment_final_location;\n\n sf65Expression_t prev_expr;\n} sf65ParsingData_t;\n#endif\n"}
122
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <FinderKit/FI_TLayer.h> @class NSColor; __attribute__((visibility("hidden"))) @interface FI_TCircularProgressLayer : FI_TLayer { double _endAngle; double _animationDuration; struct TNSRef<NSColor, void> _fillColor; _Bool _progressAnimationCompleted; function_b1fce659 _progressDidCompleteHandler; } + (BOOL)needsDisplayForKey:(id)arg1; @property(nonatomic) double animationDuration; // @synthesize animationDuration=_animationDuration; @property double endAngle; // @synthesize endAngle=_endAngle; - (id).cxx_construct; - (void).cxx_destruct; - (void)callProgressAnimationDidCompleteHandlerIfNeeded; @property(readonly, nonatomic) _Bool isProgressAnimationCompleted; // @dynamic isProgressAnimationCompleted; - (void)setProgressDidCompleteHandler:(const function_b1fce659 *)arg1; - (void)drawInContext:(struct CGContext *)arg1; @property(retain, nonatomic) NSColor *fillColor; // @dynamic fillColor; @property(nonatomic) double fractionComplete; // @dynamic fractionComplete; - (void)setEndAngleAnimated:(double)arg1; - (id)actionForKey:(id)arg1; - (id)initWithLayer:(id)arg1; - (id)init; @end
38.19
32
(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 <FinderKit/FI_TLayer.h>\n\n@class NSColor;\n\n__attribute__((visibility("hidden")))\n@interface FI_TCircularProgressLayer : FI_TLayer\n{\n double _endAngle;\n double _animationDuration;\n struct TNSRef<NSColor, void> _fillColor;\n _Bool _progressAnimationCompleted;\n function_b1fce659 _progressDidCompleteHandler;\n}\n\n+ (BOOL)needsDisplayForKey:(id)arg1;\n@property(nonatomic) double animationDuration; // @synthesize animationDuration=_animationDuration;\n@property double endAngle; // @synthesize endAngle=_endAngle;\n- (id).cxx_construct;\n- (void).cxx_destruct;\n- (void)callProgressAnimationDidCompleteHandlerIfNeeded;\n@property(readonly, nonatomic) _Bool isProgressAnimationCompleted; // @dynamic isProgressAnimationCompleted;\n- (void)setProgressDidCompleteHandler:(const function_b1fce659 *)arg1;\n- (void)drawInContext:(struct CGContext *)arg1;\n@property(retain, nonatomic) NSColor *fillColor; // @dynamic fillColor;\n@property(nonatomic) double fractionComplete; // @dynamic fractionComplete;\n- (void)setEndAngleAnimated:(double)arg1;\n- (id)actionForKey:(id)arg1;\n- (id)initWithLayer:(id)arg1;\n- (id)init;\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 <FinderKit/FI_TLayer.h>\n" (preproc_directive) "#import" (preproc_arg) "<FinderKit/FI_TLayer.h>" (ERROR) "@" (ERROR) "@" (declaration) "class NSColor;" (type_identifier) "class" (identifier) "NSColor" (;) ";" (function_definition) "__attribute__((visibility("hidden")))\n@interface FI_TCircularProgressLayer : FI_TLayer\n{\n double _endAngle;\n double _animationDuration;\n struct TNSRef<NSColor, void> _fillColor;\n _Bool _progressAnimationCompleted;\n function_b1fce659 _progressDidCompleteHandler;\n}" (attribute_specifier) "__attribute__((visibility("hidden")))" (__attribute__) "__attribute__" (() "(" (argument_list) "(visibility("hidden"))" (() "(" (call_expression) "visibility("hidden")" (identifier) "visibility" (argument_list) "("hidden")" (() "(" (string_literal) ""hidden"" (") """ (string_content) "hidden" (") """ ()) ")" ()) ")" ()) ")" (ERROR) "@" (ERROR) "@" (type_identifier) "interface" (identifier) "FI_TCircularProgressLayer" (ERROR) ": FI_TLayer" (:) ":" (identifier) "FI_TLayer" (compound_statement) "{\n double _endAngle;\n double _animationDuration;\n struct TNSRef<NSColor, void> _fillColor;\n _Bool _progressAnimationCompleted;\n function_b1fce659 _progressDidCompleteHandler;\n}" ({) "{" (declaration) "double _endAngle;" (primitive_type) "double" (identifier) "_endAngle" (;) ";" (declaration) "double _animationDuration;" (primitive_type) "double" (identifier) "_animationDuration" (;) ";" (declaration) "struct TNSRef<NSColor, void> _fillColor;" (struct_specifier) "struct TNSRef" (struct) "struct" (type_identifier) "TNSRef" (ERROR) "<" (<) "<" (identifier) "NSColor" (,) "," (ERROR) "void>" (identifier) "void" (>) ">" (identifier) "_fillColor" (;) ";" (declaration) "_Bool _progressAnimationCompleted;" (type_identifier) "_Bool" (identifier) "_progressAnimationCompleted" (;) ";" (declaration) "function_b1fce659 _progressDidCompleteHandler;" (type_identifier) "function_b1fce659" (identifier) "_progressDidCompleteHandler" (;) ";" (}) "}" (expression_statement) "+ (BOOL)needsDisplayForKey:(id)arg1;" (unary_expression) "+ (BOOL)needsDisplayForKey" (+) "+" (cast_expression) "(BOOL)needsDisplayForKey" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "needsDisplayForKey" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) double animationDuration;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "double" (identifier) "double" (identifier) "animationDuration" (;) ";" (comment) "// @synthesize animationDuration=_animationDuration;" (ERROR) "@" (ERROR) "@" (declaration) "property double endAngle;" (type_identifier) "property" (ERROR) "double" (identifier) "double" (identifier) "endAngle" (;) ";" (comment) "// @synthesize endAngle=_endAngle;" (expression_statement) "- (id).cxx_construct;" (unary_expression) "- (id).cxx_construct" (-) "-" (field_expression) "(id).cxx_construct" (parenthesized_expression) "(id)" (() "(" (identifier) "id" ()) ")" (.) "." (field_identifier) "cxx_construct" (;) ";" (expression_statement) "- (void).cxx_destruct;" (unary_expression) "- (void).cxx_destruct" (-) "-" (cast_expression) "(void).cxx_destruct" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (ERROR) "." (.) "." (identifier) "cxx_destruct" (;) ";" (expression_statement) "- (void)callProgressAnimationDidCompleteHandlerIfNeeded;" (unary_expression) "- (void)callProgressAnimationDidCompleteHandlerIfNeeded" (-) "-" (cast_expression) "(void)callProgressAnimationDidCompleteHandlerIfNeeded" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "callProgressAnimationDidCompleteHandlerIfNeeded" (;) ";" (ERROR) "@property(readonly, nonatomic) _Bool" (ERROR) "@" (call_expression) "property(readonly, nonatomic)" (identifier) "property" (argument_list) "(readonly, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "_Bool" (expression_statement) "isProgressAnimationCompleted;" (identifier) "isProgressAnimationCompleted" (;) ";" (comment) "// @dynamic isProgressAnimationCompleted;" (ERROR) "- (void)setProgressDidCompleteHandler:(" (unary_expression) "- (void)setProgressDidCompleteHandler" (-) "-" (cast_expression) "(void)setProgressDidCompleteHandler" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setProgressDidCompleteHandler" (:) ":" (() "(" (declaration) "const function_b1fce659 *)arg1;" (type_qualifier) "const" (const) "const" (type_identifier) "function_b1fce659" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)drawInContext:(" (unary_expression) "- (void)drawInContext" (-) "-" (cast_expression) "(void)drawInContext" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "drawInContext" (:) ":" (() "(" (declaration) "struct CGContext *)arg1;" (struct_specifier) "struct CGContext" (struct) "struct" (type_identifier) "CGContext" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSColor *fillColor;" (type_identifier) "NSColor" (pointer_declarator) "*fillColor" (*) "*" (identifier) "fillColor" (;) ";" (comment) "// @dynamic fillColor;" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) double fractionComplete;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "double" (identifier) "double" (identifier) "fractionComplete" (;) ";" (comment) "// @dynamic fractionComplete;" (expression_statement) "- (void)setEndAngleAnimated:(double)arg1;" (unary_expression) "- (void)setEndAngleAnimated" (-) "-" (cast_expression) "(void)setEndAngleAnimated" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setEndAngleAnimated" (ERROR) ":(double)arg1" (:) ":" (() "(" (primitive_type) "double" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)actionForKey:(id)arg1;" (unary_expression) "- (id)actionForKey" (-) "-" (cast_expression) "(id)actionForKey" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "actionForKey" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)initWithLayer:(id)arg1;" (unary_expression) "- (id)initWithLayer" (-) "-" (cast_expression) "(id)initWithLayer" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithLayer" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
296
31
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.19, "nodes": 180, "errors": 0, "source_hash": "a5196d8f0a32697485b0a5226cbc584117a86d6b64868e96c3ba2250721cc16d", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <FinderKit/FI_TLayer.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": "<FinderKit/FI_TLayer.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 31}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "declaration", "text": "class NSColor;", "parent": null, "children": [6], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 15}}, {"id": 6, "type": "identifier", "text": "NSColor", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 14}}, {"id": 7, "type": "function_definition", "text": "__attribute__((visibility(\"hidden\")))\n@interface FI_TCircularProgressLayer : FI_TLayer\n{\n double _endAngle;\n double _animationDuration;\n struct TNSRef<NSColor, void> _fillColor;\n _Bool _progressAnimationCompleted;\n function_b1fce659 _progressDidCompleteHandler;\n}", "parent": null, "children": [8, 15, 17, 18, 19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 8, "type": "attribute_specifier", "text": "__attribute__((visibility(\"hidden\")))", "parent": 7, "children": [9, 10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 37}}, {"id": 9, "type": "__attribute__", "text": "__attribute__", "parent": 8, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 13}}, {"id": 10, "type": "argument_list", "text": "(visibility(\"hidden\"))", "parent": 8, "children": [11], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 36}}, {"id": 11, "type": "call_expression", "text": "visibility(\"hidden\")", "parent": 10, "children": [12, 13], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 35}}, {"id": 12, "type": "identifier", "text": "visibility", "parent": 11, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 25}}, {"id": 13, "type": "argument_list", "text": "(\"hidden\")", "parent": 11, "children": [14], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 35}}, {"id": 14, "type": "string_literal", "text": "\"hidden\"", "parent": 13, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 34}}, {"id": 15, "type": "ERROR", "text": "@", "parent": 7, "children": [16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "interface", "parent": 7, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 18, "type": "identifier", "text": "FI_TCircularProgressLayer", "parent": 7, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 36}}, {"id": 19, "type": "ERROR", "text": ": FI_TLayer", "parent": 7, "children": [20], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 48}}, {"id": 20, "type": "identifier", "text": "FI_TLayer", "parent": 19, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 48}}, {"id": 21, "type": "declaration", "text": "double _endAngle;", "parent": 7, "children": [22, 23], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 21}}, {"id": 22, "type": "primitive_type", "text": "double", "parent": 21, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 23, "type": "identifier", "text": "_endAngle", "parent": 21, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 24, "type": "declaration", "text": "double _animationDuration;", "parent": 7, "children": [25, 26], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 30}}, {"id": 25, "type": "primitive_type", "text": "double", "parent": 24, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 26, "type": "identifier", "text": "_animationDuration", "parent": 24, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 29}}, {"id": 27, "type": "declaration", "text": "struct TNSRef<NSColor, void> _fillColor;", "parent": 7, "children": [28, 31, 33, 34, 37], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 44}}, {"id": 28, "type": "struct_specifier", "text": "struct TNSRef", "parent": 27, "children": [29, 30], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 17}}, {"id": 29, "type": "struct", "text": "struct", "parent": 28, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 30, "type": "type_identifier", "text": "TNSRef", "parent": 28, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 17}}, {"id": 31, "type": "ERROR", "text": "<", "parent": 27, "children": [32], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 32, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 33, "type": "identifier", "text": "NSColor", "parent": 27, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 25}}, {"id": 34, "type": "ERROR", "text": "void>", "parent": 27, "children": [35, 36], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 32}}, {"id": 35, "type": "identifier", "text": "void", "parent": 34, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 31}}, {"id": 36, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 37, "type": "identifier", "text": "_fillColor", "parent": 27, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 43}}, {"id": 38, "type": "declaration", "text": "_Bool _progressAnimationCompleted;", "parent": 7, "children": [39, 40], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 38}}, {"id": 39, "type": "type_identifier", "text": "_Bool", "parent": 38, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 9}}, {"id": 40, "type": "identifier", "text": "_progressAnimationCompleted", "parent": 38, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 37}}, {"id": 41, "type": "declaration", "text": "function_b1fce659 _progressDidCompleteHandler;", "parent": 7, "children": [42, 43], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 50}}, {"id": 42, "type": "type_identifier", "text": "function_b1fce659", "parent": 41, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 43, "type": "identifier", "text": "_progressDidCompleteHandler", "parent": 41, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 49}}, {"id": 44, "type": "unary_expression", "text": "+ (BOOL)needsDisplayForKey", "parent": null, "children": [45, 46], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 26}}, {"id": 45, "type": "+", "text": "+", "parent": 44, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 46, "type": "cast_expression", "text": "(BOOL)needsDisplayForKey", "parent": 44, "children": [47, 49], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 26}}, {"id": 47, "type": "type_descriptor", "text": "BOOL", "parent": 46, "children": [48], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 48, "type": "type_identifier", "text": "BOOL", "parent": 47, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 49, "type": "identifier", "text": "needsDisplayForKey", "parent": 46, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 26}}, {"id": 50, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [51, 52], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 35}}, {"id": 51, "type": "identifier", "text": "id", "parent": 50, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 30}}, {"id": 52, "type": "identifier", "text": "arg1", "parent": 50, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 35}}, {"id": 53, "type": "ERROR", "text": "@", "parent": null, "children": [54], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 54, "type": "ERROR", "text": "@", "parent": 53, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 55, "type": "declaration", "text": "property(nonatomic) double animationDuration;", "parent": null, "children": [56, 60, 62], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 46}}, {"id": 56, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 55, "children": [57, 58], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 20}}, {"id": 57, "type": "identifier", "text": "property", "parent": 56, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 58, "type": "type_descriptor", "text": "nonatomic", "parent": 56, "children": [59], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 59, "type": "type_identifier", "text": "nonatomic", "parent": 58, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 60, "type": "ERROR", "text": "double", "parent": 55, "children": [61], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 27}}, {"id": 61, "type": "identifier", "text": "double", "parent": 60, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 27}}, {"id": 62, "type": "identifier", "text": "animationDuration", "parent": 55, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 45}}, {"id": 63, "type": "ERROR", "text": "@", "parent": null, "children": [64], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 64, "type": "ERROR", "text": "@", "parent": 63, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 65, "type": "declaration", "text": "property double endAngle;", "parent": null, "children": [66, 67, 69], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 26}}, {"id": 66, "type": "type_identifier", "text": "property", "parent": 65, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 67, "type": "ERROR", "text": "double", "parent": 65, "children": [68], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 16}}, {"id": 68, "type": "identifier", "text": "double", "parent": 67, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 16}}, {"id": 69, "type": "identifier", "text": "endAngle", "parent": 65, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 25}}, {"id": 70, "type": "unary_expression", "text": "- (id).cxx_construct", "parent": null, "children": [71, 72], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 20}}, {"id": 71, "type": "-", "text": "-", "parent": 70, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 72, "type": "field_expression", "text": "(id).cxx_construct", "parent": 70, "children": [73, 75], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 20}}, {"id": 73, "type": "parenthesized_expression", "text": "(id)", "parent": 72, "children": [74], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 74, "type": "identifier", "text": "id", "parent": 73, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 75, "type": "field_identifier", "text": "cxx_construct", "parent": 72, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 20}}, {"id": 76, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [77, 78], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 21}}, {"id": 77, "type": "-", "text": "-", "parent": 76, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 78, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 76, "children": [79, 81], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 21}}, {"id": 79, "type": "type_descriptor", "text": "void", "parent": 78, "children": [80], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 81, "type": "identifier", "text": "cxx_destruct", "parent": 78, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 21}}, {"id": 82, "type": "unary_expression", "text": "- (void)callProgressAnimationDidCompleteHandlerIfNeeded", "parent": null, "children": [83, 84], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 55}}, {"id": 83, "type": "-", "text": "-", "parent": 82, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 84, "type": "cast_expression", "text": "(void)callProgressAnimationDidCompleteHandlerIfNeeded", "parent": 82, "children": [85, 87], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 55}}, {"id": 85, "type": "type_descriptor", "text": "void", "parent": 84, "children": [86], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 87, "type": "identifier", "text": "callProgressAnimationDidCompleteHandlerIfNeeded", "parent": 84, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 55}}, {"id": 88, "type": "ERROR", "text": "@property(readonly, nonatomic) _Bool", "parent": null, "children": [89, 90, 95], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 36}}, {"id": 89, "type": "ERROR", "text": "@", "parent": 88, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 90, "type": "call_expression", "text": "property(readonly, nonatomic)", "parent": 88, "children": [91, 92], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 30}}, {"id": 91, "type": "identifier", "text": "property", "parent": 90, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 9}}, {"id": 92, "type": "argument_list", "text": "(readonly, nonatomic)", "parent": 90, "children": [93, 94], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 30}}, {"id": 93, "type": "identifier", "text": "readonly", "parent": 92, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 18}}, {"id": 94, "type": "identifier", "text": "nonatomic", "parent": 92, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 29}}, {"id": 95, "type": "identifier", "text": "_Bool", "parent": 88, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 36}}, {"id": 96, "type": "identifier", "text": "isProgressAnimationCompleted", "parent": null, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 65}}, {"id": 97, "type": "ERROR", "text": "- (void)setProgressDidCompleteHandler:(", "parent": null, "children": [98], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 39}}, {"id": 98, "type": "unary_expression", "text": "- (void)setProgressDidCompleteHandler", "parent": 97, "children": [99, 100], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 37}}, {"id": 99, "type": "-", "text": "-", "parent": 98, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 100, "type": "cast_expression", "text": "(void)setProgressDidCompleteHandler", "parent": 98, "children": [101, 103], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 37}}, {"id": 101, "type": "type_descriptor", "text": "void", "parent": 100, "children": [102], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 103, "type": "identifier", "text": "setProgressDidCompleteHandler", "parent": 100, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 37}}, {"id": 104, "type": "declaration", "text": "const function_b1fce659 *)arg1;", "parent": null, "children": [105, 106], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 70}}, {"id": 105, "type": "type_identifier", "text": "function_b1fce659", "parent": 104, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 62}}, {"id": 106, "type": "pointer_declarator", "text": "*)arg1", "parent": 104, "children": [107, 108], "start_point": {"row": 27, "column": 63}, "end_point": {"row": 27, "column": 69}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 27, "column": 63}, "end_point": {"row": 27, "column": 64}}, {"id": 108, "type": "identifier", "text": "arg1", "parent": 106, "children": [], "start_point": {"row": 27, "column": 65}, "end_point": {"row": 27, "column": 69}}, {"id": 109, "type": "ERROR", "text": "- (void)drawInContext:(", "parent": null, "children": [110], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 23}}, {"id": 110, "type": "unary_expression", "text": "- (void)drawInContext", "parent": 109, "children": [111, 112], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 21}}, {"id": 111, "type": "-", "text": "-", "parent": 110, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 112, "type": "cast_expression", "text": "(void)drawInContext", "parent": 110, "children": [113, 115], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 21}}, {"id": 113, "type": "type_descriptor", "text": "void", "parent": 112, "children": [114], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 114, "type": "primitive_type", "text": "void", "parent": 113, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 115, "type": "identifier", "text": "drawInContext", "parent": 112, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 116, "type": "declaration", "text": "struct CGContext *)arg1;", "parent": null, "children": [117, 120], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 47}}, {"id": 117, "type": "struct_specifier", "text": "struct CGContext", "parent": 116, "children": [118, 119], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 39}}, {"id": 118, "type": "struct", "text": "struct", "parent": 117, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 29}}, {"id": 119, "type": "type_identifier", "text": "CGContext", "parent": 117, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 39}}, {"id": 120, "type": "pointer_declarator", "text": "*)arg1", "parent": 116, "children": [121, 122], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 46}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 41}}, {"id": 122, "type": "identifier", "text": "arg1", "parent": 120, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 46}}, {"id": 123, "type": "ERROR", "text": "@", "parent": null, "children": [124], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 124, "type": "ERROR", "text": "@", "parent": 123, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 125, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [126, 127], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 28}}, {"id": 126, "type": "identifier", "text": "property", "parent": 125, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 127, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 125, "children": [128, 129], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 28}}, {"id": 128, "type": "identifier", "text": "retain", "parent": 127, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 16}}, {"id": 129, "type": "identifier", "text": "nonatomic", "parent": 127, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 27}}, {"id": 130, "type": "declaration", "text": "NSColor *fillColor;", "parent": null, "children": [131, 132], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 48}}, {"id": 131, "type": "type_identifier", "text": "NSColor", "parent": 130, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 36}}, {"id": 132, "type": "pointer_declarator", "text": "*fillColor", "parent": 130, "children": [133, 134], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 47}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 134, "type": "identifier", "text": "fillColor", "parent": 132, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 47}}, {"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": "declaration", "text": "property(nonatomic) double fractionComplete;", "parent": null, "children": [138, 142, 144], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 45}}, {"id": 138, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 137, "children": [139, 140], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 20}}, {"id": 139, "type": "identifier", "text": "property", "parent": 138, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 140, "type": "type_descriptor", "text": "nonatomic", "parent": 138, "children": [141], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 19}}, {"id": 141, "type": "type_identifier", "text": "nonatomic", "parent": 140, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 19}}, {"id": 142, "type": "ERROR", "text": "double", "parent": 137, "children": [143], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 27}}, {"id": 143, "type": "identifier", "text": "double", "parent": 142, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 27}}, {"id": 144, "type": "identifier", "text": "fractionComplete", "parent": 137, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 44}}, {"id": 145, "type": "unary_expression", "text": "- (void)setEndAngleAnimated", "parent": null, "children": [146, 147], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 27}}, {"id": 146, "type": "-", "text": "-", "parent": 145, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 147, "type": "cast_expression", "text": "(void)setEndAngleAnimated", "parent": 145, "children": [148, 150], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 27}}, {"id": 148, "type": "type_descriptor", "text": "void", "parent": 147, "children": [149], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 150, "type": "identifier", "text": "setEndAngleAnimated", "parent": 147, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 27}}, {"id": 151, "type": "ERROR", "text": ":(double)arg1", "parent": null, "children": [152, 153], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 40}}, {"id": 152, "type": "primitive_type", "text": "double", "parent": 151, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 35}}, {"id": 153, "type": "identifier", "text": "arg1", "parent": 151, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 40}}, {"id": 154, "type": "unary_expression", "text": "- (id)actionForKey", "parent": null, "children": [155, 156], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 18}}, {"id": 155, "type": "-", "text": "-", "parent": 154, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 156, "type": "cast_expression", "text": "(id)actionForKey", "parent": 154, "children": [157, 159], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 18}}, {"id": 157, "type": "type_descriptor", "text": "id", "parent": 156, "children": [158], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 158, "type": "type_identifier", "text": "id", "parent": 157, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 159, "type": "identifier", "text": "actionForKey", "parent": 156, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 18}}, {"id": 160, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [161, 162], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 27}}, {"id": 161, "type": "identifier", "text": "id", "parent": 160, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 162, "type": "identifier", "text": "arg1", "parent": 160, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 27}}, {"id": 163, "type": "unary_expression", "text": "- (id)initWithLayer", "parent": null, "children": [164, 165], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 19}}, {"id": 164, "type": "-", "text": "-", "parent": 163, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 165, "type": "cast_expression", "text": "(id)initWithLayer", "parent": 163, "children": [166, 168], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 19}}, {"id": 166, "type": "type_descriptor", "text": "id", "parent": 165, "children": [167], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 167, "type": "type_identifier", "text": "id", "parent": 166, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 168, "type": "identifier", "text": "initWithLayer", "parent": 165, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 19}}, {"id": 169, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [170, 171], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 28}}, {"id": 170, "type": "identifier", "text": "id", "parent": 169, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 23}}, {"id": 171, "type": "identifier", "text": "arg1", "parent": 169, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 172, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [173, 174], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 10}}, {"id": 173, "type": "-", "text": "-", "parent": 172, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 174, "type": "cast_expression", "text": "(id)init", "parent": 172, "children": [175, 177], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 175, "type": "type_descriptor", "text": "id", "parent": 174, "children": [176], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 176, "type": "type_identifier", "text": "id", "parent": 175, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 177, "type": "identifier", "text": "init", "parent": 174, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 10}}, {"id": 178, "type": "ERROR", "text": "@", "parent": null, "children": [179], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 179, "type": "ERROR", "text": "@", "parent": 178, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}]}, "node_categories": {"declarations": {"functions": [7], "variables": [5, 21, 24, 27, 38, 41, 55, 65, 104, 116, 130, 137], "classes": [28, 29, 117, 118], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11, 44, 46, 70, 72, 73, 76, 78, 82, 84, 90, 98, 100, 110, 112, 125, 145, 147, 154, 156, 163, 165, 172, 174], "assignments": [], "loops": [], "conditionals": [6, 8, 12, 17, 18, 20, 23, 26, 30, 33, 35, 37, 39, 40, 42, 43, 48, 49, 51, 52, 56, 57, 59, 61, 62, 66, 68, 69, 74, 75, 81, 87, 91, 93, 94, 95, 96, 103, 105, 108, 115, 119, 122, 126, 128, 129, 131, 134, 138, 139, 141, 143, 144, 150, 153, 158, 159, 161, 162, 167, 168, 170, 171, 176, 177], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "TNSRef<NSColor,", "text_snippet": "__attribute__((visibility(\"hidden\")))\n@interface FI_TCircularProgressLayer : FI_TLayer\n{\n double "}], "class_declarations": [{"node_id": 28, "universal_type": "class", "name": "TNSRef", "text_snippet": "struct TNSRef"}, {"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 117, "universal_type": "class", "name": "CGContext", "text_snippet": "struct CGContext"}, {"node_id": 118, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "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 <FinderKit/FI_TLayer.h>\n\n@class NSColor;\n\n__attribute__((visibility(\"hidden\")))\n@interface FI_TCircularProgressLayer : FI_TLayer\n{\n double _endAngle;\n double _animationDuration;\n struct TNSRef<NSColor, void> _fillColor;\n _Bool _progressAnimationCompleted;\n function_b1fce659 _progressDidCompleteHandler;\n}\n\n+ (BOOL)needsDisplayForKey:(id)arg1;\n@property(nonatomic) double animationDuration; // @synthesize animationDuration=_animationDuration;\n@property double endAngle; // @synthesize endAngle=_endAngle;\n- (id).cxx_construct;\n- (void).cxx_destruct;\n- (void)callProgressAnimationDidCompleteHandlerIfNeeded;\n@property(readonly, nonatomic) _Bool isProgressAnimationCompleted; // @dynamic isProgressAnimationCompleted;\n- (void)setProgressDidCompleteHandler:(const function_b1fce659 *)arg1;\n- (void)drawInContext:(struct CGContext *)arg1;\n@property(retain, nonatomic) NSColor *fillColor; // @dynamic fillColor;\n@property(nonatomic) double fractionComplete; // @dynamic fractionComplete;\n- (void)setEndAngleAnimated:(double)arg1;\n- (id)actionForKey:(id)arg1;\n- (id)initWithLayer:(id)arg1;\n- (id)init;\n\n@end\n\n"}
123
c
#pragma once #include <system/types.h> #include <dependencies/workload_aware.h> namespace MOGSLib { /** * @brief This template structures are meant to be used to hold static data about the schedulers. * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime. */ template<SchedulerEnum T> struct SchedulerTraits { static std::string name() { return "unimplemented"; } template<typename ... Concepts> using Dependencies = Dependency::MinimalDependencies<Concepts...>; }; template<> struct SchedulerTraits<SchedulerEnum::round_robin> { static std::string name() { return "roundrobin"; } template<typename ... Concepts> using Dependencies = Dependency::WorkloadAware<Concepts...>; }; template<> struct SchedulerTraits<SchedulerEnum::compact> { static std::string name() { return "compact"; } template<typename ... Concepts> using Dependencies = Dependency::WorkloadAware<Concepts...>; }; template<> struct SchedulerTraits<SchedulerEnum::task_pack> { static std::string name() { return "taskpack"; } template<typename ... Concepts> using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>; }; template<> struct SchedulerTraits<SchedulerEnum::greedy> { static std::string name() { return "greedy"; } template<typename ... Concepts> using Dependencies = Dependency::WorkloadAware<Concepts...>; }; template<> struct SchedulerTraits<SchedulerEnum::binlpt> { static std::string name() { return "binlpt"; } template<typename ... Concepts> using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>; }; }
35.71
45
(translation_unit) "#pragma once\n\n#include <system/types.h>\n\n#include <dependencies/workload_aware.h>\n\nnamespace MOGSLib {\n\n/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */\ntemplate<SchedulerEnum T>\nstruct SchedulerTraits {\n static std::string name() { return "unimplemented"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return "roundrobin"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return "compact"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return "taskpack"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return "greedy"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return "binlpt"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <system/types.h>\n" (#include) "#include" (system_lib_string) "<system/types.h>" (preproc_include) "#include <dependencies/workload_aware.h>\n" (#include) "#include" (system_lib_string) "<dependencies/workload_aware.h>" (function_definition) "namespace MOGSLib {\n\n/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */\ntemplate<SchedulerEnum T>\nstruct SchedulerTraits {\n static std::string name() { return "unimplemented"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return "roundrobin"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return "compact"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return "taskpack"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return "greedy"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return "binlpt"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\n}" (type_identifier) "namespace" (identifier) "MOGSLib" (compound_statement) "{\n\n/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */\ntemplate<SchedulerEnum T>\nstruct SchedulerTraits {\n static std::string name() { return "unimplemented"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return "roundrobin"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return "compact"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return "taskpack"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return "greedy"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return "binlpt"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\n}" ({) "{" (comment) "/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */" (ERROR) "template<SchedulerEnum T>\nstruct SchedulerTraits" (binary_expression) "template<SchedulerEnum T>\nstruct" (binary_expression) "template<SchedulerEnum" (identifier) "template" (<) "<" (identifier) "SchedulerEnum" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "struct" (identifier) "SchedulerTraits" (compound_statement) "{\n static std::string name() { return "unimplemented"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "unimplemented"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "unimplemented"; }" ({) "{" (return_statement) "return "unimplemented";" (return) "return" (string_literal) ""unimplemented"" (") """ (string_content) "unimplemented" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::MinimalDependencies" (:) ":" (:) ":" (identifier) "MinimalDependencies" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (function_definition) "struct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return "roundrobin"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" (struct_specifier) "struct SchedulerTraits" (struct) "struct" (type_identifier) "SchedulerTraits" (ERROR) "<SchedulerEnum::" (<) "<" (identifier) "SchedulerEnum" (:) ":" (:) ":" (identifier) "round_robin" (ERROR) ">" (>) ">" (compound_statement) "{\n static std::string name() { return "roundrobin"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "roundrobin"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "roundrobin"; }" ({) "{" (return_statement) "return "roundrobin";" (return) "return" (string_literal) ""roundrobin"" (") """ (string_content) "roundrobin" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::WorkloadAware" (:) ":" (:) ":" (identifier) "WorkloadAware" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (function_definition) "struct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return "compact"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" (struct_specifier) "struct SchedulerTraits" (struct) "struct" (type_identifier) "SchedulerTraits" (ERROR) "<SchedulerEnum::" (<) "<" (identifier) "SchedulerEnum" (:) ":" (:) ":" (identifier) "compact" (ERROR) ">" (>) ">" (compound_statement) "{\n static std::string name() { return "compact"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "compact"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "compact"; }" ({) "{" (return_statement) "return "compact";" (return) "return" (string_literal) ""compact"" (") """ (string_content) "compact" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::WorkloadAware" (:) ":" (:) ":" (identifier) "WorkloadAware" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (function_definition) "struct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return "taskpack"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}" (struct_specifier) "struct SchedulerTraits" (struct) "struct" (type_identifier) "SchedulerTraits" (ERROR) "<SchedulerEnum::" (<) "<" (identifier) "SchedulerEnum" (:) ":" (:) ":" (identifier) "task_pack" (ERROR) ">" (>) ">" (compound_statement) "{\n static std::string name() { return "taskpack"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "taskpack"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "taskpack"; }" ({) "{" (return_statement) "return "taskpack";" (return) "return" (string_literal) ""taskpack"" (") """ (string_content) "taskpack" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::WorkloadAwareWithK" (:) ":" (:) ":" (identifier) "WorkloadAwareWithK" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (function_definition) "struct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return "greedy"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" (struct_specifier) "struct SchedulerTraits" (struct) "struct" (type_identifier) "SchedulerTraits" (ERROR) "<SchedulerEnum::" (<) "<" (identifier) "SchedulerEnum" (:) ":" (:) ":" (identifier) "greedy" (ERROR) ">" (>) ">" (compound_statement) "{\n static std::string name() { return "greedy"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "greedy"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "greedy"; }" ({) "{" (return_statement) "return "greedy";" (return) "return" (string_literal) ""greedy"" (") """ (string_content) "greedy" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::WorkloadAware" (:) ":" (:) ":" (identifier) "WorkloadAware" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (function_definition) "struct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return "binlpt"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}" (struct_specifier) "struct SchedulerTraits" (struct) "struct" (type_identifier) "SchedulerTraits" (ERROR) "<SchedulerEnum::" (<) "<" (identifier) "SchedulerEnum" (:) ":" (:) ":" (identifier) "binlpt" (ERROR) ">" (>) ">" (compound_statement) "{\n static std::string name() { return "binlpt"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}" ({) "{" (function_definition) "static std::string name() { return "binlpt"; }" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "name()" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return "binlpt"; }" ({) "{" (return_statement) "return "binlpt";" (return) "return" (string_literal) ""binlpt"" (") """ (string_content) "binlpt" (") """ (;) ";" (}) "}" (expression_statement) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts" (binary_expression) "template<typename ... Concepts>\n using Dependencies = Dependency" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... Concepts" (...) "..." (identifier) "Concepts" (>) ">" (ERROR) "using" (identifier) "using" (assignment_expression) "Dependencies = Dependency" (identifier) "Dependencies" (=) "=" (identifier) "Dependency" (ERROR) "::WorkloadAwareWithK" (:) ":" (:) ":" (identifier) "WorkloadAwareWithK" (<) "<" (identifier) "Concepts" (ERROR) "..." (...) "..." (>) ">" (identifier) "" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
450
47
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 35.71, "nodes": 279, "errors": 0, "source_hash": "8444a38e1dda0dc6d1c000de0e650adfe207b903a78c2be5f2854ddd4227d551", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <system/types.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": "<system/types.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <dependencies/workload_aware.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": "<dependencies/workload_aware.h>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 40}}, {"id": 9, "type": "function_definition", "text": "namespace MOGSLib {\n\n/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */\ntemplate<SchedulerEnum T>\nstruct SchedulerTraits {\n static std::string name() { return \"unimplemented\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return \"roundrobin\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return \"compact\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return \"taskpack\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return \"greedy\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return \"binlpt\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\n}", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 11, "type": "identifier", "text": "MOGSLib", "parent": 9, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 17}}, {"id": 12, "type": "ERROR", "text": "template<SchedulerEnum T>\nstruct SchedulerTraits", "parent": 9, "children": [13, 22], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 22}}, {"id": 13, "type": "binary_expression", "text": "template<SchedulerEnum T>\nstruct", "parent": 12, "children": [14, 18, 20, 21], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 14, "type": "binary_expression", "text": "template<SchedulerEnum", "parent": 13, "children": [15, 16, 17], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 22}}, {"id": 15, "type": "identifier", "text": "template", "parent": 14, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 16, "type": "<", "text": "<", "parent": 14, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 17, "type": "identifier", "text": "SchedulerEnum", "parent": 14, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 18, "type": "ERROR", "text": "T", "parent": 13, "children": [19], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 24}}, {"id": 19, "type": "identifier", "text": "T", "parent": 18, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 24}}, {"id": 20, "type": ">", "text": ">", "parent": 13, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 25}}, {"id": 21, "type": "identifier", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 22, "type": "identifier", "text": "SchedulerTraits", "parent": 12, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 22}}, {"id": 23, "type": "function_definition", "text": "static std::string name() { return \"unimplemented\"; }", "parent": 9, "children": [24, 25, 27], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 55}}, {"id": 24, "type": "type_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 25, "type": "ERROR", "text": "::string", "parent": 23, "children": [26], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 20}}, {"id": 26, "type": "identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 20}}, {"id": 27, "type": "function_declarator", "text": "name()", "parent": 23, "children": [28, 29], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 27}}, {"id": 28, "type": "identifier", "text": "name", "parent": 27, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 25}}, {"id": 29, "type": "parameter_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 27}}, {"id": 30, "type": "return_statement", "text": "return \"unimplemented\";", "parent": 23, "children": [31], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 53}}, {"id": 31, "type": "string_literal", "text": "\"unimplemented\"", "parent": 30, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 52}}, {"id": 32, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>", "parent": 9, "children": [33, 52, 53], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 17, "column": 67}}, {"id": 33, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts", "parent": 32, "children": [34, 48, 50, 51], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 17, "column": 63}}, {"id": 34, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 33, "children": [35, 39, 41, 42, 44], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 17, "column": 33}}, {"id": 35, "type": "binary_expression", "text": "template<typename", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 19}}, {"id": 36, "type": "identifier", "text": "template", "parent": 35, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 10}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 11}}, {"id": 38, "type": "identifier", "text": "typename", "parent": 35, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 19}}, {"id": 39, "type": "ERROR", "text": "... Concepts", "parent": 34, "children": [40], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 32}}, {"id": 40, "type": "identifier", "text": "Concepts", "parent": 39, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 32}}, {"id": 41, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 33}}, {"id": 42, "type": "ERROR", "text": "using", "parent": 34, "children": [43], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 7}}, {"id": 43, "type": "identifier", "text": "using", "parent": 42, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 7}}, {"id": 44, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 34, "children": [45, 46, 47], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 33}}, {"id": 45, "type": "identifier", "text": "Dependencies", "parent": 44, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 47, "type": "identifier", "text": "Dependency", "parent": 44, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 33}}, {"id": 48, "type": "ERROR", "text": "::MinimalDependencies", "parent": 33, "children": [49], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 54}}, {"id": 49, "type": "identifier", "text": "MinimalDependencies", "parent": 48, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 54}}, {"id": 50, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 51, "type": "identifier", "text": "Concepts", "parent": 33, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 63}}, {"id": 52, "type": ">", "text": ">", "parent": 32, "children": [], "start_point": {"row": 17, "column": 66}, "end_point": {"row": 17, "column": 67}}, {"id": 53, "type": "identifier", "text": "", "parent": 32, "children": [], "start_point": {"row": 17, "column": 67}, "end_point": {"row": 17, "column": 67}}, {"id": 54, "type": "ERROR", "text": "template<>", "parent": 9, "children": [55, 56, 57], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 10}}, {"id": 55, "type": "identifier", "text": "template", "parent": 54, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 56, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 57, "type": ">", "text": ">", "parent": 54, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 58, "type": "function_definition", "text": "struct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return \"roundrobin\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}", "parent": 9, "children": [59, 62, 65, 66], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 59, "type": "struct_specifier", "text": "struct SchedulerTraits", "parent": 58, "children": [60, 61], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 60, "type": "struct", "text": "struct", "parent": 59, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 61, "type": "type_identifier", "text": "SchedulerTraits", "parent": 59, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 22}}, {"id": 62, "type": "ERROR", "text": "<SchedulerEnum::", "parent": 58, "children": [63, 64], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 38}}, {"id": 63, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 64, "type": "identifier", "text": "SchedulerEnum", "parent": 62, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 36}}, {"id": 65, "type": "identifier", "text": "round_robin", "parent": 58, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 49}}, {"id": 66, "type": "ERROR", "text": ">", "parent": 58, "children": [67], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 50}}, {"id": 67, "type": ">", "text": ">", "parent": 66, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 50}}, {"id": 68, "type": "function_definition", "text": "static std::string name() { return \"roundrobin\"; }", "parent": 58, "children": [69, 70, 72], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 52}}, {"id": 69, "type": "type_identifier", "text": "std", "parent": 68, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 12}}, {"id": 70, "type": "ERROR", "text": "::string", "parent": 68, "children": [71], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 20}}, {"id": 71, "type": "identifier", "text": "string", "parent": 70, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 20}}, {"id": 72, "type": "function_declarator", "text": "name()", "parent": 68, "children": [73, 74], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 27}}, {"id": 73, "type": "identifier", "text": "name", "parent": 72, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 74, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 27}}, {"id": 75, "type": "return_statement", "text": "return \"roundrobin\";", "parent": 68, "children": [76], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 50}}, {"id": 76, "type": "string_literal", "text": "\"roundrobin\"", "parent": 75, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 49}}, {"id": 77, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>", "parent": 58, "children": [78, 97, 98], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 61}}, {"id": 78, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts", "parent": 77, "children": [79, 93, 95, 96], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 57}}, {"id": 79, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 78, "children": [80, 84, 86, 87, 89], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 33}}, {"id": 80, "type": "binary_expression", "text": "template<typename", "parent": 79, "children": [81, 82, 83], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 19}}, {"id": 81, "type": "identifier", "text": "template", "parent": 80, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 10}}, {"id": 82, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 83, "type": "identifier", "text": "typename", "parent": 80, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 19}}, {"id": 84, "type": "ERROR", "text": "... Concepts", "parent": 79, "children": [85], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 32}}, {"id": 85, "type": "identifier", "text": "Concepts", "parent": 84, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 32}}, {"id": 86, "type": ">", "text": ">", "parent": 79, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 33}}, {"id": 87, "type": "ERROR", "text": "using", "parent": 79, "children": [88], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 7}}, {"id": 88, "type": "identifier", "text": "using", "parent": 87, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 7}}, {"id": 89, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 79, "children": [90, 91, 92], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 33}}, {"id": 90, "type": "identifier", "text": "Dependencies", "parent": 89, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 20}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 22}}, {"id": 92, "type": "identifier", "text": "Dependency", "parent": 89, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 33}}, {"id": 93, "type": "ERROR", "text": "::WorkloadAware", "parent": 78, "children": [94], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 48}}, {"id": 94, "type": "identifier", "text": "WorkloadAware", "parent": 93, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 48}}, {"id": 95, "type": "<", "text": "<", "parent": 78, "children": [], "start_point": {"row": 25, "column": 48}, "end_point": {"row": 25, "column": 49}}, {"id": 96, "type": "identifier", "text": "Concepts", "parent": 78, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 57}}, {"id": 97, "type": ">", "text": ">", "parent": 77, "children": [], "start_point": {"row": 25, "column": 60}, "end_point": {"row": 25, "column": 61}}, {"id": 98, "type": "identifier", "text": "", "parent": 77, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 61}}, {"id": 99, "type": "ERROR", "text": "template<>", "parent": 9, "children": [100, 101, 102], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 10}}, {"id": 100, "type": "identifier", "text": "template", "parent": 99, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 101, "type": "<", "text": "<", "parent": 99, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 102, "type": ">", "text": ">", "parent": 99, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 103, "type": "function_definition", "text": "struct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return \"compact\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}", "parent": 9, "children": [104, 107, 110, 111], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 104, "type": "struct_specifier", "text": "struct SchedulerTraits", "parent": 103, "children": [105, 106], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 22}}, {"id": 105, "type": "struct", "text": "struct", "parent": 104, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 106, "type": "type_identifier", "text": "SchedulerTraits", "parent": 104, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 22}}, {"id": 107, "type": "ERROR", "text": "<SchedulerEnum::", "parent": 103, "children": [108, 109], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 38}}, {"id": 108, "type": "<", "text": "<", "parent": 107, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 109, "type": "identifier", "text": "SchedulerEnum", "parent": 107, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 36}}, {"id": 110, "type": "identifier", "text": "compact", "parent": 103, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 45}}, {"id": 111, "type": "ERROR", "text": ">", "parent": 103, "children": [112], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 46}}, {"id": 112, "type": ">", "text": ">", "parent": 111, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 46}}, {"id": 113, "type": "function_definition", "text": "static std::string name() { return \"compact\"; }", "parent": 103, "children": [114, 115, 117], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 49}}, {"id": 114, "type": "type_identifier", "text": "std", "parent": 113, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 12}}, {"id": 115, "type": "ERROR", "text": "::string", "parent": 113, "children": [116], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 20}}, {"id": 116, "type": "identifier", "text": "string", "parent": 115, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 117, "type": "function_declarator", "text": "name()", "parent": 113, "children": [118, 119], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 27}}, {"id": 118, "type": "identifier", "text": "name", "parent": 117, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 25}}, {"id": 119, "type": "parameter_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 27}}, {"id": 120, "type": "return_statement", "text": "return \"compact\";", "parent": 113, "children": [121], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 47}}, {"id": 121, "type": "string_literal", "text": "\"compact\"", "parent": 120, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 46}}, {"id": 122, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>", "parent": 103, "children": [123, 142, 143], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 33, "column": 61}}, {"id": 123, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts", "parent": 122, "children": [124, 138, 140, 141], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 33, "column": 57}}, {"id": 124, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 123, "children": [125, 129, 131, 132, 134], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 33, "column": 33}}, {"id": 125, "type": "binary_expression", "text": "template<typename", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 19}}, {"id": 126, "type": "identifier", "text": "template", "parent": 125, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 10}}, {"id": 127, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 11}}, {"id": 128, "type": "identifier", "text": "typename", "parent": 125, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 19}}, {"id": 129, "type": "ERROR", "text": "... Concepts", "parent": 124, "children": [130], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 32}}, {"id": 130, "type": "identifier", "text": "Concepts", "parent": 129, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 32}}, {"id": 131, "type": ">", "text": ">", "parent": 124, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 33}}, {"id": 132, "type": "ERROR", "text": "using", "parent": 124, "children": [133], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 7}}, {"id": 133, "type": "identifier", "text": "using", "parent": 132, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 7}}, {"id": 134, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 124, "children": [135, 136, 137], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 33}}, {"id": 135, "type": "identifier", "text": "Dependencies", "parent": 134, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 20}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 137, "type": "identifier", "text": "Dependency", "parent": 134, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 33}}, {"id": 138, "type": "ERROR", "text": "::WorkloadAware", "parent": 123, "children": [139], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 48}}, {"id": 139, "type": "identifier", "text": "WorkloadAware", "parent": 138, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 48}}, {"id": 140, "type": "<", "text": "<", "parent": 123, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 49}}, {"id": 141, "type": "identifier", "text": "Concepts", "parent": 123, "children": [], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 57}}, {"id": 142, "type": ">", "text": ">", "parent": 122, "children": [], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 33, "column": 61}}, {"id": 143, "type": "identifier", "text": "", "parent": 122, "children": [], "start_point": {"row": 33, "column": 61}, "end_point": {"row": 33, "column": 61}}, {"id": 144, "type": "ERROR", "text": "template<>", "parent": 9, "children": [145, 146, 147], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 10}}, {"id": 145, "type": "identifier", "text": "template", "parent": 144, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 146, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 147, "type": ">", "text": ">", "parent": 144, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 10}}, {"id": 148, "type": "function_definition", "text": "struct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return \"taskpack\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}", "parent": 9, "children": [149, 152, 155, 156], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 149, "type": "struct_specifier", "text": "struct SchedulerTraits", "parent": 148, "children": [150, 151], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 22}}, {"id": 150, "type": "struct", "text": "struct", "parent": 149, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 151, "type": "type_identifier", "text": "SchedulerTraits", "parent": 149, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 22}}, {"id": 152, "type": "ERROR", "text": "<SchedulerEnum::", "parent": 148, "children": [153, 154], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 38}}, {"id": 153, "type": "<", "text": "<", "parent": 152, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 23}}, {"id": 154, "type": "identifier", "text": "SchedulerEnum", "parent": 152, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 36}}, {"id": 155, "type": "identifier", "text": "task_pack", "parent": 148, "children": [], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 47}}, {"id": 156, "type": "ERROR", "text": ">", "parent": 148, "children": [157], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 48}}, {"id": 157, "type": ">", "text": ">", "parent": 156, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 48}}, {"id": 158, "type": "function_definition", "text": "static std::string name() { return \"taskpack\"; }", "parent": 148, "children": [159, 160, 162], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 50}}, {"id": 159, "type": "type_identifier", "text": "std", "parent": 158, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 12}}, {"id": 160, "type": "ERROR", "text": "::string", "parent": 158, "children": [161], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 20}}, {"id": 161, "type": "identifier", "text": "string", "parent": 160, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 20}}, {"id": 162, "type": "function_declarator", "text": "name()", "parent": 158, "children": [163, 164], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 27}}, {"id": 163, "type": "identifier", "text": "name", "parent": 162, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 25}}, {"id": 164, "type": "parameter_list", "text": "()", "parent": 162, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 27}}, {"id": 165, "type": "return_statement", "text": "return \"taskpack\";", "parent": 158, "children": [166], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 48}}, {"id": 166, "type": "string_literal", "text": "\"taskpack\"", "parent": 165, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 47}}, {"id": 167, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>", "parent": 148, "children": [168, 187, 188], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 41, "column": 66}}, {"id": 168, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts", "parent": 167, "children": [169, 183, 185, 186], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 41, "column": 62}}, {"id": 169, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 168, "children": [170, 174, 176, 177, 179], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 41, "column": 33}}, {"id": 170, "type": "binary_expression", "text": "template<typename", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 19}}, {"id": 171, "type": "identifier", "text": "template", "parent": 170, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 10}}, {"id": 172, "type": "<", "text": "<", "parent": 170, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 11}}, {"id": 173, "type": "identifier", "text": "typename", "parent": 170, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 19}}, {"id": 174, "type": "ERROR", "text": "... Concepts", "parent": 169, "children": [175], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 32}}, {"id": 175, "type": "identifier", "text": "Concepts", "parent": 174, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 32}}, {"id": 176, "type": ">", "text": ">", "parent": 169, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 177, "type": "ERROR", "text": "using", "parent": 169, "children": [178], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 7}}, {"id": 178, "type": "identifier", "text": "using", "parent": 177, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 7}}, {"id": 179, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 169, "children": [180, 181, 182], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 33}}, {"id": 180, "type": "identifier", "text": "Dependencies", "parent": 179, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 20}}, {"id": 181, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 182, "type": "identifier", "text": "Dependency", "parent": 179, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 33}}, {"id": 183, "type": "ERROR", "text": "::WorkloadAwareWithK", "parent": 168, "children": [184], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 53}}, {"id": 184, "type": "identifier", "text": "WorkloadAwareWithK", "parent": 183, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 53}}, {"id": 185, "type": "<", "text": "<", "parent": 168, "children": [], "start_point": {"row": 41, "column": 53}, "end_point": {"row": 41, "column": 54}}, {"id": 186, "type": "identifier", "text": "Concepts", "parent": 168, "children": [], "start_point": {"row": 41, "column": 54}, "end_point": {"row": 41, "column": 62}}, {"id": 187, "type": ">", "text": ">", "parent": 167, "children": [], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 66}}, {"id": 188, "type": "identifier", "text": "", "parent": 167, "children": [], "start_point": {"row": 41, "column": 66}, "end_point": {"row": 41, "column": 66}}, {"id": 189, "type": "ERROR", "text": "template<>", "parent": 9, "children": [190, 191, 192], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 10}}, {"id": 190, "type": "identifier", "text": "template", "parent": 189, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 191, "type": "<", "text": "<", "parent": 189, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 192, "type": ">", "text": ">", "parent": 189, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 193, "type": "function_definition", "text": "struct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return \"greedy\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n}", "parent": 9, "children": [194, 197, 200, 201], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 194, "type": "struct_specifier", "text": "struct SchedulerTraits", "parent": 193, "children": [195, 196], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 22}}, {"id": 195, "type": "struct", "text": "struct", "parent": 194, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 196, "type": "type_identifier", "text": "SchedulerTraits", "parent": 194, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 22}}, {"id": 197, "type": "ERROR", "text": "<SchedulerEnum::", "parent": 193, "children": [198, 199], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 38}}, {"id": 198, "type": "<", "text": "<", "parent": 197, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 199, "type": "identifier", "text": "SchedulerEnum", "parent": 197, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 36}}, {"id": 200, "type": "identifier", "text": "greedy", "parent": 193, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 44}}, {"id": 201, "type": "ERROR", "text": ">", "parent": 193, "children": [202], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 45}}, {"id": 202, "type": ">", "text": ">", "parent": 201, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 45}}, {"id": 203, "type": "function_definition", "text": "static std::string name() { return \"greedy\"; }", "parent": 193, "children": [204, 205, 207], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 48}}, {"id": 204, "type": "type_identifier", "text": "std", "parent": 203, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 12}}, {"id": 205, "type": "ERROR", "text": "::string", "parent": 203, "children": [206], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 20}}, {"id": 206, "type": "identifier", "text": "string", "parent": 205, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 20}}, {"id": 207, "type": "function_declarator", "text": "name()", "parent": 203, "children": [208, 209], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 27}}, {"id": 208, "type": "identifier", "text": "name", "parent": 207, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 25}}, {"id": 209, "type": "parameter_list", "text": "()", "parent": 207, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 27}}, {"id": 210, "type": "return_statement", "text": "return \"greedy\";", "parent": 203, "children": [211], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 46}}, {"id": 211, "type": "string_literal", "text": "\"greedy\"", "parent": 210, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 45}}, {"id": 212, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>", "parent": 193, "children": [213, 232, 233], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 49, "column": 61}}, {"id": 213, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts", "parent": 212, "children": [214, 228, 230, 231], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 49, "column": 57}}, {"id": 214, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 213, "children": [215, 219, 221, 222, 224], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 49, "column": 33}}, {"id": 215, "type": "binary_expression", "text": "template<typename", "parent": 214, "children": [216, 217, 218], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 19}}, {"id": 216, "type": "identifier", "text": "template", "parent": 215, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 217, "type": "<", "text": "<", "parent": 215, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 11}}, {"id": 218, "type": "identifier", "text": "typename", "parent": 215, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 19}}, {"id": 219, "type": "ERROR", "text": "... Concepts", "parent": 214, "children": [220], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 32}}, {"id": 220, "type": "identifier", "text": "Concepts", "parent": 219, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 32}}, {"id": 221, "type": ">", "text": ">", "parent": 214, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 33}}, {"id": 222, "type": "ERROR", "text": "using", "parent": 214, "children": [223], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 223, "type": "identifier", "text": "using", "parent": 222, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 7}}, {"id": 224, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 214, "children": [225, 226, 227], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 33}}, {"id": 225, "type": "identifier", "text": "Dependencies", "parent": 224, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 20}}, {"id": 226, "type": "=", "text": "=", "parent": 224, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 227, "type": "identifier", "text": "Dependency", "parent": 224, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 33}}, {"id": 228, "type": "ERROR", "text": "::WorkloadAware", "parent": 213, "children": [229], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 48}}, {"id": 229, "type": "identifier", "text": "WorkloadAware", "parent": 228, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 48}}, {"id": 230, "type": "<", "text": "<", "parent": 213, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 49}}, {"id": 231, "type": "identifier", "text": "Concepts", "parent": 213, "children": [], "start_point": {"row": 49, "column": 49}, "end_point": {"row": 49, "column": 57}}, {"id": 232, "type": ">", "text": ">", "parent": 212, "children": [], "start_point": {"row": 49, "column": 60}, "end_point": {"row": 49, "column": 61}}, {"id": 233, "type": "identifier", "text": "", "parent": 212, "children": [], "start_point": {"row": 49, "column": 61}, "end_point": {"row": 49, "column": 61}}, {"id": 234, "type": "ERROR", "text": "template<>", "parent": 9, "children": [235, 236, 237], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 10}}, {"id": 235, "type": "identifier", "text": "template", "parent": 234, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 236, "type": "<", "text": "<", "parent": 234, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 237, "type": ">", "text": ">", "parent": 234, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 238, "type": "function_definition", "text": "struct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return \"binlpt\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n}", "parent": 9, "children": [239, 242, 245, 246], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 239, "type": "struct_specifier", "text": "struct SchedulerTraits", "parent": 238, "children": [240, 241], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 22}}, {"id": 240, "type": "struct", "text": "struct", "parent": 239, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 241, "type": "type_identifier", "text": "SchedulerTraits", "parent": 239, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 22}}, {"id": 242, "type": "ERROR", "text": "<SchedulerEnum::", "parent": 238, "children": [243, 244], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 38}}, {"id": 243, "type": "<", "text": "<", "parent": 242, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 23}}, {"id": 244, "type": "identifier", "text": "SchedulerEnum", "parent": 242, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 36}}, {"id": 245, "type": "identifier", "text": "binlpt", "parent": 238, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 44}}, {"id": 246, "type": "ERROR", "text": ">", "parent": 238, "children": [247], "start_point": {"row": 53, "column": 44}, "end_point": {"row": 53, "column": 45}}, {"id": 247, "type": ">", "text": ">", "parent": 246, "children": [], "start_point": {"row": 53, "column": 44}, "end_point": {"row": 53, "column": 45}}, {"id": 248, "type": "function_definition", "text": "static std::string name() { return \"binlpt\"; }", "parent": 238, "children": [249, 250, 252], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 48}}, {"id": 249, "type": "type_identifier", "text": "std", "parent": 248, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 12}}, {"id": 250, "type": "ERROR", "text": "::string", "parent": 248, "children": [251], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 251, "type": "identifier", "text": "string", "parent": 250, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 20}}, {"id": 252, "type": "function_declarator", "text": "name()", "parent": 248, "children": [253, 254], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 27}}, {"id": 253, "type": "identifier", "text": "name", "parent": 252, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 25}}, {"id": 254, "type": "parameter_list", "text": "()", "parent": 252, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 27}}, {"id": 255, "type": "return_statement", "text": "return \"binlpt\";", "parent": 248, "children": [256], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 46}}, {"id": 256, "type": "string_literal", "text": "\"binlpt\"", "parent": 255, "children": [], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 54, "column": 45}}, {"id": 257, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>", "parent": 238, "children": [258, 277, 278], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 57, "column": 66}}, {"id": 258, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts", "parent": 257, "children": [259, 273, 275, 276], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 57, "column": 62}}, {"id": 259, "type": "binary_expression", "text": "template<typename ... Concepts>\n using Dependencies = Dependency", "parent": 258, "children": [260, 264, 266, 267, 269], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 57, "column": 33}}, {"id": 260, "type": "binary_expression", "text": "template<typename", "parent": 259, "children": [261, 262, 263], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 19}}, {"id": 261, "type": "identifier", "text": "template", "parent": 260, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 10}}, {"id": 262, "type": "<", "text": "<", "parent": 260, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 11}}, {"id": 263, "type": "identifier", "text": "typename", "parent": 260, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 19}}, {"id": 264, "type": "ERROR", "text": "... Concepts", "parent": 259, "children": [265], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 32}}, {"id": 265, "type": "identifier", "text": "Concepts", "parent": 264, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 32}}, {"id": 266, "type": ">", "text": ">", "parent": 259, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 33}}, {"id": 267, "type": "ERROR", "text": "using", "parent": 259, "children": [268], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 268, "type": "identifier", "text": "using", "parent": 267, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 269, "type": "assignment_expression", "text": "Dependencies = Dependency", "parent": 259, "children": [270, 271, 272], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 33}}, {"id": 270, "type": "identifier", "text": "Dependencies", "parent": 269, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 20}}, {"id": 271, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 272, "type": "identifier", "text": "Dependency", "parent": 269, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 33}}, {"id": 273, "type": "ERROR", "text": "::WorkloadAwareWithK", "parent": 258, "children": [274], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 53}}, {"id": 274, "type": "identifier", "text": "WorkloadAwareWithK", "parent": 273, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 53}}, {"id": 275, "type": "<", "text": "<", "parent": 258, "children": [], "start_point": {"row": 57, "column": 53}, "end_point": {"row": 57, "column": 54}}, {"id": 276, "type": "identifier", "text": "Concepts", "parent": 258, "children": [], "start_point": {"row": 57, "column": 54}, "end_point": {"row": 57, "column": 62}}, {"id": 277, "type": ">", "text": ">", "parent": 257, "children": [], "start_point": {"row": 57, "column": 65}, "end_point": {"row": 57, "column": 66}}, {"id": 278, "type": "identifier", "text": "", "parent": 257, "children": [], "start_point": {"row": 57, "column": 66}, "end_point": {"row": 57, "column": 66}}]}, "node_categories": {"declarations": {"functions": [9, 23, 27, 58, 68, 72, 103, 113, 117, 148, 158, 162, 193, 203, 207, 238, 248, 252], "variables": [], "classes": [59, 60, 104, 105, 149, 150, 194, 195, 239, 240], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [13, 14, 32, 33, 34, 35, 77, 78, 79, 80, 122, 123, 124, 125, 167, 168, 169, 170, 212, 213, 214, 215, 257, 258, 259, 260], "assignments": [44, 89, 134, 179, 224, 269], "loops": [], "conditionals": [10, 11, 15, 17, 19, 21, 22, 24, 26, 28, 36, 38, 40, 43, 45, 47, 49, 51, 53, 55, 61, 64, 65, 69, 71, 73, 81, 83, 85, 88, 90, 92, 94, 96, 98, 100, 106, 109, 110, 114, 116, 118, 126, 128, 130, 133, 135, 137, 139, 141, 143, 145, 151, 154, 155, 159, 161, 163, 171, 173, 175, 178, 180, 182, 184, 186, 188, 190, 196, 199, 200, 204, 206, 208, 216, 218, 220, 223, 225, 227, 229, 231, 233, 235, 241, 244, 245, 249, 251, 253, 261, 263, 265, 268, 270, 272, 274, 276, 278], "returns": [30, 75, 120, 165, 210, 255], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 31, 76, 121, 166, 211, 256], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "SchedulerTraits", "text_snippet": "namespace MOGSLib {\n\n/**\n * @brief This template structures are meant to be used to hold static data"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"unimplemented\"; }"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}, {"node_id": 58, "universal_type": "function", "name": "SchedulerTraits<SchedulerEnum::round_robin>", "text_snippet": "struct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return \"roundrobi"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"roundrobin\"; }"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}, {"node_id": 103, "universal_type": "function", "name": "SchedulerTraits<SchedulerEnum::compact>", "text_snippet": "struct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return \"compact\"; }\n\n"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"compact\"; }"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}, {"node_id": 148, "universal_type": "function", "name": "SchedulerTraits<SchedulerEnum::task_pack>", "text_snippet": "struct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return \"taskpack\"; "}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"taskpack\"; }"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}, {"node_id": 193, "universal_type": "function", "name": "SchedulerTraits<SchedulerEnum::greedy>", "text_snippet": "struct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return \"greedy\"; }\n\n "}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"greedy\"; }"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}, {"node_id": 238, "universal_type": "function", "name": "SchedulerTraits<SchedulerEnum::binlpt>", "text_snippet": "struct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return \"binlpt\"; }\n\n "}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "static std::string name() { return \"binlpt\"; }"}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": "name()"}], "class_declarations": [{"node_id": 59, "universal_type": "class", "name": "SchedulerTraits", "text_snippet": "struct SchedulerTraits"}, {"node_id": 60, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 104, "universal_type": "class", "name": "SchedulerTraits", "text_snippet": "struct SchedulerTraits"}, {"node_id": 105, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 149, "universal_type": "class", "name": "SchedulerTraits", "text_snippet": "struct SchedulerTraits"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 194, "universal_type": "class", "name": "SchedulerTraits", "text_snippet": "struct SchedulerTraits"}, {"node_id": 195, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 239, "universal_type": "class", "name": "SchedulerTraits", "text_snippet": "struct SchedulerTraits"}, {"node_id": 240, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <system/types.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <dependencies/workload_aware.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <system/types.h>\n\n#include <dependencies/workload_aware.h>\n\nnamespace MOGSLib {\n\n/**\n * @brief This template structures are meant to be used to hold static data about the schedulers.\n * @details The only required trait to be informed in these structures is the name of the scheduler. This is meant to be able to chose the scheduler during runtime.\n */\ntemplate<SchedulerEnum T>\nstruct SchedulerTraits {\n static std::string name() { return \"unimplemented\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::MinimalDependencies<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::round_robin> {\n static std::string name() { return \"roundrobin\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::compact> {\n static std::string name() { return \"compact\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::task_pack> {\n static std::string name() { return \"taskpack\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::greedy> {\n static std::string name() { return \"greedy\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAware<Concepts...>;\n};\n\ntemplate<>\nstruct SchedulerTraits<SchedulerEnum::binlpt> {\n static std::string name() { return \"binlpt\"; }\n\n template<typename ... Concepts>\n using Dependencies = Dependency::WorkloadAwareWithK<Concepts...>;\n};\n\n}"}
124
c
/** @file Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef PCIE_DEVICE_CONFIG_HII_H_ #define PCIE_DEVICE_CONFIG_HII_H_ #define PCIE_DEVICE_CONFIG_FORMSET_GUID \ { \ 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \ } extern EFI_GUID gPcieDeviceConfigFormSetGuid; #endif /* PCIE_DEVICE_CONFIG_HII_H_ */
22.79
19
(translation_unit) "/** @file \n \n Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.<BR> \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#ifndef PCIE_DEVICE_CONFIG_HII_H_ \n#define PCIE_DEVICE_CONFIG_HII_H_ \n \n#define PCIE_DEVICE_CONFIG_FORMSET_GUID \ \n { \ \n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \ \n } \n \nextern EFI_GUID gPcieDeviceConfigFormSetGuid; \n \n#endif /* PCIE_DEVICE_CONFIG_HII_H_ */ \n" (comment) "/** @file \n \n Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.<BR> \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/" (preproc_ifdef) "#ifndef PCIE_DEVICE_CONFIG_HII_H_ \n#define PCIE_DEVICE_CONFIG_HII_H_ \n \n#define PCIE_DEVICE_CONFIG_FORMSET_GUID \ \n { \ \n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \ \n } \n \nextern EFI_GUID gPcieDeviceConfigFormSetGuid; \n \n#endif" (#ifndef) "#ifndef" (identifier) "PCIE_DEVICE_CONFIG_HII_H_" (preproc_def) "#define PCIE_DEVICE_CONFIG_HII_H_ \n" (#define) "#define" (identifier) "PCIE_DEVICE_CONFIG_HII_H_" (preproc_def) "#define PCIE_DEVICE_CONFIG_FORMSET_GUID \ \n { \ \n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \ \n } \n" (#define) "#define" (identifier) "PCIE_DEVICE_CONFIG_FORMSET_GUID" (preproc_arg) "{ \ \n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \ \n } " (declaration) "extern EFI_GUID gPcieDeviceConfigFormSetGuid;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "EFI_GUID" (identifier) "gPcieDeviceConfigFormSetGuid" (;) ";" (#endif) "#endif" (comment) "/* PCIE_DEVICE_CONFIG_HII_H_ */"
20
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.79, "nodes": 16, "errors": 0, "source_hash": "31bda170434080776d9c370345ed41e298642961d20fb05b82e8af0f8df58ced", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PCIE_DEVICE_CONFIG_HII_H_\r\n#define PCIE_DEVICE_CONFIG_HII_H_\r\n\r\n#define PCIE_DEVICE_CONFIG_FORMSET_GUID \\\r\n { \\\r\n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \\\r\n }\r\n\r\nextern EFI_GUID gPcieDeviceConfigFormSetGuid;\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 18, "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": "PCIE_DEVICE_CONFIG_HII_H_", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define PCIE_DEVICE_CONFIG_HII_H_\r\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": "PCIE_DEVICE_CONFIG_HII_H_", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 33}}, {"id": 6, "type": "preproc_def", "text": "#define PCIE_DEVICE_CONFIG_FORMSET_GUID \\\r\n { \\\r\n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \\\r\n }\r\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 8, "type": "identifier", "text": "PCIE_DEVICE_CONFIG_FORMSET_GUID", "parent": 6, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 39}}, {"id": 9, "type": "preproc_arg", "text": "{ \\\r\n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \\\r\n }\r", "parent": 6, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 14, "column": 4}}, {"id": 10, "type": "declaration", "text": "extern EFI_GUID gPcieDeviceConfigFormSetGuid;", "parent": 0, "children": [11, 13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 45}}, {"id": 11, "type": "storage_class_specifier", "text": "extern", "parent": 10, "children": [12], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 12, "type": "extern", "text": "extern", "parent": 11, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 13, "type": "type_identifier", "text": "EFI_GUID", "parent": 10, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 15}}, {"id": 14, "type": "identifier", "text": "gPcieDeviceConfigFormSetGuid", "parent": 10, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 44}}, {"id": 15, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [10], "classes": [11], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 13, 14, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/** @file\r\n\r\n Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.<BR>\r\n\r\n SPDX-License-Identifier: BSD-2-Clause-Patent\r\n\r\n**/\r\n\r\n#ifndef PCIE_DEVICE_CONFIG_HII_H_\r\n#define PCIE_DEVICE_CONFIG_HII_H_\r\n\r\n#define PCIE_DEVICE_CONFIG_FORMSET_GUID \\\r\n { \\\r\n 0xEC7B1D21, 0x9167, 0x4B9D, { 0xF7, 0x94, 0xCD, 0x1A, 0xEB, 0xBC, 0xB7, 0x59 } \\\r\n }\r\n\r\nextern EFI_GUID gPcieDeviceConfigFormSetGuid;\r\n\r\n#endif /* PCIE_DEVICE_CONFIG_HII_H_ */\r\n"}
125
c
#pragma once #include <bal/hw/io.h> #include <bal/hw/mem.h>
19
3
(translation_unit) "#pragma once\n\n#include <bal/hw/io.h>\n#include <bal/hw/mem.h>\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <bal/hw/io.h>\n" (#include) "#include" (system_lib_string) "<bal/hw/io.h>" (preproc_include) "#include <bal/hw/mem.h>\n" (#include) "#include" (system_lib_string) "<bal/hw/mem.h>"
10
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 19.0, "nodes": 9, "errors": 0, "source_hash": "d5e51c9812f40d26ce2bbc84d6740e3077d53590089ceaa7463ff7aa42b6298c", "categorized_nodes": 7}, "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 <bal/hw/io.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": "<bal/hw/io.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <bal/hw/mem.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<bal/hw/mem.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 23}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <bal/hw/io.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <bal/hw/mem.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <bal/hw/io.h>\n#include <bal/hw/mem.h>\n"}
126
c
#ifndef SynthPatch1_H #define SynthPatch1_H #include "Synth.h" #include "Modules.h" //#include "ModuleExternalInput.h" class SynthPatch1 : public Synth { public: ModuleConstant param[8]; SynthPatch1() { //Define Node Objects ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc(); moduleWavetableOsc_1->frequency_input= &param[0]; moduleWavetableOsc_1->wavetable_input= &param[1]; this->last_module = moduleWavetableOsc_1; } }; #endif // SynthPatch1_H /* This is espnode86 stuff do not edit --BEGINESPNODEPATCH-- <KEY> --ENDESPNODEPATCH-- */
21.07
27
(translation_unit) "#ifndef SynthPatch1_H\n#define SynthPatch1_H\n#include "Synth.h"\n#include "Modules.h"\n//#include "ModuleExternalInput.h"\n\n\nclass SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n};\n#endif // SynthPatch1_H \n\n/* \n\nThis is espnode86 stuff do not edit\n\n--BEGINESPNODEPATCH--\n<KEY>\n--ENDESPNODEPATCH--\n\n*/\n\n" (preproc_ifdef) "#ifndef SynthPatch1_H\n#define SynthPatch1_H\n#include "Synth.h"\n#include "Modules.h"\n//#include "ModuleExternalInput.h"\n\n\nclass SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n};\n#endif" (#ifndef) "#ifndef" (identifier) "SynthPatch1_H" (preproc_def) "#define SynthPatch1_H\n" (#define) "#define" (identifier) "SynthPatch1_H" (preproc_include) "#include "Synth.h"\n" (#include) "#include" (string_literal) ""Synth.h"" (") """ (string_content) "Synth.h" (") """ (preproc_include) "#include "Modules.h"\n" (#include) "#include" (string_literal) ""Modules.h"" (") """ (string_content) "Modules.h" (") """ (comment) "//#include "ModuleExternalInput.h"" (function_definition) "class SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n}" (type_identifier) "class" (identifier) "SynthPatch1" (ERROR) ": public Synth" (:) ":" (identifier) "public" (identifier) "Synth" (compound_statement) "{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n}" ({) "{" (labeled_statement) "public:\n ModuleConstant param[8];" (statement_identifier) "public" (:) ":" (declaration) "ModuleConstant param[8];" (type_identifier) "ModuleConstant" (array_declarator) "param[8]" (identifier) "param" ([) "[" (number_literal) "8" (]) "]" (;) ";" (expression_statement) "SynthPatch1()" (call_expression) "SynthPatch1()" (identifier) "SynthPatch1" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }" ({) "{" (comment) "//Define Node Objects" (declaration) "ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();" (type_identifier) "ModuleWavetableOsc" (init_declarator) "*moduleWavetableOsc_1 = new ModuleWavetableOsc()" (pointer_declarator) "*moduleWavetableOsc_1" (*) "*" (identifier) "moduleWavetableOsc_1" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "ModuleWavetableOsc()" (identifier) "ModuleWavetableOsc" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "moduleWavetableOsc_1->frequency_input= &param[0];" (assignment_expression) "moduleWavetableOsc_1->frequency_input= &param[0]" (field_expression) "moduleWavetableOsc_1->frequency_input" (identifier) "moduleWavetableOsc_1" (->) "->" (field_identifier) "frequency_input" (=) "=" (pointer_expression) "&param[0]" (&) "&" (subscript_expression) "param[0]" (identifier) "param" ([) "[" (number_literal) "0" (]) "]" (;) ";" (expression_statement) "moduleWavetableOsc_1->wavetable_input= &param[1];" (assignment_expression) "moduleWavetableOsc_1->wavetable_input= &param[1]" (field_expression) "moduleWavetableOsc_1->wavetable_input" (identifier) "moduleWavetableOsc_1" (->) "->" (field_identifier) "wavetable_input" (=) "=" (pointer_expression) "&param[1]" (&) "&" (subscript_expression) "param[1]" (identifier) "param" ([) "[" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "this->last_module = moduleWavetableOsc_1;" (assignment_expression) "this->last_module = moduleWavetableOsc_1" (field_expression) "this->last_module" (identifier) "this" (->) "->" (field_identifier) "last_module" (=) "=" (identifier) "moduleWavetableOsc_1" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// SynthPatch1_H " (comment) "/* \n\nThis is espnode86 stuff do not edit\n\n--BEGINESPNODEPATCH--\n<KEY>\n--ENDESPNODEPATCH--\n\n*/"
111
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 21.07, "nodes": 60, "errors": 0, "source_hash": "c2846a13afecacadf963a5773d10ba84a6aed70fc205f01660bb60cf16e69777", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SynthPatch1_H\n#define SynthPatch1_H\n#include \"Synth.h\"\n#include \"Modules.h\"\n//#include \"ModuleExternalInput.h\"\n\n\nclass SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n};\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 59], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 27, "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": "SynthPatch1_H", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define SynthPatch1_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": "SynthPatch1_H", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"Synth.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": "\"Synth.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"Modules.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": "\"Modules.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 12, "type": "function_definition", "text": "class SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 13, "type": "identifier", "text": "SynthPatch1", "parent": 12, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 17}}, {"id": 14, "type": "ERROR", "text": ": public Synth", "parent": 12, "children": [15], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 32}}, {"id": 15, "type": "identifier", "text": "Synth", "parent": 14, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 32}}, {"id": 16, "type": "labeled_statement", "text": "public:\n ModuleConstant param[8];", "parent": 12, "children": [17], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 12, "column": 28}}, {"id": 17, "type": "declaration", "text": "ModuleConstant param[8];", "parent": 16, "children": [18, 19], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 28}}, {"id": 18, "type": "type_identifier", "text": "ModuleConstant", "parent": 17, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 18}}, {"id": 19, "type": "array_declarator", "text": "param[8]", "parent": 17, "children": [20, 21], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 27}}, {"id": 20, "type": "identifier", "text": "param", "parent": 19, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 24}}, {"id": 21, "type": "number_literal", "text": "8", "parent": 19, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 26}}, {"id": 22, "type": "call_expression", "text": "SynthPatch1()", "parent": 12, "children": [23, 24], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 17}}, {"id": 23, "type": "identifier", "text": "SynthPatch1", "parent": 22, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 24, "type": "argument_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 17}}, {"id": 25, "type": "declaration", "text": "ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();", "parent": 12, "children": [26, 27], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 70}}, {"id": 26, "type": "type_identifier", "text": "ModuleWavetableOsc", "parent": 25, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 20}}, {"id": 27, "type": "init_declarator", "text": "*moduleWavetableOsc_1 = new ModuleWavetableOsc()", "parent": 25, "children": [28, 31, 32], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 69}}, {"id": 28, "type": "pointer_declarator", "text": "*moduleWavetableOsc_1", "parent": 27, "children": [29, 30], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 42}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 30, "type": "identifier", "text": "moduleWavetableOsc_1", "parent": 28, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 42}}, {"id": 31, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 44}}, {"id": 32, "type": "call_expression", "text": "ModuleWavetableOsc()", "parent": 27, "children": [33, 34], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 69}}, {"id": 33, "type": "identifier", "text": "ModuleWavetableOsc", "parent": 32, "children": [], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 67}}, {"id": 34, "type": "argument_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 17, "column": 67}, "end_point": {"row": 17, "column": 69}}, {"id": 35, "type": "assignment_expression", "text": "moduleWavetableOsc_1->frequency_input= &param[0]", "parent": 12, "children": [36, 39, 40], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 50}}, {"id": 36, "type": "field_expression", "text": "moduleWavetableOsc_1->frequency_input", "parent": 35, "children": [37, 38], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 39}}, {"id": 37, "type": "identifier", "text": "moduleWavetableOsc_1", "parent": 36, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 22}}, {"id": 38, "type": "field_identifier", "text": "frequency_input", "parent": 36, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 39}}, {"id": 39, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 40}}, {"id": 40, "type": "pointer_expression", "text": "&param[0]", "parent": 35, "children": [41], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 50}}, {"id": 41, "type": "subscript_expression", "text": "param[0]", "parent": 40, "children": [42, 43], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 50}}, {"id": 42, "type": "identifier", "text": "param", "parent": 41, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 47}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 41, "children": [], "start_point": {"row": 19, "column": 48}, "end_point": {"row": 19, "column": 49}}, {"id": 44, "type": "assignment_expression", "text": "moduleWavetableOsc_1->wavetable_input= &param[1]", "parent": 12, "children": [45, 48, 49], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 50}}, {"id": 45, "type": "field_expression", "text": "moduleWavetableOsc_1->wavetable_input", "parent": 44, "children": [46, 47], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 39}}, {"id": 46, "type": "identifier", "text": "moduleWavetableOsc_1", "parent": 45, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 22}}, {"id": 47, "type": "field_identifier", "text": "wavetable_input", "parent": 45, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 39}}, {"id": 48, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 40}}, {"id": 49, "type": "pointer_expression", "text": "&param[1]", "parent": 44, "children": [50], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 50}}, {"id": 50, "type": "subscript_expression", "text": "param[1]", "parent": 49, "children": [51, 52], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 50}}, {"id": 51, "type": "identifier", "text": "param", "parent": 50, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 47}}, {"id": 52, "type": "number_literal", "text": "1", "parent": 50, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 49}}, {"id": 53, "type": "assignment_expression", "text": "this->last_module = moduleWavetableOsc_1", "parent": 12, "children": [54, 57, 58], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 42}}, {"id": 54, "type": "field_expression", "text": "this->last_module", "parent": 53, "children": [55, 56], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 19}}, {"id": 55, "type": "identifier", "text": "this", "parent": 54, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 56, "type": "field_identifier", "text": "last_module", "parent": 54, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 19}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 21}}, {"id": 58, "type": "identifier", "text": "moduleWavetableOsc_1", "parent": 53, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 42}}, {"id": 59, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [17, 25], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [22, 32, 36, 40, 41, 45, 49, 50, 54], "assignments": [35, 44, 53], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 18, 20, 23, 26, 30, 33, 37, 38, 42, 46, 47, 51, 55, 56, 58, 59], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 21, 43, 52], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "SynthPatch1", "text_snippet": "class SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Synth.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Modules.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "\n\n#ifndef SynthPatch1_H\n#define SynthPatch1_H\n#include \"Synth.h\"\n#include \"Modules.h\"\n//#include \"ModuleExternalInput.h\"\n\n\nclass SynthPatch1 : public Synth\n{\n public:\n ModuleConstant param[8];\n\n SynthPatch1()\n {\n //Define Node Objects\n ModuleWavetableOsc *moduleWavetableOsc_1 = new ModuleWavetableOsc();\n\n moduleWavetableOsc_1->frequency_input= &param[0];\n moduleWavetableOsc_1->wavetable_input= &param[1];\n\n\n this->last_module = moduleWavetableOsc_1;\n\n }\n};\n#endif // SynthPatch1_H \n\n/* \n\nThis is espnode86 stuff do not edit\n\n--BEGINESPNODEPATCH--\n<KEY>\n--ENDESPNODEPATCH--\n\n*/\n\n"}
127
c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2015 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. * Copyright (c) 2013 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2014 Research Organization for Information Science * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "ompi_config.h" #include "coll_basic.h" #include "mpi.h" #include "ompi/constants.h" #include "ompi/datatype/ompi_datatype.h" #include "ompi/mca/coll/coll.h" #include "ompi/mca/coll/base/coll_tags.h" #include "ompi/mca/pml/pml.h" /* * alltoall_inter * * Function: - MPI_Alltoall * Accepts: - same as MPI_Alltoall() * Returns: - MPI_SUCCESS or an MPI error code */ int mca_coll_basic_alltoall_inter(void *sbuf, int scount, struct ompi_datatype_t *sdtype, void *rbuf, int rcount, struct ompi_datatype_t *rdtype, struct ompi_communicator_t *comm, mca_coll_base_module_t *module) { int i; int size; int err; int nreqs; char *psnd; char *prcv; MPI_Aint lb; MPI_Aint sndinc; MPI_Aint rcvinc; ompi_request_t **req; ompi_request_t **sreq; ompi_request_t **rreq; mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module; /* Initialize. */ size = ompi_comm_remote_size(comm); err = ompi_datatype_get_extent(sdtype, &lb, &sndinc); if (OMPI_SUCCESS != err) { return err; } sndinc *= scount; err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc); if (OMPI_SUCCESS != err) { return err; } rcvinc *= rcount; /* Initiate all send/recv to/from others. */ nreqs = size * 2; req = rreq = basic_module->mccb_reqs; sreq = rreq + size; prcv = (char *) rbuf; psnd = (char *) sbuf; /* Post all receives first */ for (i = 0; i < size; i++, ++rreq) { err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i, MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq)); if (OMPI_SUCCESS != err) { return err; } } /* Now post all sends */ for (i = 0; i < size; i++, ++sreq) { err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i, MCA_COLL_BASE_TAG_ALLTOALL, MCA_PML_BASE_SEND_STANDARD, comm, sreq)); if (OMPI_SUCCESS != err) { return err; } } /* Wait for them all. If there's an error, note that we don't * care what the error was -- just that there *was* an error. The * PML will finish all requests, even if one or more of them fail. * i.e., by the end of this call, all the requests are free-able. * So free them anyway -- even if there was an error, and return * the error after we free everything. */ err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE); /* All done */ return err; }
35.21
104
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */\n/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2015 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2013 Los Alamos National Security, LLC. All rights\n * reserved.\n * Copyright (c) 2014 Research Organization for Information Science\n * and Technology (RIST). All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */\n\n#include "ompi_config.h"\n#include "coll_basic.h"\n\n#include "mpi.h"\n#include "ompi/constants.h"\n#include "ompi/datatype/ompi_datatype.h"\n#include "ompi/mca/coll/coll.h"\n#include "ompi/mca/coll/base/coll_tags.h"\n#include "ompi/mca/pml/pml.h"\n\n\n/*\n * alltoall_inter\n *\n * Function: - MPI_Alltoall \n * Accepts: - same as MPI_Alltoall()\n * Returns: - MPI_SUCCESS or an MPI error code\n */\nint\nmca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)\n{\n int i;\n int size;\n int err;\n int nreqs;\n char *psnd;\n char *prcv;\n MPI_Aint lb;\n MPI_Aint sndinc;\n MPI_Aint rcvinc;\n\n ompi_request_t **req;\n ompi_request_t **sreq;\n ompi_request_t **rreq;\n\n mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;\n\n /* Initialize. */\n\n size = ompi_comm_remote_size(comm);\n\n err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n sndinc *= scount;\n\n err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n rcvinc *= rcount;\n\n /* Initiate all send/recv to/from others. */\n nreqs = size * 2;\n req = rreq = basic_module->mccb_reqs;\n sreq = rreq + size;\n\n prcv = (char *) rbuf;\n psnd = (char *) sbuf;\n\n /* Post all receives first */\n for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Now post all sends */\n for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */\n err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);\n\n /* All done */\n return err;\n}\n" (comment) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */" (comment) "/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2015 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2013 Los Alamos National Security, LLC. All rights\n * reserved.\n * Copyright (c) 2014 Research Organization for Information Science\n * and Technology (RIST). All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */" (preproc_include) "#include "ompi_config.h"\n" (#include) "#include" (string_literal) ""ompi_config.h"" (") """ (string_content) "ompi_config.h" (") """ (preproc_include) "#include "coll_basic.h"\n" (#include) "#include" (string_literal) ""coll_basic.h"" (") """ (string_content) "coll_basic.h" (") """ (preproc_include) "#include "mpi.h"\n" (#include) "#include" (string_literal) ""mpi.h"" (") """ (string_content) "mpi.h" (") """ (preproc_include) "#include "ompi/constants.h"\n" (#include) "#include" (string_literal) ""ompi/constants.h"" (") """ (string_content) "ompi/constants.h" (") """ (preproc_include) "#include "ompi/datatype/ompi_datatype.h"\n" (#include) "#include" (string_literal) ""ompi/datatype/ompi_datatype.h"" (") """ (string_content) "ompi/datatype/ompi_datatype.h" (") """ (preproc_include) "#include "ompi/mca/coll/coll.h"\n" (#include) "#include" (string_literal) ""ompi/mca/coll/coll.h"" (") """ (string_content) "ompi/mca/coll/coll.h" (") """ (preproc_include) "#include "ompi/mca/coll/base/coll_tags.h"\n" (#include) "#include" (string_literal) ""ompi/mca/coll/base/coll_tags.h"" (") """ (string_content) "ompi/mca/coll/base/coll_tags.h" (") """ (preproc_include) "#include "ompi/mca/pml/pml.h"\n" (#include) "#include" (string_literal) ""ompi/mca/pml/pml.h"" (") """ (string_content) "ompi/mca/pml/pml.h" (") """ (comment) "/*\n * alltoall_inter\n *\n * Function: - MPI_Alltoall \n * Accepts: - same as MPI_Alltoall()\n * Returns: - MPI_SUCCESS or an MPI error code\n */" (function_definition) "int\nmca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)\n{\n int i;\n int size;\n int err;\n int nreqs;\n char *psnd;\n char *prcv;\n MPI_Aint lb;\n MPI_Aint sndinc;\n MPI_Aint rcvinc;\n\n ompi_request_t **req;\n ompi_request_t **sreq;\n ompi_request_t **rreq;\n\n mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;\n\n /* Initialize. */\n\n size = ompi_comm_remote_size(comm);\n\n err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n sndinc *= scount;\n\n err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n rcvinc *= rcount;\n\n /* Initiate all send/recv to/from others. */\n nreqs = size * 2;\n req = rreq = basic_module->mccb_reqs;\n sreq = rreq + size;\n\n prcv = (char *) rbuf;\n psnd = (char *) sbuf;\n\n /* Post all receives first */\n for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Now post all sends */\n for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */\n err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);\n\n /* All done */\n return err;\n}" (primitive_type) "int" (function_declarator) "mca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)" (identifier) "mca_coll_basic_alltoall_inter" (parameter_list) "(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)" (() "(" (parameter_declaration) "void *sbuf" (primitive_type) "void" (pointer_declarator) "*sbuf" (*) "*" (identifier) "sbuf" (,) "," (parameter_declaration) "int scount" (primitive_type) "int" (identifier) "scount" (,) "," (parameter_declaration) "struct ompi_datatype_t *sdtype" (struct_specifier) "struct ompi_datatype_t" (struct) "struct" (type_identifier) "ompi_datatype_t" (pointer_declarator) "*sdtype" (*) "*" (identifier) "sdtype" (,) "," (parameter_declaration) "void *rbuf" (primitive_type) "void" (pointer_declarator) "*rbuf" (*) "*" (identifier) "rbuf" (,) "," (parameter_declaration) "int rcount" (primitive_type) "int" (identifier) "rcount" (,) "," (parameter_declaration) "struct ompi_datatype_t *rdtype" (struct_specifier) "struct ompi_datatype_t" (struct) "struct" (type_identifier) "ompi_datatype_t" (pointer_declarator) "*rdtype" (*) "*" (identifier) "rdtype" (,) "," (parameter_declaration) "struct ompi_communicator_t *comm" (struct_specifier) "struct ompi_communicator_t" (struct) "struct" (type_identifier) "ompi_communicator_t" (pointer_declarator) "*comm" (*) "*" (identifier) "comm" (,) "," (parameter_declaration) "mca_coll_base_module_t *module" (type_identifier) "mca_coll_base_module_t" (pointer_declarator) "*module" (*) "*" (identifier) "module" ()) ")" (compound_statement) "{\n int i;\n int size;\n int err;\n int nreqs;\n char *psnd;\n char *prcv;\n MPI_Aint lb;\n MPI_Aint sndinc;\n MPI_Aint rcvinc;\n\n ompi_request_t **req;\n ompi_request_t **sreq;\n ompi_request_t **rreq;\n\n mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;\n\n /* Initialize. */\n\n size = ompi_comm_remote_size(comm);\n\n err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n sndinc *= scount;\n\n err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n rcvinc *= rcount;\n\n /* Initiate all send/recv to/from others. */\n nreqs = size * 2;\n req = rreq = basic_module->mccb_reqs;\n sreq = rreq + size;\n\n prcv = (char *) rbuf;\n psnd = (char *) sbuf;\n\n /* Post all receives first */\n for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Now post all sends */\n for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */\n err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);\n\n /* All done */\n return err;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int size;" (primitive_type) "int" (identifier) "size" (;) ";" (declaration) "int err;" (primitive_type) "int" (identifier) "err" (;) ";" (declaration) "int nreqs;" (primitive_type) "int" (identifier) "nreqs" (;) ";" (declaration) "char *psnd;" (primitive_type) "char" (pointer_declarator) "*psnd" (*) "*" (identifier) "psnd" (;) ";" (declaration) "char *prcv;" (primitive_type) "char" (pointer_declarator) "*prcv" (*) "*" (identifier) "prcv" (;) ";" (declaration) "MPI_Aint lb;" (type_identifier) "MPI_Aint" (identifier) "lb" (;) ";" (declaration) "MPI_Aint sndinc;" (type_identifier) "MPI_Aint" (identifier) "sndinc" (;) ";" (declaration) "MPI_Aint rcvinc;" (type_identifier) "MPI_Aint" (identifier) "rcvinc" (;) ";" (declaration) "ompi_request_t **req;" (type_identifier) "ompi_request_t" (pointer_declarator) "**req" (*) "*" (pointer_declarator) "*req" (*) "*" (identifier) "req" (;) ";" (declaration) "ompi_request_t **sreq;" (type_identifier) "ompi_request_t" (pointer_declarator) "**sreq" (*) "*" (pointer_declarator) "*sreq" (*) "*" (identifier) "sreq" (;) ";" (declaration) "ompi_request_t **rreq;" (type_identifier) "ompi_request_t" (pointer_declarator) "**rreq" (*) "*" (pointer_declarator) "*rreq" (*) "*" (identifier) "rreq" (;) ";" (declaration) "mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;" (type_identifier) "mca_coll_basic_module_t" (init_declarator) "*basic_module = (mca_coll_basic_module_t*) module" (pointer_declarator) "*basic_module" (*) "*" (identifier) "basic_module" (=) "=" (cast_expression) "(mca_coll_basic_module_t*) module" (() "(" (type_descriptor) "mca_coll_basic_module_t*" (type_identifier) "mca_coll_basic_module_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "module" (;) ";" (comment) "/* Initialize. */" (expression_statement) "size = ompi_comm_remote_size(comm);" (assignment_expression) "size = ompi_comm_remote_size(comm)" (identifier) "size" (=) "=" (call_expression) "ompi_comm_remote_size(comm)" (identifier) "ompi_comm_remote_size" (argument_list) "(comm)" (() "(" (identifier) "comm" ()) ")" (;) ";" (expression_statement) "err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);" (assignment_expression) "err = ompi_datatype_get_extent(sdtype, &lb, &sndinc)" (identifier) "err" (=) "=" (call_expression) "ompi_datatype_get_extent(sdtype, &lb, &sndinc)" (identifier) "ompi_datatype_get_extent" (argument_list) "(sdtype, &lb, &sndinc)" (() "(" (identifier) "sdtype" (,) "," (pointer_expression) "&lb" (&) "&" (identifier) "lb" (,) "," (pointer_expression) "&sndinc" (&) "&" (identifier) "sndinc" ()) ")" (;) ";" (if_statement) "if (OMPI_SUCCESS != err) {\n return err;\n }" (if) "if" (parenthesized_expression) "(OMPI_SUCCESS != err)" (() "(" (binary_expression) "OMPI_SUCCESS != err" (identifier) "OMPI_SUCCESS" (!=) "!=" (identifier) "err" ()) ")" (compound_statement) "{\n return err;\n }" ({) "{" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (}) "}" (expression_statement) "sndinc *= scount;" (assignment_expression) "sndinc *= scount" (identifier) "sndinc" (*=) "*=" (identifier) "scount" (;) ";" (expression_statement) "err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);" (assignment_expression) "err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc)" (identifier) "err" (=) "=" (call_expression) "ompi_datatype_get_extent(rdtype, &lb, &rcvinc)" (identifier) "ompi_datatype_get_extent" (argument_list) "(rdtype, &lb, &rcvinc)" (() "(" (identifier) "rdtype" (,) "," (pointer_expression) "&lb" (&) "&" (identifier) "lb" (,) "," (pointer_expression) "&rcvinc" (&) "&" (identifier) "rcvinc" ()) ")" (;) ";" (if_statement) "if (OMPI_SUCCESS != err) {\n return err;\n }" (if) "if" (parenthesized_expression) "(OMPI_SUCCESS != err)" (() "(" (binary_expression) "OMPI_SUCCESS != err" (identifier) "OMPI_SUCCESS" (!=) "!=" (identifier) "err" ()) ")" (compound_statement) "{\n return err;\n }" ({) "{" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (}) "}" (expression_statement) "rcvinc *= rcount;" (assignment_expression) "rcvinc *= rcount" (identifier) "rcvinc" (*=) "*=" (identifier) "rcount" (;) ";" (comment) "/* Initiate all send/recv to/from others. */" (expression_statement) "nreqs = size * 2;" (assignment_expression) "nreqs = size * 2" (identifier) "nreqs" (=) "=" (binary_expression) "size * 2" (identifier) "size" (*) "*" (number_literal) "2" (;) ";" (expression_statement) "req = rreq = basic_module->mccb_reqs;" (assignment_expression) "req = rreq = basic_module->mccb_reqs" (identifier) "req" (=) "=" (assignment_expression) "rreq = basic_module->mccb_reqs" (identifier) "rreq" (=) "=" (field_expression) "basic_module->mccb_reqs" (identifier) "basic_module" (->) "->" (field_identifier) "mccb_reqs" (;) ";" (expression_statement) "sreq = rreq + size;" (assignment_expression) "sreq = rreq + size" (identifier) "sreq" (=) "=" (binary_expression) "rreq + size" (identifier) "rreq" (+) "+" (identifier) "size" (;) ";" (expression_statement) "prcv = (char *) rbuf;" (assignment_expression) "prcv = (char *) rbuf" (identifier) "prcv" (=) "=" (cast_expression) "(char *) rbuf" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "rbuf" (;) ";" (expression_statement) "psnd = (char *) sbuf;" (assignment_expression) "psnd = (char *) sbuf" (identifier) "psnd" (=) "=" (cast_expression) "(char *) sbuf" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "sbuf" (;) ";" (comment) "/* Post all receives first */" (for_statement) "for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < size" (identifier) "i" (<) "<" (identifier) "size" (;) ";" (comma_expression) "i++, ++rreq" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "++rreq" (++) "++" (identifier) "rreq" ()) ")" (compound_statement) "{\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }" ({) "{" (expression_statement) "err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));" (assignment_expression) "err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))" (identifier) "err" (=) "=" (call_expression) "MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))" (identifier) "MCA_PML_CALL" (argument_list) "(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))" (() "(" (call_expression) "irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq)" (identifier) "irecv" (argument_list) "(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq)" (() "(" (binary_expression) "prcv + (i * rcvinc)" (identifier) "prcv" (+) "+" (parenthesized_expression) "(i * rcvinc)" (() "(" (binary_expression) "i * rcvinc" (identifier) "i" (*) "*" (identifier) "rcvinc" ()) ")" (,) "," (identifier) "rcount" (,) "," (identifier) "rdtype" (,) "," (identifier) "i" (,) "," (identifier) "MCA_COLL_BASE_TAG_ALLTOALL" (,) "," (identifier) "comm" (,) "," (identifier) "rreq" ()) ")" ()) ")" (;) ";" (if_statement) "if (OMPI_SUCCESS != err) {\n return err;\n }" (if) "if" (parenthesized_expression) "(OMPI_SUCCESS != err)" (() "(" (binary_expression) "OMPI_SUCCESS != err" (identifier) "OMPI_SUCCESS" (!=) "!=" (identifier) "err" ()) ")" (compound_statement) "{\n return err;\n }" ({) "{" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (}) "}" (}) "}" (comment) "/* Now post all sends */" (for_statement) "for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < size" (identifier) "i" (<) "<" (identifier) "size" (;) ";" (comma_expression) "i++, ++sreq" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "++sreq" (++) "++" (identifier) "sreq" ()) ")" (compound_statement) "{\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }" ({) "{" (expression_statement) "err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));" (assignment_expression) "err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))" (identifier) "err" (=) "=" (call_expression) "MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))" (identifier) "MCA_PML_CALL" (argument_list) "(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))" (() "(" (call_expression) "isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq)" (identifier) "isend" (argument_list) "(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq)" (() "(" (binary_expression) "psnd + (i * sndinc)" (identifier) "psnd" (+) "+" (parenthesized_expression) "(i * sndinc)" (() "(" (binary_expression) "i * sndinc" (identifier) "i" (*) "*" (identifier) "sndinc" ()) ")" (,) "," (identifier) "scount" (,) "," (identifier) "sdtype" (,) "," (identifier) "i" (,) "," (identifier) "MCA_COLL_BASE_TAG_ALLTOALL" (,) "," (identifier) "MCA_PML_BASE_SEND_STANDARD" (,) "," (identifier) "comm" (,) "," (identifier) "sreq" ()) ")" ()) ")" (;) ";" (if_statement) "if (OMPI_SUCCESS != err) {\n return err;\n }" (if) "if" (parenthesized_expression) "(OMPI_SUCCESS != err)" (() "(" (binary_expression) "OMPI_SUCCESS != err" (identifier) "OMPI_SUCCESS" (!=) "!=" (identifier) "err" ()) ")" (compound_statement) "{\n return err;\n }" ({) "{" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (}) "}" (}) "}" (comment) "/* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */" (expression_statement) "err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);" (assignment_expression) "err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE)" (identifier) "err" (=) "=" (call_expression) "ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE)" (identifier) "ompi_request_wait_all" (argument_list) "(nreqs, req, MPI_STATUSES_IGNORE)" (() "(" (identifier) "nreqs" (,) "," (identifier) "req" (,) "," (identifier) "MPI_STATUSES_IGNORE" ()) ")" (;) ";" (comment) "/* All done */" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (}) "}"
523
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 35.21, "nodes": 336, "errors": 0, "source_hash": "bcea5fa4800fb639f4b43d0cd4e11484ecd55953c67a71e71fa9a01248524545", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"ompi_config.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": "string_literal", "text": "\"ompi_config.h\"", "parent": 0, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 24}}, {"id": 3, "type": "preproc_include", "text": "#include \"coll_basic.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"coll_basic.h\"", "parent": 3, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"mpi.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"mpi.h\"", "parent": 6, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"ompi/constants.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": "\"ompi/constants.h\"", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include \"ompi/datatype/ompi_datatype.h\"\n", "parent": null, "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": "\"ompi/datatype/ompi_datatype.h\"", "parent": 12, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 40}}, {"id": 15, "type": "preproc_include", "text": "#include \"ompi/mca/coll/coll.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"ompi/mca/coll/coll.h\"", "parent": 15, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 31}}, {"id": 18, "type": "preproc_include", "text": "#include \"ompi/mca/coll/base/coll_tags.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"ompi/mca/coll/base/coll_tags.h\"", "parent": 18, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 41}}, {"id": 21, "type": "preproc_include", "text": "#include \"ompi/mca/pml/pml.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"ompi/mca/pml/pml.h\"", "parent": 21, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 29}}, {"id": 24, "type": "function_definition", "text": "int\nmca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)\n{\n int i;\n int size;\n int err;\n int nreqs;\n char *psnd;\n char *prcv;\n MPI_Aint lb;\n MPI_Aint sndinc;\n MPI_Aint rcvinc;\n\n ompi_request_t **req;\n ompi_request_t **sreq;\n ompi_request_t **rreq;\n\n mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;\n\n /* Initialize. */\n\n size = ompi_comm_remote_size(comm);\n\n err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n sndinc *= scount;\n\n err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n rcvinc *= rcount;\n\n /* Initiate all send/recv to/from others. */\n nreqs = size * 2;\n req = rreq = basic_module->mccb_reqs;\n sreq = rreq + size;\n\n prcv = (char *) rbuf;\n psnd = (char *) sbuf;\n\n /* Post all receives first */\n for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Now post all sends */\n for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */\n err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);\n\n /* All done */\n return err;\n}", "parent": null, "children": [25, 26], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 118, "column": 1}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 3}}, {"id": 26, "type": "function_declarator", "text": "mca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)", "parent": 24, "children": [27, 28], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 47, "column": 61}}, {"id": 27, "type": "identifier", "text": "mca_coll_basic_alltoall_inter", "parent": 26, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 29}}, {"id": 28, "type": "parameter_list", "text": "(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)", "parent": 26, "children": [29, 34, 37, 44, 49, 52, 59, 66], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 47, "column": 61}}, {"id": 29, "type": "parameter_declaration", "text": "void *sbuf", "parent": 28, "children": [30, 31], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 40}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 34}}, {"id": 31, "type": "pointer_declarator", "text": "*sbuf", "parent": 29, "children": [32, 33], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 40}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 36}}, {"id": 33, "type": "identifier", "text": "sbuf", "parent": 31, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 40}}, {"id": 34, "type": "parameter_declaration", "text": "int scount", "parent": 28, "children": [35, 36], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 52}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 45}}, {"id": 36, "type": "identifier", "text": "scount", "parent": 34, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 52}}, {"id": 37, "type": "parameter_declaration", "text": "struct ompi_datatype_t *sdtype", "parent": 28, "children": [38, 41], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 60}}, {"id": 38, "type": "struct_specifier", "text": "struct ompi_datatype_t", "parent": 37, "children": [39, 40], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 52}}, {"id": 39, "type": "struct", "text": "struct", "parent": 38, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 36}}, {"id": 40, "type": "type_identifier", "text": "ompi_datatype_t", "parent": 38, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 52}}, {"id": 41, "type": "pointer_declarator", "text": "*sdtype", "parent": 37, "children": [42, 43], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 60}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 54}}, {"id": 43, "type": "identifier", "text": "sdtype", "parent": 41, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 60}}, {"id": 44, "type": "parameter_declaration", "text": "void *rbuf", "parent": 28, "children": [45, 46], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 40}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 34}}, {"id": 46, "type": "pointer_declarator", "text": "*rbuf", "parent": 44, "children": [47, 48], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 40}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 36}}, {"id": 48, "type": "identifier", "text": "rbuf", "parent": 46, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 40}}, {"id": 49, "type": "parameter_declaration", "text": "int rcount", "parent": 28, "children": [50, 51], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 52}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 45}}, {"id": 51, "type": "identifier", "text": "rcount", "parent": 49, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 52}}, {"id": 52, "type": "parameter_declaration", "text": "struct ompi_datatype_t *rdtype", "parent": 28, "children": [53, 56], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 60}}, {"id": 53, "type": "struct_specifier", "text": "struct ompi_datatype_t", "parent": 52, "children": [54, 55], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 52}}, {"id": 54, "type": "struct", "text": "struct", "parent": 53, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 36}}, {"id": 55, "type": "type_identifier", "text": "ompi_datatype_t", "parent": 53, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 52}}, {"id": 56, "type": "pointer_declarator", "text": "*rdtype", "parent": 52, "children": [57, 58], "start_point": {"row": 45, "column": 53}, "end_point": {"row": 45, "column": 60}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 45, "column": 53}, "end_point": {"row": 45, "column": 54}}, {"id": 58, "type": "identifier", "text": "rdtype", "parent": 56, "children": [], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 60}}, {"id": 59, "type": "parameter_declaration", "text": "struct ompi_communicator_t *comm", "parent": 28, "children": [60, 63], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 62}}, {"id": 60, "type": "struct_specifier", "text": "struct ompi_communicator_t", "parent": 59, "children": [61, 62], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 56}}, {"id": 61, "type": "struct", "text": "struct", "parent": 60, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 36}}, {"id": 62, "type": "type_identifier", "text": "ompi_communicator_t", "parent": 60, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 56}}, {"id": 63, "type": "pointer_declarator", "text": "*comm", "parent": 59, "children": [64, 65], "start_point": {"row": 46, "column": 57}, "end_point": {"row": 46, "column": 62}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 46, "column": 57}, "end_point": {"row": 46, "column": 58}}, {"id": 65, "type": "identifier", "text": "comm", "parent": 63, "children": [], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 62}}, {"id": 66, "type": "parameter_declaration", "text": "mca_coll_base_module_t *module", "parent": 28, "children": [67, 68], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 60}}, {"id": 67, "type": "type_identifier", "text": "mca_coll_base_module_t", "parent": 66, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 52}}, {"id": 68, "type": "pointer_declarator", "text": "*module", "parent": 66, "children": [69, 70], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 60}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 54}}, {"id": 70, "type": "identifier", "text": "module", "parent": 68, "children": [], "start_point": {"row": 47, "column": 54}, "end_point": {"row": 47, "column": 60}}, {"id": 71, "type": "declaration", "text": "int i;", "parent": 24, "children": [72, 73], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 7}}, {"id": 73, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 9}}, {"id": 74, "type": "declaration", "text": "int size;", "parent": 24, "children": [75, 76], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 13}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 7}}, {"id": 76, "type": "identifier", "text": "size", "parent": 74, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 12}}, {"id": 77, "type": "declaration", "text": "int err;", "parent": 24, "children": [78, 79], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 12}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 7}}, {"id": 79, "type": "identifier", "text": "err", "parent": 77, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 80, "type": "declaration", "text": "int nreqs;", "parent": 24, "children": [81, 82], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 14}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 80, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 82, "type": "identifier", "text": "nreqs", "parent": 80, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 13}}, {"id": 83, "type": "declaration", "text": "char *psnd;", "parent": 24, "children": [84, 85], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 15}}, {"id": 84, "type": "primitive_type", "text": "char", "parent": 83, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 85, "type": "pointer_declarator", "text": "*psnd", "parent": 83, "children": [86, 87], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 14}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 87, "type": "identifier", "text": "psnd", "parent": 85, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 14}}, {"id": 88, "type": "declaration", "text": "char *prcv;", "parent": 24, "children": [89, 90], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 15}}, {"id": 89, "type": "primitive_type", "text": "char", "parent": 88, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 90, "type": "pointer_declarator", "text": "*prcv", "parent": 88, "children": [91, 92], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 14}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 10}}, {"id": 92, "type": "identifier", "text": "prcv", "parent": 90, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 14}}, {"id": 93, "type": "declaration", "text": "MPI_Aint lb;", "parent": 24, "children": [94, 95], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 16}}, {"id": 94, "type": "type_identifier", "text": "MPI_Aint", "parent": 93, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 12}}, {"id": 95, "type": "identifier", "text": "lb", "parent": 93, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 15}}, {"id": 96, "type": "declaration", "text": "MPI_Aint sndinc;", "parent": 24, "children": [97, 98], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 20}}, {"id": 97, "type": "type_identifier", "text": "MPI_Aint", "parent": 96, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 12}}, {"id": 98, "type": "identifier", "text": "sndinc", "parent": 96, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 19}}, {"id": 99, "type": "declaration", "text": "MPI_Aint rcvinc;", "parent": 24, "children": [100, 101], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 20}}, {"id": 100, "type": "type_identifier", "text": "MPI_Aint", "parent": 99, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 12}}, {"id": 101, "type": "identifier", "text": "rcvinc", "parent": 99, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 19}}, {"id": 102, "type": "declaration", "text": "ompi_request_t **req;", "parent": 24, "children": [103, 104], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 25}}, {"id": 103, "type": "type_identifier", "text": "ompi_request_t", "parent": 102, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 18}}, {"id": 104, "type": "pointer_declarator", "text": "**req", "parent": 102, "children": [105, 106], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 24}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 106, "type": "pointer_declarator", "text": "*req", "parent": 104, "children": [107, 108], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 24}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 21}}, {"id": 108, "type": "identifier", "text": "req", "parent": 106, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 24}}, {"id": 109, "type": "declaration", "text": "ompi_request_t **sreq;", "parent": 24, "children": [110, 111], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 26}}, {"id": 110, "type": "type_identifier", "text": "ompi_request_t", "parent": 109, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 18}}, {"id": 111, "type": "pointer_declarator", "text": "**sreq", "parent": 109, "children": [112, 113], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 25}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 113, "type": "pointer_declarator", "text": "*sreq", "parent": 111, "children": [114, 115], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 25}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 115, "type": "identifier", "text": "sreq", "parent": 113, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 25}}, {"id": 116, "type": "declaration", "text": "ompi_request_t **rreq;", "parent": 24, "children": [117, 118], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 26}}, {"id": 117, "type": "type_identifier", "text": "ompi_request_t", "parent": 116, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 18}}, {"id": 118, "type": "pointer_declarator", "text": "**rreq", "parent": 116, "children": [119, 120], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 25}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 120, "type": "pointer_declarator", "text": "*rreq", "parent": 118, "children": [121, 122], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 25}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 122, "type": "identifier", "text": "rreq", "parent": 120, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 25}}, {"id": 123, "type": "declaration", "text": "mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;", "parent": 24, "children": [124, 125], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 78}}, {"id": 124, "type": "type_identifier", "text": "mca_coll_basic_module_t", "parent": 123, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 27}}, {"id": 125, "type": "init_declarator", "text": "*basic_module = (mca_coll_basic_module_t*) module", "parent": 123, "children": [126, 129, 130], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 77}}, {"id": 126, "type": "pointer_declarator", "text": "*basic_module", "parent": 125, "children": [127, 128], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 41}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 29}}, {"id": 128, "type": "identifier", "text": "basic_module", "parent": 126, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 41}}, {"id": 129, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 43}}, {"id": 130, "type": "cast_expression", "text": "(mca_coll_basic_module_t*) module", "parent": 125, "children": [131, 135], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 77}}, {"id": 131, "type": "type_descriptor", "text": "mca_coll_basic_module_t*", "parent": 130, "children": [132, 133], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 69}}, {"id": 132, "type": "type_identifier", "text": "mca_coll_basic_module_t", "parent": 131, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 68}}, {"id": 133, "type": "abstract_pointer_declarator", "text": "*", "parent": 131, "children": [134], "start_point": {"row": 63, "column": 68}, "end_point": {"row": 63, "column": 69}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 63, "column": 68}, "end_point": {"row": 63, "column": 69}}, {"id": 135, "type": "identifier", "text": "module", "parent": 130, "children": [], "start_point": {"row": 63, "column": 71}, "end_point": {"row": 63, "column": 77}}, {"id": 136, "type": "assignment_expression", "text": "size = ompi_comm_remote_size(comm)", "parent": 24, "children": [137, 138, 139], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 38}}, {"id": 137, "type": "identifier", "text": "size", "parent": 136, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 8}}, {"id": 138, "type": "=", "text": "=", "parent": 136, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 139, "type": "call_expression", "text": "ompi_comm_remote_size(comm)", "parent": 136, "children": [140, 141], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 38}}, {"id": 140, "type": "identifier", "text": "ompi_comm_remote_size", "parent": 139, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 32}}, {"id": 141, "type": "argument_list", "text": "(comm)", "parent": 139, "children": [142], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 38}}, {"id": 142, "type": "identifier", "text": "comm", "parent": 141, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 37}}, {"id": 143, "type": "assignment_expression", "text": "err = ompi_datatype_get_extent(sdtype, &lb, &sndinc)", "parent": 24, "children": [144, 145, 146], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 56}}, {"id": 144, "type": "identifier", "text": "err", "parent": 143, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 7}}, {"id": 145, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 146, "type": "call_expression", "text": "ompi_datatype_get_extent(sdtype, &lb, &sndinc)", "parent": 143, "children": [147, 148], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 56}}, {"id": 147, "type": "identifier", "text": "ompi_datatype_get_extent", "parent": 146, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 34}}, {"id": 148, "type": "argument_list", "text": "(sdtype, &lb, &sndinc)", "parent": 146, "children": [149, 150, 152], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 56}}, {"id": 149, "type": "identifier", "text": "sdtype", "parent": 148, "children": [], "start_point": {"row": 69, "column": 35}, "end_point": {"row": 69, "column": 41}}, {"id": 150, "type": "pointer_expression", "text": "&lb", "parent": 148, "children": [151], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 46}}, {"id": 151, "type": "identifier", "text": "lb", "parent": 150, "children": [], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 46}}, {"id": 152, "type": "pointer_expression", "text": "&sndinc", "parent": 148, "children": [153], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 55}}, {"id": 153, "type": "identifier", "text": "sndinc", "parent": 152, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 55}}, {"id": 154, "type": "if_statement", "text": "if (OMPI_SUCCESS != err) {\n return err;\n }", "parent": 24, "children": [155], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 155, "type": "parenthesized_expression", "text": "(OMPI_SUCCESS != err)", "parent": 154, "children": [156], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 28}}, {"id": 156, "type": "binary_expression", "text": "OMPI_SUCCESS != err", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 27}}, {"id": 157, "type": "identifier", "text": "OMPI_SUCCESS", "parent": 156, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 20}}, {"id": 158, "type": "!=", "text": "!=", "parent": 156, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 23}}, {"id": 159, "type": "identifier", "text": "err", "parent": 156, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 27}}, {"id": 160, "type": "return_statement", "text": "return err;", "parent": 154, "children": [161], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 19}}, {"id": 161, "type": "identifier", "text": "err", "parent": 160, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 18}}, {"id": 162, "type": "assignment_expression", "text": "sndinc *= scount", "parent": 24, "children": [163, 164, 165], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 20}}, {"id": 163, "type": "identifier", "text": "sndinc", "parent": 162, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 10}}, {"id": 164, "type": "*=", "text": "*=", "parent": 162, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 13}}, {"id": 165, "type": "identifier", "text": "scount", "parent": 162, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 20}}, {"id": 166, "type": "assignment_expression", "text": "err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc)", "parent": 24, "children": [167, 168, 169], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 56}}, {"id": 167, "type": "identifier", "text": "err", "parent": 166, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 7}}, {"id": 168, "type": "=", "text": "=", "parent": 166, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 169, "type": "call_expression", "text": "ompi_datatype_get_extent(rdtype, &lb, &rcvinc)", "parent": 166, "children": [170, 171], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 56}}, {"id": 170, "type": "identifier", "text": "ompi_datatype_get_extent", "parent": 169, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 34}}, {"id": 171, "type": "argument_list", "text": "(rdtype, &lb, &rcvinc)", "parent": 169, "children": [172, 173, 175], "start_point": {"row": 75, "column": 34}, "end_point": {"row": 75, "column": 56}}, {"id": 172, "type": "identifier", "text": "rdtype", "parent": 171, "children": [], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 41}}, {"id": 173, "type": "pointer_expression", "text": "&lb", "parent": 171, "children": [174], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 46}}, {"id": 174, "type": "identifier", "text": "lb", "parent": 173, "children": [], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 46}}, {"id": 175, "type": "pointer_expression", "text": "&rcvinc", "parent": 171, "children": [176], "start_point": {"row": 75, "column": 48}, "end_point": {"row": 75, "column": 55}}, {"id": 176, "type": "identifier", "text": "rcvinc", "parent": 175, "children": [], "start_point": {"row": 75, "column": 49}, "end_point": {"row": 75, "column": 55}}, {"id": 177, "type": "if_statement", "text": "if (OMPI_SUCCESS != err) {\n return err;\n }", "parent": 24, "children": [178], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 78, "column": 5}}, {"id": 178, "type": "parenthesized_expression", "text": "(OMPI_SUCCESS != err)", "parent": 177, "children": [179], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 28}}, {"id": 179, "type": "binary_expression", "text": "OMPI_SUCCESS != err", "parent": 178, "children": [180, 181, 182], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 27}}, {"id": 180, "type": "identifier", "text": "OMPI_SUCCESS", "parent": 179, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 20}}, {"id": 181, "type": "!=", "text": "!=", "parent": 179, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 23}}, {"id": 182, "type": "identifier", "text": "err", "parent": 179, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 27}}, {"id": 183, "type": "return_statement", "text": "return err;", "parent": 177, "children": [184], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 19}}, {"id": 184, "type": "identifier", "text": "err", "parent": 183, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 18}}, {"id": 185, "type": "assignment_expression", "text": "rcvinc *= rcount", "parent": 24, "children": [186, 187, 188], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 20}}, {"id": 186, "type": "identifier", "text": "rcvinc", "parent": 185, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 10}}, {"id": 187, "type": "*=", "text": "*=", "parent": 185, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 13}}, {"id": 188, "type": "identifier", "text": "rcount", "parent": 185, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 20}}, {"id": 189, "type": "assignment_expression", "text": "nreqs = size * 2", "parent": 24, "children": [190, 191, 192], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 20}}, {"id": 190, "type": "identifier", "text": "nreqs", "parent": 189, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 9}}, {"id": 191, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 192, "type": "binary_expression", "text": "size * 2", "parent": 189, "children": [193, 194, 195], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 20}}, {"id": 193, "type": "identifier", "text": "size", "parent": 192, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 16}}, {"id": 194, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 195, "type": "number_literal", "text": "2", "parent": 192, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 196, "type": "assignment_expression", "text": "req = rreq = basic_module->mccb_reqs", "parent": 24, "children": [197, 198, 199], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 40}}, {"id": 197, "type": "identifier", "text": "req", "parent": 196, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 7}}, {"id": 198, "type": "=", "text": "=", "parent": 196, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 9}}, {"id": 199, "type": "assignment_expression", "text": "rreq = basic_module->mccb_reqs", "parent": 196, "children": [200, 201, 202], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 40}}, {"id": 200, "type": "identifier", "text": "rreq", "parent": 199, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 14}}, {"id": 201, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 16}}, {"id": 202, "type": "field_expression", "text": "basic_module->mccb_reqs", "parent": 199, "children": [203, 204], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 40}}, {"id": 203, "type": "identifier", "text": "basic_module", "parent": 202, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 29}}, {"id": 204, "type": "field_identifier", "text": "mccb_reqs", "parent": 202, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 40}}, {"id": 205, "type": "assignment_expression", "text": "sreq = rreq + size", "parent": 24, "children": [206, 207, 208], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 22}}, {"id": 206, "type": "identifier", "text": "sreq", "parent": 205, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 207, "type": "=", "text": "=", "parent": 205, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 10}}, {"id": 208, "type": "binary_expression", "text": "rreq + size", "parent": 205, "children": [209, 210, 211], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 22}}, {"id": 209, "type": "identifier", "text": "rreq", "parent": 208, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 15}}, {"id": 210, "type": "+", "text": "+", "parent": 208, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 17}}, {"id": 211, "type": "identifier", "text": "size", "parent": 208, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 22}}, {"id": 212, "type": "assignment_expression", "text": "prcv = (char *) rbuf", "parent": 24, "children": [213, 214, 215], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 24}}, {"id": 213, "type": "identifier", "text": "prcv", "parent": 212, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 10}}, {"id": 215, "type": "cast_expression", "text": "(char *) rbuf", "parent": 212, "children": [216, 220], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 24}}, {"id": 216, "type": "type_descriptor", "text": "char *", "parent": 215, "children": [217, 218], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 18}}, {"id": 217, "type": "primitive_type", "text": "char", "parent": 216, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 16}}, {"id": 218, "type": "abstract_pointer_declarator", "text": "*", "parent": 216, "children": [219], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 18}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 18}}, {"id": 220, "type": "identifier", "text": "rbuf", "parent": 215, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 24}}, {"id": 221, "type": "assignment_expression", "text": "psnd = (char *) sbuf", "parent": 24, "children": [222, 223, 224], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 24}}, {"id": 222, "type": "identifier", "text": "psnd", "parent": 221, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 8}}, {"id": 223, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 10}}, {"id": 224, "type": "cast_expression", "text": "(char *) sbuf", "parent": 221, "children": [225, 229], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 24}}, {"id": 225, "type": "type_descriptor", "text": "char *", "parent": 224, "children": [226, 227], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 18}}, {"id": 226, "type": "primitive_type", "text": "char", "parent": 225, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 16}}, {"id": 227, "type": "abstract_pointer_declarator", "text": "*", "parent": 225, "children": [228], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 18}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 18}}, {"id": 229, "type": "identifier", "text": "sbuf", "parent": 224, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 24}}, {"id": 230, "type": "for_statement", "text": "for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }", "parent": 24, "children": [231, 235, 239], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 96, "column": 5}}, {"id": 231, "type": "assignment_expression", "text": "i = 0", "parent": 230, "children": [232, 233, 234], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 14}}, {"id": 232, "type": "identifier", "text": "i", "parent": 231, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 233, "type": "=", "text": "=", "parent": 231, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 235, "type": "binary_expression", "text": "i < size", "parent": 230, "children": [236, 237, 238], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 24}}, {"id": 236, "type": "identifier", "text": "i", "parent": 235, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 17}}, {"id": 237, "type": "<", "text": "<", "parent": 235, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 19}}, {"id": 238, "type": "identifier", "text": "size", "parent": 235, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 24}}, {"id": 239, "type": "comma_expression", "text": "i++, ++rreq", "parent": 230, "children": [240, 243], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 37}}, {"id": 240, "type": "update_expression", "text": "i++", "parent": 239, "children": [241, 242], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 29}}, {"id": 241, "type": "identifier", "text": "i", "parent": 240, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 27}}, {"id": 242, "type": "++", "text": "++", "parent": 240, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 29}}, {"id": 243, "type": "update_expression", "text": "++rreq", "parent": 239, "children": [244, 245], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 37}}, {"id": 244, "type": "++", "text": "++", "parent": 243, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 33}}, {"id": 245, "type": "identifier", "text": "rreq", "parent": 243, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 37}}, {"id": 246, "type": "assignment_expression", "text": "err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))", "parent": 230, "children": [247, 248, 249], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 92, "column": 73}}, {"id": 247, "type": "identifier", "text": "err", "parent": 246, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 11}}, {"id": 248, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 13}}, {"id": 249, "type": "call_expression", "text": "MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))", "parent": 246, "children": [250, 251], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 92, "column": 73}}, {"id": 250, "type": "identifier", "text": "MCA_PML_CALL", "parent": 249, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 26}}, {"id": 251, "type": "argument_list", "text": "(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq))", "parent": 249, "children": [252], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 92, "column": 73}}, {"id": 252, "type": "call_expression", "text": "irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq)", "parent": 251, "children": [253, 254], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 92, "column": 72}}, {"id": 253, "type": "identifier", "text": "irecv", "parent": 252, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 32}}, {"id": 254, "type": "argument_list", "text": "(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq)", "parent": 252, "children": [255, 263, 264, 265, 266, 267, 268], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 92, "column": 72}}, {"id": 255, "type": "binary_expression", "text": "prcv + (i * rcvinc)", "parent": 254, "children": [256, 257, 258], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 52}}, {"id": 256, "type": "identifier", "text": "prcv", "parent": 255, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 37}}, {"id": 257, "type": "+", "text": "+", "parent": 255, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 39}}, {"id": 258, "type": "parenthesized_expression", "text": "(i * rcvinc)", "parent": 255, "children": [259], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 52}}, {"id": 259, "type": "binary_expression", "text": "i * rcvinc", "parent": 258, "children": [260, 261, 262], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 51}}, {"id": 260, "type": "identifier", "text": "i", "parent": 259, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 42}}, {"id": 261, "type": "*", "text": "*", "parent": 259, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 44}}, {"id": 262, "type": "identifier", "text": "rcvinc", "parent": 259, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 51}}, {"id": 263, "type": "identifier", "text": "rcount", "parent": 254, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 60}}, {"id": 264, "type": "identifier", "text": "rdtype", "parent": 254, "children": [], "start_point": {"row": 91, "column": 62}, "end_point": {"row": 91, "column": 68}}, {"id": 265, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 91, "column": 70}, "end_point": {"row": 91, "column": 71}}, {"id": 266, "type": "identifier", "text": "MCA_COLL_BASE_TAG_ALLTOALL", "parent": 254, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 59}}, {"id": 267, "type": "identifier", "text": "comm", "parent": 254, "children": [], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 65}}, {"id": 268, "type": "identifier", "text": "rreq", "parent": 254, "children": [], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 71}}, {"id": 269, "type": "if_statement", "text": "if (OMPI_SUCCESS != err) {\n return err;\n }", "parent": 230, "children": [270], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 270, "type": "parenthesized_expression", "text": "(OMPI_SUCCESS != err)", "parent": 269, "children": [271], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 32}}, {"id": 271, "type": "binary_expression", "text": "OMPI_SUCCESS != err", "parent": 270, "children": [272, 273, 274], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 31}}, {"id": 272, "type": "identifier", "text": "OMPI_SUCCESS", "parent": 271, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 24}}, {"id": 273, "type": "!=", "text": "!=", "parent": 271, "children": [], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 27}}, {"id": 274, "type": "identifier", "text": "err", "parent": 271, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 31}}, {"id": 275, "type": "return_statement", "text": "return err;", "parent": 269, "children": [276], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 23}}, {"id": 276, "type": "identifier", "text": "err", "parent": 275, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 22}}, {"id": 277, "type": "for_statement", "text": "for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }", "parent": 24, "children": [278, 282, 286], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 106, "column": 5}}, {"id": 278, "type": "assignment_expression", "text": "i = 0", "parent": 277, "children": [279, 280, 281], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 14}}, {"id": 279, "type": "identifier", "text": "i", "parent": 278, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 10}}, {"id": 280, "type": "=", "text": "=", "parent": 278, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 12}}, {"id": 281, "type": "number_literal", "text": "0", "parent": 278, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 282, "type": "binary_expression", "text": "i < size", "parent": 277, "children": [283, 284, 285], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 24}}, {"id": 283, "type": "identifier", "text": "i", "parent": 282, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 284, "type": "<", "text": "<", "parent": 282, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 19}}, {"id": 285, "type": "identifier", "text": "size", "parent": 282, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 24}}, {"id": 286, "type": "comma_expression", "text": "i++, ++sreq", "parent": 277, "children": [287, 290], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 37}}, {"id": 287, "type": "update_expression", "text": "i++", "parent": 286, "children": [288, 289], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 29}}, {"id": 288, "type": "identifier", "text": "i", "parent": 287, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 27}}, {"id": 289, "type": "++", "text": "++", "parent": 287, "children": [], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 29}}, {"id": 290, "type": "update_expression", "text": "++sreq", "parent": 286, "children": [291, 292], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 37}}, {"id": 291, "type": "++", "text": "++", "parent": 290, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 33}}, {"id": 292, "type": "identifier", "text": "sreq", "parent": 290, "children": [], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 37}}, {"id": 293, "type": "assignment_expression", "text": "err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))", "parent": 277, "children": [294, 295, 296], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 102, "column": 73}}, {"id": 294, "type": "identifier", "text": "err", "parent": 293, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 11}}, {"id": 295, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 13}}, {"id": 296, "type": "call_expression", "text": "MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))", "parent": 293, "children": [297, 298], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 102, "column": 73}}, {"id": 297, "type": "identifier", "text": "MCA_PML_CALL", "parent": 296, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 26}}, {"id": 298, "type": "argument_list", "text": "(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq))", "parent": 296, "children": [299], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 102, "column": 73}}, {"id": 299, "type": "call_expression", "text": "isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq)", "parent": 298, "children": [300, 301], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 102, "column": 72}}, {"id": 300, "type": "identifier", "text": "isend", "parent": 299, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 32}}, {"id": 301, "type": "argument_list", "text": "(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq)", "parent": 299, "children": [302, 310, 311, 312, 313, 314, 315, 316], "start_point": {"row": 100, "column": 32}, "end_point": {"row": 102, "column": 72}}, {"id": 302, "type": "binary_expression", "text": "psnd + (i * sndinc)", "parent": 301, "children": [303, 304, 305], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 52}}, {"id": 303, "type": "identifier", "text": "psnd", "parent": 302, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 37}}, {"id": 304, "type": "+", "text": "+", "parent": 302, "children": [], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 39}}, {"id": 305, "type": "parenthesized_expression", "text": "(i * sndinc)", "parent": 302, "children": [306], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 52}}, {"id": 306, "type": "binary_expression", "text": "i * sndinc", "parent": 305, "children": [307, 308, 309], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 51}}, {"id": 307, "type": "identifier", "text": "i", "parent": 306, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 42}}, {"id": 308, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 100, "column": 43}, "end_point": {"row": 100, "column": 44}}, {"id": 309, "type": "identifier", "text": "sndinc", "parent": 306, "children": [], "start_point": {"row": 100, "column": 45}, "end_point": {"row": 100, "column": 51}}, {"id": 310, "type": "identifier", "text": "scount", "parent": 301, "children": [], "start_point": {"row": 100, "column": 54}, "end_point": {"row": 100, "column": 60}}, {"id": 311, "type": "identifier", "text": "sdtype", "parent": 301, "children": [], "start_point": {"row": 100, "column": 62}, "end_point": {"row": 100, "column": 68}}, {"id": 312, "type": "identifier", "text": "i", "parent": 301, "children": [], "start_point": {"row": 100, "column": 70}, "end_point": {"row": 100, "column": 71}}, {"id": 313, "type": "identifier", "text": "MCA_COLL_BASE_TAG_ALLTOALL", "parent": 301, "children": [], "start_point": {"row": 101, "column": 33}, "end_point": {"row": 101, "column": 59}}, {"id": 314, "type": "identifier", "text": "MCA_PML_BASE_SEND_STANDARD", "parent": 301, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 59}}, {"id": 315, "type": "identifier", "text": "comm", "parent": 301, "children": [], "start_point": {"row": 102, "column": 61}, "end_point": {"row": 102, "column": 65}}, {"id": 316, "type": "identifier", "text": "sreq", "parent": 301, "children": [], "start_point": {"row": 102, "column": 67}, "end_point": {"row": 102, "column": 71}}, {"id": 317, "type": "if_statement", "text": "if (OMPI_SUCCESS != err) {\n return err;\n }", "parent": 277, "children": [318], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 318, "type": "parenthesized_expression", "text": "(OMPI_SUCCESS != err)", "parent": 317, "children": [319], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 32}}, {"id": 319, "type": "binary_expression", "text": "OMPI_SUCCESS != err", "parent": 318, "children": [320, 321, 322], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 31}}, {"id": 320, "type": "identifier", "text": "OMPI_SUCCESS", "parent": 319, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 24}}, {"id": 321, "type": "!=", "text": "!=", "parent": 319, "children": [], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 27}}, {"id": 322, "type": "identifier", "text": "err", "parent": 319, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 31}}, {"id": 323, "type": "return_statement", "text": "return err;", "parent": 317, "children": [324], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 23}}, {"id": 324, "type": "identifier", "text": "err", "parent": 323, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 22}}, {"id": 325, "type": "assignment_expression", "text": "err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE)", "parent": 24, "children": [326, 327, 328], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 64}}, {"id": 326, "type": "identifier", "text": "err", "parent": 325, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 7}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 9}}, {"id": 328, "type": "call_expression", "text": "ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE)", "parent": 325, "children": [329, 330], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 64}}, {"id": 329, "type": "identifier", "text": "ompi_request_wait_all", "parent": 328, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 31}}, {"id": 330, "type": "argument_list", "text": "(nreqs, req, MPI_STATUSES_IGNORE)", "parent": 328, "children": [331, 332, 333], "start_point": {"row": 114, "column": 31}, "end_point": {"row": 114, "column": 64}}, {"id": 331, "type": "identifier", "text": "nreqs", "parent": 330, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 37}}, {"id": 332, "type": "identifier", "text": "req", "parent": 330, "children": [], "start_point": {"row": 114, "column": 39}, "end_point": {"row": 114, "column": 42}}, {"id": 333, "type": "identifier", "text": "MPI_STATUSES_IGNORE", "parent": 330, "children": [], "start_point": {"row": 114, "column": 44}, "end_point": {"row": 114, "column": 63}}, {"id": 334, "type": "return_statement", "text": "return err;", "parent": 24, "children": [335], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 15}}, {"id": 335, "type": "identifier", "text": "err", "parent": 334, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 14}}]}, "node_categories": {"declarations": {"functions": [24, 26], "variables": [29, 34, 37, 44, 49, 52, 59, 66, 71, 74, 77, 80, 83, 88, 93, 96, 99, 102, 109, 116, 123], "classes": [38, 39, 53, 54, 60, 61], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [130, 139, 146, 150, 152, 155, 156, 169, 173, 175, 178, 179, 192, 202, 208, 215, 224, 235, 239, 240, 243, 249, 252, 255, 258, 259, 270, 271, 282, 286, 287, 290, 296, 299, 302, 305, 306, 318, 319, 328], "assignments": [136, 143, 162, 166, 185, 189, 196, 199, 205, 212, 221, 231, 246, 278, 293, 325], "loops": [230, 277], "conditionals": [27, 33, 36, 40, 43, 48, 51, 55, 58, 62, 65, 67, 70, 73, 76, 79, 82, 87, 92, 94, 95, 97, 98, 100, 101, 103, 108, 110, 115, 117, 122, 124, 128, 132, 135, 137, 140, 142, 144, 147, 149, 151, 153, 154, 157, 159, 161, 163, 165, 167, 170, 172, 174, 176, 177, 180, 182, 184, 186, 188, 190, 193, 197, 200, 203, 204, 206, 209, 211, 213, 220, 222, 229, 232, 236, 238, 241, 245, 247, 250, 253, 256, 260, 262, 263, 264, 265, 266, 267, 268, 269, 272, 274, 276, 279, 283, 285, 288, 292, 294, 297, 300, 303, 307, 309, 310, 311, 312, 313, 314, 315, 316, 317, 320, 322, 324, 326, 329, 331, 332, 333, 335], "returns": [160, 183, 275, 323, 334], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 195, 234, 281], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "mca_coll_basic_alltoall_inter", "text_snippet": "int\nmca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_"}, {"node_id": 26, "universal_type": "function", "name": "scount,", "text_snippet": "mca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_data"}], "class_declarations": [{"node_id": 38, "universal_type": "class", "name": "ompi_datatype_t", "text_snippet": "struct ompi_datatype_t"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 53, "universal_type": "class", "name": "ompi_datatype_t", "text_snippet": "struct ompi_datatype_t"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 60, "universal_type": "class", "name": "ompi_communicator_t", "text_snippet": "struct ompi_communicator_t"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"ompi_config.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"coll_basic.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"mpi.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"ompi/constants.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"ompi/datatype/ompi_datatype.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"ompi/mca/coll/coll.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"ompi/mca/coll/base/coll_tags.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"ompi/mca/pml/pml.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */\n/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2015 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2013 Los Alamos National Security, LLC. All rights\n * reserved.\n * Copyright (c) 2014 Research Organization for Information Science\n * and Technology (RIST). All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */\n\n#include \"ompi_config.h\"\n#include \"coll_basic.h\"\n\n#include \"mpi.h\"\n#include \"ompi/constants.h\"\n#include \"ompi/datatype/ompi_datatype.h\"\n#include \"ompi/mca/coll/coll.h\"\n#include \"ompi/mca/coll/base/coll_tags.h\"\n#include \"ompi/mca/pml/pml.h\"\n\n\n/*\n *\talltoall_inter\n *\n *\tFunction:\t- MPI_Alltoall \n *\tAccepts:\t- same as MPI_Alltoall()\n *\tReturns:\t- MPI_SUCCESS or an MPI error code\n */\nint\nmca_coll_basic_alltoall_inter(void *sbuf, int scount,\n struct ompi_datatype_t *sdtype,\n void *rbuf, int rcount,\n struct ompi_datatype_t *rdtype,\n struct ompi_communicator_t *comm,\n mca_coll_base_module_t *module)\n{\n int i;\n int size;\n int err;\n int nreqs;\n char *psnd;\n char *prcv;\n MPI_Aint lb;\n MPI_Aint sndinc;\n MPI_Aint rcvinc;\n\n ompi_request_t **req;\n ompi_request_t **sreq;\n ompi_request_t **rreq;\n\n mca_coll_basic_module_t *basic_module = (mca_coll_basic_module_t*) module;\n\n /* Initialize. */\n\n size = ompi_comm_remote_size(comm);\n\n err = ompi_datatype_get_extent(sdtype, &lb, &sndinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n sndinc *= scount;\n\n err = ompi_datatype_get_extent(rdtype, &lb, &rcvinc);\n if (OMPI_SUCCESS != err) {\n return err;\n }\n rcvinc *= rcount;\n\n /* Initiate all send/recv to/from others. */\n nreqs = size * 2;\n req = rreq = basic_module->mccb_reqs;\n sreq = rreq + size;\n\n prcv = (char *) rbuf;\n psnd = (char *) sbuf;\n\n /* Post all receives first */\n for (i = 0; i < size; i++, ++rreq) {\n err = MCA_PML_CALL(irecv(prcv + (i * rcvinc), rcount, rdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL, comm, rreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Now post all sends */\n for (i = 0; i < size; i++, ++sreq) {\n err = MCA_PML_CALL(isend(psnd + (i * sndinc), scount, sdtype, i,\n MCA_COLL_BASE_TAG_ALLTOALL,\n MCA_PML_BASE_SEND_STANDARD, comm, sreq));\n if (OMPI_SUCCESS != err) {\n return err;\n }\n }\n\n /* Wait for them all. If there's an error, note that we don't\n * care what the error was -- just that there *was* an error. The\n * PML will finish all requests, even if one or more of them fail.\n * i.e., by the end of this call, all the requests are free-able.\n * So free them anyway -- even if there was an error, and return\n * the error after we free everything. */\n err = ompi_request_wait_all(nreqs, req, MPI_STATUSES_IGNORE);\n\n /* All done */\n return err;\n}\n"}
128
c
/* * Copyright (c) 2020 ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group. */ #ifndef CLEANQ_IPCQ_H_ #define CLEANQ_IPCQ_H_ 1 #include <stdbool.h> #include <cleanq/cleanq.h> ///< forwrd declaration struct cleanq_ipcq; /** * @brief initialized a ipc descriptor queue * * @param q Return pointer to the descriptor queue * @param name Name of the memory use for sending/receiving messages * @param clear Clear the backing memory by zeroing * @param f Function pointers to be called on message recv * * @returns error on failure or CLEANQ_ERR_OK on success */ errval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear); #endif /* CLEANQ_IPCQ_H_ */
32.59
27
(translation_unit) "/*\n * Copyright (c) 2020 ETH Zurich.\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE file.\n * If you do not find this file, copies can be found by writing to:\n * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.\n */\n#ifndef CLEANQ_IPCQ_H_\n#define CLEANQ_IPCQ_H_ 1\n\n#include <stdbool.h>\n#include <cleanq/cleanq.h>\n\n///< forwrd declaration\nstruct cleanq_ipcq;\n\n\n/**\n * @brief initialized a ipc descriptor queue\n *\n * @param q Return pointer to the descriptor queue\n * @param name Name of the memory use for sending/receiving messages\n * @param clear Clear the backing memory by zeroing\n * @param f Function pointers to be called on message recv\n *\n * @returns error on failure or CLEANQ_ERR_OK on success\n */\n\nerrval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);\n\n#endif /* CLEANQ_IPCQ_H_ */\n" (comment) "/*\n * Copyright (c) 2020 ETH Zurich.\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE file.\n * If you do not find this file, copies can be found by writing to:\n * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.\n */" (preproc_ifdef) "#ifndef CLEANQ_IPCQ_H_\n#define CLEANQ_IPCQ_H_ 1\n\n#include <stdbool.h>\n#include <cleanq/cleanq.h>\n\n///< forwrd declaration\nstruct cleanq_ipcq;\n\n\n/**\n * @brief initialized a ipc descriptor queue\n *\n * @param q Return pointer to the descriptor queue\n * @param name Name of the memory use for sending/receiving messages\n * @param clear Clear the backing memory by zeroing\n * @param f Function pointers to be called on message recv\n *\n * @returns error on failure or CLEANQ_ERR_OK on success\n */\n\nerrval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);\n\n#endif" (#ifndef) "#ifndef" (identifier) "CLEANQ_IPCQ_H_" (preproc_def) "#define CLEANQ_IPCQ_H_ 1\n" (#define) "#define" (identifier) "CLEANQ_IPCQ_H_" (preproc_arg) "1" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <cleanq/cleanq.h>\n" (#include) "#include" (system_lib_string) "<cleanq/cleanq.h>" (comment) "///< forwrd declaration" (struct_specifier) "struct cleanq_ipcq" (struct) "struct" (type_identifier) "cleanq_ipcq" (;) ";" (comment) "/**\n * @brief initialized a ipc descriptor queue\n *\n * @param q Return pointer to the descriptor queue\n * @param name Name of the memory use for sending/receiving messages\n * @param clear Clear the backing memory by zeroing\n * @param f Function pointers to be called on message recv\n *\n * @returns error on failure or CLEANQ_ERR_OK on success\n */" (declaration) "errval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);" (type_identifier) "errval_t" (function_declarator) "cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear)" (identifier) "cleanq_ipcq_create" (parameter_list) "(struct cleanq_ipcq **q, char *name, bool clear)" (() "(" (parameter_declaration) "struct cleanq_ipcq **q" (struct_specifier) "struct cleanq_ipcq" (struct) "struct" (type_identifier) "cleanq_ipcq" (pointer_declarator) "**q" (*) "*" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "char *name" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "bool clear" (primitive_type) "bool" (identifier) "clear" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* CLEANQ_IPCQ_H_ */"
50
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.59, "nodes": 39, "errors": 0, "source_hash": "124dc3693b12937efac7d7b3d2957f5d7cec48865e5cc93c4487f86df227b448", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CLEANQ_IPCQ_H_\n#define CLEANQ_IPCQ_H_ 1\n\n#include <stdbool.h>\n#include <cleanq/cleanq.h>\n\n///< forwrd declaration\nstruct cleanq_ipcq;\n\n\n/**\n * @brief initialized a ipc descriptor queue\n *\n * @param q Return pointer to the descriptor queue\n * @param name Name of the memory use for sending/receiving messages\n * @param clear Clear the backing memory by zeroing\n * @param f Function pointers to be called on message recv\n *\n * @returns error on failure or CLEANQ_ERR_OK on success\n */\n\nerrval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);\n\n#endif", "parent": null, "children": [1, 2, 3, 7, 10, 13, 16, 38], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 31, "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": "CLEANQ_IPCQ_H_", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define CLEANQ_IPCQ_H_ 1\n", "parent": 0, "children": [4, 5, 6], "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": "CLEANQ_IPCQ_H_", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 22}}, {"id": 6, "type": "preproc_arg", "text": "1", "parent": 3, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 24}}, {"id": 7, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": 0, "children": [8, 9], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 7, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 20}}, {"id": 10, "type": "preproc_include", "text": "#include <cleanq/cleanq.h>\n", "parent": 0, "children": [11, 12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 12, "type": "system_lib_string", "text": "<cleanq/cleanq.h>", "parent": 10, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 13, "type": "struct_specifier", "text": "struct cleanq_ipcq", "parent": 0, "children": [14, 15], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 18}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "cleanq_ipcq", "parent": 13, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 18}}, {"id": 16, "type": "declaration", "text": "errval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);", "parent": 0, "children": [17, 18], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 76}}, {"id": 17, "type": "type_identifier", "text": "errval_t", "parent": 16, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 18, "type": "function_declarator", "text": "cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear)", "parent": 16, "children": [19, 20], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 75}}, {"id": 19, "type": "identifier", "text": "cleanq_ipcq_create", "parent": 18, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 27}}, {"id": 20, "type": "parameter_list", "text": "(struct cleanq_ipcq **q, char *name, bool clear)", "parent": 18, "children": [21, 30, 35], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 75}}, {"id": 21, "type": "parameter_declaration", "text": "struct cleanq_ipcq **q", "parent": 20, "children": [22, 25], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 50}}, {"id": 22, "type": "struct_specifier", "text": "struct cleanq_ipcq", "parent": 21, "children": [23, 24], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 46}}, {"id": 23, "type": "struct", "text": "struct", "parent": 22, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 34}}, {"id": 24, "type": "type_identifier", "text": "cleanq_ipcq", "parent": 22, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 46}}, {"id": 25, "type": "pointer_declarator", "text": "**q", "parent": 21, "children": [26, 27], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 50}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 48}}, {"id": 27, "type": "pointer_declarator", "text": "*q", "parent": 25, "children": [28, 29], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 50}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 49}}, {"id": 29, "type": "identifier", "text": "q", "parent": 27, "children": [], "start_point": {"row": 29, "column": 49}, "end_point": {"row": 29, "column": 50}}, {"id": 30, "type": "parameter_declaration", "text": "char *name", "parent": 20, "children": [31, 32], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 62}}, {"id": 31, "type": "primitive_type", "text": "char", "parent": 30, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 56}}, {"id": 32, "type": "pointer_declarator", "text": "*name", "parent": 30, "children": [33, 34], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 62}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 58}}, {"id": 34, "type": "identifier", "text": "name", "parent": 32, "children": [], "start_point": {"row": 29, "column": 58}, "end_point": {"row": 29, "column": 62}}, {"id": 35, "type": "parameter_declaration", "text": "bool clear", "parent": 20, "children": [36, 37], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 74}}, {"id": 36, "type": "primitive_type", "text": "bool", "parent": 35, "children": [], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 68}}, {"id": 37, "type": "identifier", "text": "clear", "parent": 35, "children": [], "start_point": {"row": 29, "column": 69}, "end_point": {"row": 29, "column": 74}}, {"id": 38, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18], "variables": [16, 21, 30, 35], "classes": [13, 14, 22, 23], "imports": [7, 8, 10, 11], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 17, 19, 24, 29, 34, 37, 38], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [9, 12], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "clear)", "text_snippet": "cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "cleanq_ipcq", "text_snippet": "struct cleanq_ipcq"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 22, "universal_type": "class", "name": "cleanq_ipcq", "text_snippet": "struct cleanq_ipcq"}, {"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 7, "text": "#include <stdbool.h>\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 10, "text": "#include <cleanq/cleanq.h>\n"}, {"node_id": 11, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2020 ETH Zurich.\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE file.\n * If you do not find this file, copies can be found by writing to:\n * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.\n */\n#ifndef CLEANQ_IPCQ_H_\n#define CLEANQ_IPCQ_H_ 1\n\n#include <stdbool.h>\n#include <cleanq/cleanq.h>\n\n///< forwrd declaration\nstruct cleanq_ipcq;\n\n\n/**\n * @brief initialized a ipc descriptor queue\n *\n * @param q Return pointer to the descriptor queue\n * @param name Name of the memory use for sending/receiving messages\n * @param clear Clear the backing memory by zeroing\n * @param f Function pointers to be called on message recv\n *\n * @returns error on failure or CLEANQ_ERR_OK on success\n */\n\nerrval_t cleanq_ipcq_create(struct cleanq_ipcq **q, char *name, bool clear);\n\n#endif /* CLEANQ_IPCQ_H_ */\n"}
129
c
#pragma once #include <memory> #include <map> #include <vector> #include <array> #include <string> #include "IyathuumCoreLib/lib/glm/glm.hpp" #include "IyathuumCoreLib/BaseTypes/Color.h" #include "AhwassaGraphicsLib/Renderer/RendererTemplate.h" #include "AthanahCommonLib/SupCom/Gamedata/Gamedata.h" namespace Aezesel { class Model3D; } namespace Ahwassa { class Camera; class IMesh; class UniformMat4; class UniformVec3; class Texture; class ShaderProgram; } namespace Athanah { class Gamedata; class MapRenderer { public: MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&); ~MapRenderer(); void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures); void draw(Ahwassa::IMesh& mesh); private: std::shared_ptr<Ahwassa::Camera> _camera ; std::unique_ptr<Ahwassa::UniformMat4> _transform; std::unique_ptr<Ahwassa::UniformVec3> _light ; std::shared_ptr<Ahwassa::ShaderProgram> _shader ; std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ; }; }
28.84
38
(translation_unit) "#pragma once\n\n#include <memory>\n#include <map>\n#include <vector>\n#include <array>\n#include <string>\n#include "IyathuumCoreLib/lib/glm/glm.hpp"\n#include "IyathuumCoreLib/BaseTypes/Color.h"\n#include "AhwassaGraphicsLib/Renderer/RendererTemplate.h"\n#include "AthanahCommonLib/SupCom/Gamedata/Gamedata.h"\n\nnamespace Aezesel {\n class Model3D;\n}\n\nnamespace Ahwassa {\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class Texture;\n class ShaderProgram;\n}\n\nnamespace Athanah { \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include "IyathuumCoreLib/lib/glm/glm.hpp"\n" (#include) "#include" (string_literal) ""IyathuumCoreLib/lib/glm/glm.hpp"" (") """ (string_content) "IyathuumCoreLib/lib/glm/glm.hpp" (") """ (preproc_include) "#include "IyathuumCoreLib/BaseTypes/Color.h"\n" (#include) "#include" (string_literal) ""IyathuumCoreLib/BaseTypes/Color.h"" (") """ (string_content) "IyathuumCoreLib/BaseTypes/Color.h" (") """ (preproc_include) "#include "AhwassaGraphicsLib/Renderer/RendererTemplate.h"\n" (#include) "#include" (string_literal) ""AhwassaGraphicsLib/Renderer/RendererTemplate.h"" (") """ (string_content) "AhwassaGraphicsLib/Renderer/RendererTemplate.h" (") """ (preproc_include) "#include "AthanahCommonLib/SupCom/Gamedata/Gamedata.h"\n" (#include) "#include" (string_literal) ""AthanahCommonLib/SupCom/Gamedata/Gamedata.h"" (") """ (string_content) "AthanahCommonLib/SupCom/Gamedata/Gamedata.h" (") """ (function_definition) "namespace Aezesel {\n class Model3D;\n}" (type_identifier) "namespace" (identifier) "Aezesel" (compound_statement) "{\n class Model3D;\n}" ({) "{" (declaration) "class Model3D;" (type_identifier) "class" (identifier) "Model3D" (;) ";" (}) "}" (function_definition) "namespace Ahwassa {\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class Texture;\n class ShaderProgram;\n}" (type_identifier) "namespace" (identifier) "Ahwassa" (compound_statement) "{\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class Texture;\n class ShaderProgram;\n}" ({) "{" (declaration) "class Camera;" (type_identifier) "class" (identifier) "Camera" (;) ";" (declaration) "class IMesh;" (type_identifier) "class" (identifier) "IMesh" (;) ";" (declaration) "class UniformMat4;" (type_identifier) "class" (identifier) "UniformMat4" (;) ";" (declaration) "class UniformVec3;" (type_identifier) "class" (identifier) "UniformVec3" (;) ";" (declaration) "class Texture;" (type_identifier) "class" (identifier) "Texture" (;) ";" (declaration) "class ShaderProgram;" (type_identifier) "class" (identifier) "ShaderProgram" (;) ";" (}) "}" (function_definition) "namespace Athanah { \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n };\n}" (type_identifier) "namespace" (identifier) "Athanah" (compound_statement) "{ \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n };\n}" ({) "{" (declaration) "class Gamedata;" (type_identifier) "class" (identifier) "Gamedata" (;) ";" (function_definition) "class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n }" (type_identifier) "class" (identifier) "MapRenderer" (compound_statement) "{\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n }" ({) "{" (labeled_statement) "public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();" (statement_identifier) "public" (:) ":" (labeled_statement) "MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();" (statement_identifier) "MapRenderer" (ERROR) "(std::shared_ptr<Ahwassa::Camera> camera, std::array<std:" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "shared_ptr<Ahwassa" (identifier) "shared_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (comma_expression) "Camera> camera, std" (binary_expression) "Camera> camera" (identifier) "Camera" (>) ">" (identifier) "camera" (,) "," (identifier) "std" (:) ":" (:) ":" (binary_expression) "array<std" (identifier) "array" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string,5> textures, Gamedata&);\n ~MapRenderer();" (comma_expression) "string,5> textures, Gamedata&);\n ~MapRenderer()" (identifier) "string" (,) "," (comma_expression) "5> textures, Gamedata&);\n ~MapRenderer()" (binary_expression) "5> textures" (number_literal) "5" (>) ">" (identifier) "textures" (,) "," (binary_expression) "Gamedata&);\n ~MapRenderer()" (identifier) "Gamedata" (&) "&" (ERROR) ");" ()) ")" (;) ";" (unary_expression) "~MapRenderer()" (~) "~" (call_expression) "MapRenderer()" (identifier) "MapRenderer" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);" (primitive_type) "void" (function_declarator) "setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures)" (identifier) "setTextures" (parameter_list) "(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures)" (() "(" (parameter_declaration) "std::array<std::shared_ptr<Ahwassa::Texture" (type_identifier) "std" (ERROR) "::array<std::shared_ptr<Ahwassa::" (:) ":" (:) ":" (identifier) "array" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (identifier) "Texture" (ERROR) ">" (>) ">" (,) "," (ERROR) "5>" (number_literal) "5" (>) ">" (parameter_declaration) "textures" (type_identifier) "textures" ()) ")" (;) ";" (declaration) "void draw(Ahwassa::IMesh& mesh);" (primitive_type) "void" (function_declarator) "draw(Ahwassa::IMesh& mesh)" (identifier) "draw" (parameter_list) "(Ahwassa::IMesh& mesh)" (() "(" (parameter_declaration) "Ahwassa::IMesh& mesh" (type_identifier) "Ahwassa" (ERROR) "::IMesh&" (:) ":" (:) ":" (identifier) "IMesh" (&) "&" (identifier) "mesh" ()) ")" (;) ";" (labeled_statement) "private:\n std::shared_ptr<Ahwassa::Camera> _camera ;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::shared_ptr<Ahwassa::Camera> _camera ;" (statement_identifier) "std" (ERROR) "::shared_ptr<Ahwassa:" (:) ":" (:) ":" (binary_expression) "shared_ptr<Ahwassa" (identifier) "shared_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (expression_statement) "Camera> _camera ;" (binary_expression) "Camera> _camera" (identifier) "Camera" (>) ">" (identifier) "_camera" (;) ";" (labeled_statement) "std::unique_ptr<Ahwassa::UniformMat4> _transform;" (statement_identifier) "std" (ERROR) "::unique_ptr<Ahwassa:" (:) ":" (:) ":" (binary_expression) "unique_ptr<Ahwassa" (identifier) "unique_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (expression_statement) "UniformMat4> _transform;" (binary_expression) "UniformMat4> _transform" (identifier) "UniformMat4" (>) ">" (identifier) "_transform" (;) ";" (labeled_statement) "std::unique_ptr<Ahwassa::UniformVec3> _light ;" (statement_identifier) "std" (ERROR) "::unique_ptr<Ahwassa:" (:) ":" (:) ":" (binary_expression) "unique_ptr<Ahwassa" (identifier) "unique_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (expression_statement) "UniformVec3> _light ;" (binary_expression) "UniformVec3> _light" (identifier) "UniformVec3" (>) ">" (identifier) "_light" (;) ";" (labeled_statement) "std::shared_ptr<Ahwassa::ShaderProgram> _shader ;" (statement_identifier) "std" (ERROR) "::shared_ptr<Ahwassa:" (:) ":" (:) ":" (binary_expression) "shared_ptr<Ahwassa" (identifier) "shared_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (expression_statement) "ShaderProgram> _shader ;" (binary_expression) "ShaderProgram> _shader" (identifier) "ShaderProgram" (>) ">" (identifier) "_shader" (;) ";" (expression_statement) "std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;" (comma_expression) "std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures" (identifier) "std" (ERROR) "::array<std::shared_ptr<Ahwassa::Texture>" (:) ":" (:) ":" (binary_expression) "array<std" (identifier) "array" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "shared_ptr<Ahwassa" (identifier) "shared_ptr" (<) "<" (identifier) "Ahwassa" (:) ":" (:) ":" (identifier) "Texture" (>) ">" (,) "," (binary_expression) "5> _textures" (number_literal) "5" (>) ">" (identifier) "_textures" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
302
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 28.84, "nodes": 186, "errors": 0, "source_hash": "7dc521a954690e7d92e95eb3ce75ef06d40d465e6aaa2b4676c7538023afac45", "categorized_nodes": 139}, "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 <memory>\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": "<memory>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <map>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<map>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 14}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <array>\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<array>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include \"IyathuumCoreLib/lib/glm/glm.hpp\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"IyathuumCoreLib/lib/glm/glm.hpp\"", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 42}}, {"id": 21, "type": "preproc_include", "text": "#include \"IyathuumCoreLib/BaseTypes/Color.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"IyathuumCoreLib/BaseTypes/Color.h\"", "parent": 21, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 44}}, {"id": 24, "type": "preproc_include", "text": "#include \"AhwassaGraphicsLib/Renderer/RendererTemplate.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"AhwassaGraphicsLib/Renderer/RendererTemplate.h\"", "parent": 24, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 57}}, {"id": 27, "type": "preproc_include", "text": "#include \"AthanahCommonLib/SupCom/Gamedata/Gamedata.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"AthanahCommonLib/SupCom/Gamedata/Gamedata.h\"", "parent": 27, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 54}}, {"id": 30, "type": "function_definition", "text": "namespace Aezesel {\n class Model3D;\n}", "parent": null, "children": [31, 32], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 32, "type": "identifier", "text": "Aezesel", "parent": 30, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 17}}, {"id": 33, "type": "declaration", "text": "class Model3D;", "parent": 30, "children": [34], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 16}}, {"id": 34, "type": "identifier", "text": "Model3D", "parent": 33, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 15}}, {"id": 35, "type": "function_definition", "text": "namespace Ahwassa {\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class Texture;\n class ShaderProgram;\n}", "parent": null, "children": [36, 37], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 36, "type": "type_identifier", "text": "namespace", "parent": 35, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 37, "type": "identifier", "text": "Ahwassa", "parent": 35, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 17}}, {"id": 38, "type": "declaration", "text": "class Camera;", "parent": 35, "children": [39], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 15}}, {"id": 39, "type": "identifier", "text": "Camera", "parent": 38, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 40, "type": "declaration", "text": "class IMesh;", "parent": 35, "children": [41], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 14}}, {"id": 41, "type": "identifier", "text": "IMesh", "parent": 40, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 13}}, {"id": 42, "type": "declaration", "text": "class UniformMat4;", "parent": 35, "children": [43], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 20}}, {"id": 43, "type": "identifier", "text": "UniformMat4", "parent": 42, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 19}}, {"id": 44, "type": "declaration", "text": "class UniformVec3;", "parent": 35, "children": [45], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 20}}, {"id": 45, "type": "identifier", "text": "UniformVec3", "parent": 44, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 19}}, {"id": 46, "type": "declaration", "text": "class Texture;", "parent": 35, "children": [47], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 16}}, {"id": 47, "type": "identifier", "text": "Texture", "parent": 46, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 15}}, {"id": 48, "type": "declaration", "text": "class ShaderProgram;", "parent": 35, "children": [49], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 22}}, {"id": 49, "type": "identifier", "text": "ShaderProgram", "parent": 48, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 21}}, {"id": 50, "type": "function_definition", "text": "namespace Athanah { \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n };\n}", "parent": null, "children": [51, 52], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 51, "type": "type_identifier", "text": "namespace", "parent": 50, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 9}}, {"id": 52, "type": "identifier", "text": "Athanah", "parent": 50, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 17}}, {"id": 53, "type": "declaration", "text": "class Gamedata;", "parent": 50, "children": [54], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 17}}, {"id": 54, "type": "identifier", "text": "Gamedata", "parent": 53, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 16}}, {"id": 55, "type": "function_definition", "text": "class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n }", "parent": 50, "children": [56], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 42, "column": 3}}, {"id": 56, "type": "identifier", "text": "MapRenderer", "parent": 55, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 19}}, {"id": 57, "type": "labeled_statement", "text": "public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();", "parent": 55, "children": [58], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 31, "column": 19}}, {"id": 58, "type": "labeled_statement", "text": "MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();", "parent": 57, "children": [59, 60], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 31, "column": 19}}, {"id": 59, "type": "statement_identifier", "text": "MapRenderer", "parent": 58, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 15}}, {"id": 60, "type": "ERROR", "text": "(std::shared_ptr<Ahwassa::Camera> camera, std::array<std:", "parent": 58, "children": [61, 63, 67, 73], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 72}}, {"id": 61, "type": "type_descriptor", "text": "std", "parent": 60, "children": [62], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 19}}, {"id": 62, "type": "type_identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 19}}, {"id": 63, "type": "binary_expression", "text": "shared_ptr<Ahwassa", "parent": 60, "children": [64, 65, 66], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 39}}, {"id": 64, "type": "identifier", "text": "shared_ptr", "parent": 63, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 31}}, {"id": 65, "type": "<", "text": "<", "parent": 63, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 32}}, {"id": 66, "type": "identifier", "text": "Ahwassa", "parent": 63, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 39}}, {"id": 67, "type": "comma_expression", "text": "Camera> camera, std", "parent": 60, "children": [68, 72], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 60}}, {"id": 68, "type": "binary_expression", "text": "Camera> camera", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 55}}, {"id": 69, "type": "identifier", "text": "Camera", "parent": 68, "children": [], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 47}}, {"id": 70, "type": ">", "text": ">", "parent": 68, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 48}}, {"id": 71, "type": "identifier", "text": "camera", "parent": 68, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 55}}, {"id": 72, "type": "identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 60}}, {"id": 73, "type": "binary_expression", "text": "array<std", "parent": 60, "children": [74, 75, 76], "start_point": {"row": 30, "column": 62}, "end_point": {"row": 30, "column": 71}}, {"id": 74, "type": "identifier", "text": "array", "parent": 73, "children": [], "start_point": {"row": 30, "column": 62}, "end_point": {"row": 30, "column": 67}}, {"id": 75, "type": "<", "text": "<", "parent": 73, "children": [], "start_point": {"row": 30, "column": 67}, "end_point": {"row": 30, "column": 68}}, {"id": 76, "type": "identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 30, "column": 68}, "end_point": {"row": 30, "column": 71}}, {"id": 77, "type": "comma_expression", "text": "string,5> textures, Gamedata&);\n ~MapRenderer()", "parent": 58, "children": [78, 79], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 31, "column": 18}}, {"id": 78, "type": "identifier", "text": "string", "parent": 77, "children": [], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 30, "column": 79}}, {"id": 79, "type": "comma_expression", "text": "5> textures, Gamedata&);\n ~MapRenderer()", "parent": 77, "children": [80, 84], "start_point": {"row": 30, "column": 80}, "end_point": {"row": 31, "column": 18}}, {"id": 80, "type": "binary_expression", "text": "5> textures", "parent": 79, "children": [81, 82, 83], "start_point": {"row": 30, "column": 80}, "end_point": {"row": 30, "column": 91}}, {"id": 81, "type": "number_literal", "text": "5", "parent": 80, "children": [], "start_point": {"row": 30, "column": 80}, "end_point": {"row": 30, "column": 81}}, {"id": 82, "type": ">", "text": ">", "parent": 80, "children": [], "start_point": {"row": 30, "column": 81}, "end_point": {"row": 30, "column": 82}}, {"id": 83, "type": "identifier", "text": "textures", "parent": 80, "children": [], "start_point": {"row": 30, "column": 83}, "end_point": {"row": 30, "column": 91}}, {"id": 84, "type": "binary_expression", "text": "Gamedata&);\n ~MapRenderer()", "parent": 79, "children": [85, 86, 87], "start_point": {"row": 30, "column": 93}, "end_point": {"row": 31, "column": 18}}, {"id": 85, "type": "identifier", "text": "Gamedata", "parent": 84, "children": [], "start_point": {"row": 30, "column": 93}, "end_point": {"row": 30, "column": 101}}, {"id": 86, "type": "ERROR", "text": ");", "parent": 84, "children": [], "start_point": {"row": 30, "column": 102}, "end_point": {"row": 30, "column": 104}}, {"id": 87, "type": "unary_expression", "text": "~MapRenderer()", "parent": 84, "children": [88, 89], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 18}}, {"id": 88, "type": "~", "text": "~", "parent": 87, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 89, "type": "call_expression", "text": "MapRenderer()", "parent": 87, "children": [90, 91], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 18}}, {"id": 90, "type": "identifier", "text": "MapRenderer", "parent": 89, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 16}}, {"id": 91, "type": "argument_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 18}}, {"id": 92, "type": "declaration", "text": "void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);", "parent": 55, "children": [93, 94], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 80}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 94, "type": "function_declarator", "text": "setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures)", "parent": 92, "children": [95, 96], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 79}}, {"id": 95, "type": "identifier", "text": "setTextures", "parent": 94, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 20}}, {"id": 96, "type": "parameter_list", "text": "(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures)", "parent": 94, "children": [97, 107, 109, 112], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 79}}, {"id": 97, "type": "parameter_declaration", "text": "std::array<std::shared_ptr<Ahwassa::Texture", "parent": 96, "children": [98, 99, 106], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 64}}, {"id": 98, "type": "type_identifier", "text": "std", "parent": 97, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 24}}, {"id": 99, "type": "ERROR", "text": "::array<std::shared_ptr<Ahwassa::", "parent": 97, "children": [100, 101, 102, 103, 104, 105], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 57}}, {"id": 100, "type": "identifier", "text": "array", "parent": 99, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 31}}, {"id": 101, "type": "<", "text": "<", "parent": 99, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 102, "type": "identifier", "text": "std", "parent": 99, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 35}}, {"id": 103, "type": "identifier", "text": "shared_ptr", "parent": 99, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 47}}, {"id": 104, "type": "<", "text": "<", "parent": 99, "children": [], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 48}}, {"id": 105, "type": "identifier", "text": "Ahwassa", "parent": 99, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 55}}, {"id": 106, "type": "identifier", "text": "Texture", "parent": 97, "children": [], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 64}}, {"id": 107, "type": "ERROR", "text": ">", "parent": 96, "children": [108], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 65}}, {"id": 108, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 65}}, {"id": 109, "type": "ERROR", "text": "5>", "parent": 96, "children": [110, 111], "start_point": {"row": 33, "column": 67}, "end_point": {"row": 33, "column": 69}}, {"id": 110, "type": "number_literal", "text": "5", "parent": 109, "children": [], "start_point": {"row": 33, "column": 67}, "end_point": {"row": 33, "column": 68}}, {"id": 111, "type": ">", "text": ">", "parent": 109, "children": [], "start_point": {"row": 33, "column": 68}, "end_point": {"row": 33, "column": 69}}, {"id": 112, "type": "parameter_declaration", "text": "textures", "parent": 96, "children": [113], "start_point": {"row": 33, "column": 70}, "end_point": {"row": 33, "column": 78}}, {"id": 113, "type": "type_identifier", "text": "textures", "parent": 112, "children": [], "start_point": {"row": 33, "column": 70}, "end_point": {"row": 33, "column": 78}}, {"id": 114, "type": "declaration", "text": "void draw(Ahwassa::IMesh& mesh);", "parent": 55, "children": [115, 116], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 36}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 116, "type": "function_declarator", "text": "draw(Ahwassa::IMesh& mesh)", "parent": 114, "children": [117, 118], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 35}}, {"id": 117, "type": "identifier", "text": "draw", "parent": 116, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 118, "type": "parameter_list", "text": "(Ahwassa::IMesh& mesh)", "parent": 116, "children": [119], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 35}}, {"id": 119, "type": "parameter_declaration", "text": "Ahwassa::IMesh& mesh", "parent": 118, "children": [120, 121, 123], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 34}}, {"id": 120, "type": "type_identifier", "text": "Ahwassa", "parent": 119, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 21}}, {"id": 121, "type": "ERROR", "text": "::IMesh&", "parent": 119, "children": [122], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 29}}, {"id": 122, "type": "identifier", "text": "IMesh", "parent": 121, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 28}}, {"id": 123, "type": "identifier", "text": "mesh", "parent": 119, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 34}}, {"id": 124, "type": "labeled_statement", "text": "private:\n std::shared_ptr<Ahwassa::Camera> _camera ;", "parent": 55, "children": [125], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 64}}, {"id": 125, "type": "labeled_statement", "text": "std::shared_ptr<Ahwassa::Camera> _camera ;", "parent": 124, "children": [126, 127], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 64}}, {"id": 126, "type": "statement_identifier", "text": "std", "parent": 125, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 7}}, {"id": 127, "type": "ERROR", "text": "::shared_ptr<Ahwassa:", "parent": 125, "children": [128], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 28}}, {"id": 128, "type": "binary_expression", "text": "shared_ptr<Ahwassa", "parent": 127, "children": [129, 130, 131], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 27}}, {"id": 129, "type": "identifier", "text": "shared_ptr", "parent": 128, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 19}}, {"id": 130, "type": "<", "text": "<", "parent": 128, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 131, "type": "identifier", "text": "Ahwassa", "parent": 128, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 27}}, {"id": 132, "type": "binary_expression", "text": "Camera> _camera", "parent": 125, "children": [133, 134, 135], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 60}}, {"id": 133, "type": "identifier", "text": "Camera", "parent": 132, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 35}}, {"id": 134, "type": ">", "text": ">", "parent": 132, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 36}}, {"id": 135, "type": "identifier", "text": "_camera", "parent": 132, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 60}}, {"id": 136, "type": "labeled_statement", "text": "std::unique_ptr<Ahwassa::UniformMat4> _transform;", "parent": 55, "children": [137, 138], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 64}}, {"id": 137, "type": "statement_identifier", "text": "std", "parent": 136, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 138, "type": "ERROR", "text": "::unique_ptr<Ahwassa:", "parent": 136, "children": [139], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 28}}, {"id": 139, "type": "binary_expression", "text": "unique_ptr<Ahwassa", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 27}}, {"id": 140, "type": "identifier", "text": "unique_ptr", "parent": 139, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 19}}, {"id": 141, "type": "<", "text": "<", "parent": 139, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 142, "type": "identifier", "text": "Ahwassa", "parent": 139, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 27}}, {"id": 143, "type": "binary_expression", "text": "UniformMat4> _transform", "parent": 136, "children": [144, 145, 146], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 63}}, {"id": 144, "type": "identifier", "text": "UniformMat4", "parent": 143, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 40}}, {"id": 145, "type": ">", "text": ">", "parent": 143, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 41}}, {"id": 146, "type": "identifier", "text": "_transform", "parent": 143, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 63}}, {"id": 147, "type": "labeled_statement", "text": "std::unique_ptr<Ahwassa::UniformVec3> _light ;", "parent": 55, "children": [148, 149], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 64}}, {"id": 148, "type": "statement_identifier", "text": "std", "parent": 147, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 149, "type": "ERROR", "text": "::unique_ptr<Ahwassa:", "parent": 147, "children": [150], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 28}}, {"id": 150, "type": "binary_expression", "text": "unique_ptr<Ahwassa", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 27}}, {"id": 151, "type": "identifier", "text": "unique_ptr", "parent": 150, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 19}}, {"id": 152, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 153, "type": "identifier", "text": "Ahwassa", "parent": 150, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 27}}, {"id": 154, "type": "binary_expression", "text": "UniformVec3> _light", "parent": 147, "children": [155, 156, 157], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 59}}, {"id": 155, "type": "identifier", "text": "UniformVec3", "parent": 154, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 40}}, {"id": 156, "type": ">", "text": ">", "parent": 154, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 41}}, {"id": 157, "type": "identifier", "text": "_light", "parent": 154, "children": [], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 39, "column": 59}}, {"id": 158, "type": "labeled_statement", "text": "std::shared_ptr<Ahwassa::ShaderProgram> _shader ;", "parent": 55, "children": [159, 160], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 64}}, {"id": 159, "type": "statement_identifier", "text": "std", "parent": 158, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 160, "type": "ERROR", "text": "::shared_ptr<Ahwassa:", "parent": 158, "children": [161], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 28}}, {"id": 161, "type": "binary_expression", "text": "shared_ptr<Ahwassa", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 27}}, {"id": 162, "type": "identifier", "text": "shared_ptr", "parent": 161, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 19}}, {"id": 163, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 164, "type": "identifier", "text": "Ahwassa", "parent": 161, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 27}}, {"id": 165, "type": "binary_expression", "text": "ShaderProgram> _shader", "parent": 158, "children": [166, 167, 168], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 60}}, {"id": 166, "type": "identifier", "text": "ShaderProgram", "parent": 165, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 42}}, {"id": 167, "type": ">", "text": ">", "parent": 165, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 43}}, {"id": 168, "type": "identifier", "text": "_shader", "parent": 165, "children": [], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 60}}, {"id": 169, "type": "comma_expression", "text": "std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures", "parent": 55, "children": [170, 171, 182], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 62}}, {"id": 170, "type": "identifier", "text": "std", "parent": 169, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 171, "type": "ERROR", "text": "::array<std::shared_ptr<Ahwassa::Texture>", "parent": 169, "children": [172, 176, 180, 181], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 48}}, {"id": 172, "type": "binary_expression", "text": "array<std", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 18}}, {"id": 173, "type": "identifier", "text": "array", "parent": 172, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 14}}, {"id": 174, "type": "<", "text": "<", "parent": 172, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 175, "type": "identifier", "text": "std", "parent": 172, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 18}}, {"id": 176, "type": "binary_expression", "text": "shared_ptr<Ahwassa", "parent": 171, "children": [177, 178, 179], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 38}}, {"id": 177, "type": "identifier", "text": "shared_ptr", "parent": 176, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 30}}, {"id": 178, "type": "<", "text": "<", "parent": 176, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 31}}, {"id": 179, "type": "identifier", "text": "Ahwassa", "parent": 176, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 38}}, {"id": 180, "type": "identifier", "text": "Texture", "parent": 171, "children": [], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 47}}, {"id": 181, "type": ">", "text": ">", "parent": 171, "children": [], "start_point": {"row": 41, "column": 47}, "end_point": {"row": 41, "column": 48}}, {"id": 182, "type": "binary_expression", "text": "5> _textures", "parent": 169, "children": [183, 184, 185], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 62}}, {"id": 183, "type": "number_literal", "text": "5", "parent": 182, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 51}}, {"id": 184, "type": ">", "text": ">", "parent": 182, "children": [], "start_point": {"row": 41, "column": 51}, "end_point": {"row": 41, "column": 52}}, {"id": 185, "type": "identifier", "text": "_textures", "parent": 182, "children": [], "start_point": {"row": 41, "column": 53}, "end_point": {"row": 41, "column": 62}}]}, "node_categories": {"declarations": {"functions": [30, 35, 50, 55, 94, 116], "variables": [33, 38, 40, 42, 44, 46, 48, 53, 92, 97, 112, 114, 119], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [63, 67, 68, 73, 77, 79, 80, 84, 87, 89, 128, 132, 139, 143, 150, 154, 161, 165, 169, 172, 176, 182], "assignments": [], "loops": [], "conditionals": [31, 32, 34, 36, 37, 39, 41, 43, 45, 47, 49, 51, 52, 54, 56, 59, 62, 64, 66, 69, 71, 72, 74, 76, 78, 83, 85, 90, 95, 98, 100, 102, 103, 105, 106, 113, 117, 120, 122, 123, 126, 129, 131, 133, 135, 137, 140, 142, 144, 146, 148, 151, 153, 155, 157, 159, 162, 164, 166, 168, 170, 173, 175, 177, 179, 180, 185], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 29, 81, 110, 183], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "Model3D;", "text_snippet": "namespace Aezesel {\n class Model3D;\n}"}, {"node_id": 35, "universal_type": "function", "name": "Camera;", "text_snippet": "namespace Ahwassa {\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class"}, {"node_id": 50, "universal_type": "function", "name": "Gamedata;", "text_snippet": "namespace Athanah { \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_"}, {"node_id": 55, "universal_type": "function", "name": "MapRenderer", "text_snippet": "class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<st"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "draw(Ahwassa::IMesh& mesh)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <memory>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <map>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <array>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"IyathuumCoreLib/lib/glm/glm.hpp\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"IyathuumCoreLib/BaseTypes/Color.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"AhwassaGraphicsLib/Renderer/RendererTemplate.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"AthanahCommonLib/SupCom/Gamedata/Gamedata.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <memory>\n#include <map>\n#include <vector>\n#include <array>\n#include <string>\n#include \"IyathuumCoreLib/lib/glm/glm.hpp\"\n#include \"IyathuumCoreLib/BaseTypes/Color.h\"\n#include \"AhwassaGraphicsLib/Renderer/RendererTemplate.h\"\n#include \"AthanahCommonLib/SupCom/Gamedata/Gamedata.h\"\n\nnamespace Aezesel {\n class Model3D;\n}\n\nnamespace Ahwassa {\n class Camera;\n class IMesh;\n class UniformMat4;\n class UniformVec3;\n class Texture;\n class ShaderProgram;\n}\n\nnamespace Athanah { \n class Gamedata;\n\n class MapRenderer {\n public:\n MapRenderer(std::shared_ptr<Ahwassa::Camera> camera, std::array<std::string,5> textures, Gamedata&);\n ~MapRenderer();\n\n void setTextures(std::array<std::shared_ptr<Ahwassa::Texture>, 5> textures);\n void draw(Ahwassa::IMesh& mesh);\n \n private:\n std::shared_ptr<Ahwassa::Camera> _camera ;\n std::unique_ptr<Ahwassa::UniformMat4> _transform;\n std::unique_ptr<Ahwassa::UniformVec3> _light ;\n std::shared_ptr<Ahwassa::ShaderProgram> _shader ;\n std::array<std::shared_ptr<Ahwassa::Texture>, 5> _textures ;\n };\n}"}
130
c
/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "array.h" #include "ioloop.h" #include "mail-index-private.h" #include "mail-index-modseq.h" #include "mail-index-transaction-private.h" int mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1, const struct mail_transaction_expunge_guid *e2) { if (e1->uid < e2->uid) return -1; else if (e1->uid > e2->uid) return 1; else return 0; } void mail_index_transaction_sort_expunges(struct mail_index_transaction *t) { if (!t->expunges_nonsorted) return; array_sort(&t->expunges, mail_transaction_expunge_guid_cmp); t->expunges_nonsorted = FALSE; } static void ext_reset_update_atomic(struct mail_index_transaction *t, uint32_t ext_id, uint32_t expected_reset_id) { const struct mail_index_ext *map_ext; struct mail_transaction_ext_reset *reset; uint32_t idx, reset_id; if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) { /* new extension */ reset_id = 1; } else { map_ext = array_idx(&t->view->index->map->extensions, idx); reset_id = map_ext->reset_id + 1; } if (reset_id != expected_reset_id) { /* ignore this extension update */ mail_index_ext_set_reset_id(t, ext_id, 0); return; } if (reset_id == 0) reset_id++; array_idx_set(&t->ext_reset_ids, ext_id, &reset_id); /* reseting existing data is optional */ if (array_is_created(&t->ext_resets)) { reset = array_idx_modifiable(&t->ext_resets, ext_id); if (reset->new_reset_id == (uint32_t)-1) reset->new_reset_id = reset_id; } } static void transaction_update_atomic_reset_ids(struct mail_index_transaction *t) { const uint32_t *expected_reset_ids; unsigned int ext_id, count; if (!array_is_created(&t->ext_reset_atomic)) return; expected_reset_ids = array_get(&t->ext_reset_atomic, &count); for (ext_id = 0; ext_id < count; ext_id++) { if (expected_reset_ids[ext_id] != 0) { ext_reset_update_atomic(t, ext_id, expected_reset_ids[ext_id]); } } } static unsigned int mail_transaction_drop_range(struct mail_index_transaction *t, struct mail_index_flag_update update, unsigned int update_idx, ARRAY_TYPE(seq_range) *keeps) { const struct seq_range *keep_range; unsigned int i, keep_count; keep_range = array_get(keeps, &keep_count); if (keep_count == 1 && update.uid1 == keep_range[0].seq1 && update.uid2 == keep_range[0].seq2) { /* evereything is kept */ return update_idx + 1; } array_delete(&t->updates, update_idx, 1); /* add back all the updates we want to keep */ for (i = 0; i < keep_count; i++, update_idx++) { update.uid1 = keep_range[i].seq1; update.uid2 = keep_range[i].seq2; array_insert(&t->updates, update_idx, &update, 1); } return update_idx; } static void mail_index_transaction_finish_flag_updates(struct mail_index_transaction *t) { const struct mail_index_flag_update *updates, *u; const struct mail_index_record *rec; unsigned int i, count; ARRAY_TYPE(seq_range) keeps; uint32_t seq; if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates)) return; t_array_init(&keeps, 64); updates = array_get(&t->updates, &count); for (i = 0; i < count; ) { /* first get the list of changes to drop */ u = &updates[i]; array_clear(&keeps); for (seq = u->uid1; seq <= u->uid2; seq++) { rec = mail_index_lookup(t->view, seq); if ((rec->flags & u->add_flags) != u->add_flags || (rec->flags & u->remove_flags) != 0) { /* keep this change */ seq_range_array_add(&keeps, seq); } } i = mail_transaction_drop_range(t, updates[i], i, &keeps); updates = array_get(&t->updates, &count); } if (array_count(&t->updates) == 0) array_free(&t->updates); } static void mail_index_transaction_check_conflicts(struct mail_index_transaction *t) { uint32_t seq; bool ret1, ret2; i_assert(t->max_modseq != 0); i_assert(t->conflict_seqs != NULL); if (t->max_modseq == mail_index_modseq_get_highest(t->view)) { /* no conflicts possible */ return; } if (t->min_flagupdate_seq == 0) { /* no flag updates */ return; } for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) { if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) { ret1 = mail_index_cancel_flag_updates(t, seq); ret2 = mail_index_cancel_keyword_updates(t, seq); if (ret1 || ret2) { seq_range_array_add_with_init(t->conflict_seqs, 16, seq); } } } mail_index_transaction_set_log_updates(t); } static uint32_t mail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq) { const struct mail_index_record *rec; i_assert(seq > 0); if (seq >= t->first_new_seq) rec = mail_index_transaction_lookup(t, seq); else { i_assert(seq <= t->view->map->hdr.messages_count); rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq); } i_assert(rec->uid != 0); return rec->uid; } static void mail_index_convert_to_uids(struct mail_index_transaction *t, ARRAY_TYPE(seq_array) *array) { uint32_t *seq; unsigned int i, count; if (!array_is_created(array)) return; count = array_count(array); for (i = 0; i < count; i++) { seq = array_idx_modifiable(array, i); *seq = mail_index_transaction_get_uid(t, *seq); } } static uint32_t get_nonexpunged_uid2(struct mail_index_transaction *t, uint32_t uid1, uint32_t seq1) { seq1++; while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) { seq1++; uid1++; } return uid1; } void mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t, ARRAY_TYPE(seq_range) *array) { struct seq_range *range, *new_range; unsigned int i, count; uint32_t uid1, uid2, prev_uid = 0; if (!array_is_created(array)) return; count = array_count(array); for (i = 0; i < count; i++) { range = array_idx_modifiable(array, i); uid1 = mail_index_transaction_get_uid(t, range->seq1); uid2 = mail_index_transaction_get_uid(t, range->seq2); i_assert(uid1 > prev_uid); if (uid2 - uid1 == range->seq2 - range->seq1) { /* simple conversion */ range->seq1 = uid1; range->seq2 = uid2; prev_uid = uid2; } else { /* remove expunged UIDs */ new_range = array_insert_space(array, i); range = array_idx_modifiable(array, i + 1); count++; memcpy(new_range, range, array->arr.element_size); new_range->seq1 = uid1; new_range->seq2 = get_nonexpunged_uid2(t, uid1, range->seq1); i_assert(new_range->seq2 < uid2); /* continue the range without the inserted seqs */ range->seq1 += new_range->seq2 - new_range->seq1 + 1; prev_uid = new_range->seq2; } } } static void keyword_updates_convert_to_uids(struct mail_index_transaction *t) { struct mail_index_transaction_keyword_update *update; if (!array_is_created(&t->keyword_updates)) return; array_foreach_modifiable(&t->keyword_updates, update) { mail_index_transaction_seq_range_to_uid(t, &update->add_seq); mail_index_transaction_seq_range_to_uid(t, &update->remove_seq); } } static void expunges_convert_to_uids(struct mail_index_transaction *t) { struct mail_transaction_expunge_guid *expunges; unsigned int src, dest, count; if (!array_is_created(&t->expunges)) return; mail_index_transaction_sort_expunges(t); expunges = array_get_modifiable(&t->expunges, &count); if (count == 0) return; /* convert uids and drop duplicates */ expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid); for (src = dest = 1; src < count; src++) { expunges[dest].uid = mail_index_transaction_get_uid(t, expunges[src].uid); if (expunges[dest-1].uid != expunges[dest].uid) { if (dest != src) { memcpy(expunges[dest].guid_128, expunges[src].guid_128, sizeof(expunges[dest].guid_128)); } dest++; } } array_delete(&t->expunges, dest, count-dest); } static void mail_index_transaction_convert_to_uids(struct mail_index_transaction *t) { ARRAY_TYPE(seq_array) *update; if (array_is_created(&t->ext_rec_updates)) { array_foreach_modifiable(&t->ext_rec_updates, update) mail_index_convert_to_uids(t, update); } if (array_is_created(&t->ext_rec_atomics)) { array_foreach_modifiable(&t->ext_rec_atomics, update) mail_index_convert_to_uids(t, update); } keyword_updates_convert_to_uids(t); expunges_convert_to_uids(t); mail_index_convert_to_uids(t, (void *)&t->modseq_updates); mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates); } void mail_index_transaction_finish_so_far(struct mail_index_transaction *t) { if (array_is_created(&t->appends)) mail_index_transaction_sort_appends(t); mail_index_transaction_finish_flag_updates(t); if (t->max_modseq != 0) mail_index_transaction_check_conflicts(t); } void mail_index_transaction_finish(struct mail_index_transaction *t) { mail_index_transaction_finish_so_far(t); if (array_is_created(&t->appends)) mail_index_update_day_headers(t, ioloop_time); if (array_is_created(&t->ext_reset_atomic)) transaction_update_atomic_reset_ids(t); /* finally convert all sequences to UIDs before we write them, but after we've checked and removed conflicts */ mail_index_transaction_convert_to_uids(t); /* and kind of ugly way to update highest modseq */ if (t->min_highest_modseq != 0) mail_index_update_modseq(t, 0, t->min_highest_modseq); }
30.29
297
(translation_unit) "/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */\n\n#include "lib.h"\n#include "array.h"\n#include "ioloop.h"\n#include "mail-index-private.h"\n#include "mail-index-modseq.h"\n#include "mail-index-transaction-private.h"\n\nint mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n const struct mail_transaction_expunge_guid *e2)\n{\n if (e1->uid < e2->uid)\n return -1;\n else if (e1->uid > e2->uid)\n return 1;\n else\n return 0;\n}\n\nvoid mail_index_transaction_sort_expunges(struct mail_index_transaction *t)\n{\n if (!t->expunges_nonsorted)\n return;\n\n array_sort(&t->expunges, mail_transaction_expunge_guid_cmp);\n t->expunges_nonsorted = FALSE;\n}\n\nstatic void\next_reset_update_atomic(struct mail_index_transaction *t,\n uint32_t ext_id, uint32_t expected_reset_id)\n{\n const struct mail_index_ext *map_ext;\n struct mail_transaction_ext_reset *reset;\n uint32_t idx, reset_id;\n\n if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n /* new extension */\n reset_id = 1;\n } else {\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }\n if (reset_id != expected_reset_id) {\n /* ignore this extension update */\n mail_index_ext_set_reset_id(t, ext_id, 0);\n return;\n }\n\n if (reset_id == 0)\n reset_id++;\n\n array_idx_set(&t->ext_reset_ids, ext_id, &reset_id);\n\n /* reseting existing data is optional */\n if (array_is_created(&t->ext_resets)) {\n reset = array_idx_modifiable(&t->ext_resets, ext_id);\n if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;\n }\n}\n\nstatic void\ntransaction_update_atomic_reset_ids(struct mail_index_transaction *t)\n{\n const uint32_t *expected_reset_ids;\n unsigned int ext_id, count;\n\n if (!array_is_created(&t->ext_reset_atomic))\n return;\n\n expected_reset_ids = array_get(&t->ext_reset_atomic, &count);\n for (ext_id = 0; ext_id < count; ext_id++) {\n if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }\n }\n}\n\nstatic unsigned int\nmail_transaction_drop_range(struct mail_index_transaction *t,\n struct mail_index_flag_update update,\n unsigned int update_idx,\n ARRAY_TYPE(seq_range) *keeps)\n{\n const struct seq_range *keep_range;\n unsigned int i, keep_count;\n\n keep_range = array_get(keeps, &keep_count);\n if (keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2) {\n /* evereything is kept */\n return update_idx + 1;\n }\n\n array_delete(&t->updates, update_idx, 1);\n\n /* add back all the updates we want to keep */\n for (i = 0; i < keep_count; i++, update_idx++) {\n update.uid1 = keep_range[i].seq1;\n update.uid2 = keep_range[i].seq2;\n array_insert(&t->updates, update_idx, &update, 1);\n }\n return update_idx;\n}\n\nstatic void\nmail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)\n{\n const struct mail_index_flag_update *updates, *u;\n const struct mail_index_record *rec;\n unsigned int i, count;\n ARRAY_TYPE(seq_range) keeps;\n uint32_t seq;\n\n if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n return;\n\n t_array_init(&keeps, 64);\n updates = array_get(&t->updates, &count);\n for (i = 0; i < count; ) {\n /* first get the list of changes to drop */\n u = &updates[i];\n array_clear(&keeps);\n for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }\n i = mail_transaction_drop_range(t, updates[i], i, &keeps);\n updates = array_get(&t->updates, &count);\n }\n\n if (array_count(&t->updates) == 0)\n array_free(&t->updates);\n}\n\nstatic void\nmail_index_transaction_check_conflicts(struct mail_index_transaction *t)\n{\n uint32_t seq;\n bool ret1, ret2;\n\n i_assert(t->max_modseq != 0);\n i_assert(t->conflict_seqs != NULL);\n\n if (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n /* no conflicts possible */\n return;\n }\n if (t->min_flagupdate_seq == 0) {\n /* no flag updates */\n return;\n }\n\n for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }\n }\n mail_index_transaction_set_log_updates(t);\n}\n\nstatic uint32_t\nmail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)\n{\n const struct mail_index_record *rec;\n\n i_assert(seq > 0);\n\n if (seq >= t->first_new_seq)\n rec = mail_index_transaction_lookup(t, seq);\n else {\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }\n i_assert(rec->uid != 0);\n return rec->uid;\n}\n\nstatic void\nmail_index_convert_to_uids(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_array) *array)\n{\n uint32_t *seq;\n unsigned int i, count;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n seq = array_idx_modifiable(array, i);\n *seq = mail_index_transaction_get_uid(t, *seq);\n }\n}\n\nstatic uint32_t\nget_nonexpunged_uid2(struct mail_index_transaction *t,\n uint32_t uid1, uint32_t seq1)\n{\n seq1++;\n\n while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n seq1++;\n uid1++;\n }\n return uid1;\n}\n\nvoid mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_range) *array)\n{\n struct seq_range *range, *new_range;\n unsigned int i, count;\n uint32_t uid1, uid2, prev_uid = 0;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n range = array_idx_modifiable(array, i);\n\n uid1 = mail_index_transaction_get_uid(t, range->seq1);\n uid2 = mail_index_transaction_get_uid(t, range->seq2);\n i_assert(uid1 > prev_uid);\n if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }\n }\n}\n\nstatic void keyword_updates_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_index_transaction_keyword_update *update;\n\n if (!array_is_created(&t->keyword_updates))\n return;\n\n array_foreach_modifiable(&t->keyword_updates, update) {\n mail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n mail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n }\n}\n\nstatic void expunges_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_transaction_expunge_guid *expunges;\n unsigned int src, dest, count;\n\n if (!array_is_created(&t->expunges))\n return;\n\n mail_index_transaction_sort_expunges(t);\n\n expunges = array_get_modifiable(&t->expunges, &count);\n if (count == 0)\n return;\n\n /* convert uids and drop duplicates */\n expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);\n for (src = dest = 1; src < count; src++) {\n expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);\n if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }\n }\n array_delete(&t->expunges, dest, count-dest);\n}\n\nstatic void\nmail_index_transaction_convert_to_uids(struct mail_index_transaction *t)\n{\n ARRAY_TYPE(seq_array) *update;\n\n if (array_is_created(&t->ext_rec_updates)) {\n array_foreach_modifiable(&t->ext_rec_updates, update)\n mail_index_convert_to_uids(t, update);\n }\n if (array_is_created(&t->ext_rec_atomics)) {\n array_foreach_modifiable(&t->ext_rec_atomics, update)\n mail_index_convert_to_uids(t, update);\n }\n\n keyword_updates_convert_to_uids(t);\n expunges_convert_to_uids(t);\n mail_index_convert_to_uids(t, (void *)&t->modseq_updates);\n mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);\n}\n\nvoid mail_index_transaction_finish_so_far(struct mail_index_transaction *t)\n{\n if (array_is_created(&t->appends))\n mail_index_transaction_sort_appends(t);\n mail_index_transaction_finish_flag_updates(t);\n if (t->max_modseq != 0)\n mail_index_transaction_check_conflicts(t);\n}\n\nvoid mail_index_transaction_finish(struct mail_index_transaction *t)\n{\n mail_index_transaction_finish_so_far(t);\n\n if (array_is_created(&t->appends))\n mail_index_update_day_headers(t, ioloop_time);\n if (array_is_created(&t->ext_reset_atomic))\n transaction_update_atomic_reset_ids(t);\n /* finally convert all sequences to UIDs before we write them,\n but after we've checked and removed conflicts */\n mail_index_transaction_convert_to_uids(t);\n\n /* and kind of ugly way to update highest modseq */\n if (t->min_highest_modseq != 0)\n mail_index_update_modseq(t, 0, t->min_highest_modseq);\n}\n" (comment) "/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */" (preproc_include) "#include "lib.h"\n" (#include) "#include" (string_literal) ""lib.h"" (") """ (string_content) "lib.h" (") """ (preproc_include) "#include "array.h"\n" (#include) "#include" (string_literal) ""array.h"" (") """ (string_content) "array.h" (") """ (preproc_include) "#include "ioloop.h"\n" (#include) "#include" (string_literal) ""ioloop.h"" (") """ (string_content) "ioloop.h" (") """ (preproc_include) "#include "mail-index-private.h"\n" (#include) "#include" (string_literal) ""mail-index-private.h"" (") """ (string_content) "mail-index-private.h" (") """ (preproc_include) "#include "mail-index-modseq.h"\n" (#include) "#include" (string_literal) ""mail-index-modseq.h"" (") """ (string_content) "mail-index-modseq.h" (") """ (preproc_include) "#include "mail-index-transaction-private.h"\n" (#include) "#include" (string_literal) ""mail-index-transaction-private.h"" (") """ (string_content) "mail-index-transaction-private.h" (") """ (function_definition) "int mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n const struct mail_transaction_expunge_guid *e2)\n{\n if (e1->uid < e2->uid)\n return -1;\n else if (e1->uid > e2->uid)\n return 1;\n else\n return 0;\n}" (primitive_type) "int" (function_declarator) "mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n const struct mail_transaction_expunge_guid *e2)" (identifier) "mail_transaction_expunge_guid_cmp" (parameter_list) "(const struct mail_transaction_expunge_guid *e1,\n const struct mail_transaction_expunge_guid *e2)" (() "(" (parameter_declaration) "const struct mail_transaction_expunge_guid *e1" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_transaction_expunge_guid" (struct) "struct" (type_identifier) "mail_transaction_expunge_guid" (pointer_declarator) "*e1" (*) "*" (identifier) "e1" (,) "," (parameter_declaration) "const struct mail_transaction_expunge_guid *e2" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_transaction_expunge_guid" (struct) "struct" (type_identifier) "mail_transaction_expunge_guid" (pointer_declarator) "*e2" (*) "*" (identifier) "e2" ()) ")" (compound_statement) "{\n if (e1->uid < e2->uid)\n return -1;\n else if (e1->uid > e2->uid)\n return 1;\n else\n return 0;\n}" ({) "{" (if_statement) "if (e1->uid < e2->uid)\n return -1;\n else if (e1->uid > e2->uid)\n return 1;\n else\n return 0;" (if) "if" (parenthesized_expression) "(e1->uid < e2->uid)" (() "(" (binary_expression) "e1->uid < e2->uid" (field_expression) "e1->uid" (identifier) "e1" (->) "->" (field_identifier) "uid" (<) "<" (field_expression) "e2->uid" (identifier) "e2" (->) "->" (field_identifier) "uid" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (else_clause) "else if (e1->uid > e2->uid)\n return 1;\n else\n return 0;" (else) "else" (if_statement) "if (e1->uid > e2->uid)\n return 1;\n else\n return 0;" (if) "if" (parenthesized_expression) "(e1->uid > e2->uid)" (() "(" (binary_expression) "e1->uid > e2->uid" (field_expression) "e1->uid" (identifier) "e1" (->) "->" (field_identifier) "uid" (>) ">" (field_expression) "e2->uid" (identifier) "e2" (->) "->" (field_identifier) "uid" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (else_clause) "else\n return 0;" (else) "else" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void mail_index_transaction_sort_expunges(struct mail_index_transaction *t)\n{\n if (!t->expunges_nonsorted)\n return;\n\n array_sort(&t->expunges, mail_transaction_expunge_guid_cmp);\n t->expunges_nonsorted = FALSE;\n}" (primitive_type) "void" (function_declarator) "mail_index_transaction_sort_expunges(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_sort_expunges" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n if (!t->expunges_nonsorted)\n return;\n\n array_sort(&t->expunges, mail_transaction_expunge_guid_cmp);\n t->expunges_nonsorted = FALSE;\n}" ({) "{" (if_statement) "if (!t->expunges_nonsorted)\n return;" (if) "if" (parenthesized_expression) "(!t->expunges_nonsorted)" (() "(" (unary_expression) "!t->expunges_nonsorted" (!) "!" (field_expression) "t->expunges_nonsorted" (identifier) "t" (->) "->" (field_identifier) "expunges_nonsorted" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "array_sort(&t->expunges, mail_transaction_expunge_guid_cmp);" (call_expression) "array_sort(&t->expunges, mail_transaction_expunge_guid_cmp)" (identifier) "array_sort" (argument_list) "(&t->expunges, mail_transaction_expunge_guid_cmp)" (() "(" (pointer_expression) "&t->expunges" (&) "&" (field_expression) "t->expunges" (identifier) "t" (->) "->" (field_identifier) "expunges" (,) "," (identifier) "mail_transaction_expunge_guid_cmp" ()) ")" (;) ";" (expression_statement) "t->expunges_nonsorted = FALSE;" (assignment_expression) "t->expunges_nonsorted = FALSE" (field_expression) "t->expunges_nonsorted" (identifier) "t" (->) "->" (field_identifier) "expunges_nonsorted" (=) "=" (false) "FALSE" (;) ";" (}) "}" (function_definition) "static void\next_reset_update_atomic(struct mail_index_transaction *t,\n uint32_t ext_id, uint32_t expected_reset_id)\n{\n const struct mail_index_ext *map_ext;\n struct mail_transaction_ext_reset *reset;\n uint32_t idx, reset_id;\n\n if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n /* new extension */\n reset_id = 1;\n } else {\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }\n if (reset_id != expected_reset_id) {\n /* ignore this extension update */\n mail_index_ext_set_reset_id(t, ext_id, 0);\n return;\n }\n\n if (reset_id == 0)\n reset_id++;\n\n array_idx_set(&t->ext_reset_ids, ext_id, &reset_id);\n\n /* reseting existing data is optional */\n if (array_is_created(&t->ext_resets)) {\n reset = array_idx_modifiable(&t->ext_resets, ext_id);\n if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "ext_reset_update_atomic(struct mail_index_transaction *t,\n uint32_t ext_id, uint32_t expected_reset_id)" (identifier) "ext_reset_update_atomic" (parameter_list) "(struct mail_index_transaction *t,\n uint32_t ext_id, uint32_t expected_reset_id)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "uint32_t ext_id" (primitive_type) "uint32_t" (identifier) "ext_id" (,) "," (parameter_declaration) "uint32_t expected_reset_id" (primitive_type) "uint32_t" (identifier) "expected_reset_id" ()) ")" (compound_statement) "{\n const struct mail_index_ext *map_ext;\n struct mail_transaction_ext_reset *reset;\n uint32_t idx, reset_id;\n\n if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n /* new extension */\n reset_id = 1;\n } else {\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }\n if (reset_id != expected_reset_id) {\n /* ignore this extension update */\n mail_index_ext_set_reset_id(t, ext_id, 0);\n return;\n }\n\n if (reset_id == 0)\n reset_id++;\n\n array_idx_set(&t->ext_reset_ids, ext_id, &reset_id);\n\n /* reseting existing data is optional */\n if (array_is_created(&t->ext_resets)) {\n reset = array_idx_modifiable(&t->ext_resets, ext_id);\n if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;\n }\n}" ({) "{" (declaration) "const struct mail_index_ext *map_ext;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_index_ext" (struct) "struct" (type_identifier) "mail_index_ext" (pointer_declarator) "*map_ext" (*) "*" (identifier) "map_ext" (;) ";" (declaration) "struct mail_transaction_ext_reset *reset;" (struct_specifier) "struct mail_transaction_ext_reset" (struct) "struct" (type_identifier) "mail_transaction_ext_reset" (pointer_declarator) "*reset" (*) "*" (identifier) "reset" (;) ";" (declaration) "uint32_t idx, reset_id;" (primitive_type) "uint32_t" (identifier) "idx" (,) "," (identifier) "reset_id" (;) ";" (if_statement) "if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n /* new extension */\n reset_id = 1;\n } else {\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }" (if) "if" (parenthesized_expression) "(!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx))" (() "(" (unary_expression) "!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)" (!) "!" (call_expression) "mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)" (identifier) "mail_index_map_get_ext_idx" (argument_list) "(t->view->index->map, ext_id, &idx)" (() "(" (field_expression) "t->view->index->map" (field_expression) "t->view->index" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (->) "->" (field_identifier) "index" (->) "->" (field_identifier) "map" (,) "," (identifier) "ext_id" (,) "," (pointer_expression) "&idx" (&) "&" (identifier) "idx" ()) ")" ()) ")" (compound_statement) "{\n /* new extension */\n reset_id = 1;\n }" ({) "{" (comment) "/* new extension */" (expression_statement) "reset_id = 1;" (assignment_expression) "reset_id = 1" (identifier) "reset_id" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else {\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }" (else) "else" (compound_statement) "{\n map_ext = array_idx(&t->view->index->map->extensions, idx);\n reset_id = map_ext->reset_id + 1;\n }" ({) "{" (expression_statement) "map_ext = array_idx(&t->view->index->map->extensions, idx);" (assignment_expression) "map_ext = array_idx(&t->view->index->map->extensions, idx)" (identifier) "map_ext" (=) "=" (call_expression) "array_idx(&t->view->index->map->extensions, idx)" (identifier) "array_idx" (argument_list) "(&t->view->index->map->extensions, idx)" (() "(" (pointer_expression) "&t->view->index->map->extensions" (&) "&" (field_expression) "t->view->index->map->extensions" (field_expression) "t->view->index->map" (field_expression) "t->view->index" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (->) "->" (field_identifier) "index" (->) "->" (field_identifier) "map" (->) "->" (field_identifier) "extensions" (,) "," (identifier) "idx" ()) ")" (;) ";" (expression_statement) "reset_id = map_ext->reset_id + 1;" (assignment_expression) "reset_id = map_ext->reset_id + 1" (identifier) "reset_id" (=) "=" (binary_expression) "map_ext->reset_id + 1" (field_expression) "map_ext->reset_id" (identifier) "map_ext" (->) "->" (field_identifier) "reset_id" (+) "+" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (reset_id != expected_reset_id) {\n /* ignore this extension update */\n mail_index_ext_set_reset_id(t, ext_id, 0);\n return;\n }" (if) "if" (parenthesized_expression) "(reset_id != expected_reset_id)" (() "(" (binary_expression) "reset_id != expected_reset_id" (identifier) "reset_id" (!=) "!=" (identifier) "expected_reset_id" ()) ")" (compound_statement) "{\n /* ignore this extension update */\n mail_index_ext_set_reset_id(t, ext_id, 0);\n return;\n }" ({) "{" (comment) "/* ignore this extension update */" (expression_statement) "mail_index_ext_set_reset_id(t, ext_id, 0);" (call_expression) "mail_index_ext_set_reset_id(t, ext_id, 0)" (identifier) "mail_index_ext_set_reset_id" (argument_list) "(t, ext_id, 0)" (() "(" (identifier) "t" (,) "," (identifier) "ext_id" (,) "," (number_literal) "0" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (if_statement) "if (reset_id == 0)\n reset_id++;" (if) "if" (parenthesized_expression) "(reset_id == 0)" (() "(" (binary_expression) "reset_id == 0" (identifier) "reset_id" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "reset_id++;" (update_expression) "reset_id++" (identifier) "reset_id" (++) "++" (;) ";" (expression_statement) "array_idx_set(&t->ext_reset_ids, ext_id, &reset_id);" (call_expression) "array_idx_set(&t->ext_reset_ids, ext_id, &reset_id)" (identifier) "array_idx_set" (argument_list) "(&t->ext_reset_ids, ext_id, &reset_id)" (() "(" (pointer_expression) "&t->ext_reset_ids" (&) "&" (field_expression) "t->ext_reset_ids" (identifier) "t" (->) "->" (field_identifier) "ext_reset_ids" (,) "," (identifier) "ext_id" (,) "," (pointer_expression) "&reset_id" (&) "&" (identifier) "reset_id" ()) ")" (;) ";" (comment) "/* reseting existing data is optional */" (if_statement) "if (array_is_created(&t->ext_resets)) {\n reset = array_idx_modifiable(&t->ext_resets, ext_id);\n if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;\n }" (if) "if" (parenthesized_expression) "(array_is_created(&t->ext_resets))" (() "(" (call_expression) "array_is_created(&t->ext_resets)" (identifier) "array_is_created" (argument_list) "(&t->ext_resets)" (() "(" (pointer_expression) "&t->ext_resets" (&) "&" (field_expression) "t->ext_resets" (identifier) "t" (->) "->" (field_identifier) "ext_resets" ()) ")" ()) ")" (compound_statement) "{\n reset = array_idx_modifiable(&t->ext_resets, ext_id);\n if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;\n }" ({) "{" (expression_statement) "reset = array_idx_modifiable(&t->ext_resets, ext_id);" (assignment_expression) "reset = array_idx_modifiable(&t->ext_resets, ext_id)" (identifier) "reset" (=) "=" (call_expression) "array_idx_modifiable(&t->ext_resets, ext_id)" (identifier) "array_idx_modifiable" (argument_list) "(&t->ext_resets, ext_id)" (() "(" (pointer_expression) "&t->ext_resets" (&) "&" (field_expression) "t->ext_resets" (identifier) "t" (->) "->" (field_identifier) "ext_resets" (,) "," (identifier) "ext_id" ()) ")" (;) ";" (if_statement) "if (reset->new_reset_id == (uint32_t)-1)\n reset->new_reset_id = reset_id;" (if) "if" (parenthesized_expression) "(reset->new_reset_id == (uint32_t)-1)" (() "(" (binary_expression) "reset->new_reset_id == (uint32_t)-1" (field_expression) "reset->new_reset_id" (identifier) "reset" (->) "->" (field_identifier) "new_reset_id" (==) "==" (cast_expression) "(uint32_t)-1" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (number_literal) "-1" ()) ")" (expression_statement) "reset->new_reset_id = reset_id;" (assignment_expression) "reset->new_reset_id = reset_id" (field_expression) "reset->new_reset_id" (identifier) "reset" (->) "->" (field_identifier) "new_reset_id" (=) "=" (identifier) "reset_id" (;) ";" (}) "}" (}) "}" (function_definition) "static void\ntransaction_update_atomic_reset_ids(struct mail_index_transaction *t)\n{\n const uint32_t *expected_reset_ids;\n unsigned int ext_id, count;\n\n if (!array_is_created(&t->ext_reset_atomic))\n return;\n\n expected_reset_ids = array_get(&t->ext_reset_atomic, &count);\n for (ext_id = 0; ext_id < count; ext_id++) {\n if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "transaction_update_atomic_reset_ids(struct mail_index_transaction *t)" (identifier) "transaction_update_atomic_reset_ids" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n const uint32_t *expected_reset_ids;\n unsigned int ext_id, count;\n\n if (!array_is_created(&t->ext_reset_atomic))\n return;\n\n expected_reset_ids = array_get(&t->ext_reset_atomic, &count);\n for (ext_id = 0; ext_id < count; ext_id++) {\n if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }\n }\n}" ({) "{" (declaration) "const uint32_t *expected_reset_ids;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (pointer_declarator) "*expected_reset_ids" (*) "*" (identifier) "expected_reset_ids" (;) ";" (declaration) "unsigned int ext_id, count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "ext_id" (,) "," (identifier) "count" (;) ";" (if_statement) "if (!array_is_created(&t->ext_reset_atomic))\n return;" (if) "if" (parenthesized_expression) "(!array_is_created(&t->ext_reset_atomic))" (() "(" (unary_expression) "!array_is_created(&t->ext_reset_atomic)" (!) "!" (call_expression) "array_is_created(&t->ext_reset_atomic)" (identifier) "array_is_created" (argument_list) "(&t->ext_reset_atomic)" (() "(" (pointer_expression) "&t->ext_reset_atomic" (&) "&" (field_expression) "t->ext_reset_atomic" (identifier) "t" (->) "->" (field_identifier) "ext_reset_atomic" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "expected_reset_ids = array_get(&t->ext_reset_atomic, &count);" (assignment_expression) "expected_reset_ids = array_get(&t->ext_reset_atomic, &count)" (identifier) "expected_reset_ids" (=) "=" (call_expression) "array_get(&t->ext_reset_atomic, &count)" (identifier) "array_get" (argument_list) "(&t->ext_reset_atomic, &count)" (() "(" (pointer_expression) "&t->ext_reset_atomic" (&) "&" (field_expression) "t->ext_reset_atomic" (identifier) "t" (->) "->" (field_identifier) "ext_reset_atomic" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" ()) ")" (;) ";" (for_statement) "for (ext_id = 0; ext_id < count; ext_id++) {\n if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }\n }" (for) "for" (() "(" (assignment_expression) "ext_id = 0" (identifier) "ext_id" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "ext_id < count" (identifier) "ext_id" (<) "<" (identifier) "count" (;) ";" (update_expression) "ext_id++" (identifier) "ext_id" (++) "++" ()) ")" (compound_statement) "{\n if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }\n }" ({) "{" (if_statement) "if (expected_reset_ids[ext_id] != 0) {\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }" (if) "if" (parenthesized_expression) "(expected_reset_ids[ext_id] != 0)" (() "(" (binary_expression) "expected_reset_ids[ext_id] != 0" (subscript_expression) "expected_reset_ids[ext_id]" (identifier) "expected_reset_ids" ([) "[" (identifier) "ext_id" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);\n }" ({) "{" (expression_statement) "ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id]);" (call_expression) "ext_reset_update_atomic(t, ext_id,\n expected_reset_ids[ext_id])" (identifier) "ext_reset_update_atomic" (argument_list) "(t, ext_id,\n expected_reset_ids[ext_id])" (() "(" (identifier) "t" (,) "," (identifier) "ext_id" (,) "," (subscript_expression) "expected_reset_ids[ext_id]" (identifier) "expected_reset_ids" ([) "[" (identifier) "ext_id" (]) "]" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "static unsigned int\nmail_transaction_drop_range(struct mail_index_transaction *t,\n struct mail_index_flag_update update,\n unsigned int update_idx,\n ARRAY_TYPE(seq_range) *keeps)\n{\n const struct seq_range *keep_range;\n unsigned int i, keep_count;\n\n keep_range = array_get(keeps, &keep_count);\n if (keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2) {\n /* evereything is kept */\n return update_idx + 1;\n }\n\n array_delete(&t->updates, update_idx, 1);\n\n /* add back all the updates we want to keep */\n for (i = 0; i < keep_count; i++, update_idx++) {\n update.uid1 = keep_range[i].seq1;\n update.uid2 = keep_range[i].seq2;\n array_insert(&t->updates, update_idx, &update, 1);\n }\n return update_idx;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "mail_transaction_drop_range(struct mail_index_transaction *t,\n struct mail_index_flag_update update,\n unsigned int update_idx,\n ARRAY_TYPE(seq_range) *keeps)" (identifier) "mail_transaction_drop_range" (parameter_list) "(struct mail_index_transaction *t,\n struct mail_index_flag_update update,\n unsigned int update_idx,\n ARRAY_TYPE(seq_range) *keeps)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "struct mail_index_flag_update update" (struct_specifier) "struct mail_index_flag_update" (struct) "struct" (type_identifier) "mail_index_flag_update" (identifier) "update" (,) "," (parameter_declaration) "unsigned int update_idx" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "update_idx" (,) "," (parameter_declaration) "ARRAY_TYPE(seq_range) *keeps" (macro_type_specifier) "ARRAY_TYPE(seq_range)" (identifier) "ARRAY_TYPE" (() "(" (type_descriptor) "seq_range" (type_identifier) "seq_range" ()) ")" (pointer_declarator) "*keeps" (*) "*" (identifier) "keeps" ()) ")" (compound_statement) "{\n const struct seq_range *keep_range;\n unsigned int i, keep_count;\n\n keep_range = array_get(keeps, &keep_count);\n if (keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2) {\n /* evereything is kept */\n return update_idx + 1;\n }\n\n array_delete(&t->updates, update_idx, 1);\n\n /* add back all the updates we want to keep */\n for (i = 0; i < keep_count; i++, update_idx++) {\n update.uid1 = keep_range[i].seq1;\n update.uid2 = keep_range[i].seq2;\n array_insert(&t->updates, update_idx, &update, 1);\n }\n return update_idx;\n}" ({) "{" (declaration) "const struct seq_range *keep_range;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct seq_range" (struct) "struct" (type_identifier) "seq_range" (pointer_declarator) "*keep_range" (*) "*" (identifier) "keep_range" (;) ";" (declaration) "unsigned int i, keep_count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "keep_count" (;) ";" (expression_statement) "keep_range = array_get(keeps, &keep_count);" (assignment_expression) "keep_range = array_get(keeps, &keep_count)" (identifier) "keep_range" (=) "=" (call_expression) "array_get(keeps, &keep_count)" (identifier) "array_get" (argument_list) "(keeps, &keep_count)" (() "(" (identifier) "keeps" (,) "," (pointer_expression) "&keep_count" (&) "&" (identifier) "keep_count" ()) ")" (;) ";" (if_statement) "if (keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2) {\n /* evereything is kept */\n return update_idx + 1;\n }" (if) "if" (parenthesized_expression) "(keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2)" (() "(" (binary_expression) "keep_count == 1 &&\n update.uid1 == keep_range[0].seq1 &&\n update.uid2 == keep_range[0].seq2" (binary_expression) "keep_count == 1 &&\n update.uid1 == keep_range[0].seq1" (binary_expression) "keep_count == 1" (identifier) "keep_count" (==) "==" (number_literal) "1" (&&) "&&" (binary_expression) "update.uid1 == keep_range[0].seq1" (field_expression) "update.uid1" (identifier) "update" (.) "." (field_identifier) "uid1" (==) "==" (field_expression) "keep_range[0].seq1" (subscript_expression) "keep_range[0]" (identifier) "keep_range" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "seq1" (&&) "&&" (binary_expression) "update.uid2 == keep_range[0].seq2" (field_expression) "update.uid2" (identifier) "update" (.) "." (field_identifier) "uid2" (==) "==" (field_expression) "keep_range[0].seq2" (subscript_expression) "keep_range[0]" (identifier) "keep_range" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "seq2" ()) ")" (compound_statement) "{\n /* evereything is kept */\n return update_idx + 1;\n }" ({) "{" (comment) "/* evereything is kept */" (return_statement) "return update_idx + 1;" (return) "return" (binary_expression) "update_idx + 1" (identifier) "update_idx" (+) "+" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "array_delete(&t->updates, update_idx, 1);" (call_expression) "array_delete(&t->updates, update_idx, 1)" (identifier) "array_delete" (argument_list) "(&t->updates, update_idx, 1)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" (,) "," (identifier) "update_idx" (,) "," (number_literal) "1" ()) ")" (;) ";" (comment) "/* add back all the updates we want to keep */" (for_statement) "for (i = 0; i < keep_count; i++, update_idx++) {\n update.uid1 = keep_range[i].seq1;\n update.uid2 = keep_range[i].seq2;\n array_insert(&t->updates, update_idx, &update, 1);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < keep_count" (identifier) "i" (<) "<" (identifier) "keep_count" (;) ";" (comma_expression) "i++, update_idx++" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "update_idx++" (identifier) "update_idx" (++) "++" ()) ")" (compound_statement) "{\n update.uid1 = keep_range[i].seq1;\n update.uid2 = keep_range[i].seq2;\n array_insert(&t->updates, update_idx, &update, 1);\n }" ({) "{" (expression_statement) "update.uid1 = keep_range[i].seq1;" (assignment_expression) "update.uid1 = keep_range[i].seq1" (field_expression) "update.uid1" (identifier) "update" (.) "." (field_identifier) "uid1" (=) "=" (field_expression) "keep_range[i].seq1" (subscript_expression) "keep_range[i]" (identifier) "keep_range" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "seq1" (;) ";" (expression_statement) "update.uid2 = keep_range[i].seq2;" (assignment_expression) "update.uid2 = keep_range[i].seq2" (field_expression) "update.uid2" (identifier) "update" (.) "." (field_identifier) "uid2" (=) "=" (field_expression) "keep_range[i].seq2" (subscript_expression) "keep_range[i]" (identifier) "keep_range" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "seq2" (;) ";" (expression_statement) "array_insert(&t->updates, update_idx, &update, 1);" (call_expression) "array_insert(&t->updates, update_idx, &update, 1)" (identifier) "array_insert" (argument_list) "(&t->updates, update_idx, &update, 1)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" (,) "," (identifier) "update_idx" (,) "," (pointer_expression) "&update" (&) "&" (identifier) "update" (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}" (return_statement) "return update_idx;" (return) "return" (identifier) "update_idx" (;) ";" (}) "}" (function_definition) "static void\nmail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)\n{\n const struct mail_index_flag_update *updates, *u;\n const struct mail_index_record *rec;\n unsigned int i, count;\n ARRAY_TYPE(seq_range) keeps;\n uint32_t seq;\n\n if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n return;\n\n t_array_init(&keeps, 64);\n updates = array_get(&t->updates, &count);\n for (i = 0; i < count; ) {\n /* first get the list of changes to drop */\n u = &updates[i];\n array_clear(&keeps);\n for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }\n i = mail_transaction_drop_range(t, updates[i], i, &keeps);\n updates = array_get(&t->updates, &count);\n }\n\n if (array_count(&t->updates) == 0)\n array_free(&t->updates);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_finish_flag_updates" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n const struct mail_index_flag_update *updates, *u;\n const struct mail_index_record *rec;\n unsigned int i, count;\n ARRAY_TYPE(seq_range) keeps;\n uint32_t seq;\n\n if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n return;\n\n t_array_init(&keeps, 64);\n updates = array_get(&t->updates, &count);\n for (i = 0; i < count; ) {\n /* first get the list of changes to drop */\n u = &updates[i];\n array_clear(&keeps);\n for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }\n i = mail_transaction_drop_range(t, updates[i], i, &keeps);\n updates = array_get(&t->updates, &count);\n }\n\n if (array_count(&t->updates) == 0)\n array_free(&t->updates);\n}" ({) "{" (declaration) "const struct mail_index_flag_update *updates, *u;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_index_flag_update" (struct) "struct" (type_identifier) "mail_index_flag_update" (pointer_declarator) "*updates" (*) "*" (identifier) "updates" (,) "," (pointer_declarator) "*u" (*) "*" (identifier) "u" (;) ";" (declaration) "const struct mail_index_record *rec;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_index_record" (struct) "struct" (type_identifier) "mail_index_record" (pointer_declarator) "*rec" (*) "*" (identifier) "rec" (;) ";" (declaration) "unsigned int i, count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "count" (;) ";" (declaration) "ARRAY_TYPE(seq_range) keeps;" (macro_type_specifier) "ARRAY_TYPE(seq_range)" (identifier) "ARRAY_TYPE" (() "(" (type_descriptor) "seq_range" (type_identifier) "seq_range" ()) ")" (identifier) "keeps" (;) ";" (declaration) "uint32_t seq;" (primitive_type) "uint32_t" (identifier) "seq" (;) ";" (if_statement) "if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n return;" (if) "if" (parenthesized_expression) "(!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))" (() "(" (binary_expression) "!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates)" (unary_expression) "!t->drop_unnecessary_flag_updates" (!) "!" (field_expression) "t->drop_unnecessary_flag_updates" (identifier) "t" (->) "->" (field_identifier) "drop_unnecessary_flag_updates" (||) "||" (unary_expression) "!array_is_created(&t->updates)" (!) "!" (call_expression) "array_is_created(&t->updates)" (identifier) "array_is_created" (argument_list) "(&t->updates)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "t_array_init(&keeps, 64);" (call_expression) "t_array_init(&keeps, 64)" (identifier) "t_array_init" (argument_list) "(&keeps, 64)" (() "(" (pointer_expression) "&keeps" (&) "&" (identifier) "keeps" (,) "," (number_literal) "64" ()) ")" (;) ";" (expression_statement) "updates = array_get(&t->updates, &count);" (assignment_expression) "updates = array_get(&t->updates, &count)" (identifier) "updates" (=) "=" (call_expression) "array_get(&t->updates, &count)" (identifier) "array_get" (argument_list) "(&t->updates, &count)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" ()) ")" (;) ";" (for_statement) "for (i = 0; i < count; ) {\n /* first get the list of changes to drop */\n u = &updates[i];\n array_clear(&keeps);\n for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }\n i = mail_transaction_drop_range(t, updates[i], i, &keeps);\n updates = array_get(&t->updates, &count);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < count" (identifier) "i" (<) "<" (identifier) "count" (;) ";" ()) ")" (compound_statement) "{\n /* first get the list of changes to drop */\n u = &updates[i];\n array_clear(&keeps);\n for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }\n i = mail_transaction_drop_range(t, updates[i], i, &keeps);\n updates = array_get(&t->updates, &count);\n }" ({) "{" (comment) "/* first get the list of changes to drop */" (expression_statement) "u = &updates[i];" (assignment_expression) "u = &updates[i]" (identifier) "u" (=) "=" (pointer_expression) "&updates[i]" (&) "&" (subscript_expression) "updates[i]" (identifier) "updates" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "array_clear(&keeps);" (call_expression) "array_clear(&keeps)" (identifier) "array_clear" (argument_list) "(&keeps)" (() "(" (pointer_expression) "&keeps" (&) "&" (identifier) "keeps" ()) ")" (;) ";" (for_statement) "for (seq = u->uid1; seq <= u->uid2; seq++) {\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }" (for) "for" (() "(" (assignment_expression) "seq = u->uid1" (identifier) "seq" (=) "=" (field_expression) "u->uid1" (identifier) "u" (->) "->" (field_identifier) "uid1" (;) ";" (binary_expression) "seq <= u->uid2" (identifier) "seq" (<=) "<=" (field_expression) "u->uid2" (identifier) "u" (->) "->" (field_identifier) "uid2" (;) ";" (update_expression) "seq++" (identifier) "seq" (++) "++" ()) ")" (compound_statement) "{\n rec = mail_index_lookup(t->view, seq);\n if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }\n }" ({) "{" (expression_statement) "rec = mail_index_lookup(t->view, seq);" (assignment_expression) "rec = mail_index_lookup(t->view, seq)" (identifier) "rec" (=) "=" (call_expression) "mail_index_lookup(t->view, seq)" (identifier) "mail_index_lookup" (argument_list) "(t->view, seq)" (() "(" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (,) "," (identifier) "seq" ()) ")" (;) ";" (if_statement) "if ((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0) {\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }" (if) "if" (parenthesized_expression) "((rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0)" (() "(" (binary_expression) "(rec->flags & u->add_flags) != u->add_flags ||\n (rec->flags & u->remove_flags) != 0" (binary_expression) "(rec->flags & u->add_flags) != u->add_flags" (parenthesized_expression) "(rec->flags & u->add_flags)" (() "(" (binary_expression) "rec->flags & u->add_flags" (field_expression) "rec->flags" (identifier) "rec" (->) "->" (field_identifier) "flags" (&) "&" (field_expression) "u->add_flags" (identifier) "u" (->) "->" (field_identifier) "add_flags" ()) ")" (!=) "!=" (field_expression) "u->add_flags" (identifier) "u" (->) "->" (field_identifier) "add_flags" (||) "||" (binary_expression) "(rec->flags & u->remove_flags) != 0" (parenthesized_expression) "(rec->flags & u->remove_flags)" (() "(" (binary_expression) "rec->flags & u->remove_flags" (field_expression) "rec->flags" (identifier) "rec" (->) "->" (field_identifier) "flags" (&) "&" (field_expression) "u->remove_flags" (identifier) "u" (->) "->" (field_identifier) "remove_flags" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n /* keep this change */\n seq_range_array_add(&keeps, seq);\n }" ({) "{" (comment) "/* keep this change */" (expression_statement) "seq_range_array_add(&keeps, seq);" (call_expression) "seq_range_array_add(&keeps, seq)" (identifier) "seq_range_array_add" (argument_list) "(&keeps, seq)" (() "(" (pointer_expression) "&keeps" (&) "&" (identifier) "keeps" (,) "," (identifier) "seq" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "i = mail_transaction_drop_range(t, updates[i], i, &keeps);" (assignment_expression) "i = mail_transaction_drop_range(t, updates[i], i, &keeps)" (identifier) "i" (=) "=" (call_expression) "mail_transaction_drop_range(t, updates[i], i, &keeps)" (identifier) "mail_transaction_drop_range" (argument_list) "(t, updates[i], i, &keeps)" (() "(" (identifier) "t" (,) "," (subscript_expression) "updates[i]" (identifier) "updates" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "i" (,) "," (pointer_expression) "&keeps" (&) "&" (identifier) "keeps" ()) ")" (;) ";" (expression_statement) "updates = array_get(&t->updates, &count);" (assignment_expression) "updates = array_get(&t->updates, &count)" (identifier) "updates" (=) "=" (call_expression) "array_get(&t->updates, &count)" (identifier) "array_get" (argument_list) "(&t->updates, &count)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" ()) ")" (;) ";" (}) "}" (if_statement) "if (array_count(&t->updates) == 0)\n array_free(&t->updates);" (if) "if" (parenthesized_expression) "(array_count(&t->updates) == 0)" (() "(" (binary_expression) "array_count(&t->updates) == 0" (call_expression) "array_count(&t->updates)" (identifier) "array_count" (argument_list) "(&t->updates)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" ()) ")" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "array_free(&t->updates);" (call_expression) "array_free(&t->updates)" (identifier) "array_free" (argument_list) "(&t->updates)" (() "(" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" ()) ")" (;) ";" (}) "}" (function_definition) "static void\nmail_index_transaction_check_conflicts(struct mail_index_transaction *t)\n{\n uint32_t seq;\n bool ret1, ret2;\n\n i_assert(t->max_modseq != 0);\n i_assert(t->conflict_seqs != NULL);\n\n if (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n /* no conflicts possible */\n return;\n }\n if (t->min_flagupdate_seq == 0) {\n /* no flag updates */\n return;\n }\n\n for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }\n }\n mail_index_transaction_set_log_updates(t);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mail_index_transaction_check_conflicts(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_check_conflicts" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n uint32_t seq;\n bool ret1, ret2;\n\n i_assert(t->max_modseq != 0);\n i_assert(t->conflict_seqs != NULL);\n\n if (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n /* no conflicts possible */\n return;\n }\n if (t->min_flagupdate_seq == 0) {\n /* no flag updates */\n return;\n }\n\n for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }\n }\n mail_index_transaction_set_log_updates(t);\n}" ({) "{" (declaration) "uint32_t seq;" (primitive_type) "uint32_t" (identifier) "seq" (;) ";" (declaration) "bool ret1, ret2;" (primitive_type) "bool" (identifier) "ret1" (,) "," (identifier) "ret2" (;) ";" (expression_statement) "i_assert(t->max_modseq != 0);" (call_expression) "i_assert(t->max_modseq != 0)" (identifier) "i_assert" (argument_list) "(t->max_modseq != 0)" (() "(" (binary_expression) "t->max_modseq != 0" (field_expression) "t->max_modseq" (identifier) "t" (->) "->" (field_identifier) "max_modseq" (!=) "!=" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "i_assert(t->conflict_seqs != NULL);" (call_expression) "i_assert(t->conflict_seqs != NULL)" (identifier) "i_assert" (argument_list) "(t->conflict_seqs != NULL)" (() "(" (binary_expression) "t->conflict_seqs != NULL" (field_expression) "t->conflict_seqs" (identifier) "t" (->) "->" (field_identifier) "conflict_seqs" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n /* no conflicts possible */\n return;\n }" (if) "if" (parenthesized_expression) "(t->max_modseq == mail_index_modseq_get_highest(t->view))" (() "(" (binary_expression) "t->max_modseq == mail_index_modseq_get_highest(t->view)" (field_expression) "t->max_modseq" (identifier) "t" (->) "->" (field_identifier) "max_modseq" (==) "==" (call_expression) "mail_index_modseq_get_highest(t->view)" (identifier) "mail_index_modseq_get_highest" (argument_list) "(t->view)" (() "(" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" ()) ")" ()) ")" (compound_statement) "{\n /* no conflicts possible */\n return;\n }" ({) "{" (comment) "/* no conflicts possible */" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (if_statement) "if (t->min_flagupdate_seq == 0) {\n /* no flag updates */\n return;\n }" (if) "if" (parenthesized_expression) "(t->min_flagupdate_seq == 0)" (() "(" (binary_expression) "t->min_flagupdate_seq == 0" (field_expression) "t->min_flagupdate_seq" (identifier) "t" (->) "->" (field_identifier) "min_flagupdate_seq" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n /* no flag updates */\n return;\n }" ({) "{" (comment) "/* no flag updates */" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (for_statement) "for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }\n }" (for) "for" (() "(" (assignment_expression) "seq = t->min_flagupdate_seq" (identifier) "seq" (=) "=" (field_expression) "t->min_flagupdate_seq" (identifier) "t" (->) "->" (field_identifier) "min_flagupdate_seq" (;) ";" (binary_expression) "seq <= t->max_flagupdate_seq" (identifier) "seq" (<=) "<=" (field_expression) "t->max_flagupdate_seq" (identifier) "t" (->) "->" (field_identifier) "max_flagupdate_seq" (;) ";" (update_expression) "seq++" (identifier) "seq" (++) "++" ()) ")" (compound_statement) "{\n if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }\n }" ({) "{" (if_statement) "if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }" (if) "if" (parenthesized_expression) "(mail_index_modseq_lookup(t->view, seq) > t->max_modseq)" (() "(" (binary_expression) "mail_index_modseq_lookup(t->view, seq) > t->max_modseq" (call_expression) "mail_index_modseq_lookup(t->view, seq)" (identifier) "mail_index_modseq_lookup" (argument_list) "(t->view, seq)" (() "(" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (,) "," (identifier) "seq" ()) ")" (>) ">" (field_expression) "t->max_modseq" (identifier) "t" (->) "->" (field_identifier) "max_modseq" ()) ")" (compound_statement) "{\n ret1 = mail_index_cancel_flag_updates(t, seq);\n ret2 = mail_index_cancel_keyword_updates(t, seq);\n if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }\n }" ({) "{" (expression_statement) "ret1 = mail_index_cancel_flag_updates(t, seq);" (assignment_expression) "ret1 = mail_index_cancel_flag_updates(t, seq)" (identifier) "ret1" (=) "=" (call_expression) "mail_index_cancel_flag_updates(t, seq)" (identifier) "mail_index_cancel_flag_updates" (argument_list) "(t, seq)" (() "(" (identifier) "t" (,) "," (identifier) "seq" ()) ")" (;) ";" (expression_statement) "ret2 = mail_index_cancel_keyword_updates(t, seq);" (assignment_expression) "ret2 = mail_index_cancel_keyword_updates(t, seq)" (identifier) "ret2" (=) "=" (call_expression) "mail_index_cancel_keyword_updates(t, seq)" (identifier) "mail_index_cancel_keyword_updates" (argument_list) "(t, seq)" (() "(" (identifier) "t" (,) "," (identifier) "seq" ()) ")" (;) ";" (if_statement) "if (ret1 || ret2) {\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }" (if) "if" (parenthesized_expression) "(ret1 || ret2)" (() "(" (binary_expression) "ret1 || ret2" (identifier) "ret1" (||) "||" (identifier) "ret2" ()) ")" (compound_statement) "{\n seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);\n }" ({) "{" (expression_statement) "seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq);" (call_expression) "seq_range_array_add_with_init(t->conflict_seqs,\n 16, seq)" (identifier) "seq_range_array_add_with_init" (argument_list) "(t->conflict_seqs,\n 16, seq)" (() "(" (field_expression) "t->conflict_seqs" (identifier) "t" (->) "->" (field_identifier) "conflict_seqs" (,) "," (number_literal) "16" (,) "," (identifier) "seq" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "mail_index_transaction_set_log_updates(t);" (call_expression) "mail_index_transaction_set_log_updates(t)" (identifier) "mail_index_transaction_set_log_updates" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (}) "}" (function_definition) "static uint32_t\nmail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)\n{\n const struct mail_index_record *rec;\n\n i_assert(seq > 0);\n\n if (seq >= t->first_new_seq)\n rec = mail_index_transaction_lookup(t, seq);\n else {\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }\n i_assert(rec->uid != 0);\n return rec->uid;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint32_t" (function_declarator) "mail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)" (identifier) "mail_index_transaction_get_uid" (parameter_list) "(struct mail_index_transaction *t, uint32_t seq)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "uint32_t seq" (primitive_type) "uint32_t" (identifier) "seq" ()) ")" (compound_statement) "{\n const struct mail_index_record *rec;\n\n i_assert(seq > 0);\n\n if (seq >= t->first_new_seq)\n rec = mail_index_transaction_lookup(t, seq);\n else {\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }\n i_assert(rec->uid != 0);\n return rec->uid;\n}" ({) "{" (declaration) "const struct mail_index_record *rec;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct mail_index_record" (struct) "struct" (type_identifier) "mail_index_record" (pointer_declarator) "*rec" (*) "*" (identifier) "rec" (;) ";" (expression_statement) "i_assert(seq > 0);" (call_expression) "i_assert(seq > 0)" (identifier) "i_assert" (argument_list) "(seq > 0)" (() "(" (binary_expression) "seq > 0" (identifier) "seq" (>) ">" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (seq >= t->first_new_seq)\n rec = mail_index_transaction_lookup(t, seq);\n else {\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }" (if) "if" (parenthesized_expression) "(seq >= t->first_new_seq)" (() "(" (binary_expression) "seq >= t->first_new_seq" (identifier) "seq" (>=) ">=" (field_expression) "t->first_new_seq" (identifier) "t" (->) "->" (field_identifier) "first_new_seq" ()) ")" (expression_statement) "rec = mail_index_transaction_lookup(t, seq);" (assignment_expression) "rec = mail_index_transaction_lookup(t, seq)" (identifier) "rec" (=) "=" (call_expression) "mail_index_transaction_lookup(t, seq)" (identifier) "mail_index_transaction_lookup" (argument_list) "(t, seq)" (() "(" (identifier) "t" (,) "," (identifier) "seq" ()) ")" (;) ";" (else_clause) "else {\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }" (else) "else" (compound_statement) "{\n i_assert(seq <= t->view->map->hdr.messages_count);\n rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n }" ({) "{" (expression_statement) "i_assert(seq <= t->view->map->hdr.messages_count);" (call_expression) "i_assert(seq <= t->view->map->hdr.messages_count)" (identifier) "i_assert" (argument_list) "(seq <= t->view->map->hdr.messages_count)" (() "(" (binary_expression) "seq <= t->view->map->hdr.messages_count" (identifier) "seq" (<=) "<=" (field_expression) "t->view->map->hdr.messages_count" (field_expression) "t->view->map->hdr" (field_expression) "t->view->map" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (->) "->" (field_identifier) "map" (->) "->" (field_identifier) "hdr" (.) "." (field_identifier) "messages_count" ()) ")" (;) ";" (expression_statement) "rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);" (assignment_expression) "rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq)" (identifier) "rec" (=) "=" (call_expression) "MAIL_INDEX_REC_AT_SEQ(t->view->map, seq)" (identifier) "MAIL_INDEX_REC_AT_SEQ" (argument_list) "(t->view->map, seq)" (() "(" (field_expression) "t->view->map" (field_expression) "t->view" (identifier) "t" (->) "->" (field_identifier) "view" (->) "->" (field_identifier) "map" (,) "," (identifier) "seq" ()) ")" (;) ";" (}) "}" (expression_statement) "i_assert(rec->uid != 0);" (call_expression) "i_assert(rec->uid != 0)" (identifier) "i_assert" (argument_list) "(rec->uid != 0)" (() "(" (binary_expression) "rec->uid != 0" (field_expression) "rec->uid" (identifier) "rec" (->) "->" (field_identifier) "uid" (!=) "!=" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return rec->uid;" (return) "return" (field_expression) "rec->uid" (identifier) "rec" (->) "->" (field_identifier) "uid" (;) ";" (}) "}" (function_definition) "static void\nmail_index_convert_to_uids(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_array) *array)\n{\n uint32_t *seq;\n unsigned int i, count;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n seq = array_idx_modifiable(array, i);\n *seq = mail_index_transaction_get_uid(t, *seq);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mail_index_convert_to_uids(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_array) *array)" (identifier) "mail_index_convert_to_uids" (parameter_list) "(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_array) *array)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "ARRAY_TYPE(seq_array) *array" (macro_type_specifier) "ARRAY_TYPE(seq_array)" (identifier) "ARRAY_TYPE" (() "(" (type_descriptor) "seq_array" (type_identifier) "seq_array" ()) ")" (pointer_declarator) "*array" (*) "*" (identifier) "array" ()) ")" (compound_statement) "{\n uint32_t *seq;\n unsigned int i, count;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n seq = array_idx_modifiable(array, i);\n *seq = mail_index_transaction_get_uid(t, *seq);\n }\n}" ({) "{" (declaration) "uint32_t *seq;" (primitive_type) "uint32_t" (pointer_declarator) "*seq" (*) "*" (identifier) "seq" (;) ";" (declaration) "unsigned int i, count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "count" (;) ";" (if_statement) "if (!array_is_created(array))\n return;" (if) "if" (parenthesized_expression) "(!array_is_created(array))" (() "(" (unary_expression) "!array_is_created(array)" (!) "!" (call_expression) "array_is_created(array)" (identifier) "array_is_created" (argument_list) "(array)" (() "(" (identifier) "array" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "count = array_count(array);" (assignment_expression) "count = array_count(array)" (identifier) "count" (=) "=" (call_expression) "array_count(array)" (identifier) "array_count" (argument_list) "(array)" (() "(" (identifier) "array" ()) ")" (;) ";" (for_statement) "for (i = 0; i < count; i++) {\n seq = array_idx_modifiable(array, i);\n *seq = mail_index_transaction_get_uid(t, *seq);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < count" (identifier) "i" (<) "<" (identifier) "count" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n seq = array_idx_modifiable(array, i);\n *seq = mail_index_transaction_get_uid(t, *seq);\n }" ({) "{" (expression_statement) "seq = array_idx_modifiable(array, i);" (assignment_expression) "seq = array_idx_modifiable(array, i)" (identifier) "seq" (=) "=" (call_expression) "array_idx_modifiable(array, i)" (identifier) "array_idx_modifiable" (argument_list) "(array, i)" (() "(" (identifier) "array" (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "*seq = mail_index_transaction_get_uid(t, *seq);" (assignment_expression) "*seq = mail_index_transaction_get_uid(t, *seq)" (pointer_expression) "*seq" (*) "*" (identifier) "seq" (=) "=" (call_expression) "mail_index_transaction_get_uid(t, *seq)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, *seq)" (() "(" (identifier) "t" (,) "," (pointer_expression) "*seq" (*) "*" (identifier) "seq" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static uint32_t\nget_nonexpunged_uid2(struct mail_index_transaction *t,\n uint32_t uid1, uint32_t seq1)\n{\n seq1++;\n\n while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n seq1++;\n uid1++;\n }\n return uid1;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint32_t" (function_declarator) "get_nonexpunged_uid2(struct mail_index_transaction *t,\n uint32_t uid1, uint32_t seq1)" (identifier) "get_nonexpunged_uid2" (parameter_list) "(struct mail_index_transaction *t,\n uint32_t uid1, uint32_t seq1)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "uint32_t uid1" (primitive_type) "uint32_t" (identifier) "uid1" (,) "," (parameter_declaration) "uint32_t seq1" (primitive_type) "uint32_t" (identifier) "seq1" ()) ")" (compound_statement) "{\n seq1++;\n\n while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n seq1++;\n uid1++;\n }\n return uid1;\n}" ({) "{" (expression_statement) "seq1++;" (update_expression) "seq1++" (identifier) "seq1" (++) "++" (;) ";" (while_statement) "while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n seq1++;\n uid1++;\n }" (while) "while" (parenthesized_expression) "(mail_index_transaction_get_uid(t, seq1) == uid1 + 1)" (() "(" (binary_expression) "mail_index_transaction_get_uid(t, seq1) == uid1 + 1" (call_expression) "mail_index_transaction_get_uid(t, seq1)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, seq1)" (() "(" (identifier) "t" (,) "," (identifier) "seq1" ()) ")" (==) "==" (binary_expression) "uid1 + 1" (identifier) "uid1" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n seq1++;\n uid1++;\n }" ({) "{" (expression_statement) "seq1++;" (update_expression) "seq1++" (identifier) "seq1" (++) "++" (;) ";" (expression_statement) "uid1++;" (update_expression) "uid1++" (identifier) "uid1" (++) "++" (;) ";" (}) "}" (return_statement) "return uid1;" (return) "return" (identifier) "uid1" (;) ";" (}) "}" (function_definition) "void mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_range) *array)\n{\n struct seq_range *range, *new_range;\n unsigned int i, count;\n uint32_t uid1, uid2, prev_uid = 0;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n range = array_idx_modifiable(array, i);\n\n uid1 = mail_index_transaction_get_uid(t, range->seq1);\n uid2 = mail_index_transaction_get_uid(t, range->seq2);\n i_assert(uid1 > prev_uid);\n if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }\n }\n}" (primitive_type) "void" (function_declarator) "mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_range) *array)" (identifier) "mail_index_transaction_seq_range_to_uid" (parameter_list) "(struct mail_index_transaction *t,\n ARRAY_TYPE(seq_range) *array)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "ARRAY_TYPE(seq_range) *array" (macro_type_specifier) "ARRAY_TYPE(seq_range)" (identifier) "ARRAY_TYPE" (() "(" (type_descriptor) "seq_range" (type_identifier) "seq_range" ()) ")" (pointer_declarator) "*array" (*) "*" (identifier) "array" ()) ")" (compound_statement) "{\n struct seq_range *range, *new_range;\n unsigned int i, count;\n uint32_t uid1, uid2, prev_uid = 0;\n\n if (!array_is_created(array))\n return;\n\n count = array_count(array);\n for (i = 0; i < count; i++) {\n range = array_idx_modifiable(array, i);\n\n uid1 = mail_index_transaction_get_uid(t, range->seq1);\n uid2 = mail_index_transaction_get_uid(t, range->seq2);\n i_assert(uid1 > prev_uid);\n if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }\n }\n}" ({) "{" (declaration) "struct seq_range *range, *new_range;" (struct_specifier) "struct seq_range" (struct) "struct" (type_identifier) "seq_range" (pointer_declarator) "*range" (*) "*" (identifier) "range" (,) "," (pointer_declarator) "*new_range" (*) "*" (identifier) "new_range" (;) ";" (declaration) "unsigned int i, count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "count" (;) ";" (declaration) "uint32_t uid1, uid2, prev_uid = 0;" (primitive_type) "uint32_t" (identifier) "uid1" (,) "," (identifier) "uid2" (,) "," (init_declarator) "prev_uid = 0" (identifier) "prev_uid" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (!array_is_created(array))\n return;" (if) "if" (parenthesized_expression) "(!array_is_created(array))" (() "(" (unary_expression) "!array_is_created(array)" (!) "!" (call_expression) "array_is_created(array)" (identifier) "array_is_created" (argument_list) "(array)" (() "(" (identifier) "array" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "count = array_count(array);" (assignment_expression) "count = array_count(array)" (identifier) "count" (=) "=" (call_expression) "array_count(array)" (identifier) "array_count" (argument_list) "(array)" (() "(" (identifier) "array" ()) ")" (;) ";" (for_statement) "for (i = 0; i < count; i++) {\n range = array_idx_modifiable(array, i);\n\n uid1 = mail_index_transaction_get_uid(t, range->seq1);\n uid2 = mail_index_transaction_get_uid(t, range->seq2);\n i_assert(uid1 > prev_uid);\n if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < count" (identifier) "i" (<) "<" (identifier) "count" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n range = array_idx_modifiable(array, i);\n\n uid1 = mail_index_transaction_get_uid(t, range->seq1);\n uid2 = mail_index_transaction_get_uid(t, range->seq2);\n i_assert(uid1 > prev_uid);\n if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }\n }" ({) "{" (expression_statement) "range = array_idx_modifiable(array, i);" (assignment_expression) "range = array_idx_modifiable(array, i)" (identifier) "range" (=) "=" (call_expression) "array_idx_modifiable(array, i)" (identifier) "array_idx_modifiable" (argument_list) "(array, i)" (() "(" (identifier) "array" (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "uid1 = mail_index_transaction_get_uid(t, range->seq1);" (assignment_expression) "uid1 = mail_index_transaction_get_uid(t, range->seq1)" (identifier) "uid1" (=) "=" (call_expression) "mail_index_transaction_get_uid(t, range->seq1)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, range->seq1)" (() "(" (identifier) "t" (,) "," (field_expression) "range->seq1" (identifier) "range" (->) "->" (field_identifier) "seq1" ()) ")" (;) ";" (expression_statement) "uid2 = mail_index_transaction_get_uid(t, range->seq2);" (assignment_expression) "uid2 = mail_index_transaction_get_uid(t, range->seq2)" (identifier) "uid2" (=) "=" (call_expression) "mail_index_transaction_get_uid(t, range->seq2)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, range->seq2)" (() "(" (identifier) "t" (,) "," (field_expression) "range->seq2" (identifier) "range" (->) "->" (field_identifier) "seq2" ()) ")" (;) ";" (expression_statement) "i_assert(uid1 > prev_uid);" (call_expression) "i_assert(uid1 > prev_uid)" (identifier) "i_assert" (argument_list) "(uid1 > prev_uid)" (() "(" (binary_expression) "uid1 > prev_uid" (identifier) "uid1" (>) ">" (identifier) "prev_uid" ()) ")" (;) ";" (if_statement) "if (uid2 - uid1 == range->seq2 - range->seq1) {\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n } else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }" (if) "if" (parenthesized_expression) "(uid2 - uid1 == range->seq2 - range->seq1)" (() "(" (binary_expression) "uid2 - uid1 == range->seq2 - range->seq1" (binary_expression) "uid2 - uid1" (identifier) "uid2" (-) "-" (identifier) "uid1" (==) "==" (binary_expression) "range->seq2 - range->seq1" (field_expression) "range->seq2" (identifier) "range" (->) "->" (field_identifier) "seq2" (-) "-" (field_expression) "range->seq1" (identifier) "range" (->) "->" (field_identifier) "seq1" ()) ")" (compound_statement) "{\n /* simple conversion */\n range->seq1 = uid1;\n range->seq2 = uid2;\n prev_uid = uid2;\n }" ({) "{" (comment) "/* simple conversion */" (expression_statement) "range->seq1 = uid1;" (assignment_expression) "range->seq1 = uid1" (field_expression) "range->seq1" (identifier) "range" (->) "->" (field_identifier) "seq1" (=) "=" (identifier) "uid1" (;) ";" (expression_statement) "range->seq2 = uid2;" (assignment_expression) "range->seq2 = uid2" (field_expression) "range->seq2" (identifier) "range" (->) "->" (field_identifier) "seq2" (=) "=" (identifier) "uid2" (;) ";" (expression_statement) "prev_uid = uid2;" (assignment_expression) "prev_uid = uid2" (identifier) "prev_uid" (=) "=" (identifier) "uid2" (;) ";" (}) "}" (else_clause) "else {\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }" (else) "else" (compound_statement) "{\n /* remove expunged UIDs */\n new_range = array_insert_space(array, i);\n range = array_idx_modifiable(array, i + 1);\n count++;\n\n memcpy(new_range, range, array->arr.element_size);\n new_range->seq1 = uid1;\n new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);\n i_assert(new_range->seq2 < uid2);\n\n /* continue the range without the inserted seqs */\n range->seq1 += new_range->seq2 - new_range->seq1 + 1;\n prev_uid = new_range->seq2;\n }" ({) "{" (comment) "/* remove expunged UIDs */" (expression_statement) "new_range = array_insert_space(array, i);" (assignment_expression) "new_range = array_insert_space(array, i)" (identifier) "new_range" (=) "=" (call_expression) "array_insert_space(array, i)" (identifier) "array_insert_space" (argument_list) "(array, i)" (() "(" (identifier) "array" (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "range = array_idx_modifiable(array, i + 1);" (assignment_expression) "range = array_idx_modifiable(array, i + 1)" (identifier) "range" (=) "=" (call_expression) "array_idx_modifiable(array, i + 1)" (identifier) "array_idx_modifiable" (argument_list) "(array, i + 1)" (() "(" (identifier) "array" (,) "," (binary_expression) "i + 1" (identifier) "i" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "count++;" (update_expression) "count++" (identifier) "count" (++) "++" (;) ";" (expression_statement) "memcpy(new_range, range, array->arr.element_size);" (call_expression) "memcpy(new_range, range, array->arr.element_size)" (identifier) "memcpy" (argument_list) "(new_range, range, array->arr.element_size)" (() "(" (identifier) "new_range" (,) "," (identifier) "range" (,) "," (field_expression) "array->arr.element_size" (field_expression) "array->arr" (identifier) "array" (->) "->" (field_identifier) "arr" (.) "." (field_identifier) "element_size" ()) ")" (;) ";" (expression_statement) "new_range->seq1 = uid1;" (assignment_expression) "new_range->seq1 = uid1" (field_expression) "new_range->seq1" (identifier) "new_range" (->) "->" (field_identifier) "seq1" (=) "=" (identifier) "uid1" (;) ";" (expression_statement) "new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1);" (assignment_expression) "new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n range->seq1)" (field_expression) "new_range->seq2" (identifier) "new_range" (->) "->" (field_identifier) "seq2" (=) "=" (call_expression) "get_nonexpunged_uid2(t, uid1,\n range->seq1)" (identifier) "get_nonexpunged_uid2" (argument_list) "(t, uid1,\n range->seq1)" (() "(" (identifier) "t" (,) "," (identifier) "uid1" (,) "," (field_expression) "range->seq1" (identifier) "range" (->) "->" (field_identifier) "seq1" ()) ")" (;) ";" (expression_statement) "i_assert(new_range->seq2 < uid2);" (call_expression) "i_assert(new_range->seq2 < uid2)" (identifier) "i_assert" (argument_list) "(new_range->seq2 < uid2)" (() "(" (binary_expression) "new_range->seq2 < uid2" (field_expression) "new_range->seq2" (identifier) "new_range" (->) "->" (field_identifier) "seq2" (<) "<" (identifier) "uid2" ()) ")" (;) ";" (comment) "/* continue the range without the inserted seqs */" (expression_statement) "range->seq1 += new_range->seq2 - new_range->seq1 + 1;" (assignment_expression) "range->seq1 += new_range->seq2 - new_range->seq1 + 1" (field_expression) "range->seq1" (identifier) "range" (->) "->" (field_identifier) "seq1" (+=) "+=" (binary_expression) "new_range->seq2 - new_range->seq1 + 1" (binary_expression) "new_range->seq2 - new_range->seq1" (field_expression) "new_range->seq2" (identifier) "new_range" (->) "->" (field_identifier) "seq2" (-) "-" (field_expression) "new_range->seq1" (identifier) "new_range" (->) "->" (field_identifier) "seq1" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "prev_uid = new_range->seq2;" (assignment_expression) "prev_uid = new_range->seq2" (identifier) "prev_uid" (=) "=" (field_expression) "new_range->seq2" (identifier) "new_range" (->) "->" (field_identifier) "seq2" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "static void keyword_updates_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_index_transaction_keyword_update *update;\n\n if (!array_is_created(&t->keyword_updates))\n return;\n\n array_foreach_modifiable(&t->keyword_updates, update) {\n mail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n mail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "keyword_updates_convert_to_uids(struct mail_index_transaction *t)" (identifier) "keyword_updates_convert_to_uids" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n struct mail_index_transaction_keyword_update *update;\n\n if (!array_is_created(&t->keyword_updates))\n return;\n\n array_foreach_modifiable(&t->keyword_updates, update) {\n mail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n mail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n }\n}" ({) "{" (declaration) "struct mail_index_transaction_keyword_update *update;" (struct_specifier) "struct mail_index_transaction_keyword_update" (struct) "struct" (type_identifier) "mail_index_transaction_keyword_update" (pointer_declarator) "*update" (*) "*" (identifier) "update" (;) ";" (if_statement) "if (!array_is_created(&t->keyword_updates))\n return;" (if) "if" (parenthesized_expression) "(!array_is_created(&t->keyword_updates))" (() "(" (unary_expression) "!array_is_created(&t->keyword_updates)" (!) "!" (call_expression) "array_is_created(&t->keyword_updates)" (identifier) "array_is_created" (argument_list) "(&t->keyword_updates)" (() "(" (pointer_expression) "&t->keyword_updates" (&) "&" (field_expression) "t->keyword_updates" (identifier) "t" (->) "->" (field_identifier) "keyword_updates" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "array_foreach_modifiable(&t->keyword_updates, update)" (call_expression) "array_foreach_modifiable(&t->keyword_updates, update)" (identifier) "array_foreach_modifiable" (argument_list) "(&t->keyword_updates, update)" (() "(" (pointer_expression) "&t->keyword_updates" (&) "&" (field_expression) "t->keyword_updates" (identifier) "t" (->) "->" (field_identifier) "keyword_updates" (,) "," (identifier) "update" ()) ")" (;) "" (compound_statement) "{\n mail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n mail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n }" ({) "{" (expression_statement) "mail_index_transaction_seq_range_to_uid(t, &update->add_seq);" (call_expression) "mail_index_transaction_seq_range_to_uid(t, &update->add_seq)" (identifier) "mail_index_transaction_seq_range_to_uid" (argument_list) "(t, &update->add_seq)" (() "(" (identifier) "t" (,) "," (pointer_expression) "&update->add_seq" (&) "&" (field_expression) "update->add_seq" (identifier) "update" (->) "->" (field_identifier) "add_seq" ()) ")" (;) ";" (expression_statement) "mail_index_transaction_seq_range_to_uid(t, &update->remove_seq);" (call_expression) "mail_index_transaction_seq_range_to_uid(t, &update->remove_seq)" (identifier) "mail_index_transaction_seq_range_to_uid" (argument_list) "(t, &update->remove_seq)" (() "(" (identifier) "t" (,) "," (pointer_expression) "&update->remove_seq" (&) "&" (field_expression) "update->remove_seq" (identifier) "update" (->) "->" (field_identifier) "remove_seq" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static void expunges_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_transaction_expunge_guid *expunges;\n unsigned int src, dest, count;\n\n if (!array_is_created(&t->expunges))\n return;\n\n mail_index_transaction_sort_expunges(t);\n\n expunges = array_get_modifiable(&t->expunges, &count);\n if (count == 0)\n return;\n\n /* convert uids and drop duplicates */\n expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);\n for (src = dest = 1; src < count; src++) {\n expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);\n if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }\n }\n array_delete(&t->expunges, dest, count-dest);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "expunges_convert_to_uids(struct mail_index_transaction *t)" (identifier) "expunges_convert_to_uids" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n struct mail_transaction_expunge_guid *expunges;\n unsigned int src, dest, count;\n\n if (!array_is_created(&t->expunges))\n return;\n\n mail_index_transaction_sort_expunges(t);\n\n expunges = array_get_modifiable(&t->expunges, &count);\n if (count == 0)\n return;\n\n /* convert uids and drop duplicates */\n expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);\n for (src = dest = 1; src < count; src++) {\n expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);\n if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }\n }\n array_delete(&t->expunges, dest, count-dest);\n}" ({) "{" (declaration) "struct mail_transaction_expunge_guid *expunges;" (struct_specifier) "struct mail_transaction_expunge_guid" (struct) "struct" (type_identifier) "mail_transaction_expunge_guid" (pointer_declarator) "*expunges" (*) "*" (identifier) "expunges" (;) ";" (declaration) "unsigned int src, dest, count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "src" (,) "," (identifier) "dest" (,) "," (identifier) "count" (;) ";" (if_statement) "if (!array_is_created(&t->expunges))\n return;" (if) "if" (parenthesized_expression) "(!array_is_created(&t->expunges))" (() "(" (unary_expression) "!array_is_created(&t->expunges)" (!) "!" (call_expression) "array_is_created(&t->expunges)" (identifier) "array_is_created" (argument_list) "(&t->expunges)" (() "(" (pointer_expression) "&t->expunges" (&) "&" (field_expression) "t->expunges" (identifier) "t" (->) "->" (field_identifier) "expunges" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "mail_index_transaction_sort_expunges(t);" (call_expression) "mail_index_transaction_sort_expunges(t)" (identifier) "mail_index_transaction_sort_expunges" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (expression_statement) "expunges = array_get_modifiable(&t->expunges, &count);" (assignment_expression) "expunges = array_get_modifiable(&t->expunges, &count)" (identifier) "expunges" (=) "=" (call_expression) "array_get_modifiable(&t->expunges, &count)" (identifier) "array_get_modifiable" (argument_list) "(&t->expunges, &count)" (() "(" (pointer_expression) "&t->expunges" (&) "&" (field_expression) "t->expunges" (identifier) "t" (->) "->" (field_identifier) "expunges" (,) "," (pointer_expression) "&count" (&) "&" (identifier) "count" ()) ")" (;) ";" (if_statement) "if (count == 0)\n return;" (if) "if" (parenthesized_expression) "(count == 0)" (() "(" (binary_expression) "count == 0" (identifier) "count" (==) "==" (number_literal) "0" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "/* convert uids and drop duplicates */" (expression_statement) "expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);" (assignment_expression) "expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid)" (field_expression) "expunges[0].uid" (subscript_expression) "expunges[0]" (identifier) "expunges" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "uid" (=) "=" (call_expression) "mail_index_transaction_get_uid(t, expunges[0].uid)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, expunges[0].uid)" (() "(" (identifier) "t" (,) "," (field_expression) "expunges[0].uid" (subscript_expression) "expunges[0]" (identifier) "expunges" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "uid" ()) ")" (;) ";" (for_statement) "for (src = dest = 1; src < count; src++) {\n expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);\n if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }\n }" (for) "for" (() "(" (assignment_expression) "src = dest = 1" (identifier) "src" (=) "=" (assignment_expression) "dest = 1" (identifier) "dest" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "src < count" (identifier) "src" (<) "<" (identifier) "count" (;) ";" (update_expression) "src++" (identifier) "src" (++) "++" ()) ")" (compound_statement) "{\n expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);\n if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }\n }" ({) "{" (expression_statement) "expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid);" (assignment_expression) "expunges[dest].uid =\n mail_index_transaction_get_uid(t, expunges[src].uid)" (field_expression) "expunges[dest].uid" (subscript_expression) "expunges[dest]" (identifier) "expunges" ([) "[" (identifier) "dest" (]) "]" (.) "." (field_identifier) "uid" (=) "=" (call_expression) "mail_index_transaction_get_uid(t, expunges[src].uid)" (identifier) "mail_index_transaction_get_uid" (argument_list) "(t, expunges[src].uid)" (() "(" (identifier) "t" (,) "," (field_expression) "expunges[src].uid" (subscript_expression) "expunges[src]" (identifier) "expunges" ([) "[" (identifier) "src" (]) "]" (.) "." (field_identifier) "uid" ()) ")" (;) ";" (if_statement) "if (expunges[dest-1].uid != expunges[dest].uid) {\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }" (if) "if" (parenthesized_expression) "(expunges[dest-1].uid != expunges[dest].uid)" (() "(" (binary_expression) "expunges[dest-1].uid != expunges[dest].uid" (field_expression) "expunges[dest-1].uid" (subscript_expression) "expunges[dest-1]" (identifier) "expunges" ([) "[" (binary_expression) "dest-1" (identifier) "dest" (-) "-" (number_literal) "1" (]) "]" (.) "." (field_identifier) "uid" (!=) "!=" (field_expression) "expunges[dest].uid" (subscript_expression) "expunges[dest]" (identifier) "expunges" ([) "[" (identifier) "dest" (]) "]" (.) "." (field_identifier) "uid" ()) ")" (compound_statement) "{\n if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }\n dest++;\n }" ({) "{" (if_statement) "if (dest != src) {\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }" (if) "if" (parenthesized_expression) "(dest != src)" (() "(" (binary_expression) "dest != src" (identifier) "dest" (!=) "!=" (identifier) "src" ()) ")" (compound_statement) "{\n memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));\n }" ({) "{" (expression_statement) "memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128));" (call_expression) "memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128))" (identifier) "memcpy" (argument_list) "(expunges[dest].guid_128, expunges[src].guid_128,\n sizeof(expunges[dest].guid_128))" (() "(" (field_expression) "expunges[dest].guid_128" (subscript_expression) "expunges[dest]" (identifier) "expunges" ([) "[" (identifier) "dest" (]) "]" (.) "." (field_identifier) "guid_128" (,) "," (field_expression) "expunges[src].guid_128" (subscript_expression) "expunges[src]" (identifier) "expunges" ([) "[" (identifier) "src" (]) "]" (.) "." (field_identifier) "guid_128" (,) "," (sizeof_expression) "sizeof(expunges[dest].guid_128)" (sizeof) "sizeof" (parenthesized_expression) "(expunges[dest].guid_128)" (() "(" (field_expression) "expunges[dest].guid_128" (subscript_expression) "expunges[dest]" (identifier) "expunges" ([) "[" (identifier) "dest" (]) "]" (.) "." (field_identifier) "guid_128" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "dest++;" (update_expression) "dest++" (identifier) "dest" (++) "++" (;) ";" (}) "}" (}) "}" (expression_statement) "array_delete(&t->expunges, dest, count-dest);" (call_expression) "array_delete(&t->expunges, dest, count-dest)" (identifier) "array_delete" (argument_list) "(&t->expunges, dest, count-dest)" (() "(" (pointer_expression) "&t->expunges" (&) "&" (field_expression) "t->expunges" (identifier) "t" (->) "->" (field_identifier) "expunges" (,) "," (identifier) "dest" (,) "," (binary_expression) "count-dest" (identifier) "count" (-) "-" (identifier) "dest" ()) ")" (;) ";" (}) "}" (function_definition) "static void\nmail_index_transaction_convert_to_uids(struct mail_index_transaction *t)\n{\n ARRAY_TYPE(seq_array) *update;\n\n if (array_is_created(&t->ext_rec_updates)) {\n array_foreach_modifiable(&t->ext_rec_updates, update)\n mail_index_convert_to_uids(t, update);\n }\n if (array_is_created(&t->ext_rec_atomics)) {\n array_foreach_modifiable(&t->ext_rec_atomics, update)\n mail_index_convert_to_uids(t, update);\n }\n\n keyword_updates_convert_to_uids(t);\n expunges_convert_to_uids(t);\n mail_index_convert_to_uids(t, (void *)&t->modseq_updates);\n mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mail_index_transaction_convert_to_uids(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_convert_to_uids" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n ARRAY_TYPE(seq_array) *update;\n\n if (array_is_created(&t->ext_rec_updates)) {\n array_foreach_modifiable(&t->ext_rec_updates, update)\n mail_index_convert_to_uids(t, update);\n }\n if (array_is_created(&t->ext_rec_atomics)) {\n array_foreach_modifiable(&t->ext_rec_atomics, update)\n mail_index_convert_to_uids(t, update);\n }\n\n keyword_updates_convert_to_uids(t);\n expunges_convert_to_uids(t);\n mail_index_convert_to_uids(t, (void *)&t->modseq_updates);\n mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);\n}" ({) "{" (declaration) "ARRAY_TYPE(seq_array) *update;" (macro_type_specifier) "ARRAY_TYPE(seq_array)" (identifier) "ARRAY_TYPE" (() "(" (type_descriptor) "seq_array" (type_identifier) "seq_array" ()) ")" (pointer_declarator) "*update" (*) "*" (identifier) "update" (;) ";" (if_statement) "if (array_is_created(&t->ext_rec_updates)) {\n array_foreach_modifiable(&t->ext_rec_updates, update)\n mail_index_convert_to_uids(t, update);\n }" (if) "if" (parenthesized_expression) "(array_is_created(&t->ext_rec_updates))" (() "(" (call_expression) "array_is_created(&t->ext_rec_updates)" (identifier) "array_is_created" (argument_list) "(&t->ext_rec_updates)" (() "(" (pointer_expression) "&t->ext_rec_updates" (&) "&" (field_expression) "t->ext_rec_updates" (identifier) "t" (->) "->" (field_identifier) "ext_rec_updates" ()) ")" ()) ")" (compound_statement) "{\n array_foreach_modifiable(&t->ext_rec_updates, update)\n mail_index_convert_to_uids(t, update);\n }" ({) "{" (expression_statement) "array_foreach_modifiable(&t->ext_rec_updates, update)" (call_expression) "array_foreach_modifiable(&t->ext_rec_updates, update)" (identifier) "array_foreach_modifiable" (argument_list) "(&t->ext_rec_updates, update)" (() "(" (pointer_expression) "&t->ext_rec_updates" (&) "&" (field_expression) "t->ext_rec_updates" (identifier) "t" (->) "->" (field_identifier) "ext_rec_updates" (,) "," (identifier) "update" ()) ")" (;) "" (expression_statement) "mail_index_convert_to_uids(t, update);" (call_expression) "mail_index_convert_to_uids(t, update)" (identifier) "mail_index_convert_to_uids" (argument_list) "(t, update)" (() "(" (identifier) "t" (,) "," (identifier) "update" ()) ")" (;) ";" (}) "}" (if_statement) "if (array_is_created(&t->ext_rec_atomics)) {\n array_foreach_modifiable(&t->ext_rec_atomics, update)\n mail_index_convert_to_uids(t, update);\n }" (if) "if" (parenthesized_expression) "(array_is_created(&t->ext_rec_atomics))" (() "(" (call_expression) "array_is_created(&t->ext_rec_atomics)" (identifier) "array_is_created" (argument_list) "(&t->ext_rec_atomics)" (() "(" (pointer_expression) "&t->ext_rec_atomics" (&) "&" (field_expression) "t->ext_rec_atomics" (identifier) "t" (->) "->" (field_identifier) "ext_rec_atomics" ()) ")" ()) ")" (compound_statement) "{\n array_foreach_modifiable(&t->ext_rec_atomics, update)\n mail_index_convert_to_uids(t, update);\n }" ({) "{" (expression_statement) "array_foreach_modifiable(&t->ext_rec_atomics, update)" (call_expression) "array_foreach_modifiable(&t->ext_rec_atomics, update)" (identifier) "array_foreach_modifiable" (argument_list) "(&t->ext_rec_atomics, update)" (() "(" (pointer_expression) "&t->ext_rec_atomics" (&) "&" (field_expression) "t->ext_rec_atomics" (identifier) "t" (->) "->" (field_identifier) "ext_rec_atomics" (,) "," (identifier) "update" ()) ")" (;) "" (expression_statement) "mail_index_convert_to_uids(t, update);" (call_expression) "mail_index_convert_to_uids(t, update)" (identifier) "mail_index_convert_to_uids" (argument_list) "(t, update)" (() "(" (identifier) "t" (,) "," (identifier) "update" ()) ")" (;) ";" (}) "}" (expression_statement) "keyword_updates_convert_to_uids(t);" (call_expression) "keyword_updates_convert_to_uids(t)" (identifier) "keyword_updates_convert_to_uids" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (expression_statement) "expunges_convert_to_uids(t);" (call_expression) "expunges_convert_to_uids(t)" (identifier) "expunges_convert_to_uids" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (expression_statement) "mail_index_convert_to_uids(t, (void *)&t->modseq_updates);" (call_expression) "mail_index_convert_to_uids(t, (void *)&t->modseq_updates)" (identifier) "mail_index_convert_to_uids" (argument_list) "(t, (void *)&t->modseq_updates)" (() "(" (identifier) "t" (,) "," (cast_expression) "(void *)&t->modseq_updates" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&t->modseq_updates" (&) "&" (field_expression) "t->modseq_updates" (identifier) "t" (->) "->" (field_identifier) "modseq_updates" ()) ")" (;) ";" (expression_statement) "mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);" (call_expression) "mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates)" (identifier) "mail_index_transaction_seq_range_to_uid" (argument_list) "(t, (void *)&t->updates)" (() "(" (identifier) "t" (,) "," (cast_expression) "(void *)&t->updates" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&t->updates" (&) "&" (field_expression) "t->updates" (identifier) "t" (->) "->" (field_identifier) "updates" ()) ")" (;) ";" (}) "}" (function_definition) "void mail_index_transaction_finish_so_far(struct mail_index_transaction *t)\n{\n if (array_is_created(&t->appends))\n mail_index_transaction_sort_appends(t);\n mail_index_transaction_finish_flag_updates(t);\n if (t->max_modseq != 0)\n mail_index_transaction_check_conflicts(t);\n}" (primitive_type) "void" (function_declarator) "mail_index_transaction_finish_so_far(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_finish_so_far" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n if (array_is_created(&t->appends))\n mail_index_transaction_sort_appends(t);\n mail_index_transaction_finish_flag_updates(t);\n if (t->max_modseq != 0)\n mail_index_transaction_check_conflicts(t);\n}" ({) "{" (if_statement) "if (array_is_created(&t->appends))\n mail_index_transaction_sort_appends(t);" (if) "if" (parenthesized_expression) "(array_is_created(&t->appends))" (() "(" (call_expression) "array_is_created(&t->appends)" (identifier) "array_is_created" (argument_list) "(&t->appends)" (() "(" (pointer_expression) "&t->appends" (&) "&" (field_expression) "t->appends" (identifier) "t" (->) "->" (field_identifier) "appends" ()) ")" ()) ")" (expression_statement) "mail_index_transaction_sort_appends(t);" (call_expression) "mail_index_transaction_sort_appends(t)" (identifier) "mail_index_transaction_sort_appends" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (expression_statement) "mail_index_transaction_finish_flag_updates(t);" (call_expression) "mail_index_transaction_finish_flag_updates(t)" (identifier) "mail_index_transaction_finish_flag_updates" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (if_statement) "if (t->max_modseq != 0)\n mail_index_transaction_check_conflicts(t);" (if) "if" (parenthesized_expression) "(t->max_modseq != 0)" (() "(" (binary_expression) "t->max_modseq != 0" (field_expression) "t->max_modseq" (identifier) "t" (->) "->" (field_identifier) "max_modseq" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "mail_index_transaction_check_conflicts(t);" (call_expression) "mail_index_transaction_check_conflicts(t)" (identifier) "mail_index_transaction_check_conflicts" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (}) "}" (function_definition) "void mail_index_transaction_finish(struct mail_index_transaction *t)\n{\n mail_index_transaction_finish_so_far(t);\n\n if (array_is_created(&t->appends))\n mail_index_update_day_headers(t, ioloop_time);\n if (array_is_created(&t->ext_reset_atomic))\n transaction_update_atomic_reset_ids(t);\n /* finally convert all sequences to UIDs before we write them,\n but after we've checked and removed conflicts */\n mail_index_transaction_convert_to_uids(t);\n\n /* and kind of ugly way to update highest modseq */\n if (t->min_highest_modseq != 0)\n mail_index_update_modseq(t, 0, t->min_highest_modseq);\n}" (primitive_type) "void" (function_declarator) "mail_index_transaction_finish(struct mail_index_transaction *t)" (identifier) "mail_index_transaction_finish" (parameter_list) "(struct mail_index_transaction *t)" (() "(" (parameter_declaration) "struct mail_index_transaction *t" (struct_specifier) "struct mail_index_transaction" (struct) "struct" (type_identifier) "mail_index_transaction" (pointer_declarator) "*t" (*) "*" (identifier) "t" ()) ")" (compound_statement) "{\n mail_index_transaction_finish_so_far(t);\n\n if (array_is_created(&t->appends))\n mail_index_update_day_headers(t, ioloop_time);\n if (array_is_created(&t->ext_reset_atomic))\n transaction_update_atomic_reset_ids(t);\n /* finally convert all sequences to UIDs before we write them,\n but after we've checked and removed conflicts */\n mail_index_transaction_convert_to_uids(t);\n\n /* and kind of ugly way to update highest modseq */\n if (t->min_highest_modseq != 0)\n mail_index_update_modseq(t, 0, t->min_highest_modseq);\n}" ({) "{" (expression_statement) "mail_index_transaction_finish_so_far(t);" (call_expression) "mail_index_transaction_finish_so_far(t)" (identifier) "mail_index_transaction_finish_so_far" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (if_statement) "if (array_is_created(&t->appends))\n mail_index_update_day_headers(t, ioloop_time);" (if) "if" (parenthesized_expression) "(array_is_created(&t->appends))" (() "(" (call_expression) "array_is_created(&t->appends)" (identifier) "array_is_created" (argument_list) "(&t->appends)" (() "(" (pointer_expression) "&t->appends" (&) "&" (field_expression) "t->appends" (identifier) "t" (->) "->" (field_identifier) "appends" ()) ")" ()) ")" (expression_statement) "mail_index_update_day_headers(t, ioloop_time);" (call_expression) "mail_index_update_day_headers(t, ioloop_time)" (identifier) "mail_index_update_day_headers" (argument_list) "(t, ioloop_time)" (() "(" (identifier) "t" (,) "," (identifier) "ioloop_time" ()) ")" (;) ";" (if_statement) "if (array_is_created(&t->ext_reset_atomic))\n transaction_update_atomic_reset_ids(t);" (if) "if" (parenthesized_expression) "(array_is_created(&t->ext_reset_atomic))" (() "(" (call_expression) "array_is_created(&t->ext_reset_atomic)" (identifier) "array_is_created" (argument_list) "(&t->ext_reset_atomic)" (() "(" (pointer_expression) "&t->ext_reset_atomic" (&) "&" (field_expression) "t->ext_reset_atomic" (identifier) "t" (->) "->" (field_identifier) "ext_reset_atomic" ()) ")" ()) ")" (expression_statement) "transaction_update_atomic_reset_ids(t);" (call_expression) "transaction_update_atomic_reset_ids(t)" (identifier) "transaction_update_atomic_reset_ids" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (comment) "/* finally convert all sequences to UIDs before we write them,\n but after we've checked and removed conflicts */" (expression_statement) "mail_index_transaction_convert_to_uids(t);" (call_expression) "mail_index_transaction_convert_to_uids(t)" (identifier) "mail_index_transaction_convert_to_uids" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (comment) "/* and kind of ugly way to update highest modseq */" (if_statement) "if (t->min_highest_modseq != 0)\n mail_index_update_modseq(t, 0, t->min_highest_modseq);" (if) "if" (parenthesized_expression) "(t->min_highest_modseq != 0)" (() "(" (binary_expression) "t->min_highest_modseq != 0" (field_expression) "t->min_highest_modseq" (identifier) "t" (->) "->" (field_identifier) "min_highest_modseq" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "mail_index_update_modseq(t, 0, t->min_highest_modseq);" (call_expression) "mail_index_update_modseq(t, 0, t->min_highest_modseq)" (identifier) "mail_index_update_modseq" (argument_list) "(t, 0, t->min_highest_modseq)" (() "(" (identifier) "t" (,) "," (number_literal) "0" (,) "," (field_expression) "t->min_highest_modseq" (identifier) "t" (->) "->" (field_identifier) "min_highest_modseq" ()) ")" (;) ";" (}) "}"
2,744
0
{"language": "c", "success": true, "metadata": {"lines": 297, "avg_line_length": 30.29, "nodes": 1657, "errors": 0, "source_hash": "8dff2c5f66eec8fdee8463ef00a843e07d9ae62f5f7c1a2496ae134289f41559", "categorized_nodes": 1296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"lib.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": "\"lib.h\"", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include \"array.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": "\"array.h\"", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"ioloop.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": "\"ioloop.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"mail-index-private.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": "\"mail-index-private.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 31}}, {"id": 12, "type": "preproc_include", "text": "#include \"mail-index-modseq.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"mail-index-modseq.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 30}}, {"id": 15, "type": "preproc_include", "text": "#include \"mail-index-transaction-private.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"mail-index-transaction-private.h\"", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 43}}, {"id": 18, "type": "function_definition", "text": "int mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t const struct mail_transaction_expunge_guid *e2)\n{\n\tif (e1->uid < e2->uid)\n\t\treturn -1;\n\telse if (e1->uid > e2->uid)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 3}}, {"id": 20, "type": "function_declarator", "text": "mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t const struct mail_transaction_expunge_guid *e2)", "parent": 18, "children": [21, 22], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 10, "column": 57}}, {"id": 21, "type": "identifier", "text": "mail_transaction_expunge_guid_cmp", "parent": 20, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 37}}, {"id": 22, "type": "parameter_list", "text": "(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t const struct mail_transaction_expunge_guid *e2)", "parent": 20, "children": [23, 30], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 10, "column": 57}}, {"id": 23, "type": "parameter_declaration", "text": "const struct mail_transaction_expunge_guid *e1", "parent": 22, "children": [24, 27], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 84}}, {"id": 24, "type": "struct_specifier", "text": "struct mail_transaction_expunge_guid", "parent": 23, "children": [25, 26], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 80}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 50}}, {"id": 26, "type": "type_identifier", "text": "mail_transaction_expunge_guid", "parent": 24, "children": [], "start_point": {"row": 9, "column": 51}, "end_point": {"row": 9, "column": 80}}, {"id": 27, "type": "pointer_declarator", "text": "*e1", "parent": 23, "children": [28, 29], "start_point": {"row": 9, "column": 81}, "end_point": {"row": 9, "column": 84}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 9, "column": 81}, "end_point": {"row": 9, "column": 82}}, {"id": 29, "type": "identifier", "text": "e1", "parent": 27, "children": [], "start_point": {"row": 9, "column": 82}, "end_point": {"row": 9, "column": 84}}, {"id": 30, "type": "parameter_declaration", "text": "const struct mail_transaction_expunge_guid *e2", "parent": 22, "children": [31, 34], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 56}}, {"id": 31, "type": "struct_specifier", "text": "struct mail_transaction_expunge_guid", "parent": 30, "children": [32, 33], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 52}}, {"id": 32, "type": "struct", "text": "struct", "parent": 31, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 22}}, {"id": 33, "type": "type_identifier", "text": "mail_transaction_expunge_guid", "parent": 31, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 52}}, {"id": 34, "type": "pointer_declarator", "text": "*e2", "parent": 30, "children": [35, 36], "start_point": {"row": 10, "column": 53}, "end_point": {"row": 10, "column": 56}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 10, "column": 53}, "end_point": {"row": 10, "column": 54}}, {"id": 36, "type": "identifier", "text": "e2", "parent": 34, "children": [], "start_point": {"row": 10, "column": 54}, "end_point": {"row": 10, "column": 56}}, {"id": 37, "type": "if_statement", "text": "if (e1->uid < e2->uid)\n\t\treturn -1;\n\telse if (e1->uid > e2->uid)\n\t\treturn 1;\n\telse\n\t\treturn 0;", "parent": 18, "children": [38, 47, 49], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 17, "column": 11}}, {"id": 38, "type": "parenthesized_expression", "text": "(e1->uid < e2->uid)", "parent": 37, "children": [39], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 23}}, {"id": 39, "type": "binary_expression", "text": "e1->uid < e2->uid", "parent": 38, "children": [40, 43, 44], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 22}}, {"id": 40, "type": "field_expression", "text": "e1->uid", "parent": 39, "children": [41, 42], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 12}}, {"id": 41, "type": "identifier", "text": "e1", "parent": 40, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 7}}, {"id": 42, "type": "field_identifier", "text": "uid", "parent": 40, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 43, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 44, "type": "field_expression", "text": "e2->uid", "parent": 39, "children": [45, 46], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 22}}, {"id": 45, "type": "identifier", "text": "e2", "parent": 44, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 17}}, {"id": 46, "type": "field_identifier", "text": "uid", "parent": 44, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 22}}, {"id": 47, "type": "return_statement", "text": "return -1;", "parent": 37, "children": [48], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 12}}, {"id": 48, "type": "number_literal", "text": "-1", "parent": 47, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 11}}, {"id": 49, "type": "else_clause", "text": "else if (e1->uid > e2->uid)\n\t\treturn 1;\n\telse\n\t\treturn 0;", "parent": 37, "children": [50], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 17, "column": 11}}, {"id": 50, "type": "if_statement", "text": "if (e1->uid > e2->uid)\n\t\treturn 1;\n\telse\n\t\treturn 0;", "parent": 49, "children": [51, 60, 62], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 17, "column": 11}}, {"id": 51, "type": "parenthesized_expression", "text": "(e1->uid > e2->uid)", "parent": 50, "children": [52], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 28}}, {"id": 52, "type": "binary_expression", "text": "e1->uid > e2->uid", "parent": 51, "children": [53, 56, 57], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 27}}, {"id": 53, "type": "field_expression", "text": "e1->uid", "parent": 52, "children": [54, 55], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 17}}, {"id": 54, "type": "identifier", "text": "e1", "parent": 53, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 12}}, {"id": 55, "type": "field_identifier", "text": "uid", "parent": 53, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 17}}, {"id": 56, "type": ">", "text": ">", "parent": 52, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 57, "type": "field_expression", "text": "e2->uid", "parent": 52, "children": [58, 59], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 27}}, {"id": 58, "type": "identifier", "text": "e2", "parent": 57, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 22}}, {"id": 59, "type": "field_identifier", "text": "uid", "parent": 57, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 27}}, {"id": 60, "type": "return_statement", "text": "return 1;", "parent": 50, "children": [61], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 11}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 60, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 62, "type": "else_clause", "text": "else\n\t\treturn 0;", "parent": 50, "children": [63], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 17, "column": 11}}, {"id": 63, "type": "return_statement", "text": "return 0;", "parent": 62, "children": [64], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 11}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 65, "type": "function_definition", "text": "void mail_index_transaction_sort_expunges(struct mail_index_transaction *t)\n{\n\tif (!t->expunges_nonsorted)\n\t\treturn;\n\n\tarray_sort(&t->expunges, mail_transaction_expunge_guid_cmp);\n\tt->expunges_nonsorted = FALSE;\n}", "parent": null, "children": [66, 67], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 67, "type": "function_declarator", "text": "mail_index_transaction_sort_expunges(struct mail_index_transaction *t)", "parent": 65, "children": [68, 69], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 75}}, {"id": 68, "type": "identifier", "text": "mail_index_transaction_sort_expunges", "parent": 67, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 41}}, {"id": 69, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 67, "children": [70], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 75}}, {"id": 70, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 69, "children": [71, 74], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 74}}, {"id": 71, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 70, "children": [72, 73], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 71}}, {"id": 72, "type": "struct", "text": "struct", "parent": 71, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 48}}, {"id": 73, "type": "type_identifier", "text": "mail_index_transaction", "parent": 71, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 71}}, {"id": 74, "type": "pointer_declarator", "text": "*t", "parent": 70, "children": [75, 76], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 74}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 73}}, {"id": 76, "type": "identifier", "text": "t", "parent": 74, "children": [], "start_point": {"row": 20, "column": 73}, "end_point": {"row": 20, "column": 74}}, {"id": 77, "type": "if_statement", "text": "if (!t->expunges_nonsorted)\n\t\treturn;", "parent": 65, "children": [78, 84], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 78, "type": "parenthesized_expression", "text": "(!t->expunges_nonsorted)", "parent": 77, "children": [79], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 28}}, {"id": 79, "type": "unary_expression", "text": "!t->expunges_nonsorted", "parent": 78, "children": [80, 81], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 27}}, {"id": 80, "type": "!", "text": "!", "parent": 79, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 6}}, {"id": 81, "type": "field_expression", "text": "t->expunges_nonsorted", "parent": 79, "children": [82, 83], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 27}}, {"id": 82, "type": "identifier", "text": "t", "parent": 81, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 83, "type": "field_identifier", "text": "expunges_nonsorted", "parent": 81, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 27}}, {"id": 84, "type": "return_statement", "text": "return;", "parent": 77, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 9}}, {"id": 85, "type": "call_expression", "text": "array_sort(&t->expunges, mail_transaction_expunge_guid_cmp)", "parent": 65, "children": [86, 87], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 60}}, {"id": 86, "type": "identifier", "text": "array_sort", "parent": 85, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 11}}, {"id": 87, "type": "argument_list", "text": "(&t->expunges, mail_transaction_expunge_guid_cmp)", "parent": 85, "children": [88, 92], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 60}}, {"id": 88, "type": "pointer_expression", "text": "&t->expunges", "parent": 87, "children": [89], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 24}}, {"id": 89, "type": "field_expression", "text": "t->expunges", "parent": 88, "children": [90, 91], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 24}}, {"id": 90, "type": "identifier", "text": "t", "parent": 89, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 91, "type": "field_identifier", "text": "expunges", "parent": 89, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 24}}, {"id": 92, "type": "identifier", "text": "mail_transaction_expunge_guid_cmp", "parent": 87, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 59}}, {"id": 93, "type": "assignment_expression", "text": "t->expunges_nonsorted = FALSE", "parent": 65, "children": [94, 97, 98], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 30}}, {"id": 94, "type": "field_expression", "text": "t->expunges_nonsorted", "parent": 93, "children": [95, 96], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 22}}, {"id": 95, "type": "identifier", "text": "t", "parent": 94, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 2}}, {"id": 96, "type": "field_identifier", "text": "expunges_nonsorted", "parent": 94, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 22}}, {"id": 97, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 24}}, {"id": 98, "type": "false", "text": "FALSE", "parent": 93, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 30}}, {"id": 99, "type": "function_definition", "text": "static void\next_reset_update_atomic(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t expected_reset_id)\n{\n\tconst struct mail_index_ext *map_ext;\n\tstruct mail_transaction_ext_reset *reset;\n\tuint32_t idx, reset_id;\n\n\tif (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n\t\t/* new extension */\n\t\treset_id = 1;\n\t} else {\n\t\tmap_ext = array_idx(&t->view->index->map->extensions, idx);\n\t\treset_id = map_ext->reset_id + 1;\n\t}\n\tif (reset_id != expected_reset_id) {\n\t\t/* ignore this extension update */\n\t\tmail_index_ext_set_reset_id(t, ext_id, 0);\n\t\treturn;\n\t}\n\n\tif (reset_id == 0)\n\t\treset_id++;\n\n\tarray_idx_set(&t->ext_reset_ids, ext_id, &reset_id);\n\n\t/* reseting existing data is optional */\n\tif (array_is_created(&t->ext_resets)) {\n\t\treset = array_idx_modifiable(&t->ext_resets, ext_id);\n\t\tif (reset->new_reset_id == (uint32_t)-1)\n\t\t\treset->new_reset_id = reset_id;\n\t}\n}", "parent": null, "children": [100, 101], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 11}}, {"id": 101, "type": "function_declarator", "text": "ext_reset_update_atomic(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t expected_reset_id)", "parent": 99, "children": [102, 103], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 47}}, {"id": 102, "type": "identifier", "text": "ext_reset_update_atomic", "parent": 101, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 23}}, {"id": 103, "type": "parameter_list", "text": "(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t expected_reset_id)", "parent": 101, "children": [104, 111, 114], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 31, "column": 47}}, {"id": 104, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 103, "children": [105, 108], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 56}}, {"id": 105, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 104, "children": [106, 107], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 53}}, {"id": 106, "type": "struct", "text": "struct", "parent": 105, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 30}}, {"id": 107, "type": "type_identifier", "text": "mail_index_transaction", "parent": 105, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 53}}, {"id": 108, "type": "pointer_declarator", "text": "*t", "parent": 104, "children": [109, 110], "start_point": {"row": 30, "column": 54}, "end_point": {"row": 30, "column": 56}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 30, "column": 54}, "end_point": {"row": 30, "column": 55}}, {"id": 110, "type": "identifier", "text": "t", "parent": 108, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 56}}, {"id": 111, "type": "parameter_declaration", "text": "uint32_t ext_id", "parent": 103, "children": [112, 113], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 18}}, {"id": 112, "type": "primitive_type", "text": "uint32_t", "parent": 111, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 11}}, {"id": 113, "type": "identifier", "text": "ext_id", "parent": 111, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 18}}, {"id": 114, "type": "parameter_declaration", "text": "uint32_t expected_reset_id", "parent": 103, "children": [115, 116], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 46}}, {"id": 115, "type": "primitive_type", "text": "uint32_t", "parent": 114, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 28}}, {"id": 116, "type": "identifier", "text": "expected_reset_id", "parent": 114, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 46}}, {"id": 117, "type": "declaration", "text": "const struct mail_index_ext *map_ext;", "parent": 99, "children": [118, 121], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 38}}, {"id": 118, "type": "struct_specifier", "text": "struct mail_index_ext", "parent": 117, "children": [119, 120], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 28}}, {"id": 119, "type": "struct", "text": "struct", "parent": 118, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 13}}, {"id": 120, "type": "type_identifier", "text": "mail_index_ext", "parent": 118, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 28}}, {"id": 121, "type": "pointer_declarator", "text": "*map_ext", "parent": 117, "children": [122, 123], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 37}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 30}}, {"id": 123, "type": "identifier", "text": "map_ext", "parent": 121, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 37}}, {"id": 124, "type": "declaration", "text": "struct mail_transaction_ext_reset *reset;", "parent": 99, "children": [125, 128], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 42}}, {"id": 125, "type": "struct_specifier", "text": "struct mail_transaction_ext_reset", "parent": 124, "children": [126, 127], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 34}}, {"id": 126, "type": "struct", "text": "struct", "parent": 125, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 7}}, {"id": 127, "type": "type_identifier", "text": "mail_transaction_ext_reset", "parent": 125, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 34}}, {"id": 128, "type": "pointer_declarator", "text": "*reset", "parent": 124, "children": [129, 130], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 41}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 36}}, {"id": 130, "type": "identifier", "text": "reset", "parent": 128, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 41}}, {"id": 131, "type": "declaration", "text": "uint32_t idx, reset_id;", "parent": 99, "children": [132, 133, 134], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 24}}, {"id": 132, "type": "primitive_type", "text": "uint32_t", "parent": 131, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 133, "type": "identifier", "text": "idx", "parent": 131, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 13}}, {"id": 134, "type": "identifier", "text": "reset_id", "parent": 131, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 23}}, {"id": 135, "type": "if_statement", "text": "if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n\t\t/* new extension */\n\t\treset_id = 1;\n\t} else {\n\t\tmap_ext = array_idx(&t->view->index->map->extensions, idx);\n\t\treset_id = map_ext->reset_id + 1;\n\t}", "parent": 99, "children": [136, 156], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 43, "column": 2}}, {"id": 136, "type": "parenthesized_expression", "text": "(!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx))", "parent": 135, "children": [137], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 68}}, {"id": 137, "type": "unary_expression", "text": "!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)", "parent": 136, "children": [138, 139], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 67}}, {"id": 138, "type": "!", "text": "!", "parent": 137, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 6}}, {"id": 139, "type": "call_expression", "text": "mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)", "parent": 137, "children": [140, 141], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 67}}, {"id": 140, "type": "identifier", "text": "mail_index_map_get_ext_idx", "parent": 139, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 32}}, {"id": 141, "type": "argument_list", "text": "(t->view->index->map, ext_id, &idx)", "parent": 139, "children": [142, 149, 150], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 67}}, {"id": 142, "type": "field_expression", "text": "t->view->index->map", "parent": 141, "children": [143, 148], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 52}}, {"id": 143, "type": "field_expression", "text": "t->view->index", "parent": 142, "children": [144, 147], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 47}}, {"id": 144, "type": "field_expression", "text": "t->view", "parent": 143, "children": [145, 146], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 40}}, {"id": 145, "type": "identifier", "text": "t", "parent": 144, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 34}}, {"id": 146, "type": "field_identifier", "text": "view", "parent": 144, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 40}}, {"id": 147, "type": "field_identifier", "text": "index", "parent": 143, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 47}}, {"id": 148, "type": "field_identifier", "text": "map", "parent": 142, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 52}}, {"id": 149, "type": "identifier", "text": "ext_id", "parent": 141, "children": [], "start_point": {"row": 37, "column": 54}, "end_point": {"row": 37, "column": 60}}, {"id": 150, "type": "pointer_expression", "text": "&idx", "parent": 141, "children": [151], "start_point": {"row": 37, "column": 62}, "end_point": {"row": 37, "column": 66}}, {"id": 151, "type": "identifier", "text": "idx", "parent": 150, "children": [], "start_point": {"row": 37, "column": 63}, "end_point": {"row": 37, "column": 66}}, {"id": 152, "type": "assignment_expression", "text": "reset_id = 1", "parent": 135, "children": [153, 154, 155], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 14}}, {"id": 153, "type": "identifier", "text": "reset_id", "parent": 152, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 10}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 155, "type": "number_literal", "text": "1", "parent": 152, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 14}}, {"id": 156, "type": "else_clause", "text": "else {\n\t\tmap_ext = array_idx(&t->view->index->map->extensions, idx);\n\t\treset_id = map_ext->reset_id + 1;\n\t}", "parent": 135, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 43, "column": 2}}, {"id": 157, "type": "assignment_expression", "text": "map_ext = array_idx(&t->view->index->map->extensions, idx)", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 60}}, {"id": 158, "type": "identifier", "text": "map_ext", "parent": 157, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 9}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 11}}, {"id": 160, "type": "call_expression", "text": "array_idx(&t->view->index->map->extensions, idx)", "parent": 157, "children": [161, 162], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 60}}, {"id": 161, "type": "identifier", "text": "array_idx", "parent": 160, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 21}}, {"id": 162, "type": "argument_list", "text": "(&t->view->index->map->extensions, idx)", "parent": 160, "children": [163, 173], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 60}}, {"id": 163, "type": "pointer_expression", "text": "&t->view->index->map->extensions", "parent": 162, "children": [164], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 54}}, {"id": 164, "type": "field_expression", "text": "t->view->index->map->extensions", "parent": 163, "children": [165, 172], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 54}}, {"id": 165, "type": "field_expression", "text": "t->view->index->map", "parent": 164, "children": [166, 171], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 42}}, {"id": 166, "type": "field_expression", "text": "t->view->index", "parent": 165, "children": [167, 170], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 37}}, {"id": 167, "type": "field_expression", "text": "t->view", "parent": 166, "children": [168, 169], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 30}}, {"id": 168, "type": "identifier", "text": "t", "parent": 167, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 169, "type": "field_identifier", "text": "view", "parent": 167, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 30}}, {"id": 170, "type": "field_identifier", "text": "index", "parent": 166, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 37}}, {"id": 171, "type": "field_identifier", "text": "map", "parent": 165, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 42}}, {"id": 172, "type": "field_identifier", "text": "extensions", "parent": 164, "children": [], "start_point": {"row": 41, "column": 44}, "end_point": {"row": 41, "column": 54}}, {"id": 173, "type": "identifier", "text": "idx", "parent": 162, "children": [], "start_point": {"row": 41, "column": 56}, "end_point": {"row": 41, "column": 59}}, {"id": 174, "type": "assignment_expression", "text": "reset_id = map_ext->reset_id + 1", "parent": 156, "children": [175, 176, 177], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 34}}, {"id": 175, "type": "identifier", "text": "reset_id", "parent": 174, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 10}}, {"id": 176, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 12}}, {"id": 177, "type": "binary_expression", "text": "map_ext->reset_id + 1", "parent": 174, "children": [178, 181, 182], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 34}}, {"id": 178, "type": "field_expression", "text": "map_ext->reset_id", "parent": 177, "children": [179, 180], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 30}}, {"id": 179, "type": "identifier", "text": "map_ext", "parent": 178, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 20}}, {"id": 180, "type": "field_identifier", "text": "reset_id", "parent": 178, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 30}}, {"id": 181, "type": "+", "text": "+", "parent": 177, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 32}}, {"id": 182, "type": "number_literal", "text": "1", "parent": 177, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 34}}, {"id": 183, "type": "if_statement", "text": "if (reset_id != expected_reset_id) {\n\t\t/* ignore this extension update */\n\t\tmail_index_ext_set_reset_id(t, ext_id, 0);\n\t\treturn;\n\t}", "parent": 99, "children": [184], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 184, "type": "parenthesized_expression", "text": "(reset_id != expected_reset_id)", "parent": 183, "children": [185], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 35}}, {"id": 185, "type": "binary_expression", "text": "reset_id != expected_reset_id", "parent": 184, "children": [186, 187, 188], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 34}}, {"id": 186, "type": "identifier", "text": "reset_id", "parent": 185, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 13}}, {"id": 187, "type": "!=", "text": "!=", "parent": 185, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 16}}, {"id": 188, "type": "identifier", "text": "expected_reset_id", "parent": 185, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 34}}, {"id": 189, "type": "call_expression", "text": "mail_index_ext_set_reset_id(t, ext_id, 0)", "parent": 183, "children": [190, 191], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 43}}, {"id": 190, "type": "identifier", "text": "mail_index_ext_set_reset_id", "parent": 189, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 29}}, {"id": 191, "type": "argument_list", "text": "(t, ext_id, 0)", "parent": 189, "children": [192, 193, 194], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 43}}, {"id": 192, "type": "identifier", "text": "t", "parent": 191, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 31}}, {"id": 193, "type": "identifier", "text": "ext_id", "parent": 191, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 39}}, {"id": 194, "type": "number_literal", "text": "0", "parent": 191, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 42}}, {"id": 195, "type": "return_statement", "text": "return;", "parent": 183, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 196, "type": "if_statement", "text": "if (reset_id == 0)\n\t\treset_id++;", "parent": 99, "children": [197], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 51, "column": 13}}, {"id": 197, "type": "parenthesized_expression", "text": "(reset_id == 0)", "parent": 196, "children": [198], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 19}}, {"id": 198, "type": "binary_expression", "text": "reset_id == 0", "parent": 197, "children": [199, 200, 201], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 18}}, {"id": 199, "type": "identifier", "text": "reset_id", "parent": 198, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 13}}, {"id": 200, "type": "==", "text": "==", "parent": 198, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 16}}, {"id": 201, "type": "number_literal", "text": "0", "parent": 198, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 18}}, {"id": 202, "type": "update_expression", "text": "reset_id++", "parent": 196, "children": [203, 204], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 12}}, {"id": 203, "type": "identifier", "text": "reset_id", "parent": 202, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 10}}, {"id": 204, "type": "++", "text": "++", "parent": 202, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 12}}, {"id": 205, "type": "call_expression", "text": "array_idx_set(&t->ext_reset_ids, ext_id, &reset_id)", "parent": 99, "children": [206, 207], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 52}}, {"id": 206, "type": "identifier", "text": "array_idx_set", "parent": 205, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 14}}, {"id": 207, "type": "argument_list", "text": "(&t->ext_reset_ids, ext_id, &reset_id)", "parent": 205, "children": [208, 212, 213], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 52}}, {"id": 208, "type": "pointer_expression", "text": "&t->ext_reset_ids", "parent": 207, "children": [209], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 32}}, {"id": 209, "type": "field_expression", "text": "t->ext_reset_ids", "parent": 208, "children": [210, 211], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 32}}, {"id": 210, "type": "identifier", "text": "t", "parent": 209, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 211, "type": "field_identifier", "text": "ext_reset_ids", "parent": 209, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 32}}, {"id": 212, "type": "identifier", "text": "ext_id", "parent": 207, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 40}}, {"id": 213, "type": "pointer_expression", "text": "&reset_id", "parent": 207, "children": [214], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 51}}, {"id": 214, "type": "identifier", "text": "reset_id", "parent": 213, "children": [], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 51}}, {"id": 215, "type": "if_statement", "text": "if (array_is_created(&t->ext_resets)) {\n\t\treset = array_idx_modifiable(&t->ext_resets, ext_id);\n\t\tif (reset->new_reset_id == (uint32_t)-1)\n\t\t\treset->new_reset_id = reset_id;\n\t}", "parent": 99, "children": [216], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 60, "column": 2}}, {"id": 216, "type": "parenthesized_expression", "text": "(array_is_created(&t->ext_resets))", "parent": 215, "children": [217], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 38}}, {"id": 217, "type": "call_expression", "text": "array_is_created(&t->ext_resets)", "parent": 216, "children": [218, 219], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 37}}, {"id": 218, "type": "identifier", "text": "array_is_created", "parent": 217, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 21}}, {"id": 219, "type": "argument_list", "text": "(&t->ext_resets)", "parent": 217, "children": [220], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 37}}, {"id": 220, "type": "pointer_expression", "text": "&t->ext_resets", "parent": 219, "children": [221], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 36}}, {"id": 221, "type": "field_expression", "text": "t->ext_resets", "parent": 220, "children": [222, 223], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 36}}, {"id": 222, "type": "identifier", "text": "t", "parent": 221, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 24}}, {"id": 223, "type": "field_identifier", "text": "ext_resets", "parent": 221, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 36}}, {"id": 224, "type": "assignment_expression", "text": "reset = array_idx_modifiable(&t->ext_resets, ext_id)", "parent": 215, "children": [225, 226, 227], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 54}}, {"id": 225, "type": "identifier", "text": "reset", "parent": 224, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 226, "type": "=", "text": "=", "parent": 224, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 227, "type": "call_expression", "text": "array_idx_modifiable(&t->ext_resets, ext_id)", "parent": 224, "children": [228, 229], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 54}}, {"id": 228, "type": "identifier", "text": "array_idx_modifiable", "parent": 227, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 30}}, {"id": 229, "type": "argument_list", "text": "(&t->ext_resets, ext_id)", "parent": 227, "children": [230, 234], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 54}}, {"id": 230, "type": "pointer_expression", "text": "&t->ext_resets", "parent": 229, "children": [231], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 45}}, {"id": 231, "type": "field_expression", "text": "t->ext_resets", "parent": 230, "children": [232, 233], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 45}}, {"id": 232, "type": "identifier", "text": "t", "parent": 231, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 33}}, {"id": 233, "type": "field_identifier", "text": "ext_resets", "parent": 231, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 45}}, {"id": 234, "type": "identifier", "text": "ext_id", "parent": 229, "children": [], "start_point": {"row": 57, "column": 47}, "end_point": {"row": 57, "column": 53}}, {"id": 235, "type": "if_statement", "text": "if (reset->new_reset_id == (uint32_t)-1)\n\t\t\treset->new_reset_id = reset_id;", "parent": 215, "children": [236], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 59, "column": 34}}, {"id": 236, "type": "parenthesized_expression", "text": "(reset->new_reset_id == (uint32_t)-1)", "parent": 235, "children": [237], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 42}}, {"id": 237, "type": "binary_expression", "text": "reset->new_reset_id == (uint32_t)-1", "parent": 236, "children": [238, 241, 242], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 41}}, {"id": 238, "type": "field_expression", "text": "reset->new_reset_id", "parent": 237, "children": [239, 240], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 25}}, {"id": 239, "type": "identifier", "text": "reset", "parent": 238, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 11}}, {"id": 240, "type": "field_identifier", "text": "new_reset_id", "parent": 238, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 25}}, {"id": 241, "type": "==", "text": "==", "parent": 237, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 28}}, {"id": 242, "type": "cast_expression", "text": "(uint32_t)-1", "parent": 237, "children": [243, 245], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 41}}, {"id": 243, "type": "type_descriptor", "text": "uint32_t", "parent": 242, "children": [244], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 38}}, {"id": 244, "type": "primitive_type", "text": "uint32_t", "parent": 243, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 38}}, {"id": 245, "type": "number_literal", "text": "-1", "parent": 242, "children": [], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 41}}, {"id": 246, "type": "assignment_expression", "text": "reset->new_reset_id = reset_id", "parent": 235, "children": [247, 250, 251], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 33}}, {"id": 247, "type": "field_expression", "text": "reset->new_reset_id", "parent": 246, "children": [248, 249], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 22}}, {"id": 248, "type": "identifier", "text": "reset", "parent": 247, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 8}}, {"id": 249, "type": "field_identifier", "text": "new_reset_id", "parent": 247, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 22}}, {"id": 250, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 24}}, {"id": 251, "type": "identifier", "text": "reset_id", "parent": 246, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 33}}, {"id": 252, "type": "function_definition", "text": "static void\ntransaction_update_atomic_reset_ids(struct mail_index_transaction *t)\n{\n\tconst uint32_t *expected_reset_ids;\n\tunsigned int ext_id, count;\n\n\tif (!array_is_created(&t->ext_reset_atomic))\n\t\treturn;\n\n\texpected_reset_ids = array_get(&t->ext_reset_atomic, &count);\n\tfor (ext_id = 0; ext_id < count; ext_id++) {\n\t\tif (expected_reset_ids[ext_id] != 0) {\n\t\t\text_reset_update_atomic(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id]);\n\t\t}\n\t}\n}", "parent": null, "children": [253, 254], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 253, "type": "primitive_type", "text": "void", "parent": 252, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 11}}, {"id": 254, "type": "function_declarator", "text": "transaction_update_atomic_reset_ids(struct mail_index_transaction *t)", "parent": 252, "children": [255, 256], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 69}}, {"id": 255, "type": "identifier", "text": "transaction_update_atomic_reset_ids", "parent": 254, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 35}}, {"id": 256, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 254, "children": [257], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 69}}, {"id": 257, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 256, "children": [258, 261], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 68}}, {"id": 258, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 257, "children": [259, 260], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 65}}, {"id": 259, "type": "struct", "text": "struct", "parent": 258, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 42}}, {"id": 260, "type": "type_identifier", "text": "mail_index_transaction", "parent": 258, "children": [], "start_point": {"row": 64, "column": 43}, "end_point": {"row": 64, "column": 65}}, {"id": 261, "type": "pointer_declarator", "text": "*t", "parent": 257, "children": [262, 263], "start_point": {"row": 64, "column": 66}, "end_point": {"row": 64, "column": 68}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 64, "column": 66}, "end_point": {"row": 64, "column": 67}}, {"id": 263, "type": "identifier", "text": "t", "parent": 261, "children": [], "start_point": {"row": 64, "column": 67}, "end_point": {"row": 64, "column": 68}}, {"id": 264, "type": "declaration", "text": "const uint32_t *expected_reset_ids;", "parent": 252, "children": [265, 266], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 36}}, {"id": 265, "type": "primitive_type", "text": "uint32_t", "parent": 264, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 15}}, {"id": 266, "type": "pointer_declarator", "text": "*expected_reset_ids", "parent": 264, "children": [267, 268], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 35}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 17}}, {"id": 268, "type": "identifier", "text": "expected_reset_ids", "parent": 266, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 35}}, {"id": 269, "type": "declaration", "text": "unsigned int ext_id, count;", "parent": 252, "children": [270, 273, 274], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 28}}, {"id": 270, "type": "sized_type_specifier", "text": "unsigned int", "parent": 269, "children": [271, 272], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 13}}, {"id": 271, "type": "unsigned", "text": "unsigned", "parent": 270, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 9}}, {"id": 272, "type": "primitive_type", "text": "int", "parent": 270, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 13}}, {"id": 273, "type": "identifier", "text": "ext_id", "parent": 269, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 20}}, {"id": 274, "type": "identifier", "text": "count", "parent": 269, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 27}}, {"id": 275, "type": "if_statement", "text": "if (!array_is_created(&t->ext_reset_atomic))\n\t\treturn;", "parent": 252, "children": [276, 286], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 276, "type": "parenthesized_expression", "text": "(!array_is_created(&t->ext_reset_atomic))", "parent": 275, "children": [277], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 45}}, {"id": 277, "type": "unary_expression", "text": "!array_is_created(&t->ext_reset_atomic)", "parent": 276, "children": [278, 279], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 44}}, {"id": 278, "type": "!", "text": "!", "parent": 277, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 279, "type": "call_expression", "text": "array_is_created(&t->ext_reset_atomic)", "parent": 277, "children": [280, 281], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 44}}, {"id": 280, "type": "identifier", "text": "array_is_created", "parent": 279, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 22}}, {"id": 281, "type": "argument_list", "text": "(&t->ext_reset_atomic)", "parent": 279, "children": [282], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 44}}, {"id": 282, "type": "pointer_expression", "text": "&t->ext_reset_atomic", "parent": 281, "children": [283], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 43}}, {"id": 283, "type": "field_expression", "text": "t->ext_reset_atomic", "parent": 282, "children": [284, 285], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 43}}, {"id": 284, "type": "identifier", "text": "t", "parent": 283, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 25}}, {"id": 285, "type": "field_identifier", "text": "ext_reset_atomic", "parent": 283, "children": [], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 43}}, {"id": 286, "type": "return_statement", "text": "return;", "parent": 275, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 9}}, {"id": 287, "type": "assignment_expression", "text": "expected_reset_ids = array_get(&t->ext_reset_atomic, &count)", "parent": 252, "children": [288, 289, 290], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 61}}, {"id": 288, "type": "identifier", "text": "expected_reset_ids", "parent": 287, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 19}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 21}}, {"id": 290, "type": "call_expression", "text": "array_get(&t->ext_reset_atomic, &count)", "parent": 287, "children": [291, 292], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 61}}, {"id": 291, "type": "identifier", "text": "array_get", "parent": 290, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 31}}, {"id": 292, "type": "argument_list", "text": "(&t->ext_reset_atomic, &count)", "parent": 290, "children": [293, 297], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 61}}, {"id": 293, "type": "pointer_expression", "text": "&t->ext_reset_atomic", "parent": 292, "children": [294], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 52}}, {"id": 294, "type": "field_expression", "text": "t->ext_reset_atomic", "parent": 293, "children": [295, 296], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 52}}, {"id": 295, "type": "identifier", "text": "t", "parent": 294, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 34}}, {"id": 296, "type": "field_identifier", "text": "ext_reset_atomic", "parent": 294, "children": [], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 52}}, {"id": 297, "type": "pointer_expression", "text": "&count", "parent": 292, "children": [298], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 72, "column": 60}}, {"id": 298, "type": "identifier", "text": "count", "parent": 297, "children": [], "start_point": {"row": 72, "column": 55}, "end_point": {"row": 72, "column": 60}}, {"id": 299, "type": "for_statement", "text": "for (ext_id = 0; ext_id < count; ext_id++) {\n\t\tif (expected_reset_ids[ext_id] != 0) {\n\t\t\text_reset_update_atomic(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id]);\n\t\t}\n\t}", "parent": 252, "children": [300, 304, 308], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 300, "type": "assignment_expression", "text": "ext_id = 0", "parent": 299, "children": [301, 302, 303], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 16}}, {"id": 301, "type": "identifier", "text": "ext_id", "parent": 300, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 12}}, {"id": 302, "type": "=", "text": "=", "parent": 300, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 303, "type": "number_literal", "text": "0", "parent": 300, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 16}}, {"id": 304, "type": "binary_expression", "text": "ext_id < count", "parent": 299, "children": [305, 306, 307], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 32}}, {"id": 305, "type": "identifier", "text": "ext_id", "parent": 304, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 24}}, {"id": 306, "type": "<", "text": "<", "parent": 304, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 26}}, {"id": 307, "type": "identifier", "text": "count", "parent": 304, "children": [], "start_point": {"row": 73, "column": 27}, "end_point": {"row": 73, "column": 32}}, {"id": 308, "type": "update_expression", "text": "ext_id++", "parent": 299, "children": [309, 310], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 42}}, {"id": 309, "type": "identifier", "text": "ext_id", "parent": 308, "children": [], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 40}}, {"id": 310, "type": "++", "text": "++", "parent": 308, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 42}}, {"id": 311, "type": "if_statement", "text": "if (expected_reset_ids[ext_id] != 0) {\n\t\t\text_reset_update_atomic(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id]);\n\t\t}", "parent": 299, "children": [312], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 77, "column": 3}}, {"id": 312, "type": "parenthesized_expression", "text": "(expected_reset_ids[ext_id] != 0)", "parent": 311, "children": [313], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 38}}, {"id": 313, "type": "binary_expression", "text": "expected_reset_ids[ext_id] != 0", "parent": 312, "children": [314, 317, 318], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 37}}, {"id": 314, "type": "subscript_expression", "text": "expected_reset_ids[ext_id]", "parent": 313, "children": [315, 316], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 32}}, {"id": 315, "type": "identifier", "text": "expected_reset_ids", "parent": 314, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 24}}, {"id": 316, "type": "identifier", "text": "ext_id", "parent": 314, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 31}}, {"id": 317, "type": "!=", "text": "!=", "parent": 313, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 35}}, {"id": 318, "type": "number_literal", "text": "0", "parent": 313, "children": [], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 37}}, {"id": 319, "type": "call_expression", "text": "ext_reset_update_atomic(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id])", "parent": 311, "children": [320, 321], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 76, "column": 33}}, {"id": 320, "type": "identifier", "text": "ext_reset_update_atomic", "parent": 319, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 26}}, {"id": 321, "type": "argument_list", "text": "(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id])", "parent": 319, "children": [322, 323, 324], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 76, "column": 33}}, {"id": 322, "type": "identifier", "text": "t", "parent": 321, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 28}}, {"id": 323, "type": "identifier", "text": "ext_id", "parent": 321, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 36}}, {"id": 324, "type": "subscript_expression", "text": "expected_reset_ids[ext_id]", "parent": 321, "children": [325, 326], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 32}}, {"id": 325, "type": "identifier", "text": "expected_reset_ids", "parent": 324, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 24}}, {"id": 326, "type": "identifier", "text": "ext_id", "parent": 324, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 31}}, {"id": 327, "type": "function_definition", "text": "static unsigned int\nmail_transaction_drop_range(struct mail_index_transaction *t,\n\t\t\t struct mail_index_flag_update update,\n\t\t\t unsigned int update_idx,\n\t\t\t ARRAY_TYPE(seq_range) *keeps)\n{\n\tconst struct seq_range *keep_range;\n\tunsigned int i, keep_count;\n\n\tkeep_range = array_get(keeps, &keep_count);\n\tif (keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1 &&\n\t update.uid2 == keep_range[0].seq2) {\n\t\t/* evereything is kept */\n\t\treturn update_idx + 1;\n\t}\n\n\tarray_delete(&t->updates, update_idx, 1);\n\n\t/* add back all the updates we want to keep */\n\tfor (i = 0; i < keep_count; i++, update_idx++) {\n\t\tupdate.uid1 = keep_range[i].seq1;\n\t\tupdate.uid2 = keep_range[i].seq2;\n\t\tarray_insert(&t->updates, update_idx, &update, 1);\n\t}\n\treturn update_idx;\n}", "parent": null, "children": [328, 331], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 328, "type": "sized_type_specifier", "text": "unsigned int", "parent": 327, "children": [329, 330], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 329, "type": "unsigned", "text": "unsigned", "parent": 328, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 15}}, {"id": 330, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 19}}, {"id": 331, "type": "function_declarator", "text": "mail_transaction_drop_range(struct mail_index_transaction *t,\n\t\t\t struct mail_index_flag_update update,\n\t\t\t unsigned int update_idx,\n\t\t\t ARRAY_TYPE(seq_range) *keeps)", "parent": 327, "children": [332, 333], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 85, "column": 36}}, {"id": 332, "type": "identifier", "text": "mail_transaction_drop_range", "parent": 331, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 27}}, {"id": 333, "type": "parameter_list", "text": "(struct mail_index_transaction *t,\n\t\t\t struct mail_index_flag_update update,\n\t\t\t unsigned int update_idx,\n\t\t\t ARRAY_TYPE(seq_range) *keeps)", "parent": 331, "children": [334, 341, 346, 351], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 85, "column": 36}}, {"id": 334, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 333, "children": [335, 338], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 60}}, {"id": 335, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 334, "children": [336, 337], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 57}}, {"id": 336, "type": "struct", "text": "struct", "parent": 335, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 34}}, {"id": 337, "type": "type_identifier", "text": "mail_index_transaction", "parent": 335, "children": [], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 57}}, {"id": 338, "type": "pointer_declarator", "text": "*t", "parent": 334, "children": [339, 340], "start_point": {"row": 82, "column": 58}, "end_point": {"row": 82, "column": 60}}, {"id": 339, "type": "*", "text": "*", "parent": 338, "children": [], "start_point": {"row": 82, "column": 58}, "end_point": {"row": 82, "column": 59}}, {"id": 340, "type": "identifier", "text": "t", "parent": 338, "children": [], "start_point": {"row": 82, "column": 59}, "end_point": {"row": 82, "column": 60}}, {"id": 341, "type": "parameter_declaration", "text": "struct mail_index_flag_update update", "parent": 333, "children": [342, 345], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 43}}, {"id": 342, "type": "struct_specifier", "text": "struct mail_index_flag_update", "parent": 341, "children": [343, 344], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 36}}, {"id": 343, "type": "struct", "text": "struct", "parent": 342, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 13}}, {"id": 344, "type": "type_identifier", "text": "mail_index_flag_update", "parent": 342, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 36}}, {"id": 345, "type": "identifier", "text": "update", "parent": 341, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 43}}, {"id": 346, "type": "parameter_declaration", "text": "unsigned int update_idx", "parent": 333, "children": [347, 350], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 30}}, {"id": 347, "type": "sized_type_specifier", "text": "unsigned int", "parent": 346, "children": [348, 349], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 19}}, {"id": 348, "type": "unsigned", "text": "unsigned", "parent": 347, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 15}}, {"id": 349, "type": "primitive_type", "text": "int", "parent": 347, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 19}}, {"id": 350, "type": "identifier", "text": "update_idx", "parent": 346, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 30}}, {"id": 351, "type": "parameter_declaration", "text": "ARRAY_TYPE(seq_range) *keeps", "parent": 333, "children": [352, 356], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 35}}, {"id": 352, "type": "macro_type_specifier", "text": "ARRAY_TYPE(seq_range)", "parent": 351, "children": [353, 354], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 28}}, {"id": 353, "type": "identifier", "text": "ARRAY_TYPE", "parent": 352, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 17}}, {"id": 354, "type": "type_descriptor", "text": "seq_range", "parent": 352, "children": [355], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 27}}, {"id": 355, "type": "type_identifier", "text": "seq_range", "parent": 354, "children": [], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 27}}, {"id": 356, "type": "pointer_declarator", "text": "*keeps", "parent": 351, "children": [357, 358], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 35}}, {"id": 357, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 30}}, {"id": 358, "type": "identifier", "text": "keeps", "parent": 356, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 35}}, {"id": 359, "type": "declaration", "text": "const struct seq_range *keep_range;", "parent": 327, "children": [360, 363], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 36}}, {"id": 360, "type": "struct_specifier", "text": "struct seq_range", "parent": 359, "children": [361, 362], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 23}}, {"id": 361, "type": "struct", "text": "struct", "parent": 360, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 13}}, {"id": 362, "type": "type_identifier", "text": "seq_range", "parent": 360, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 23}}, {"id": 363, "type": "pointer_declarator", "text": "*keep_range", "parent": 359, "children": [364, 365], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 35}}, {"id": 364, "type": "*", "text": "*", "parent": 363, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 25}}, {"id": 365, "type": "identifier", "text": "keep_range", "parent": 363, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 35}}, {"id": 366, "type": "declaration", "text": "unsigned int i, keep_count;", "parent": 327, "children": [367, 370, 371], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 28}}, {"id": 367, "type": "sized_type_specifier", "text": "unsigned int", "parent": 366, "children": [368, 369], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 13}}, {"id": 368, "type": "unsigned", "text": "unsigned", "parent": 367, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 9}}, {"id": 369, "type": "primitive_type", "text": "int", "parent": 367, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 13}}, {"id": 370, "type": "identifier", "text": "i", "parent": 366, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 15}}, {"id": 371, "type": "identifier", "text": "keep_count", "parent": 366, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 27}}, {"id": 372, "type": "assignment_expression", "text": "keep_range = array_get(keeps, &keep_count)", "parent": 327, "children": [373, 374, 375], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 43}}, {"id": 373, "type": "identifier", "text": "keep_range", "parent": 372, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 11}}, {"id": 374, "type": "=", "text": "=", "parent": 372, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 13}}, {"id": 375, "type": "call_expression", "text": "array_get(keeps, &keep_count)", "parent": 372, "children": [376, 377], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 43}}, {"id": 376, "type": "identifier", "text": "array_get", "parent": 375, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 23}}, {"id": 377, "type": "argument_list", "text": "(keeps, &keep_count)", "parent": 375, "children": [378, 379], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 43}}, {"id": 378, "type": "identifier", "text": "keeps", "parent": 377, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 29}}, {"id": 379, "type": "pointer_expression", "text": "&keep_count", "parent": 377, "children": [380], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 42}}, {"id": 380, "type": "identifier", "text": "keep_count", "parent": 379, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 42}}, {"id": 381, "type": "if_statement", "text": "if (keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1 &&\n\t update.uid2 == keep_range[0].seq2) {\n\t\t/* evereything is kept */\n\t\treturn update_idx + 1;\n\t}", "parent": 327, "children": [382], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 382, "type": "parenthesized_expression", "text": "(keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1 &&\n\t update.uid2 == keep_range[0].seq2)", "parent": 381, "children": [383], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 93, "column": 39}}, {"id": 383, "type": "binary_expression", "text": "keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1 &&\n\t update.uid2 == keep_range[0].seq2", "parent": 382, "children": [384, 400, 401], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 93, "column": 38}}, {"id": 384, "type": "binary_expression", "text": "keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1", "parent": 383, "children": [385, 389, 390], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 92, "column": 38}}, {"id": 385, "type": "binary_expression", "text": "keep_count == 1", "parent": 384, "children": [386, 387, 388], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 20}}, {"id": 386, "type": "identifier", "text": "keep_count", "parent": 385, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 15}}, {"id": 387, "type": "==", "text": "==", "parent": 385, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 18}}, {"id": 388, "type": "number_literal", "text": "1", "parent": 385, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 20}}, {"id": 389, "type": "&&", "text": "&&", "parent": 384, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 23}}, {"id": 390, "type": "binary_expression", "text": "update.uid1 == keep_range[0].seq1", "parent": 384, "children": [391, 394, 395], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 38}}, {"id": 391, "type": "field_expression", "text": "update.uid1", "parent": 390, "children": [392, 393], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 16}}, {"id": 392, "type": "identifier", "text": "update", "parent": 391, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 11}}, {"id": 393, "type": "field_identifier", "text": "uid1", "parent": 391, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 394, "type": "==", "text": "==", "parent": 390, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 19}}, {"id": 395, "type": "field_expression", "text": "keep_range[0].seq1", "parent": 390, "children": [396, 399], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 38}}, {"id": 396, "type": "subscript_expression", "text": "keep_range[0]", "parent": 395, "children": [397, 398], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 33}}, {"id": 397, "type": "identifier", "text": "keep_range", "parent": 396, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 30}}, {"id": 398, "type": "number_literal", "text": "0", "parent": 396, "children": [], "start_point": {"row": 92, "column": 31}, "end_point": {"row": 92, "column": 32}}, {"id": 399, "type": "field_identifier", "text": "seq1", "parent": 395, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 38}}, {"id": 400, "type": "&&", "text": "&&", "parent": 383, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 41}}, {"id": 401, "type": "binary_expression", "text": "update.uid2 == keep_range[0].seq2", "parent": 383, "children": [402, 405, 406], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 38}}, {"id": 402, "type": "field_expression", "text": "update.uid2", "parent": 401, "children": [403, 404], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 16}}, {"id": 403, "type": "identifier", "text": "update", "parent": 402, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 11}}, {"id": 404, "type": "field_identifier", "text": "uid2", "parent": 402, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 405, "type": "==", "text": "==", "parent": 401, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 19}}, {"id": 406, "type": "field_expression", "text": "keep_range[0].seq2", "parent": 401, "children": [407, 410], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 38}}, {"id": 407, "type": "subscript_expression", "text": "keep_range[0]", "parent": 406, "children": [408, 409], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 33}}, {"id": 408, "type": "identifier", "text": "keep_range", "parent": 407, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 30}}, {"id": 409, "type": "number_literal", "text": "0", "parent": 407, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 32}}, {"id": 410, "type": "field_identifier", "text": "seq2", "parent": 406, "children": [], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 38}}, {"id": 411, "type": "return_statement", "text": "return update_idx + 1;", "parent": 381, "children": [412], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 24}}, {"id": 412, "type": "binary_expression", "text": "update_idx + 1", "parent": 411, "children": [413, 414, 415], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 23}}, {"id": 413, "type": "identifier", "text": "update_idx", "parent": 412, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 19}}, {"id": 414, "type": "+", "text": "+", "parent": 412, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 21}}, {"id": 415, "type": "number_literal", "text": "1", "parent": 412, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 23}}, {"id": 416, "type": "call_expression", "text": "array_delete(&t->updates, update_idx, 1)", "parent": 327, "children": [417, 418], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 41}}, {"id": 417, "type": "identifier", "text": "array_delete", "parent": 416, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 13}}, {"id": 418, "type": "argument_list", "text": "(&t->updates, update_idx, 1)", "parent": 416, "children": [419, 423, 424], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 41}}, {"id": 419, "type": "pointer_expression", "text": "&t->updates", "parent": 418, "children": [420], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 25}}, {"id": 420, "type": "field_expression", "text": "t->updates", "parent": 419, "children": [421, 422], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 25}}, {"id": 421, "type": "identifier", "text": "t", "parent": 420, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 16}}, {"id": 422, "type": "field_identifier", "text": "updates", "parent": 420, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 25}}, {"id": 423, "type": "identifier", "text": "update_idx", "parent": 418, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 37}}, {"id": 424, "type": "number_literal", "text": "1", "parent": 418, "children": [], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 40}}, {"id": 425, "type": "for_statement", "text": "for (i = 0; i < keep_count; i++, update_idx++) {\n\t\tupdate.uid1 = keep_range[i].seq1;\n\t\tupdate.uid2 = keep_range[i].seq2;\n\t\tarray_insert(&t->updates, update_idx, &update, 1);\n\t}", "parent": 327, "children": [426, 430, 434], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 426, "type": "assignment_expression", "text": "i = 0", "parent": 425, "children": [427, 428, 429], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 11}}, {"id": 427, "type": "identifier", "text": "i", "parent": 426, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 7}}, {"id": 428, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 9}}, {"id": 429, "type": "number_literal", "text": "0", "parent": 426, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 11}}, {"id": 430, "type": "binary_expression", "text": "i < keep_count", "parent": 425, "children": [431, 432, 433], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 27}}, {"id": 431, "type": "identifier", "text": "i", "parent": 430, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 14}}, {"id": 432, "type": "<", "text": "<", "parent": 430, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 16}}, {"id": 433, "type": "identifier", "text": "keep_count", "parent": 430, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 27}}, {"id": 434, "type": "comma_expression", "text": "i++, update_idx++", "parent": 425, "children": [435, 438], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 46}}, {"id": 435, "type": "update_expression", "text": "i++", "parent": 434, "children": [436, 437], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 32}}, {"id": 436, "type": "identifier", "text": "i", "parent": 435, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 30}}, {"id": 437, "type": "++", "text": "++", "parent": 435, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 32}}, {"id": 438, "type": "update_expression", "text": "update_idx++", "parent": 434, "children": [439, 440], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 46}}, {"id": 439, "type": "identifier", "text": "update_idx", "parent": 438, "children": [], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 44}}, {"id": 440, "type": "++", "text": "++", "parent": 438, "children": [], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 46}}, {"id": 441, "type": "assignment_expression", "text": "update.uid1 = keep_range[i].seq1", "parent": 425, "children": [442, 445, 446], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 34}}, {"id": 442, "type": "field_expression", "text": "update.uid1", "parent": 441, "children": [443, 444], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 13}}, {"id": 443, "type": "identifier", "text": "update", "parent": 442, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 8}}, {"id": 444, "type": "field_identifier", "text": "uid1", "parent": 442, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 13}}, {"id": 445, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 15}}, {"id": 446, "type": "field_expression", "text": "keep_range[i].seq1", "parent": 441, "children": [447, 450], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 34}}, {"id": 447, "type": "subscript_expression", "text": "keep_range[i]", "parent": 446, "children": [448, 449], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 29}}, {"id": 448, "type": "identifier", "text": "keep_range", "parent": 447, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 26}}, {"id": 449, "type": "identifier", "text": "i", "parent": 447, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 28}}, {"id": 450, "type": "field_identifier", "text": "seq1", "parent": 446, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 34}}, {"id": 451, "type": "assignment_expression", "text": "update.uid2 = keep_range[i].seq2", "parent": 425, "children": [452, 455, 456], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 34}}, {"id": 452, "type": "field_expression", "text": "update.uid2", "parent": 451, "children": [453, 454], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 13}}, {"id": 453, "type": "identifier", "text": "update", "parent": 452, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 8}}, {"id": 454, "type": "field_identifier", "text": "uid2", "parent": 452, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 13}}, {"id": 455, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 15}}, {"id": 456, "type": "field_expression", "text": "keep_range[i].seq2", "parent": 451, "children": [457, 460], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 34}}, {"id": 457, "type": "subscript_expression", "text": "keep_range[i]", "parent": 456, "children": [458, 459], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 29}}, {"id": 458, "type": "identifier", "text": "keep_range", "parent": 457, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 26}}, {"id": 459, "type": "identifier", "text": "i", "parent": 457, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 28}}, {"id": 460, "type": "field_identifier", "text": "seq2", "parent": 456, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 34}}, {"id": 461, "type": "call_expression", "text": "array_insert(&t->updates, update_idx, &update, 1)", "parent": 425, "children": [462, 463], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 51}}, {"id": 462, "type": "identifier", "text": "array_insert", "parent": 461, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 14}}, {"id": 463, "type": "argument_list", "text": "(&t->updates, update_idx, &update, 1)", "parent": 461, "children": [464, 468, 469, 471], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 51}}, {"id": 464, "type": "pointer_expression", "text": "&t->updates", "parent": 463, "children": [465], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 26}}, {"id": 465, "type": "field_expression", "text": "t->updates", "parent": 464, "children": [466, 467], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 26}}, {"id": 466, "type": "identifier", "text": "t", "parent": 465, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 17}}, {"id": 467, "type": "field_identifier", "text": "updates", "parent": 465, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 26}}, {"id": 468, "type": "identifier", "text": "update_idx", "parent": 463, "children": [], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 104, "column": 38}}, {"id": 469, "type": "pointer_expression", "text": "&update", "parent": 463, "children": [470], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 47}}, {"id": 470, "type": "identifier", "text": "update", "parent": 469, "children": [], "start_point": {"row": 104, "column": 41}, "end_point": {"row": 104, "column": 47}}, {"id": 471, "type": "number_literal", "text": "1", "parent": 463, "children": [], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 50}}, {"id": 472, "type": "return_statement", "text": "return update_idx;", "parent": 327, "children": [473], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 19}}, {"id": 473, "type": "identifier", "text": "update_idx", "parent": 472, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 18}}, {"id": 474, "type": "function_definition", "text": "static void\nmail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)\n{\n\tconst struct mail_index_flag_update *updates, *u;\n\tconst struct mail_index_record *rec;\n\tunsigned int i, count;\n\tARRAY_TYPE(seq_range) keeps;\n\tuint32_t seq;\n\n\tif (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n\t\treturn;\n\n\tt_array_init(&keeps, 64);\n\tupdates = array_get(&t->updates, &count);\n\tfor (i = 0; i < count; ) {\n\t\t/* first get the list of changes to drop */\n\t\tu = &updates[i];\n\t\tarray_clear(&keeps);\n\t\tfor (seq = u->uid1; seq <= u->uid2; seq++) {\n\t\t\trec = mail_index_lookup(t->view, seq);\n\t\t\tif ((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0) {\n\t\t\t\t/* keep this change */\n\t\t\t\tseq_range_array_add(&keeps, seq);\n\t\t\t}\n\t\t}\n\t\ti = mail_transaction_drop_range(t, updates[i], i, &keeps);\n\t\tupdates = array_get(&t->updates, &count);\n\t}\n\n\tif (array_count(&t->updates) == 0)\n\t\tarray_free(&t->updates);\n}", "parent": null, "children": [475, 476], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 475, "type": "primitive_type", "text": "void", "parent": 474, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 11}}, {"id": 476, "type": "function_declarator", "text": "mail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)", "parent": 474, "children": [477, 478], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 76}}, {"id": 477, "type": "identifier", "text": "mail_index_transaction_finish_flag_updates", "parent": 476, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 42}}, {"id": 478, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 476, "children": [479], "start_point": {"row": 110, "column": 42}, "end_point": {"row": 110, "column": 76}}, {"id": 479, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 478, "children": [480, 483], "start_point": {"row": 110, "column": 43}, "end_point": {"row": 110, "column": 75}}, {"id": 480, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 479, "children": [481, 482], "start_point": {"row": 110, "column": 43}, "end_point": {"row": 110, "column": 72}}, {"id": 481, "type": "struct", "text": "struct", "parent": 480, "children": [], "start_point": {"row": 110, "column": 43}, "end_point": {"row": 110, "column": 49}}, {"id": 482, "type": "type_identifier", "text": "mail_index_transaction", "parent": 480, "children": [], "start_point": {"row": 110, "column": 50}, "end_point": {"row": 110, "column": 72}}, {"id": 483, "type": "pointer_declarator", "text": "*t", "parent": 479, "children": [484, 485], "start_point": {"row": 110, "column": 73}, "end_point": {"row": 110, "column": 75}}, {"id": 484, "type": "*", "text": "*", "parent": 483, "children": [], "start_point": {"row": 110, "column": 73}, "end_point": {"row": 110, "column": 74}}, {"id": 485, "type": "identifier", "text": "t", "parent": 483, "children": [], "start_point": {"row": 110, "column": 74}, "end_point": {"row": 110, "column": 75}}, {"id": 486, "type": "declaration", "text": "const struct mail_index_flag_update *updates, *u;", "parent": 474, "children": [487, 490, 493], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 50}}, {"id": 487, "type": "struct_specifier", "text": "struct mail_index_flag_update", "parent": 486, "children": [488, 489], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 36}}, {"id": 488, "type": "struct", "text": "struct", "parent": 487, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 13}}, {"id": 489, "type": "type_identifier", "text": "mail_index_flag_update", "parent": 487, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 36}}, {"id": 490, "type": "pointer_declarator", "text": "*updates", "parent": 486, "children": [491, 492], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 45}}, {"id": 491, "type": "*", "text": "*", "parent": 490, "children": [], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 38}}, {"id": 492, "type": "identifier", "text": "updates", "parent": 490, "children": [], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 45}}, {"id": 493, "type": "pointer_declarator", "text": "*u", "parent": 486, "children": [494, 495], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 49}}, {"id": 494, "type": "*", "text": "*", "parent": 493, "children": [], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 48}}, {"id": 495, "type": "identifier", "text": "u", "parent": 493, "children": [], "start_point": {"row": 112, "column": 48}, "end_point": {"row": 112, "column": 49}}, {"id": 496, "type": "declaration", "text": "const struct mail_index_record *rec;", "parent": 474, "children": [497, 500], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 37}}, {"id": 497, "type": "struct_specifier", "text": "struct mail_index_record", "parent": 496, "children": [498, 499], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 31}}, {"id": 498, "type": "struct", "text": "struct", "parent": 497, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 13}}, {"id": 499, "type": "type_identifier", "text": "mail_index_record", "parent": 497, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 31}}, {"id": 500, "type": "pointer_declarator", "text": "*rec", "parent": 496, "children": [501, 502], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 36}}, {"id": 501, "type": "*", "text": "*", "parent": 500, "children": [], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 33}}, {"id": 502, "type": "identifier", "text": "rec", "parent": 500, "children": [], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 36}}, {"id": 503, "type": "declaration", "text": "unsigned int i, count;", "parent": 474, "children": [504, 507, 508], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 23}}, {"id": 504, "type": "sized_type_specifier", "text": "unsigned int", "parent": 503, "children": [505, 506], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 13}}, {"id": 505, "type": "unsigned", "text": "unsigned", "parent": 504, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 9}}, {"id": 506, "type": "primitive_type", "text": "int", "parent": 504, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 13}}, {"id": 507, "type": "identifier", "text": "i", "parent": 503, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 508, "type": "identifier", "text": "count", "parent": 503, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 22}}, {"id": 509, "type": "declaration", "text": "ARRAY_TYPE(seq_range) keeps;", "parent": 474, "children": [510, 514], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 29}}, {"id": 510, "type": "macro_type_specifier", "text": "ARRAY_TYPE(seq_range)", "parent": 509, "children": [511, 512], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 22}}, {"id": 511, "type": "identifier", "text": "ARRAY_TYPE", "parent": 510, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 11}}, {"id": 512, "type": "type_descriptor", "text": "seq_range", "parent": 510, "children": [513], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 21}}, {"id": 513, "type": "type_identifier", "text": "seq_range", "parent": 512, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 21}}, {"id": 514, "type": "identifier", "text": "keeps", "parent": 509, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 28}}, {"id": 515, "type": "declaration", "text": "uint32_t seq;", "parent": 474, "children": [516, 517], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 14}}, {"id": 516, "type": "primitive_type", "text": "uint32_t", "parent": 515, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 9}}, {"id": 517, "type": "identifier", "text": "seq", "parent": 515, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 13}}, {"id": 518, "type": "if_statement", "text": "if (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n\t\treturn;", "parent": 474, "children": [519, 536], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 119, "column": 9}}, {"id": 519, "type": "parenthesized_expression", "text": "(!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))", "parent": 518, "children": [520], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 73}}, {"id": 520, "type": "binary_expression", "text": "!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates)", "parent": 519, "children": [521, 526, 527], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 72}}, {"id": 521, "type": "unary_expression", "text": "!t->drop_unnecessary_flag_updates", "parent": 520, "children": [522, 523], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 38}}, {"id": 522, "type": "!", "text": "!", "parent": 521, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 6}}, {"id": 523, "type": "field_expression", "text": "t->drop_unnecessary_flag_updates", "parent": 521, "children": [524, 525], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 38}}, {"id": 524, "type": "identifier", "text": "t", "parent": 523, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 7}}, {"id": 525, "type": "field_identifier", "text": "drop_unnecessary_flag_updates", "parent": 523, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 38}}, {"id": 526, "type": "||", "text": "||", "parent": 520, "children": [], "start_point": {"row": 118, "column": 39}, "end_point": {"row": 118, "column": 41}}, {"id": 527, "type": "unary_expression", "text": "!array_is_created(&t->updates)", "parent": 520, "children": [528, 529], "start_point": {"row": 118, "column": 42}, "end_point": {"row": 118, "column": 72}}, {"id": 528, "type": "!", "text": "!", "parent": 527, "children": [], "start_point": {"row": 118, "column": 42}, "end_point": {"row": 118, "column": 43}}, {"id": 529, "type": "call_expression", "text": "array_is_created(&t->updates)", "parent": 527, "children": [530, 531], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 72}}, {"id": 530, "type": "identifier", "text": "array_is_created", "parent": 529, "children": [], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 59}}, {"id": 531, "type": "argument_list", "text": "(&t->updates)", "parent": 529, "children": [532], "start_point": {"row": 118, "column": 59}, "end_point": {"row": 118, "column": 72}}, {"id": 532, "type": "pointer_expression", "text": "&t->updates", "parent": 531, "children": [533], "start_point": {"row": 118, "column": 60}, "end_point": {"row": 118, "column": 71}}, {"id": 533, "type": "field_expression", "text": "t->updates", "parent": 532, "children": [534, 535], "start_point": {"row": 118, "column": 61}, "end_point": {"row": 118, "column": 71}}, {"id": 534, "type": "identifier", "text": "t", "parent": 533, "children": [], "start_point": {"row": 118, "column": 61}, "end_point": {"row": 118, "column": 62}}, {"id": 535, "type": "field_identifier", "text": "updates", "parent": 533, "children": [], "start_point": {"row": 118, "column": 64}, "end_point": {"row": 118, "column": 71}}, {"id": 536, "type": "return_statement", "text": "return;", "parent": 518, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 9}}, {"id": 537, "type": "call_expression", "text": "t_array_init(&keeps, 64)", "parent": 474, "children": [538, 539], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 25}}, {"id": 538, "type": "identifier", "text": "t_array_init", "parent": 537, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 13}}, {"id": 539, "type": "argument_list", "text": "(&keeps, 64)", "parent": 537, "children": [540, 542], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 25}}, {"id": 540, "type": "pointer_expression", "text": "&keeps", "parent": 539, "children": [541], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 20}}, {"id": 541, "type": "identifier", "text": "keeps", "parent": 540, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 20}}, {"id": 542, "type": "number_literal", "text": "64", "parent": 539, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 24}}, {"id": 543, "type": "assignment_expression", "text": "updates = array_get(&t->updates, &count)", "parent": 474, "children": [544, 545, 546], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 41}}, {"id": 544, "type": "identifier", "text": "updates", "parent": 543, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 8}}, {"id": 545, "type": "=", "text": "=", "parent": 543, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 10}}, {"id": 546, "type": "call_expression", "text": "array_get(&t->updates, &count)", "parent": 543, "children": [547, 548], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 41}}, {"id": 547, "type": "identifier", "text": "array_get", "parent": 546, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 20}}, {"id": 548, "type": "argument_list", "text": "(&t->updates, &count)", "parent": 546, "children": [549, 553], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 41}}, {"id": 549, "type": "pointer_expression", "text": "&t->updates", "parent": 548, "children": [550], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 32}}, {"id": 550, "type": "field_expression", "text": "t->updates", "parent": 549, "children": [551, 552], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 32}}, {"id": 551, "type": "identifier", "text": "t", "parent": 550, "children": [], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 23}}, {"id": 552, "type": "field_identifier", "text": "updates", "parent": 550, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 32}}, {"id": 553, "type": "pointer_expression", "text": "&count", "parent": 548, "children": [554], "start_point": {"row": 122, "column": 34}, "end_point": {"row": 122, "column": 40}}, {"id": 554, "type": "identifier", "text": "count", "parent": 553, "children": [], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 40}}, {"id": 555, "type": "for_statement", "text": "for (i = 0; i < count; ) {\n\t\t/* first get the list of changes to drop */\n\t\tu = &updates[i];\n\t\tarray_clear(&keeps);\n\t\tfor (seq = u->uid1; seq <= u->uid2; seq++) {\n\t\t\trec = mail_index_lookup(t->view, seq);\n\t\t\tif ((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0) {\n\t\t\t\t/* keep this change */\n\t\t\t\tseq_range_array_add(&keeps, seq);\n\t\t\t}\n\t\t}\n\t\ti = mail_transaction_drop_range(t, updates[i], i, &keeps);\n\t\tupdates = array_get(&t->updates, &count);\n\t}", "parent": 474, "children": [556, 560], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 137, "column": 2}}, {"id": 556, "type": "assignment_expression", "text": "i = 0", "parent": 555, "children": [557, 558, 559], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 11}}, {"id": 557, "type": "identifier", "text": "i", "parent": 556, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 7}}, {"id": 558, "type": "=", "text": "=", "parent": 556, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 559, "type": "number_literal", "text": "0", "parent": 556, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 11}}, {"id": 560, "type": "binary_expression", "text": "i < count", "parent": 555, "children": [561, 562, 563], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 22}}, {"id": 561, "type": "identifier", "text": "i", "parent": 560, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 562, "type": "<", "text": "<", "parent": 560, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 16}}, {"id": 563, "type": "identifier", "text": "count", "parent": 560, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 22}}, {"id": 564, "type": "assignment_expression", "text": "u = &updates[i]", "parent": 555, "children": [565, 566, 567], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 17}}, {"id": 565, "type": "identifier", "text": "u", "parent": 564, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 3}}, {"id": 566, "type": "=", "text": "=", "parent": 564, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 567, "type": "pointer_expression", "text": "&updates[i]", "parent": 564, "children": [568], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 17}}, {"id": 568, "type": "subscript_expression", "text": "updates[i]", "parent": 567, "children": [569, 570], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 17}}, {"id": 569, "type": "identifier", "text": "updates", "parent": 568, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 14}}, {"id": 570, "type": "identifier", "text": "i", "parent": 568, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 16}}, {"id": 571, "type": "call_expression", "text": "array_clear(&keeps)", "parent": 555, "children": [572, 573], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 21}}, {"id": 572, "type": "identifier", "text": "array_clear", "parent": 571, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 13}}, {"id": 573, "type": "argument_list", "text": "(&keeps)", "parent": 571, "children": [574], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 21}}, {"id": 574, "type": "pointer_expression", "text": "&keeps", "parent": 573, "children": [575], "start_point": {"row": 126, "column": 14}, "end_point": {"row": 126, "column": 20}}, {"id": 575, "type": "identifier", "text": "keeps", "parent": 574, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 20}}, {"id": 576, "type": "for_statement", "text": "for (seq = u->uid1; seq <= u->uid2; seq++) {\n\t\t\trec = mail_index_lookup(t->view, seq);\n\t\t\tif ((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0) {\n\t\t\t\t/* keep this change */\n\t\t\t\tseq_range_array_add(&keeps, seq);\n\t\t\t}\n\t\t}", "parent": 555, "children": [577, 583, 589], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 134, "column": 3}}, {"id": 577, "type": "assignment_expression", "text": "seq = u->uid1", "parent": 576, "children": [578, 579, 580], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 20}}, {"id": 578, "type": "identifier", "text": "seq", "parent": 577, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 10}}, {"id": 579, "type": "=", "text": "=", "parent": 577, "children": [], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 12}}, {"id": 580, "type": "field_expression", "text": "u->uid1", "parent": 577, "children": [581, 582], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 20}}, {"id": 581, "type": "identifier", "text": "u", "parent": 580, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 14}}, {"id": 582, "type": "field_identifier", "text": "uid1", "parent": 580, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 20}}, {"id": 583, "type": "binary_expression", "text": "seq <= u->uid2", "parent": 576, "children": [584, 585, 586], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 36}}, {"id": 584, "type": "identifier", "text": "seq", "parent": 583, "children": [], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 25}}, {"id": 585, "type": "<=", "text": "<=", "parent": 583, "children": [], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 28}}, {"id": 586, "type": "field_expression", "text": "u->uid2", "parent": 583, "children": [587, 588], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 36}}, {"id": 587, "type": "identifier", "text": "u", "parent": 586, "children": [], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 30}}, {"id": 588, "type": "field_identifier", "text": "uid2", "parent": 586, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 36}}, {"id": 589, "type": "update_expression", "text": "seq++", "parent": 576, "children": [590, 591], "start_point": {"row": 127, "column": 38}, "end_point": {"row": 127, "column": 43}}, {"id": 590, "type": "identifier", "text": "seq", "parent": 589, "children": [], "start_point": {"row": 127, "column": 38}, "end_point": {"row": 127, "column": 41}}, {"id": 591, "type": "++", "text": "++", "parent": 589, "children": [], "start_point": {"row": 127, "column": 41}, "end_point": {"row": 127, "column": 43}}, {"id": 592, "type": "assignment_expression", "text": "rec = mail_index_lookup(t->view, seq)", "parent": 576, "children": [593, 594, 595], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 40}}, {"id": 593, "type": "identifier", "text": "rec", "parent": 592, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 6}}, {"id": 594, "type": "=", "text": "=", "parent": 592, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 8}}, {"id": 595, "type": "call_expression", "text": "mail_index_lookup(t->view, seq)", "parent": 592, "children": [596, 597], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 40}}, {"id": 596, "type": "identifier", "text": "mail_index_lookup", "parent": 595, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 26}}, {"id": 597, "type": "argument_list", "text": "(t->view, seq)", "parent": 595, "children": [598, 601], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 128, "column": 40}}, {"id": 598, "type": "field_expression", "text": "t->view", "parent": 597, "children": [599, 600], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 34}}, {"id": 599, "type": "identifier", "text": "t", "parent": 598, "children": [], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 28}}, {"id": 600, "type": "field_identifier", "text": "view", "parent": 598, "children": [], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 34}}, {"id": 601, "type": "identifier", "text": "seq", "parent": 597, "children": [], "start_point": {"row": 128, "column": 36}, "end_point": {"row": 128, "column": 39}}, {"id": 602, "type": "if_statement", "text": "if ((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0) {\n\t\t\t\t/* keep this change */\n\t\t\t\tseq_range_array_add(&keeps, seq);\n\t\t\t}", "parent": 576, "children": [603], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 133, "column": 4}}, {"id": 603, "type": "parenthesized_expression", "text": "((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0)", "parent": 602, "children": [604], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 130, "column": 43}}, {"id": 604, "type": "binary_expression", "text": "(rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0", "parent": 603, "children": [605, 618, 619], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 130, "column": 42}}, {"id": 605, "type": "binary_expression", "text": "(rec->flags & u->add_flags) != u->add_flags", "parent": 604, "children": [606, 614, 615], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 50}}, {"id": 606, "type": "parenthesized_expression", "text": "(rec->flags & u->add_flags)", "parent": 605, "children": [607], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 34}}, {"id": 607, "type": "binary_expression", "text": "rec->flags & u->add_flags", "parent": 606, "children": [608, 611], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 33}}, {"id": 608, "type": "field_expression", "text": "rec->flags", "parent": 607, "children": [609, 610], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 18}}, {"id": 609, "type": "identifier", "text": "rec", "parent": 608, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 11}}, {"id": 610, "type": "field_identifier", "text": "flags", "parent": 608, "children": [], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 18}}, {"id": 611, "type": "field_expression", "text": "u->add_flags", "parent": 607, "children": [612, 613], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 33}}, {"id": 612, "type": "identifier", "text": "u", "parent": 611, "children": [], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 22}}, {"id": 613, "type": "field_identifier", "text": "add_flags", "parent": 611, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 33}}, {"id": 614, "type": "!=", "text": "!=", "parent": 605, "children": [], "start_point": {"row": 129, "column": 35}, "end_point": {"row": 129, "column": 37}}, {"id": 615, "type": "field_expression", "text": "u->add_flags", "parent": 605, "children": [616, 617], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 50}}, {"id": 616, "type": "identifier", "text": "u", "parent": 615, "children": [], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 39}}, {"id": 617, "type": "field_identifier", "text": "add_flags", "parent": 615, "children": [], "start_point": {"row": 129, "column": 41}, "end_point": {"row": 129, "column": 50}}, {"id": 618, "type": "||", "text": "||", "parent": 604, "children": [], "start_point": {"row": 129, "column": 51}, "end_point": {"row": 129, "column": 53}}, {"id": 619, "type": "binary_expression", "text": "(rec->flags & u->remove_flags) != 0", "parent": 604, "children": [620, 628, 629], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 42}}, {"id": 620, "type": "parenthesized_expression", "text": "(rec->flags & u->remove_flags)", "parent": 619, "children": [621], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 37}}, {"id": 621, "type": "binary_expression", "text": "rec->flags & u->remove_flags", "parent": 620, "children": [622, 625], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 36}}, {"id": 622, "type": "field_expression", "text": "rec->flags", "parent": 621, "children": [623, 624], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 18}}, {"id": 623, "type": "identifier", "text": "rec", "parent": 622, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 11}}, {"id": 624, "type": "field_identifier", "text": "flags", "parent": 622, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 18}}, {"id": 625, "type": "field_expression", "text": "u->remove_flags", "parent": 621, "children": [626, 627], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 36}}, {"id": 626, "type": "identifier", "text": "u", "parent": 625, "children": [], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 22}}, {"id": 627, "type": "field_identifier", "text": "remove_flags", "parent": 625, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 36}}, {"id": 628, "type": "!=", "text": "!=", "parent": 619, "children": [], "start_point": {"row": 130, "column": 38}, "end_point": {"row": 130, "column": 40}}, {"id": 629, "type": "number_literal", "text": "0", "parent": 619, "children": [], "start_point": {"row": 130, "column": 41}, "end_point": {"row": 130, "column": 42}}, {"id": 630, "type": "call_expression", "text": "seq_range_array_add(&keeps, seq)", "parent": 602, "children": [631, 632], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 36}}, {"id": 631, "type": "identifier", "text": "seq_range_array_add", "parent": 630, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 23}}, {"id": 632, "type": "argument_list", "text": "(&keeps, seq)", "parent": 630, "children": [633, 635], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 36}}, {"id": 633, "type": "pointer_expression", "text": "&keeps", "parent": 632, "children": [634], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 30}}, {"id": 634, "type": "identifier", "text": "keeps", "parent": 633, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 30}}, {"id": 635, "type": "identifier", "text": "seq", "parent": 632, "children": [], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 35}}, {"id": 636, "type": "assignment_expression", "text": "i = mail_transaction_drop_range(t, updates[i], i, &keeps)", "parent": 555, "children": [637, 638, 639], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 59}}, {"id": 637, "type": "identifier", "text": "i", "parent": 636, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 3}}, {"id": 638, "type": "=", "text": "=", "parent": 636, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 5}}, {"id": 639, "type": "call_expression", "text": "mail_transaction_drop_range(t, updates[i], i, &keeps)", "parent": 636, "children": [640, 641], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 59}}, {"id": 640, "type": "identifier", "text": "mail_transaction_drop_range", "parent": 639, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 33}}, {"id": 641, "type": "argument_list", "text": "(t, updates[i], i, &keeps)", "parent": 639, "children": [642, 643, 646, 647], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 59}}, {"id": 642, "type": "identifier", "text": "t", "parent": 641, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 35}}, {"id": 643, "type": "subscript_expression", "text": "updates[i]", "parent": 641, "children": [644, 645], "start_point": {"row": 135, "column": 37}, "end_point": {"row": 135, "column": 47}}, {"id": 644, "type": "identifier", "text": "updates", "parent": 643, "children": [], "start_point": {"row": 135, "column": 37}, "end_point": {"row": 135, "column": 44}}, {"id": 645, "type": "identifier", "text": "i", "parent": 643, "children": [], "start_point": {"row": 135, "column": 45}, "end_point": {"row": 135, "column": 46}}, {"id": 646, "type": "identifier", "text": "i", "parent": 641, "children": [], "start_point": {"row": 135, "column": 49}, "end_point": {"row": 135, "column": 50}}, {"id": 647, "type": "pointer_expression", "text": "&keeps", "parent": 641, "children": [648], "start_point": {"row": 135, "column": 52}, "end_point": {"row": 135, "column": 58}}, {"id": 648, "type": "identifier", "text": "keeps", "parent": 647, "children": [], "start_point": {"row": 135, "column": 53}, "end_point": {"row": 135, "column": 58}}, {"id": 649, "type": "assignment_expression", "text": "updates = array_get(&t->updates, &count)", "parent": 555, "children": [650, 651, 652], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 42}}, {"id": 650, "type": "identifier", "text": "updates", "parent": 649, "children": [], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 9}}, {"id": 651, "type": "=", "text": "=", "parent": 649, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 11}}, {"id": 652, "type": "call_expression", "text": "array_get(&t->updates, &count)", "parent": 649, "children": [653, 654], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 42}}, {"id": 653, "type": "identifier", "text": "array_get", "parent": 652, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 21}}, {"id": 654, "type": "argument_list", "text": "(&t->updates, &count)", "parent": 652, "children": [655, 659], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 42}}, {"id": 655, "type": "pointer_expression", "text": "&t->updates", "parent": 654, "children": [656], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 33}}, {"id": 656, "type": "field_expression", "text": "t->updates", "parent": 655, "children": [657, 658], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 33}}, {"id": 657, "type": "identifier", "text": "t", "parent": 656, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 24}}, {"id": 658, "type": "field_identifier", "text": "updates", "parent": 656, "children": [], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 33}}, {"id": 659, "type": "pointer_expression", "text": "&count", "parent": 654, "children": [660], "start_point": {"row": 136, "column": 35}, "end_point": {"row": 136, "column": 41}}, {"id": 660, "type": "identifier", "text": "count", "parent": 659, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 41}}, {"id": 661, "type": "if_statement", "text": "if (array_count(&t->updates) == 0)\n\t\tarray_free(&t->updates);", "parent": 474, "children": [662], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 140, "column": 26}}, {"id": 662, "type": "parenthesized_expression", "text": "(array_count(&t->updates) == 0)", "parent": 661, "children": [663], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 35}}, {"id": 663, "type": "binary_expression", "text": "array_count(&t->updates) == 0", "parent": 662, "children": [664, 671, 672], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 34}}, {"id": 664, "type": "call_expression", "text": "array_count(&t->updates)", "parent": 663, "children": [665, 666], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 29}}, {"id": 665, "type": "identifier", "text": "array_count", "parent": 664, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 16}}, {"id": 666, "type": "argument_list", "text": "(&t->updates)", "parent": 664, "children": [667], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 29}}, {"id": 667, "type": "pointer_expression", "text": "&t->updates", "parent": 666, "children": [668], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 28}}, {"id": 668, "type": "field_expression", "text": "t->updates", "parent": 667, "children": [669, 670], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 28}}, {"id": 669, "type": "identifier", "text": "t", "parent": 668, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 19}}, {"id": 670, "type": "field_identifier", "text": "updates", "parent": 668, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 28}}, {"id": 671, "type": "==", "text": "==", "parent": 663, "children": [], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 32}}, {"id": 672, "type": "number_literal", "text": "0", "parent": 663, "children": [], "start_point": {"row": 139, "column": 33}, "end_point": {"row": 139, "column": 34}}, {"id": 673, "type": "call_expression", "text": "array_free(&t->updates)", "parent": 661, "children": [674, 675], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 25}}, {"id": 674, "type": "identifier", "text": "array_free", "parent": 673, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 12}}, {"id": 675, "type": "argument_list", "text": "(&t->updates)", "parent": 673, "children": [676], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 25}}, {"id": 676, "type": "pointer_expression", "text": "&t->updates", "parent": 675, "children": [677], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 24}}, {"id": 677, "type": "field_expression", "text": "t->updates", "parent": 676, "children": [678, 679], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 24}}, {"id": 678, "type": "identifier", "text": "t", "parent": 677, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 15}}, {"id": 679, "type": "field_identifier", "text": "updates", "parent": 677, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 24}}, {"id": 680, "type": "function_definition", "text": "static void\nmail_index_transaction_check_conflicts(struct mail_index_transaction *t)\n{\n\tuint32_t seq;\n\tbool ret1, ret2;\n\n\ti_assert(t->max_modseq != 0);\n\ti_assert(t->conflict_seqs != NULL);\n\n\tif (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n\t\t/* no conflicts possible */\n\t\treturn;\n\t}\n\tif (t->min_flagupdate_seq == 0) {\n\t\t/* no flag updates */\n\t\treturn;\n\t}\n\n\tfor (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n\t\tif (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n\t\t\tret1 = mail_index_cancel_flag_updates(t, seq);\n\t\t\tret2 = mail_index_cancel_keyword_updates(t, seq);\n\t\t\tif (ret1 || ret2) {\n\t\t\t\tseq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq);\n\t\t\t}\n\t\t}\n\t}\n\tmail_index_transaction_set_log_updates(t);\n}", "parent": null, "children": [681, 682], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 172, "column": 1}}, {"id": 681, "type": "primitive_type", "text": "void", "parent": 680, "children": [], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 11}}, {"id": 682, "type": "function_declarator", "text": "mail_index_transaction_check_conflicts(struct mail_index_transaction *t)", "parent": 680, "children": [683, 684], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 72}}, {"id": 683, "type": "identifier", "text": "mail_index_transaction_check_conflicts", "parent": 682, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 38}}, {"id": 684, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 682, "children": [685], "start_point": {"row": 144, "column": 38}, "end_point": {"row": 144, "column": 72}}, {"id": 685, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 684, "children": [686, 689], "start_point": {"row": 144, "column": 39}, "end_point": {"row": 144, "column": 71}}, {"id": 686, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 685, "children": [687, 688], "start_point": {"row": 144, "column": 39}, "end_point": {"row": 144, "column": 68}}, {"id": 687, "type": "struct", "text": "struct", "parent": 686, "children": [], "start_point": {"row": 144, "column": 39}, "end_point": {"row": 144, "column": 45}}, {"id": 688, "type": "type_identifier", "text": "mail_index_transaction", "parent": 686, "children": [], "start_point": {"row": 144, "column": 46}, "end_point": {"row": 144, "column": 68}}, {"id": 689, "type": "pointer_declarator", "text": "*t", "parent": 685, "children": [690, 691], "start_point": {"row": 144, "column": 69}, "end_point": {"row": 144, "column": 71}}, {"id": 690, "type": "*", "text": "*", "parent": 689, "children": [], "start_point": {"row": 144, "column": 69}, "end_point": {"row": 144, "column": 70}}, {"id": 691, "type": "identifier", "text": "t", "parent": 689, "children": [], "start_point": {"row": 144, "column": 70}, "end_point": {"row": 144, "column": 71}}, {"id": 692, "type": "declaration", "text": "uint32_t seq;", "parent": 680, "children": [693, 694], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 14}}, {"id": 693, "type": "primitive_type", "text": "uint32_t", "parent": 692, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 9}}, {"id": 694, "type": "identifier", "text": "seq", "parent": 692, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 13}}, {"id": 695, "type": "declaration", "text": "bool ret1, ret2;", "parent": 680, "children": [696, 697, 698], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 17}}, {"id": 696, "type": "primitive_type", "text": "bool", "parent": 695, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 5}}, {"id": 697, "type": "identifier", "text": "ret1", "parent": 695, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 10}}, {"id": 698, "type": "identifier", "text": "ret2", "parent": 695, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 16}}, {"id": 699, "type": "call_expression", "text": "i_assert(t->max_modseq != 0)", "parent": 680, "children": [700, 701], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 29}}, {"id": 700, "type": "identifier", "text": "i_assert", "parent": 699, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 9}}, {"id": 701, "type": "argument_list", "text": "(t->max_modseq != 0)", "parent": 699, "children": [702], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 29}}, {"id": 702, "type": "binary_expression", "text": "t->max_modseq != 0", "parent": 701, "children": [703, 706, 707], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 28}}, {"id": 703, "type": "field_expression", "text": "t->max_modseq", "parent": 702, "children": [704, 705], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 23}}, {"id": 704, "type": "identifier", "text": "t", "parent": 703, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 11}}, {"id": 705, "type": "field_identifier", "text": "max_modseq", "parent": 703, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 23}}, {"id": 706, "type": "!=", "text": "!=", "parent": 702, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 26}}, {"id": 707, "type": "number_literal", "text": "0", "parent": 702, "children": [], "start_point": {"row": 149, "column": 27}, "end_point": {"row": 149, "column": 28}}, {"id": 708, "type": "call_expression", "text": "i_assert(t->conflict_seqs != NULL)", "parent": 680, "children": [709, 710], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 35}}, {"id": 709, "type": "identifier", "text": "i_assert", "parent": 708, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 9}}, {"id": 710, "type": "argument_list", "text": "(t->conflict_seqs != NULL)", "parent": 708, "children": [711], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 35}}, {"id": 711, "type": "binary_expression", "text": "t->conflict_seqs != NULL", "parent": 710, "children": [712, 715, 716], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 34}}, {"id": 712, "type": "field_expression", "text": "t->conflict_seqs", "parent": 711, "children": [713, 714], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 26}}, {"id": 713, "type": "identifier", "text": "t", "parent": 712, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 11}}, {"id": 714, "type": "field_identifier", "text": "conflict_seqs", "parent": 712, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 26}}, {"id": 715, "type": "!=", "text": "!=", "parent": 711, "children": [], "start_point": {"row": 150, "column": 27}, "end_point": {"row": 150, "column": 29}}, {"id": 716, "type": "null", "text": "NULL", "parent": 711, "children": [717], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 34}}, {"id": 717, "type": "NULL", "text": "NULL", "parent": 716, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 34}}, {"id": 718, "type": "if_statement", "text": "if (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n\t\t/* no conflicts possible */\n\t\treturn;\n\t}", "parent": 680, "children": [719], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 155, "column": 2}}, {"id": 719, "type": "parenthesized_expression", "text": "(t->max_modseq == mail_index_modseq_get_highest(t->view))", "parent": 718, "children": [720], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 61}}, {"id": 720, "type": "binary_expression", "text": "t->max_modseq == mail_index_modseq_get_highest(t->view)", "parent": 719, "children": [721, 724, 725], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 60}}, {"id": 721, "type": "field_expression", "text": "t->max_modseq", "parent": 720, "children": [722, 723], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 18}}, {"id": 722, "type": "identifier", "text": "t", "parent": 721, "children": [], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 6}}, {"id": 723, "type": "field_identifier", "text": "max_modseq", "parent": 721, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 18}}, {"id": 724, "type": "==", "text": "==", "parent": 720, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 21}}, {"id": 725, "type": "call_expression", "text": "mail_index_modseq_get_highest(t->view)", "parent": 720, "children": [726, 727], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 60}}, {"id": 726, "type": "identifier", "text": "mail_index_modseq_get_highest", "parent": 725, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 51}}, {"id": 727, "type": "argument_list", "text": "(t->view)", "parent": 725, "children": [728], "start_point": {"row": 152, "column": 51}, "end_point": {"row": 152, "column": 60}}, {"id": 728, "type": "field_expression", "text": "t->view", "parent": 727, "children": [729, 730], "start_point": {"row": 152, "column": 52}, "end_point": {"row": 152, "column": 59}}, {"id": 729, "type": "identifier", "text": "t", "parent": 728, "children": [], "start_point": {"row": 152, "column": 52}, "end_point": {"row": 152, "column": 53}}, {"id": 730, "type": "field_identifier", "text": "view", "parent": 728, "children": [], "start_point": {"row": 152, "column": 55}, "end_point": {"row": 152, "column": 59}}, {"id": 731, "type": "return_statement", "text": "return;", "parent": 718, "children": [], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 9}}, {"id": 732, "type": "if_statement", "text": "if (t->min_flagupdate_seq == 0) {\n\t\t/* no flag updates */\n\t\treturn;\n\t}", "parent": 680, "children": [733], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 159, "column": 2}}, {"id": 733, "type": "parenthesized_expression", "text": "(t->min_flagupdate_seq == 0)", "parent": 732, "children": [734], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 32}}, {"id": 734, "type": "binary_expression", "text": "t->min_flagupdate_seq == 0", "parent": 733, "children": [735, 738, 739], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 31}}, {"id": 735, "type": "field_expression", "text": "t->min_flagupdate_seq", "parent": 734, "children": [736, 737], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 26}}, {"id": 736, "type": "identifier", "text": "t", "parent": 735, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 6}}, {"id": 737, "type": "field_identifier", "text": "min_flagupdate_seq", "parent": 735, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 26}}, {"id": 738, "type": "==", "text": "==", "parent": 734, "children": [], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 29}}, {"id": 739, "type": "number_literal", "text": "0", "parent": 734, "children": [], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 31}}, {"id": 740, "type": "return_statement", "text": "return;", "parent": 732, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 9}}, {"id": 741, "type": "for_statement", "text": "for (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n\t\tif (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n\t\t\tret1 = mail_index_cancel_flag_updates(t, seq);\n\t\t\tret2 = mail_index_cancel_keyword_updates(t, seq);\n\t\t\tif (ret1 || ret2) {\n\t\t\t\tseq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq);\n\t\t\t}\n\t\t}\n\t}", "parent": 680, "children": [742, 748, 754], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 170, "column": 2}}, {"id": 742, "type": "assignment_expression", "text": "seq = t->min_flagupdate_seq", "parent": 741, "children": [743, 744, 745], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 33}}, {"id": 743, "type": "identifier", "text": "seq", "parent": 742, "children": [], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 9}}, {"id": 744, "type": "=", "text": "=", "parent": 742, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 745, "type": "field_expression", "text": "t->min_flagupdate_seq", "parent": 742, "children": [746, 747], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 33}}, {"id": 746, "type": "identifier", "text": "t", "parent": 745, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 13}}, {"id": 747, "type": "field_identifier", "text": "min_flagupdate_seq", "parent": 745, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 33}}, {"id": 748, "type": "binary_expression", "text": "seq <= t->max_flagupdate_seq", "parent": 741, "children": [749, 750, 751], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 63}}, {"id": 749, "type": "identifier", "text": "seq", "parent": 748, "children": [], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 38}}, {"id": 750, "type": "<=", "text": "<=", "parent": 748, "children": [], "start_point": {"row": 161, "column": 39}, "end_point": {"row": 161, "column": 41}}, {"id": 751, "type": "field_expression", "text": "t->max_flagupdate_seq", "parent": 748, "children": [752, 753], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 63}}, {"id": 752, "type": "identifier", "text": "t", "parent": 751, "children": [], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 43}}, {"id": 753, "type": "field_identifier", "text": "max_flagupdate_seq", "parent": 751, "children": [], "start_point": {"row": 161, "column": 45}, "end_point": {"row": 161, "column": 63}}, {"id": 754, "type": "update_expression", "text": "seq++", "parent": 741, "children": [755, 756], "start_point": {"row": 161, "column": 65}, "end_point": {"row": 161, "column": 70}}, {"id": 755, "type": "identifier", "text": "seq", "parent": 754, "children": [], "start_point": {"row": 161, "column": 65}, "end_point": {"row": 161, "column": 68}}, {"id": 756, "type": "++", "text": "++", "parent": 754, "children": [], "start_point": {"row": 161, "column": 68}, "end_point": {"row": 161, "column": 70}}, {"id": 757, "type": "if_statement", "text": "if (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n\t\t\tret1 = mail_index_cancel_flag_updates(t, seq);\n\t\t\tret2 = mail_index_cancel_keyword_updates(t, seq);\n\t\t\tif (ret1 || ret2) {\n\t\t\t\tseq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq);\n\t\t\t}\n\t\t}", "parent": 741, "children": [758], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 169, "column": 3}}, {"id": 758, "type": "parenthesized_expression", "text": "(mail_index_modseq_lookup(t->view, seq) > t->max_modseq)", "parent": 757, "children": [759], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 61}}, {"id": 759, "type": "binary_expression", "text": "mail_index_modseq_lookup(t->view, seq) > t->max_modseq", "parent": 758, "children": [760, 767, 768], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 60}}, {"id": 760, "type": "call_expression", "text": "mail_index_modseq_lookup(t->view, seq)", "parent": 759, "children": [761, 762], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 44}}, {"id": 761, "type": "identifier", "text": "mail_index_modseq_lookup", "parent": 760, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 30}}, {"id": 762, "type": "argument_list", "text": "(t->view, seq)", "parent": 760, "children": [763, 766], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 44}}, {"id": 763, "type": "field_expression", "text": "t->view", "parent": 762, "children": [764, 765], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 38}}, {"id": 764, "type": "identifier", "text": "t", "parent": 763, "children": [], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 32}}, {"id": 765, "type": "field_identifier", "text": "view", "parent": 763, "children": [], "start_point": {"row": 162, "column": 34}, "end_point": {"row": 162, "column": 38}}, {"id": 766, "type": "identifier", "text": "seq", "parent": 762, "children": [], "start_point": {"row": 162, "column": 40}, "end_point": {"row": 162, "column": 43}}, {"id": 767, "type": ">", "text": ">", "parent": 759, "children": [], "start_point": {"row": 162, "column": 45}, "end_point": {"row": 162, "column": 46}}, {"id": 768, "type": "field_expression", "text": "t->max_modseq", "parent": 759, "children": [769, 770], "start_point": {"row": 162, "column": 47}, "end_point": {"row": 162, "column": 60}}, {"id": 769, "type": "identifier", "text": "t", "parent": 768, "children": [], "start_point": {"row": 162, "column": 47}, "end_point": {"row": 162, "column": 48}}, {"id": 770, "type": "field_identifier", "text": "max_modseq", "parent": 768, "children": [], "start_point": {"row": 162, "column": 50}, "end_point": {"row": 162, "column": 60}}, {"id": 771, "type": "assignment_expression", "text": "ret1 = mail_index_cancel_flag_updates(t, seq)", "parent": 757, "children": [772, 773, 774], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 48}}, {"id": 772, "type": "identifier", "text": "ret1", "parent": 771, "children": [], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 7}}, {"id": 773, "type": "=", "text": "=", "parent": 771, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 9}}, {"id": 774, "type": "call_expression", "text": "mail_index_cancel_flag_updates(t, seq)", "parent": 771, "children": [775, 776], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 48}}, {"id": 775, "type": "identifier", "text": "mail_index_cancel_flag_updates", "parent": 774, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 40}}, {"id": 776, "type": "argument_list", "text": "(t, seq)", "parent": 774, "children": [777, 778], "start_point": {"row": 163, "column": 40}, "end_point": {"row": 163, "column": 48}}, {"id": 777, "type": "identifier", "text": "t", "parent": 776, "children": [], "start_point": {"row": 163, "column": 41}, "end_point": {"row": 163, "column": 42}}, {"id": 778, "type": "identifier", "text": "seq", "parent": 776, "children": [], "start_point": {"row": 163, "column": 44}, "end_point": {"row": 163, "column": 47}}, {"id": 779, "type": "assignment_expression", "text": "ret2 = mail_index_cancel_keyword_updates(t, seq)", "parent": 757, "children": [780, 781, 782], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 51}}, {"id": 780, "type": "identifier", "text": "ret2", "parent": 779, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 7}}, {"id": 781, "type": "=", "text": "=", "parent": 779, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 9}}, {"id": 782, "type": "call_expression", "text": "mail_index_cancel_keyword_updates(t, seq)", "parent": 779, "children": [783, 784], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 51}}, {"id": 783, "type": "identifier", "text": "mail_index_cancel_keyword_updates", "parent": 782, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 43}}, {"id": 784, "type": "argument_list", "text": "(t, seq)", "parent": 782, "children": [785, 786], "start_point": {"row": 164, "column": 43}, "end_point": {"row": 164, "column": 51}}, {"id": 785, "type": "identifier", "text": "t", "parent": 784, "children": [], "start_point": {"row": 164, "column": 44}, "end_point": {"row": 164, "column": 45}}, {"id": 786, "type": "identifier", "text": "seq", "parent": 784, "children": [], "start_point": {"row": 164, "column": 47}, "end_point": {"row": 164, "column": 50}}, {"id": 787, "type": "if_statement", "text": "if (ret1 || ret2) {\n\t\t\t\tseq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq);\n\t\t\t}", "parent": 757, "children": [788], "start_point": {"row": 165, "column": 3}, "end_point": {"row": 168, "column": 4}}, {"id": 788, "type": "parenthesized_expression", "text": "(ret1 || ret2)", "parent": 787, "children": [789], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 20}}, {"id": 789, "type": "binary_expression", "text": "ret1 || ret2", "parent": 788, "children": [790, 791, 792], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 19}}, {"id": 790, "type": "identifier", "text": "ret1", "parent": 789, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 11}}, {"id": 791, "type": "||", "text": "||", "parent": 789, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 14}}, {"id": 792, "type": "identifier", "text": "ret2", "parent": 789, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 19}}, {"id": 793, "type": "call_expression", "text": "seq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq)", "parent": 787, "children": [794, 795], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 167, "column": 21}}, {"id": 794, "type": "identifier", "text": "seq_range_array_add_with_init", "parent": 793, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 33}}, {"id": 795, "type": "argument_list", "text": "(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq)", "parent": 793, "children": [796, 799, 800], "start_point": {"row": 166, "column": 33}, "end_point": {"row": 167, "column": 21}}, {"id": 796, "type": "field_expression", "text": "t->conflict_seqs", "parent": 795, "children": [797, 798], "start_point": {"row": 166, "column": 34}, "end_point": {"row": 166, "column": 50}}, {"id": 797, "type": "identifier", "text": "t", "parent": 796, "children": [], "start_point": {"row": 166, "column": 34}, "end_point": {"row": 166, "column": 35}}, {"id": 798, "type": "field_identifier", "text": "conflict_seqs", "parent": 796, "children": [], "start_point": {"row": 166, "column": 37}, "end_point": {"row": 166, "column": 50}}, {"id": 799, "type": "number_literal", "text": "16", "parent": 795, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 15}}, {"id": 800, "type": "identifier", "text": "seq", "parent": 795, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 20}}, {"id": 801, "type": "call_expression", "text": "mail_index_transaction_set_log_updates(t)", "parent": 680, "children": [802, 803], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 42}}, {"id": 802, "type": "identifier", "text": "mail_index_transaction_set_log_updates", "parent": 801, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 39}}, {"id": 803, "type": "argument_list", "text": "(t)", "parent": 801, "children": [804], "start_point": {"row": 171, "column": 39}, "end_point": {"row": 171, "column": 42}}, {"id": 804, "type": "identifier", "text": "t", "parent": 803, "children": [], "start_point": {"row": 171, "column": 40}, "end_point": {"row": 171, "column": 41}}, {"id": 805, "type": "function_definition", "text": "static uint32_t\nmail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)\n{\n\tconst struct mail_index_record *rec;\n\n\ti_assert(seq > 0);\n\n\tif (seq >= t->first_new_seq)\n\t\trec = mail_index_transaction_lookup(t, seq);\n\telse {\n\t\ti_assert(seq <= t->view->map->hdr.messages_count);\n\t\trec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n\t}\n\ti_assert(rec->uid != 0);\n\treturn rec->uid;\n}", "parent": null, "children": [806, 807], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 189, "column": 1}}, {"id": 806, "type": "primitive_type", "text": "uint32_t", "parent": 805, "children": [], "start_point": {"row": 174, "column": 7}, "end_point": {"row": 174, "column": 15}}, {"id": 807, "type": "function_declarator", "text": "mail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)", "parent": 805, "children": [808, 809], "start_point": {"row": 175, "column": 0}, "end_point": {"row": 175, "column": 78}}, {"id": 808, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 807, "children": [], "start_point": {"row": 175, "column": 0}, "end_point": {"row": 175, "column": 30}}, {"id": 809, "type": "parameter_list", "text": "(struct mail_index_transaction *t, uint32_t seq)", "parent": 807, "children": [810, 817], "start_point": {"row": 175, "column": 30}, "end_point": {"row": 175, "column": 78}}, {"id": 810, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 809, "children": [811, 814], "start_point": {"row": 175, "column": 31}, "end_point": {"row": 175, "column": 63}}, {"id": 811, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 810, "children": [812, 813], "start_point": {"row": 175, "column": 31}, "end_point": {"row": 175, "column": 60}}, {"id": 812, "type": "struct", "text": "struct", "parent": 811, "children": [], "start_point": {"row": 175, "column": 31}, "end_point": {"row": 175, "column": 37}}, {"id": 813, "type": "type_identifier", "text": "mail_index_transaction", "parent": 811, "children": [], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 60}}, {"id": 814, "type": "pointer_declarator", "text": "*t", "parent": 810, "children": [815, 816], "start_point": {"row": 175, "column": 61}, "end_point": {"row": 175, "column": 63}}, {"id": 815, "type": "*", "text": "*", "parent": 814, "children": [], "start_point": {"row": 175, "column": 61}, "end_point": {"row": 175, "column": 62}}, {"id": 816, "type": "identifier", "text": "t", "parent": 814, "children": [], "start_point": {"row": 175, "column": 62}, "end_point": {"row": 175, "column": 63}}, {"id": 817, "type": "parameter_declaration", "text": "uint32_t seq", "parent": 809, "children": [818, 819], "start_point": {"row": 175, "column": 65}, "end_point": {"row": 175, "column": 77}}, {"id": 818, "type": "primitive_type", "text": "uint32_t", "parent": 817, "children": [], "start_point": {"row": 175, "column": 65}, "end_point": {"row": 175, "column": 73}}, {"id": 819, "type": "identifier", "text": "seq", "parent": 817, "children": [], "start_point": {"row": 175, "column": 74}, "end_point": {"row": 175, "column": 77}}, {"id": 820, "type": "declaration", "text": "const struct mail_index_record *rec;", "parent": 805, "children": [821, 824], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 37}}, {"id": 821, "type": "struct_specifier", "text": "struct mail_index_record", "parent": 820, "children": [822, 823], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 31}}, {"id": 822, "type": "struct", "text": "struct", "parent": 821, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 13}}, {"id": 823, "type": "type_identifier", "text": "mail_index_record", "parent": 821, "children": [], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 31}}, {"id": 824, "type": "pointer_declarator", "text": "*rec", "parent": 820, "children": [825, 826], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 36}}, {"id": 825, "type": "*", "text": "*", "parent": 824, "children": [], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 33}}, {"id": 826, "type": "identifier", "text": "rec", "parent": 824, "children": [], "start_point": {"row": 177, "column": 33}, "end_point": {"row": 177, "column": 36}}, {"id": 827, "type": "call_expression", "text": "i_assert(seq > 0)", "parent": 805, "children": [828, 829], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 18}}, {"id": 828, "type": "identifier", "text": "i_assert", "parent": 827, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 9}}, {"id": 829, "type": "argument_list", "text": "(seq > 0)", "parent": 827, "children": [830], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 18}}, {"id": 830, "type": "binary_expression", "text": "seq > 0", "parent": 829, "children": [831, 832, 833], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 17}}, {"id": 831, "type": "identifier", "text": "seq", "parent": 830, "children": [], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 13}}, {"id": 832, "type": ">", "text": ">", "parent": 830, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 15}}, {"id": 833, "type": "number_literal", "text": "0", "parent": 830, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 17}}, {"id": 834, "type": "if_statement", "text": "if (seq >= t->first_new_seq)\n\t\trec = mail_index_transaction_lookup(t, seq);\n\telse {\n\t\ti_assert(seq <= t->view->map->hdr.messages_count);\n\t\trec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n\t}", "parent": 805, "children": [835, 850], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 186, "column": 2}}, {"id": 835, "type": "parenthesized_expression", "text": "(seq >= t->first_new_seq)", "parent": 834, "children": [836], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 29}}, {"id": 836, "type": "binary_expression", "text": "seq >= t->first_new_seq", "parent": 835, "children": [837, 838, 839], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 28}}, {"id": 837, "type": "identifier", "text": "seq", "parent": 836, "children": [], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 8}}, {"id": 838, "type": ">=", "text": ">=", "parent": 836, "children": [], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 11}}, {"id": 839, "type": "field_expression", "text": "t->first_new_seq", "parent": 836, "children": [840, 841], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 28}}, {"id": 840, "type": "identifier", "text": "t", "parent": 839, "children": [], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 13}}, {"id": 841, "type": "field_identifier", "text": "first_new_seq", "parent": 839, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 28}}, {"id": 842, "type": "assignment_expression", "text": "rec = mail_index_transaction_lookup(t, seq)", "parent": 834, "children": [843, 844, 845], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 45}}, {"id": 843, "type": "identifier", "text": "rec", "parent": 842, "children": [], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 5}}, {"id": 844, "type": "=", "text": "=", "parent": 842, "children": [], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 7}}, {"id": 845, "type": "call_expression", "text": "mail_index_transaction_lookup(t, seq)", "parent": 842, "children": [846, 847], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 45}}, {"id": 846, "type": "identifier", "text": "mail_index_transaction_lookup", "parent": 845, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 37}}, {"id": 847, "type": "argument_list", "text": "(t, seq)", "parent": 845, "children": [848, 849], "start_point": {"row": 182, "column": 37}, "end_point": {"row": 182, "column": 45}}, {"id": 848, "type": "identifier", "text": "t", "parent": 847, "children": [], "start_point": {"row": 182, "column": 38}, "end_point": {"row": 182, "column": 39}}, {"id": 849, "type": "identifier", "text": "seq", "parent": 847, "children": [], "start_point": {"row": 182, "column": 41}, "end_point": {"row": 182, "column": 44}}, {"id": 850, "type": "else_clause", "text": "else {\n\t\ti_assert(seq <= t->view->map->hdr.messages_count);\n\t\trec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n\t}", "parent": 834, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 186, "column": 2}}, {"id": 851, "type": "call_expression", "text": "i_assert(seq <= t->view->map->hdr.messages_count)", "parent": 850, "children": [852, 853], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 51}}, {"id": 852, "type": "identifier", "text": "i_assert", "parent": 851, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 10}}, {"id": 853, "type": "argument_list", "text": "(seq <= t->view->map->hdr.messages_count)", "parent": 851, "children": [854], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 51}}, {"id": 854, "type": "binary_expression", "text": "seq <= t->view->map->hdr.messages_count", "parent": 853, "children": [855, 856, 857], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 50}}, {"id": 855, "type": "identifier", "text": "seq", "parent": 854, "children": [], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 14}}, {"id": 856, "type": "<=", "text": "<=", "parent": 854, "children": [], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 17}}, {"id": 857, "type": "field_expression", "text": "t->view->map->hdr.messages_count", "parent": 854, "children": [858, 865], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 50}}, {"id": 858, "type": "field_expression", "text": "t->view->map->hdr", "parent": 857, "children": [859, 864], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 35}}, {"id": 859, "type": "field_expression", "text": "t->view->map", "parent": 858, "children": [860, 863], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 30}}, {"id": 860, "type": "field_expression", "text": "t->view", "parent": 859, "children": [861, 862], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 25}}, {"id": 861, "type": "identifier", "text": "t", "parent": 860, "children": [], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 19}}, {"id": 862, "type": "field_identifier", "text": "view", "parent": 860, "children": [], "start_point": {"row": 184, "column": 21}, "end_point": {"row": 184, "column": 25}}, {"id": 863, "type": "field_identifier", "text": "map", "parent": 859, "children": [], "start_point": {"row": 184, "column": 27}, "end_point": {"row": 184, "column": 30}}, {"id": 864, "type": "field_identifier", "text": "hdr", "parent": 858, "children": [], "start_point": {"row": 184, "column": 32}, "end_point": {"row": 184, "column": 35}}, {"id": 865, "type": "field_identifier", "text": "messages_count", "parent": 857, "children": [], "start_point": {"row": 184, "column": 36}, "end_point": {"row": 184, "column": 50}}, {"id": 866, "type": "assignment_expression", "text": "rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq)", "parent": 850, "children": [867, 868, 869], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 48}}, {"id": 867, "type": "identifier", "text": "rec", "parent": 866, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 5}}, {"id": 868, "type": "=", "text": "=", "parent": 866, "children": [], "start_point": {"row": 185, "column": 6}, "end_point": {"row": 185, "column": 7}}, {"id": 869, "type": "call_expression", "text": "MAIL_INDEX_REC_AT_SEQ(t->view->map, seq)", "parent": 866, "children": [870, 871], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 48}}, {"id": 870, "type": "identifier", "text": "MAIL_INDEX_REC_AT_SEQ", "parent": 869, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 29}}, {"id": 871, "type": "argument_list", "text": "(t->view->map, seq)", "parent": 869, "children": [872, 877], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 48}}, {"id": 872, "type": "field_expression", "text": "t->view->map", "parent": 871, "children": [873, 876], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 42}}, {"id": 873, "type": "field_expression", "text": "t->view", "parent": 872, "children": [874, 875], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 37}}, {"id": 874, "type": "identifier", "text": "t", "parent": 873, "children": [], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 31}}, {"id": 875, "type": "field_identifier", "text": "view", "parent": 873, "children": [], "start_point": {"row": 185, "column": 33}, "end_point": {"row": 185, "column": 37}}, {"id": 876, "type": "field_identifier", "text": "map", "parent": 872, "children": [], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 42}}, {"id": 877, "type": "identifier", "text": "seq", "parent": 871, "children": [], "start_point": {"row": 185, "column": 44}, "end_point": {"row": 185, "column": 47}}, {"id": 878, "type": "call_expression", "text": "i_assert(rec->uid != 0)", "parent": 805, "children": [879, 880], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 24}}, {"id": 879, "type": "identifier", "text": "i_assert", "parent": 878, "children": [], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 9}}, {"id": 880, "type": "argument_list", "text": "(rec->uid != 0)", "parent": 878, "children": [881], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 24}}, {"id": 881, "type": "binary_expression", "text": "rec->uid != 0", "parent": 880, "children": [882, 885, 886], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 23}}, {"id": 882, "type": "field_expression", "text": "rec->uid", "parent": 881, "children": [883, 884], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 18}}, {"id": 883, "type": "identifier", "text": "rec", "parent": 882, "children": [], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 13}}, {"id": 884, "type": "field_identifier", "text": "uid", "parent": 882, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 18}}, {"id": 885, "type": "!=", "text": "!=", "parent": 881, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 21}}, {"id": 886, "type": "number_literal", "text": "0", "parent": 881, "children": [], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 23}}, {"id": 887, "type": "return_statement", "text": "return rec->uid;", "parent": 805, "children": [888], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 17}}, {"id": 888, "type": "field_expression", "text": "rec->uid", "parent": 887, "children": [889, 890], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 16}}, {"id": 889, "type": "identifier", "text": "rec", "parent": 888, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 11}}, {"id": 890, "type": "field_identifier", "text": "uid", "parent": 888, "children": [], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 16}}, {"id": 891, "type": "function_definition", "text": "static void\nmail_index_convert_to_uids(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array) *array)\n{\n\tuint32_t *seq;\n\tunsigned int i, count;\n\n\tif (!array_is_created(array))\n\t\treturn;\n\n\tcount = array_count(array);\n\tfor (i = 0; i < count; i++) {\n\t\tseq = array_idx_modifiable(array, i);\n\t\t*seq = mail_index_transaction_get_uid(t, *seq);\n\t}\n}", "parent": null, "children": [892, 893], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 206, "column": 1}}, {"id": 892, "type": "primitive_type", "text": "void", "parent": 891, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 11}}, {"id": 893, "type": "function_declarator", "text": "mail_index_convert_to_uids(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array) *array)", "parent": 891, "children": [894, 895], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 35}}, {"id": 894, "type": "identifier", "text": "mail_index_convert_to_uids", "parent": 893, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 26}}, {"id": 895, "type": "parameter_list", "text": "(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array) *array)", "parent": 893, "children": [896, 903], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 193, "column": 35}}, {"id": 896, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 895, "children": [897, 900], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 59}}, {"id": 897, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 896, "children": [898, 899], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 56}}, {"id": 898, "type": "struct", "text": "struct", "parent": 897, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 33}}, {"id": 899, "type": "type_identifier", "text": "mail_index_transaction", "parent": 897, "children": [], "start_point": {"row": 192, "column": 34}, "end_point": {"row": 192, "column": 56}}, {"id": 900, "type": "pointer_declarator", "text": "*t", "parent": 896, "children": [901, 902], "start_point": {"row": 192, "column": 57}, "end_point": {"row": 192, "column": 59}}, {"id": 901, "type": "*", "text": "*", "parent": 900, "children": [], "start_point": {"row": 192, "column": 57}, "end_point": {"row": 192, "column": 58}}, {"id": 902, "type": "identifier", "text": "t", "parent": 900, "children": [], "start_point": {"row": 192, "column": 58}, "end_point": {"row": 192, "column": 59}}, {"id": 903, "type": "parameter_declaration", "text": "ARRAY_TYPE(seq_array) *array", "parent": 895, "children": [904, 908], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 34}}, {"id": 904, "type": "macro_type_specifier", "text": "ARRAY_TYPE(seq_array)", "parent": 903, "children": [905, 906], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 27}}, {"id": 905, "type": "identifier", "text": "ARRAY_TYPE", "parent": 904, "children": [], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 16}}, {"id": 906, "type": "type_descriptor", "text": "seq_array", "parent": 904, "children": [907], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 26}}, {"id": 907, "type": "type_identifier", "text": "seq_array", "parent": 906, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 26}}, {"id": 908, "type": "pointer_declarator", "text": "*array", "parent": 903, "children": [909, 910], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 34}}, {"id": 909, "type": "*", "text": "*", "parent": 908, "children": [], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 29}}, {"id": 910, "type": "identifier", "text": "array", "parent": 908, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 34}}, {"id": 911, "type": "declaration", "text": "uint32_t *seq;", "parent": 891, "children": [912, 913], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 15}}, {"id": 912, "type": "primitive_type", "text": "uint32_t", "parent": 911, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 9}}, {"id": 913, "type": "pointer_declarator", "text": "*seq", "parent": 911, "children": [914, 915], "start_point": {"row": 195, "column": 10}, "end_point": {"row": 195, "column": 14}}, {"id": 914, "type": "*", "text": "*", "parent": 913, "children": [], "start_point": {"row": 195, "column": 10}, "end_point": {"row": 195, "column": 11}}, {"id": 915, "type": "identifier", "text": "seq", "parent": 913, "children": [], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 14}}, {"id": 916, "type": "declaration", "text": "unsigned int i, count;", "parent": 891, "children": [917, 920, 921], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 23}}, {"id": 917, "type": "sized_type_specifier", "text": "unsigned int", "parent": 916, "children": [918, 919], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 13}}, {"id": 918, "type": "unsigned", "text": "unsigned", "parent": 917, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 9}}, {"id": 919, "type": "primitive_type", "text": "int", "parent": 917, "children": [], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 13}}, {"id": 920, "type": "identifier", "text": "i", "parent": 916, "children": [], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 196, "column": 15}}, {"id": 921, "type": "identifier", "text": "count", "parent": 916, "children": [], "start_point": {"row": 196, "column": 17}, "end_point": {"row": 196, "column": 22}}, {"id": 922, "type": "if_statement", "text": "if (!array_is_created(array))\n\t\treturn;", "parent": 891, "children": [923, 930], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 199, "column": 9}}, {"id": 923, "type": "parenthesized_expression", "text": "(!array_is_created(array))", "parent": 922, "children": [924], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 30}}, {"id": 924, "type": "unary_expression", "text": "!array_is_created(array)", "parent": 923, "children": [925, 926], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 29}}, {"id": 925, "type": "!", "text": "!", "parent": 924, "children": [], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 6}}, {"id": 926, "type": "call_expression", "text": "array_is_created(array)", "parent": 924, "children": [927, 928], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 29}}, {"id": 927, "type": "identifier", "text": "array_is_created", "parent": 926, "children": [], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 22}}, {"id": 928, "type": "argument_list", "text": "(array)", "parent": 926, "children": [929], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 29}}, {"id": 929, "type": "identifier", "text": "array", "parent": 928, "children": [], "start_point": {"row": 198, "column": 23}, "end_point": {"row": 198, "column": 28}}, {"id": 930, "type": "return_statement", "text": "return;", "parent": 922, "children": [], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 9}}, {"id": 931, "type": "assignment_expression", "text": "count = array_count(array)", "parent": 891, "children": [932, 933, 934], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 27}}, {"id": 932, "type": "identifier", "text": "count", "parent": 931, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 6}}, {"id": 933, "type": "=", "text": "=", "parent": 931, "children": [], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 8}}, {"id": 934, "type": "call_expression", "text": "array_count(array)", "parent": 931, "children": [935, 936], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 27}}, {"id": 935, "type": "identifier", "text": "array_count", "parent": 934, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 20}}, {"id": 936, "type": "argument_list", "text": "(array)", "parent": 934, "children": [937], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 27}}, {"id": 937, "type": "identifier", "text": "array", "parent": 936, "children": [], "start_point": {"row": 201, "column": 21}, "end_point": {"row": 201, "column": 26}}, {"id": 938, "type": "for_statement", "text": "for (i = 0; i < count; i++) {\n\t\tseq = array_idx_modifiable(array, i);\n\t\t*seq = mail_index_transaction_get_uid(t, *seq);\n\t}", "parent": 891, "children": [939, 943, 947], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 205, "column": 2}}, {"id": 939, "type": "assignment_expression", "text": "i = 0", "parent": 938, "children": [940, 941, 942], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 11}}, {"id": 940, "type": "identifier", "text": "i", "parent": 939, "children": [], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 7}}, {"id": 941, "type": "=", "text": "=", "parent": 939, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 9}}, {"id": 942, "type": "number_literal", "text": "0", "parent": 939, "children": [], "start_point": {"row": 202, "column": 10}, "end_point": {"row": 202, "column": 11}}, {"id": 943, "type": "binary_expression", "text": "i < count", "parent": 938, "children": [944, 945, 946], "start_point": {"row": 202, "column": 13}, "end_point": {"row": 202, "column": 22}}, {"id": 944, "type": "identifier", "text": "i", "parent": 943, "children": [], "start_point": {"row": 202, "column": 13}, "end_point": {"row": 202, "column": 14}}, {"id": 945, "type": "<", "text": "<", "parent": 943, "children": [], "start_point": {"row": 202, "column": 15}, "end_point": {"row": 202, "column": 16}}, {"id": 946, "type": "identifier", "text": "count", "parent": 943, "children": [], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 22}}, {"id": 947, "type": "update_expression", "text": "i++", "parent": 938, "children": [948, 949], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 27}}, {"id": 948, "type": "identifier", "text": "i", "parent": 947, "children": [], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 25}}, {"id": 949, "type": "++", "text": "++", "parent": 947, "children": [], "start_point": {"row": 202, "column": 25}, "end_point": {"row": 202, "column": 27}}, {"id": 950, "type": "assignment_expression", "text": "seq = array_idx_modifiable(array, i)", "parent": 938, "children": [951, 952, 953], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 38}}, {"id": 951, "type": "identifier", "text": "seq", "parent": 950, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 5}}, {"id": 952, "type": "=", "text": "=", "parent": 950, "children": [], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 7}}, {"id": 953, "type": "call_expression", "text": "array_idx_modifiable(array, i)", "parent": 950, "children": [954, 955], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 38}}, {"id": 954, "type": "identifier", "text": "array_idx_modifiable", "parent": 953, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 28}}, {"id": 955, "type": "argument_list", "text": "(array, i)", "parent": 953, "children": [956, 957], "start_point": {"row": 203, "column": 28}, "end_point": {"row": 203, "column": 38}}, {"id": 956, "type": "identifier", "text": "array", "parent": 955, "children": [], "start_point": {"row": 203, "column": 29}, "end_point": {"row": 203, "column": 34}}, {"id": 957, "type": "identifier", "text": "i", "parent": 955, "children": [], "start_point": {"row": 203, "column": 36}, "end_point": {"row": 203, "column": 37}}, {"id": 958, "type": "assignment_expression", "text": "*seq = mail_index_transaction_get_uid(t, *seq)", "parent": 938, "children": [959, 962, 963], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 48}}, {"id": 959, "type": "pointer_expression", "text": "*seq", "parent": 958, "children": [960, 961], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 6}}, {"id": 960, "type": "*", "text": "*", "parent": 959, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 3}}, {"id": 961, "type": "identifier", "text": "seq", "parent": 959, "children": [], "start_point": {"row": 204, "column": 3}, "end_point": {"row": 204, "column": 6}}, {"id": 962, "type": "=", "text": "=", "parent": 958, "children": [], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 8}}, {"id": 963, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, *seq)", "parent": 958, "children": [964, 965], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 48}}, {"id": 964, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 963, "children": [], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 39}}, {"id": 965, "type": "argument_list", "text": "(t, *seq)", "parent": 963, "children": [966, 967], "start_point": {"row": 204, "column": 39}, "end_point": {"row": 204, "column": 48}}, {"id": 966, "type": "identifier", "text": "t", "parent": 965, "children": [], "start_point": {"row": 204, "column": 40}, "end_point": {"row": 204, "column": 41}}, {"id": 967, "type": "pointer_expression", "text": "*seq", "parent": 965, "children": [968, 969], "start_point": {"row": 204, "column": 43}, "end_point": {"row": 204, "column": 47}}, {"id": 968, "type": "*", "text": "*", "parent": 967, "children": [], "start_point": {"row": 204, "column": 43}, "end_point": {"row": 204, "column": 44}}, {"id": 969, "type": "identifier", "text": "seq", "parent": 967, "children": [], "start_point": {"row": 204, "column": 44}, "end_point": {"row": 204, "column": 47}}, {"id": 970, "type": "function_definition", "text": "static uint32_t\nget_nonexpunged_uid2(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_t seq1)\n{\n\tseq1++;\n\n\twhile (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n\t\tseq1++;\n\t\tuid1++;\n\t}\n\treturn uid1;\n}", "parent": null, "children": [971, 972], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 219, "column": 1}}, {"id": 971, "type": "primitive_type", "text": "uint32_t", "parent": 970, "children": [], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 15}}, {"id": 972, "type": "function_declarator", "text": "get_nonexpunged_uid2(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_t seq1)", "parent": 970, "children": [973, 974], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 210, "column": 36}}, {"id": 973, "type": "identifier", "text": "get_nonexpunged_uid2", "parent": 972, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 209, "column": 20}}, {"id": 974, "type": "parameter_list", "text": "(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_t seq1)", "parent": 972, "children": [975, 982, 985], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 210, "column": 36}}, {"id": 975, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 974, "children": [976, 979], "start_point": {"row": 209, "column": 21}, "end_point": {"row": 209, "column": 53}}, {"id": 976, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 975, "children": [977, 978], "start_point": {"row": 209, "column": 21}, "end_point": {"row": 209, "column": 50}}, {"id": 977, "type": "struct", "text": "struct", "parent": 976, "children": [], "start_point": {"row": 209, "column": 21}, "end_point": {"row": 209, "column": 27}}, {"id": 978, "type": "type_identifier", "text": "mail_index_transaction", "parent": 976, "children": [], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 50}}, {"id": 979, "type": "pointer_declarator", "text": "*t", "parent": 975, "children": [980, 981], "start_point": {"row": 209, "column": 51}, "end_point": {"row": 209, "column": 53}}, {"id": 980, "type": "*", "text": "*", "parent": 979, "children": [], "start_point": {"row": 209, "column": 51}, "end_point": {"row": 209, "column": 52}}, {"id": 981, "type": "identifier", "text": "t", "parent": 979, "children": [], "start_point": {"row": 209, "column": 52}, "end_point": {"row": 209, "column": 53}}, {"id": 982, "type": "parameter_declaration", "text": "uint32_t uid1", "parent": 974, "children": [983, 984], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 20}}, {"id": 983, "type": "primitive_type", "text": "uint32_t", "parent": 982, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 15}}, {"id": 984, "type": "identifier", "text": "uid1", "parent": 982, "children": [], "start_point": {"row": 210, "column": 16}, "end_point": {"row": 210, "column": 20}}, {"id": 985, "type": "parameter_declaration", "text": "uint32_t seq1", "parent": 974, "children": [986, 987], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 35}}, {"id": 986, "type": "primitive_type", "text": "uint32_t", "parent": 985, "children": [], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 30}}, {"id": 987, "type": "identifier", "text": "seq1", "parent": 985, "children": [], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 35}}, {"id": 988, "type": "update_expression", "text": "seq1++", "parent": 970, "children": [989, 990], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 7}}, {"id": 989, "type": "identifier", "text": "seq1", "parent": 988, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 5}}, {"id": 990, "type": "++", "text": "++", "parent": 988, "children": [], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 7}}, {"id": 991, "type": "while_statement", "text": "while (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n\t\tseq1++;\n\t\tuid1++;\n\t}", "parent": 970, "children": [992], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 217, "column": 2}}, {"id": 992, "type": "parenthesized_expression", "text": "(mail_index_transaction_get_uid(t, seq1) == uid1 + 1)", "parent": 991, "children": [993], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 60}}, {"id": 993, "type": "binary_expression", "text": "mail_index_transaction_get_uid(t, seq1) == uid1 + 1", "parent": 992, "children": [994, 999, 1000], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 59}}, {"id": 994, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, seq1)", "parent": 993, "children": [995, 996], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 47}}, {"id": 995, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 994, "children": [], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 38}}, {"id": 996, "type": "argument_list", "text": "(t, seq1)", "parent": 994, "children": [997, 998], "start_point": {"row": 214, "column": 38}, "end_point": {"row": 214, "column": 47}}, {"id": 997, "type": "identifier", "text": "t", "parent": 996, "children": [], "start_point": {"row": 214, "column": 39}, "end_point": {"row": 214, "column": 40}}, {"id": 998, "type": "identifier", "text": "seq1", "parent": 996, "children": [], "start_point": {"row": 214, "column": 42}, "end_point": {"row": 214, "column": 46}}, {"id": 999, "type": "==", "text": "==", "parent": 993, "children": [], "start_point": {"row": 214, "column": 48}, "end_point": {"row": 214, "column": 50}}, {"id": 1000, "type": "binary_expression", "text": "uid1 + 1", "parent": 993, "children": [1001, 1002, 1003], "start_point": {"row": 214, "column": 51}, "end_point": {"row": 214, "column": 59}}, {"id": 1001, "type": "identifier", "text": "uid1", "parent": 1000, "children": [], "start_point": {"row": 214, "column": 51}, "end_point": {"row": 214, "column": 55}}, {"id": 1002, "type": "+", "text": "+", "parent": 1000, "children": [], "start_point": {"row": 214, "column": 56}, "end_point": {"row": 214, "column": 57}}, {"id": 1003, "type": "number_literal", "text": "1", "parent": 1000, "children": [], "start_point": {"row": 214, "column": 58}, "end_point": {"row": 214, "column": 59}}, {"id": 1004, "type": "update_expression", "text": "seq1++", "parent": 991, "children": [1005, 1006], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 8}}, {"id": 1005, "type": "identifier", "text": "seq1", "parent": 1004, "children": [], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 6}}, {"id": 1006, "type": "++", "text": "++", "parent": 1004, "children": [], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 8}}, {"id": 1007, "type": "update_expression", "text": "uid1++", "parent": 991, "children": [1008, 1009], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 8}}, {"id": 1008, "type": "identifier", "text": "uid1", "parent": 1007, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 6}}, {"id": 1009, "type": "++", "text": "++", "parent": 1007, "children": [], "start_point": {"row": 216, "column": 6}, "end_point": {"row": 216, "column": 8}}, {"id": 1010, "type": "return_statement", "text": "return uid1;", "parent": 970, "children": [1011], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 13}}, {"id": 1011, "type": "identifier", "text": "uid1", "parent": 1010, "children": [], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 12}}, {"id": 1012, "type": "function_definition", "text": "void mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE(seq_range) *array)\n{\n\tstruct seq_range *range, *new_range;\n\tunsigned int i, count;\n\tuint32_t uid1, uid2, prev_uid = 0;\n\n\tif (!array_is_created(array))\n\t\treturn;\n\n\tcount = array_count(array);\n\tfor (i = 0; i < count; i++) {\n\t\trange = array_idx_modifiable(array, i);\n\n\t\tuid1 = mail_index_transaction_get_uid(t, range->seq1);\n\t\tuid2 = mail_index_transaction_get_uid(t, range->seq2);\n\t\ti_assert(uid1 > prev_uid);\n\t\tif (uid2 - uid1 == range->seq2 - range->seq1) {\n\t\t\t/* simple conversion */\n\t\t\trange->seq1 = uid1;\n\t\t\trange->seq2 = uid2;\n\t\t\tprev_uid = uid2;\n\t\t} else {\n\t\t\t/* remove expunged UIDs */\n\t\t\tnew_range = array_insert_space(array, i);\n\t\t\trange = array_idx_modifiable(array, i + 1);\n\t\t\tcount++;\n\n\t\t\tmemcpy(new_range, range, array->arr.element_size);\n\t\t\tnew_range->seq1 = uid1;\n\t\t\tnew_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1);\n\t\t\ti_assert(new_range->seq2 < uid2);\n\n\t\t\t/* continue the range without the inserted seqs */\n\t\t\trange->seq1 += new_range->seq2 - new_range->seq1 + 1;\n\t\t\tprev_uid = new_range->seq2;\n\t\t}\n\t}\n}", "parent": null, "children": [1013, 1014], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 260, "column": 1}}, {"id": 1013, "type": "primitive_type", "text": "void", "parent": 1012, "children": [], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 221, "column": 4}}, {"id": 1014, "type": "function_declarator", "text": "mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE(seq_range) *array)", "parent": 1012, "children": [1015, 1016], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 222, "column": 39}}, {"id": 1015, "type": "identifier", "text": "mail_index_transaction_seq_range_to_uid", "parent": 1014, "children": [], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 44}}, {"id": 1016, "type": "parameter_list", "text": "(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE(seq_range) *array)", "parent": 1014, "children": [1017, 1024], "start_point": {"row": 221, "column": 44}, "end_point": {"row": 222, "column": 39}}, {"id": 1017, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1016, "children": [1018, 1021], "start_point": {"row": 221, "column": 45}, "end_point": {"row": 221, "column": 77}}, {"id": 1018, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1017, "children": [1019, 1020], "start_point": {"row": 221, "column": 45}, "end_point": {"row": 221, "column": 74}}, {"id": 1019, "type": "struct", "text": "struct", "parent": 1018, "children": [], "start_point": {"row": 221, "column": 45}, "end_point": {"row": 221, "column": 51}}, {"id": 1020, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1018, "children": [], "start_point": {"row": 221, "column": 52}, "end_point": {"row": 221, "column": 74}}, {"id": 1021, "type": "pointer_declarator", "text": "*t", "parent": 1017, "children": [1022, 1023], "start_point": {"row": 221, "column": 75}, "end_point": {"row": 221, "column": 77}}, {"id": 1022, "type": "*", "text": "*", "parent": 1021, "children": [], "start_point": {"row": 221, "column": 75}, "end_point": {"row": 221, "column": 76}}, {"id": 1023, "type": "identifier", "text": "t", "parent": 1021, "children": [], "start_point": {"row": 221, "column": 76}, "end_point": {"row": 221, "column": 77}}, {"id": 1024, "type": "parameter_declaration", "text": "ARRAY_TYPE(seq_range) *array", "parent": 1016, "children": [1025, 1029], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 38}}, {"id": 1025, "type": "macro_type_specifier", "text": "ARRAY_TYPE(seq_range)", "parent": 1024, "children": [1026, 1027], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 31}}, {"id": 1026, "type": "identifier", "text": "ARRAY_TYPE", "parent": 1025, "children": [], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 20}}, {"id": 1027, "type": "type_descriptor", "text": "seq_range", "parent": 1025, "children": [1028], "start_point": {"row": 222, "column": 21}, "end_point": {"row": 222, "column": 30}}, {"id": 1028, "type": "type_identifier", "text": "seq_range", "parent": 1027, "children": [], "start_point": {"row": 222, "column": 21}, "end_point": {"row": 222, "column": 30}}, {"id": 1029, "type": "pointer_declarator", "text": "*array", "parent": 1024, "children": [1030, 1031], "start_point": {"row": 222, "column": 32}, "end_point": {"row": 222, "column": 38}}, {"id": 1030, "type": "*", "text": "*", "parent": 1029, "children": [], "start_point": {"row": 222, "column": 32}, "end_point": {"row": 222, "column": 33}}, {"id": 1031, "type": "identifier", "text": "array", "parent": 1029, "children": [], "start_point": {"row": 222, "column": 33}, "end_point": {"row": 222, "column": 38}}, {"id": 1032, "type": "declaration", "text": "struct seq_range *range, *new_range;", "parent": 1012, "children": [1033, 1036, 1039], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 37}}, {"id": 1033, "type": "struct_specifier", "text": "struct seq_range", "parent": 1032, "children": [1034, 1035], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 17}}, {"id": 1034, "type": "struct", "text": "struct", "parent": 1033, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 7}}, {"id": 1035, "type": "type_identifier", "text": "seq_range", "parent": 1033, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 17}}, {"id": 1036, "type": "pointer_declarator", "text": "*range", "parent": 1032, "children": [1037, 1038], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 24}}, {"id": 1037, "type": "*", "text": "*", "parent": 1036, "children": [], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 19}}, {"id": 1038, "type": "identifier", "text": "range", "parent": 1036, "children": [], "start_point": {"row": 224, "column": 19}, "end_point": {"row": 224, "column": 24}}, {"id": 1039, "type": "pointer_declarator", "text": "*new_range", "parent": 1032, "children": [1040, 1041], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 36}}, {"id": 1040, "type": "*", "text": "*", "parent": 1039, "children": [], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 27}}, {"id": 1041, "type": "identifier", "text": "new_range", "parent": 1039, "children": [], "start_point": {"row": 224, "column": 27}, "end_point": {"row": 224, "column": 36}}, {"id": 1042, "type": "declaration", "text": "unsigned int i, count;", "parent": 1012, "children": [1043, 1046, 1047], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 23}}, {"id": 1043, "type": "sized_type_specifier", "text": "unsigned int", "parent": 1042, "children": [1044, 1045], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 13}}, {"id": 1044, "type": "unsigned", "text": "unsigned", "parent": 1043, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 9}}, {"id": 1045, "type": "primitive_type", "text": "int", "parent": 1043, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 13}}, {"id": 1046, "type": "identifier", "text": "i", "parent": 1042, "children": [], "start_point": {"row": 225, "column": 14}, "end_point": {"row": 225, "column": 15}}, {"id": 1047, "type": "identifier", "text": "count", "parent": 1042, "children": [], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 22}}, {"id": 1048, "type": "declaration", "text": "uint32_t uid1, uid2, prev_uid = 0;", "parent": 1012, "children": [1049, 1050, 1051, 1052], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 35}}, {"id": 1049, "type": "primitive_type", "text": "uint32_t", "parent": 1048, "children": [], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 9}}, {"id": 1050, "type": "identifier", "text": "uid1", "parent": 1048, "children": [], "start_point": {"row": 226, "column": 10}, "end_point": {"row": 226, "column": 14}}, {"id": 1051, "type": "identifier", "text": "uid2", "parent": 1048, "children": [], "start_point": {"row": 226, "column": 16}, "end_point": {"row": 226, "column": 20}}, {"id": 1052, "type": "init_declarator", "text": "prev_uid = 0", "parent": 1048, "children": [1053, 1054, 1055], "start_point": {"row": 226, "column": 22}, "end_point": {"row": 226, "column": 34}}, {"id": 1053, "type": "identifier", "text": "prev_uid", "parent": 1052, "children": [], "start_point": {"row": 226, "column": 22}, "end_point": {"row": 226, "column": 30}}, {"id": 1054, "type": "=", "text": "=", "parent": 1052, "children": [], "start_point": {"row": 226, "column": 31}, "end_point": {"row": 226, "column": 32}}, {"id": 1055, "type": "number_literal", "text": "0", "parent": 1052, "children": [], "start_point": {"row": 226, "column": 33}, "end_point": {"row": 226, "column": 34}}, {"id": 1056, "type": "if_statement", "text": "if (!array_is_created(array))\n\t\treturn;", "parent": 1012, "children": [1057, 1064], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 229, "column": 9}}, {"id": 1057, "type": "parenthesized_expression", "text": "(!array_is_created(array))", "parent": 1056, "children": [1058], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 30}}, {"id": 1058, "type": "unary_expression", "text": "!array_is_created(array)", "parent": 1057, "children": [1059, 1060], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 29}}, {"id": 1059, "type": "!", "text": "!", "parent": 1058, "children": [], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 6}}, {"id": 1060, "type": "call_expression", "text": "array_is_created(array)", "parent": 1058, "children": [1061, 1062], "start_point": {"row": 228, "column": 6}, "end_point": {"row": 228, "column": 29}}, {"id": 1061, "type": "identifier", "text": "array_is_created", "parent": 1060, "children": [], "start_point": {"row": 228, "column": 6}, "end_point": {"row": 228, "column": 22}}, {"id": 1062, "type": "argument_list", "text": "(array)", "parent": 1060, "children": [1063], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 29}}, {"id": 1063, "type": "identifier", "text": "array", "parent": 1062, "children": [], "start_point": {"row": 228, "column": 23}, "end_point": {"row": 228, "column": 28}}, {"id": 1064, "type": "return_statement", "text": "return;", "parent": 1056, "children": [], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 9}}, {"id": 1065, "type": "assignment_expression", "text": "count = array_count(array)", "parent": 1012, "children": [1066, 1067, 1068], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 27}}, {"id": 1066, "type": "identifier", "text": "count", "parent": 1065, "children": [], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 6}}, {"id": 1067, "type": "=", "text": "=", "parent": 1065, "children": [], "start_point": {"row": 231, "column": 7}, "end_point": {"row": 231, "column": 8}}, {"id": 1068, "type": "call_expression", "text": "array_count(array)", "parent": 1065, "children": [1069, 1070], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 27}}, {"id": 1069, "type": "identifier", "text": "array_count", "parent": 1068, "children": [], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 20}}, {"id": 1070, "type": "argument_list", "text": "(array)", "parent": 1068, "children": [1071], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 27}}, {"id": 1071, "type": "identifier", "text": "array", "parent": 1070, "children": [], "start_point": {"row": 231, "column": 21}, "end_point": {"row": 231, "column": 26}}, {"id": 1072, "type": "for_statement", "text": "for (i = 0; i < count; i++) {\n\t\trange = array_idx_modifiable(array, i);\n\n\t\tuid1 = mail_index_transaction_get_uid(t, range->seq1);\n\t\tuid2 = mail_index_transaction_get_uid(t, range->seq2);\n\t\ti_assert(uid1 > prev_uid);\n\t\tif (uid2 - uid1 == range->seq2 - range->seq1) {\n\t\t\t/* simple conversion */\n\t\t\trange->seq1 = uid1;\n\t\t\trange->seq2 = uid2;\n\t\t\tprev_uid = uid2;\n\t\t} else {\n\t\t\t/* remove expunged UIDs */\n\t\t\tnew_range = array_insert_space(array, i);\n\t\t\trange = array_idx_modifiable(array, i + 1);\n\t\t\tcount++;\n\n\t\t\tmemcpy(new_range, range, array->arr.element_size);\n\t\t\tnew_range->seq1 = uid1;\n\t\t\tnew_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1);\n\t\t\ti_assert(new_range->seq2 < uid2);\n\n\t\t\t/* continue the range without the inserted seqs */\n\t\t\trange->seq1 += new_range->seq2 - new_range->seq1 + 1;\n\t\t\tprev_uid = new_range->seq2;\n\t\t}\n\t}", "parent": 1012, "children": [1073, 1077, 1081], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 259, "column": 2}}, {"id": 1073, "type": "assignment_expression", "text": "i = 0", "parent": 1072, "children": [1074, 1075, 1076], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 11}}, {"id": 1074, "type": "identifier", "text": "i", "parent": 1073, "children": [], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 7}}, {"id": 1075, "type": "=", "text": "=", "parent": 1073, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 9}}, {"id": 1076, "type": "number_literal", "text": "0", "parent": 1073, "children": [], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 11}}, {"id": 1077, "type": "binary_expression", "text": "i < count", "parent": 1072, "children": [1078, 1079, 1080], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 22}}, {"id": 1078, "type": "identifier", "text": "i", "parent": 1077, "children": [], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 14}}, {"id": 1079, "type": "<", "text": "<", "parent": 1077, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 16}}, {"id": 1080, "type": "identifier", "text": "count", "parent": 1077, "children": [], "start_point": {"row": 232, "column": 17}, "end_point": {"row": 232, "column": 22}}, {"id": 1081, "type": "update_expression", "text": "i++", "parent": 1072, "children": [1082, 1083], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 27}}, {"id": 1082, "type": "identifier", "text": "i", "parent": 1081, "children": [], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 25}}, {"id": 1083, "type": "++", "text": "++", "parent": 1081, "children": [], "start_point": {"row": 232, "column": 25}, "end_point": {"row": 232, "column": 27}}, {"id": 1084, "type": "assignment_expression", "text": "range = array_idx_modifiable(array, i)", "parent": 1072, "children": [1085, 1086, 1087], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 40}}, {"id": 1085, "type": "identifier", "text": "range", "parent": 1084, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 7}}, {"id": 1086, "type": "=", "text": "=", "parent": 1084, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 9}}, {"id": 1087, "type": "call_expression", "text": "array_idx_modifiable(array, i)", "parent": 1084, "children": [1088, 1089], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 40}}, {"id": 1088, "type": "identifier", "text": "array_idx_modifiable", "parent": 1087, "children": [], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 30}}, {"id": 1089, "type": "argument_list", "text": "(array, i)", "parent": 1087, "children": [1090, 1091], "start_point": {"row": 233, "column": 30}, "end_point": {"row": 233, "column": 40}}, {"id": 1090, "type": "identifier", "text": "array", "parent": 1089, "children": [], "start_point": {"row": 233, "column": 31}, "end_point": {"row": 233, "column": 36}}, {"id": 1091, "type": "identifier", "text": "i", "parent": 1089, "children": [], "start_point": {"row": 233, "column": 38}, "end_point": {"row": 233, "column": 39}}, {"id": 1092, "type": "assignment_expression", "text": "uid1 = mail_index_transaction_get_uid(t, range->seq1)", "parent": 1072, "children": [1093, 1094, 1095], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 55}}, {"id": 1093, "type": "identifier", "text": "uid1", "parent": 1092, "children": [], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 6}}, {"id": 1094, "type": "=", "text": "=", "parent": 1092, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 8}}, {"id": 1095, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, range->seq1)", "parent": 1092, "children": [1096, 1097], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 235, "column": 55}}, {"id": 1096, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 1095, "children": [], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 235, "column": 39}}, {"id": 1097, "type": "argument_list", "text": "(t, range->seq1)", "parent": 1095, "children": [1098, 1099], "start_point": {"row": 235, "column": 39}, "end_point": {"row": 235, "column": 55}}, {"id": 1098, "type": "identifier", "text": "t", "parent": 1097, "children": [], "start_point": {"row": 235, "column": 40}, "end_point": {"row": 235, "column": 41}}, {"id": 1099, "type": "field_expression", "text": "range->seq1", "parent": 1097, "children": [1100, 1101], "start_point": {"row": 235, "column": 43}, "end_point": {"row": 235, "column": 54}}, {"id": 1100, "type": "identifier", "text": "range", "parent": 1099, "children": [], "start_point": {"row": 235, "column": 43}, "end_point": {"row": 235, "column": 48}}, {"id": 1101, "type": "field_identifier", "text": "seq1", "parent": 1099, "children": [], "start_point": {"row": 235, "column": 50}, "end_point": {"row": 235, "column": 54}}, {"id": 1102, "type": "assignment_expression", "text": "uid2 = mail_index_transaction_get_uid(t, range->seq2)", "parent": 1072, "children": [1103, 1104, 1105], "start_point": {"row": 236, "column": 2}, "end_point": {"row": 236, "column": 55}}, {"id": 1103, "type": "identifier", "text": "uid2", "parent": 1102, "children": [], "start_point": {"row": 236, "column": 2}, "end_point": {"row": 236, "column": 6}}, {"id": 1104, "type": "=", "text": "=", "parent": 1102, "children": [], "start_point": {"row": 236, "column": 7}, "end_point": {"row": 236, "column": 8}}, {"id": 1105, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, range->seq2)", "parent": 1102, "children": [1106, 1107], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 55}}, {"id": 1106, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 1105, "children": [], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 39}}, {"id": 1107, "type": "argument_list", "text": "(t, range->seq2)", "parent": 1105, "children": [1108, 1109], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 55}}, {"id": 1108, "type": "identifier", "text": "t", "parent": 1107, "children": [], "start_point": {"row": 236, "column": 40}, "end_point": {"row": 236, "column": 41}}, {"id": 1109, "type": "field_expression", "text": "range->seq2", "parent": 1107, "children": [1110, 1111], "start_point": {"row": 236, "column": 43}, "end_point": {"row": 236, "column": 54}}, {"id": 1110, "type": "identifier", "text": "range", "parent": 1109, "children": [], "start_point": {"row": 236, "column": 43}, "end_point": {"row": 236, "column": 48}}, {"id": 1111, "type": "field_identifier", "text": "seq2", "parent": 1109, "children": [], "start_point": {"row": 236, "column": 50}, "end_point": {"row": 236, "column": 54}}, {"id": 1112, "type": "call_expression", "text": "i_assert(uid1 > prev_uid)", "parent": 1072, "children": [1113, 1114], "start_point": {"row": 237, "column": 2}, "end_point": {"row": 237, "column": 27}}, {"id": 1113, "type": "identifier", "text": "i_assert", "parent": 1112, "children": [], "start_point": {"row": 237, "column": 2}, "end_point": {"row": 237, "column": 10}}, {"id": 1114, "type": "argument_list", "text": "(uid1 > prev_uid)", "parent": 1112, "children": [1115], "start_point": {"row": 237, "column": 10}, "end_point": {"row": 237, "column": 27}}, {"id": 1115, "type": "binary_expression", "text": "uid1 > prev_uid", "parent": 1114, "children": [1116, 1117, 1118], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 26}}, {"id": 1116, "type": "identifier", "text": "uid1", "parent": 1115, "children": [], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 15}}, {"id": 1117, "type": ">", "text": ">", "parent": 1115, "children": [], "start_point": {"row": 237, "column": 16}, "end_point": {"row": 237, "column": 17}}, {"id": 1118, "type": "identifier", "text": "prev_uid", "parent": 1115, "children": [], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 26}}, {"id": 1119, "type": "if_statement", "text": "if (uid2 - uid1 == range->seq2 - range->seq1) {\n\t\t\t/* simple conversion */\n\t\t\trange->seq1 = uid1;\n\t\t\trange->seq2 = uid2;\n\t\t\tprev_uid = uid2;\n\t\t} else {\n\t\t\t/* remove expunged UIDs */\n\t\t\tnew_range = array_insert_space(array, i);\n\t\t\trange = array_idx_modifiable(array, i + 1);\n\t\t\tcount++;\n\n\t\t\tmemcpy(new_range, range, array->arr.element_size);\n\t\t\tnew_range->seq1 = uid1;\n\t\t\tnew_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1);\n\t\t\ti_assert(new_range->seq2 < uid2);\n\n\t\t\t/* continue the range without the inserted seqs */\n\t\t\trange->seq1 += new_range->seq2 - new_range->seq1 + 1;\n\t\t\tprev_uid = new_range->seq2;\n\t\t}", "parent": 1072, "children": [1120, 1151], "start_point": {"row": 238, "column": 2}, "end_point": {"row": 258, "column": 3}}, {"id": 1120, "type": "parenthesized_expression", "text": "(uid2 - uid1 == range->seq2 - range->seq1)", "parent": 1119, "children": [1121], "start_point": {"row": 238, "column": 5}, "end_point": {"row": 238, "column": 47}}, {"id": 1121, "type": "binary_expression", "text": "uid2 - uid1 == range->seq2 - range->seq1", "parent": 1120, "children": [1122, 1126, 1127], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 46}}, {"id": 1122, "type": "binary_expression", "text": "uid2 - uid1", "parent": 1121, "children": [1123, 1124, 1125], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 17}}, {"id": 1123, "type": "identifier", "text": "uid2", "parent": 1122, "children": [], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 10}}, {"id": 1124, "type": "-", "text": "-", "parent": 1122, "children": [], "start_point": {"row": 238, "column": 11}, "end_point": {"row": 238, "column": 12}}, {"id": 1125, "type": "identifier", "text": "uid1", "parent": 1122, "children": [], "start_point": {"row": 238, "column": 13}, "end_point": {"row": 238, "column": 17}}, {"id": 1126, "type": "==", "text": "==", "parent": 1121, "children": [], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 20}}, {"id": 1127, "type": "binary_expression", "text": "range->seq2 - range->seq1", "parent": 1121, "children": [1128, 1131, 1132], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 46}}, {"id": 1128, "type": "field_expression", "text": "range->seq2", "parent": 1127, "children": [1129, 1130], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 32}}, {"id": 1129, "type": "identifier", "text": "range", "parent": 1128, "children": [], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 26}}, {"id": 1130, "type": "field_identifier", "text": "seq2", "parent": 1128, "children": [], "start_point": {"row": 238, "column": 28}, "end_point": {"row": 238, "column": 32}}, {"id": 1131, "type": "-", "text": "-", "parent": 1127, "children": [], "start_point": {"row": 238, "column": 33}, "end_point": {"row": 238, "column": 34}}, {"id": 1132, "type": "field_expression", "text": "range->seq1", "parent": 1127, "children": [1133, 1134], "start_point": {"row": 238, "column": 35}, "end_point": {"row": 238, "column": 46}}, {"id": 1133, "type": "identifier", "text": "range", "parent": 1132, "children": [], "start_point": {"row": 238, "column": 35}, "end_point": {"row": 238, "column": 40}}, {"id": 1134, "type": "field_identifier", "text": "seq1", "parent": 1132, "children": [], "start_point": {"row": 238, "column": 42}, "end_point": {"row": 238, "column": 46}}, {"id": 1135, "type": "assignment_expression", "text": "range->seq1 = uid1", "parent": 1119, "children": [1136, 1139, 1140], "start_point": {"row": 240, "column": 3}, "end_point": {"row": 240, "column": 21}}, {"id": 1136, "type": "field_expression", "text": "range->seq1", "parent": 1135, "children": [1137, 1138], "start_point": {"row": 240, "column": 3}, "end_point": {"row": 240, "column": 14}}, {"id": 1137, "type": "identifier", "text": "range", "parent": 1136, "children": [], "start_point": {"row": 240, "column": 3}, "end_point": {"row": 240, "column": 8}}, {"id": 1138, "type": "field_identifier", "text": "seq1", "parent": 1136, "children": [], "start_point": {"row": 240, "column": 10}, "end_point": {"row": 240, "column": 14}}, {"id": 1139, "type": "=", "text": "=", "parent": 1135, "children": [], "start_point": {"row": 240, "column": 15}, "end_point": {"row": 240, "column": 16}}, {"id": 1140, "type": "identifier", "text": "uid1", "parent": 1135, "children": [], "start_point": {"row": 240, "column": 17}, "end_point": {"row": 240, "column": 21}}, {"id": 1141, "type": "assignment_expression", "text": "range->seq2 = uid2", "parent": 1119, "children": [1142, 1145, 1146], "start_point": {"row": 241, "column": 3}, "end_point": {"row": 241, "column": 21}}, {"id": 1142, "type": "field_expression", "text": "range->seq2", "parent": 1141, "children": [1143, 1144], "start_point": {"row": 241, "column": 3}, "end_point": {"row": 241, "column": 14}}, {"id": 1143, "type": "identifier", "text": "range", "parent": 1142, "children": [], "start_point": {"row": 241, "column": 3}, "end_point": {"row": 241, "column": 8}}, {"id": 1144, "type": "field_identifier", "text": "seq2", "parent": 1142, "children": [], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 14}}, {"id": 1145, "type": "=", "text": "=", "parent": 1141, "children": [], "start_point": {"row": 241, "column": 15}, "end_point": {"row": 241, "column": 16}}, {"id": 1146, "type": "identifier", "text": "uid2", "parent": 1141, "children": [], "start_point": {"row": 241, "column": 17}, "end_point": {"row": 241, "column": 21}}, {"id": 1147, "type": "assignment_expression", "text": "prev_uid = uid2", "parent": 1119, "children": [1148, 1149, 1150], "start_point": {"row": 242, "column": 3}, "end_point": {"row": 242, "column": 18}}, {"id": 1148, "type": "identifier", "text": "prev_uid", "parent": 1147, "children": [], "start_point": {"row": 242, "column": 3}, "end_point": {"row": 242, "column": 11}}, {"id": 1149, "type": "=", "text": "=", "parent": 1147, "children": [], "start_point": {"row": 242, "column": 12}, "end_point": {"row": 242, "column": 13}}, {"id": 1150, "type": "identifier", "text": "uid2", "parent": 1147, "children": [], "start_point": {"row": 242, "column": 14}, "end_point": {"row": 242, "column": 18}}, {"id": 1151, "type": "else_clause", "text": "else {\n\t\t\t/* remove expunged UIDs */\n\t\t\tnew_range = array_insert_space(array, i);\n\t\t\trange = array_idx_modifiable(array, i + 1);\n\t\t\tcount++;\n\n\t\t\tmemcpy(new_range, range, array->arr.element_size);\n\t\t\tnew_range->seq1 = uid1;\n\t\t\tnew_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1);\n\t\t\ti_assert(new_range->seq2 < uid2);\n\n\t\t\t/* continue the range without the inserted seqs */\n\t\t\trange->seq1 += new_range->seq2 - new_range->seq1 + 1;\n\t\t\tprev_uid = new_range->seq2;\n\t\t}", "parent": 1119, "children": [], "start_point": {"row": 243, "column": 4}, "end_point": {"row": 258, "column": 3}}, {"id": 1152, "type": "assignment_expression", "text": "new_range = array_insert_space(array, i)", "parent": 1151, "children": [1153, 1154, 1155], "start_point": {"row": 245, "column": 3}, "end_point": {"row": 245, "column": 43}}, {"id": 1153, "type": "identifier", "text": "new_range", "parent": 1152, "children": [], "start_point": {"row": 245, "column": 3}, "end_point": {"row": 245, "column": 12}}, {"id": 1154, "type": "=", "text": "=", "parent": 1152, "children": [], "start_point": {"row": 245, "column": 13}, "end_point": {"row": 245, "column": 14}}, {"id": 1155, "type": "call_expression", "text": "array_insert_space(array, i)", "parent": 1152, "children": [1156, 1157], "start_point": {"row": 245, "column": 15}, "end_point": {"row": 245, "column": 43}}, {"id": 1156, "type": "identifier", "text": "array_insert_space", "parent": 1155, "children": [], "start_point": {"row": 245, "column": 15}, "end_point": {"row": 245, "column": 33}}, {"id": 1157, "type": "argument_list", "text": "(array, i)", "parent": 1155, "children": [1158, 1159], "start_point": {"row": 245, "column": 33}, "end_point": {"row": 245, "column": 43}}, {"id": 1158, "type": "identifier", "text": "array", "parent": 1157, "children": [], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 39}}, {"id": 1159, "type": "identifier", "text": "i", "parent": 1157, "children": [], "start_point": {"row": 245, "column": 41}, "end_point": {"row": 245, "column": 42}}, {"id": 1160, "type": "assignment_expression", "text": "range = array_idx_modifiable(array, i + 1)", "parent": 1151, "children": [1161, 1162, 1163], "start_point": {"row": 246, "column": 3}, "end_point": {"row": 246, "column": 45}}, {"id": 1161, "type": "identifier", "text": "range", "parent": 1160, "children": [], "start_point": {"row": 246, "column": 3}, "end_point": {"row": 246, "column": 8}}, {"id": 1162, "type": "=", "text": "=", "parent": 1160, "children": [], "start_point": {"row": 246, "column": 9}, "end_point": {"row": 246, "column": 10}}, {"id": 1163, "type": "call_expression", "text": "array_idx_modifiable(array, i + 1)", "parent": 1160, "children": [1164, 1165], "start_point": {"row": 246, "column": 11}, "end_point": {"row": 246, "column": 45}}, {"id": 1164, "type": "identifier", "text": "array_idx_modifiable", "parent": 1163, "children": [], "start_point": {"row": 246, "column": 11}, "end_point": {"row": 246, "column": 31}}, {"id": 1165, "type": "argument_list", "text": "(array, i + 1)", "parent": 1163, "children": [1166, 1167], "start_point": {"row": 246, "column": 31}, "end_point": {"row": 246, "column": 45}}, {"id": 1166, "type": "identifier", "text": "array", "parent": 1165, "children": [], "start_point": {"row": 246, "column": 32}, "end_point": {"row": 246, "column": 37}}, {"id": 1167, "type": "binary_expression", "text": "i + 1", "parent": 1165, "children": [1168, 1169, 1170], "start_point": {"row": 246, "column": 39}, "end_point": {"row": 246, "column": 44}}, {"id": 1168, "type": "identifier", "text": "i", "parent": 1167, "children": [], "start_point": {"row": 246, "column": 39}, "end_point": {"row": 246, "column": 40}}, {"id": 1169, "type": "+", "text": "+", "parent": 1167, "children": [], "start_point": {"row": 246, "column": 41}, "end_point": {"row": 246, "column": 42}}, {"id": 1170, "type": "number_literal", "text": "1", "parent": 1167, "children": [], "start_point": {"row": 246, "column": 43}, "end_point": {"row": 246, "column": 44}}, {"id": 1171, "type": "update_expression", "text": "count++", "parent": 1151, "children": [1172, 1173], "start_point": {"row": 247, "column": 3}, "end_point": {"row": 247, "column": 10}}, {"id": 1172, "type": "identifier", "text": "count", "parent": 1171, "children": [], "start_point": {"row": 247, "column": 3}, "end_point": {"row": 247, "column": 8}}, {"id": 1173, "type": "++", "text": "++", "parent": 1171, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 10}}, {"id": 1174, "type": "call_expression", "text": "memcpy(new_range, range, array->arr.element_size)", "parent": 1151, "children": [1175, 1176], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 52}}, {"id": 1175, "type": "identifier", "text": "memcpy", "parent": 1174, "children": [], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 9}}, {"id": 1176, "type": "argument_list", "text": "(new_range, range, array->arr.element_size)", "parent": 1174, "children": [1177, 1178, 1179], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 52}}, {"id": 1177, "type": "identifier", "text": "new_range", "parent": 1176, "children": [], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 19}}, {"id": 1178, "type": "identifier", "text": "range", "parent": 1176, "children": [], "start_point": {"row": 249, "column": 21}, "end_point": {"row": 249, "column": 26}}, {"id": 1179, "type": "field_expression", "text": "array->arr.element_size", "parent": 1176, "children": [1180, 1183], "start_point": {"row": 249, "column": 28}, "end_point": {"row": 249, "column": 51}}, {"id": 1180, "type": "field_expression", "text": "array->arr", "parent": 1179, "children": [1181, 1182], "start_point": {"row": 249, "column": 28}, "end_point": {"row": 249, "column": 38}}, {"id": 1181, "type": "identifier", "text": "array", "parent": 1180, "children": [], "start_point": {"row": 249, "column": 28}, "end_point": {"row": 249, "column": 33}}, {"id": 1182, "type": "field_identifier", "text": "arr", "parent": 1180, "children": [], "start_point": {"row": 249, "column": 35}, "end_point": {"row": 249, "column": 38}}, {"id": 1183, "type": "field_identifier", "text": "element_size", "parent": 1179, "children": [], "start_point": {"row": 249, "column": 39}, "end_point": {"row": 249, "column": 51}}, {"id": 1184, "type": "assignment_expression", "text": "new_range->seq1 = uid1", "parent": 1151, "children": [1185, 1188, 1189], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 25}}, {"id": 1185, "type": "field_expression", "text": "new_range->seq1", "parent": 1184, "children": [1186, 1187], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 18}}, {"id": 1186, "type": "identifier", "text": "new_range", "parent": 1185, "children": [], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 12}}, {"id": 1187, "type": "field_identifier", "text": "seq1", "parent": 1185, "children": [], "start_point": {"row": 250, "column": 14}, "end_point": {"row": 250, "column": 18}}, {"id": 1188, "type": "=", "text": "=", "parent": 1184, "children": [], "start_point": {"row": 250, "column": 19}, "end_point": {"row": 250, "column": 20}}, {"id": 1189, "type": "identifier", "text": "uid1", "parent": 1184, "children": [], "start_point": {"row": 250, "column": 21}, "end_point": {"row": 250, "column": 25}}, {"id": 1190, "type": "assignment_expression", "text": "new_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1)", "parent": 1151, "children": [1191, 1194, 1195], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 252, "column": 26}}, {"id": 1191, "type": "field_expression", "text": "new_range->seq2", "parent": 1190, "children": [1192, 1193], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 18}}, {"id": 1192, "type": "identifier", "text": "new_range", "parent": 1191, "children": [], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 12}}, {"id": 1193, "type": "field_identifier", "text": "seq2", "parent": 1191, "children": [], "start_point": {"row": 251, "column": 14}, "end_point": {"row": 251, "column": 18}}, {"id": 1194, "type": "=", "text": "=", "parent": 1190, "children": [], "start_point": {"row": 251, "column": 19}, "end_point": {"row": 251, "column": 20}}, {"id": 1195, "type": "call_expression", "text": "get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1)", "parent": 1190, "children": [1196, 1197], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 252, "column": 26}}, {"id": 1196, "type": "identifier", "text": "get_nonexpunged_uid2", "parent": 1195, "children": [], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 41}}, {"id": 1197, "type": "argument_list", "text": "(t, uid1,\n\t\t\t\t\t\t\t range->seq1)", "parent": 1195, "children": [1198, 1199, 1200], "start_point": {"row": 251, "column": 41}, "end_point": {"row": 252, "column": 26}}, {"id": 1198, "type": "identifier", "text": "t", "parent": 1197, "children": [], "start_point": {"row": 251, "column": 42}, "end_point": {"row": 251, "column": 43}}, {"id": 1199, "type": "identifier", "text": "uid1", "parent": 1197, "children": [], "start_point": {"row": 251, "column": 45}, "end_point": {"row": 251, "column": 49}}, {"id": 1200, "type": "field_expression", "text": "range->seq1", "parent": 1197, "children": [1201, 1202], "start_point": {"row": 252, "column": 14}, "end_point": {"row": 252, "column": 25}}, {"id": 1201, "type": "identifier", "text": "range", "parent": 1200, "children": [], "start_point": {"row": 252, "column": 14}, "end_point": {"row": 252, "column": 19}}, {"id": 1202, "type": "field_identifier", "text": "seq1", "parent": 1200, "children": [], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 25}}, {"id": 1203, "type": "call_expression", "text": "i_assert(new_range->seq2 < uid2)", "parent": 1151, "children": [1204, 1205], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 35}}, {"id": 1204, "type": "identifier", "text": "i_assert", "parent": 1203, "children": [], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 11}}, {"id": 1205, "type": "argument_list", "text": "(new_range->seq2 < uid2)", "parent": 1203, "children": [1206], "start_point": {"row": 253, "column": 11}, "end_point": {"row": 253, "column": 35}}, {"id": 1206, "type": "binary_expression", "text": "new_range->seq2 < uid2", "parent": 1205, "children": [1207, 1210, 1211], "start_point": {"row": 253, "column": 12}, "end_point": {"row": 253, "column": 34}}, {"id": 1207, "type": "field_expression", "text": "new_range->seq2", "parent": 1206, "children": [1208, 1209], "start_point": {"row": 253, "column": 12}, "end_point": {"row": 253, "column": 27}}, {"id": 1208, "type": "identifier", "text": "new_range", "parent": 1207, "children": [], "start_point": {"row": 253, "column": 12}, "end_point": {"row": 253, "column": 21}}, {"id": 1209, "type": "field_identifier", "text": "seq2", "parent": 1207, "children": [], "start_point": {"row": 253, "column": 23}, "end_point": {"row": 253, "column": 27}}, {"id": 1210, "type": "<", "text": "<", "parent": 1206, "children": [], "start_point": {"row": 253, "column": 28}, "end_point": {"row": 253, "column": 29}}, {"id": 1211, "type": "identifier", "text": "uid2", "parent": 1206, "children": [], "start_point": {"row": 253, "column": 30}, "end_point": {"row": 253, "column": 34}}, {"id": 1212, "type": "assignment_expression", "text": "range->seq1 += new_range->seq2 - new_range->seq1 + 1", "parent": 1151, "children": [1213, 1216, 1217], "start_point": {"row": 256, "column": 3}, "end_point": {"row": 256, "column": 55}}, {"id": 1213, "type": "field_expression", "text": "range->seq1", "parent": 1212, "children": [1214, 1215], "start_point": {"row": 256, "column": 3}, "end_point": {"row": 256, "column": 14}}, {"id": 1214, "type": "identifier", "text": "range", "parent": 1213, "children": [], "start_point": {"row": 256, "column": 3}, "end_point": {"row": 256, "column": 8}}, {"id": 1215, "type": "field_identifier", "text": "seq1", "parent": 1213, "children": [], "start_point": {"row": 256, "column": 10}, "end_point": {"row": 256, "column": 14}}, {"id": 1216, "type": "+=", "text": "+=", "parent": 1212, "children": [], "start_point": {"row": 256, "column": 15}, "end_point": {"row": 256, "column": 17}}, {"id": 1217, "type": "binary_expression", "text": "new_range->seq2 - new_range->seq1 + 1", "parent": 1212, "children": [1218, 1226, 1227], "start_point": {"row": 256, "column": 18}, "end_point": {"row": 256, "column": 55}}, {"id": 1218, "type": "binary_expression", "text": "new_range->seq2 - new_range->seq1", "parent": 1217, "children": [1219, 1222, 1223], "start_point": {"row": 256, "column": 18}, "end_point": {"row": 256, "column": 51}}, {"id": 1219, "type": "field_expression", "text": "new_range->seq2", "parent": 1218, "children": [1220, 1221], "start_point": {"row": 256, "column": 18}, "end_point": {"row": 256, "column": 33}}, {"id": 1220, "type": "identifier", "text": "new_range", "parent": 1219, "children": [], "start_point": {"row": 256, "column": 18}, "end_point": {"row": 256, "column": 27}}, {"id": 1221, "type": "field_identifier", "text": "seq2", "parent": 1219, "children": [], "start_point": {"row": 256, "column": 29}, "end_point": {"row": 256, "column": 33}}, {"id": 1222, "type": "-", "text": "-", "parent": 1218, "children": [], "start_point": {"row": 256, "column": 34}, "end_point": {"row": 256, "column": 35}}, {"id": 1223, "type": "field_expression", "text": "new_range->seq1", "parent": 1218, "children": [1224, 1225], "start_point": {"row": 256, "column": 36}, "end_point": {"row": 256, "column": 51}}, {"id": 1224, "type": "identifier", "text": "new_range", "parent": 1223, "children": [], "start_point": {"row": 256, "column": 36}, "end_point": {"row": 256, "column": 45}}, {"id": 1225, "type": "field_identifier", "text": "seq1", "parent": 1223, "children": [], "start_point": {"row": 256, "column": 47}, "end_point": {"row": 256, "column": 51}}, {"id": 1226, "type": "+", "text": "+", "parent": 1217, "children": [], "start_point": {"row": 256, "column": 52}, "end_point": {"row": 256, "column": 53}}, {"id": 1227, "type": "number_literal", "text": "1", "parent": 1217, "children": [], "start_point": {"row": 256, "column": 54}, "end_point": {"row": 256, "column": 55}}, {"id": 1228, "type": "assignment_expression", "text": "prev_uid = new_range->seq2", "parent": 1151, "children": [1229, 1230, 1231], "start_point": {"row": 257, "column": 3}, "end_point": {"row": 257, "column": 29}}, {"id": 1229, "type": "identifier", "text": "prev_uid", "parent": 1228, "children": [], "start_point": {"row": 257, "column": 3}, "end_point": {"row": 257, "column": 11}}, {"id": 1230, "type": "=", "text": "=", "parent": 1228, "children": [], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 13}}, {"id": 1231, "type": "field_expression", "text": "new_range->seq2", "parent": 1228, "children": [1232, 1233], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 29}}, {"id": 1232, "type": "identifier", "text": "new_range", "parent": 1231, "children": [], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 23}}, {"id": 1233, "type": "field_identifier", "text": "seq2", "parent": 1231, "children": [], "start_point": {"row": 257, "column": 25}, "end_point": {"row": 257, "column": 29}}, {"id": 1234, "type": "function_definition", "text": "static void keyword_updates_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_index_transaction_keyword_update *update;\n\n\tif (!array_is_created(&t->keyword_updates))\n\t\treturn;\n\n\tarray_foreach_modifiable(&t->keyword_updates, update) {\n\t\tmail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n\t\tmail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n\t}\n}", "parent": null, "children": [1235, 1236], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 273, "column": 1}}, {"id": 1235, "type": "primitive_type", "text": "void", "parent": 1234, "children": [], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 11}}, {"id": 1236, "type": "function_declarator", "text": "keyword_updates_convert_to_uids(struct mail_index_transaction *t)", "parent": 1234, "children": [1237, 1238], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 77}}, {"id": 1237, "type": "identifier", "text": "keyword_updates_convert_to_uids", "parent": 1236, "children": [], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 43}}, {"id": 1238, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 1236, "children": [1239], "start_point": {"row": 262, "column": 43}, "end_point": {"row": 262, "column": 77}}, {"id": 1239, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1238, "children": [1240, 1243], "start_point": {"row": 262, "column": 44}, "end_point": {"row": 262, "column": 76}}, {"id": 1240, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1239, "children": [1241, 1242], "start_point": {"row": 262, "column": 44}, "end_point": {"row": 262, "column": 73}}, {"id": 1241, "type": "struct", "text": "struct", "parent": 1240, "children": [], "start_point": {"row": 262, "column": 44}, "end_point": {"row": 262, "column": 50}}, {"id": 1242, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1240, "children": [], "start_point": {"row": 262, "column": 51}, "end_point": {"row": 262, "column": 73}}, {"id": 1243, "type": "pointer_declarator", "text": "*t", "parent": 1239, "children": [1244, 1245], "start_point": {"row": 262, "column": 74}, "end_point": {"row": 262, "column": 76}}, {"id": 1244, "type": "*", "text": "*", "parent": 1243, "children": [], "start_point": {"row": 262, "column": 74}, "end_point": {"row": 262, "column": 75}}, {"id": 1245, "type": "identifier", "text": "t", "parent": 1243, "children": [], "start_point": {"row": 262, "column": 75}, "end_point": {"row": 262, "column": 76}}, {"id": 1246, "type": "declaration", "text": "struct mail_index_transaction_keyword_update *update;", "parent": 1234, "children": [1247, 1250], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 61}}, {"id": 1247, "type": "struct_specifier", "text": "struct mail_index_transaction_keyword_update", "parent": 1246, "children": [1248, 1249], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 52}}, {"id": 1248, "type": "struct", "text": "struct", "parent": 1247, "children": [], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 14}}, {"id": 1249, "type": "type_identifier", "text": "mail_index_transaction_keyword_update", "parent": 1247, "children": [], "start_point": {"row": 264, "column": 15}, "end_point": {"row": 264, "column": 52}}, {"id": 1250, "type": "pointer_declarator", "text": "*update", "parent": 1246, "children": [1251, 1252], "start_point": {"row": 264, "column": 53}, "end_point": {"row": 264, "column": 60}}, {"id": 1251, "type": "*", "text": "*", "parent": 1250, "children": [], "start_point": {"row": 264, "column": 53}, "end_point": {"row": 264, "column": 54}}, {"id": 1252, "type": "identifier", "text": "update", "parent": 1250, "children": [], "start_point": {"row": 264, "column": 54}, "end_point": {"row": 264, "column": 60}}, {"id": 1253, "type": "if_statement", "text": "if (!array_is_created(&t->keyword_updates))\n\t\treturn;", "parent": 1234, "children": [1254, 1264], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 267, "column": 9}}, {"id": 1254, "type": "parenthesized_expression", "text": "(!array_is_created(&t->keyword_updates))", "parent": 1253, "children": [1255], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 44}}, {"id": 1255, "type": "unary_expression", "text": "!array_is_created(&t->keyword_updates)", "parent": 1254, "children": [1256, 1257], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 43}}, {"id": 1256, "type": "!", "text": "!", "parent": 1255, "children": [], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 6}}, {"id": 1257, "type": "call_expression", "text": "array_is_created(&t->keyword_updates)", "parent": 1255, "children": [1258, 1259], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 43}}, {"id": 1258, "type": "identifier", "text": "array_is_created", "parent": 1257, "children": [], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 22}}, {"id": 1259, "type": "argument_list", "text": "(&t->keyword_updates)", "parent": 1257, "children": [1260], "start_point": {"row": 266, "column": 22}, "end_point": {"row": 266, "column": 43}}, {"id": 1260, "type": "pointer_expression", "text": "&t->keyword_updates", "parent": 1259, "children": [1261], "start_point": {"row": 266, "column": 23}, "end_point": {"row": 266, "column": 42}}, {"id": 1261, "type": "field_expression", "text": "t->keyword_updates", "parent": 1260, "children": [1262, 1263], "start_point": {"row": 266, "column": 24}, "end_point": {"row": 266, "column": 42}}, {"id": 1262, "type": "identifier", "text": "t", "parent": 1261, "children": [], "start_point": {"row": 266, "column": 24}, "end_point": {"row": 266, "column": 25}}, {"id": 1263, "type": "field_identifier", "text": "keyword_updates", "parent": 1261, "children": [], "start_point": {"row": 266, "column": 27}, "end_point": {"row": 266, "column": 42}}, {"id": 1264, "type": "return_statement", "text": "return;", "parent": 1253, "children": [], "start_point": {"row": 267, "column": 2}, "end_point": {"row": 267, "column": 9}}, {"id": 1265, "type": "call_expression", "text": "array_foreach_modifiable(&t->keyword_updates, update)", "parent": 1234, "children": [1266, 1267], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 54}}, {"id": 1266, "type": "identifier", "text": "array_foreach_modifiable", "parent": 1265, "children": [], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 25}}, {"id": 1267, "type": "argument_list", "text": "(&t->keyword_updates, update)", "parent": 1265, "children": [1268, 1272], "start_point": {"row": 269, "column": 25}, "end_point": {"row": 269, "column": 54}}, {"id": 1268, "type": "pointer_expression", "text": "&t->keyword_updates", "parent": 1267, "children": [1269], "start_point": {"row": 269, "column": 26}, "end_point": {"row": 269, "column": 45}}, {"id": 1269, "type": "field_expression", "text": "t->keyword_updates", "parent": 1268, "children": [1270, 1271], "start_point": {"row": 269, "column": 27}, "end_point": {"row": 269, "column": 45}}, {"id": 1270, "type": "identifier", "text": "t", "parent": 1269, "children": [], "start_point": {"row": 269, "column": 27}, "end_point": {"row": 269, "column": 28}}, {"id": 1271, "type": "field_identifier", "text": "keyword_updates", "parent": 1269, "children": [], "start_point": {"row": 269, "column": 30}, "end_point": {"row": 269, "column": 45}}, {"id": 1272, "type": "identifier", "text": "update", "parent": 1267, "children": [], "start_point": {"row": 269, "column": 47}, "end_point": {"row": 269, "column": 53}}, {"id": 1273, "type": "call_expression", "text": "mail_index_transaction_seq_range_to_uid(t, &update->add_seq)", "parent": 1234, "children": [1274, 1275], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 62}}, {"id": 1274, "type": "identifier", "text": "mail_index_transaction_seq_range_to_uid", "parent": 1273, "children": [], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 41}}, {"id": 1275, "type": "argument_list", "text": "(t, &update->add_seq)", "parent": 1273, "children": [1276, 1277], "start_point": {"row": 270, "column": 41}, "end_point": {"row": 270, "column": 62}}, {"id": 1276, "type": "identifier", "text": "t", "parent": 1275, "children": [], "start_point": {"row": 270, "column": 42}, "end_point": {"row": 270, "column": 43}}, {"id": 1277, "type": "pointer_expression", "text": "&update->add_seq", "parent": 1275, "children": [1278], "start_point": {"row": 270, "column": 45}, "end_point": {"row": 270, "column": 61}}, {"id": 1278, "type": "field_expression", "text": "update->add_seq", "parent": 1277, "children": [1279, 1280], "start_point": {"row": 270, "column": 46}, "end_point": {"row": 270, "column": 61}}, {"id": 1279, "type": "identifier", "text": "update", "parent": 1278, "children": [], "start_point": {"row": 270, "column": 46}, "end_point": {"row": 270, "column": 52}}, {"id": 1280, "type": "field_identifier", "text": "add_seq", "parent": 1278, "children": [], "start_point": {"row": 270, "column": 54}, "end_point": {"row": 270, "column": 61}}, {"id": 1281, "type": "call_expression", "text": "mail_index_transaction_seq_range_to_uid(t, &update->remove_seq)", "parent": 1234, "children": [1282, 1283], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 65}}, {"id": 1282, "type": "identifier", "text": "mail_index_transaction_seq_range_to_uid", "parent": 1281, "children": [], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 41}}, {"id": 1283, "type": "argument_list", "text": "(t, &update->remove_seq)", "parent": 1281, "children": [1284, 1285], "start_point": {"row": 271, "column": 41}, "end_point": {"row": 271, "column": 65}}, {"id": 1284, "type": "identifier", "text": "t", "parent": 1283, "children": [], "start_point": {"row": 271, "column": 42}, "end_point": {"row": 271, "column": 43}}, {"id": 1285, "type": "pointer_expression", "text": "&update->remove_seq", "parent": 1283, "children": [1286], "start_point": {"row": 271, "column": 45}, "end_point": {"row": 271, "column": 64}}, {"id": 1286, "type": "field_expression", "text": "update->remove_seq", "parent": 1285, "children": [1287, 1288], "start_point": {"row": 271, "column": 46}, "end_point": {"row": 271, "column": 64}}, {"id": 1287, "type": "identifier", "text": "update", "parent": 1286, "children": [], "start_point": {"row": 271, "column": 46}, "end_point": {"row": 271, "column": 52}}, {"id": 1288, "type": "field_identifier", "text": "remove_seq", "parent": 1286, "children": [], "start_point": {"row": 271, "column": 54}, "end_point": {"row": 271, "column": 64}}, {"id": 1289, "type": "function_definition", "text": "static void expunges_convert_to_uids(struct mail_index_transaction *t)\n{\n\tstruct mail_transaction_expunge_guid *expunges;\n\tunsigned int src, dest, count;\n\n\tif (!array_is_created(&t->expunges))\n\t\treturn;\n\n\tmail_index_transaction_sort_expunges(t);\n\n\texpunges = array_get_modifiable(&t->expunges, &count);\n\tif (count == 0)\n\t\treturn;\n\n\t/* convert uids and drop duplicates */\n\texpunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);\n\tfor (src = dest = 1; src < count; src++) {\n\t\texpunges[dest].uid =\n\t\t\tmail_index_transaction_get_uid(t, expunges[src].uid);\n\t\tif (expunges[dest-1].uid != expunges[dest].uid) {\n\t\t\tif (dest != src) {\n\t\t\t\tmemcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128));\n\t\t\t}\n\t\t\tdest++;\n\t\t}\n\t}\n\tarray_delete(&t->expunges, dest, count-dest);\n}", "parent": null, "children": [1290, 1291], "start_point": {"row": 275, "column": 0}, "end_point": {"row": 303, "column": 1}}, {"id": 1290, "type": "primitive_type", "text": "void", "parent": 1289, "children": [], "start_point": {"row": 275, "column": 7}, "end_point": {"row": 275, "column": 11}}, {"id": 1291, "type": "function_declarator", "text": "expunges_convert_to_uids(struct mail_index_transaction *t)", "parent": 1289, "children": [1292, 1293], "start_point": {"row": 275, "column": 12}, "end_point": {"row": 275, "column": 70}}, {"id": 1292, "type": "identifier", "text": "expunges_convert_to_uids", "parent": 1291, "children": [], "start_point": {"row": 275, "column": 12}, "end_point": {"row": 275, "column": 36}}, {"id": 1293, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 1291, "children": [1294], "start_point": {"row": 275, "column": 36}, "end_point": {"row": 275, "column": 70}}, {"id": 1294, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1293, "children": [1295, 1298], "start_point": {"row": 275, "column": 37}, "end_point": {"row": 275, "column": 69}}, {"id": 1295, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1294, "children": [1296, 1297], "start_point": {"row": 275, "column": 37}, "end_point": {"row": 275, "column": 66}}, {"id": 1296, "type": "struct", "text": "struct", "parent": 1295, "children": [], "start_point": {"row": 275, "column": 37}, "end_point": {"row": 275, "column": 43}}, {"id": 1297, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1295, "children": [], "start_point": {"row": 275, "column": 44}, "end_point": {"row": 275, "column": 66}}, {"id": 1298, "type": "pointer_declarator", "text": "*t", "parent": 1294, "children": [1299, 1300], "start_point": {"row": 275, "column": 67}, "end_point": {"row": 275, "column": 69}}, {"id": 1299, "type": "*", "text": "*", "parent": 1298, "children": [], "start_point": {"row": 275, "column": 67}, "end_point": {"row": 275, "column": 68}}, {"id": 1300, "type": "identifier", "text": "t", "parent": 1298, "children": [], "start_point": {"row": 275, "column": 68}, "end_point": {"row": 275, "column": 69}}, {"id": 1301, "type": "declaration", "text": "struct mail_transaction_expunge_guid *expunges;", "parent": 1289, "children": [1302, 1305], "start_point": {"row": 277, "column": 1}, "end_point": {"row": 277, "column": 48}}, {"id": 1302, "type": "struct_specifier", "text": "struct mail_transaction_expunge_guid", "parent": 1301, "children": [1303, 1304], "start_point": {"row": 277, "column": 1}, "end_point": {"row": 277, "column": 37}}, {"id": 1303, "type": "struct", "text": "struct", "parent": 1302, "children": [], "start_point": {"row": 277, "column": 1}, "end_point": {"row": 277, "column": 7}}, {"id": 1304, "type": "type_identifier", "text": "mail_transaction_expunge_guid", "parent": 1302, "children": [], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 37}}, {"id": 1305, "type": "pointer_declarator", "text": "*expunges", "parent": 1301, "children": [1306, 1307], "start_point": {"row": 277, "column": 38}, "end_point": {"row": 277, "column": 47}}, {"id": 1306, "type": "*", "text": "*", "parent": 1305, "children": [], "start_point": {"row": 277, "column": 38}, "end_point": {"row": 277, "column": 39}}, {"id": 1307, "type": "identifier", "text": "expunges", "parent": 1305, "children": [], "start_point": {"row": 277, "column": 39}, "end_point": {"row": 277, "column": 47}}, {"id": 1308, "type": "declaration", "text": "unsigned int src, dest, count;", "parent": 1289, "children": [1309, 1312, 1313, 1314], "start_point": {"row": 278, "column": 1}, "end_point": {"row": 278, "column": 31}}, {"id": 1309, "type": "sized_type_specifier", "text": "unsigned int", "parent": 1308, "children": [1310, 1311], "start_point": {"row": 278, "column": 1}, "end_point": {"row": 278, "column": 13}}, {"id": 1310, "type": "unsigned", "text": "unsigned", "parent": 1309, "children": [], "start_point": {"row": 278, "column": 1}, "end_point": {"row": 278, "column": 9}}, {"id": 1311, "type": "primitive_type", "text": "int", "parent": 1309, "children": [], "start_point": {"row": 278, "column": 10}, "end_point": {"row": 278, "column": 13}}, {"id": 1312, "type": "identifier", "text": "src", "parent": 1308, "children": [], "start_point": {"row": 278, "column": 14}, "end_point": {"row": 278, "column": 17}}, {"id": 1313, "type": "identifier", "text": "dest", "parent": 1308, "children": [], "start_point": {"row": 278, "column": 19}, "end_point": {"row": 278, "column": 23}}, {"id": 1314, "type": "identifier", "text": "count", "parent": 1308, "children": [], "start_point": {"row": 278, "column": 25}, "end_point": {"row": 278, "column": 30}}, {"id": 1315, "type": "if_statement", "text": "if (!array_is_created(&t->expunges))\n\t\treturn;", "parent": 1289, "children": [1316, 1326], "start_point": {"row": 280, "column": 1}, "end_point": {"row": 281, "column": 9}}, {"id": 1316, "type": "parenthesized_expression", "text": "(!array_is_created(&t->expunges))", "parent": 1315, "children": [1317], "start_point": {"row": 280, "column": 4}, "end_point": {"row": 280, "column": 37}}, {"id": 1317, "type": "unary_expression", "text": "!array_is_created(&t->expunges)", "parent": 1316, "children": [1318, 1319], "start_point": {"row": 280, "column": 5}, "end_point": {"row": 280, "column": 36}}, {"id": 1318, "type": "!", "text": "!", "parent": 1317, "children": [], "start_point": {"row": 280, "column": 5}, "end_point": {"row": 280, "column": 6}}, {"id": 1319, "type": "call_expression", "text": "array_is_created(&t->expunges)", "parent": 1317, "children": [1320, 1321], "start_point": {"row": 280, "column": 6}, "end_point": {"row": 280, "column": 36}}, {"id": 1320, "type": "identifier", "text": "array_is_created", "parent": 1319, "children": [], "start_point": {"row": 280, "column": 6}, "end_point": {"row": 280, "column": 22}}, {"id": 1321, "type": "argument_list", "text": "(&t->expunges)", "parent": 1319, "children": [1322], "start_point": {"row": 280, "column": 22}, "end_point": {"row": 280, "column": 36}}, {"id": 1322, "type": "pointer_expression", "text": "&t->expunges", "parent": 1321, "children": [1323], "start_point": {"row": 280, "column": 23}, "end_point": {"row": 280, "column": 35}}, {"id": 1323, "type": "field_expression", "text": "t->expunges", "parent": 1322, "children": [1324, 1325], "start_point": {"row": 280, "column": 24}, "end_point": {"row": 280, "column": 35}}, {"id": 1324, "type": "identifier", "text": "t", "parent": 1323, "children": [], "start_point": {"row": 280, "column": 24}, "end_point": {"row": 280, "column": 25}}, {"id": 1325, "type": "field_identifier", "text": "expunges", "parent": 1323, "children": [], "start_point": {"row": 280, "column": 27}, "end_point": {"row": 280, "column": 35}}, {"id": 1326, "type": "return_statement", "text": "return;", "parent": 1315, "children": [], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 9}}, {"id": 1327, "type": "call_expression", "text": "mail_index_transaction_sort_expunges(t)", "parent": 1289, "children": [1328, 1329], "start_point": {"row": 283, "column": 1}, "end_point": {"row": 283, "column": 40}}, {"id": 1328, "type": "identifier", "text": "mail_index_transaction_sort_expunges", "parent": 1327, "children": [], "start_point": {"row": 283, "column": 1}, "end_point": {"row": 283, "column": 37}}, {"id": 1329, "type": "argument_list", "text": "(t)", "parent": 1327, "children": [1330], "start_point": {"row": 283, "column": 37}, "end_point": {"row": 283, "column": 40}}, {"id": 1330, "type": "identifier", "text": "t", "parent": 1329, "children": [], "start_point": {"row": 283, "column": 38}, "end_point": {"row": 283, "column": 39}}, {"id": 1331, "type": "assignment_expression", "text": "expunges = array_get_modifiable(&t->expunges, &count)", "parent": 1289, "children": [1332, 1333, 1334], "start_point": {"row": 285, "column": 1}, "end_point": {"row": 285, "column": 54}}, {"id": 1332, "type": "identifier", "text": "expunges", "parent": 1331, "children": [], "start_point": {"row": 285, "column": 1}, "end_point": {"row": 285, "column": 9}}, {"id": 1333, "type": "=", "text": "=", "parent": 1331, "children": [], "start_point": {"row": 285, "column": 10}, "end_point": {"row": 285, "column": 11}}, {"id": 1334, "type": "call_expression", "text": "array_get_modifiable(&t->expunges, &count)", "parent": 1331, "children": [1335, 1336], "start_point": {"row": 285, "column": 12}, "end_point": {"row": 285, "column": 54}}, {"id": 1335, "type": "identifier", "text": "array_get_modifiable", "parent": 1334, "children": [], "start_point": {"row": 285, "column": 12}, "end_point": {"row": 285, "column": 32}}, {"id": 1336, "type": "argument_list", "text": "(&t->expunges, &count)", "parent": 1334, "children": [1337, 1341], "start_point": {"row": 285, "column": 32}, "end_point": {"row": 285, "column": 54}}, {"id": 1337, "type": "pointer_expression", "text": "&t->expunges", "parent": 1336, "children": [1338], "start_point": {"row": 285, "column": 33}, "end_point": {"row": 285, "column": 45}}, {"id": 1338, "type": "field_expression", "text": "t->expunges", "parent": 1337, "children": [1339, 1340], "start_point": {"row": 285, "column": 34}, "end_point": {"row": 285, "column": 45}}, {"id": 1339, "type": "identifier", "text": "t", "parent": 1338, "children": [], "start_point": {"row": 285, "column": 34}, "end_point": {"row": 285, "column": 35}}, {"id": 1340, "type": "field_identifier", "text": "expunges", "parent": 1338, "children": [], "start_point": {"row": 285, "column": 37}, "end_point": {"row": 285, "column": 45}}, {"id": 1341, "type": "pointer_expression", "text": "&count", "parent": 1336, "children": [1342], "start_point": {"row": 285, "column": 47}, "end_point": {"row": 285, "column": 53}}, {"id": 1342, "type": "identifier", "text": "count", "parent": 1341, "children": [], "start_point": {"row": 285, "column": 48}, "end_point": {"row": 285, "column": 53}}, {"id": 1343, "type": "if_statement", "text": "if (count == 0)\n\t\treturn;", "parent": 1289, "children": [1344, 1349], "start_point": {"row": 286, "column": 1}, "end_point": {"row": 287, "column": 9}}, {"id": 1344, "type": "parenthesized_expression", "text": "(count == 0)", "parent": 1343, "children": [1345], "start_point": {"row": 286, "column": 4}, "end_point": {"row": 286, "column": 16}}, {"id": 1345, "type": "binary_expression", "text": "count == 0", "parent": 1344, "children": [1346, 1347, 1348], "start_point": {"row": 286, "column": 5}, "end_point": {"row": 286, "column": 15}}, {"id": 1346, "type": "identifier", "text": "count", "parent": 1345, "children": [], "start_point": {"row": 286, "column": 5}, "end_point": {"row": 286, "column": 10}}, {"id": 1347, "type": "==", "text": "==", "parent": 1345, "children": [], "start_point": {"row": 286, "column": 11}, "end_point": {"row": 286, "column": 13}}, {"id": 1348, "type": "number_literal", "text": "0", "parent": 1345, "children": [], "start_point": {"row": 286, "column": 14}, "end_point": {"row": 286, "column": 15}}, {"id": 1349, "type": "return_statement", "text": "return;", "parent": 1343, "children": [], "start_point": {"row": 287, "column": 2}, "end_point": {"row": 287, "column": 9}}, {"id": 1350, "type": "assignment_expression", "text": "expunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid)", "parent": 1289, "children": [1351, 1356, 1357], "start_point": {"row": 290, "column": 1}, "end_point": {"row": 290, "column": 69}}, {"id": 1351, "type": "field_expression", "text": "expunges[0].uid", "parent": 1350, "children": [1352, 1355], "start_point": {"row": 290, "column": 1}, "end_point": {"row": 290, "column": 16}}, {"id": 1352, "type": "subscript_expression", "text": "expunges[0]", "parent": 1351, "children": [1353, 1354], "start_point": {"row": 290, "column": 1}, "end_point": {"row": 290, "column": 12}}, {"id": 1353, "type": "identifier", "text": "expunges", "parent": 1352, "children": [], "start_point": {"row": 290, "column": 1}, "end_point": {"row": 290, "column": 9}}, {"id": 1354, "type": "number_literal", "text": "0", "parent": 1352, "children": [], "start_point": {"row": 290, "column": 10}, "end_point": {"row": 290, "column": 11}}, {"id": 1355, "type": "field_identifier", "text": "uid", "parent": 1351, "children": [], "start_point": {"row": 290, "column": 13}, "end_point": {"row": 290, "column": 16}}, {"id": 1356, "type": "=", "text": "=", "parent": 1350, "children": [], "start_point": {"row": 290, "column": 17}, "end_point": {"row": 290, "column": 18}}, {"id": 1357, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, expunges[0].uid)", "parent": 1350, "children": [1358, 1359], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 69}}, {"id": 1358, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 1357, "children": [], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 49}}, {"id": 1359, "type": "argument_list", "text": "(t, expunges[0].uid)", "parent": 1357, "children": [1360, 1361], "start_point": {"row": 290, "column": 49}, "end_point": {"row": 290, "column": 69}}, {"id": 1360, "type": "identifier", "text": "t", "parent": 1359, "children": [], "start_point": {"row": 290, "column": 50}, "end_point": {"row": 290, "column": 51}}, {"id": 1361, "type": "field_expression", "text": "expunges[0].uid", "parent": 1359, "children": [1362, 1365], "start_point": {"row": 290, "column": 53}, "end_point": {"row": 290, "column": 68}}, {"id": 1362, "type": "subscript_expression", "text": "expunges[0]", "parent": 1361, "children": [1363, 1364], "start_point": {"row": 290, "column": 53}, "end_point": {"row": 290, "column": 64}}, {"id": 1363, "type": "identifier", "text": "expunges", "parent": 1362, "children": [], "start_point": {"row": 290, "column": 53}, "end_point": {"row": 290, "column": 61}}, {"id": 1364, "type": "number_literal", "text": "0", "parent": 1362, "children": [], "start_point": {"row": 290, "column": 62}, "end_point": {"row": 290, "column": 63}}, {"id": 1365, "type": "field_identifier", "text": "uid", "parent": 1361, "children": [], "start_point": {"row": 290, "column": 65}, "end_point": {"row": 290, "column": 68}}, {"id": 1366, "type": "for_statement", "text": "for (src = dest = 1; src < count; src++) {\n\t\texpunges[dest].uid =\n\t\t\tmail_index_transaction_get_uid(t, expunges[src].uid);\n\t\tif (expunges[dest-1].uid != expunges[dest].uid) {\n\t\t\tif (dest != src) {\n\t\t\t\tmemcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128));\n\t\t\t}\n\t\t\tdest++;\n\t\t}\n\t}", "parent": 1289, "children": [1367, 1374, 1378], "start_point": {"row": 291, "column": 1}, "end_point": {"row": 301, "column": 2}}, {"id": 1367, "type": "assignment_expression", "text": "src = dest = 1", "parent": 1366, "children": [1368, 1369, 1370], "start_point": {"row": 291, "column": 6}, "end_point": {"row": 291, "column": 20}}, {"id": 1368, "type": "identifier", "text": "src", "parent": 1367, "children": [], "start_point": {"row": 291, "column": 6}, "end_point": {"row": 291, "column": 9}}, {"id": 1369, "type": "=", "text": "=", "parent": 1367, "children": [], "start_point": {"row": 291, "column": 10}, "end_point": {"row": 291, "column": 11}}, {"id": 1370, "type": "assignment_expression", "text": "dest = 1", "parent": 1367, "children": [1371, 1372, 1373], "start_point": {"row": 291, "column": 12}, "end_point": {"row": 291, "column": 20}}, {"id": 1371, "type": "identifier", "text": "dest", "parent": 1370, "children": [], "start_point": {"row": 291, "column": 12}, "end_point": {"row": 291, "column": 16}}, {"id": 1372, "type": "=", "text": "=", "parent": 1370, "children": [], "start_point": {"row": 291, "column": 17}, "end_point": {"row": 291, "column": 18}}, {"id": 1373, "type": "number_literal", "text": "1", "parent": 1370, "children": [], "start_point": {"row": 291, "column": 19}, "end_point": {"row": 291, "column": 20}}, {"id": 1374, "type": "binary_expression", "text": "src < count", "parent": 1366, "children": [1375, 1376, 1377], "start_point": {"row": 291, "column": 22}, "end_point": {"row": 291, "column": 33}}, {"id": 1375, "type": "identifier", "text": "src", "parent": 1374, "children": [], "start_point": {"row": 291, "column": 22}, "end_point": {"row": 291, "column": 25}}, {"id": 1376, "type": "<", "text": "<", "parent": 1374, "children": [], "start_point": {"row": 291, "column": 26}, "end_point": {"row": 291, "column": 27}}, {"id": 1377, "type": "identifier", "text": "count", "parent": 1374, "children": [], "start_point": {"row": 291, "column": 28}, "end_point": {"row": 291, "column": 33}}, {"id": 1378, "type": "update_expression", "text": "src++", "parent": 1366, "children": [1379, 1380], "start_point": {"row": 291, "column": 35}, "end_point": {"row": 291, "column": 40}}, {"id": 1379, "type": "identifier", "text": "src", "parent": 1378, "children": [], "start_point": {"row": 291, "column": 35}, "end_point": {"row": 291, "column": 38}}, {"id": 1380, "type": "++", "text": "++", "parent": 1378, "children": [], "start_point": {"row": 291, "column": 38}, "end_point": {"row": 291, "column": 40}}, {"id": 1381, "type": "assignment_expression", "text": "expunges[dest].uid =\n\t\t\tmail_index_transaction_get_uid(t, expunges[src].uid)", "parent": 1366, "children": [1382, 1387, 1388], "start_point": {"row": 292, "column": 2}, "end_point": {"row": 293, "column": 55}}, {"id": 1382, "type": "field_expression", "text": "expunges[dest].uid", "parent": 1381, "children": [1383, 1386], "start_point": {"row": 292, "column": 2}, "end_point": {"row": 292, "column": 20}}, {"id": 1383, "type": "subscript_expression", "text": "expunges[dest]", "parent": 1382, "children": [1384, 1385], "start_point": {"row": 292, "column": 2}, "end_point": {"row": 292, "column": 16}}, {"id": 1384, "type": "identifier", "text": "expunges", "parent": 1383, "children": [], "start_point": {"row": 292, "column": 2}, "end_point": {"row": 292, "column": 10}}, {"id": 1385, "type": "identifier", "text": "dest", "parent": 1383, "children": [], "start_point": {"row": 292, "column": 11}, "end_point": {"row": 292, "column": 15}}, {"id": 1386, "type": "field_identifier", "text": "uid", "parent": 1382, "children": [], "start_point": {"row": 292, "column": 17}, "end_point": {"row": 292, "column": 20}}, {"id": 1387, "type": "=", "text": "=", "parent": 1381, "children": [], "start_point": {"row": 292, "column": 21}, "end_point": {"row": 292, "column": 22}}, {"id": 1388, "type": "call_expression", "text": "mail_index_transaction_get_uid(t, expunges[src].uid)", "parent": 1381, "children": [1389, 1390], "start_point": {"row": 293, "column": 3}, "end_point": {"row": 293, "column": 55}}, {"id": 1389, "type": "identifier", "text": "mail_index_transaction_get_uid", "parent": 1388, "children": [], "start_point": {"row": 293, "column": 3}, "end_point": {"row": 293, "column": 33}}, {"id": 1390, "type": "argument_list", "text": "(t, expunges[src].uid)", "parent": 1388, "children": [1391, 1392], "start_point": {"row": 293, "column": 33}, "end_point": {"row": 293, "column": 55}}, {"id": 1391, "type": "identifier", "text": "t", "parent": 1390, "children": [], "start_point": {"row": 293, "column": 34}, "end_point": {"row": 293, "column": 35}}, {"id": 1392, "type": "field_expression", "text": "expunges[src].uid", "parent": 1390, "children": [1393, 1396], "start_point": {"row": 293, "column": 37}, "end_point": {"row": 293, "column": 54}}, {"id": 1393, "type": "subscript_expression", "text": "expunges[src]", "parent": 1392, "children": [1394, 1395], "start_point": {"row": 293, "column": 37}, "end_point": {"row": 293, "column": 50}}, {"id": 1394, "type": "identifier", "text": "expunges", "parent": 1393, "children": [], "start_point": {"row": 293, "column": 37}, "end_point": {"row": 293, "column": 45}}, {"id": 1395, "type": "identifier", "text": "src", "parent": 1393, "children": [], "start_point": {"row": 293, "column": 46}, "end_point": {"row": 293, "column": 49}}, {"id": 1396, "type": "field_identifier", "text": "uid", "parent": 1392, "children": [], "start_point": {"row": 293, "column": 51}, "end_point": {"row": 293, "column": 54}}, {"id": 1397, "type": "if_statement", "text": "if (expunges[dest-1].uid != expunges[dest].uid) {\n\t\t\tif (dest != src) {\n\t\t\t\tmemcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128));\n\t\t\t}\n\t\t\tdest++;\n\t\t}", "parent": 1366, "children": [1398], "start_point": {"row": 294, "column": 2}, "end_point": {"row": 300, "column": 3}}, {"id": 1398, "type": "parenthesized_expression", "text": "(expunges[dest-1].uid != expunges[dest].uid)", "parent": 1397, "children": [1399], "start_point": {"row": 294, "column": 5}, "end_point": {"row": 294, "column": 49}}, {"id": 1399, "type": "binary_expression", "text": "expunges[dest-1].uid != expunges[dest].uid", "parent": 1398, "children": [1400, 1408, 1409], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 48}}, {"id": 1400, "type": "field_expression", "text": "expunges[dest-1].uid", "parent": 1399, "children": [1401, 1407], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 26}}, {"id": 1401, "type": "subscript_expression", "text": "expunges[dest-1]", "parent": 1400, "children": [1402, 1403], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 22}}, {"id": 1402, "type": "identifier", "text": "expunges", "parent": 1401, "children": [], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 294, "column": 14}}, {"id": 1403, "type": "binary_expression", "text": "dest-1", "parent": 1401, "children": [1404, 1405, 1406], "start_point": {"row": 294, "column": 15}, "end_point": {"row": 294, "column": 21}}, {"id": 1404, "type": "identifier", "text": "dest", "parent": 1403, "children": [], "start_point": {"row": 294, "column": 15}, "end_point": {"row": 294, "column": 19}}, {"id": 1405, "type": "-", "text": "-", "parent": 1403, "children": [], "start_point": {"row": 294, "column": 19}, "end_point": {"row": 294, "column": 20}}, {"id": 1406, "type": "number_literal", "text": "1", "parent": 1403, "children": [], "start_point": {"row": 294, "column": 20}, "end_point": {"row": 294, "column": 21}}, {"id": 1407, "type": "field_identifier", "text": "uid", "parent": 1400, "children": [], "start_point": {"row": 294, "column": 23}, "end_point": {"row": 294, "column": 26}}, {"id": 1408, "type": "!=", "text": "!=", "parent": 1399, "children": [], "start_point": {"row": 294, "column": 27}, "end_point": {"row": 294, "column": 29}}, {"id": 1409, "type": "field_expression", "text": "expunges[dest].uid", "parent": 1399, "children": [1410, 1413], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 48}}, {"id": 1410, "type": "subscript_expression", "text": "expunges[dest]", "parent": 1409, "children": [1411, 1412], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 44}}, {"id": 1411, "type": "identifier", "text": "expunges", "parent": 1410, "children": [], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 38}}, {"id": 1412, "type": "identifier", "text": "dest", "parent": 1410, "children": [], "start_point": {"row": 294, "column": 39}, "end_point": {"row": 294, "column": 43}}, {"id": 1413, "type": "field_identifier", "text": "uid", "parent": 1409, "children": [], "start_point": {"row": 294, "column": 45}, "end_point": {"row": 294, "column": 48}}, {"id": 1414, "type": "if_statement", "text": "if (dest != src) {\n\t\t\t\tmemcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128));\n\t\t\t}", "parent": 1397, "children": [1415], "start_point": {"row": 295, "column": 3}, "end_point": {"row": 298, "column": 4}}, {"id": 1415, "type": "parenthesized_expression", "text": "(dest != src)", "parent": 1414, "children": [1416], "start_point": {"row": 295, "column": 6}, "end_point": {"row": 295, "column": 19}}, {"id": 1416, "type": "binary_expression", "text": "dest != src", "parent": 1415, "children": [1417, 1418, 1419], "start_point": {"row": 295, "column": 7}, "end_point": {"row": 295, "column": 18}}, {"id": 1417, "type": "identifier", "text": "dest", "parent": 1416, "children": [], "start_point": {"row": 295, "column": 7}, "end_point": {"row": 295, "column": 11}}, {"id": 1418, "type": "!=", "text": "!=", "parent": 1416, "children": [], "start_point": {"row": 295, "column": 12}, "end_point": {"row": 295, "column": 14}}, {"id": 1419, "type": "identifier", "text": "src", "parent": 1416, "children": [], "start_point": {"row": 295, "column": 15}, "end_point": {"row": 295, "column": 18}}, {"id": 1420, "type": "call_expression", "text": "memcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128))", "parent": 1414, "children": [1421, 1422], "start_point": {"row": 296, "column": 4}, "end_point": {"row": 297, "column": 43}}, {"id": 1421, "type": "identifier", "text": "memcpy", "parent": 1420, "children": [], "start_point": {"row": 296, "column": 4}, "end_point": {"row": 296, "column": 10}}, {"id": 1422, "type": "argument_list", "text": "(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128))", "parent": 1420, "children": [1423, 1428, 1433], "start_point": {"row": 296, "column": 10}, "end_point": {"row": 297, "column": 43}}, {"id": 1423, "type": "field_expression", "text": "expunges[dest].guid_128", "parent": 1422, "children": [1424, 1427], "start_point": {"row": 296, "column": 11}, "end_point": {"row": 296, "column": 34}}, {"id": 1424, "type": "subscript_expression", "text": "expunges[dest]", "parent": 1423, "children": [1425, 1426], "start_point": {"row": 296, "column": 11}, "end_point": {"row": 296, "column": 25}}, {"id": 1425, "type": "identifier", "text": "expunges", "parent": 1424, "children": [], "start_point": {"row": 296, "column": 11}, "end_point": {"row": 296, "column": 19}}, {"id": 1426, "type": "identifier", "text": "dest", "parent": 1424, "children": [], "start_point": {"row": 296, "column": 20}, "end_point": {"row": 296, "column": 24}}, {"id": 1427, "type": "field_identifier", "text": "guid_128", "parent": 1423, "children": [], "start_point": {"row": 296, "column": 26}, "end_point": {"row": 296, "column": 34}}, {"id": 1428, "type": "field_expression", "text": "expunges[src].guid_128", "parent": 1422, "children": [1429, 1432], "start_point": {"row": 296, "column": 36}, "end_point": {"row": 296, "column": 58}}, {"id": 1429, "type": "subscript_expression", "text": "expunges[src]", "parent": 1428, "children": [1430, 1431], "start_point": {"row": 296, "column": 36}, "end_point": {"row": 296, "column": 49}}, {"id": 1430, "type": "identifier", "text": "expunges", "parent": 1429, "children": [], "start_point": {"row": 296, "column": 36}, "end_point": {"row": 296, "column": 44}}, {"id": 1431, "type": "identifier", "text": "src", "parent": 1429, "children": [], "start_point": {"row": 296, "column": 45}, "end_point": {"row": 296, "column": 48}}, {"id": 1432, "type": "field_identifier", "text": "guid_128", "parent": 1428, "children": [], "start_point": {"row": 296, "column": 50}, "end_point": {"row": 296, "column": 58}}, {"id": 1433, "type": "sizeof_expression", "text": "sizeof(expunges[dest].guid_128)", "parent": 1422, "children": [1434], "start_point": {"row": 297, "column": 11}, "end_point": {"row": 297, "column": 42}}, {"id": 1434, "type": "parenthesized_expression", "text": "(expunges[dest].guid_128)", "parent": 1433, "children": [1435], "start_point": {"row": 297, "column": 17}, "end_point": {"row": 297, "column": 42}}, {"id": 1435, "type": "field_expression", "text": "expunges[dest].guid_128", "parent": 1434, "children": [1436, 1439], "start_point": {"row": 297, "column": 18}, "end_point": {"row": 297, "column": 41}}, {"id": 1436, "type": "subscript_expression", "text": "expunges[dest]", "parent": 1435, "children": [1437, 1438], "start_point": {"row": 297, "column": 18}, "end_point": {"row": 297, "column": 32}}, {"id": 1437, "type": "identifier", "text": "expunges", "parent": 1436, "children": [], "start_point": {"row": 297, "column": 18}, "end_point": {"row": 297, "column": 26}}, {"id": 1438, "type": "identifier", "text": "dest", "parent": 1436, "children": [], "start_point": {"row": 297, "column": 27}, "end_point": {"row": 297, "column": 31}}, {"id": 1439, "type": "field_identifier", "text": "guid_128", "parent": 1435, "children": [], "start_point": {"row": 297, "column": 33}, "end_point": {"row": 297, "column": 41}}, {"id": 1440, "type": "update_expression", "text": "dest++", "parent": 1397, "children": [1441, 1442], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 9}}, {"id": 1441, "type": "identifier", "text": "dest", "parent": 1440, "children": [], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 7}}, {"id": 1442, "type": "++", "text": "++", "parent": 1440, "children": [], "start_point": {"row": 299, "column": 7}, "end_point": {"row": 299, "column": 9}}, {"id": 1443, "type": "call_expression", "text": "array_delete(&t->expunges, dest, count-dest)", "parent": 1289, "children": [1444, 1445], "start_point": {"row": 302, "column": 1}, "end_point": {"row": 302, "column": 45}}, {"id": 1444, "type": "identifier", "text": "array_delete", "parent": 1443, "children": [], "start_point": {"row": 302, "column": 1}, "end_point": {"row": 302, "column": 13}}, {"id": 1445, "type": "argument_list", "text": "(&t->expunges, dest, count-dest)", "parent": 1443, "children": [1446, 1450, 1451], "start_point": {"row": 302, "column": 13}, "end_point": {"row": 302, "column": 45}}, {"id": 1446, "type": "pointer_expression", "text": "&t->expunges", "parent": 1445, "children": [1447], "start_point": {"row": 302, "column": 14}, "end_point": {"row": 302, "column": 26}}, {"id": 1447, "type": "field_expression", "text": "t->expunges", "parent": 1446, "children": [1448, 1449], "start_point": {"row": 302, "column": 15}, "end_point": {"row": 302, "column": 26}}, {"id": 1448, "type": "identifier", "text": "t", "parent": 1447, "children": [], "start_point": {"row": 302, "column": 15}, "end_point": {"row": 302, "column": 16}}, {"id": 1449, "type": "field_identifier", "text": "expunges", "parent": 1447, "children": [], "start_point": {"row": 302, "column": 18}, "end_point": {"row": 302, "column": 26}}, {"id": 1450, "type": "identifier", "text": "dest", "parent": 1445, "children": [], "start_point": {"row": 302, "column": 28}, "end_point": {"row": 302, "column": 32}}, {"id": 1451, "type": "binary_expression", "text": "count-dest", "parent": 1445, "children": [1452, 1453, 1454], "start_point": {"row": 302, "column": 34}, "end_point": {"row": 302, "column": 44}}, {"id": 1452, "type": "identifier", "text": "count", "parent": 1451, "children": [], "start_point": {"row": 302, "column": 34}, "end_point": {"row": 302, "column": 39}}, {"id": 1453, "type": "-", "text": "-", "parent": 1451, "children": [], "start_point": {"row": 302, "column": 39}, "end_point": {"row": 302, "column": 40}}, {"id": 1454, "type": "identifier", "text": "dest", "parent": 1451, "children": [], "start_point": {"row": 302, "column": 40}, "end_point": {"row": 302, "column": 44}}, {"id": 1455, "type": "function_definition", "text": "static void\nmail_index_transaction_convert_to_uids(struct mail_index_transaction *t)\n{\n\tARRAY_TYPE(seq_array) *update;\n\n\tif (array_is_created(&t->ext_rec_updates)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_updates, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}\n\tif (array_is_created(&t->ext_rec_atomics)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_atomics, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}\n\n keyword_updates_convert_to_uids(t);\n\texpunges_convert_to_uids(t);\n\tmail_index_convert_to_uids(t, (void *)&t->modseq_updates);\n\tmail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);\n}", "parent": null, "children": [1456, 1457], "start_point": {"row": 305, "column": 0}, "end_point": {"row": 323, "column": 1}}, {"id": 1456, "type": "primitive_type", "text": "void", "parent": 1455, "children": [], "start_point": {"row": 305, "column": 7}, "end_point": {"row": 305, "column": 11}}, {"id": 1457, "type": "function_declarator", "text": "mail_index_transaction_convert_to_uids(struct mail_index_transaction *t)", "parent": 1455, "children": [1458, 1459], "start_point": {"row": 306, "column": 0}, "end_point": {"row": 306, "column": 72}}, {"id": 1458, "type": "identifier", "text": "mail_index_transaction_convert_to_uids", "parent": 1457, "children": [], "start_point": {"row": 306, "column": 0}, "end_point": {"row": 306, "column": 38}}, {"id": 1459, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 1457, "children": [1460], "start_point": {"row": 306, "column": 38}, "end_point": {"row": 306, "column": 72}}, {"id": 1460, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1459, "children": [1461, 1464], "start_point": {"row": 306, "column": 39}, "end_point": {"row": 306, "column": 71}}, {"id": 1461, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1460, "children": [1462, 1463], "start_point": {"row": 306, "column": 39}, "end_point": {"row": 306, "column": 68}}, {"id": 1462, "type": "struct", "text": "struct", "parent": 1461, "children": [], "start_point": {"row": 306, "column": 39}, "end_point": {"row": 306, "column": 45}}, {"id": 1463, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1461, "children": [], "start_point": {"row": 306, "column": 46}, "end_point": {"row": 306, "column": 68}}, {"id": 1464, "type": "pointer_declarator", "text": "*t", "parent": 1460, "children": [1465, 1466], "start_point": {"row": 306, "column": 69}, "end_point": {"row": 306, "column": 71}}, {"id": 1465, "type": "*", "text": "*", "parent": 1464, "children": [], "start_point": {"row": 306, "column": 69}, "end_point": {"row": 306, "column": 70}}, {"id": 1466, "type": "identifier", "text": "t", "parent": 1464, "children": [], "start_point": {"row": 306, "column": 70}, "end_point": {"row": 306, "column": 71}}, {"id": 1467, "type": "declaration", "text": "ARRAY_TYPE(seq_array) *update;", "parent": 1455, "children": [1468, 1472], "start_point": {"row": 308, "column": 1}, "end_point": {"row": 308, "column": 31}}, {"id": 1468, "type": "macro_type_specifier", "text": "ARRAY_TYPE(seq_array)", "parent": 1467, "children": [1469, 1470], "start_point": {"row": 308, "column": 1}, "end_point": {"row": 308, "column": 22}}, {"id": 1469, "type": "identifier", "text": "ARRAY_TYPE", "parent": 1468, "children": [], "start_point": {"row": 308, "column": 1}, "end_point": {"row": 308, "column": 11}}, {"id": 1470, "type": "type_descriptor", "text": "seq_array", "parent": 1468, "children": [1471], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 21}}, {"id": 1471, "type": "type_identifier", "text": "seq_array", "parent": 1470, "children": [], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 21}}, {"id": 1472, "type": "pointer_declarator", "text": "*update", "parent": 1467, "children": [1473, 1474], "start_point": {"row": 308, "column": 23}, "end_point": {"row": 308, "column": 30}}, {"id": 1473, "type": "*", "text": "*", "parent": 1472, "children": [], "start_point": {"row": 308, "column": 23}, "end_point": {"row": 308, "column": 24}}, {"id": 1474, "type": "identifier", "text": "update", "parent": 1472, "children": [], "start_point": {"row": 308, "column": 24}, "end_point": {"row": 308, "column": 30}}, {"id": 1475, "type": "if_statement", "text": "if (array_is_created(&t->ext_rec_updates)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_updates, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}", "parent": 1455, "children": [1476], "start_point": {"row": 310, "column": 1}, "end_point": {"row": 313, "column": 2}}, {"id": 1476, "type": "parenthesized_expression", "text": "(array_is_created(&t->ext_rec_updates))", "parent": 1475, "children": [1477], "start_point": {"row": 310, "column": 4}, "end_point": {"row": 310, "column": 43}}, {"id": 1477, "type": "call_expression", "text": "array_is_created(&t->ext_rec_updates)", "parent": 1476, "children": [1478, 1479], "start_point": {"row": 310, "column": 5}, "end_point": {"row": 310, "column": 42}}, {"id": 1478, "type": "identifier", "text": "array_is_created", "parent": 1477, "children": [], "start_point": {"row": 310, "column": 5}, "end_point": {"row": 310, "column": 21}}, {"id": 1479, "type": "argument_list", "text": "(&t->ext_rec_updates)", "parent": 1477, "children": [1480], "start_point": {"row": 310, "column": 21}, "end_point": {"row": 310, "column": 42}}, {"id": 1480, "type": "pointer_expression", "text": "&t->ext_rec_updates", "parent": 1479, "children": [1481], "start_point": {"row": 310, "column": 22}, "end_point": {"row": 310, "column": 41}}, {"id": 1481, "type": "field_expression", "text": "t->ext_rec_updates", "parent": 1480, "children": [1482, 1483], "start_point": {"row": 310, "column": 23}, "end_point": {"row": 310, "column": 41}}, {"id": 1482, "type": "identifier", "text": "t", "parent": 1481, "children": [], "start_point": {"row": 310, "column": 23}, "end_point": {"row": 310, "column": 24}}, {"id": 1483, "type": "field_identifier", "text": "ext_rec_updates", "parent": 1481, "children": [], "start_point": {"row": 310, "column": 26}, "end_point": {"row": 310, "column": 41}}, {"id": 1484, "type": "call_expression", "text": "array_foreach_modifiable(&t->ext_rec_updates, update)", "parent": 1475, "children": [1485, 1486], "start_point": {"row": 311, "column": 2}, "end_point": {"row": 311, "column": 55}}, {"id": 1485, "type": "identifier", "text": "array_foreach_modifiable", "parent": 1484, "children": [], "start_point": {"row": 311, "column": 2}, "end_point": {"row": 311, "column": 26}}, {"id": 1486, "type": "argument_list", "text": "(&t->ext_rec_updates, update)", "parent": 1484, "children": [1487, 1491], "start_point": {"row": 311, "column": 26}, "end_point": {"row": 311, "column": 55}}, {"id": 1487, "type": "pointer_expression", "text": "&t->ext_rec_updates", "parent": 1486, "children": [1488], "start_point": {"row": 311, "column": 27}, "end_point": {"row": 311, "column": 46}}, {"id": 1488, "type": "field_expression", "text": "t->ext_rec_updates", "parent": 1487, "children": [1489, 1490], "start_point": {"row": 311, "column": 28}, "end_point": {"row": 311, "column": 46}}, {"id": 1489, "type": "identifier", "text": "t", "parent": 1488, "children": [], "start_point": {"row": 311, "column": 28}, "end_point": {"row": 311, "column": 29}}, {"id": 1490, "type": "field_identifier", "text": "ext_rec_updates", "parent": 1488, "children": [], "start_point": {"row": 311, "column": 31}, "end_point": {"row": 311, "column": 46}}, {"id": 1491, "type": "identifier", "text": "update", "parent": 1486, "children": [], "start_point": {"row": 311, "column": 48}, "end_point": {"row": 311, "column": 54}}, {"id": 1492, "type": "call_expression", "text": "mail_index_convert_to_uids(t, update)", "parent": 1475, "children": [1493, 1494], "start_point": {"row": 312, "column": 3}, "end_point": {"row": 312, "column": 40}}, {"id": 1493, "type": "identifier", "text": "mail_index_convert_to_uids", "parent": 1492, "children": [], "start_point": {"row": 312, "column": 3}, "end_point": {"row": 312, "column": 29}}, {"id": 1494, "type": "argument_list", "text": "(t, update)", "parent": 1492, "children": [1495, 1496], "start_point": {"row": 312, "column": 29}, "end_point": {"row": 312, "column": 40}}, {"id": 1495, "type": "identifier", "text": "t", "parent": 1494, "children": [], "start_point": {"row": 312, "column": 30}, "end_point": {"row": 312, "column": 31}}, {"id": 1496, "type": "identifier", "text": "update", "parent": 1494, "children": [], "start_point": {"row": 312, "column": 33}, "end_point": {"row": 312, "column": 39}}, {"id": 1497, "type": "if_statement", "text": "if (array_is_created(&t->ext_rec_atomics)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_atomics, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}", "parent": 1455, "children": [1498], "start_point": {"row": 314, "column": 1}, "end_point": {"row": 317, "column": 2}}, {"id": 1498, "type": "parenthesized_expression", "text": "(array_is_created(&t->ext_rec_atomics))", "parent": 1497, "children": [1499], "start_point": {"row": 314, "column": 4}, "end_point": {"row": 314, "column": 43}}, {"id": 1499, "type": "call_expression", "text": "array_is_created(&t->ext_rec_atomics)", "parent": 1498, "children": [1500, 1501], "start_point": {"row": 314, "column": 5}, "end_point": {"row": 314, "column": 42}}, {"id": 1500, "type": "identifier", "text": "array_is_created", "parent": 1499, "children": [], "start_point": {"row": 314, "column": 5}, "end_point": {"row": 314, "column": 21}}, {"id": 1501, "type": "argument_list", "text": "(&t->ext_rec_atomics)", "parent": 1499, "children": [1502], "start_point": {"row": 314, "column": 21}, "end_point": {"row": 314, "column": 42}}, {"id": 1502, "type": "pointer_expression", "text": "&t->ext_rec_atomics", "parent": 1501, "children": [1503], "start_point": {"row": 314, "column": 22}, "end_point": {"row": 314, "column": 41}}, {"id": 1503, "type": "field_expression", "text": "t->ext_rec_atomics", "parent": 1502, "children": [1504, 1505], "start_point": {"row": 314, "column": 23}, "end_point": {"row": 314, "column": 41}}, {"id": 1504, "type": "identifier", "text": "t", "parent": 1503, "children": [], "start_point": {"row": 314, "column": 23}, "end_point": {"row": 314, "column": 24}}, {"id": 1505, "type": "field_identifier", "text": "ext_rec_atomics", "parent": 1503, "children": [], "start_point": {"row": 314, "column": 26}, "end_point": {"row": 314, "column": 41}}, {"id": 1506, "type": "call_expression", "text": "array_foreach_modifiable(&t->ext_rec_atomics, update)", "parent": 1497, "children": [1507, 1508], "start_point": {"row": 315, "column": 2}, "end_point": {"row": 315, "column": 55}}, {"id": 1507, "type": "identifier", "text": "array_foreach_modifiable", "parent": 1506, "children": [], "start_point": {"row": 315, "column": 2}, "end_point": {"row": 315, "column": 26}}, {"id": 1508, "type": "argument_list", "text": "(&t->ext_rec_atomics, update)", "parent": 1506, "children": [1509, 1513], "start_point": {"row": 315, "column": 26}, "end_point": {"row": 315, "column": 55}}, {"id": 1509, "type": "pointer_expression", "text": "&t->ext_rec_atomics", "parent": 1508, "children": [1510], "start_point": {"row": 315, "column": 27}, "end_point": {"row": 315, "column": 46}}, {"id": 1510, "type": "field_expression", "text": "t->ext_rec_atomics", "parent": 1509, "children": [1511, 1512], "start_point": {"row": 315, "column": 28}, "end_point": {"row": 315, "column": 46}}, {"id": 1511, "type": "identifier", "text": "t", "parent": 1510, "children": [], "start_point": {"row": 315, "column": 28}, "end_point": {"row": 315, "column": 29}}, {"id": 1512, "type": "field_identifier", "text": "ext_rec_atomics", "parent": 1510, "children": [], "start_point": {"row": 315, "column": 31}, "end_point": {"row": 315, "column": 46}}, {"id": 1513, "type": "identifier", "text": "update", "parent": 1508, "children": [], "start_point": {"row": 315, "column": 48}, "end_point": {"row": 315, "column": 54}}, {"id": 1514, "type": "call_expression", "text": "mail_index_convert_to_uids(t, update)", "parent": 1497, "children": [1515, 1516], "start_point": {"row": 316, "column": 3}, "end_point": {"row": 316, "column": 40}}, {"id": 1515, "type": "identifier", "text": "mail_index_convert_to_uids", "parent": 1514, "children": [], "start_point": {"row": 316, "column": 3}, "end_point": {"row": 316, "column": 29}}, {"id": 1516, "type": "argument_list", "text": "(t, update)", "parent": 1514, "children": [1517, 1518], "start_point": {"row": 316, "column": 29}, "end_point": {"row": 316, "column": 40}}, {"id": 1517, "type": "identifier", "text": "t", "parent": 1516, "children": [], "start_point": {"row": 316, "column": 30}, "end_point": {"row": 316, "column": 31}}, {"id": 1518, "type": "identifier", "text": "update", "parent": 1516, "children": [], "start_point": {"row": 316, "column": 33}, "end_point": {"row": 316, "column": 39}}, {"id": 1519, "type": "call_expression", "text": "keyword_updates_convert_to_uids(t)", "parent": 1455, "children": [1520, 1521], "start_point": {"row": 319, "column": 8}, "end_point": {"row": 319, "column": 42}}, {"id": 1520, "type": "identifier", "text": "keyword_updates_convert_to_uids", "parent": 1519, "children": [], "start_point": {"row": 319, "column": 8}, "end_point": {"row": 319, "column": 39}}, {"id": 1521, "type": "argument_list", "text": "(t)", "parent": 1519, "children": [1522], "start_point": {"row": 319, "column": 39}, "end_point": {"row": 319, "column": 42}}, {"id": 1522, "type": "identifier", "text": "t", "parent": 1521, "children": [], "start_point": {"row": 319, "column": 40}, "end_point": {"row": 319, "column": 41}}, {"id": 1523, "type": "call_expression", "text": "expunges_convert_to_uids(t)", "parent": 1455, "children": [1524, 1525], "start_point": {"row": 320, "column": 1}, "end_point": {"row": 320, "column": 28}}, {"id": 1524, "type": "identifier", "text": "expunges_convert_to_uids", "parent": 1523, "children": [], "start_point": {"row": 320, "column": 1}, "end_point": {"row": 320, "column": 25}}, {"id": 1525, "type": "argument_list", "text": "(t)", "parent": 1523, "children": [1526], "start_point": {"row": 320, "column": 25}, "end_point": {"row": 320, "column": 28}}, {"id": 1526, "type": "identifier", "text": "t", "parent": 1525, "children": [], "start_point": {"row": 320, "column": 26}, "end_point": {"row": 320, "column": 27}}, {"id": 1527, "type": "call_expression", "text": "mail_index_convert_to_uids(t, (void *)&t->modseq_updates)", "parent": 1455, "children": [1528, 1529], "start_point": {"row": 321, "column": 1}, "end_point": {"row": 321, "column": 58}}, {"id": 1528, "type": "identifier", "text": "mail_index_convert_to_uids", "parent": 1527, "children": [], "start_point": {"row": 321, "column": 1}, "end_point": {"row": 321, "column": 27}}, {"id": 1529, "type": "argument_list", "text": "(t, (void *)&t->modseq_updates)", "parent": 1527, "children": [1530, 1531], "start_point": {"row": 321, "column": 27}, "end_point": {"row": 321, "column": 58}}, {"id": 1530, "type": "identifier", "text": "t", "parent": 1529, "children": [], "start_point": {"row": 321, "column": 28}, "end_point": {"row": 321, "column": 29}}, {"id": 1531, "type": "cast_expression", "text": "(void *)&t->modseq_updates", "parent": 1529, "children": [1532, 1536], "start_point": {"row": 321, "column": 31}, "end_point": {"row": 321, "column": 57}}, {"id": 1532, "type": "type_descriptor", "text": "void *", "parent": 1531, "children": [1533, 1534], "start_point": {"row": 321, "column": 32}, "end_point": {"row": 321, "column": 38}}, {"id": 1533, "type": "primitive_type", "text": "void", "parent": 1532, "children": [], "start_point": {"row": 321, "column": 32}, "end_point": {"row": 321, "column": 36}}, {"id": 1534, "type": "abstract_pointer_declarator", "text": "*", "parent": 1532, "children": [1535], "start_point": {"row": 321, "column": 37}, "end_point": {"row": 321, "column": 38}}, {"id": 1535, "type": "*", "text": "*", "parent": 1534, "children": [], "start_point": {"row": 321, "column": 37}, "end_point": {"row": 321, "column": 38}}, {"id": 1536, "type": "pointer_expression", "text": "&t->modseq_updates", "parent": 1531, "children": [1537], "start_point": {"row": 321, "column": 39}, "end_point": {"row": 321, "column": 57}}, {"id": 1537, "type": "field_expression", "text": "t->modseq_updates", "parent": 1536, "children": [1538, 1539], "start_point": {"row": 321, "column": 40}, "end_point": {"row": 321, "column": 57}}, {"id": 1538, "type": "identifier", "text": "t", "parent": 1537, "children": [], "start_point": {"row": 321, "column": 40}, "end_point": {"row": 321, "column": 41}}, {"id": 1539, "type": "field_identifier", "text": "modseq_updates", "parent": 1537, "children": [], "start_point": {"row": 321, "column": 43}, "end_point": {"row": 321, "column": 57}}, {"id": 1540, "type": "call_expression", "text": "mail_index_transaction_seq_range_to_uid(t, (void *)&t->updates)", "parent": 1455, "children": [1541, 1542], "start_point": {"row": 322, "column": 1}, "end_point": {"row": 322, "column": 64}}, {"id": 1541, "type": "identifier", "text": "mail_index_transaction_seq_range_to_uid", "parent": 1540, "children": [], "start_point": {"row": 322, "column": 1}, "end_point": {"row": 322, "column": 40}}, {"id": 1542, "type": "argument_list", "text": "(t, (void *)&t->updates)", "parent": 1540, "children": [1543, 1544], "start_point": {"row": 322, "column": 40}, "end_point": {"row": 322, "column": 64}}, {"id": 1543, "type": "identifier", "text": "t", "parent": 1542, "children": [], "start_point": {"row": 322, "column": 41}, "end_point": {"row": 322, "column": 42}}, {"id": 1544, "type": "cast_expression", "text": "(void *)&t->updates", "parent": 1542, "children": [1545, 1549], "start_point": {"row": 322, "column": 44}, "end_point": {"row": 322, "column": 63}}, {"id": 1545, "type": "type_descriptor", "text": "void *", "parent": 1544, "children": [1546, 1547], "start_point": {"row": 322, "column": 45}, "end_point": {"row": 322, "column": 51}}, {"id": 1546, "type": "primitive_type", "text": "void", "parent": 1545, "children": [], "start_point": {"row": 322, "column": 45}, "end_point": {"row": 322, "column": 49}}, {"id": 1547, "type": "abstract_pointer_declarator", "text": "*", "parent": 1545, "children": [1548], "start_point": {"row": 322, "column": 50}, "end_point": {"row": 322, "column": 51}}, {"id": 1548, "type": "*", "text": "*", "parent": 1547, "children": [], "start_point": {"row": 322, "column": 50}, "end_point": {"row": 322, "column": 51}}, {"id": 1549, "type": "pointer_expression", "text": "&t->updates", "parent": 1544, "children": [1550], "start_point": {"row": 322, "column": 52}, "end_point": {"row": 322, "column": 63}}, {"id": 1550, "type": "field_expression", "text": "t->updates", "parent": 1549, "children": [1551, 1552], "start_point": {"row": 322, "column": 53}, "end_point": {"row": 322, "column": 63}}, {"id": 1551, "type": "identifier", "text": "t", "parent": 1550, "children": [], "start_point": {"row": 322, "column": 53}, "end_point": {"row": 322, "column": 54}}, {"id": 1552, "type": "field_identifier", "text": "updates", "parent": 1550, "children": [], "start_point": {"row": 322, "column": 56}, "end_point": {"row": 322, "column": 63}}, {"id": 1553, "type": "function_definition", "text": "void mail_index_transaction_finish_so_far(struct mail_index_transaction *t)\n{\n\tif (array_is_created(&t->appends))\n\t\tmail_index_transaction_sort_appends(t);\n\tmail_index_transaction_finish_flag_updates(t);\n\tif (t->max_modseq != 0)\n\t\tmail_index_transaction_check_conflicts(t);\n}", "parent": null, "children": [1554, 1555], "start_point": {"row": 325, "column": 0}, "end_point": {"row": 332, "column": 1}}, {"id": 1554, "type": "primitive_type", "text": "void", "parent": 1553, "children": [], "start_point": {"row": 325, "column": 0}, "end_point": {"row": 325, "column": 4}}, {"id": 1555, "type": "function_declarator", "text": "mail_index_transaction_finish_so_far(struct mail_index_transaction *t)", "parent": 1553, "children": [1556, 1557], "start_point": {"row": 325, "column": 5}, "end_point": {"row": 325, "column": 75}}, {"id": 1556, "type": "identifier", "text": "mail_index_transaction_finish_so_far", "parent": 1555, "children": [], "start_point": {"row": 325, "column": 5}, "end_point": {"row": 325, "column": 41}}, {"id": 1557, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 1555, "children": [1558], "start_point": {"row": 325, "column": 41}, "end_point": {"row": 325, "column": 75}}, {"id": 1558, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1557, "children": [1559, 1562], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 74}}, {"id": 1559, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1558, "children": [1560, 1561], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 71}}, {"id": 1560, "type": "struct", "text": "struct", "parent": 1559, "children": [], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 48}}, {"id": 1561, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1559, "children": [], "start_point": {"row": 325, "column": 49}, "end_point": {"row": 325, "column": 71}}, {"id": 1562, "type": "pointer_declarator", "text": "*t", "parent": 1558, "children": [1563, 1564], "start_point": {"row": 325, "column": 72}, "end_point": {"row": 325, "column": 74}}, {"id": 1563, "type": "*", "text": "*", "parent": 1562, "children": [], "start_point": {"row": 325, "column": 72}, "end_point": {"row": 325, "column": 73}}, {"id": 1564, "type": "identifier", "text": "t", "parent": 1562, "children": [], "start_point": {"row": 325, "column": 73}, "end_point": {"row": 325, "column": 74}}, {"id": 1565, "type": "if_statement", "text": "if (array_is_created(&t->appends))\n\t\tmail_index_transaction_sort_appends(t);", "parent": 1553, "children": [1566], "start_point": {"row": 327, "column": 1}, "end_point": {"row": 328, "column": 41}}, {"id": 1566, "type": "parenthesized_expression", "text": "(array_is_created(&t->appends))", "parent": 1565, "children": [1567], "start_point": {"row": 327, "column": 4}, "end_point": {"row": 327, "column": 35}}, {"id": 1567, "type": "call_expression", "text": "array_is_created(&t->appends)", "parent": 1566, "children": [1568, 1569], "start_point": {"row": 327, "column": 5}, "end_point": {"row": 327, "column": 34}}, {"id": 1568, "type": "identifier", "text": "array_is_created", "parent": 1567, "children": [], "start_point": {"row": 327, "column": 5}, "end_point": {"row": 327, "column": 21}}, {"id": 1569, "type": "argument_list", "text": "(&t->appends)", "parent": 1567, "children": [1570], "start_point": {"row": 327, "column": 21}, "end_point": {"row": 327, "column": 34}}, {"id": 1570, "type": "pointer_expression", "text": "&t->appends", "parent": 1569, "children": [1571], "start_point": {"row": 327, "column": 22}, "end_point": {"row": 327, "column": 33}}, {"id": 1571, "type": "field_expression", "text": "t->appends", "parent": 1570, "children": [1572, 1573], "start_point": {"row": 327, "column": 23}, "end_point": {"row": 327, "column": 33}}, {"id": 1572, "type": "identifier", "text": "t", "parent": 1571, "children": [], "start_point": {"row": 327, "column": 23}, "end_point": {"row": 327, "column": 24}}, {"id": 1573, "type": "field_identifier", "text": "appends", "parent": 1571, "children": [], "start_point": {"row": 327, "column": 26}, "end_point": {"row": 327, "column": 33}}, {"id": 1574, "type": "call_expression", "text": "mail_index_transaction_sort_appends(t)", "parent": 1565, "children": [1575, 1576], "start_point": {"row": 328, "column": 2}, "end_point": {"row": 328, "column": 40}}, {"id": 1575, "type": "identifier", "text": "mail_index_transaction_sort_appends", "parent": 1574, "children": [], "start_point": {"row": 328, "column": 2}, "end_point": {"row": 328, "column": 37}}, {"id": 1576, "type": "argument_list", "text": "(t)", "parent": 1574, "children": [1577], "start_point": {"row": 328, "column": 37}, "end_point": {"row": 328, "column": 40}}, {"id": 1577, "type": "identifier", "text": "t", "parent": 1576, "children": [], "start_point": {"row": 328, "column": 38}, "end_point": {"row": 328, "column": 39}}, {"id": 1578, "type": "call_expression", "text": "mail_index_transaction_finish_flag_updates(t)", "parent": 1553, "children": [1579, 1580], "start_point": {"row": 329, "column": 1}, "end_point": {"row": 329, "column": 46}}, {"id": 1579, "type": "identifier", "text": "mail_index_transaction_finish_flag_updates", "parent": 1578, "children": [], "start_point": {"row": 329, "column": 1}, "end_point": {"row": 329, "column": 43}}, {"id": 1580, "type": "argument_list", "text": "(t)", "parent": 1578, "children": [1581], "start_point": {"row": 329, "column": 43}, "end_point": {"row": 329, "column": 46}}, {"id": 1581, "type": "identifier", "text": "t", "parent": 1580, "children": [], "start_point": {"row": 329, "column": 44}, "end_point": {"row": 329, "column": 45}}, {"id": 1582, "type": "if_statement", "text": "if (t->max_modseq != 0)\n\t\tmail_index_transaction_check_conflicts(t);", "parent": 1553, "children": [1583], "start_point": {"row": 330, "column": 1}, "end_point": {"row": 331, "column": 44}}, {"id": 1583, "type": "parenthesized_expression", "text": "(t->max_modseq != 0)", "parent": 1582, "children": [1584], "start_point": {"row": 330, "column": 4}, "end_point": {"row": 330, "column": 24}}, {"id": 1584, "type": "binary_expression", "text": "t->max_modseq != 0", "parent": 1583, "children": [1585, 1588, 1589], "start_point": {"row": 330, "column": 5}, "end_point": {"row": 330, "column": 23}}, {"id": 1585, "type": "field_expression", "text": "t->max_modseq", "parent": 1584, "children": [1586, 1587], "start_point": {"row": 330, "column": 5}, "end_point": {"row": 330, "column": 18}}, {"id": 1586, "type": "identifier", "text": "t", "parent": 1585, "children": [], "start_point": {"row": 330, "column": 5}, "end_point": {"row": 330, "column": 6}}, {"id": 1587, "type": "field_identifier", "text": "max_modseq", "parent": 1585, "children": [], "start_point": {"row": 330, "column": 8}, "end_point": {"row": 330, "column": 18}}, {"id": 1588, "type": "!=", "text": "!=", "parent": 1584, "children": [], "start_point": {"row": 330, "column": 19}, "end_point": {"row": 330, "column": 21}}, {"id": 1589, "type": "number_literal", "text": "0", "parent": 1584, "children": [], "start_point": {"row": 330, "column": 22}, "end_point": {"row": 330, "column": 23}}, {"id": 1590, "type": "call_expression", "text": "mail_index_transaction_check_conflicts(t)", "parent": 1582, "children": [1591, 1592], "start_point": {"row": 331, "column": 2}, "end_point": {"row": 331, "column": 43}}, {"id": 1591, "type": "identifier", "text": "mail_index_transaction_check_conflicts", "parent": 1590, "children": [], "start_point": {"row": 331, "column": 2}, "end_point": {"row": 331, "column": 40}}, {"id": 1592, "type": "argument_list", "text": "(t)", "parent": 1590, "children": [1593], "start_point": {"row": 331, "column": 40}, "end_point": {"row": 331, "column": 43}}, {"id": 1593, "type": "identifier", "text": "t", "parent": 1592, "children": [], "start_point": {"row": 331, "column": 41}, "end_point": {"row": 331, "column": 42}}, {"id": 1594, "type": "function_definition", "text": "void mail_index_transaction_finish(struct mail_index_transaction *t)\n{\n\tmail_index_transaction_finish_so_far(t);\n\n\tif (array_is_created(&t->appends))\n\t\tmail_index_update_day_headers(t, ioloop_time);\n\tif (array_is_created(&t->ext_reset_atomic))\n\t\ttransaction_update_atomic_reset_ids(t);\n\t/* finally convert all sequences to UIDs before we write them,\n\t but after we've checked and removed conflicts */\n\tmail_index_transaction_convert_to_uids(t);\n\n\t/* and kind of ugly way to update highest modseq */\n\tif (t->min_highest_modseq != 0)\n\t\tmail_index_update_modseq(t, 0, t->min_highest_modseq);\n}", "parent": null, "children": [1595, 1596], "start_point": {"row": 334, "column": 0}, "end_point": {"row": 349, "column": 1}}, {"id": 1595, "type": "primitive_type", "text": "void", "parent": 1594, "children": [], "start_point": {"row": 334, "column": 0}, "end_point": {"row": 334, "column": 4}}, {"id": 1596, "type": "function_declarator", "text": "mail_index_transaction_finish(struct mail_index_transaction *t)", "parent": 1594, "children": [1597, 1598], "start_point": {"row": 334, "column": 5}, "end_point": {"row": 334, "column": 68}}, {"id": 1597, "type": "identifier", "text": "mail_index_transaction_finish", "parent": 1596, "children": [], "start_point": {"row": 334, "column": 5}, "end_point": {"row": 334, "column": 34}}, {"id": 1598, "type": "parameter_list", "text": "(struct mail_index_transaction *t)", "parent": 1596, "children": [1599], "start_point": {"row": 334, "column": 34}, "end_point": {"row": 334, "column": 68}}, {"id": 1599, "type": "parameter_declaration", "text": "struct mail_index_transaction *t", "parent": 1598, "children": [1600, 1603], "start_point": {"row": 334, "column": 35}, "end_point": {"row": 334, "column": 67}}, {"id": 1600, "type": "struct_specifier", "text": "struct mail_index_transaction", "parent": 1599, "children": [1601, 1602], "start_point": {"row": 334, "column": 35}, "end_point": {"row": 334, "column": 64}}, {"id": 1601, "type": "struct", "text": "struct", "parent": 1600, "children": [], "start_point": {"row": 334, "column": 35}, "end_point": {"row": 334, "column": 41}}, {"id": 1602, "type": "type_identifier", "text": "mail_index_transaction", "parent": 1600, "children": [], "start_point": {"row": 334, "column": 42}, "end_point": {"row": 334, "column": 64}}, {"id": 1603, "type": "pointer_declarator", "text": "*t", "parent": 1599, "children": [1604, 1605], "start_point": {"row": 334, "column": 65}, "end_point": {"row": 334, "column": 67}}, {"id": 1604, "type": "*", "text": "*", "parent": 1603, "children": [], "start_point": {"row": 334, "column": 65}, "end_point": {"row": 334, "column": 66}}, {"id": 1605, "type": "identifier", "text": "t", "parent": 1603, "children": [], "start_point": {"row": 334, "column": 66}, "end_point": {"row": 334, "column": 67}}, {"id": 1606, "type": "call_expression", "text": "mail_index_transaction_finish_so_far(t)", "parent": 1594, "children": [1607, 1608], "start_point": {"row": 336, "column": 1}, "end_point": {"row": 336, "column": 40}}, {"id": 1607, "type": "identifier", "text": "mail_index_transaction_finish_so_far", "parent": 1606, "children": [], "start_point": {"row": 336, "column": 1}, "end_point": {"row": 336, "column": 37}}, {"id": 1608, "type": "argument_list", "text": "(t)", "parent": 1606, "children": [1609], "start_point": {"row": 336, "column": 37}, "end_point": {"row": 336, "column": 40}}, {"id": 1609, "type": "identifier", "text": "t", "parent": 1608, "children": [], "start_point": {"row": 336, "column": 38}, "end_point": {"row": 336, "column": 39}}, {"id": 1610, "type": "if_statement", "text": "if (array_is_created(&t->appends))\n\t\tmail_index_update_day_headers(t, ioloop_time);", "parent": 1594, "children": [1611], "start_point": {"row": 338, "column": 1}, "end_point": {"row": 339, "column": 48}}, {"id": 1611, "type": "parenthesized_expression", "text": "(array_is_created(&t->appends))", "parent": 1610, "children": [1612], "start_point": {"row": 338, "column": 4}, "end_point": {"row": 338, "column": 35}}, {"id": 1612, "type": "call_expression", "text": "array_is_created(&t->appends)", "parent": 1611, "children": [1613, 1614], "start_point": {"row": 338, "column": 5}, "end_point": {"row": 338, "column": 34}}, {"id": 1613, "type": "identifier", "text": "array_is_created", "parent": 1612, "children": [], "start_point": {"row": 338, "column": 5}, "end_point": {"row": 338, "column": 21}}, {"id": 1614, "type": "argument_list", "text": "(&t->appends)", "parent": 1612, "children": [1615], "start_point": {"row": 338, "column": 21}, "end_point": {"row": 338, "column": 34}}, {"id": 1615, "type": "pointer_expression", "text": "&t->appends", "parent": 1614, "children": [1616], "start_point": {"row": 338, "column": 22}, "end_point": {"row": 338, "column": 33}}, {"id": 1616, "type": "field_expression", "text": "t->appends", "parent": 1615, "children": [1617, 1618], "start_point": {"row": 338, "column": 23}, "end_point": {"row": 338, "column": 33}}, {"id": 1617, "type": "identifier", "text": "t", "parent": 1616, "children": [], "start_point": {"row": 338, "column": 23}, "end_point": {"row": 338, "column": 24}}, {"id": 1618, "type": "field_identifier", "text": "appends", "parent": 1616, "children": [], "start_point": {"row": 338, "column": 26}, "end_point": {"row": 338, "column": 33}}, {"id": 1619, "type": "call_expression", "text": "mail_index_update_day_headers(t, ioloop_time)", "parent": 1610, "children": [1620, 1621], "start_point": {"row": 339, "column": 2}, "end_point": {"row": 339, "column": 47}}, {"id": 1620, "type": "identifier", "text": "mail_index_update_day_headers", "parent": 1619, "children": [], "start_point": {"row": 339, "column": 2}, "end_point": {"row": 339, "column": 31}}, {"id": 1621, "type": "argument_list", "text": "(t, ioloop_time)", "parent": 1619, "children": [1622, 1623], "start_point": {"row": 339, "column": 31}, "end_point": {"row": 339, "column": 47}}, {"id": 1622, "type": "identifier", "text": "t", "parent": 1621, "children": [], "start_point": {"row": 339, "column": 32}, "end_point": {"row": 339, "column": 33}}, {"id": 1623, "type": "identifier", "text": "ioloop_time", "parent": 1621, "children": [], "start_point": {"row": 339, "column": 35}, "end_point": {"row": 339, "column": 46}}, {"id": 1624, "type": "if_statement", "text": "if (array_is_created(&t->ext_reset_atomic))\n\t\ttransaction_update_atomic_reset_ids(t);", "parent": 1594, "children": [1625], "start_point": {"row": 340, "column": 1}, "end_point": {"row": 341, "column": 41}}, {"id": 1625, "type": "parenthesized_expression", "text": "(array_is_created(&t->ext_reset_atomic))", "parent": 1624, "children": [1626], "start_point": {"row": 340, "column": 4}, "end_point": {"row": 340, "column": 44}}, {"id": 1626, "type": "call_expression", "text": "array_is_created(&t->ext_reset_atomic)", "parent": 1625, "children": [1627, 1628], "start_point": {"row": 340, "column": 5}, "end_point": {"row": 340, "column": 43}}, {"id": 1627, "type": "identifier", "text": "array_is_created", "parent": 1626, "children": [], "start_point": {"row": 340, "column": 5}, "end_point": {"row": 340, "column": 21}}, {"id": 1628, "type": "argument_list", "text": "(&t->ext_reset_atomic)", "parent": 1626, "children": [1629], "start_point": {"row": 340, "column": 21}, "end_point": {"row": 340, "column": 43}}, {"id": 1629, "type": "pointer_expression", "text": "&t->ext_reset_atomic", "parent": 1628, "children": [1630], "start_point": {"row": 340, "column": 22}, "end_point": {"row": 340, "column": 42}}, {"id": 1630, "type": "field_expression", "text": "t->ext_reset_atomic", "parent": 1629, "children": [1631, 1632], "start_point": {"row": 340, "column": 23}, "end_point": {"row": 340, "column": 42}}, {"id": 1631, "type": "identifier", "text": "t", "parent": 1630, "children": [], "start_point": {"row": 340, "column": 23}, "end_point": {"row": 340, "column": 24}}, {"id": 1632, "type": "field_identifier", "text": "ext_reset_atomic", "parent": 1630, "children": [], "start_point": {"row": 340, "column": 26}, "end_point": {"row": 340, "column": 42}}, {"id": 1633, "type": "call_expression", "text": "transaction_update_atomic_reset_ids(t)", "parent": 1624, "children": [1634, 1635], "start_point": {"row": 341, "column": 2}, "end_point": {"row": 341, "column": 40}}, {"id": 1634, "type": "identifier", "text": "transaction_update_atomic_reset_ids", "parent": 1633, "children": [], "start_point": {"row": 341, "column": 2}, "end_point": {"row": 341, "column": 37}}, {"id": 1635, "type": "argument_list", "text": "(t)", "parent": 1633, "children": [1636], "start_point": {"row": 341, "column": 37}, "end_point": {"row": 341, "column": 40}}, {"id": 1636, "type": "identifier", "text": "t", "parent": 1635, "children": [], "start_point": {"row": 341, "column": 38}, "end_point": {"row": 341, "column": 39}}, {"id": 1637, "type": "call_expression", "text": "mail_index_transaction_convert_to_uids(t)", "parent": 1594, "children": [1638, 1639], "start_point": {"row": 344, "column": 1}, "end_point": {"row": 344, "column": 42}}, {"id": 1638, "type": "identifier", "text": "mail_index_transaction_convert_to_uids", "parent": 1637, "children": [], "start_point": {"row": 344, "column": 1}, "end_point": {"row": 344, "column": 39}}, {"id": 1639, "type": "argument_list", "text": "(t)", "parent": 1637, "children": [1640], "start_point": {"row": 344, "column": 39}, "end_point": {"row": 344, "column": 42}}, {"id": 1640, "type": "identifier", "text": "t", "parent": 1639, "children": [], "start_point": {"row": 344, "column": 40}, "end_point": {"row": 344, "column": 41}}, {"id": 1641, "type": "if_statement", "text": "if (t->min_highest_modseq != 0)\n\t\tmail_index_update_modseq(t, 0, t->min_highest_modseq);", "parent": 1594, "children": [1642], "start_point": {"row": 347, "column": 1}, "end_point": {"row": 348, "column": 56}}, {"id": 1642, "type": "parenthesized_expression", "text": "(t->min_highest_modseq != 0)", "parent": 1641, "children": [1643], "start_point": {"row": 347, "column": 4}, "end_point": {"row": 347, "column": 32}}, {"id": 1643, "type": "binary_expression", "text": "t->min_highest_modseq != 0", "parent": 1642, "children": [1644, 1647, 1648], "start_point": {"row": 347, "column": 5}, "end_point": {"row": 347, "column": 31}}, {"id": 1644, "type": "field_expression", "text": "t->min_highest_modseq", "parent": 1643, "children": [1645, 1646], "start_point": {"row": 347, "column": 5}, "end_point": {"row": 347, "column": 26}}, {"id": 1645, "type": "identifier", "text": "t", "parent": 1644, "children": [], "start_point": {"row": 347, "column": 5}, "end_point": {"row": 347, "column": 6}}, {"id": 1646, "type": "field_identifier", "text": "min_highest_modseq", "parent": 1644, "children": [], "start_point": {"row": 347, "column": 8}, "end_point": {"row": 347, "column": 26}}, {"id": 1647, "type": "!=", "text": "!=", "parent": 1643, "children": [], "start_point": {"row": 347, "column": 27}, "end_point": {"row": 347, "column": 29}}, {"id": 1648, "type": "number_literal", "text": "0", "parent": 1643, "children": [], "start_point": {"row": 347, "column": 30}, "end_point": {"row": 347, "column": 31}}, {"id": 1649, "type": "call_expression", "text": "mail_index_update_modseq(t, 0, t->min_highest_modseq)", "parent": 1641, "children": [1650, 1651], "start_point": {"row": 348, "column": 2}, "end_point": {"row": 348, "column": 55}}, {"id": 1650, "type": "identifier", "text": "mail_index_update_modseq", "parent": 1649, "children": [], "start_point": {"row": 348, "column": 2}, "end_point": {"row": 348, "column": 26}}, {"id": 1651, "type": "argument_list", "text": "(t, 0, t->min_highest_modseq)", "parent": 1649, "children": [1652, 1653, 1654], "start_point": {"row": 348, "column": 26}, "end_point": {"row": 348, "column": 55}}, {"id": 1652, "type": "identifier", "text": "t", "parent": 1651, "children": [], "start_point": {"row": 348, "column": 27}, "end_point": {"row": 348, "column": 28}}, {"id": 1653, "type": "number_literal", "text": "0", "parent": 1651, "children": [], "start_point": {"row": 348, "column": 30}, "end_point": {"row": 348, "column": 31}}, {"id": 1654, "type": "field_expression", "text": "t->min_highest_modseq", "parent": 1651, "children": [1655, 1656], "start_point": {"row": 348, "column": 33}, "end_point": {"row": 348, "column": 54}}, {"id": 1655, "type": "identifier", "text": "t", "parent": 1654, "children": [], "start_point": {"row": 348, "column": 33}, "end_point": {"row": 348, "column": 34}}, {"id": 1656, "type": "field_identifier", "text": "min_highest_modseq", "parent": 1654, "children": [], "start_point": {"row": 348, "column": 36}, "end_point": {"row": 348, "column": 54}}]}, "node_categories": {"declarations": {"functions": [18, 20, 65, 67, 99, 101, 252, 254, 327, 331, 474, 476, 680, 682, 805, 807, 891, 893, 970, 972, 1012, 1014, 1234, 1236, 1289, 1291, 1455, 1457, 1553, 1555, 1594, 1596], "variables": [23, 30, 70, 104, 111, 114, 117, 124, 131, 257, 264, 269, 334, 341, 346, 351, 359, 366, 479, 486, 496, 503, 509, 515, 685, 692, 695, 810, 817, 820, 896, 903, 911, 916, 975, 982, 985, 1017, 1024, 1032, 1042, 1048, 1239, 1246, 1294, 1301, 1308, 1460, 1467, 1558, 1599], "classes": [24, 25, 31, 32, 71, 72, 105, 106, 118, 119, 125, 126, 258, 259, 335, 336, 342, 343, 360, 361, 480, 481, 487, 488, 497, 498, 686, 687, 811, 812, 821, 822, 897, 898, 976, 977, 1018, 1019, 1033, 1034, 1240, 1241, 1247, 1248, 1295, 1296, 1302, 1303, 1461, 1462, 1559, 1560, 1600, 1601], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [38, 39, 40, 44, 51, 52, 53, 57, 78, 79, 81, 85, 88, 89, 94, 136, 137, 139, 142, 143, 144, 150, 160, 163, 164, 165, 166, 167, 177, 178, 184, 185, 189, 197, 198, 202, 205, 208, 209, 213, 216, 217, 220, 221, 227, 230, 231, 236, 237, 238, 242, 247, 276, 277, 279, 282, 283, 290, 293, 294, 297, 304, 308, 312, 313, 314, 319, 324, 375, 379, 382, 383, 384, 385, 390, 391, 395, 396, 401, 402, 406, 407, 412, 416, 419, 420, 430, 434, 435, 438, 442, 446, 447, 452, 456, 457, 461, 464, 465, 469, 519, 520, 521, 523, 527, 529, 532, 533, 537, 540, 546, 549, 550, 553, 560, 567, 568, 571, 574, 580, 583, 586, 589, 595, 598, 603, 604, 605, 606, 607, 608, 611, 615, 619, 620, 621, 622, 625, 630, 633, 639, 643, 647, 652, 655, 656, 659, 662, 663, 664, 667, 668, 673, 676, 677, 699, 702, 703, 708, 711, 712, 719, 720, 721, 725, 728, 733, 734, 735, 745, 748, 751, 754, 758, 759, 760, 763, 768, 774, 782, 788, 789, 793, 796, 801, 827, 830, 835, 836, 839, 845, 851, 854, 857, 858, 859, 860, 869, 872, 873, 878, 881, 882, 888, 923, 924, 926, 934, 943, 947, 953, 959, 963, 967, 988, 992, 993, 994, 1000, 1004, 1007, 1057, 1058, 1060, 1068, 1077, 1081, 1087, 1095, 1099, 1105, 1109, 1112, 1115, 1120, 1121, 1122, 1127, 1128, 1132, 1136, 1142, 1155, 1163, 1167, 1171, 1174, 1179, 1180, 1185, 1191, 1195, 1200, 1203, 1206, 1207, 1213, 1217, 1218, 1219, 1223, 1231, 1254, 1255, 1257, 1260, 1261, 1265, 1268, 1269, 1273, 1277, 1278, 1281, 1285, 1286, 1316, 1317, 1319, 1322, 1323, 1327, 1334, 1337, 1338, 1341, 1344, 1345, 1351, 1352, 1357, 1361, 1362, 1374, 1378, 1382, 1383, 1388, 1392, 1393, 1398, 1399, 1400, 1401, 1403, 1409, 1410, 1415, 1416, 1420, 1423, 1424, 1428, 1429, 1433, 1434, 1435, 1436, 1440, 1443, 1446, 1447, 1451, 1476, 1477, 1480, 1481, 1484, 1487, 1488, 1492, 1498, 1499, 1502, 1503, 1506, 1509, 1510, 1514, 1519, 1523, 1527, 1531, 1536, 1537, 1540, 1544, 1549, 1550, 1566, 1567, 1570, 1571, 1574, 1578, 1583, 1584, 1585, 1590, 1606, 1611, 1612, 1615, 1616, 1619, 1625, 1626, 1629, 1630, 1633, 1637, 1642, 1643, 1644, 1649, 1654], "assignments": [93, 152, 157, 174, 224, 246, 287, 300, 372, 426, 441, 451, 543, 556, 564, 577, 592, 636, 649, 742, 771, 779, 842, 866, 931, 939, 950, 958, 1065, 1073, 1084, 1092, 1102, 1135, 1141, 1147, 1152, 1160, 1184, 1190, 1212, 1228, 1331, 1350, 1367, 1370, 1381], "loops": [299, 425, 555, 576, 741, 938, 991, 1072, 1366], "conditionals": [21, 26, 29, 33, 36, 37, 41, 42, 45, 46, 50, 54, 55, 58, 59, 68, 73, 76, 77, 82, 83, 86, 90, 91, 92, 95, 96, 102, 107, 110, 113, 116, 120, 123, 127, 130, 133, 134, 135, 140, 145, 146, 147, 148, 149, 151, 153, 158, 161, 168, 169, 170, 171, 172, 173, 175, 179, 180, 183, 186, 188, 190, 192, 193, 196, 199, 203, 206, 210, 211, 212, 214, 215, 218, 222, 223, 225, 228, 232, 233, 234, 235, 239, 240, 248, 249, 251, 255, 260, 263, 268, 270, 273, 274, 275, 280, 284, 285, 288, 291, 295, 296, 298, 301, 305, 307, 309, 311, 315, 316, 320, 322, 323, 325, 326, 328, 332, 337, 340, 344, 345, 347, 350, 352, 353, 355, 358, 362, 365, 367, 370, 371, 373, 376, 378, 380, 381, 386, 392, 393, 397, 399, 403, 404, 408, 410, 413, 417, 421, 422, 423, 427, 431, 433, 436, 439, 443, 444, 448, 449, 450, 453, 454, 458, 459, 460, 462, 466, 467, 468, 470, 473, 477, 482, 485, 489, 492, 495, 499, 502, 504, 507, 508, 510, 511, 513, 514, 517, 518, 524, 525, 530, 534, 535, 538, 541, 544, 547, 551, 552, 554, 557, 561, 563, 565, 569, 570, 572, 575, 578, 581, 582, 584, 587, 588, 590, 593, 596, 599, 600, 601, 602, 609, 610, 612, 613, 616, 617, 623, 624, 626, 627, 631, 634, 635, 637, 640, 642, 644, 645, 646, 648, 650, 653, 657, 658, 660, 661, 665, 669, 670, 674, 678, 679, 683, 688, 691, 694, 697, 698, 700, 704, 705, 709, 713, 714, 718, 722, 723, 726, 729, 730, 732, 736, 737, 743, 746, 747, 749, 752, 753, 755, 757, 761, 764, 765, 766, 769, 770, 772, 775, 777, 778, 780, 783, 785, 786, 787, 790, 792, 794, 797, 798, 800, 802, 804, 808, 813, 816, 819, 823, 826, 828, 831, 834, 837, 840, 841, 843, 846, 848, 849, 852, 855, 861, 862, 863, 864, 865, 867, 870, 874, 875, 876, 877, 879, 883, 884, 889, 890, 894, 899, 902, 904, 905, 907, 910, 915, 917, 920, 921, 922, 927, 929, 932, 935, 937, 940, 944, 946, 948, 951, 954, 956, 957, 961, 964, 966, 969, 973, 978, 981, 984, 987, 989, 995, 997, 998, 1001, 1005, 1008, 1011, 1015, 1020, 1023, 1025, 1026, 1028, 1031, 1035, 1038, 1041, 1043, 1046, 1047, 1050, 1051, 1053, 1056, 1061, 1063, 1066, 1069, 1071, 1074, 1078, 1080, 1082, 1085, 1088, 1090, 1091, 1093, 1096, 1098, 1100, 1101, 1103, 1106, 1108, 1110, 1111, 1113, 1116, 1118, 1119, 1123, 1125, 1129, 1130, 1133, 1134, 1137, 1138, 1140, 1143, 1144, 1146, 1148, 1150, 1153, 1156, 1158, 1159, 1161, 1164, 1166, 1168, 1172, 1175, 1177, 1178, 1181, 1182, 1183, 1186, 1187, 1189, 1192, 1193, 1196, 1198, 1199, 1201, 1202, 1204, 1208, 1209, 1211, 1214, 1215, 1220, 1221, 1224, 1225, 1229, 1232, 1233, 1237, 1242, 1245, 1249, 1252, 1253, 1258, 1262, 1263, 1266, 1270, 1271, 1272, 1274, 1276, 1279, 1280, 1282, 1284, 1287, 1288, 1292, 1297, 1300, 1304, 1307, 1309, 1312, 1313, 1314, 1315, 1320, 1324, 1325, 1328, 1330, 1332, 1335, 1339, 1340, 1342, 1343, 1346, 1353, 1355, 1358, 1360, 1363, 1365, 1368, 1371, 1375, 1377, 1379, 1384, 1385, 1386, 1389, 1391, 1394, 1395, 1396, 1397, 1402, 1404, 1407, 1411, 1412, 1413, 1414, 1417, 1419, 1421, 1425, 1426, 1427, 1430, 1431, 1432, 1437, 1438, 1439, 1441, 1444, 1448, 1449, 1450, 1452, 1454, 1458, 1463, 1466, 1468, 1469, 1471, 1474, 1475, 1478, 1482, 1483, 1485, 1489, 1490, 1491, 1493, 1495, 1496, 1497, 1500, 1504, 1505, 1507, 1511, 1512, 1513, 1515, 1517, 1518, 1520, 1522, 1524, 1526, 1528, 1530, 1538, 1539, 1541, 1543, 1551, 1552, 1556, 1561, 1564, 1565, 1568, 1572, 1573, 1575, 1577, 1579, 1581, 1582, 1586, 1587, 1591, 1593, 1597, 1602, 1605, 1607, 1609, 1610, 1613, 1617, 1618, 1620, 1622, 1623, 1624, 1627, 1631, 1632, 1634, 1636, 1638, 1640, 1641, 1645, 1646, 1650, 1652, 1655, 1656], "returns": [47, 60, 63, 84, 195, 286, 411, 472, 536, 731, 740, 887, 930, 1010, 1064, 1264, 1326, 1349], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 48, 61, 64, 155, 182, 194, 201, 245, 303, 318, 388, 398, 409, 415, 424, 429, 471, 542, 559, 629, 672, 707, 739, 799, 833, 886, 942, 1003, 1055, 1076, 1170, 1227, 1348, 1354, 1364, 1373, 1406, 1589, 1648, 1653], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "mail_transaction_expunge_guid_cmp", "text_snippet": "int mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t cons"}, {"node_id": 20, "universal_type": "function", "name": "mail_transaction_expunge_guid", "text_snippet": "mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t const st"}, {"node_id": 65, "universal_type": "function", "name": "mail_index_transaction_sort_expunges", "text_snippet": "void mail_index_transaction_sort_expunges(struct mail_index_transaction *t)\n{\n\tif (!t->expunges_nons"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_sort_expunges(struct mail_index_transaction *t)"}, {"node_id": 99, "universal_type": "function", "name": "ext_reset_update_atomic", "text_snippet": "static void\next_reset_update_atomic(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t e"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "ext_reset_update_atomic(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t expected_rese"}, {"node_id": 252, "universal_type": "function", "name": "transaction_update_atomic_reset_ids", "text_snippet": "static void\ntransaction_update_atomic_reset_ids(struct mail_index_transaction *t)\n{\n\tconst uint32_t "}, {"node_id": 254, "universal_type": "function", "name": "unknown", "text_snippet": "transaction_update_atomic_reset_ids(struct mail_index_transaction *t)"}, {"node_id": 327, "universal_type": "function", "name": "mail_transaction_drop_range", "text_snippet": "static unsigned int\nmail_transaction_drop_range(struct mail_index_transaction *t,\n\t\t\t struct mail"}, {"node_id": 331, "universal_type": "function", "name": "mail_index_flag_update", "text_snippet": "mail_transaction_drop_range(struct mail_index_transaction *t,\n\t\t\t struct mail_index_flag_update u"}, {"node_id": 474, "universal_type": "function", "name": "mail_index_transaction_finish_flag_updates", "text_snippet": "static void\nmail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)\n{\n\tconst st"}, {"node_id": 476, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)"}, {"node_id": 680, "universal_type": "function", "name": "mail_index_transaction_check_conflicts", "text_snippet": "static void\nmail_index_transaction_check_conflicts(struct mail_index_transaction *t)\n{\n\tuint32_t seq"}, {"node_id": 682, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_check_conflicts(struct mail_index_transaction *t)"}, {"node_id": 805, "universal_type": "function", "name": "mail_index_record", "text_snippet": "static uint32_t\nmail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)\n{\n\tco"}, {"node_id": 807, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)"}, {"node_id": 891, "universal_type": "function", "name": "mail_index_convert_to_uids", "text_snippet": "static void\nmail_index_convert_to_uids(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array)"}, {"node_id": 893, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_convert_to_uids(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array) *array)"}, {"node_id": 970, "universal_type": "function", "name": "unknown", "text_snippet": "static uint32_t\nget_nonexpunged_uid2(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_"}, {"node_id": 972, "universal_type": "function", "name": "unknown", "text_snippet": "get_nonexpunged_uid2(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_t seq1)"}, {"node_id": 1012, "universal_type": "function", "name": "mail_index_transaction_seq_range_to_uid", "text_snippet": "void mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE("}, {"node_id": 1014, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE(seq_r"}, {"node_id": 1234, "universal_type": "function", "name": "keyword_updates_convert_to_uids", "text_snippet": "static void keyword_updates_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_"}, {"node_id": 1236, "universal_type": "function", "name": "unknown", "text_snippet": "keyword_updates_convert_to_uids(struct mail_index_transaction *t)"}, {"node_id": 1289, "universal_type": "function", "name": "expunges_convert_to_uids", "text_snippet": "static void expunges_convert_to_uids(struct mail_index_transaction *t)\n{\n\tstruct mail_transaction_ex"}, {"node_id": 1291, "universal_type": "function", "name": "unknown", "text_snippet": "expunges_convert_to_uids(struct mail_index_transaction *t)"}, {"node_id": 1455, "universal_type": "function", "name": "mail_index_transaction_convert_to_uids", "text_snippet": "static void\nmail_index_transaction_convert_to_uids(struct mail_index_transaction *t)\n{\n\tARRAY_TYPE(s"}, {"node_id": 1457, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_convert_to_uids(struct mail_index_transaction *t)"}, {"node_id": 1553, "universal_type": "function", "name": "mail_index_transaction_finish_so_far", "text_snippet": "void mail_index_transaction_finish_so_far(struct mail_index_transaction *t)\n{\n\tif (array_is_created("}, {"node_id": 1555, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_finish_so_far(struct mail_index_transaction *t)"}, {"node_id": 1594, "universal_type": "function", "name": "mail_index_transaction_finish", "text_snippet": "void mail_index_transaction_finish(struct mail_index_transaction *t)\n{\n\tmail_index_transaction_finis"}, {"node_id": 1596, "universal_type": "function", "name": "unknown", "text_snippet": "mail_index_transaction_finish(struct mail_index_transaction *t)"}], "class_declarations": [{"node_id": 24, "universal_type": "class", "name": "mail_transaction_expunge_guid", "text_snippet": "struct mail_transaction_expunge_guid"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 31, "universal_type": "class", "name": "mail_transaction_expunge_guid", "text_snippet": "struct mail_transaction_expunge_guid"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 71, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 105, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 106, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 118, "universal_type": "class", "name": "mail_index_ext", "text_snippet": "struct mail_index_ext"}, {"node_id": 119, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 125, "universal_type": "class", "name": "mail_transaction_ext_reset", "text_snippet": "struct mail_transaction_ext_reset"}, {"node_id": 126, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 258, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 259, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 335, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 336, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 342, "universal_type": "class", "name": "mail_index_flag_update", "text_snippet": "struct mail_index_flag_update"}, {"node_id": 343, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 360, "universal_type": "class", "name": "seq_range", "text_snippet": "struct seq_range"}, {"node_id": 361, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 480, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 481, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 487, "universal_type": "class", "name": "mail_index_flag_update", "text_snippet": "struct mail_index_flag_update"}, {"node_id": 488, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 497, "universal_type": "class", "name": "mail_index_record", "text_snippet": "struct mail_index_record"}, {"node_id": 498, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 686, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 687, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 811, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 812, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 821, "universal_type": "class", "name": "mail_index_record", "text_snippet": "struct mail_index_record"}, {"node_id": 822, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 897, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 898, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 976, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 977, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1018, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1019, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1033, "universal_type": "class", "name": "seq_range", "text_snippet": "struct seq_range"}, {"node_id": 1034, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1240, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1241, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1247, "universal_type": "class", "name": "mail_index_transaction_keyword_update", "text_snippet": "struct mail_index_transaction_keyword_update"}, {"node_id": 1248, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1295, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1296, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1302, "universal_type": "class", "name": "mail_transaction_expunge_guid", "text_snippet": "struct mail_transaction_expunge_guid"}, {"node_id": 1303, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1461, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1462, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1559, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1560, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1600, "universal_type": "class", "name": "mail_index_transaction", "text_snippet": "struct mail_index_transaction"}, {"node_id": 1601, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"lib.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"array.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"ioloop.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"mail-index-private.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"mail-index-modseq.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"mail-index-transaction-private.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */\n\n#include \"lib.h\"\n#include \"array.h\"\n#include \"ioloop.h\"\n#include \"mail-index-private.h\"\n#include \"mail-index-modseq.h\"\n#include \"mail-index-transaction-private.h\"\n\nint mail_transaction_expunge_guid_cmp(const struct mail_transaction_expunge_guid *e1,\n\t\t\t\t const struct mail_transaction_expunge_guid *e2)\n{\n\tif (e1->uid < e2->uid)\n\t\treturn -1;\n\telse if (e1->uid > e2->uid)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n\nvoid mail_index_transaction_sort_expunges(struct mail_index_transaction *t)\n{\n\tif (!t->expunges_nonsorted)\n\t\treturn;\n\n\tarray_sort(&t->expunges, mail_transaction_expunge_guid_cmp);\n\tt->expunges_nonsorted = FALSE;\n}\n\nstatic void\next_reset_update_atomic(struct mail_index_transaction *t,\n\t\t\tuint32_t ext_id, uint32_t expected_reset_id)\n{\n\tconst struct mail_index_ext *map_ext;\n\tstruct mail_transaction_ext_reset *reset;\n\tuint32_t idx, reset_id;\n\n\tif (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {\n\t\t/* new extension */\n\t\treset_id = 1;\n\t} else {\n\t\tmap_ext = array_idx(&t->view->index->map->extensions, idx);\n\t\treset_id = map_ext->reset_id + 1;\n\t}\n\tif (reset_id != expected_reset_id) {\n\t\t/* ignore this extension update */\n\t\tmail_index_ext_set_reset_id(t, ext_id, 0);\n\t\treturn;\n\t}\n\n\tif (reset_id == 0)\n\t\treset_id++;\n\n\tarray_idx_set(&t->ext_reset_ids, ext_id, &reset_id);\n\n\t/* reseting existing data is optional */\n\tif (array_is_created(&t->ext_resets)) {\n\t\treset = array_idx_modifiable(&t->ext_resets, ext_id);\n\t\tif (reset->new_reset_id == (uint32_t)-1)\n\t\t\treset->new_reset_id = reset_id;\n\t}\n}\n\nstatic void\ntransaction_update_atomic_reset_ids(struct mail_index_transaction *t)\n{\n\tconst uint32_t *expected_reset_ids;\n\tunsigned int ext_id, count;\n\n\tif (!array_is_created(&t->ext_reset_atomic))\n\t\treturn;\n\n\texpected_reset_ids = array_get(&t->ext_reset_atomic, &count);\n\tfor (ext_id = 0; ext_id < count; ext_id++) {\n\t\tif (expected_reset_ids[ext_id] != 0) {\n\t\t\text_reset_update_atomic(t, ext_id,\n\t\t\t\t\t\texpected_reset_ids[ext_id]);\n\t\t}\n\t}\n}\n\nstatic unsigned int\nmail_transaction_drop_range(struct mail_index_transaction *t,\n\t\t\t struct mail_index_flag_update update,\n\t\t\t unsigned int update_idx,\n\t\t\t ARRAY_TYPE(seq_range) *keeps)\n{\n\tconst struct seq_range *keep_range;\n\tunsigned int i, keep_count;\n\n\tkeep_range = array_get(keeps, &keep_count);\n\tif (keep_count == 1 &&\n\t update.uid1 == keep_range[0].seq1 &&\n\t update.uid2 == keep_range[0].seq2) {\n\t\t/* evereything is kept */\n\t\treturn update_idx + 1;\n\t}\n\n\tarray_delete(&t->updates, update_idx, 1);\n\n\t/* add back all the updates we want to keep */\n\tfor (i = 0; i < keep_count; i++, update_idx++) {\n\t\tupdate.uid1 = keep_range[i].seq1;\n\t\tupdate.uid2 = keep_range[i].seq2;\n\t\tarray_insert(&t->updates, update_idx, &update, 1);\n\t}\n\treturn update_idx;\n}\n\nstatic void\nmail_index_transaction_finish_flag_updates(struct mail_index_transaction *t)\n{\n\tconst struct mail_index_flag_update *updates, *u;\n\tconst struct mail_index_record *rec;\n\tunsigned int i, count;\n\tARRAY_TYPE(seq_range) keeps;\n\tuint32_t seq;\n\n\tif (!t->drop_unnecessary_flag_updates || !array_is_created(&t->updates))\n\t\treturn;\n\n\tt_array_init(&keeps, 64);\n\tupdates = array_get(&t->updates, &count);\n\tfor (i = 0; i < count; ) {\n\t\t/* first get the list of changes to drop */\n\t\tu = &updates[i];\n\t\tarray_clear(&keeps);\n\t\tfor (seq = u->uid1; seq <= u->uid2; seq++) {\n\t\t\trec = mail_index_lookup(t->view, seq);\n\t\t\tif ((rec->flags & u->add_flags) != u->add_flags ||\n\t\t\t (rec->flags & u->remove_flags) != 0) {\n\t\t\t\t/* keep this change */\n\t\t\t\tseq_range_array_add(&keeps, seq);\n\t\t\t}\n\t\t}\n\t\ti = mail_transaction_drop_range(t, updates[i], i, &keeps);\n\t\tupdates = array_get(&t->updates, &count);\n\t}\n\n\tif (array_count(&t->updates) == 0)\n\t\tarray_free(&t->updates);\n}\n\nstatic void\nmail_index_transaction_check_conflicts(struct mail_index_transaction *t)\n{\n\tuint32_t seq;\n\tbool ret1, ret2;\n\n\ti_assert(t->max_modseq != 0);\n\ti_assert(t->conflict_seqs != NULL);\n\n\tif (t->max_modseq == mail_index_modseq_get_highest(t->view)) {\n\t\t/* no conflicts possible */\n\t\treturn;\n\t}\n\tif (t->min_flagupdate_seq == 0) {\n\t\t/* no flag updates */\n\t\treturn;\n\t}\n\n\tfor (seq = t->min_flagupdate_seq; seq <= t->max_flagupdate_seq; seq++) {\n\t\tif (mail_index_modseq_lookup(t->view, seq) > t->max_modseq) {\n\t\t\tret1 = mail_index_cancel_flag_updates(t, seq);\n\t\t\tret2 = mail_index_cancel_keyword_updates(t, seq);\n\t\t\tif (ret1 || ret2) {\n\t\t\t\tseq_range_array_add_with_init(t->conflict_seqs,\n\t\t\t\t\t\t\t 16, seq);\n\t\t\t}\n\t\t}\n\t}\n\tmail_index_transaction_set_log_updates(t);\n}\n\nstatic uint32_t\nmail_index_transaction_get_uid(struct mail_index_transaction *t, uint32_t seq)\n{\n\tconst struct mail_index_record *rec;\n\n\ti_assert(seq > 0);\n\n\tif (seq >= t->first_new_seq)\n\t\trec = mail_index_transaction_lookup(t, seq);\n\telse {\n\t\ti_assert(seq <= t->view->map->hdr.messages_count);\n\t\trec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);\n\t}\n\ti_assert(rec->uid != 0);\n\treturn rec->uid;\n}\n\nstatic void\nmail_index_convert_to_uids(struct mail_index_transaction *t,\n\t\t\t ARRAY_TYPE(seq_array) *array)\n{\n\tuint32_t *seq;\n\tunsigned int i, count;\n\n\tif (!array_is_created(array))\n\t\treturn;\n\n\tcount = array_count(array);\n\tfor (i = 0; i < count; i++) {\n\t\tseq = array_idx_modifiable(array, i);\n\t\t*seq = mail_index_transaction_get_uid(t, *seq);\n\t}\n}\n\nstatic uint32_t\nget_nonexpunged_uid2(struct mail_index_transaction *t,\n\t\t uint32_t uid1, uint32_t seq1)\n{\n\tseq1++;\n\n\twhile (mail_index_transaction_get_uid(t, seq1) == uid1 + 1) {\n\t\tseq1++;\n\t\tuid1++;\n\t}\n\treturn uid1;\n}\n\nvoid mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,\n\t\t\t\t\t ARRAY_TYPE(seq_range) *array)\n{\n\tstruct seq_range *range, *new_range;\n\tunsigned int i, count;\n\tuint32_t uid1, uid2, prev_uid = 0;\n\n\tif (!array_is_created(array))\n\t\treturn;\n\n\tcount = array_count(array);\n\tfor (i = 0; i < count; i++) {\n\t\trange = array_idx_modifiable(array, i);\n\n\t\tuid1 = mail_index_transaction_get_uid(t, range->seq1);\n\t\tuid2 = mail_index_transaction_get_uid(t, range->seq2);\n\t\ti_assert(uid1 > prev_uid);\n\t\tif (uid2 - uid1 == range->seq2 - range->seq1) {\n\t\t\t/* simple conversion */\n\t\t\trange->seq1 = uid1;\n\t\t\trange->seq2 = uid2;\n\t\t\tprev_uid = uid2;\n\t\t} else {\n\t\t\t/* remove expunged UIDs */\n\t\t\tnew_range = array_insert_space(array, i);\n\t\t\trange = array_idx_modifiable(array, i + 1);\n\t\t\tcount++;\n\n\t\t\tmemcpy(new_range, range, array->arr.element_size);\n\t\t\tnew_range->seq1 = uid1;\n\t\t\tnew_range->seq2 = get_nonexpunged_uid2(t, uid1,\n\t\t\t\t\t\t\t range->seq1);\n\t\t\ti_assert(new_range->seq2 < uid2);\n\n\t\t\t/* continue the range without the inserted seqs */\n\t\t\trange->seq1 += new_range->seq2 - new_range->seq1 + 1;\n\t\t\tprev_uid = new_range->seq2;\n\t\t}\n\t}\n}\n\nstatic void keyword_updates_convert_to_uids(struct mail_index_transaction *t)\n{\n struct mail_index_transaction_keyword_update *update;\n\n\tif (!array_is_created(&t->keyword_updates))\n\t\treturn;\n\n\tarray_foreach_modifiable(&t->keyword_updates, update) {\n\t\tmail_index_transaction_seq_range_to_uid(t, &update->add_seq);\n\t\tmail_index_transaction_seq_range_to_uid(t, &update->remove_seq);\n\t}\n}\n\nstatic void expunges_convert_to_uids(struct mail_index_transaction *t)\n{\n\tstruct mail_transaction_expunge_guid *expunges;\n\tunsigned int src, dest, count;\n\n\tif (!array_is_created(&t->expunges))\n\t\treturn;\n\n\tmail_index_transaction_sort_expunges(t);\n\n\texpunges = array_get_modifiable(&t->expunges, &count);\n\tif (count == 0)\n\t\treturn;\n\n\t/* convert uids and drop duplicates */\n\texpunges[0].uid = mail_index_transaction_get_uid(t, expunges[0].uid);\n\tfor (src = dest = 1; src < count; src++) {\n\t\texpunges[dest].uid =\n\t\t\tmail_index_transaction_get_uid(t, expunges[src].uid);\n\t\tif (expunges[dest-1].uid != expunges[dest].uid) {\n\t\t\tif (dest != src) {\n\t\t\t\tmemcpy(expunges[dest].guid_128, expunges[src].guid_128,\n\t\t\t\t sizeof(expunges[dest].guid_128));\n\t\t\t}\n\t\t\tdest++;\n\t\t}\n\t}\n\tarray_delete(&t->expunges, dest, count-dest);\n}\n\nstatic void\nmail_index_transaction_convert_to_uids(struct mail_index_transaction *t)\n{\n\tARRAY_TYPE(seq_array) *update;\n\n\tif (array_is_created(&t->ext_rec_updates)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_updates, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}\n\tif (array_is_created(&t->ext_rec_atomics)) {\n\t\tarray_foreach_modifiable(&t->ext_rec_atomics, update)\n\t\t\tmail_index_convert_to_uids(t, update);\n\t}\n\n keyword_updates_convert_to_uids(t);\n\texpunges_convert_to_uids(t);\n\tmail_index_convert_to_uids(t, (void *)&t->modseq_updates);\n\tmail_index_transaction_seq_range_to_uid(t, (void *)&t->updates);\n}\n\nvoid mail_index_transaction_finish_so_far(struct mail_index_transaction *t)\n{\n\tif (array_is_created(&t->appends))\n\t\tmail_index_transaction_sort_appends(t);\n\tmail_index_transaction_finish_flag_updates(t);\n\tif (t->max_modseq != 0)\n\t\tmail_index_transaction_check_conflicts(t);\n}\n\nvoid mail_index_transaction_finish(struct mail_index_transaction *t)\n{\n\tmail_index_transaction_finish_so_far(t);\n\n\tif (array_is_created(&t->appends))\n\t\tmail_index_update_day_headers(t, ioloop_time);\n\tif (array_is_created(&t->ext_reset_atomic))\n\t\ttransaction_update_atomic_reset_ids(t);\n\t/* finally convert all sequences to UIDs before we write them,\n\t but after we've checked and removed conflicts */\n\tmail_index_transaction_convert_to_uids(t);\n\n\t/* and kind of ugly way to update highest modseq */\n\tif (t->min_highest_modseq != 0)\n\t\tmail_index_update_modseq(t, 0, t->min_highest_modseq);\n}\n"}
131
c
// // QBChatDialogResult.h // Quickblox // // Created by <NAME> on 14/05/2014. // Copyright (c) 2014 QuickBlox. All rights reserved. // #import "Result.h" /** QBChatDialogResult class declaration. */ /** Overview */ /** This class is an instance, which will be returned to the user after he made ​​the request for create/update dialog. */ @class QBChatDialog; @interface QBChatDialogResult : Result /** An instance of QBChatDialog */ @property (nonatomic, readonly) QBChatDialog *dialog; @end
30.06
16
(translation_unit) "//\n// QBChatDialogResult.h\n// Quickblox\n//\n// Created by <NAME> on 14/05/2014.\n// Copyright (c) 2014 QuickBlox. All rights reserved.\n//\n\n#import "Result.h"\n\n/** QBChatDialogResult class declaration. */\n/** Overview */\n/** This class is an instance, which will be returned to the user after he made ​​the request for create/update dialog. */\n\n@class QBChatDialog;\n@interface QBChatDialogResult : Result\n\n/** An instance of QBChatDialog */\n@property (nonatomic, readonly) QBChatDialog *dialog;\n\n@end\n" (comment) "//" (comment) "// QBChatDialogResult.h" (comment) "// Quickblox" (comment) "//" (comment) "// Created by <NAME> on 14/05/2014." (comment) "// Copyright (c) 2014 QuickBlox. All rights reserved." (comment) "//" (preproc_call) "#import "Result.h"\n" (preproc_directive) "#import" (preproc_arg) ""Result.h"" (comment) "/** QBChatDialogResult class declaration. */" (comment) "/** Overview */" (comment) "/** This class is an instance, which will be returned to the user after he made ​​the request for create/update dialog. */\n\n@c" (ERROR) "s" (ERROR) "s" (declaration) "s QBChatDialog;\n@in" (type_identifier) "s QBC" (identifier) "atDialog;\n@i" (;) "n" (ERROR) "erface QBChatDialogResult : Result\n\n/** An instance of QBChatDialog */\n@property (nonatomic, readonly) QBChatDialog *dialog;\n\n@end\n" (ERROR) "e" (type_identifier) "rface QBC" (ERROR) "atDialogResult : Result\n\n/** An instance of QBChatDialog */\n@prop" (identifier) "atDialogResult : R" (:) "s" (identifier) "lt\n\n/*" (comment) "An instance of QBChatDialog */\n@pr" (ERROR) "p" (function_declarator) "erty (nonatomic, readonly) QBC" (identifier) "erty (no" (parameter_list) "atomic, readonly) QBC" (() "a" (identifier) "tomic, re" (,) "a" (identifier) "only) QB" ()) "C" (declaration) "atDialog *dialog;\n\n@e" (type_identifier) "atDialog *di" (pointer_declarator) "log;\n\n@" (*) "l" (identifier) "og;\n\n@" (;) "e" (ERROR) "\n" (ERROR) "\n" (identifier) ""
46
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.06, "nodes": 28, "errors": 0, "source_hash": "e7ae2c42695d1d449ce47b19706c3c41730be9ea1d93b92c06727d6821015b5e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"Result.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"Result.h\"", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 18}}, {"id": 3, "type": "ERROR", "text": "s", "parent": null, "children": [4], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 4, "type": "ERROR", "text": "s", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 5, "type": "declaration", "text": "s QBChatDialog;\n@in", "parent": null, "children": [6, 7], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 20}}, {"id": 6, "type": "type_identifier", "text": "s QBC", "parent": 5, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 6}}, {"id": 7, "type": "identifier", "text": "atDialog;\n@i", "parent": 5, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 19}}, {"id": 8, "type": "ERROR", "text": "erface QBChatDialogResult : Result\n\n/** An instance of QBChatDialog */\n@property (nonatomic, readonly) QBChatDialog *dialog;\n\n@end\n", "parent": null, "children": [9, 10, 11, 15, 20, 25, 27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 9, "type": "ERROR", "text": "e", "parent": 8, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "rface QBC", "parent": 8, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 10}}, {"id": 11, "type": "ERROR", "text": "atDialogResult : Result\n\n/** An instance of QBChatDialog */\n@prop", "parent": 8, "children": [12, 13, 14], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 18, "column": 1}}, {"id": 12, "type": "identifier", "text": "atDialogResult : R", "parent": 11, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 29}}, {"id": 13, "type": "identifier", "text": "lt\n\n/*", "parent": 11, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 38}}, {"id": 14, "type": "ERROR", "text": "p", "parent": 11, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 15, "type": "function_declarator", "text": "erty (nonatomic, readonly) QBC", "parent": 8, "children": [16, 17], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 31}}, {"id": 16, "type": "identifier", "text": "erty (no", "parent": 15, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 17, "type": "parameter_list", "text": "atomic, readonly) QBC", "parent": 15, "children": [18, 19], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 31}}, {"id": 18, "type": "identifier", "text": "tomic, re", "parent": 17, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 19, "type": "identifier", "text": "only) QB", "parent": 17, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 30}}, {"id": 20, "type": "declaration", "text": "atDialog *dialog;\n\n@e", "parent": 8, "children": [21, 22], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 53}}, {"id": 21, "type": "type_identifier", "text": "atDialog *di", "parent": 20, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 44}}, {"id": 22, "type": "pointer_declarator", "text": "log;\n\n@", "parent": 20, "children": [23, 24], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 52}}, {"id": 23, "type": "*", "text": "l", "parent": 22, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 46}}, {"id": 24, "type": "identifier", "text": "og;\n\n@", "parent": 22, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 52}}, {"id": 25, "type": "ERROR", "text": "\n", "parent": 8, "children": [26], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 26, "type": "ERROR", "text": "\n", "parent": 25, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 27, "type": "identifier", "text": "", "parent": 8, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 4}}]}, "node_categories": {"declarations": {"functions": [15], "variables": [5, 20], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 7, 10, 12, 13, 16, 18, 19, 21, 24, 27], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "erty (nonatomic, readonly) QBC"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// QBChatDialogResult.h\n// Quickblox\n//\n// Created by <NAME> on 14/05/2014.\n// Copyright (c) 2014 QuickBlox. All rights reserved.\n//\n\n#import \"Result.h\"\n\n/** QBChatDialogResult class declaration. */\n/** Overview */\n/** This class is an instance, which will be returned to the user after he made \u200b\u200bthe request for create/update dialog. */\n\n@class QBChatDialog;\n@interface QBChatDialogResult : Result\n\n/** An instance of QBChatDialog */\n@property (nonatomic, readonly) QBChatDialog *dialog;\n\n@end\n"}
132
c
@import Security; extern const int includedConst;
24
2
(translation_unit) "@import Security;\n\nextern const int includedConst;\n" (ERROR) "@" (ERROR) "@" (declaration) "import Security;" (type_identifier) "import" (identifier) "Security" (;) ";" (declaration) "extern const int includedConst;" (storage_class_specifier) "extern" (extern) "extern" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "includedConst" (;) ";"
15
2
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 24.0, "nodes": 9, "errors": 0, "source_hash": "1b86820a58d10add3fbb7074d7080167896fa47c7ada06465c4b3499e5027568", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 2, "type": "declaration", "text": "import Security;", "parent": null, "children": [3], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "identifier", "text": "Security", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 16}}, {"id": 4, "type": "declaration", "text": "extern const int includedConst;", "parent": null, "children": [5, 7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 31}}, {"id": 5, "type": "storage_class_specifier", "text": "extern", "parent": 4, "children": [6], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 6, "type": "extern", "text": "extern", "parent": 5, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 4, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 16}}, {"id": 8, "type": "identifier", "text": "includedConst", "parent": 4, "children": [], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 30}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 4], "classes": [5], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 8], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 5, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "@import Security;\n\nextern const int includedConst;\n"}
133
c
/* ** <NAME> "Damdoshi" ** Hanged Bunny Studio 2014-2016 ** ** */ #include <signal.h> #include <stdlib.h> #include <assert.h> #include <lapin.h> t_bunny_response loop(void *data) { t_bunny_window *win = data; t_bunny_position screen; t_bunny_position tmp; screen = bunny_get_screen_size(); tmp.x = rand() % screen.x * 0.2 + 50; tmp.y = rand() % screen.y * 0.2 + 50; bunny_resize_window(win, tmp); tmp.x = rand() % (screen.x - win->buffer.width); tmp.y = rand() % (screen.y - win->buffer.height); bunny_move_window(win, tmp); bunny_clear(&win->buffer, rand() | BLACK); bunny_display(win); return (GO_ON); } t_bunny_response click(t_bunny_event_state state, t_bunny_mouse_button button, void *data) { (void)button; (void)data; if (state == GO_UP) return (EXIT_ON_SUCCESS); return (GO_ON); } int main(void) { t_bunny_window *win; t_bunny_music *music; printl("Click on the window to stop this insanity."); assert(win = bunny_start(800, 600, false, "Never gonna give you up!")); assert(music = bunny_load_music("music.ogg")); signal(SIGINT, SIG_IGN); bunny_sound_play(&music->sound); bunny_set_click_response(click); bunny_set_loop_main_function(loop); bunny_loop(win, 5, win); bunny_sound_stop(&music->sound); bunny_stop(win); return (EXIT_SUCCESS); }
24.81
52
(translation_unit) "/*\n** <NAME> "Damdoshi"\n** Hanged Bunny Studio 2014-2016\n**\n** \n*/\n\n#include <signal.h>\n#include <stdlib.h>\n#include <assert.h>\n#include <lapin.h>\n\nt_bunny_response loop(void *data)\n{\n t_bunny_window *win = data;\n t_bunny_position screen;\n t_bunny_position tmp;\n\n screen = bunny_get_screen_size();\n tmp.x = rand() % screen.x * 0.2 + 50;\n tmp.y = rand() % screen.y * 0.2 + 50;\n bunny_resize_window(win, tmp);\n tmp.x = rand() % (screen.x - win->buffer.width);\n tmp.y = rand() % (screen.y - win->buffer.height);\n bunny_move_window(win, tmp);\n bunny_clear(&win->buffer, rand() | BLACK);\n bunny_display(win);\n return (GO_ON);\n}\n\nt_bunny_response click(t_bunny_event_state state,\n t_bunny_mouse_button button,\n void *data)\n{\n (void)button;\n (void)data;\n if (state == GO_UP)\n return (EXIT_ON_SUCCESS);\n return (GO_ON);\n}\n\nint main(void)\n{\n t_bunny_window *win;\n t_bunny_music *music;\n\n printl("Click on the window to stop this insanity.");\n assert(win = bunny_start(800, 600, false, "Never gonna give you up!"));\n assert(music = bunny_load_music("music.ogg"));\n signal(SIGINT, SIG_IGN);\n bunny_sound_play(&music->sound);\n bunny_set_click_response(click);\n bunny_set_loop_main_function(loop);\n bunny_loop(win, 5, win);\n bunny_sound_stop(&music->sound);\n bunny_stop(win);\n return (EXIT_SUCCESS);\n}\n" (comment) "/*\n** <NAME> "Damdoshi"\n** Hanged Bunny Studio 2014-2016\n**\n** \n*/" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_lib_string) "<signal.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <lapin.h>\n" (#include) "#include" (system_lib_string) "<lapin.h>" (function_definition) "t_bunny_response loop(void *data)\n{\n t_bunny_window *win = data;\n t_bunny_position screen;\n t_bunny_position tmp;\n\n screen = bunny_get_screen_size();\n tmp.x = rand() % screen.x * 0.2 + 50;\n tmp.y = rand() % screen.y * 0.2 + 50;\n bunny_resize_window(win, tmp);\n tmp.x = rand() % (screen.x - win->buffer.width);\n tmp.y = rand() % (screen.y - win->buffer.height);\n bunny_move_window(win, tmp);\n bunny_clear(&win->buffer, rand() | BLACK);\n bunny_display(win);\n return (GO_ON);\n}" (type_identifier) "t_bunny_response" (function_declarator) "loop(void *data)" (identifier) "loop" (parameter_list) "(void *data)" (() "(" (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (compound_statement) "{\n t_bunny_window *win = data;\n t_bunny_position screen;\n t_bunny_position tmp;\n\n screen = bunny_get_screen_size();\n tmp.x = rand() % screen.x * 0.2 + 50;\n tmp.y = rand() % screen.y * 0.2 + 50;\n bunny_resize_window(win, tmp);\n tmp.x = rand() % (screen.x - win->buffer.width);\n tmp.y = rand() % (screen.y - win->buffer.height);\n bunny_move_window(win, tmp);\n bunny_clear(&win->buffer, rand() | BLACK);\n bunny_display(win);\n return (GO_ON);\n}" ({) "{" (declaration) "t_bunny_window *win = data;" (type_identifier) "t_bunny_window" (init_declarator) "*win = data" (pointer_declarator) "*win" (*) "*" (identifier) "win" (=) "=" (identifier) "data" (;) ";" (declaration) "t_bunny_position screen;" (type_identifier) "t_bunny_position" (identifier) "screen" (;) ";" (declaration) "t_bunny_position tmp;" (type_identifier) "t_bunny_position" (identifier) "tmp" (;) ";" (expression_statement) "screen = bunny_get_screen_size();" (assignment_expression) "screen = bunny_get_screen_size()" (identifier) "screen" (=) "=" (call_expression) "bunny_get_screen_size()" (identifier) "bunny_get_screen_size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "tmp.x = rand() % screen.x * 0.2 + 50;" (assignment_expression) "tmp.x = rand() % screen.x * 0.2 + 50" (field_expression) "tmp.x" (identifier) "tmp" (.) "." (field_identifier) "x" (=) "=" (binary_expression) "rand() % screen.x * 0.2 + 50" (binary_expression) "rand() % screen.x * 0.2" (binary_expression) "rand() % screen.x" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (field_expression) "screen.x" (identifier) "screen" (.) "." (field_identifier) "x" (*) "*" (number_literal) "0.2" (+) "+" (number_literal) "50" (;) ";" (expression_statement) "tmp.y = rand() % screen.y * 0.2 + 50;" (assignment_expression) "tmp.y = rand() % screen.y * 0.2 + 50" (field_expression) "tmp.y" (identifier) "tmp" (.) "." (field_identifier) "y" (=) "=" (binary_expression) "rand() % screen.y * 0.2 + 50" (binary_expression) "rand() % screen.y * 0.2" (binary_expression) "rand() % screen.y" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (field_expression) "screen.y" (identifier) "screen" (.) "." (field_identifier) "y" (*) "*" (number_literal) "0.2" (+) "+" (number_literal) "50" (;) ";" (expression_statement) "bunny_resize_window(win, tmp);" (call_expression) "bunny_resize_window(win, tmp)" (identifier) "bunny_resize_window" (argument_list) "(win, tmp)" (() "(" (identifier) "win" (,) "," (identifier) "tmp" ()) ")" (;) ";" (expression_statement) "tmp.x = rand() % (screen.x - win->buffer.width);" (assignment_expression) "tmp.x = rand() % (screen.x - win->buffer.width)" (field_expression) "tmp.x" (identifier) "tmp" (.) "." (field_identifier) "x" (=) "=" (binary_expression) "rand() % (screen.x - win->buffer.width)" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (parenthesized_expression) "(screen.x - win->buffer.width)" (() "(" (binary_expression) "screen.x - win->buffer.width" (field_expression) "screen.x" (identifier) "screen" (.) "." (field_identifier) "x" (-) "-" (field_expression) "win->buffer.width" (field_expression) "win->buffer" (identifier) "win" (->) "->" (field_identifier) "buffer" (.) "." (field_identifier) "width" ()) ")" (;) ";" (expression_statement) "tmp.y = rand() % (screen.y - win->buffer.height);" (assignment_expression) "tmp.y = rand() % (screen.y - win->buffer.height)" (field_expression) "tmp.y" (identifier) "tmp" (.) "." (field_identifier) "y" (=) "=" (binary_expression) "rand() % (screen.y - win->buffer.height)" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (%) "%" (parenthesized_expression) "(screen.y - win->buffer.height)" (() "(" (binary_expression) "screen.y - win->buffer.height" (field_expression) "screen.y" (identifier) "screen" (.) "." (field_identifier) "y" (-) "-" (field_expression) "win->buffer.height" (field_expression) "win->buffer" (identifier) "win" (->) "->" (field_identifier) "buffer" (.) "." (field_identifier) "height" ()) ")" (;) ";" (expression_statement) "bunny_move_window(win, tmp);" (call_expression) "bunny_move_window(win, tmp)" (identifier) "bunny_move_window" (argument_list) "(win, tmp)" (() "(" (identifier) "win" (,) "," (identifier) "tmp" ()) ")" (;) ";" (expression_statement) "bunny_clear(&win->buffer, rand() | BLACK);" (call_expression) "bunny_clear(&win->buffer, rand() | BLACK)" (identifier) "bunny_clear" (argument_list) "(&win->buffer, rand() | BLACK)" (() "(" (pointer_expression) "&win->buffer" (&) "&" (field_expression) "win->buffer" (identifier) "win" (->) "->" (field_identifier) "buffer" (,) "," (binary_expression) "rand() | BLACK" (call_expression) "rand()" (identifier) "rand" (argument_list) "()" (() "(" ()) ")" (|) "|" (identifier) "BLACK" ()) ")" (;) ";" (expression_statement) "bunny_display(win);" (call_expression) "bunny_display(win)" (identifier) "bunny_display" (argument_list) "(win)" (() "(" (identifier) "win" ()) ")" (;) ";" (return_statement) "return (GO_ON);" (return) "return" (parenthesized_expression) "(GO_ON)" (() "(" (identifier) "GO_ON" ()) ")" (;) ";" (}) "}" (function_definition) "t_bunny_response click(t_bunny_event_state state,\n t_bunny_mouse_button button,\n void *data)\n{\n (void)button;\n (void)data;\n if (state == GO_UP)\n return (EXIT_ON_SUCCESS);\n return (GO_ON);\n}" (type_identifier) "t_bunny_response" (function_declarator) "click(t_bunny_event_state state,\n t_bunny_mouse_button button,\n void *data)" (identifier) "click" (parameter_list) "(t_bunny_event_state state,\n t_bunny_mouse_button button,\n void *data)" (() "(" (parameter_declaration) "t_bunny_event_state state" (type_identifier) "t_bunny_event_state" (identifier) "state" (,) "," (parameter_declaration) "t_bunny_mouse_button button" (type_identifier) "t_bunny_mouse_button" (identifier) "button" (,) "," (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (compound_statement) "{\n (void)button;\n (void)data;\n if (state == GO_UP)\n return (EXIT_ON_SUCCESS);\n return (GO_ON);\n}" ({) "{" (expression_statement) "(void)button;" (cast_expression) "(void)button" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "button" (;) ";" (expression_statement) "(void)data;" (cast_expression) "(void)data" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "data" (;) ";" (if_statement) "if (state == GO_UP)\n return (EXIT_ON_SUCCESS);" (if) "if" (parenthesized_expression) "(state == GO_UP)" (() "(" (binary_expression) "state == GO_UP" (identifier) "state" (==) "==" (identifier) "GO_UP" ()) ")" (return_statement) "return (EXIT_ON_SUCCESS);" (return) "return" (parenthesized_expression) "(EXIT_ON_SUCCESS)" (() "(" (identifier) "EXIT_ON_SUCCESS" ()) ")" (;) ";" (return_statement) "return (GO_ON);" (return) "return" (parenthesized_expression) "(GO_ON)" (() "(" (identifier) "GO_ON" ()) ")" (;) ";" (}) "}" (function_definition) "int main(void)\n{\n t_bunny_window *win;\n t_bunny_music *music;\n\n printl("Click on the window to stop this insanity.");\n assert(win = bunny_start(800, 600, false, "Never gonna give you up!"));\n assert(music = bunny_load_music("music.ogg"));\n signal(SIGINT, SIG_IGN);\n bunny_sound_play(&music->sound);\n bunny_set_click_response(click);\n bunny_set_loop_main_function(loop);\n bunny_loop(win, 5, win);\n bunny_sound_stop(&music->sound);\n bunny_stop(win);\n return (EXIT_SUCCESS);\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n t_bunny_window *win;\n t_bunny_music *music;\n\n printl("Click on the window to stop this insanity.");\n assert(win = bunny_start(800, 600, false, "Never gonna give you up!"));\n assert(music = bunny_load_music("music.ogg"));\n signal(SIGINT, SIG_IGN);\n bunny_sound_play(&music->sound);\n bunny_set_click_response(click);\n bunny_set_loop_main_function(loop);\n bunny_loop(win, 5, win);\n bunny_sound_stop(&music->sound);\n bunny_stop(win);\n return (EXIT_SUCCESS);\n}" ({) "{" (declaration) "t_bunny_window *win;" (type_identifier) "t_bunny_window" (pointer_declarator) "*win" (*) "*" (identifier) "win" (;) ";" (declaration) "t_bunny_music *music;" (type_identifier) "t_bunny_music" (pointer_declarator) "*music" (*) "*" (identifier) "music" (;) ";" (expression_statement) "printl("Click on the window to stop this insanity.");" (call_expression) "printl("Click on the window to stop this insanity.")" (identifier) "printl" (argument_list) "("Click on the window to stop this insanity.")" (() "(" (string_literal) ""Click on the window to stop this insanity."" (") """ (string_content) "Click on the window to stop this insanity." (") """ ()) ")" (;) ";" (expression_statement) "assert(win = bunny_start(800, 600, false, "Never gonna give you up!"));" (call_expression) "assert(win = bunny_start(800, 600, false, "Never gonna give you up!"))" (identifier) "assert" (argument_list) "(win = bunny_start(800, 600, false, "Never gonna give you up!"))" (() "(" (assignment_expression) "win = bunny_start(800, 600, false, "Never gonna give you up!")" (identifier) "win" (=) "=" (call_expression) "bunny_start(800, 600, false, "Never gonna give you up!")" (identifier) "bunny_start" (argument_list) "(800, 600, false, "Never gonna give you up!")" (() "(" (number_literal) "800" (,) "," (number_literal) "600" (,) "," (false) "false" (,) "," (string_literal) ""Never gonna give you up!"" (") """ (string_content) "Never gonna give you up!" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "assert(music = bunny_load_music("music.ogg"));" (call_expression) "assert(music = bunny_load_music("music.ogg"))" (identifier) "assert" (argument_list) "(music = bunny_load_music("music.ogg"))" (() "(" (assignment_expression) "music = bunny_load_music("music.ogg")" (identifier) "music" (=) "=" (call_expression) "bunny_load_music("music.ogg")" (identifier) "bunny_load_music" (argument_list) "("music.ogg")" (() "(" (string_literal) ""music.ogg"" (") """ (string_content) "music.ogg" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "signal(SIGINT, SIG_IGN);" (call_expression) "signal(SIGINT, SIG_IGN)" (identifier) "signal" (argument_list) "(SIGINT, SIG_IGN)" (() "(" (identifier) "SIGINT" (,) "," (identifier) "SIG_IGN" ()) ")" (;) ";" (expression_statement) "bunny_sound_play(&music->sound);" (call_expression) "bunny_sound_play(&music->sound)" (identifier) "bunny_sound_play" (argument_list) "(&music->sound)" (() "(" (pointer_expression) "&music->sound" (&) "&" (field_expression) "music->sound" (identifier) "music" (->) "->" (field_identifier) "sound" ()) ")" (;) ";" (expression_statement) "bunny_set_click_response(click);" (call_expression) "bunny_set_click_response(click)" (identifier) "bunny_set_click_response" (argument_list) "(click)" (() "(" (identifier) "click" ()) ")" (;) ";" (expression_statement) "bunny_set_loop_main_function(loop);" (call_expression) "bunny_set_loop_main_function(loop)" (identifier) "bunny_set_loop_main_function" (argument_list) "(loop)" (() "(" (identifier) "loop" ()) ")" (;) ";" (expression_statement) "bunny_loop(win, 5, win);" (call_expression) "bunny_loop(win, 5, win)" (identifier) "bunny_loop" (argument_list) "(win, 5, win)" (() "(" (identifier) "win" (,) "," (number_literal) "5" (,) "," (identifier) "win" ()) ")" (;) ";" (expression_statement) "bunny_sound_stop(&music->sound);" (call_expression) "bunny_sound_stop(&music->sound)" (identifier) "bunny_sound_stop" (argument_list) "(&music->sound)" (() "(" (pointer_expression) "&music->sound" (&) "&" (field_expression) "music->sound" (identifier) "music" (->) "->" (field_identifier) "sound" ()) ")" (;) ";" (expression_statement) "bunny_stop(win);" (call_expression) "bunny_stop(win)" (identifier) "bunny_stop" (argument_list) "(win)" (() "(" (identifier) "win" ()) ")" (;) ";" (return_statement) "return (EXIT_SUCCESS);" (return) "return" (parenthesized_expression) "(EXIT_SUCCESS)" (() "(" (identifier) "EXIT_SUCCESS" ()) ")" (;) ";" (}) "}"
445
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.81, "nodes": 271, "errors": 0, "source_hash": "6e476f7264f6d7c7109c17a950ed82fa89801718e4280085d94c156602248c23", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include\t\t<signal.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<signal.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include\t\t<stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include\t\t<assert.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<assert.h>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include\t\t<lapin.h>\n", "parent": null, "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": "<lapin.h>", "parent": 9, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 19}}, {"id": 12, "type": "function_definition", "text": "t_bunny_response\tloop(void\t\t*data)\n{\n t_bunny_window\t*win = data;\n t_bunny_position\tscreen;\n t_bunny_position\ttmp;\n\n screen = bunny_get_screen_size();\n tmp.x = rand() % screen.x * 0.2 + 50;\n tmp.y = rand() % screen.y * 0.2 + 50;\n bunny_resize_window(win, tmp);\n tmp.x = rand() % (screen.x - win->buffer.width);\n tmp.y = rand() % (screen.y - win->buffer.height);\n bunny_move_window(win, tmp);\n bunny_clear(&win->buffer, rand() | BLACK);\n bunny_display(win);\n return (GO_ON);\n}", "parent": null, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "t_bunny_response", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 16}}, {"id": 14, "type": "function_declarator", "text": "loop(void\t\t*data)", "parent": 12, "children": [15, 16], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 34}}, {"id": 15, "type": "identifier", "text": "loop", "parent": 14, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 21}}, {"id": 16, "type": "parameter_list", "text": "(void\t\t*data)", "parent": 14, "children": [17], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 34}}, {"id": 17, "type": "parameter_declaration", "text": "void\t\t*data", "parent": 16, "children": [18, 19], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 33}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 26}}, {"id": 19, "type": "pointer_declarator", "text": "*data", "parent": 17, "children": [20, 21], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 33}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 29}}, {"id": 21, "type": "identifier", "text": "data", "parent": 19, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 33}}, {"id": 22, "type": "declaration", "text": "t_bunny_window\t*win = data;", "parent": 12, "children": [23, 24], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 29}}, {"id": 23, "type": "type_identifier", "text": "t_bunny_window", "parent": 22, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 16}}, {"id": 24, "type": "init_declarator", "text": "*win = data", "parent": 22, "children": [25, 28, 29], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 28}}, {"id": 25, "type": "pointer_declarator", "text": "*win", "parent": 24, "children": [26, 27], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 21}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 27, "type": "identifier", "text": "win", "parent": 25, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 21}}, {"id": 28, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 29, "type": "identifier", "text": "data", "parent": 24, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 28}}, {"id": 30, "type": "declaration", "text": "t_bunny_position\tscreen;", "parent": 12, "children": [31, 32], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 26}}, {"id": 31, "type": "type_identifier", "text": "t_bunny_position", "parent": 30, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 18}}, {"id": 32, "type": "identifier", "text": "screen", "parent": 30, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 25}}, {"id": 33, "type": "declaration", "text": "t_bunny_position\ttmp;", "parent": 12, "children": [34, 35], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 23}}, {"id": 34, "type": "type_identifier", "text": "t_bunny_position", "parent": 33, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 18}}, {"id": 35, "type": "identifier", "text": "tmp", "parent": 33, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 22}}, {"id": 36, "type": "assignment_expression", "text": "screen = bunny_get_screen_size()", "parent": 12, "children": [37, 38, 39], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 34}}, {"id": 37, "type": "identifier", "text": "screen", "parent": 36, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 8}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 10}}, {"id": 39, "type": "call_expression", "text": "bunny_get_screen_size()", "parent": 36, "children": [40, 41], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 34}}, {"id": 40, "type": "identifier", "text": "bunny_get_screen_size", "parent": 39, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 32}}, {"id": 41, "type": "argument_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 34}}, {"id": 42, "type": "assignment_expression", "text": "tmp.x = rand() % screen.x * 0.2 + 50", "parent": 12, "children": [43, 46, 47], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 38}}, {"id": 43, "type": "field_expression", "text": "tmp.x", "parent": 42, "children": [44, 45], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 7}}, {"id": 44, "type": "identifier", "text": "tmp", "parent": 43, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 5}}, {"id": 45, "type": "field_identifier", "text": "x", "parent": 43, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 46, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 47, "type": "binary_expression", "text": "rand() % screen.x * 0.2 + 50", "parent": 42, "children": [48, 59, 60], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 38}}, {"id": 48, "type": "binary_expression", "text": "rand() % screen.x * 0.2", "parent": 47, "children": [49, 57, 58], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 33}}, {"id": 49, "type": "binary_expression", "text": "rand() % screen.x", "parent": 48, "children": [50, 53, 54], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 27}}, {"id": 50, "type": "call_expression", "text": "rand()", "parent": 49, "children": [51, 52], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 16}}, {"id": 51, "type": "identifier", "text": "rand", "parent": 50, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 52, "type": "argument_list", "text": "()", "parent": 50, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 16}}, {"id": 53, "type": "%", "text": "%", "parent": 49, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 54, "type": "field_expression", "text": "screen.x", "parent": 49, "children": [55, 56], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 27}}, {"id": 55, "type": "identifier", "text": "screen", "parent": 54, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 25}}, {"id": 56, "type": "field_identifier", "text": "x", "parent": 54, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 57, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 29}}, {"id": 58, "type": "number_literal", "text": "0.2", "parent": 48, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 33}}, {"id": 59, "type": "+", "text": "+", "parent": 47, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 35}}, {"id": 60, "type": "number_literal", "text": "50", "parent": 47, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 38}}, {"id": 61, "type": "assignment_expression", "text": "tmp.y = rand() % screen.y * 0.2 + 50", "parent": 12, "children": [62, 65, 66], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 38}}, {"id": 62, "type": "field_expression", "text": "tmp.y", "parent": 61, "children": [63, 64], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 7}}, {"id": 63, "type": "identifier", "text": "tmp", "parent": 62, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 5}}, {"id": 64, "type": "field_identifier", "text": "y", "parent": 62, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 7}}, {"id": 65, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 66, "type": "binary_expression", "text": "rand() % screen.y * 0.2 + 50", "parent": 61, "children": [67, 78, 79], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 38}}, {"id": 67, "type": "binary_expression", "text": "rand() % screen.y * 0.2", "parent": 66, "children": [68, 76, 77], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 33}}, {"id": 68, "type": "binary_expression", "text": "rand() % screen.y", "parent": 67, "children": [69, 72, 73], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 27}}, {"id": 69, "type": "call_expression", "text": "rand()", "parent": 68, "children": [70, 71], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 16}}, {"id": 70, "type": "identifier", "text": "rand", "parent": 69, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 71, "type": "argument_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 16}}, {"id": 72, "type": "%", "text": "%", "parent": 68, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 73, "type": "field_expression", "text": "screen.y", "parent": 68, "children": [74, 75], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 27}}, {"id": 74, "type": "identifier", "text": "screen", "parent": 73, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 25}}, {"id": 75, "type": "field_identifier", "text": "y", "parent": 73, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 27}}, {"id": 76, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 29}}, {"id": 77, "type": "number_literal", "text": "0.2", "parent": 67, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 33}}, {"id": 78, "type": "+", "text": "+", "parent": 66, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 35}}, {"id": 79, "type": "number_literal", "text": "50", "parent": 66, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 38}}, {"id": 80, "type": "call_expression", "text": "bunny_resize_window(win, tmp)", "parent": 12, "children": [81, 82], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 31}}, {"id": 81, "type": "identifier", "text": "bunny_resize_window", "parent": 80, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 21}}, {"id": 82, "type": "argument_list", "text": "(win, tmp)", "parent": 80, "children": [83, 84], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 31}}, {"id": 83, "type": "identifier", "text": "win", "parent": 82, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 25}}, {"id": 84, "type": "identifier", "text": "tmp", "parent": 82, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 30}}, {"id": 85, "type": "assignment_expression", "text": "tmp.x = rand() % (screen.x - win->buffer.width)", "parent": 12, "children": [86, 89, 90], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 49}}, {"id": 86, "type": "field_expression", "text": "tmp.x", "parent": 85, "children": [87, 88], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 7}}, {"id": 87, "type": "identifier", "text": "tmp", "parent": 86, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 5}}, {"id": 88, "type": "field_identifier", "text": "x", "parent": 86, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 89, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 90, "type": "binary_expression", "text": "rand() % (screen.x - win->buffer.width)", "parent": 85, "children": [91, 94, 95], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 49}}, {"id": 91, "type": "call_expression", "text": "rand()", "parent": 90, "children": [92, 93], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 16}}, {"id": 92, "type": "identifier", "text": "rand", "parent": 91, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 93, "type": "argument_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 94, "type": "%", "text": "%", "parent": 90, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 18}}, {"id": 95, "type": "parenthesized_expression", "text": "(screen.x - win->buffer.width)", "parent": 90, "children": [96], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 49}}, {"id": 96, "type": "binary_expression", "text": "screen.x - win->buffer.width", "parent": 95, "children": [97, 100, 101], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 48}}, {"id": 97, "type": "field_expression", "text": "screen.x", "parent": 96, "children": [98, 99], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 28}}, {"id": 98, "type": "identifier", "text": "screen", "parent": 97, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 26}}, {"id": 99, "type": "field_identifier", "text": "x", "parent": 97, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 28}}, {"id": 100, "type": "-", "text": "-", "parent": 96, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 101, "type": "field_expression", "text": "win->buffer.width", "parent": 96, "children": [102, 105], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 48}}, {"id": 102, "type": "field_expression", "text": "win->buffer", "parent": 101, "children": [103, 104], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 42}}, {"id": 103, "type": "identifier", "text": "win", "parent": 102, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 34}}, {"id": 104, "type": "field_identifier", "text": "buffer", "parent": 102, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 42}}, {"id": 105, "type": "field_identifier", "text": "width", "parent": 101, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 48}}, {"id": 106, "type": "assignment_expression", "text": "tmp.y = rand() % (screen.y - win->buffer.height)", "parent": 12, "children": [107, 110, 111], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 50}}, {"id": 107, "type": "field_expression", "text": "tmp.y", "parent": 106, "children": [108, 109], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 7}}, {"id": 108, "type": "identifier", "text": "tmp", "parent": 107, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 109, "type": "field_identifier", "text": "y", "parent": 107, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 110, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 111, "type": "binary_expression", "text": "rand() % (screen.y - win->buffer.height)", "parent": 106, "children": [112, 115, 116], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 50}}, {"id": 112, "type": "call_expression", "text": "rand()", "parent": 111, "children": [113, 114], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 16}}, {"id": 113, "type": "identifier", "text": "rand", "parent": 112, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 14}}, {"id": 114, "type": "argument_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 16}}, {"id": 115, "type": "%", "text": "%", "parent": 111, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 116, "type": "parenthesized_expression", "text": "(screen.y - win->buffer.height)", "parent": 111, "children": [117], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 50}}, {"id": 117, "type": "binary_expression", "text": "screen.y - win->buffer.height", "parent": 116, "children": [118, 121, 122], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 49}}, {"id": 118, "type": "field_expression", "text": "screen.y", "parent": 117, "children": [119, 120], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 28}}, {"id": 119, "type": "identifier", "text": "screen", "parent": 118, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 26}}, {"id": 120, "type": "field_identifier", "text": "y", "parent": 118, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 28}}, {"id": 121, "type": "-", "text": "-", "parent": 117, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 122, "type": "field_expression", "text": "win->buffer.height", "parent": 117, "children": [123, 126], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 49}}, {"id": 123, "type": "field_expression", "text": "win->buffer", "parent": 122, "children": [124, 125], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 42}}, {"id": 124, "type": "identifier", "text": "win", "parent": 123, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 34}}, {"id": 125, "type": "field_identifier", "text": "buffer", "parent": 123, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 42}}, {"id": 126, "type": "field_identifier", "text": "height", "parent": 122, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 49}}, {"id": 127, "type": "call_expression", "text": "bunny_move_window(win, tmp)", "parent": 12, "children": [128, 129], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 29}}, {"id": 128, "type": "identifier", "text": "bunny_move_window", "parent": 127, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 19}}, {"id": 129, "type": "argument_list", "text": "(win, tmp)", "parent": 127, "children": [130, 131], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 29}}, {"id": 130, "type": "identifier", "text": "win", "parent": 129, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 23}}, {"id": 131, "type": "identifier", "text": "tmp", "parent": 129, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 28}}, {"id": 132, "type": "call_expression", "text": "bunny_clear(&win->buffer, rand() | BLACK)", "parent": 12, "children": [133, 134], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 43}}, {"id": 133, "type": "identifier", "text": "bunny_clear", "parent": 132, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 134, "type": "argument_list", "text": "(&win->buffer, rand() | BLACK)", "parent": 132, "children": [135, 139], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 43}}, {"id": 135, "type": "pointer_expression", "text": "&win->buffer", "parent": 134, "children": [136], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 26}}, {"id": 136, "type": "field_expression", "text": "win->buffer", "parent": 135, "children": [137, 138], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 137, "type": "identifier", "text": "win", "parent": 136, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 18}}, {"id": 138, "type": "field_identifier", "text": "buffer", "parent": 136, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 26}}, {"id": 139, "type": "binary_expression", "text": "rand() | BLACK", "parent": 134, "children": [140, 143], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 42}}, {"id": 140, "type": "call_expression", "text": "rand()", "parent": 139, "children": [141, 142], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 34}}, {"id": 141, "type": "identifier", "text": "rand", "parent": 140, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 142, "type": "argument_list", "text": "()", "parent": 140, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 34}}, {"id": 143, "type": "identifier", "text": "BLACK", "parent": 139, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 42}}, {"id": 144, "type": "call_expression", "text": "bunny_display(win)", "parent": 12, "children": [145, 146], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 20}}, {"id": 145, "type": "identifier", "text": "bunny_display", "parent": 144, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 15}}, {"id": 146, "type": "argument_list", "text": "(win)", "parent": 144, "children": [147], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 20}}, {"id": 147, "type": "identifier", "text": "win", "parent": 146, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 19}}, {"id": 148, "type": "return_statement", "text": "return (GO_ON);", "parent": 12, "children": [149], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 17}}, {"id": 149, "type": "parenthesized_expression", "text": "(GO_ON)", "parent": 148, "children": [150], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 16}}, {"id": 150, "type": "identifier", "text": "GO_ON", "parent": 149, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 15}}, {"id": 151, "type": "function_definition", "text": "t_bunny_response\tclick(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t void\t\t\t*data)\n{\n (void)button;\n (void)data;\n if (state == GO_UP)\n return (EXIT_ON_SUCCESS);\n return (GO_ON);\n}", "parent": null, "children": [152, 153], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 152, "type": "type_identifier", "text": "t_bunny_response", "parent": 151, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 16}}, {"id": 153, "type": "function_declarator", "text": "click(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t void\t\t\t*data)", "parent": 151, "children": [154, 155], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 32, "column": 22}}, {"id": 154, "type": "identifier", "text": "click", "parent": 153, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 22}}, {"id": 155, "type": "parameter_list", "text": "(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t void\t\t\t*data)", "parent": 153, "children": [156, 159, 162], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 32, "column": 22}}, {"id": 156, "type": "parameter_declaration", "text": "t_bunny_event_state\tstate", "parent": 155, "children": [157, 158], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 48}}, {"id": 157, "type": "type_identifier", "text": "t_bunny_event_state", "parent": 156, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 42}}, {"id": 158, "type": "identifier", "text": "state", "parent": 156, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 48}}, {"id": 159, "type": "parameter_declaration", "text": "t_bunny_mouse_button\tbutton", "parent": 155, "children": [160, 161], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 36}}, {"id": 160, "type": "type_identifier", "text": "t_bunny_mouse_button", "parent": 159, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 29}}, {"id": 161, "type": "identifier", "text": "button", "parent": 159, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 36}}, {"id": 162, "type": "parameter_declaration", "text": "void\t\t\t*data", "parent": 155, "children": [163, 164], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 21}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 13}}, {"id": 164, "type": "pointer_declarator", "text": "*data", "parent": 162, "children": [165, 166], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 21}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 166, "type": "identifier", "text": "data", "parent": 164, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 21}}, {"id": 167, "type": "cast_expression", "text": "(void)button", "parent": 151, "children": [168, 170], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 14}}, {"id": 168, "type": "type_descriptor", "text": "void", "parent": 167, "children": [169], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 169, "type": "primitive_type", "text": "void", "parent": 168, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 170, "type": "identifier", "text": "button", "parent": 167, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 171, "type": "cast_expression", "text": "(void)data", "parent": 151, "children": [172, 174], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 12}}, {"id": 172, "type": "type_descriptor", "text": "void", "parent": 171, "children": [173], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 174, "type": "identifier", "text": "data", "parent": 171, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 175, "type": "if_statement", "text": "if (state == GO_UP)\n return (EXIT_ON_SUCCESS);", "parent": 151, "children": [176, 181], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 29}}, {"id": 176, "type": "parenthesized_expression", "text": "(state == GO_UP)", "parent": 175, "children": [177], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 21}}, {"id": 177, "type": "binary_expression", "text": "state == GO_UP", "parent": 176, "children": [178, 179, 180], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 20}}, {"id": 178, "type": "identifier", "text": "state", "parent": 177, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 11}}, {"id": 179, "type": "==", "text": "==", "parent": 177, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 14}}, {"id": 180, "type": "identifier", "text": "GO_UP", "parent": 177, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 20}}, {"id": 181, "type": "return_statement", "text": "return (EXIT_ON_SUCCESS);", "parent": 175, "children": [182], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 29}}, {"id": 182, "type": "parenthesized_expression", "text": "(EXIT_ON_SUCCESS)", "parent": 181, "children": [183], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 28}}, {"id": 183, "type": "identifier", "text": "EXIT_ON_SUCCESS", "parent": 182, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 27}}, {"id": 184, "type": "return_statement", "text": "return (GO_ON);", "parent": 151, "children": [185], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 17}}, {"id": 185, "type": "parenthesized_expression", "text": "(GO_ON)", "parent": 184, "children": [186], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 16}}, {"id": 186, "type": "identifier", "text": "GO_ON", "parent": 185, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 15}}, {"id": 187, "type": "function_definition", "text": "int\t\t\tmain(void)\n{\n t_bunny_window\t*win;\n t_bunny_music\t\t*music;\n\n printl(\"Click on the window to stop this insanity.\");\n assert(win = bunny_start(800, 600, false, \"Never gonna give you up!\"));\n assert(music = bunny_load_music(\"music.ogg\"));\n signal(SIGINT, SIG_IGN);\n bunny_sound_play(&music->sound);\n bunny_set_click_response(click);\n bunny_set_loop_main_function(loop);\n bunny_loop(win, 5, win);\n bunny_sound_stop(&music->sound);\n bunny_stop(win);\n return (EXIT_SUCCESS);\n}", "parent": null, "children": [188, 189], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 3}}, {"id": 189, "type": "function_declarator", "text": "main(void)", "parent": 187, "children": [190, 191], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 16}}, {"id": 190, "type": "identifier", "text": "main", "parent": 189, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 10}}, {"id": 191, "type": "parameter_list", "text": "(void)", "parent": 189, "children": [192], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 16}}, {"id": 192, "type": "parameter_declaration", "text": "void", "parent": 191, "children": [193], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 193, "type": "primitive_type", "text": "void", "parent": 192, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 194, "type": "declaration", "text": "t_bunny_window\t*win;", "parent": 187, "children": [195, 196], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 22}}, {"id": 195, "type": "type_identifier", "text": "t_bunny_window", "parent": 194, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 16}}, {"id": 196, "type": "pointer_declarator", "text": "*win", "parent": 194, "children": [197, 198], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 21}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 18}}, {"id": 198, "type": "identifier", "text": "win", "parent": 196, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 21}}, {"id": 199, "type": "declaration", "text": "t_bunny_music\t\t*music;", "parent": 187, "children": [200, 201], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 24}}, {"id": 200, "type": "type_identifier", "text": "t_bunny_music", "parent": 199, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 15}}, {"id": 201, "type": "pointer_declarator", "text": "*music", "parent": 199, "children": [202, 203], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 23}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 203, "type": "identifier", "text": "music", "parent": 201, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 23}}, {"id": 204, "type": "call_expression", "text": "printl(\"Click on the window to stop this insanity.\")", "parent": 187, "children": [205, 206], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 54}}, {"id": 205, "type": "identifier", "text": "printl", "parent": 204, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 8}}, {"id": 206, "type": "argument_list", "text": "(\"Click on the window to stop this insanity.\")", "parent": 204, "children": [207], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 54}}, {"id": 207, "type": "string_literal", "text": "\"Click on the window to stop this insanity.\"", "parent": 206, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 53}}, {"id": 208, "type": "call_expression", "text": "assert(win = bunny_start(800, 600, false, \"Never gonna give you up!\"))", "parent": 187, "children": [209, 210], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 72}}, {"id": 209, "type": "identifier", "text": "assert", "parent": 208, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 210, "type": "argument_list", "text": "(win = bunny_start(800, 600, false, \"Never gonna give you up!\"))", "parent": 208, "children": [211], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 72}}, {"id": 211, "type": "assignment_expression", "text": "win = bunny_start(800, 600, false, \"Never gonna give you up!\")", "parent": 210, "children": [212, 213, 214], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 71}}, {"id": 212, "type": "identifier", "text": "win", "parent": 211, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 12}}, {"id": 213, "type": "=", "text": "=", "parent": 211, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 14}}, {"id": 214, "type": "call_expression", "text": "bunny_start(800, 600, false, \"Never gonna give you up!\")", "parent": 211, "children": [215, 216], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 71}}, {"id": 215, "type": "identifier", "text": "bunny_start", "parent": 214, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 26}}, {"id": 216, "type": "argument_list", "text": "(800, 600, false, \"Never gonna give you up!\")", "parent": 214, "children": [217, 218, 219, 220], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 71}}, {"id": 217, "type": "number_literal", "text": "800", "parent": 216, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 30}}, {"id": 218, "type": "number_literal", "text": "600", "parent": 216, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 35}}, {"id": 219, "type": "false", "text": "false", "parent": 216, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 42}}, {"id": 220, "type": "string_literal", "text": "\"Never gonna give you up!\"", "parent": 216, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 70}}, {"id": 221, "type": "call_expression", "text": "assert(music = bunny_load_music(\"music.ogg\"))", "parent": 187, "children": [222, 223], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 47}}, {"id": 222, "type": "identifier", "text": "assert", "parent": 221, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 8}}, {"id": 223, "type": "argument_list", "text": "(music = bunny_load_music(\"music.ogg\"))", "parent": 221, "children": [224], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 47}}, {"id": 224, "type": "assignment_expression", "text": "music = bunny_load_music(\"music.ogg\")", "parent": 223, "children": [225, 226, 227], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 46}}, {"id": 225, "type": "identifier", "text": "music", "parent": 224, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 14}}, {"id": 226, "type": "=", "text": "=", "parent": 224, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 227, "type": "call_expression", "text": "bunny_load_music(\"music.ogg\")", "parent": 224, "children": [228, 229], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 46}}, {"id": 228, "type": "identifier", "text": "bunny_load_music", "parent": 227, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 33}}, {"id": 229, "type": "argument_list", "text": "(\"music.ogg\")", "parent": 227, "children": [230], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 46}}, {"id": 230, "type": "string_literal", "text": "\"music.ogg\"", "parent": 229, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 45}}, {"id": 231, "type": "call_expression", "text": "signal(SIGINT, SIG_IGN)", "parent": 187, "children": [232, 233], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 25}}, {"id": 232, "type": "identifier", "text": "signal", "parent": 231, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 8}}, {"id": 233, "type": "argument_list", "text": "(SIGINT, SIG_IGN)", "parent": 231, "children": [234, 235], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 25}}, {"id": 234, "type": "identifier", "text": "SIGINT", "parent": 233, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 15}}, {"id": 235, "type": "identifier", "text": "SIG_IGN", "parent": 233, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 24}}, {"id": 236, "type": "call_expression", "text": "bunny_sound_play(&music->sound)", "parent": 187, "children": [237, 238], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 33}}, {"id": 237, "type": "identifier", "text": "bunny_sound_play", "parent": 236, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 18}}, {"id": 238, "type": "argument_list", "text": "(&music->sound)", "parent": 236, "children": [239], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 33}}, {"id": 239, "type": "pointer_expression", "text": "&music->sound", "parent": 238, "children": [240], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 32}}, {"id": 240, "type": "field_expression", "text": "music->sound", "parent": 239, "children": [241, 242], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 32}}, {"id": 241, "type": "identifier", "text": "music", "parent": 240, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 25}}, {"id": 242, "type": "field_identifier", "text": "sound", "parent": 240, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 32}}, {"id": 243, "type": "call_expression", "text": "bunny_set_click_response(click)", "parent": 187, "children": [244, 245], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 33}}, {"id": 244, "type": "identifier", "text": "bunny_set_click_response", "parent": 243, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 26}}, {"id": 245, "type": "argument_list", "text": "(click)", "parent": 243, "children": [246], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 33}}, {"id": 246, "type": "identifier", "text": "click", "parent": 245, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 32}}, {"id": 247, "type": "call_expression", "text": "bunny_set_loop_main_function(loop)", "parent": 187, "children": [248, 249], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 36}}, {"id": 248, "type": "identifier", "text": "bunny_set_loop_main_function", "parent": 247, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 30}}, {"id": 249, "type": "argument_list", "text": "(loop)", "parent": 247, "children": [250], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 36}}, {"id": 250, "type": "identifier", "text": "loop", "parent": 249, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 35}}, {"id": 251, "type": "call_expression", "text": "bunny_loop(win, 5, win)", "parent": 187, "children": [252, 253], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 25}}, {"id": 252, "type": "identifier", "text": "bunny_loop", "parent": 251, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 12}}, {"id": 253, "type": "argument_list", "text": "(win, 5, win)", "parent": 251, "children": [254, 255, 256], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 25}}, {"id": 254, "type": "identifier", "text": "win", "parent": 253, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 16}}, {"id": 255, "type": "number_literal", "text": "5", "parent": 253, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 256, "type": "identifier", "text": "win", "parent": 253, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 24}}, {"id": 257, "type": "call_expression", "text": "bunny_sound_stop(&music->sound)", "parent": 187, "children": [258, 259], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 33}}, {"id": 258, "type": "identifier", "text": "bunny_sound_stop", "parent": 257, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 18}}, {"id": 259, "type": "argument_list", "text": "(&music->sound)", "parent": 257, "children": [260], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 33}}, {"id": 260, "type": "pointer_expression", "text": "&music->sound", "parent": 259, "children": [261], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 32}}, {"id": 261, "type": "field_expression", "text": "music->sound", "parent": 260, "children": [262, 263], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 32}}, {"id": 262, "type": "identifier", "text": "music", "parent": 261, "children": [], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 25}}, {"id": 263, "type": "field_identifier", "text": "sound", "parent": 261, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 32}}, {"id": 264, "type": "call_expression", "text": "bunny_stop(win)", "parent": 187, "children": [265, 266], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 17}}, {"id": 265, "type": "identifier", "text": "bunny_stop", "parent": 264, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 12}}, {"id": 266, "type": "argument_list", "text": "(win)", "parent": 264, "children": [267], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 17}}, {"id": 267, "type": "identifier", "text": "win", "parent": 266, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 16}}, {"id": 268, "type": "return_statement", "text": "return (EXIT_SUCCESS);", "parent": 187, "children": [269], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 24}}, {"id": 269, "type": "parenthesized_expression", "text": "(EXIT_SUCCESS)", "parent": 268, "children": [270], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 23}}, {"id": 270, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 269, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 22}}]}, "node_categories": {"declarations": {"functions": [12, 14, 151, 153, 187, 189], "variables": [17, 22, 30, 33, 156, 159, 162, 192, 194, 199], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [39, 43, 47, 48, 49, 50, 54, 62, 66, 67, 68, 69, 73, 80, 86, 90, 91, 95, 96, 97, 101, 102, 107, 111, 112, 116, 117, 118, 122, 123, 127, 132, 135, 136, 139, 140, 144, 149, 167, 171, 176, 177, 182, 185, 204, 208, 214, 221, 227, 231, 236, 239, 240, 243, 247, 251, 257, 260, 261, 264, 269], "assignments": [36, 42, 61, 85, 106, 211, 224], "loops": [], "conditionals": [13, 15, 21, 23, 27, 29, 31, 32, 34, 35, 37, 40, 44, 45, 51, 55, 56, 63, 64, 70, 74, 75, 81, 83, 84, 87, 88, 92, 98, 99, 103, 104, 105, 108, 109, 113, 119, 120, 124, 125, 126, 128, 130, 131, 133, 137, 138, 141, 143, 145, 147, 150, 152, 154, 157, 158, 160, 161, 166, 170, 174, 175, 178, 180, 183, 186, 190, 195, 198, 200, 203, 205, 209, 212, 215, 222, 225, 228, 232, 234, 235, 237, 241, 242, 244, 246, 248, 250, 252, 254, 256, 258, 262, 263, 265, 267, 270], "returns": [148, 181, 184, 268], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 58, 60, 77, 79, 207, 217, 218, 220, 230, 255], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "t_bunny_response\tloop(void\t\t*data)\n{\n t_bunny_window\t*win = data;\n t_bunny_position\tscreen;\n t_bu"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "loop(void\t\t*data)"}, {"node_id": 151, "universal_type": "function", "name": "*data)", "text_snippet": "t_bunny_response\tclick(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t voi"}, {"node_id": 153, "universal_type": "function", "name": "*data)", "text_snippet": "click(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t void\t\t\t*data)"}, {"node_id": 187, "universal_type": "function", "name": "main", "text_snippet": "int\t\t\tmain(void)\n{\n t_bunny_window\t*win;\n t_bunny_music\t\t*music;\n\n printl(\"Click on the window to"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include\t\t<signal.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include\t\t<stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include\t\t<assert.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include\t\t<lapin.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n** <NAME> \"Damdoshi\"\n** Hanged Bunny Studio 2014-2016\n**\n** \n*/\n\n#include\t\t<signal.h>\n#include\t\t<stdlib.h>\n#include\t\t<assert.h>\n#include\t\t<lapin.h>\n\nt_bunny_response\tloop(void\t\t*data)\n{\n t_bunny_window\t*win = data;\n t_bunny_position\tscreen;\n t_bunny_position\ttmp;\n\n screen = bunny_get_screen_size();\n tmp.x = rand() % screen.x * 0.2 + 50;\n tmp.y = rand() % screen.y * 0.2 + 50;\n bunny_resize_window(win, tmp);\n tmp.x = rand() % (screen.x - win->buffer.width);\n tmp.y = rand() % (screen.y - win->buffer.height);\n bunny_move_window(win, tmp);\n bunny_clear(&win->buffer, rand() | BLACK);\n bunny_display(win);\n return (GO_ON);\n}\n\nt_bunny_response\tclick(t_bunny_event_state\tstate,\n\t\t\t t_bunny_mouse_button\tbutton,\n\t\t\t void\t\t\t*data)\n{\n (void)button;\n (void)data;\n if (state == GO_UP)\n return (EXIT_ON_SUCCESS);\n return (GO_ON);\n}\n\nint\t\t\tmain(void)\n{\n t_bunny_window\t*win;\n t_bunny_music\t\t*music;\n\n printl(\"Click on the window to stop this insanity.\");\n assert(win = bunny_start(800, 600, false, \"Never gonna give you up!\"));\n assert(music = bunny_load_music(\"music.ogg\"));\n signal(SIGINT, SIG_IGN);\n bunny_sound_play(&music->sound);\n bunny_set_click_response(click);\n bunny_set_loop_main_function(loop);\n bunny_loop(win, 5, win);\n bunny_sound_stop(&music->sound);\n bunny_stop(win);\n return (EXIT_SUCCESS);\n}\n"}
134
c
#pragma once #include "sp_common.h" #include "sp_sprite.h" #include "sp_prop.h" #include "sp_transform.h" #include "nlohmann/json.hpp" #include <string> #include <vector> #include <unordered_map> using json = nlohmann::json; class SPDatabase { public: void init(); void shutdown(); static SPSprite fetchSprite(const std::string name); private: void loadImages(); void loadSprites(); void generateDebugSprite(); };
20
20
(translation_unit) "#pragma once\n\n#include "sp_common.h"\n#include "sp_sprite.h"\n#include "sp_prop.h"\n#include "sp_transform.h"\n\n#include "nlohmann/json.hpp"\n\n#include <string>\n#include <vector>\n#include <unordered_map>\n\nusing json = nlohmann::json;\n\nclass SPDatabase {\npublic:\n void init();\n void shutdown();\n static SPSprite fetchSprite(const std::string name);\n\nprivate:\n void loadImages();\n void loadSprites();\n void generateDebugSprite();\n\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "sp_common.h"\n" (#include) "#include" (string_literal) ""sp_common.h"" (") """ (string_content) "sp_common.h" (") """ (preproc_include) "#include "sp_sprite.h"\n" (#include) "#include" (string_literal) ""sp_sprite.h"" (") """ (string_content) "sp_sprite.h" (") """ (preproc_include) "#include "sp_prop.h"\n" (#include) "#include" (string_literal) ""sp_prop.h"" (") """ (string_content) "sp_prop.h" (") """ (preproc_include) "#include "sp_transform.h"\n" (#include) "#include" (string_literal) ""sp_transform.h"" (") """ (string_content) "sp_transform.h" (") """ (preproc_include) "#include "nlohmann/json.hpp"\n" (#include) "#include" (string_literal) ""nlohmann/json.hpp"" (") """ (string_content) "nlohmann/json.hpp" (") """ (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 <unordered_map>\n" (#include) "#include" (system_lib_string) "<unordered_map>" (declaration) "using json = nlohmann::json;" (type_identifier) "using" (init_declarator) "json = nlohmann" (identifier) "json" (=) "=" (identifier) "nlohmann" (ERROR) "::json" (:) ":" (:) ":" (identifier) "json" (;) ";" (function_definition) "class SPDatabase {\npublic:\n void init();\n void shutdown();\n static SPSprite fetchSprite(const std::string name);\n\nprivate:\n void loadImages();\n void loadSprites();\n void generateDebugSprite();\n\n}" (type_identifier) "class" (identifier) "SPDatabase" (compound_statement) "{\npublic:\n void init();\n void shutdown();\n static SPSprite fetchSprite(const std::string name);\n\nprivate:\n void loadImages();\n void loadSprites();\n void generateDebugSprite();\n\n}" ({) "{" (labeled_statement) "public:\n void init();" (statement_identifier) "public" (:) ":" (declaration) "void init();" (primitive_type) "void" (function_declarator) "init()" (identifier) "init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void shutdown();" (primitive_type) "void" (function_declarator) "shutdown()" (identifier) "shutdown" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static SPSprite fetchSprite(const std::string name);" (storage_class_specifier) "static" (static) "static" (type_identifier) "SPSprite" (function_declarator) "fetchSprite(const std::string name)" (identifier) "fetchSprite" (parameter_list) "(const std::string name)" (() "(" (parameter_declaration) "const std::string name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "name" ()) ")" (;) ";" (labeled_statement) "private:\n void loadImages();" (statement_identifier) "private" (:) ":" (declaration) "void loadImages();" (primitive_type) "void" (function_declarator) "loadImages()" (identifier) "loadImages" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void loadSprites();" (primitive_type) "void" (function_declarator) "loadSprites()" (identifier) "loadSprites" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void generateDebugSprite();" (primitive_type) "void" (function_declarator) "generateDebugSprite()" (identifier) "generateDebugSprite" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
127
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.0, "nodes": 74, "errors": 0, "source_hash": "f7c7ea1678373e856d598eae373a01d1e255242fa41764f529065acf0b271978", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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 \"sp_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": "\"sp_common.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"sp_sprite.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": "\"sp_sprite.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"sp_prop.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"sp_prop.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"sp_transform.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"sp_transform.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include \"nlohmann/json.hpp\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"nlohmann/json.hpp\"", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 28}}, {"id": 18, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<string>", "parent": 18, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include <vector>\n", "parent": null, "children": [22, 23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<vector>", "parent": 21, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include <unordered_map>\n", "parent": null, "children": [25, 26], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<unordered_map>", "parent": 24, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 24}}, {"id": 27, "type": "declaration", "text": "using json = nlohmann::json;", "parent": null, "children": [28, 29, 33], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 28}}, {"id": 28, "type": "type_identifier", "text": "using", "parent": 27, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 5}}, {"id": 29, "type": "init_declarator", "text": "json = nlohmann", "parent": 27, "children": [30, 31, 32], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 21}}, {"id": 30, "type": "identifier", "text": "json", "parent": 29, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 10}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 32, "type": "identifier", "text": "nlohmann", "parent": 29, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 21}}, {"id": 33, "type": "ERROR", "text": "::json", "parent": 27, "children": [34], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 27}}, {"id": 34, "type": "identifier", "text": "json", "parent": 33, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 27}}, {"id": 35, "type": "function_definition", "text": "class SPDatabase {\npublic:\n\tvoid init();\n\tvoid shutdown();\n\tstatic SPSprite fetchSprite(const std::string name);\n\nprivate:\n\tvoid loadImages();\n\tvoid loadSprites();\n\tvoid generateDebugSprite();\n\n}", "parent": null, "children": [36], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 36, "type": "identifier", "text": "SPDatabase", "parent": 35, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 16}}, {"id": 37, "type": "labeled_statement", "text": "public:\n\tvoid init();", "parent": 35, "children": [38], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 13}}, {"id": 38, "type": "declaration", "text": "void init();", "parent": 37, "children": [39, 40], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 13}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 5}}, {"id": 40, "type": "function_declarator", "text": "init()", "parent": 38, "children": [41, 42], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 12}}, {"id": 41, "type": "identifier", "text": "init", "parent": 40, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 10}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 12}}, {"id": 43, "type": "declaration", "text": "void shutdown();", "parent": 35, "children": [44, 45], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 17}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 45, "type": "function_declarator", "text": "shutdown()", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 16}}, {"id": 46, "type": "identifier", "text": "shutdown", "parent": 45, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 14}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 16}}, {"id": 48, "type": "declaration", "text": "static SPSprite fetchSprite(const std::string name);", "parent": 35, "children": [49, 50], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 53}}, {"id": 49, "type": "type_identifier", "text": "SPSprite", "parent": 48, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 50, "type": "function_declarator", "text": "fetchSprite(const std::string name)", "parent": 48, "children": [51, 52], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 52}}, {"id": 51, "type": "identifier", "text": "fetchSprite", "parent": 50, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 28}}, {"id": 52, "type": "parameter_list", "text": "(const std::string name)", "parent": 50, "children": [53], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 52}}, {"id": 53, "type": "parameter_declaration", "text": "const std::string name", "parent": 52, "children": [54, 55, 57], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 51}}, {"id": 54, "type": "type_identifier", "text": "std", "parent": 53, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 38}}, {"id": 55, "type": "ERROR", "text": "::string", "parent": 53, "children": [56], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 46}}, {"id": 56, "type": "identifier", "text": "string", "parent": 55, "children": [], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 46}}, {"id": 57, "type": "identifier", "text": "name", "parent": 53, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 51}}, {"id": 58, "type": "labeled_statement", "text": "private:\n\tvoid loadImages();", "parent": 35, "children": [59], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 19}}, {"id": 59, "type": "declaration", "text": "void loadImages();", "parent": 58, "children": [60, 61], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 19}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 61, "type": "function_declarator", "text": "loadImages()", "parent": 59, "children": [62, 63], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 18}}, {"id": 62, "type": "identifier", "text": "loadImages", "parent": 61, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 16}}, {"id": 63, "type": "parameter_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 18}}, {"id": 64, "type": "declaration", "text": "void loadSprites();", "parent": 35, "children": [65, 66], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 20}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 5}}, {"id": 66, "type": "function_declarator", "text": "loadSprites()", "parent": 64, "children": [67, 68], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 19}}, {"id": 67, "type": "identifier", "text": "loadSprites", "parent": 66, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 17}}, {"id": 68, "type": "parameter_list", "text": "()", "parent": 66, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 19}}, {"id": 69, "type": "declaration", "text": "void generateDebugSprite();", "parent": 35, "children": [70, 71], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 28}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 71, "type": "function_declarator", "text": "generateDebugSprite()", "parent": 69, "children": [72, 73], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 27}}, {"id": 72, "type": "identifier", "text": "generateDebugSprite", "parent": 71, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 25}}, {"id": 73, "type": "parameter_list", "text": "()", "parent": 71, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 27}}]}, "node_categories": {"declarations": {"functions": [35, 40, 45, 50, 61, 66, 71], "variables": [27, 38, 43, 48, 53, 59, 64, 69], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [28, 30, 32, 34, 36, 41, 46, 49, 51, 54, 56, 57, 62, 67, 72], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 35, "universal_type": "function", "name": "SPDatabase", "text_snippet": "class SPDatabase {\npublic:\n\tvoid init();\n\tvoid shutdown();\n\tstatic SPSprite fetchSprite(const std::s"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "init()"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "shutdown()"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "fetchSprite(const std::string name)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "loadImages()"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "loadSprites()"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "generateDebugSprite()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"sp_common.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"sp_sprite.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"sp_prop.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"sp_transform.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"nlohmann/json.hpp\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <string>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <vector>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <unordered_map>\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"sp_common.h\"\n#include \"sp_sprite.h\"\n#include \"sp_prop.h\"\n#include \"sp_transform.h\"\n\n#include \"nlohmann/json.hpp\"\n\n#include <string>\n#include <vector>\n#include <unordered_map>\n\nusing json = nlohmann::json;\n\nclass SPDatabase {\npublic:\n\tvoid init();\n\tvoid shutdown();\n\tstatic SPSprite fetchSprite(const std::string name);\n\nprivate:\n\tvoid loadImages();\n\tvoid loadSprites();\n\tvoid generateDebugSprite();\n\n};"}
135
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSNumber, QRChapterInfoUpdater, QRSerializedBookInfo; @protocol QRChapterInfoUpdaterDelegate <NSObject> - (void)chapterInfoUpdateFailed:(QRChapterInfoUpdater *)arg1; - (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2; @optional - (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3; @end
42.54
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSNumber, QRChapterInfoUpdater, QRSerializedBookInfo;\n\n@protocol QRChapterInfoUpdaterDelegate <NSObject>\n- (void)chapterInfoUpdateFailed:(QRChapterInfoUpdater *)arg1;\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3;\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSNumber, QRChapterInfoUpdater, QRSerializedBookInfo;" (type_identifier) "class" (identifier) "NSNumber" (,) "," (identifier) "QRChapterInfoUpdater" (,) "," (identifier) "QRSerializedBookInfo" (;) ";" (ERROR) "@protocol QRChapterInfoUpdaterDelegate <NSObject>\n- (void)chapterInfoUpdateFailed:(QRChapterInfoUpdater *)arg1" (ERROR) "@" (type_identifier) "protocol" (identifier) "QRChapterInfoUpdaterDelegate" (<) "<" (identifier) "NSObject" (>) ">" (unary_expression) "- (void)chapterInfoUpdateFailed" (-) "-" (cast_expression) "(void)chapterInfoUpdateFailed" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "chapterInfoUpdateFailed" (:) ":" (() "(" (binary_expression) "QRChapterInfoUpdater *)arg1" (identifier) "QRChapterInfoUpdater" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (expression_statement) ";" (;) ";" (ERROR) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3;\n@end" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2" (binary_expression) "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess" (unary_expression) "- (void)chapterInfoUpdater" (-) "-" (cast_expression) "(void)chapterInfoUpdater" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "chapterInfoUpdater" (ERROR) ":(QRChapterInfoUpdater" (:) ":" (() "(" (identifier) "QRChapterInfoUpdater" (*) "*" (ERROR) ")arg1" ()) ")" (identifier) "arg1" (identifier) "updateSuccess" (ERROR) ":(QRSerializedBookInfo" (:) ":" (() "(" (identifier) "QRSerializedBookInfo" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg2" (ERROR) ";\n\n@optional" (;) ";" (ERROR) "@" (identifier) "optional" (-) "-" (cast_expression) "(void)chapterInfoUpdater" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "chapterInfoUpdater" (ERROR) ":(QRChapterInfoUpdater" (:) ":" (() "(" (identifier) "QRChapterInfoUpdater" (*) "*" (ERROR) ")arg1" ()) ")" (identifier) "arg1" (identifier) "updateSuccess" (ERROR) ":(QRSerializedBookInfo" (:) ":" (() "(" (identifier) "QRSerializedBookInfo" (*) "*" (ERROR) ")arg2" ()) ")" (identifier) "arg2" (identifier) "retCode" (ERROR) ":(NSNumber" (:) ":" (() "(" (identifier) "NSNumber" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg3" (;) ";" (ERROR) "@" (identifier) "end"
116
19
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 42.54, "nodes": 74, "errors": 0, "source_hash": "75d950289725707a0b67a81f24544a23448a20153c285903d01f4bb7297d6884", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "declaration", "text": "class NSNumber, QRChapterInfoUpdater, QRSerializedBookInfo;", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 60}}, {"id": 6, "type": "identifier", "text": "NSNumber", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 15}}, {"id": 7, "type": "identifier", "text": "QRChapterInfoUpdater", "parent": 5, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 37}}, {"id": 8, "type": "identifier", "text": "QRSerializedBookInfo", "parent": 5, "children": [], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 59}}, {"id": 9, "type": "ERROR", "text": "@protocol QRChapterInfoUpdaterDelegate <NSObject>\n- (void)chapterInfoUpdateFailed:(QRChapterInfoUpdater *)arg1", "parent": null, "children": [10, 11, 12, 13, 14, 15, 16, 22], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 60}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "protocol", "parent": 9, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 12, "type": "identifier", "text": "QRChapterInfoUpdaterDelegate", "parent": 9, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 38}}, {"id": 13, "type": "<", "text": "<", "parent": 9, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 40}}, {"id": 14, "type": "identifier", "text": "NSObject", "parent": 9, "children": [], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 48}}, {"id": 15, "type": ">", "text": ">", "parent": 9, "children": [], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 49}}, {"id": 16, "type": "unary_expression", "text": "- (void)chapterInfoUpdateFailed", "parent": 9, "children": [17, 18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 31}}, {"id": 17, "type": "-", "text": "-", "parent": 16, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 18, "type": "cast_expression", "text": "(void)chapterInfoUpdateFailed", "parent": 16, "children": [19, 21], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 31}}, {"id": 19, "type": "type_descriptor", "text": "void", "parent": 18, "children": [20], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 21, "type": "identifier", "text": "chapterInfoUpdateFailed", "parent": 18, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 31}}, {"id": 22, "type": "binary_expression", "text": "QRChapterInfoUpdater *)arg1", "parent": 9, "children": [23, 24, 25], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 60}}, {"id": 23, "type": "identifier", "text": "QRChapterInfoUpdater", "parent": 22, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 53}}, {"id": 24, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 11, "column": 54}, "end_point": {"row": 11, "column": 55}}, {"id": 25, "type": "identifier", "text": "arg1", "parent": 22, "children": [], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 60}}, {"id": 26, "type": "ERROR", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3;\n@end", "parent": null, "children": [27, 73], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 27, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3", "parent": 26, "children": [28, 69, 71, 72], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 123}}, {"id": 28, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode", "parent": 27, "children": [29, 63, 65, 66, 68], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 106}}, {"id": 29, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess", "parent": 28, "children": [30, 57, 59, 60, 62], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 69}}, {"id": 30, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater", "parent": 29, "children": [31, 49, 52, 53], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 26}}, {"id": 31, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2", "parent": 30, "children": [32, 45, 47, 48], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 98}}, {"id": 32, "type": "binary_expression", "text": "- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess", "parent": 31, "children": [33, 39, 41, 42, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 69}}, {"id": 33, "type": "unary_expression", "text": "- (void)chapterInfoUpdater", "parent": 32, "children": [34, 35], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 26}}, {"id": 34, "type": "-", "text": "-", "parent": 33, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "(void)chapterInfoUpdater", "parent": 33, "children": [36, 38], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 26}}, {"id": 36, "type": "type_descriptor", "text": "void", "parent": 35, "children": [37], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 38, "type": "identifier", "text": "chapterInfoUpdater", "parent": 35, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 26}}, {"id": 39, "type": "ERROR", "text": ":(QRChapterInfoUpdater", "parent": 32, "children": [40], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 48}}, {"id": 40, "type": "identifier", "text": "QRChapterInfoUpdater", "parent": 39, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 48}}, {"id": 41, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 50}}, {"id": 42, "type": "ERROR", "text": ")arg1", "parent": 32, "children": [43], "start_point": {"row": 12, "column": 50}, "end_point": {"row": 12, "column": 55}}, {"id": 43, "type": "identifier", "text": "arg1", "parent": 42, "children": [], "start_point": {"row": 12, "column": 51}, "end_point": {"row": 12, "column": 55}}, {"id": 44, "type": "identifier", "text": "updateSuccess", "parent": 32, "children": [], "start_point": {"row": 12, "column": 56}, "end_point": {"row": 12, "column": 69}}, {"id": 45, "type": "ERROR", "text": ":(QRSerializedBookInfo", "parent": 31, "children": [46], "start_point": {"row": 12, "column": 69}, "end_point": {"row": 12, "column": 91}}, {"id": 46, "type": "identifier", "text": "QRSerializedBookInfo", "parent": 45, "children": [], "start_point": {"row": 12, "column": 71}, "end_point": {"row": 12, "column": 91}}, {"id": 47, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 12, "column": 92}, "end_point": {"row": 12, "column": 93}}, {"id": 48, "type": "identifier", "text": "arg2", "parent": 31, "children": [], "start_point": {"row": 12, "column": 94}, "end_point": {"row": 12, "column": 98}}, {"id": 49, "type": "ERROR", "text": ";\n\n@optional", "parent": 30, "children": [50, 51], "start_point": {"row": 12, "column": 98}, "end_point": {"row": 14, "column": 9}}, {"id": 50, "type": "ERROR", "text": "@", "parent": 49, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 51, "type": "identifier", "text": "optional", "parent": 49, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 52, "type": "-", "text": "-", "parent": 30, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 53, "type": "cast_expression", "text": "(void)chapterInfoUpdater", "parent": 30, "children": [54, 56], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 26}}, {"id": 54, "type": "type_descriptor", "text": "void", "parent": 53, "children": [55], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 56, "type": "identifier", "text": "chapterInfoUpdater", "parent": 53, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 26}}, {"id": 57, "type": "ERROR", "text": ":(QRChapterInfoUpdater", "parent": 29, "children": [58], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 48}}, {"id": 58, "type": "identifier", "text": "QRChapterInfoUpdater", "parent": 57, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 48}}, {"id": 59, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 50}}, {"id": 60, "type": "ERROR", "text": ")arg1", "parent": 29, "children": [61], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 55}}, {"id": 61, "type": "identifier", "text": "arg1", "parent": 60, "children": [], "start_point": {"row": 15, "column": 51}, "end_point": {"row": 15, "column": 55}}, {"id": 62, "type": "identifier", "text": "updateSuccess", "parent": 29, "children": [], "start_point": {"row": 15, "column": 56}, "end_point": {"row": 15, "column": 69}}, {"id": 63, "type": "ERROR", "text": ":(QRSerializedBookInfo", "parent": 28, "children": [64], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 91}}, {"id": 64, "type": "identifier", "text": "QRSerializedBookInfo", "parent": 63, "children": [], "start_point": {"row": 15, "column": 71}, "end_point": {"row": 15, "column": 91}}, {"id": 65, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 15, "column": 92}, "end_point": {"row": 15, "column": 93}}, {"id": 66, "type": "ERROR", "text": ")arg2", "parent": 28, "children": [67], "start_point": {"row": 15, "column": 93}, "end_point": {"row": 15, "column": 98}}, {"id": 67, "type": "identifier", "text": "arg2", "parent": 66, "children": [], "start_point": {"row": 15, "column": 94}, "end_point": {"row": 15, "column": 98}}, {"id": 68, "type": "identifier", "text": "retCode", "parent": 28, "children": [], "start_point": {"row": 15, "column": 99}, "end_point": {"row": 15, "column": 106}}, {"id": 69, "type": "ERROR", "text": ":(NSNumber", "parent": 27, "children": [70], "start_point": {"row": 15, "column": 106}, "end_point": {"row": 15, "column": 116}}, {"id": 70, "type": "identifier", "text": "NSNumber", "parent": 69, "children": [], "start_point": {"row": 15, "column": 108}, "end_point": {"row": 15, "column": 116}}, {"id": 71, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 15, "column": 117}, "end_point": {"row": 15, "column": 118}}, {"id": 72, "type": "identifier", "text": "arg3", "parent": 27, "children": [], "start_point": {"row": 15, "column": 119}, "end_point": {"row": 15, "column": 123}}, {"id": 73, "type": "ERROR", "text": "@", "parent": 26, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 18, 22, 27, 28, 29, 30, 31, 32, 33, 35, 53], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 11, 12, 14, 21, 23, 25, 38, 40, 43, 44, 46, 48, 51, 56, 58, 61, 62, 64, 67, 68, 70, 72], "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// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"NSObject.h\"\n\n@class NSNumber, QRChapterInfoUpdater, QRSerializedBookInfo;\n\n@protocol QRChapterInfoUpdaterDelegate <NSObject>\n- (void)chapterInfoUpdateFailed:(QRChapterInfoUpdater *)arg1;\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2;\n\n@optional\n- (void)chapterInfoUpdater:(QRChapterInfoUpdater *)arg1 updateSuccess:(QRSerializedBookInfo *)arg2 retCode:(NSNumber *)arg3;\n@end\n\n"}
136
c
/* { dg-do run } */ /* { dg-options "-O2 -mavx512f" } */ /* { dg-require-effective-target avx512f } */ #include "avx512f-check.h" static __m512i __attribute__ ((noinline)) foo (int x) { return _mm512_set_epi32 (x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x); } static __m512i __attribute__ ((noinline)) foo_r (int x) { return _mm512_setr_epi32 (x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x); } static void avx512f_test (void) { int i; int e = 0xabadbeef; int v[16]; union512i_d res; for (i = 0; i < 16; i++) v[i] = e; res.x = foo (e); if (check_union512i_d (res, v)) abort (); res.x = _mm512_setzero_si512 (); res.x = foo_r (e); if (check_union512i_d (res, v)) abort (); }
19.71
35
(translation_unit) "/* { dg-do run } */\n/* { dg-options "-O2 -mavx512f" } */\n/* { dg-require-effective-target avx512f } */\n\n#include "avx512f-check.h"\n\nstatic __m512i\n__attribute__ ((noinline))\nfoo (int x)\n{\n return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}\n\nstatic __m512i\n__attribute__ ((noinline))\nfoo_r (int x)\n{\n return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}\n\nstatic void\navx512f_test (void)\n{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n for (i = 0; i < 16; i++)\n v[i] = e;\n\n res.x = foo (e);\n\n if (check_union512i_d (res, v))\n abort ();\n\n res.x = _mm512_setzero_si512 ();\n\n res.x = foo_r (e);\n\n if (check_union512i_d (res, v))\n abort ();\n}\n" (comment) "/* { dg-do run } */" (comment) "/* { dg-options "-O2 -mavx512f" } */" (comment) "/* { dg-require-effective-target avx512f } */" (preproc_include) "#include "avx512f-check.h"\n" (#include) "#include" (string_literal) ""avx512f-check.h"" (") """ (string_content) "avx512f-check.h" (") """ (function_definition) "static __m512i\n__attribute__ ((noinline))\nfoo (int x)\n{\n return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "__m512i" (attribute_specifier) "__attribute__ ((noinline))" (__attribute__) "__attribute__" (() "(" (argument_list) "(noinline)" (() "(" (identifier) "noinline" ()) ")" ()) ")" (function_declarator) "foo (int x)" (identifier) "foo" (parameter_list) "(int x)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" ()) ")" (compound_statement) "{\n return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}" ({) "{" (return_statement) "return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);" (return) "return" (call_expression) "_mm512_set_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x)" (identifier) "_mm512_set_epi32" (argument_list) "(x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x)" (() "(" (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" ()) ")" (;) ";" (}) "}" (function_definition) "static __m512i\n__attribute__ ((noinline))\nfoo_r (int x)\n{\n return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "__m512i" (attribute_specifier) "__attribute__ ((noinline))" (__attribute__) "__attribute__" (() "(" (argument_list) "(noinline)" (() "(" (identifier) "noinline" ()) ")" ()) ")" (function_declarator) "foo_r (int x)" (identifier) "foo_r" (parameter_list) "(int x)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" ()) ")" (compound_statement) "{\n return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);\n}" ({) "{" (return_statement) "return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x);" (return) "return" (call_expression) "_mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x)" (identifier) "_mm512_setr_epi32" (argument_list) "(x, x, x, x, x, x, x, x,\n x, x, x, x, x, x, x, x)" (() "(" (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" (,) "," (identifier) "x" ()) ")" (;) ";" (}) "}" (function_definition) "static void\navx512f_test (void)\n{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n for (i = 0; i < 16; i++)\n v[i] = e;\n\n res.x = foo (e);\n\n if (check_union512i_d (res, v))\n abort ();\n\n res.x = _mm512_setzero_si512 ();\n\n res.x = foo_r (e);\n\n if (check_union512i_d (res, v))\n abort ();\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "avx512f_test (void)" (identifier) "avx512f_test" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n for (i = 0; i < 16; i++)\n v[i] = e;\n\n res.x = foo (e);\n\n if (check_union512i_d (res, v))\n abort ();\n\n res.x = _mm512_setzero_si512 ();\n\n res.x = foo_r (e);\n\n if (check_union512i_d (res, v))\n abort ();\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int e = 0xabadbeef;" (primitive_type) "int" (init_declarator) "e = 0xabadbeef" (identifier) "e" (=) "=" (number_literal) "0xabadbeef" (;) ";" (declaration) "int v[16];" (primitive_type) "int" (array_declarator) "v[16]" (identifier) "v" ([) "[" (number_literal) "16" (]) "]" (;) ";" (declaration) "union512i_d res;" (type_identifier) "union512i_d" (identifier) "res" (;) ";" (for_statement) "for (i = 0; i < 16; i++)\n v[i] = e;" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 16" (identifier) "i" (<) "<" (number_literal) "16" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "v[i] = e;" (assignment_expression) "v[i] = e" (subscript_expression) "v[i]" (identifier) "v" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "e" (;) ";" (expression_statement) "res.x = foo (e);" (assignment_expression) "res.x = foo (e)" (field_expression) "res.x" (identifier) "res" (.) "." (field_identifier) "x" (=) "=" (call_expression) "foo (e)" (identifier) "foo" (argument_list) "(e)" (() "(" (identifier) "e" ()) ")" (;) ";" (if_statement) "if (check_union512i_d (res, v))\n abort ();" (if) "if" (parenthesized_expression) "(check_union512i_d (res, v))" (() "(" (call_expression) "check_union512i_d (res, v)" (identifier) "check_union512i_d" (argument_list) "(res, v)" (() "(" (identifier) "res" (,) "," (identifier) "v" ()) ")" ()) ")" (expression_statement) "abort ();" (call_expression) "abort ()" (identifier) "abort" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "res.x = _mm512_setzero_si512 ();" (assignment_expression) "res.x = _mm512_setzero_si512 ()" (field_expression) "res.x" (identifier) "res" (.) "." (field_identifier) "x" (=) "=" (call_expression) "_mm512_setzero_si512 ()" (identifier) "_mm512_setzero_si512" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "res.x = foo_r (e);" (assignment_expression) "res.x = foo_r (e)" (field_expression) "res.x" (identifier) "res" (.) "." (field_identifier) "x" (=) "=" (call_expression) "foo_r (e)" (identifier) "foo_r" (argument_list) "(e)" (() "(" (identifier) "e" ()) ")" (;) ";" (if_statement) "if (check_union512i_d (res, v))\n abort ();" (if) "if" (parenthesized_expression) "(check_union512i_d (res, v))" (() "(" (call_expression) "check_union512i_d (res, v)" (identifier) "check_union512i_d" (argument_list) "(res, v)" (() "(" (identifier) "res" (,) "," (identifier) "v" ()) ")" ()) ")" (expression_statement) "abort ();" (call_expression) "abort ()" (identifier) "abort" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
279
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 19.71, "nodes": 155, "errors": 0, "source_hash": "0c2f8811d0dd727c0673f200609f06a0bfbb22c4c7ad367df47f648552cc1e4d", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"avx512f-check.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": "string_literal", "text": "\"avx512f-check.h\"", "parent": 0, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 26}}, {"id": 3, "type": "function_definition", "text": "static __m512i\n__attribute__ ((noinline))\nfoo (int x)\n{\n return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);\n}", "parent": null, "children": [4, 5, 9], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "__m512i", "parent": 3, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 14}}, {"id": 5, "type": "attribute_specifier", "text": "__attribute__ ((noinline))", "parent": 3, "children": [6, 7], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 26}}, {"id": 6, "type": "__attribute__", "text": "__attribute__", "parent": 5, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 13}}, {"id": 7, "type": "argument_list", "text": "(noinline)", "parent": 5, "children": [8], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 25}}, {"id": 8, "type": "identifier", "text": "noinline", "parent": 7, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 24}}, {"id": 9, "type": "function_declarator", "text": "foo (int x)", "parent": 3, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 11}}, {"id": 10, "type": "identifier", "text": "foo", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 11, "type": "parameter_list", "text": "(int x)", "parent": 9, "children": [12], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 11}}, {"id": 12, "type": "parameter_declaration", "text": "int x", "parent": 11, "children": [13, 14], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 10}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "identifier", "text": "x", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 15, "type": "return_statement", "text": "return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);", "parent": 3, "children": [16], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 30}}, {"id": 16, "type": "call_expression", "text": "_mm512_set_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x)", "parent": 15, "children": [17, 18], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 11, "column": 29}}, {"id": 17, "type": "identifier", "text": "_mm512_set_epi32", "parent": 16, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 25}}, {"id": 18, "type": "argument_list", "text": "(x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x)", "parent": 16, "children": [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 11, "column": 29}}, {"id": 19, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 20, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 31}}, {"id": 21, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 34}}, {"id": 22, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 37}}, {"id": 23, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 40}}, {"id": 24, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 43}}, {"id": 25, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 46}}, {"id": 26, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 49}}, {"id": 27, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 7}}, {"id": 28, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 29, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 30, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 31, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 32, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 22}}, {"id": 33, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 34, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 28}}, {"id": 35, "type": "function_definition", "text": "static __m512i\n__attribute__ ((noinline))\nfoo_r (int x)\n{\n return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);\n}", "parent": null, "children": [36, 37, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 36, "type": "type_identifier", "text": "__m512i", "parent": 35, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 14}}, {"id": 37, "type": "attribute_specifier", "text": "__attribute__ ((noinline))", "parent": 35, "children": [38, 39], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 26}}, {"id": 38, "type": "__attribute__", "text": "__attribute__", "parent": 37, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 13}}, {"id": 39, "type": "argument_list", "text": "(noinline)", "parent": 37, "children": [40], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 25}}, {"id": 40, "type": "identifier", "text": "noinline", "parent": 39, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 24}}, {"id": 41, "type": "function_declarator", "text": "foo_r (int x)", "parent": 35, "children": [42, 43], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 13}}, {"id": 42, "type": "identifier", "text": "foo_r", "parent": 41, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 5}}, {"id": 43, "type": "parameter_list", "text": "(int x)", "parent": 41, "children": [44], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 13}}, {"id": 44, "type": "parameter_declaration", "text": "int x", "parent": 43, "children": [45, 46], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 12}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 46, "type": "identifier", "text": "x", "parent": 44, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 47, "type": "return_statement", "text": "return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);", "parent": 35, "children": [48], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 19, "column": 31}}, {"id": 48, "type": "call_expression", "text": "_mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x)", "parent": 47, "children": [49, 50], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 19, "column": 30}}, {"id": 49, "type": "identifier", "text": "_mm512_setr_epi32", "parent": 48, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 26}}, {"id": 50, "type": "argument_list", "text": "(x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x)", "parent": 48, "children": [51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 19, "column": 30}}, {"id": 51, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 52, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 32}}, {"id": 53, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 35}}, {"id": 54, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 38}}, {"id": 55, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 41}}, {"id": 56, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 44}}, {"id": 57, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 47}}, {"id": 58, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 50}}, {"id": 59, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 8}}, {"id": 60, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 11}}, {"id": 61, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 62, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 17}}, {"id": 63, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 20}}, {"id": 64, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 65, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 66, "type": "identifier", "text": "x", "parent": 50, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 29}}, {"id": 67, "type": "function_definition", "text": "static void\navx512f_test (void)\n{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n for (i = 0; i < 16; i++)\n v[i] = e;\n\n res.x = foo (e);\n\n if (check_union512i_d (res, v))\n abort ();\n\n res.x = _mm512_setzero_si512 ();\n\n res.x = foo_r (e);\n\n if (check_union512i_d (res, v))\n abort ();\n}", "parent": null, "children": [68, 69], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 11}}, {"id": 69, "type": "function_declarator", "text": "avx512f_test (void)", "parent": 67, "children": [70, 71], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 19}}, {"id": 70, "type": "identifier", "text": "avx512f_test", "parent": 69, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 12}}, {"id": 71, "type": "parameter_list", "text": "(void)", "parent": 69, "children": [72], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 19}}, {"id": 72, "type": "parameter_declaration", "text": "void", "parent": 71, "children": [73], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 18}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 18}}, {"id": 74, "type": "declaration", "text": "int i;", "parent": 67, "children": [75, 76], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 8}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 76, "type": "identifier", "text": "i", "parent": 74, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 77, "type": "declaration", "text": "int e = 0xabadbeef;", "parent": 67, "children": [78, 79], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 21}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 5}}, {"id": 79, "type": "init_declarator", "text": "e = 0xabadbeef", "parent": 77, "children": [80, 81, 82], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 20}}, {"id": 80, "type": "identifier", "text": "e", "parent": 79, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 81, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 82, "type": "number_literal", "text": "0xabadbeef", "parent": 79, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 20}}, {"id": 83, "type": "declaration", "text": "int v[16];", "parent": 67, "children": [84, 85], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 12}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 85, "type": "array_declarator", "text": "v[16]", "parent": 83, "children": [86, 87], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 11}}, {"id": 86, "type": "identifier", "text": "v", "parent": 85, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 7}}, {"id": 87, "type": "number_literal", "text": "16", "parent": 85, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 10}}, {"id": 88, "type": "declaration", "text": "union512i_d res;", "parent": 67, "children": [89, 90], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 89, "type": "type_identifier", "text": "union512i_d", "parent": 88, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 13}}, {"id": 90, "type": "identifier", "text": "res", "parent": 88, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 17}}, {"id": 91, "type": "for_statement", "text": "for (i = 0; i < 16; i++)\n v[i] = e;", "parent": 67, "children": [92, 96, 100], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 31, "column": 13}}, {"id": 92, "type": "assignment_expression", "text": "i = 0", "parent": 91, "children": [93, 94, 95], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 12}}, {"id": 93, "type": "identifier", "text": "i", "parent": 92, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 95, "type": "number_literal", "text": "0", "parent": 92, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 96, "type": "binary_expression", "text": "i < 16", "parent": 91, "children": [97, 98, 99], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 97, "type": "identifier", "text": "i", "parent": 96, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 15}}, {"id": 98, "type": "<", "text": "<", "parent": 96, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 17}}, {"id": 99, "type": "number_literal", "text": "16", "parent": 96, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 20}}, {"id": 100, "type": "update_expression", "text": "i++", "parent": 91, "children": [101, 102], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 25}}, {"id": 101, "type": "identifier", "text": "i", "parent": 100, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 102, "type": "++", "text": "++", "parent": 100, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 25}}, {"id": 103, "type": "assignment_expression", "text": "v[i] = e", "parent": 91, "children": [104, 107, 108], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 104, "type": "subscript_expression", "text": "v[i]", "parent": 103, "children": [105, 106], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 105, "type": "identifier", "text": "v", "parent": 104, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 106, "type": "identifier", "text": "i", "parent": 104, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 7}}, {"id": 107, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 108, "type": "identifier", "text": "e", "parent": 103, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}, {"id": 109, "type": "assignment_expression", "text": "res.x = foo (e)", "parent": 67, "children": [110, 113, 114], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 17}}, {"id": 110, "type": "field_expression", "text": "res.x", "parent": 109, "children": [111, 112], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 7}}, {"id": 111, "type": "identifier", "text": "res", "parent": 110, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 5}}, {"id": 112, "type": "field_identifier", "text": "x", "parent": 110, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 7}}, {"id": 113, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 114, "type": "call_expression", "text": "foo (e)", "parent": 109, "children": [115, 116], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 17}}, {"id": 115, "type": "identifier", "text": "foo", "parent": 114, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 13}}, {"id": 116, "type": "argument_list", "text": "(e)", "parent": 114, "children": [117], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 17}}, {"id": 117, "type": "identifier", "text": "e", "parent": 116, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 16}}, {"id": 118, "type": "if_statement", "text": "if (check_union512i_d (res, v))\n abort ();", "parent": 67, "children": [119], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 36, "column": 13}}, {"id": 119, "type": "parenthesized_expression", "text": "(check_union512i_d (res, v))", "parent": 118, "children": [120], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 33}}, {"id": 120, "type": "call_expression", "text": "check_union512i_d (res, v)", "parent": 119, "children": [121, 122], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 32}}, {"id": 121, "type": "identifier", "text": "check_union512i_d", "parent": 120, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 23}}, {"id": 122, "type": "argument_list", "text": "(res, v)", "parent": 120, "children": [123, 124], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 32}}, {"id": 123, "type": "identifier", "text": "res", "parent": 122, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 28}}, {"id": 124, "type": "identifier", "text": "v", "parent": 122, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 125, "type": "call_expression", "text": "abort ()", "parent": 118, "children": [126, 127], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 126, "type": "identifier", "text": "abort", "parent": 125, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 9}}, {"id": 127, "type": "argument_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 12}}, {"id": 128, "type": "assignment_expression", "text": "res.x = _mm512_setzero_si512 ()", "parent": 67, "children": [129, 132, 133], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 33}}, {"id": 129, "type": "field_expression", "text": "res.x", "parent": 128, "children": [130, 131], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 7}}, {"id": 130, "type": "identifier", "text": "res", "parent": 129, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 5}}, {"id": 131, "type": "field_identifier", "text": "x", "parent": 129, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 7}}, {"id": 132, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 133, "type": "call_expression", "text": "_mm512_setzero_si512 ()", "parent": 128, "children": [134, 135], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 33}}, {"id": 134, "type": "identifier", "text": "_mm512_setzero_si512", "parent": 133, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 30}}, {"id": 135, "type": "argument_list", "text": "()", "parent": 133, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 33}}, {"id": 136, "type": "assignment_expression", "text": "res.x = foo_r (e)", "parent": 67, "children": [137, 140, 141], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 19}}, {"id": 137, "type": "field_expression", "text": "res.x", "parent": 136, "children": [138, 139], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 7}}, {"id": 138, "type": "identifier", "text": "res", "parent": 137, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 5}}, {"id": 139, "type": "field_identifier", "text": "x", "parent": 137, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 7}}, {"id": 140, "type": "=", "text": "=", "parent": 136, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 141, "type": "call_expression", "text": "foo_r (e)", "parent": 136, "children": [142, 143], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 19}}, {"id": 142, "type": "identifier", "text": "foo_r", "parent": 141, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 15}}, {"id": 143, "type": "argument_list", "text": "(e)", "parent": 141, "children": [144], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 19}}, {"id": 144, "type": "identifier", "text": "e", "parent": 143, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 18}}, {"id": 145, "type": "if_statement", "text": "if (check_union512i_d (res, v))\n abort ();", "parent": 67, "children": [146], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 43, "column": 13}}, {"id": 146, "type": "parenthesized_expression", "text": "(check_union512i_d (res, v))", "parent": 145, "children": [147], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 33}}, {"id": 147, "type": "call_expression", "text": "check_union512i_d (res, v)", "parent": 146, "children": [148, 149], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 32}}, {"id": 148, "type": "identifier", "text": "check_union512i_d", "parent": 147, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 23}}, {"id": 149, "type": "argument_list", "text": "(res, v)", "parent": 147, "children": [150, 151], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 32}}, {"id": 150, "type": "identifier", "text": "res", "parent": 149, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 28}}, {"id": 151, "type": "identifier", "text": "v", "parent": 149, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 31}}, {"id": 152, "type": "call_expression", "text": "abort ()", "parent": 145, "children": [153, 154], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 12}}, {"id": 153, "type": "identifier", "text": "abort", "parent": 152, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 9}}, {"id": 154, "type": "argument_list", "text": "()", "parent": 152, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 9, 35, 41, 67, 69], "variables": [12, 44, 72, 74, 77, 83, 88], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [16, 48, 96, 100, 104, 110, 114, 119, 120, 125, 129, 133, 137, 141, 146, 147, 152], "assignments": [92, 103, 109, 128, 136], "loops": [91], "conditionals": [4, 5, 8, 10, 14, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 40, 42, 46, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 70, 76, 80, 86, 89, 90, 93, 97, 101, 105, 106, 108, 111, 112, 115, 117, 118, 121, 123, 124, 126, 130, 131, 134, 138, 139, 142, 144, 145, 148, 150, 151, 153], "returns": [15, 47], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 82, 87, 95, 99], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "static __m512i\n__attribute__ ((noinline))\nfoo (int x)\n{\n return _mm512_set_epi32 (x, x, x, x, x, x,"}, {"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "foo (int x)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "static __m512i\n__attribute__ ((noinline))\nfoo_r (int x)\n{\n return _mm512_setr_epi32 (x, x, x, x, x,"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "foo_r (int x)"}, {"node_id": 67, "universal_type": "function", "name": "avx512f_test", "text_snippet": "static void\navx512f_test (void)\n{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n "}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "avx512f_test (void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"avx512f-check.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/* { dg-do run } */\n/* { dg-options \"-O2 -mavx512f\" } */\n/* { dg-require-effective-target avx512f } */\n\n#include \"avx512f-check.h\"\n\nstatic __m512i\n__attribute__ ((noinline))\nfoo (int x)\n{\n return _mm512_set_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);\n}\n\nstatic __m512i\n__attribute__ ((noinline))\nfoo_r (int x)\n{\n return _mm512_setr_epi32 (x, x, x, x, x, x, x, x,\n\t\t\t x, x, x, x, x, x, x, x);\n}\n\nstatic void\navx512f_test (void)\n{\n int i;\n int e = 0xabadbeef;\n int v[16];\n union512i_d res;\n\n for (i = 0; i < 16; i++)\n v[i] = e;\n\n res.x = foo (e);\n\n if (check_union512i_d (res, v))\n abort ();\n\n res.x = _mm512_setzero_si512 ();\n\n res.x = foo_r (e);\n\n if (check_union512i_d (res, v))\n abort ();\n}\n"}
137
c
// // LGeminiEvent.h // Gemini // // Created by <NAME> on 7/6/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #include "lua.h" #include "lualib.h" #include "lauxlib.h" #import "GemLuaData.h" #import "GemEvent.h" #import <SpriteKit/SpriteKit.h> #ifdef __cplusplus extern "C" { #endif BOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event); BOOL callMethod(SKNode *obj, NSString *method); #ifdef __cplusplus } #endif
20.71
21
(translation_unit) "//\n// LGeminiEvent.h\n// Gemini\n//\n// Created by <NAME> on 7/6/12.\n// Copyright (c) 2012 __MyCompanyName__. All rights reserved.\n//\n\n#include "lua.h"\n#include "lualib.h"\n#include "lauxlib.h"\n#import "GemLuaData.h"\n#import "GemEvent.h"\n#import <SpriteKit/SpriteKit.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}\n#endif" (comment) "//" (comment) "// LGeminiEvent.h" (comment) "// Gemini" (comment) "//" (comment) "// Created by <NAME> on 7/6/12." (comment) "// Copyright (c) 2012 __MyCompanyName__. All rights reserved." (comment) "//" (preproc_include) "#include "lua.h"\n" (#include) "#include" (string_literal) ""lua.h"" (") """ (string_content) "lua.h" (") """ (preproc_include) "#include "lualib.h"\n" (#include) "#include" (string_literal) ""lualib.h"" (") """ (string_content) "lualib.h" (") """ (preproc_include) "#include "lauxlib.h"\n" (#include) "#include" (string_literal) ""lauxlib.h"" (") """ (string_content) "lauxlib.h" (") """ (preproc_call) "#import "GemLuaData.h"\n" (preproc_directive) "#import" (preproc_arg) ""GemLuaData.h"" (preproc_call) "#import "GemEvent.h"\n" (preproc_directive) "#import" (preproc_arg) ""GemEvent.h"" (preproc_call) "#import <SpriteKit/SpriteKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<SpriteKit/SpriteKit.h>" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (declaration) "BOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);" (type_identifier) "BOOL" (function_declarator) "callEventHandler(SKNode *obj, NSString *handler, GemEvent *event)" (identifier) "callEventHandler" (parameter_list) "(SKNode *obj, NSString *handler, GemEvent *event)" (() "(" (parameter_declaration) "SKNode *obj" (type_identifier) "SKNode" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "NSString *handler" (type_identifier) "NSString" (pointer_declarator) "*handler" (*) "*" (identifier) "handler" (,) "," (parameter_declaration) "GemEvent *event" (type_identifier) "GemEvent" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "BOOL callMethod(SKNode *obj, NSString *method);" (type_identifier) "BOOL" (function_declarator) "callMethod(SKNode *obj, NSString *method)" (identifier) "callMethod" (parameter_list) "(SKNode *obj, NSString *method)" (() "(" (parameter_declaration) "SKNode *obj" (type_identifier) "SKNode" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "NSString *method" (type_identifier) "NSString" (pointer_declarator) "*method" (*) "*" (identifier) "method" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif"
98
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 20.71, "nodes": 66, "errors": 0, "source_hash": "22a1c4b3a03177065ee1ec6761a8d2a6613d71174e69a58531045d61afceb192", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"lua.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": "\"lua.h\"", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include \"lualib.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": "string_literal", "text": "\"lualib.h\"", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"lauxlib.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": "\"lauxlib.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 20}}, {"id": 9, "type": "preproc_call", "text": "#import \"GemLuaData.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#import", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "\"GemLuaData.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 22}}, {"id": 12, "type": "preproc_call", "text": "#import \"GemEvent.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#import", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "\"GemEvent.h\"", "parent": 12, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 20}}, {"id": 15, "type": "preproc_call", "text": "#import <SpriteKit/SpriteKit.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#import", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 17, "type": "preproc_arg", "text": "<SpriteKit/SpriteKit.h>", "parent": 15, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 31}}, {"id": 18, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}\n#endif", "parent": null, "children": [19, 20, 21, 65], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 19, "type": "#ifdef", "text": "#ifdef", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 20, "type": "identifier", "text": "__cplusplus", "parent": 18, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 18}}, {"id": 21, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 22, "type": "extern", "text": "extern", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 23, "type": "string_literal", "text": "\"C\"", "parent": 21, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 24, "type": "preproc_call", "text": "#endif\n", "parent": 21, "children": [25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 25, "type": "preproc_directive", "text": "#endif", "parent": 24, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 26, "type": "declaration", "text": "BOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);", "parent": 21, "children": [27, 28], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 71}}, {"id": 27, "type": "type_identifier", "text": "BOOL", "parent": 26, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 28, "type": "function_declarator", "text": "callEventHandler(SKNode *obj, NSString *handler, GemEvent *event)", "parent": 26, "children": [29, 30], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 70}}, {"id": 29, "type": "identifier", "text": "callEventHandler", "parent": 28, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 21}}, {"id": 30, "type": "parameter_list", "text": "(SKNode *obj, NSString *handler, GemEvent *event)", "parent": 28, "children": [31, 36, 41], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 70}}, {"id": 31, "type": "parameter_declaration", "text": "SKNode *obj", "parent": 30, "children": [32, 33], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 33}}, {"id": 32, "type": "type_identifier", "text": "SKNode", "parent": 31, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 28}}, {"id": 33, "type": "pointer_declarator", "text": "*obj", "parent": 31, "children": [34, 35], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 33}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 30}}, {"id": 35, "type": "identifier", "text": "obj", "parent": 33, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 33}}, {"id": 36, "type": "parameter_declaration", "text": "NSString *handler", "parent": 30, "children": [37, 38], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 52}}, {"id": 37, "type": "type_identifier", "text": "NSString", "parent": 36, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 43}}, {"id": 38, "type": "pointer_declarator", "text": "*handler", "parent": 36, "children": [39, 40], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 52}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 45}}, {"id": 40, "type": "identifier", "text": "handler", "parent": 38, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 52}}, {"id": 41, "type": "parameter_declaration", "text": "GemEvent *event", "parent": 30, "children": [42, 43], "start_point": {"row": 18, "column": 54}, "end_point": {"row": 18, "column": 69}}, {"id": 42, "type": "type_identifier", "text": "GemEvent", "parent": 41, "children": [], "start_point": {"row": 18, "column": 54}, "end_point": {"row": 18, "column": 62}}, {"id": 43, "type": "pointer_declarator", "text": "*event", "parent": 41, "children": [44, 45], "start_point": {"row": 18, "column": 63}, "end_point": {"row": 18, "column": 69}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 18, "column": 63}, "end_point": {"row": 18, "column": 64}}, {"id": 45, "type": "identifier", "text": "event", "parent": 43, "children": [], "start_point": {"row": 18, "column": 64}, "end_point": {"row": 18, "column": 69}}, {"id": 46, "type": "declaration", "text": "BOOL callMethod(SKNode *obj, NSString *method);", "parent": 21, "children": [47, 48], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 47}}, {"id": 47, "type": "type_identifier", "text": "BOOL", "parent": 46, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "callMethod(SKNode *obj, NSString *method)", "parent": 46, "children": [49, 50], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 46}}, {"id": 49, "type": "identifier", "text": "callMethod", "parent": 48, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 15}}, {"id": 50, "type": "parameter_list", "text": "(SKNode *obj, NSString *method)", "parent": 48, "children": [51, 56], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 46}}, {"id": 51, "type": "parameter_declaration", "text": "SKNode *obj", "parent": 50, "children": [52, 53], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 27}}, {"id": 52, "type": "type_identifier", "text": "SKNode", "parent": 51, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 53, "type": "pointer_declarator", "text": "*obj", "parent": 51, "children": [54, 55], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 27}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 55, "type": "identifier", "text": "obj", "parent": 53, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 27}}, {"id": 56, "type": "parameter_declaration", "text": "NSString *method", "parent": 50, "children": [57, 58], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 45}}, {"id": 57, "type": "type_identifier", "text": "NSString", "parent": 56, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 37}}, {"id": 58, "type": "pointer_declarator", "text": "*method", "parent": 56, "children": [59, 60], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 45}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 60, "type": "identifier", "text": "method", "parent": 58, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 45}}, {"id": 61, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 21, "children": [62, 63, 64], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 18}}, {"id": 62, "type": "#ifdef", "text": "#ifdef", "parent": 61, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 63, "type": "identifier", "text": "__cplusplus", "parent": 61, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 18}}, {"id": 64, "type": "#endif", "text": "", "parent": 61, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 18}}, {"id": 65, "type": "#endif", "text": "#endif", "parent": 18, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28, 48], "variables": [26, 31, 36, 41, 46, 51, 56], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [18, 19, 20, 21, 27, 29, 32, 35, 37, 40, 42, 45, 47, 49, 52, 55, 57, 60, 61, 62, 63, 64, 65], "returns": [], "exceptions": []}, "expressions": {"calls": [9, 12, 15, 24], "literals": [2, 5, 8, 23], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "callEventHandler(SKNode *obj, NSString *handler, GemEvent *event)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "callMethod(SKNode *obj, NSString *method)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"lua.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"lualib.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"lauxlib.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "//\n// LGeminiEvent.h\n// Gemini\n//\n// Created by <NAME> on 7/6/12.\n// Copyright (c) 2012 __MyCompanyName__. All rights reserved.\n//\n\n#include \"lua.h\"\n#include \"lualib.h\"\n#include \"lauxlib.h\"\n#import \"GemLuaData.h\"\n#import \"GemEvent.h\"\n#import <SpriteKit/SpriteKit.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\nBOOL callEventHandler(SKNode *obj, NSString *handler, GemEvent *event);\nBOOL callMethod(SKNode *obj, NSString *method);\n#ifdef __cplusplus\n}\n#endif"}
138
c
// // Copyright (C) 2003-2009 by <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #include <sys/stat.h> #include <sys/swap.h> #include <unistd.h> #include <dirent.h> #include <QFile> #include <QMessageBox> #include <QProcess> #include <QTimer> #include <QProgressDialog> #include <QtConcurrent/QtConcurrent> #include "ui_meinstall.h" class MInstall : public QWidget, public Ui::MeInstall { Q_OBJECT protected: QProcess *proc; QTimer *timer; QProgressBar *bar; QFutureWatcher<void> futureWatcher; QTreeWidgetItem *webminItem; QTreeWidgetItem *sshItem; QTreeWidgetItem *cupsItem; QTreeWidgetItem *mysqlItem; QTreeWidgetItem *cpufreqItem; QTreeWidgetItem *anacronItem; QTreeWidgetItem *dbusItem; QTreeWidgetItem *cronItem; QTreeWidgetItem *gpmItem; QTreeWidgetItem *sudoItem; QTreeWidgetItem *postfixItem; QTreeWidgetItem *sanedItem; QTreeWidgetItem *rsyncItem; QTreeWidgetItem *bindItem; QTreeWidgetItem *dhcpItem; QTreeWidgetItem *spamassassinItem; QTreeWidgetItem *shorewallItem; QTreeWidgetItem *snortItem; QTreeWidgetItem *squidItem; QTreeWidgetItem *bluetoothItem; QTreeWidgetItem *guarddogItem; QTreeWidgetItem *networkmanagerItem; QTreeWidgetItem *isdnItem; QTreeWidgetItem *nfsItem; QTreeWidgetItem *openvpnItem; QTreeWidgetItem *smartmontoolsItem; QTreeWidgetItem *acpidItem; QTreeWidgetItem *hddtempItem; QTreeWidgetItem *acpifakekeyItem; QTreeWidgetItem *havegedItem; QTreeWidgetItem *avahiItem; QDialog *mmn; public: /** constructor */ MInstall(QWidget* parent=0); /** destructor */ ~MInstall(); bool abortInstall; int removedItemIndex; QString removedItem; void goBack(QString msg); void unmountGoBack(QString msg); // helpers static QString getCmdOut(QString cmd); static QStringList getCmdOuts(QString cmd); static QString getCmdValue(QString cmd, QString key, QString keydel, QString valdel); static QStringList getCmdValues(QString cmd, QString key, QString keydel, QString valdel); static bool replaceStringInFile(QString oldtext, QString newtext, QString filepath); static int getPartitionNumber(); static int command(const QString &string); bool is32bit(); bool is64bit(); bool isInsideVB(); bool isGpt(QString drv); bool isUefi(); int runCmd(QString cmd); void buildServiceList(); void copyLinux(); void installLinux(); void prepareToInstall(); void setLocale(); void setServices(); void updatePartitionWidgets(); void updateStatus(QString msg, int val); bool checkDisk(); bool installLoader(); bool makeChosenPartitions(); bool makeDefaultPartitions(); bool makeFloppy(); bool makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd); bool makeLinuxPartition(QString dev, const char *type, bool bad, QString label); bool makeSwapPartition(QString dev); bool makeEsp(QString drv, int size); bool mountPartition(QString dev, const char *point); bool removeKernel(); bool setComputerName(); bool setPasswords(); bool setUserInfo(); bool setUserName(); void gotoPage(int next); void pageDisplayed(int next); int showPage(int curr, int next); void stopInstall(); void firstRefresh(QDialog *main); void refresh(); public slots: virtual void on_passwordCheckBox_stateChanged(int); virtual void on_nextButton_clicked(); virtual void on_backButton_clicked(); virtual void on_abortInstallButton_clicked(); virtual void on_qtpartedButton_clicked(); virtual void on_diskCombo_activated(QString item = ""); virtual void on_rootCombo_activated(QString item = ""); virtual void on_rootTypeCombo_activated(QString item = ""); void procAbort(); virtual bool close(); // void moreClicked(QListViewItem *item); void delStart(); void delDone(int, QProcess::ExitStatus exitStatus); void delTime(); void copyStart(); void copyDone(int, QProcess::ExitStatus exitStatus); void copyTime(); void procTime(); private slots: void on_viewServicesButton_clicked(); void on_homeCombo_activated(const QString &arg1); void on_grubBootCombo_activated(QString item = ""); void on_closeButton_clicked(); void on_encryptCheckBox_toggled(bool checked); void on_saveHomeCheck_toggled(bool checked); };
32.98
147
(translation_unit) "//\n// Copyright (C) 2003-2009 by <NAME>\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\n#include <sys/stat.h>\n#include <sys/swap.h>\n#include <unistd.h>\n#include <dirent.h>\n#include <QFile>\n#include <QMessageBox>\n#include <QProcess>\n#include <QTimer>\n#include <QProgressDialog>\n#include <QtConcurrent/QtConcurrent>\n#include "ui_meinstall.h"\n\nclass MInstall : public QWidget, public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess *proc;\n QTimer *timer;\n QProgressBar *bar;\n QFutureWatcher<void> futureWatcher;\n QTreeWidgetItem *webminItem;\n QTreeWidgetItem *sshItem;\n QTreeWidgetItem *cupsItem;\n QTreeWidgetItem *mysqlItem;\n QTreeWidgetItem *cpufreqItem;\n QTreeWidgetItem *anacronItem;\n QTreeWidgetItem *dbusItem;\n QTreeWidgetItem *cronItem;\n QTreeWidgetItem *gpmItem;\n QTreeWidgetItem *sudoItem;\n QTreeWidgetItem *postfixItem;\n QTreeWidgetItem *sanedItem;\n QTreeWidgetItem *rsyncItem;\n QTreeWidgetItem *bindItem;\n QTreeWidgetItem *dhcpItem;\n QTreeWidgetItem *spamassassinItem;\n QTreeWidgetItem *shorewallItem;\n QTreeWidgetItem *snortItem;\n QTreeWidgetItem *squidItem;\n QTreeWidgetItem *bluetoothItem;\n QTreeWidgetItem *guarddogItem;\n QTreeWidgetItem *networkmanagerItem;\n QTreeWidgetItem *isdnItem;\n QTreeWidgetItem *nfsItem;\n QTreeWidgetItem *openvpnItem;\n QTreeWidgetItem *smartmontoolsItem;\n QTreeWidgetItem *acpidItem;\n QTreeWidgetItem *hddtempItem;\n QTreeWidgetItem *acpifakekeyItem;\n QTreeWidgetItem *havegedItem;\n QTreeWidgetItem *avahiItem;\n\n\n QDialog *mmn;\n\n\npublic:\n /** constructor */\n MInstall(QWidget* parent=0);\n /** destructor */\n ~MInstall();\n\n bool abortInstall;\n\n int removedItemIndex;\n QString removedItem;\n\n void goBack(QString msg);\n void unmountGoBack(QString msg);\n\n // helpers\n static QString getCmdOut(QString cmd);\n static QStringList getCmdOuts(QString cmd);\n static QString getCmdValue(QString cmd, QString key, QString keydel, QString valdel);\n static QStringList getCmdValues(QString cmd, QString key, QString keydel, QString valdel);\n static bool replaceStringInFile(QString oldtext, QString newtext, QString filepath);\n static int getPartitionNumber();\n static int command(const QString &string);\n bool is32bit();\n bool is64bit();\n bool isInsideVB();\n bool isGpt(QString drv);\n bool isUefi();\n int runCmd(QString cmd);\n\n void buildServiceList();\n void copyLinux();\n void installLinux();\n void prepareToInstall();\n void setLocale();\n void setServices();\n void updatePartitionWidgets();\n void updateStatus(QString msg, int val);\n bool checkDisk();\n bool installLoader();\n bool makeChosenPartitions();\n bool makeDefaultPartitions();\n bool makeFloppy();\n bool makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd);\n bool makeLinuxPartition(QString dev, const char *type, bool bad, QString label);\n bool makeSwapPartition(QString dev);\n bool makeEsp(QString drv, int size);\n bool mountPartition(QString dev, const char *point);\n bool removeKernel();\n bool setComputerName();\n bool setPasswords();\n bool setUserInfo();\n bool setUserName();\n\n void gotoPage(int next);\n void pageDisplayed(int next);\n int showPage(int curr, int next);\n void stopInstall();\n void firstRefresh(QDialog *main);\n void refresh();\n\npublic slots:\n virtual void on_passwordCheckBox_stateChanged(int);\n virtual void on_nextButton_clicked();\n virtual void on_backButton_clicked();\n virtual void on_abortInstallButton_clicked();\n virtual void on_qtpartedButton_clicked();\n virtual void on_diskCombo_activated(QString item = "");\n virtual void on_rootCombo_activated(QString item = "");\n virtual void on_rootTypeCombo_activated(QString item = "");\n void procAbort();\n virtual bool close();\n // void moreClicked(QListViewItem *item);\n void delStart();\n void delDone(int, QProcess::ExitStatus exitStatus);\n void delTime();\n\n void copyStart();\n void copyDone(int, QProcess::ExitStatus exitStatus);\n void copyTime();\n void procTime();\n\nprivate slots:\n void on_viewServicesButton_clicked();\n void on_homeCombo_activated(const QString &arg1);\n void on_grubBootCombo_activated(QString item = "");\n void on_closeButton_clicked();\n void on_encryptCheckBox_toggled(bool checked);\n void on_saveHomeCheck_toggled(bool checked);\n};\n" (comment) "//" (comment) "// Copyright (C) 2003-2009 by <NAME>" (comment) "//" (comment) "// Licensed under the Apache License, Version 2.0 (the "License");" (comment) "// you may not use this file except in compliance with the License." (comment) "// You may obtain a copy of the License at" (comment) "//" (comment) "// http://www.apache.org/licenses/LICENSE-2.0" (comment) "//" (comment) "// Unless required by applicable law or agreed to in writing, software" (comment) "// distributed under the License is distributed on an "AS IS" BASIS," (comment) "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." (comment) "// See the License for the specific language governing permissions and" (comment) "// limitations under the License." (comment) "//" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <sys/swap.h>\n" (#include) "#include" (system_lib_string) "<sys/swap.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <dirent.h>\n" (#include) "#include" (system_lib_string) "<dirent.h>" (preproc_include) "#include <QFile>\n" (#include) "#include" (system_lib_string) "<QFile>" (preproc_include) "#include <QMessageBox>\n" (#include) "#include" (system_lib_string) "<QMessageBox>" (preproc_include) "#include <QProcess>\n" (#include) "#include" (system_lib_string) "<QProcess>" (preproc_include) "#include <QTimer>\n" (#include) "#include" (system_lib_string) "<QTimer>" (preproc_include) "#include <QProgressDialog>\n" (#include) "#include" (system_lib_string) "<QProgressDialog>" (preproc_include) "#include <QtConcurrent/QtConcurrent>\n" (#include) "#include" (system_lib_string) "<QtConcurrent/QtConcurrent>" (preproc_include) "#include "ui_meinstall.h"\n" (#include) "#include" (string_literal) ""ui_meinstall.h"" (") """ (string_content) "ui_meinstall.h" (") """ (declaration) "class MInstall : public QWidget, public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess *proc;" (type_identifier) "class" (identifier) "MInstall" (ERROR) ": public QWidget" (:) ":" (identifier) "public" (identifier) "QWidget" (,) "," (ERROR) "public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess" (identifier) "public" (identifier) "Ui" (:) ":" (:) ":" (identifier) "MeInstall" ({) "{" (identifier) "Q_OBJECT" (identifier) "protected" (:) ":" (identifier) "QProcess" (pointer_declarator) "*proc" (*) "*" (identifier) "proc" (;) ";" (declaration) "QTimer *timer;" (type_identifier) "QTimer" (pointer_declarator) "*timer" (*) "*" (identifier) "timer" (;) ";" (declaration) "QProgressBar *bar;" (type_identifier) "QProgressBar" (pointer_declarator) "*bar" (*) "*" (identifier) "bar" (;) ";" (expression_statement) "QFutureWatcher<void> futureWatcher;" (update_expression) "QFutureWatcher<void> futureWatcher" (binary_expression) "QFutureWatcher<void> futureWatcher" (binary_expression) "QFutureWatcher<void" (identifier) "QFutureWatcher" (<) "<" (identifier) "void" (>) ">" (identifier) "futureWatcher" (--) "" (;) ";" (declaration) "QTreeWidgetItem *webminItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*webminItem" (*) "*" (identifier) "webminItem" (;) ";" (declaration) "QTreeWidgetItem *sshItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*sshItem" (*) "*" (identifier) "sshItem" (;) ";" (declaration) "QTreeWidgetItem *cupsItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*cupsItem" (*) "*" (identifier) "cupsItem" (;) ";" (declaration) "QTreeWidgetItem *mysqlItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*mysqlItem" (*) "*" (identifier) "mysqlItem" (;) ";" (declaration) "QTreeWidgetItem *cpufreqItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*cpufreqItem" (*) "*" (identifier) "cpufreqItem" (;) ";" (declaration) "QTreeWidgetItem *anacronItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*anacronItem" (*) "*" (identifier) "anacronItem" (;) ";" (declaration) "QTreeWidgetItem *dbusItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*dbusItem" (*) "*" (identifier) "dbusItem" (;) ";" (declaration) "QTreeWidgetItem *cronItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*cronItem" (*) "*" (identifier) "cronItem" (;) ";" (declaration) "QTreeWidgetItem *gpmItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*gpmItem" (*) "*" (identifier) "gpmItem" (;) ";" (declaration) "QTreeWidgetItem *sudoItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*sudoItem" (*) "*" (identifier) "sudoItem" (;) ";" (declaration) "QTreeWidgetItem *postfixItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*postfixItem" (*) "*" (identifier) "postfixItem" (;) ";" (declaration) "QTreeWidgetItem *sanedItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*sanedItem" (*) "*" (identifier) "sanedItem" (;) ";" (declaration) "QTreeWidgetItem *rsyncItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*rsyncItem" (*) "*" (identifier) "rsyncItem" (;) ";" (declaration) "QTreeWidgetItem *bindItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*bindItem" (*) "*" (identifier) "bindItem" (;) ";" (declaration) "QTreeWidgetItem *dhcpItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*dhcpItem" (*) "*" (identifier) "dhcpItem" (;) ";" (declaration) "QTreeWidgetItem *spamassassinItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*spamassassinItem" (*) "*" (identifier) "spamassassinItem" (;) ";" (declaration) "QTreeWidgetItem *shorewallItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*shorewallItem" (*) "*" (identifier) "shorewallItem" (;) ";" (declaration) "QTreeWidgetItem *snortItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*snortItem" (*) "*" (identifier) "snortItem" (;) ";" (declaration) "QTreeWidgetItem *squidItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*squidItem" (*) "*" (identifier) "squidItem" (;) ";" (declaration) "QTreeWidgetItem *bluetoothItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*bluetoothItem" (*) "*" (identifier) "bluetoothItem" (;) ";" (declaration) "QTreeWidgetItem *guarddogItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*guarddogItem" (*) "*" (identifier) "guarddogItem" (;) ";" (declaration) "QTreeWidgetItem *networkmanagerItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*networkmanagerItem" (*) "*" (identifier) "networkmanagerItem" (;) ";" (declaration) "QTreeWidgetItem *isdnItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*isdnItem" (*) "*" (identifier) "isdnItem" (;) ";" (declaration) "QTreeWidgetItem *nfsItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*nfsItem" (*) "*" (identifier) "nfsItem" (;) ";" (declaration) "QTreeWidgetItem *openvpnItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*openvpnItem" (*) "*" (identifier) "openvpnItem" (;) ";" (declaration) "QTreeWidgetItem *smartmontoolsItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*smartmontoolsItem" (*) "*" (identifier) "smartmontoolsItem" (;) ";" (declaration) "QTreeWidgetItem *acpidItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*acpidItem" (*) "*" (identifier) "acpidItem" (;) ";" (declaration) "QTreeWidgetItem *hddtempItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*hddtempItem" (*) "*" (identifier) "hddtempItem" (;) ";" (declaration) "QTreeWidgetItem *acpifakekeyItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*acpifakekeyItem" (*) "*" (identifier) "acpifakekeyItem" (;) ";" (declaration) "QTreeWidgetItem *havegedItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*havegedItem" (*) "*" (identifier) "havegedItem" (;) ";" (declaration) "QTreeWidgetItem *avahiItem;" (type_identifier) "QTreeWidgetItem" (pointer_declarator) "*avahiItem" (*) "*" (identifier) "avahiItem" (;) ";" (declaration) "QDialog *mmn;" (type_identifier) "QDialog" (pointer_declarator) "*mmn" (*) "*" (identifier) "mmn" (;) ";" (labeled_statement) "public:\n /** constructor */\n MInstall(QWidget* parent=0);" (statement_identifier) "public" (:) ":" (comment) "/** constructor */" (expression_statement) "MInstall(QWidget* parent=0);" (call_expression) "MInstall(QWidget* parent=0)" (identifier) "MInstall" (argument_list) "(QWidget* parent=0)" (() "(" (binary_expression) "QWidget* parent=0" (identifier) "QWidget" (*) "*" (assignment_expression) "parent=0" (identifier) "parent" (=) "=" (number_literal) "0" ()) ")" (;) ";" (comment) "/** destructor */" (expression_statement) "~MInstall();" (unary_expression) "~MInstall()" (~) "~" (call_expression) "MInstall()" (identifier) "MInstall" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool abortInstall;" (primitive_type) "bool" (identifier) "abortInstall" (;) ";" (declaration) "int removedItemIndex;" (primitive_type) "int" (identifier) "removedItemIndex" (;) ";" (declaration) "QString removedItem;" (type_identifier) "QString" (identifier) "removedItem" (;) ";" (declaration) "void goBack(QString msg);" (primitive_type) "void" (function_declarator) "goBack(QString msg)" (identifier) "goBack" (parameter_list) "(QString msg)" (() "(" (parameter_declaration) "QString msg" (type_identifier) "QString" (identifier) "msg" ()) ")" (;) ";" (declaration) "void unmountGoBack(QString msg);" (primitive_type) "void" (function_declarator) "unmountGoBack(QString msg)" (identifier) "unmountGoBack" (parameter_list) "(QString msg)" (() "(" (parameter_declaration) "QString msg" (type_identifier) "QString" (identifier) "msg" ()) ")" (;) ";" (comment) "// helpers" (declaration) "static QString getCmdOut(QString cmd);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "getCmdOut(QString cmd)" (identifier) "getCmdOut" (parameter_list) "(QString cmd)" (() "(" (parameter_declaration) "QString cmd" (type_identifier) "QString" (identifier) "cmd" ()) ")" (;) ";" (declaration) "static QStringList getCmdOuts(QString cmd);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QStringList" (function_declarator) "getCmdOuts(QString cmd)" (identifier) "getCmdOuts" (parameter_list) "(QString cmd)" (() "(" (parameter_declaration) "QString cmd" (type_identifier) "QString" (identifier) "cmd" ()) ")" (;) ";" (declaration) "static QString getCmdValue(QString cmd, QString key, QString keydel, QString valdel);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "getCmdValue(QString cmd, QString key, QString keydel, QString valdel)" (identifier) "getCmdValue" (parameter_list) "(QString cmd, QString key, QString keydel, QString valdel)" (() "(" (parameter_declaration) "QString cmd" (type_identifier) "QString" (identifier) "cmd" (,) "," (parameter_declaration) "QString key" (type_identifier) "QString" (identifier) "key" (,) "," (parameter_declaration) "QString keydel" (type_identifier) "QString" (identifier) "keydel" (,) "," (parameter_declaration) "QString valdel" (type_identifier) "QString" (identifier) "valdel" ()) ")" (;) ";" (declaration) "static QStringList getCmdValues(QString cmd, QString key, QString keydel, QString valdel);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QStringList" (function_declarator) "getCmdValues(QString cmd, QString key, QString keydel, QString valdel)" (identifier) "getCmdValues" (parameter_list) "(QString cmd, QString key, QString keydel, QString valdel)" (() "(" (parameter_declaration) "QString cmd" (type_identifier) "QString" (identifier) "cmd" (,) "," (parameter_declaration) "QString key" (type_identifier) "QString" (identifier) "key" (,) "," (parameter_declaration) "QString keydel" (type_identifier) "QString" (identifier) "keydel" (,) "," (parameter_declaration) "QString valdel" (type_identifier) "QString" (identifier) "valdel" ()) ")" (;) ";" (declaration) "static bool replaceStringInFile(QString oldtext, QString newtext, QString filepath);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "replaceStringInFile(QString oldtext, QString newtext, QString filepath)" (identifier) "replaceStringInFile" (parameter_list) "(QString oldtext, QString newtext, QString filepath)" (() "(" (parameter_declaration) "QString oldtext" (type_identifier) "QString" (identifier) "oldtext" (,) "," (parameter_declaration) "QString newtext" (type_identifier) "QString" (identifier) "newtext" (,) "," (parameter_declaration) "QString filepath" (type_identifier) "QString" (identifier) "filepath" ()) ")" (;) ";" (declaration) "static int getPartitionNumber();" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "getPartitionNumber()" (identifier) "getPartitionNumber" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static int command(const QString &string);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "command(const QString &string)" (identifier) "command" (parameter_list) "(const QString &string)" (() "(" (parameter_declaration) "const QString &string" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "string" ()) ")" (;) ";" (declaration) "bool is32bit();" (primitive_type) "bool" (function_declarator) "is32bit()" (identifier) "is32bit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool is64bit();" (primitive_type) "bool" (function_declarator) "is64bit()" (identifier) "is64bit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool isInsideVB();" (primitive_type) "bool" (function_declarator) "isInsideVB()" (identifier) "isInsideVB" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool isGpt(QString drv);" (primitive_type) "bool" (function_declarator) "isGpt(QString drv)" (identifier) "isGpt" (parameter_list) "(QString drv)" (() "(" (parameter_declaration) "QString drv" (type_identifier) "QString" (identifier) "drv" ()) ")" (;) ";" (declaration) "bool isUefi();" (primitive_type) "bool" (function_declarator) "isUefi()" (identifier) "isUefi" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int runCmd(QString cmd);" (primitive_type) "int" (function_declarator) "runCmd(QString cmd)" (identifier) "runCmd" (parameter_list) "(QString cmd)" (() "(" (parameter_declaration) "QString cmd" (type_identifier) "QString" (identifier) "cmd" ()) ")" (;) ";" (declaration) "void buildServiceList();" (primitive_type) "void" (function_declarator) "buildServiceList()" (identifier) "buildServiceList" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void copyLinux();" (primitive_type) "void" (function_declarator) "copyLinux()" (identifier) "copyLinux" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void installLinux();" (primitive_type) "void" (function_declarator) "installLinux()" (identifier) "installLinux" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void prepareToInstall();" (primitive_type) "void" (function_declarator) "prepareToInstall()" (identifier) "prepareToInstall" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setLocale();" (primitive_type) "void" (function_declarator) "setLocale()" (identifier) "setLocale" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setServices();" (primitive_type) "void" (function_declarator) "setServices()" (identifier) "setServices" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void updatePartitionWidgets();" (primitive_type) "void" (function_declarator) "updatePartitionWidgets()" (identifier) "updatePartitionWidgets" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void updateStatus(QString msg, int val);" (primitive_type) "void" (function_declarator) "updateStatus(QString msg, int val)" (identifier) "updateStatus" (parameter_list) "(QString msg, int val)" (() "(" (parameter_declaration) "QString msg" (type_identifier) "QString" (identifier) "msg" (,) "," (parameter_declaration) "int val" (primitive_type) "int" (identifier) "val" ()) ")" (;) ";" (declaration) "bool checkDisk();" (primitive_type) "bool" (function_declarator) "checkDisk()" (identifier) "checkDisk" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool installLoader();" (primitive_type) "bool" (function_declarator) "installLoader()" (identifier) "installLoader" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool makeChosenPartitions();" (primitive_type) "bool" (function_declarator) "makeChosenPartitions()" (identifier) "makeChosenPartitions" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool makeDefaultPartitions();" (primitive_type) "bool" (function_declarator) "makeDefaultPartitions()" (identifier) "makeDefaultPartitions" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool makeFloppy();" (primitive_type) "bool" (function_declarator) "makeFloppy()" (identifier) "makeFloppy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd);" (primitive_type) "bool" (function_declarator) "makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd)" (identifier) "makeGrub" (parameter_list) "(int rootdev, QString rootpart, const char *rootmnt, bool initrd)" (() "(" (parameter_declaration) "int rootdev" (primitive_type) "int" (identifier) "rootdev" (,) "," (parameter_declaration) "QString rootpart" (type_identifier) "QString" (identifier) "rootpart" (,) "," (parameter_declaration) "const char *rootmnt" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*rootmnt" (*) "*" (identifier) "rootmnt" (,) "," (parameter_declaration) "bool initrd" (primitive_type) "bool" (identifier) "initrd" ()) ")" (;) ";" (declaration) "bool makeLinuxPartition(QString dev, const char *type, bool bad, QString label);" (primitive_type) "bool" (function_declarator) "makeLinuxPartition(QString dev, const char *type, bool bad, QString label)" (identifier) "makeLinuxPartition" (parameter_list) "(QString dev, const char *type, bool bad, QString label)" (() "(" (parameter_declaration) "QString dev" (type_identifier) "QString" (identifier) "dev" (,) "," (parameter_declaration) "const char *type" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*type" (*) "*" (identifier) "type" (,) "," (parameter_declaration) "bool bad" (primitive_type) "bool" (identifier) "bad" (,) "," (parameter_declaration) "QString label" (type_identifier) "QString" (identifier) "label" ()) ")" (;) ";" (declaration) "bool makeSwapPartition(QString dev);" (primitive_type) "bool" (function_declarator) "makeSwapPartition(QString dev)" (identifier) "makeSwapPartition" (parameter_list) "(QString dev)" (() "(" (parameter_declaration) "QString dev" (type_identifier) "QString" (identifier) "dev" ()) ")" (;) ";" (declaration) "bool makeEsp(QString drv, int size);" (primitive_type) "bool" (function_declarator) "makeEsp(QString drv, int size)" (identifier) "makeEsp" (parameter_list) "(QString drv, int size)" (() "(" (parameter_declaration) "QString drv" (type_identifier) "QString" (identifier) "drv" (,) "," (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (;) ";" (declaration) "bool mountPartition(QString dev, const char *point);" (primitive_type) "bool" (function_declarator) "mountPartition(QString dev, const char *point)" (identifier) "mountPartition" (parameter_list) "(QString dev, const char *point)" (() "(" (parameter_declaration) "QString dev" (type_identifier) "QString" (identifier) "dev" (,) "," (parameter_declaration) "const char *point" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*point" (*) "*" (identifier) "point" ()) ")" (;) ";" (declaration) "bool removeKernel();" (primitive_type) "bool" (function_declarator) "removeKernel()" (identifier) "removeKernel" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool setComputerName();" (primitive_type) "bool" (function_declarator) "setComputerName()" (identifier) "setComputerName" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool setPasswords();" (primitive_type) "bool" (function_declarator) "setPasswords()" (identifier) "setPasswords" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool setUserInfo();" (primitive_type) "bool" (function_declarator) "setUserInfo()" (identifier) "setUserInfo" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool setUserName();" (primitive_type) "bool" (function_declarator) "setUserName()" (identifier) "setUserName" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void gotoPage(int next);" (primitive_type) "void" (function_declarator) "gotoPage(int next)" (identifier) "gotoPage" (parameter_list) "(int next)" (() "(" (parameter_declaration) "int next" (primitive_type) "int" (identifier) "next" ()) ")" (;) ";" (declaration) "void pageDisplayed(int next);" (primitive_type) "void" (function_declarator) "pageDisplayed(int next)" (identifier) "pageDisplayed" (parameter_list) "(int next)" (() "(" (parameter_declaration) "int next" (primitive_type) "int" (identifier) "next" ()) ")" (;) ";" (declaration) "int showPage(int curr, int next);" (primitive_type) "int" (function_declarator) "showPage(int curr, int next)" (identifier) "showPage" (parameter_list) "(int curr, int next)" (() "(" (parameter_declaration) "int curr" (primitive_type) "int" (identifier) "curr" (,) "," (parameter_declaration) "int next" (primitive_type) "int" (identifier) "next" ()) ")" (;) ";" (declaration) "void stopInstall();" (primitive_type) "void" (function_declarator) "stopInstall()" (identifier) "stopInstall" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void firstRefresh(QDialog *main);" (primitive_type) "void" (function_declarator) "firstRefresh(QDialog *main)" (identifier) "firstRefresh" (parameter_list) "(QDialog *main)" (() "(" (parameter_declaration) "QDialog *main" (type_identifier) "QDialog" (pointer_declarator) "*main" (*) "*" (identifier) "main" ()) ")" (;) ";" (declaration) "void refresh();" (primitive_type) "void" (function_declarator) "refresh()" (identifier) "refresh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "public slots:\n virtual void on_passwordCheckBox_stateChanged(int);" (type_identifier) "public" (ERROR) "slots:\n virtual void" (identifier) "slots" (:) ":" (identifier) "virtual" (identifier) "void" (function_declarator) "on_passwordCheckBox_stateChanged(int)" (identifier) "on_passwordCheckBox_stateChanged" (parameter_list) "(int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (declaration) "virtual void on_nextButton_clicked();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_nextButton_clicked()" (identifier) "on_nextButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void on_backButton_clicked();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_backButton_clicked()" (identifier) "on_backButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void on_abortInstallButton_clicked();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_abortInstallButton_clicked()" (identifier) "on_abortInstallButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void on_qtpartedButton_clicked();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_qtpartedButton_clicked()" (identifier) "on_qtpartedButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void on_diskCombo_activated(QString item = "");" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "on_diskCombo_activated(QString item = """ (function_declarator) "on_diskCombo_activated(QString item" (identifier) "on_diskCombo_activated" (parameter_list) "(QString item" (() "(" (parameter_declaration) "QString item" (type_identifier) "QString" (identifier) "item" ()) "" (=) "=" (string_literal) """" (") """ (") """ (ERROR) ")" ()) ")" (;) ";" (declaration) "virtual void on_rootCombo_activated(QString item = "");" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "on_rootCombo_activated(QString item = """ (function_declarator) "on_rootCombo_activated(QString item" (identifier) "on_rootCombo_activated" (parameter_list) "(QString item" (() "(" (parameter_declaration) "QString item" (type_identifier) "QString" (identifier) "item" ()) "" (=) "=" (string_literal) """" (") """ (") """ (ERROR) ")" ()) ")" (;) ";" (declaration) "virtual void on_rootTypeCombo_activated(QString item = "");" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "on_rootTypeCombo_activated(QString item = """ (function_declarator) "on_rootTypeCombo_activated(QString item" (identifier) "on_rootTypeCombo_activated" (parameter_list) "(QString item" (() "(" (parameter_declaration) "QString item" (type_identifier) "QString" (identifier) "item" ()) "" (=) "=" (string_literal) """" (") """ (") """ (ERROR) ")" ()) ")" (;) ";" (declaration) "void procAbort();" (primitive_type) "void" (function_declarator) "procAbort()" (identifier) "procAbort" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool close();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "close()" (identifier) "close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// void moreClicked(QListViewItem *item);" (declaration) "void delStart();" (primitive_type) "void" (function_declarator) "delStart()" (identifier) "delStart" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void delDone(int, QProcess::ExitStatus exitStatus);" (primitive_type) "void" (function_declarator) "delDone(int, QProcess::ExitStatus exitStatus)" (identifier) "delDone" (parameter_list) "(int, QProcess::ExitStatus exitStatus)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "QProcess::ExitStatus exitStatus" (type_identifier) "QProcess" (ERROR) "::ExitStatus" (:) ":" (:) ":" (identifier) "ExitStatus" (identifier) "exitStatus" ()) ")" (;) ";" (declaration) "void delTime();" (primitive_type) "void" (function_declarator) "delTime()" (identifier) "delTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void copyStart();" (primitive_type) "void" (function_declarator) "copyStart()" (identifier) "copyStart" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void copyDone(int, QProcess::ExitStatus exitStatus);" (primitive_type) "void" (function_declarator) "copyDone(int, QProcess::ExitStatus exitStatus)" (identifier) "copyDone" (parameter_list) "(int, QProcess::ExitStatus exitStatus)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "QProcess::ExitStatus exitStatus" (type_identifier) "QProcess" (ERROR) "::ExitStatus" (:) ":" (:) ":" (identifier) "ExitStatus" (identifier) "exitStatus" ()) ")" (;) ";" (declaration) "void copyTime();" (primitive_type) "void" (function_declarator) "copyTime()" (identifier) "copyTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void procTime();" (primitive_type) "void" (function_declarator) "procTime()" (identifier) "procTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "private slots:" (type_identifier) "private" (identifier) "slots" (:) ":" (declaration) "void on_viewServicesButton_clicked();" (primitive_type) "void" (function_declarator) "on_viewServicesButton_clicked()" (identifier) "on_viewServicesButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void on_homeCombo_activated(const QString &arg1);" (primitive_type) "void" (function_declarator) "on_homeCombo_activated(const QString &arg1)" (identifier) "on_homeCombo_activated" (parameter_list) "(const QString &arg1)" (() "(" (parameter_declaration) "const QString &arg1" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "arg1" ()) ")" (;) ";" (declaration) "void on_grubBootCombo_activated(QString item = "");" (primitive_type) "void" (init_declarator) "on_grubBootCombo_activated(QString item = """ (function_declarator) "on_grubBootCombo_activated(QString item" (identifier) "on_grubBootCombo_activated" (parameter_list) "(QString item" (() "(" (parameter_declaration) "QString item" (type_identifier) "QString" (identifier) "item" ()) "" (=) "=" (string_literal) """" (") """ (") """ (ERROR) ")" ()) ")" (;) ";" (declaration) "void on_closeButton_clicked();" (primitive_type) "void" (function_declarator) "on_closeButton_clicked()" (identifier) "on_closeButton_clicked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void on_encryptCheckBox_toggled(bool checked);" (primitive_type) "void" (function_declarator) "on_encryptCheckBox_toggled(bool checked)" (identifier) "on_encryptCheckBox_toggled" (parameter_list) "(bool checked)" (() "(" (parameter_declaration) "bool checked" (primitive_type) "bool" (identifier) "checked" ()) ")" (;) ";" (declaration) "void on_saveHomeCheck_toggled(bool checked);" (primitive_type) "void" (function_declarator) "on_saveHomeCheck_toggled(bool checked)" (identifier) "on_saveHomeCheck_toggled" (parameter_list) "(bool checked)" (() "(" (parameter_declaration) "bool checked" (primitive_type) "bool" (identifier) "checked" ()) ")" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
1,136
21
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 32.98, "nodes": 776, "errors": 0, "source_hash": "7089953beef71712171621902d9b9de32113196bf00d4c450f98da46ae658885", "categorized_nodes": 527}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 0, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <sys/swap.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": "<sys/swap.h>", "parent": 3, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <dirent.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<dirent.h>", "parent": 9, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <QFile>\n", "parent": null, "children": [13, 14], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QFile>", "parent": 12, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include <QMessageBox>\n", "parent": null, "children": [16, 17], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<QMessageBox>", "parent": 15, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <QProcess>\n", "parent": null, "children": [19, 20], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<QProcess>", "parent": 18, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include <QTimer>\n", "parent": null, "children": [22, 23], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<QTimer>", "parent": 21, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include <QProgressDialog>\n", "parent": null, "children": [25, 26], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<QProgressDialog>", "parent": 24, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 26}}, {"id": 27, "type": "preproc_include", "text": "#include <QtConcurrent/QtConcurrent>\n", "parent": null, "children": [28, 29], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<QtConcurrent/QtConcurrent>", "parent": 27, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 36}}, {"id": 30, "type": "preproc_include", "text": "#include \"ui_meinstall.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"ui_meinstall.h\"", "parent": 30, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 25}}, {"id": 33, "type": "declaration", "text": "class MInstall : public QWidget, public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess *proc;", "parent": null, "children": [34, 35, 37, 42], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 19}}, {"id": 34, "type": "identifier", "text": "MInstall", "parent": 33, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 14}}, {"id": 35, "type": "ERROR", "text": ": public QWidget", "parent": 33, "children": [36], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 31}}, {"id": 36, "type": "identifier", "text": "QWidget", "parent": 35, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 31}}, {"id": 37, "type": "ERROR", "text": "public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess", "parent": 33, "children": [38, 39, 40, 41], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 31, "column": 12}}, {"id": 38, "type": "identifier", "text": "Ui", "parent": 37, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 42}}, {"id": 39, "type": "identifier", "text": "MeInstall", "parent": 37, "children": [], "start_point": {"row": 28, "column": 44}, "end_point": {"row": 28, "column": 53}}, {"id": 40, "type": "identifier", "text": "Q_OBJECT", "parent": 37, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 41, "type": "identifier", "text": "QProcess", "parent": 37, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 42, "type": "pointer_declarator", "text": "*proc", "parent": 33, "children": [43, 44], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 18}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 44, "type": "identifier", "text": "proc", "parent": 42, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 18}}, {"id": 45, "type": "declaration", "text": "QTimer *timer;", "parent": null, "children": [46, 47], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 18}}, {"id": 46, "type": "type_identifier", "text": "QTimer", "parent": 45, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 47, "type": "pointer_declarator", "text": "*timer", "parent": 45, "children": [48, 49], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 17}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}, {"id": 49, "type": "identifier", "text": "timer", "parent": 47, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 17}}, {"id": 50, "type": "declaration", "text": "QProgressBar *bar;", "parent": null, "children": [51, 52], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 22}}, {"id": 51, "type": "type_identifier", "text": "QProgressBar", "parent": 50, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 16}}, {"id": 52, "type": "pointer_declarator", "text": "*bar", "parent": 50, "children": [53, 54], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 21}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 54, "type": "identifier", "text": "bar", "parent": 52, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 21}}, {"id": 55, "type": "update_expression", "text": "QFutureWatcher<void> futureWatcher", "parent": null, "children": [56, 63], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 38}}, {"id": 56, "type": "binary_expression", "text": "QFutureWatcher<void> futureWatcher", "parent": 55, "children": [57, 61, 62], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 38}}, {"id": 57, "type": "binary_expression", "text": "QFutureWatcher<void", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 23}}, {"id": 58, "type": "identifier", "text": "QFutureWatcher", "parent": 57, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 18}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 60, "type": "identifier", "text": "void", "parent": 57, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 23}}, {"id": 61, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 24}}, {"id": 62, "type": "identifier", "text": "futureWatcher", "parent": 56, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 38}}, {"id": 63, "type": "--", "text": "", "parent": 55, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 38}}, {"id": 64, "type": "declaration", "text": "QTreeWidgetItem *webminItem;", "parent": null, "children": [65, 66], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 32}}, {"id": 65, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 64, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 19}}, {"id": 66, "type": "pointer_declarator", "text": "*webminItem", "parent": 64, "children": [67, 68], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 31}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 68, "type": "identifier", "text": "webminItem", "parent": 66, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 31}}, {"id": 69, "type": "declaration", "text": "QTreeWidgetItem *sshItem;", "parent": null, "children": [70, 71], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 29}}, {"id": 70, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 69, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 71, "type": "pointer_declarator", "text": "*sshItem", "parent": 69, "children": [72, 73], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 28}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 73, "type": "identifier", "text": "sshItem", "parent": 71, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 28}}, {"id": 74, "type": "declaration", "text": "QTreeWidgetItem *cupsItem;", "parent": null, "children": [75, 76], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 30}}, {"id": 75, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 74, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 19}}, {"id": 76, "type": "pointer_declarator", "text": "*cupsItem", "parent": 74, "children": [77, 78], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 29}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 78, "type": "identifier", "text": "cupsItem", "parent": 76, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 29}}, {"id": 79, "type": "declaration", "text": "QTreeWidgetItem *mysqlItem;", "parent": null, "children": [80, 81], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 31}}, {"id": 80, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 79, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 19}}, {"id": 81, "type": "pointer_declarator", "text": "*mysqlItem", "parent": 79, "children": [82, 83], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 30}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 83, "type": "identifier", "text": "mysqlItem", "parent": 81, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 30}}, {"id": 84, "type": "declaration", "text": "QTreeWidgetItem *cpufreqItem;", "parent": null, "children": [85, 86], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 33}}, {"id": 85, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 84, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 19}}, {"id": 86, "type": "pointer_declarator", "text": "*cpufreqItem", "parent": 84, "children": [87, 88], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 32}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 88, "type": "identifier", "text": "cpufreqItem", "parent": 86, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 32}}, {"id": 89, "type": "declaration", "text": "QTreeWidgetItem *anacronItem;", "parent": null, "children": [90, 91], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 33}}, {"id": 90, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 89, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 19}}, {"id": 91, "type": "pointer_declarator", "text": "*anacronItem", "parent": 89, "children": [92, 93], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 32}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 93, "type": "identifier", "text": "anacronItem", "parent": 91, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 32}}, {"id": 94, "type": "declaration", "text": "QTreeWidgetItem *dbusItem;", "parent": null, "children": [95, 96], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 30}}, {"id": 95, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 94, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 19}}, {"id": 96, "type": "pointer_declarator", "text": "*dbusItem", "parent": 94, "children": [97, 98], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 29}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 98, "type": "identifier", "text": "dbusItem", "parent": 96, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 29}}, {"id": 99, "type": "declaration", "text": "QTreeWidgetItem *cronItem;", "parent": null, "children": [100, 101], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 30}}, {"id": 100, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 99, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 19}}, {"id": 101, "type": "pointer_declarator", "text": "*cronItem", "parent": 99, "children": [102, 103], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 29}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 21}}, {"id": 103, "type": "identifier", "text": "cronItem", "parent": 101, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 29}}, {"id": 104, "type": "declaration", "text": "QTreeWidgetItem *gpmItem;", "parent": null, "children": [105, 106], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 29}}, {"id": 105, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 104, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 19}}, {"id": 106, "type": "pointer_declarator", "text": "*gpmItem", "parent": 104, "children": [107, 108], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 28}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 108, "type": "identifier", "text": "gpmItem", "parent": 106, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 28}}, {"id": 109, "type": "declaration", "text": "QTreeWidgetItem *sudoItem;", "parent": null, "children": [110, 111], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 30}}, {"id": 110, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 109, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 19}}, {"id": 111, "type": "pointer_declarator", "text": "*sudoItem", "parent": 109, "children": [112, 113], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 29}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 21}}, {"id": 113, "type": "identifier", "text": "sudoItem", "parent": 111, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 29}}, {"id": 114, "type": "declaration", "text": "QTreeWidgetItem *postfixItem;", "parent": null, "children": [115, 116], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 33}}, {"id": 115, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 114, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 19}}, {"id": 116, "type": "pointer_declarator", "text": "*postfixItem", "parent": 114, "children": [117, 118], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 32}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 118, "type": "identifier", "text": "postfixItem", "parent": 116, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 32}}, {"id": 119, "type": "declaration", "text": "QTreeWidgetItem *sanedItem;", "parent": null, "children": [120, 121], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 31}}, {"id": 120, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 119, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 19}}, {"id": 121, "type": "pointer_declarator", "text": "*sanedItem", "parent": 119, "children": [122, 123], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 30}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 21}}, {"id": 123, "type": "identifier", "text": "sanedItem", "parent": 121, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 30}}, {"id": 124, "type": "declaration", "text": "QTreeWidgetItem *rsyncItem;", "parent": null, "children": [125, 126], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 31}}, {"id": 125, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 124, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 19}}, {"id": 126, "type": "pointer_declarator", "text": "*rsyncItem", "parent": 124, "children": [127, 128], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 30}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 128, "type": "identifier", "text": "rsyncItem", "parent": 126, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 30}}, {"id": 129, "type": "declaration", "text": "QTreeWidgetItem *bindItem;", "parent": null, "children": [130, 131], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 30}}, {"id": 130, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 129, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 19}}, {"id": 131, "type": "pointer_declarator", "text": "*bindItem", "parent": 129, "children": [132, 133], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 29}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 21}}, {"id": 133, "type": "identifier", "text": "bindItem", "parent": 131, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 29}}, {"id": 134, "type": "declaration", "text": "QTreeWidgetItem *dhcpItem;", "parent": null, "children": [135, 136], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 30}}, {"id": 135, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 134, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 19}}, {"id": 136, "type": "pointer_declarator", "text": "*dhcpItem", "parent": 134, "children": [137, 138], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 29}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 138, "type": "identifier", "text": "dhcpItem", "parent": 136, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 29}}, {"id": 139, "type": "declaration", "text": "QTreeWidgetItem *spamassassinItem;", "parent": null, "children": [140, 141], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 38}}, {"id": 140, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 139, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 19}}, {"id": 141, "type": "pointer_declarator", "text": "*spamassassinItem", "parent": 139, "children": [142, 143], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 37}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 21}}, {"id": 143, "type": "identifier", "text": "spamassassinItem", "parent": 141, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 37}}, {"id": 144, "type": "declaration", "text": "QTreeWidgetItem *shorewallItem;", "parent": null, "children": [145, 146], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 35}}, {"id": 145, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 144, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 19}}, {"id": 146, "type": "pointer_declarator", "text": "*shorewallItem", "parent": 144, "children": [147, 148], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 34}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 148, "type": "identifier", "text": "shorewallItem", "parent": 146, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 34}}, {"id": 149, "type": "declaration", "text": "QTreeWidgetItem *snortItem;", "parent": null, "children": [150, 151], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 31}}, {"id": 150, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 149, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 19}}, {"id": 151, "type": "pointer_declarator", "text": "*snortItem", "parent": 149, "children": [152, 153], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 30}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 153, "type": "identifier", "text": "snortItem", "parent": 151, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 30}}, {"id": 154, "type": "declaration", "text": "QTreeWidgetItem *squidItem;", "parent": null, "children": [155, 156], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 31}}, {"id": 155, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 154, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 19}}, {"id": 156, "type": "pointer_declarator", "text": "*squidItem", "parent": 154, "children": [157, 158], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 30}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 158, "type": "identifier", "text": "squidItem", "parent": 156, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 30}}, {"id": 159, "type": "declaration", "text": "QTreeWidgetItem *bluetoothItem;", "parent": null, "children": [160, 161], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 35}}, {"id": 160, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 159, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 19}}, {"id": 161, "type": "pointer_declarator", "text": "*bluetoothItem", "parent": 159, "children": [162, 163], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 34}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 21}}, {"id": 163, "type": "identifier", "text": "bluetoothItem", "parent": 161, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 34}}, {"id": 164, "type": "declaration", "text": "QTreeWidgetItem *guarddogItem;", "parent": null, "children": [165, 166], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 34}}, {"id": 165, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 164, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 19}}, {"id": 166, "type": "pointer_declarator", "text": "*guarddogItem", "parent": 164, "children": [167, 168], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 33}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 21}}, {"id": 168, "type": "identifier", "text": "guarddogItem", "parent": 166, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 33}}, {"id": 169, "type": "declaration", "text": "QTreeWidgetItem *networkmanagerItem;", "parent": null, "children": [170, 171], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 40}}, {"id": 170, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 169, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 19}}, {"id": 171, "type": "pointer_declarator", "text": "*networkmanagerItem", "parent": 169, "children": [172, 173], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 39}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 173, "type": "identifier", "text": "networkmanagerItem", "parent": 171, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 39}}, {"id": 174, "type": "declaration", "text": "QTreeWidgetItem *isdnItem;", "parent": null, "children": [175, 176], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 30}}, {"id": 175, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 174, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 19}}, {"id": 176, "type": "pointer_declarator", "text": "*isdnItem", "parent": 174, "children": [177, 178], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 29}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 178, "type": "identifier", "text": "isdnItem", "parent": 176, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 29}}, {"id": 179, "type": "declaration", "text": "QTreeWidgetItem *nfsItem;", "parent": null, "children": [180, 181], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 29}}, {"id": 180, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 179, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 19}}, {"id": 181, "type": "pointer_declarator", "text": "*nfsItem", "parent": 179, "children": [182, 183], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 28}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 21}}, {"id": 183, "type": "identifier", "text": "nfsItem", "parent": 181, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 28}}, {"id": 184, "type": "declaration", "text": "QTreeWidgetItem *openvpnItem;", "parent": null, "children": [185, 186], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 33}}, {"id": 185, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 184, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 19}}, {"id": 186, "type": "pointer_declarator", "text": "*openvpnItem", "parent": 184, "children": [187, 188], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 32}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 21}}, {"id": 188, "type": "identifier", "text": "openvpnItem", "parent": 186, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 32}}, {"id": 189, "type": "declaration", "text": "QTreeWidgetItem *smartmontoolsItem;", "parent": null, "children": [190, 191], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 39}}, {"id": 190, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 189, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 19}}, {"id": 191, "type": "pointer_declarator", "text": "*smartmontoolsItem", "parent": 189, "children": [192, 193], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 38}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 193, "type": "identifier", "text": "smartmontoolsItem", "parent": 191, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 38}}, {"id": 194, "type": "declaration", "text": "QTreeWidgetItem *acpidItem;", "parent": null, "children": [195, 196], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 31}}, {"id": 195, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 194, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 19}}, {"id": 196, "type": "pointer_declarator", "text": "*acpidItem", "parent": 194, "children": [197, 198], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 30}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 198, "type": "identifier", "text": "acpidItem", "parent": 196, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 30}}, {"id": 199, "type": "declaration", "text": "QTreeWidgetItem *hddtempItem;", "parent": null, "children": [200, 201], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 33}}, {"id": 200, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 199, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 19}}, {"id": 201, "type": "pointer_declarator", "text": "*hddtempItem", "parent": 199, "children": [202, 203], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 32}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 203, "type": "identifier", "text": "hddtempItem", "parent": 201, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 32}}, {"id": 204, "type": "declaration", "text": "QTreeWidgetItem *acpifakekeyItem;", "parent": null, "children": [205, 206], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 37}}, {"id": 205, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 204, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 19}}, {"id": 206, "type": "pointer_declarator", "text": "*acpifakekeyItem", "parent": 204, "children": [207, 208], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 36}}, {"id": 207, "type": "*", "text": "*", "parent": 206, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 208, "type": "identifier", "text": "acpifakekeyItem", "parent": 206, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 36}}, {"id": 209, "type": "declaration", "text": "QTreeWidgetItem *havegedItem;", "parent": null, "children": [210, 211], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 33}}, {"id": 210, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 209, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 19}}, {"id": 211, "type": "pointer_declarator", "text": "*havegedItem", "parent": 209, "children": [212, 213], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 32}}, {"id": 212, "type": "*", "text": "*", "parent": 211, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 21}}, {"id": 213, "type": "identifier", "text": "havegedItem", "parent": 211, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 32}}, {"id": 214, "type": "declaration", "text": "QTreeWidgetItem *avahiItem;", "parent": null, "children": [215, 216], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 31}}, {"id": 215, "type": "type_identifier", "text": "QTreeWidgetItem", "parent": 214, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 19}}, {"id": 216, "type": "pointer_declarator", "text": "*avahiItem", "parent": 214, "children": [217, 218], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 30}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 21}}, {"id": 218, "type": "identifier", "text": "avahiItem", "parent": 216, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 30}}, {"id": 219, "type": "declaration", "text": "QDialog *mmn;", "parent": null, "children": [220, 221], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 17}}, {"id": 220, "type": "type_identifier", "text": "QDialog", "parent": 219, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 11}}, {"id": 221, "type": "pointer_declarator", "text": "*mmn", "parent": 219, "children": [222, 223], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 16}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 13}}, {"id": 223, "type": "identifier", "text": "mmn", "parent": 221, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 16}}, {"id": 224, "type": "labeled_statement", "text": "public:\n /** constructor */\n MInstall(QWidget* parent=0);", "parent": null, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 73, "column": 32}}, {"id": 225, "type": "call_expression", "text": "MInstall(QWidget* parent=0)", "parent": 224, "children": [226, 227], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 31}}, {"id": 226, "type": "identifier", "text": "MInstall", "parent": 225, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 12}}, {"id": 227, "type": "argument_list", "text": "(QWidget* parent=0)", "parent": 225, "children": [228], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 31}}, {"id": 228, "type": "binary_expression", "text": "QWidget* parent=0", "parent": 227, "children": [229, 230, 231], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 30}}, {"id": 229, "type": "identifier", "text": "QWidget", "parent": 228, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 20}}, {"id": 230, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 231, "type": "assignment_expression", "text": "parent=0", "parent": 228, "children": [232, 233, 234], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 30}}, {"id": 232, "type": "identifier", "text": "parent", "parent": 231, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 28}}, {"id": 233, "type": "=", "text": "=", "parent": 231, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 235, "type": "unary_expression", "text": "~MInstall()", "parent": null, "children": [236, 237], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 15}}, {"id": 236, "type": "~", "text": "~", "parent": 235, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 237, "type": "call_expression", "text": "MInstall()", "parent": 235, "children": [238, 239], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 15}}, {"id": 238, "type": "identifier", "text": "MInstall", "parent": 237, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 13}}, {"id": 239, "type": "argument_list", "text": "()", "parent": 237, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 15}}, {"id": 240, "type": "declaration", "text": "bool abortInstall;", "parent": null, "children": [241, 242], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 22}}, {"id": 241, "type": "primitive_type", "text": "bool", "parent": 240, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 242, "type": "identifier", "text": "abortInstall", "parent": 240, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 21}}, {"id": 243, "type": "declaration", "text": "int removedItemIndex;", "parent": null, "children": [244, 245], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 25}}, {"id": 244, "type": "primitive_type", "text": "int", "parent": 243, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 7}}, {"id": 245, "type": "identifier", "text": "removedItemIndex", "parent": 243, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 24}}, {"id": 246, "type": "declaration", "text": "QString removedItem;", "parent": null, "children": [247, 248], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 24}}, {"id": 247, "type": "type_identifier", "text": "QString", "parent": 246, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 11}}, {"id": 248, "type": "identifier", "text": "removedItem", "parent": 246, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 23}}, {"id": 249, "type": "declaration", "text": "void goBack(QString msg);", "parent": null, "children": [250, 251], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 29}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 8}}, {"id": 251, "type": "function_declarator", "text": "goBack(QString msg)", "parent": 249, "children": [252, 253], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 28}}, {"id": 252, "type": "identifier", "text": "goBack", "parent": 251, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 15}}, {"id": 253, "type": "parameter_list", "text": "(QString msg)", "parent": 251, "children": [254], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 28}}, {"id": 254, "type": "parameter_declaration", "text": "QString msg", "parent": 253, "children": [255, 256], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 27}}, {"id": 255, "type": "type_identifier", "text": "QString", "parent": 254, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 23}}, {"id": 256, "type": "identifier", "text": "msg", "parent": 254, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 27}}, {"id": 257, "type": "declaration", "text": "void unmountGoBack(QString msg);", "parent": null, "children": [258, 259], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 36}}, {"id": 258, "type": "primitive_type", "text": "void", "parent": 257, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 8}}, {"id": 259, "type": "function_declarator", "text": "unmountGoBack(QString msg)", "parent": 257, "children": [260, 261], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 35}}, {"id": 260, "type": "identifier", "text": "unmountGoBack", "parent": 259, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 22}}, {"id": 261, "type": "parameter_list", "text": "(QString msg)", "parent": 259, "children": [262], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 35}}, {"id": 262, "type": "parameter_declaration", "text": "QString msg", "parent": 261, "children": [263, 264], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 34}}, {"id": 263, "type": "type_identifier", "text": "QString", "parent": 262, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 30}}, {"id": 264, "type": "identifier", "text": "msg", "parent": 262, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 34}}, {"id": 265, "type": "declaration", "text": "static QString getCmdOut(QString cmd);", "parent": null, "children": [266, 267], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 42}}, {"id": 266, "type": "type_identifier", "text": "QString", "parent": 265, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 18}}, {"id": 267, "type": "function_declarator", "text": "getCmdOut(QString cmd)", "parent": 265, "children": [268, 269], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 41}}, {"id": 268, "type": "identifier", "text": "getCmdOut", "parent": 267, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 28}}, {"id": 269, "type": "parameter_list", "text": "(QString cmd)", "parent": 267, "children": [270], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 41}}, {"id": 270, "type": "parameter_declaration", "text": "QString cmd", "parent": 269, "children": [271, 272], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 40}}, {"id": 271, "type": "type_identifier", "text": "QString", "parent": 270, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 36}}, {"id": 272, "type": "identifier", "text": "cmd", "parent": 270, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 40}}, {"id": 273, "type": "declaration", "text": "static QStringList getCmdOuts(QString cmd);", "parent": null, "children": [274, 275], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 47}}, {"id": 274, "type": "type_identifier", "text": "QStringList", "parent": 273, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 22}}, {"id": 275, "type": "function_declarator", "text": "getCmdOuts(QString cmd)", "parent": 273, "children": [276, 277], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 46}}, {"id": 276, "type": "identifier", "text": "getCmdOuts", "parent": 275, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 33}}, {"id": 277, "type": "parameter_list", "text": "(QString cmd)", "parent": 275, "children": [278], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 46}}, {"id": 278, "type": "parameter_declaration", "text": "QString cmd", "parent": 277, "children": [279, 280], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 45}}, {"id": 279, "type": "type_identifier", "text": "QString", "parent": 278, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 41}}, {"id": 280, "type": "identifier", "text": "cmd", "parent": 278, "children": [], "start_point": {"row": 87, "column": 42}, "end_point": {"row": 87, "column": 45}}, {"id": 281, "type": "declaration", "text": "static QString getCmdValue(QString cmd, QString key, QString keydel, QString valdel);", "parent": null, "children": [282, 283], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 89}}, {"id": 282, "type": "type_identifier", "text": "QString", "parent": 281, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 18}}, {"id": 283, "type": "function_declarator", "text": "getCmdValue(QString cmd, QString key, QString keydel, QString valdel)", "parent": 281, "children": [284, 285], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 88}}, {"id": 284, "type": "identifier", "text": "getCmdValue", "parent": 283, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 30}}, {"id": 285, "type": "parameter_list", "text": "(QString cmd, QString key, QString keydel, QString valdel)", "parent": 283, "children": [286, 289, 292, 295], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 88}}, {"id": 286, "type": "parameter_declaration", "text": "QString cmd", "parent": 285, "children": [287, 288], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 42}}, {"id": 287, "type": "type_identifier", "text": "QString", "parent": 286, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 38}}, {"id": 288, "type": "identifier", "text": "cmd", "parent": 286, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 42}}, {"id": 289, "type": "parameter_declaration", "text": "QString key", "parent": 285, "children": [290, 291], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 55}}, {"id": 290, "type": "type_identifier", "text": "QString", "parent": 289, "children": [], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 88, "column": 51}}, {"id": 291, "type": "identifier", "text": "key", "parent": 289, "children": [], "start_point": {"row": 88, "column": 52}, "end_point": {"row": 88, "column": 55}}, {"id": 292, "type": "parameter_declaration", "text": "QString keydel", "parent": 285, "children": [293, 294], "start_point": {"row": 88, "column": 57}, "end_point": {"row": 88, "column": 71}}, {"id": 293, "type": "type_identifier", "text": "QString", "parent": 292, "children": [], "start_point": {"row": 88, "column": 57}, "end_point": {"row": 88, "column": 64}}, {"id": 294, "type": "identifier", "text": "keydel", "parent": 292, "children": [], "start_point": {"row": 88, "column": 65}, "end_point": {"row": 88, "column": 71}}, {"id": 295, "type": "parameter_declaration", "text": "QString valdel", "parent": 285, "children": [296, 297], "start_point": {"row": 88, "column": 73}, "end_point": {"row": 88, "column": 87}}, {"id": 296, "type": "type_identifier", "text": "QString", "parent": 295, "children": [], "start_point": {"row": 88, "column": 73}, "end_point": {"row": 88, "column": 80}}, {"id": 297, "type": "identifier", "text": "valdel", "parent": 295, "children": [], "start_point": {"row": 88, "column": 81}, "end_point": {"row": 88, "column": 87}}, {"id": 298, "type": "declaration", "text": "static QStringList getCmdValues(QString cmd, QString key, QString keydel, QString valdel);", "parent": null, "children": [299, 300], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 94}}, {"id": 299, "type": "type_identifier", "text": "QStringList", "parent": 298, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 22}}, {"id": 300, "type": "function_declarator", "text": "getCmdValues(QString cmd, QString key, QString keydel, QString valdel)", "parent": 298, "children": [301, 302], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 93}}, {"id": 301, "type": "identifier", "text": "getCmdValues", "parent": 300, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 35}}, {"id": 302, "type": "parameter_list", "text": "(QString cmd, QString key, QString keydel, QString valdel)", "parent": 300, "children": [303, 306, 309, 312], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 93}}, {"id": 303, "type": "parameter_declaration", "text": "QString cmd", "parent": 302, "children": [304, 305], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 47}}, {"id": 304, "type": "type_identifier", "text": "QString", "parent": 303, "children": [], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 43}}, {"id": 305, "type": "identifier", "text": "cmd", "parent": 303, "children": [], "start_point": {"row": 89, "column": 44}, "end_point": {"row": 89, "column": 47}}, {"id": 306, "type": "parameter_declaration", "text": "QString key", "parent": 302, "children": [307, 308], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 60}}, {"id": 307, "type": "type_identifier", "text": "QString", "parent": 306, "children": [], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 56}}, {"id": 308, "type": "identifier", "text": "key", "parent": 306, "children": [], "start_point": {"row": 89, "column": 57}, "end_point": {"row": 89, "column": 60}}, {"id": 309, "type": "parameter_declaration", "text": "QString keydel", "parent": 302, "children": [310, 311], "start_point": {"row": 89, "column": 62}, "end_point": {"row": 89, "column": 76}}, {"id": 310, "type": "type_identifier", "text": "QString", "parent": 309, "children": [], "start_point": {"row": 89, "column": 62}, "end_point": {"row": 89, "column": 69}}, {"id": 311, "type": "identifier", "text": "keydel", "parent": 309, "children": [], "start_point": {"row": 89, "column": 70}, "end_point": {"row": 89, "column": 76}}, {"id": 312, "type": "parameter_declaration", "text": "QString valdel", "parent": 302, "children": [313, 314], "start_point": {"row": 89, "column": 78}, "end_point": {"row": 89, "column": 92}}, {"id": 313, "type": "type_identifier", "text": "QString", "parent": 312, "children": [], "start_point": {"row": 89, "column": 78}, "end_point": {"row": 89, "column": 85}}, {"id": 314, "type": "identifier", "text": "valdel", "parent": 312, "children": [], "start_point": {"row": 89, "column": 86}, "end_point": {"row": 89, "column": 92}}, {"id": 315, "type": "declaration", "text": "static bool replaceStringInFile(QString oldtext, QString newtext, QString filepath);", "parent": null, "children": [316, 317], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 88}}, {"id": 316, "type": "primitive_type", "text": "bool", "parent": 315, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 15}}, {"id": 317, "type": "function_declarator", "text": "replaceStringInFile(QString oldtext, QString newtext, QString filepath)", "parent": 315, "children": [318, 319], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 87}}, {"id": 318, "type": "identifier", "text": "replaceStringInFile", "parent": 317, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 35}}, {"id": 319, "type": "parameter_list", "text": "(QString oldtext, QString newtext, QString filepath)", "parent": 317, "children": [320, 323, 326], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 87}}, {"id": 320, "type": "parameter_declaration", "text": "QString oldtext", "parent": 319, "children": [321, 322], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 51}}, {"id": 321, "type": "type_identifier", "text": "QString", "parent": 320, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 43}}, {"id": 322, "type": "identifier", "text": "oldtext", "parent": 320, "children": [], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 51}}, {"id": 323, "type": "parameter_declaration", "text": "QString newtext", "parent": 319, "children": [324, 325], "start_point": {"row": 90, "column": 53}, "end_point": {"row": 90, "column": 68}}, {"id": 324, "type": "type_identifier", "text": "QString", "parent": 323, "children": [], "start_point": {"row": 90, "column": 53}, "end_point": {"row": 90, "column": 60}}, {"id": 325, "type": "identifier", "text": "newtext", "parent": 323, "children": [], "start_point": {"row": 90, "column": 61}, "end_point": {"row": 90, "column": 68}}, {"id": 326, "type": "parameter_declaration", "text": "QString filepath", "parent": 319, "children": [327, 328], "start_point": {"row": 90, "column": 70}, "end_point": {"row": 90, "column": 86}}, {"id": 327, "type": "type_identifier", "text": "QString", "parent": 326, "children": [], "start_point": {"row": 90, "column": 70}, "end_point": {"row": 90, "column": 77}}, {"id": 328, "type": "identifier", "text": "filepath", "parent": 326, "children": [], "start_point": {"row": 90, "column": 78}, "end_point": {"row": 90, "column": 86}}, {"id": 329, "type": "declaration", "text": "static int getPartitionNumber();", "parent": null, "children": [330, 331], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 36}}, {"id": 330, "type": "primitive_type", "text": "int", "parent": 329, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 14}}, {"id": 331, "type": "function_declarator", "text": "getPartitionNumber()", "parent": 329, "children": [332, 333], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 35}}, {"id": 332, "type": "identifier", "text": "getPartitionNumber", "parent": 331, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 33}}, {"id": 333, "type": "parameter_list", "text": "()", "parent": 331, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 35}}, {"id": 334, "type": "declaration", "text": "static int command(const QString &string);", "parent": null, "children": [335, 336], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 46}}, {"id": 335, "type": "primitive_type", "text": "int", "parent": 334, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 14}}, {"id": 336, "type": "function_declarator", "text": "command(const QString &string)", "parent": 334, "children": [337, 338], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 45}}, {"id": 337, "type": "identifier", "text": "command", "parent": 336, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 22}}, {"id": 338, "type": "parameter_list", "text": "(const QString &string)", "parent": 336, "children": [339], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 45}}, {"id": 339, "type": "parameter_declaration", "text": "const QString &string", "parent": 338, "children": [340, 341], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 44}}, {"id": 340, "type": "type_identifier", "text": "QString", "parent": 339, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 36}}, {"id": 341, "type": "identifier", "text": "string", "parent": 339, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 44}}, {"id": 342, "type": "declaration", "text": "bool is32bit();", "parent": null, "children": [343, 344], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 19}}, {"id": 343, "type": "primitive_type", "text": "bool", "parent": 342, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 344, "type": "function_declarator", "text": "is32bit()", "parent": 342, "children": [345, 346], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 18}}, {"id": 345, "type": "identifier", "text": "is32bit", "parent": 344, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 16}}, {"id": 346, "type": "parameter_list", "text": "()", "parent": 344, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 18}}, {"id": 347, "type": "declaration", "text": "bool is64bit();", "parent": null, "children": [348, 349], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 19}}, {"id": 348, "type": "primitive_type", "text": "bool", "parent": 347, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 349, "type": "function_declarator", "text": "is64bit()", "parent": 347, "children": [350, 351], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 18}}, {"id": 350, "type": "identifier", "text": "is64bit", "parent": 349, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 16}}, {"id": 351, "type": "parameter_list", "text": "()", "parent": 349, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 18}}, {"id": 352, "type": "declaration", "text": "bool isInsideVB();", "parent": null, "children": [353, 354], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 22}}, {"id": 353, "type": "primitive_type", "text": "bool", "parent": 352, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 8}}, {"id": 354, "type": "function_declarator", "text": "isInsideVB()", "parent": 352, "children": [355, 356], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 21}}, {"id": 355, "type": "identifier", "text": "isInsideVB", "parent": 354, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 19}}, {"id": 356, "type": "parameter_list", "text": "()", "parent": 354, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 21}}, {"id": 357, "type": "declaration", "text": "bool isGpt(QString drv);", "parent": null, "children": [358, 359], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 28}}, {"id": 358, "type": "primitive_type", "text": "bool", "parent": 357, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 359, "type": "function_declarator", "text": "isGpt(QString drv)", "parent": 357, "children": [360, 361], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 27}}, {"id": 360, "type": "identifier", "text": "isGpt", "parent": 359, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 14}}, {"id": 361, "type": "parameter_list", "text": "(QString drv)", "parent": 359, "children": [362], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 27}}, {"id": 362, "type": "parameter_declaration", "text": "QString drv", "parent": 361, "children": [363, 364], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 26}}, {"id": 363, "type": "type_identifier", "text": "QString", "parent": 362, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 22}}, {"id": 364, "type": "identifier", "text": "drv", "parent": 362, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 26}}, {"id": 365, "type": "declaration", "text": "bool isUefi();", "parent": null, "children": [366, 367], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 18}}, {"id": 366, "type": "primitive_type", "text": "bool", "parent": 365, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 8}}, {"id": 367, "type": "function_declarator", "text": "isUefi()", "parent": 365, "children": [368, 369], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 17}}, {"id": 368, "type": "identifier", "text": "isUefi", "parent": 367, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 15}}, {"id": 369, "type": "parameter_list", "text": "()", "parent": 367, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 17}}, {"id": 370, "type": "declaration", "text": "int runCmd(QString cmd);", "parent": null, "children": [371, 372], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 28}}, {"id": 371, "type": "primitive_type", "text": "int", "parent": 370, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 7}}, {"id": 372, "type": "function_declarator", "text": "runCmd(QString cmd)", "parent": 370, "children": [373, 374], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 27}}, {"id": 373, "type": "identifier", "text": "runCmd", "parent": 372, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 374, "type": "parameter_list", "text": "(QString cmd)", "parent": 372, "children": [375], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 27}}, {"id": 375, "type": "parameter_declaration", "text": "QString cmd", "parent": 374, "children": [376, 377], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 26}}, {"id": 376, "type": "type_identifier", "text": "QString", "parent": 375, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 22}}, {"id": 377, "type": "identifier", "text": "cmd", "parent": 375, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 26}}, {"id": 378, "type": "declaration", "text": "void buildServiceList();", "parent": null, "children": [379, 380], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 28}}, {"id": 379, "type": "primitive_type", "text": "void", "parent": 378, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 380, "type": "function_declarator", "text": "buildServiceList()", "parent": 378, "children": [381, 382], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 27}}, {"id": 381, "type": "identifier", "text": "buildServiceList", "parent": 380, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 25}}, {"id": 382, "type": "parameter_list", "text": "()", "parent": 380, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 27}}, {"id": 383, "type": "declaration", "text": "void copyLinux();", "parent": null, "children": [384, 385], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 21}}, {"id": 384, "type": "primitive_type", "text": "void", "parent": 383, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 8}}, {"id": 385, "type": "function_declarator", "text": "copyLinux()", "parent": 383, "children": [386, 387], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 20}}, {"id": 386, "type": "identifier", "text": "copyLinux", "parent": 385, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 18}}, {"id": 387, "type": "parameter_list", "text": "()", "parent": 385, "children": [], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 20}}, {"id": 388, "type": "declaration", "text": "void installLinux();", "parent": null, "children": [389, 390], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 24}}, {"id": 389, "type": "primitive_type", "text": "void", "parent": 388, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 8}}, {"id": 390, "type": "function_declarator", "text": "installLinux()", "parent": 388, "children": [391, 392], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 23}}, {"id": 391, "type": "identifier", "text": "installLinux", "parent": 390, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 21}}, {"id": 392, "type": "parameter_list", "text": "()", "parent": 390, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 23}}, {"id": 393, "type": "declaration", "text": "void prepareToInstall();", "parent": null, "children": [394, 395], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 28}}, {"id": 394, "type": "primitive_type", "text": "void", "parent": 393, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 395, "type": "function_declarator", "text": "prepareToInstall()", "parent": 393, "children": [396, 397], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 27}}, {"id": 396, "type": "identifier", "text": "prepareToInstall", "parent": 395, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 25}}, {"id": 397, "type": "parameter_list", "text": "()", "parent": 395, "children": [], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 27}}, {"id": 398, "type": "declaration", "text": "void setLocale();", "parent": null, "children": [399, 400], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 21}}, {"id": 399, "type": "primitive_type", "text": "void", "parent": 398, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 8}}, {"id": 400, "type": "function_declarator", "text": "setLocale()", "parent": 398, "children": [401, 402], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 20}}, {"id": 401, "type": "identifier", "text": "setLocale", "parent": 400, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 18}}, {"id": 402, "type": "parameter_list", "text": "()", "parent": 400, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 20}}, {"id": 403, "type": "declaration", "text": "void setServices();", "parent": null, "children": [404, 405], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 23}}, {"id": 404, "type": "primitive_type", "text": "void", "parent": 403, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 8}}, {"id": 405, "type": "function_declarator", "text": "setServices()", "parent": 403, "children": [406, 407], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 22}}, {"id": 406, "type": "identifier", "text": "setServices", "parent": 405, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 20}}, {"id": 407, "type": "parameter_list", "text": "()", "parent": 405, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 22}}, {"id": 408, "type": "declaration", "text": "void updatePartitionWidgets();", "parent": null, "children": [409, 410], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 34}}, {"id": 409, "type": "primitive_type", "text": "void", "parent": 408, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 8}}, {"id": 410, "type": "function_declarator", "text": "updatePartitionWidgets()", "parent": 408, "children": [411, 412], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 33}}, {"id": 411, "type": "identifier", "text": "updatePartitionWidgets", "parent": 410, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 31}}, {"id": 412, "type": "parameter_list", "text": "()", "parent": 410, "children": [], "start_point": {"row": 106, "column": 31}, "end_point": {"row": 106, "column": 33}}, {"id": 413, "type": "declaration", "text": "void updateStatus(QString msg, int val);", "parent": null, "children": [414, 415], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 44}}, {"id": 414, "type": "primitive_type", "text": "void", "parent": 413, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 415, "type": "function_declarator", "text": "updateStatus(QString msg, int val)", "parent": 413, "children": [416, 417], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 43}}, {"id": 416, "type": "identifier", "text": "updateStatus", "parent": 415, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 21}}, {"id": 417, "type": "parameter_list", "text": "(QString msg, int val)", "parent": 415, "children": [418, 421], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 43}}, {"id": 418, "type": "parameter_declaration", "text": "QString msg", "parent": 417, "children": [419, 420], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 33}}, {"id": 419, "type": "type_identifier", "text": "QString", "parent": 418, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 29}}, {"id": 420, "type": "identifier", "text": "msg", "parent": 418, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 33}}, {"id": 421, "type": "parameter_declaration", "text": "int val", "parent": 417, "children": [422, 423], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 42}}, {"id": 422, "type": "primitive_type", "text": "int", "parent": 421, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 38}}, {"id": 423, "type": "identifier", "text": "val", "parent": 421, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 42}}, {"id": 424, "type": "declaration", "text": "bool checkDisk();", "parent": null, "children": [425, 426], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 21}}, {"id": 425, "type": "primitive_type", "text": "bool", "parent": 424, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 426, "type": "function_declarator", "text": "checkDisk()", "parent": 424, "children": [427, 428], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 20}}, {"id": 427, "type": "identifier", "text": "checkDisk", "parent": 426, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 18}}, {"id": 428, "type": "parameter_list", "text": "()", "parent": 426, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 20}}, {"id": 429, "type": "declaration", "text": "bool installLoader();", "parent": null, "children": [430, 431], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 25}}, {"id": 430, "type": "primitive_type", "text": "bool", "parent": 429, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 8}}, {"id": 431, "type": "function_declarator", "text": "installLoader()", "parent": 429, "children": [432, 433], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 24}}, {"id": 432, "type": "identifier", "text": "installLoader", "parent": 431, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 22}}, {"id": 433, "type": "parameter_list", "text": "()", "parent": 431, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 24}}, {"id": 434, "type": "declaration", "text": "bool makeChosenPartitions();", "parent": null, "children": [435, 436], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 32}}, {"id": 435, "type": "primitive_type", "text": "bool", "parent": 434, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 8}}, {"id": 436, "type": "function_declarator", "text": "makeChosenPartitions()", "parent": 434, "children": [437, 438], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 31}}, {"id": 437, "type": "identifier", "text": "makeChosenPartitions", "parent": 436, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 29}}, {"id": 438, "type": "parameter_list", "text": "()", "parent": 436, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 31}}, {"id": 439, "type": "declaration", "text": "bool makeDefaultPartitions();", "parent": null, "children": [440, 441], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 33}}, {"id": 440, "type": "primitive_type", "text": "bool", "parent": 439, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 8}}, {"id": 441, "type": "function_declarator", "text": "makeDefaultPartitions()", "parent": 439, "children": [442, 443], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 32}}, {"id": 442, "type": "identifier", "text": "makeDefaultPartitions", "parent": 441, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 30}}, {"id": 443, "type": "parameter_list", "text": "()", "parent": 441, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 32}}, {"id": 444, "type": "declaration", "text": "bool makeFloppy();", "parent": null, "children": [445, 446], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 22}}, {"id": 445, "type": "primitive_type", "text": "bool", "parent": 444, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 8}}, {"id": 446, "type": "function_declarator", "text": "makeFloppy()", "parent": 444, "children": [447, 448], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 21}}, {"id": 447, "type": "identifier", "text": "makeFloppy", "parent": 446, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 19}}, {"id": 448, "type": "parameter_list", "text": "()", "parent": 446, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 21}}, {"id": 449, "type": "declaration", "text": "bool makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd);", "parent": null, "children": [450, 451], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 83}}, {"id": 450, "type": "primitive_type", "text": "bool", "parent": 449, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 8}}, {"id": 451, "type": "function_declarator", "text": "makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd)", "parent": 449, "children": [452, 453], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 82}}, {"id": 452, "type": "identifier", "text": "makeGrub", "parent": 451, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 17}}, {"id": 453, "type": "parameter_list", "text": "(int rootdev, QString rootpart, const char *rootmnt, bool initrd)", "parent": 451, "children": [454, 457, 460, 465], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 82}}, {"id": 454, "type": "parameter_declaration", "text": "int rootdev", "parent": 453, "children": [455, 456], "start_point": {"row": 113, "column": 18}, "end_point": {"row": 113, "column": 29}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 454, "children": [], "start_point": {"row": 113, "column": 18}, "end_point": {"row": 113, "column": 21}}, {"id": 456, "type": "identifier", "text": "rootdev", "parent": 454, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 29}}, {"id": 457, "type": "parameter_declaration", "text": "QString rootpart", "parent": 453, "children": [458, 459], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 47}}, {"id": 458, "type": "type_identifier", "text": "QString", "parent": 457, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 38}}, {"id": 459, "type": "identifier", "text": "rootpart", "parent": 457, "children": [], "start_point": {"row": 113, "column": 39}, "end_point": {"row": 113, "column": 47}}, {"id": 460, "type": "parameter_declaration", "text": "const char *rootmnt", "parent": 453, "children": [461, 462], "start_point": {"row": 113, "column": 49}, "end_point": {"row": 113, "column": 68}}, {"id": 461, "type": "primitive_type", "text": "char", "parent": 460, "children": [], "start_point": {"row": 113, "column": 55}, "end_point": {"row": 113, "column": 59}}, {"id": 462, "type": "pointer_declarator", "text": "*rootmnt", "parent": 460, "children": [463, 464], "start_point": {"row": 113, "column": 60}, "end_point": {"row": 113, "column": 68}}, {"id": 463, "type": "*", "text": "*", "parent": 462, "children": [], "start_point": {"row": 113, "column": 60}, "end_point": {"row": 113, "column": 61}}, {"id": 464, "type": "identifier", "text": "rootmnt", "parent": 462, "children": [], "start_point": {"row": 113, "column": 61}, "end_point": {"row": 113, "column": 68}}, {"id": 465, "type": "parameter_declaration", "text": "bool initrd", "parent": 453, "children": [466, 467], "start_point": {"row": 113, "column": 70}, "end_point": {"row": 113, "column": 81}}, {"id": 466, "type": "primitive_type", "text": "bool", "parent": 465, "children": [], "start_point": {"row": 113, "column": 70}, "end_point": {"row": 113, "column": 74}}, {"id": 467, "type": "identifier", "text": "initrd", "parent": 465, "children": [], "start_point": {"row": 113, "column": 75}, "end_point": {"row": 113, "column": 81}}, {"id": 468, "type": "declaration", "text": "bool makeLinuxPartition(QString dev, const char *type, bool bad, QString label);", "parent": null, "children": [469, 470], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 84}}, {"id": 469, "type": "primitive_type", "text": "bool", "parent": 468, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 8}}, {"id": 470, "type": "function_declarator", "text": "makeLinuxPartition(QString dev, const char *type, bool bad, QString label)", "parent": 468, "children": [471, 472], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 83}}, {"id": 471, "type": "identifier", "text": "makeLinuxPartition", "parent": 470, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 27}}, {"id": 472, "type": "parameter_list", "text": "(QString dev, const char *type, bool bad, QString label)", "parent": 470, "children": [473, 476, 481, 484], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 83}}, {"id": 473, "type": "parameter_declaration", "text": "QString dev", "parent": 472, "children": [474, 475], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 39}}, {"id": 474, "type": "type_identifier", "text": "QString", "parent": 473, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 35}}, {"id": 475, "type": "identifier", "text": "dev", "parent": 473, "children": [], "start_point": {"row": 114, "column": 36}, "end_point": {"row": 114, "column": 39}}, {"id": 476, "type": "parameter_declaration", "text": "const char *type", "parent": 472, "children": [477, 478], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 57}}, {"id": 477, "type": "primitive_type", "text": "char", "parent": 476, "children": [], "start_point": {"row": 114, "column": 47}, "end_point": {"row": 114, "column": 51}}, {"id": 478, "type": "pointer_declarator", "text": "*type", "parent": 476, "children": [479, 480], "start_point": {"row": 114, "column": 52}, "end_point": {"row": 114, "column": 57}}, {"id": 479, "type": "*", "text": "*", "parent": 478, "children": [], "start_point": {"row": 114, "column": 52}, "end_point": {"row": 114, "column": 53}}, {"id": 480, "type": "identifier", "text": "type", "parent": 478, "children": [], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 57}}, {"id": 481, "type": "parameter_declaration", "text": "bool bad", "parent": 472, "children": [482, 483], "start_point": {"row": 114, "column": 59}, "end_point": {"row": 114, "column": 67}}, {"id": 482, "type": "primitive_type", "text": "bool", "parent": 481, "children": [], "start_point": {"row": 114, "column": 59}, "end_point": {"row": 114, "column": 63}}, {"id": 483, "type": "identifier", "text": "bad", "parent": 481, "children": [], "start_point": {"row": 114, "column": 64}, "end_point": {"row": 114, "column": 67}}, {"id": 484, "type": "parameter_declaration", "text": "QString label", "parent": 472, "children": [485, 486], "start_point": {"row": 114, "column": 69}, "end_point": {"row": 114, "column": 82}}, {"id": 485, "type": "type_identifier", "text": "QString", "parent": 484, "children": [], "start_point": {"row": 114, "column": 69}, "end_point": {"row": 114, "column": 76}}, {"id": 486, "type": "identifier", "text": "label", "parent": 484, "children": [], "start_point": {"row": 114, "column": 77}, "end_point": {"row": 114, "column": 82}}, {"id": 487, "type": "declaration", "text": "bool makeSwapPartition(QString dev);", "parent": null, "children": [488, 489], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 40}}, {"id": 488, "type": "primitive_type", "text": "bool", "parent": 487, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 8}}, {"id": 489, "type": "function_declarator", "text": "makeSwapPartition(QString dev)", "parent": 487, "children": [490, 491], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 39}}, {"id": 490, "type": "identifier", "text": "makeSwapPartition", "parent": 489, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 26}}, {"id": 491, "type": "parameter_list", "text": "(QString dev)", "parent": 489, "children": [492], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 39}}, {"id": 492, "type": "parameter_declaration", "text": "QString dev", "parent": 491, "children": [493, 494], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 38}}, {"id": 493, "type": "type_identifier", "text": "QString", "parent": 492, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 34}}, {"id": 494, "type": "identifier", "text": "dev", "parent": 492, "children": [], "start_point": {"row": 115, "column": 35}, "end_point": {"row": 115, "column": 38}}, {"id": 495, "type": "declaration", "text": "bool makeEsp(QString drv, int size);", "parent": null, "children": [496, 497], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 40}}, {"id": 496, "type": "primitive_type", "text": "bool", "parent": 495, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 8}}, {"id": 497, "type": "function_declarator", "text": "makeEsp(QString drv, int size)", "parent": 495, "children": [498, 499], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 39}}, {"id": 498, "type": "identifier", "text": "makeEsp", "parent": 497, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 16}}, {"id": 499, "type": "parameter_list", "text": "(QString drv, int size)", "parent": 497, "children": [500, 503], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 39}}, {"id": 500, "type": "parameter_declaration", "text": "QString drv", "parent": 499, "children": [501, 502], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 28}}, {"id": 501, "type": "type_identifier", "text": "QString", "parent": 500, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 24}}, {"id": 502, "type": "identifier", "text": "drv", "parent": 500, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 28}}, {"id": 503, "type": "parameter_declaration", "text": "int size", "parent": 499, "children": [504, 505], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 38}}, {"id": 504, "type": "primitive_type", "text": "int", "parent": 503, "children": [], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 33}}, {"id": 505, "type": "identifier", "text": "size", "parent": 503, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 38}}, {"id": 506, "type": "declaration", "text": "bool mountPartition(QString dev, const char *point);", "parent": null, "children": [507, 508], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 56}}, {"id": 507, "type": "primitive_type", "text": "bool", "parent": 506, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 8}}, {"id": 508, "type": "function_declarator", "text": "mountPartition(QString dev, const char *point)", "parent": 506, "children": [509, 510], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 55}}, {"id": 509, "type": "identifier", "text": "mountPartition", "parent": 508, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 23}}, {"id": 510, "type": "parameter_list", "text": "(QString dev, const char *point)", "parent": 508, "children": [511, 514], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 55}}, {"id": 511, "type": "parameter_declaration", "text": "QString dev", "parent": 510, "children": [512, 513], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 35}}, {"id": 512, "type": "type_identifier", "text": "QString", "parent": 511, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 31}}, {"id": 513, "type": "identifier", "text": "dev", "parent": 511, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 35}}, {"id": 514, "type": "parameter_declaration", "text": "const char *point", "parent": 510, "children": [515, 516], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 54}}, {"id": 515, "type": "primitive_type", "text": "char", "parent": 514, "children": [], "start_point": {"row": 117, "column": 43}, "end_point": {"row": 117, "column": 47}}, {"id": 516, "type": "pointer_declarator", "text": "*point", "parent": 514, "children": [517, 518], "start_point": {"row": 117, "column": 48}, "end_point": {"row": 117, "column": 54}}, {"id": 517, "type": "*", "text": "*", "parent": 516, "children": [], "start_point": {"row": 117, "column": 48}, "end_point": {"row": 117, "column": 49}}, {"id": 518, "type": "identifier", "text": "point", "parent": 516, "children": [], "start_point": {"row": 117, "column": 49}, "end_point": {"row": 117, "column": 54}}, {"id": 519, "type": "declaration", "text": "bool removeKernel();", "parent": null, "children": [520, 521], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 24}}, {"id": 520, "type": "primitive_type", "text": "bool", "parent": 519, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 8}}, {"id": 521, "type": "function_declarator", "text": "removeKernel()", "parent": 519, "children": [522, 523], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 23}}, {"id": 522, "type": "identifier", "text": "removeKernel", "parent": 521, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 21}}, {"id": 523, "type": "parameter_list", "text": "()", "parent": 521, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 23}}, {"id": 524, "type": "declaration", "text": "bool setComputerName();", "parent": null, "children": [525, 526], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 27}}, {"id": 525, "type": "primitive_type", "text": "bool", "parent": 524, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 8}}, {"id": 526, "type": "function_declarator", "text": "setComputerName()", "parent": 524, "children": [527, 528], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 26}}, {"id": 527, "type": "identifier", "text": "setComputerName", "parent": 526, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 24}}, {"id": 528, "type": "parameter_list", "text": "()", "parent": 526, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 26}}, {"id": 529, "type": "declaration", "text": "bool setPasswords();", "parent": null, "children": [530, 531], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 24}}, {"id": 530, "type": "primitive_type", "text": "bool", "parent": 529, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 8}}, {"id": 531, "type": "function_declarator", "text": "setPasswords()", "parent": 529, "children": [532, 533], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 23}}, {"id": 532, "type": "identifier", "text": "setPasswords", "parent": 531, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 21}}, {"id": 533, "type": "parameter_list", "text": "()", "parent": 531, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 23}}, {"id": 534, "type": "declaration", "text": "bool setUserInfo();", "parent": null, "children": [535, 536], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 23}}, {"id": 535, "type": "primitive_type", "text": "bool", "parent": 534, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 8}}, {"id": 536, "type": "function_declarator", "text": "setUserInfo()", "parent": 534, "children": [537, 538], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 22}}, {"id": 537, "type": "identifier", "text": "setUserInfo", "parent": 536, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 20}}, {"id": 538, "type": "parameter_list", "text": "()", "parent": 536, "children": [], "start_point": {"row": 121, "column": 20}, "end_point": {"row": 121, "column": 22}}, {"id": 539, "type": "declaration", "text": "bool setUserName();", "parent": null, "children": [540, 541], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 23}}, {"id": 540, "type": "primitive_type", "text": "bool", "parent": 539, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 8}}, {"id": 541, "type": "function_declarator", "text": "setUserName()", "parent": 539, "children": [542, 543], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 22}}, {"id": 542, "type": "identifier", "text": "setUserName", "parent": 541, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 20}}, {"id": 543, "type": "parameter_list", "text": "()", "parent": 541, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 22}}, {"id": 544, "type": "declaration", "text": "void gotoPage(int next);", "parent": null, "children": [545, 546], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 28}}, {"id": 545, "type": "primitive_type", "text": "void", "parent": 544, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 8}}, {"id": 546, "type": "function_declarator", "text": "gotoPage(int next)", "parent": 544, "children": [547, 548], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 27}}, {"id": 547, "type": "identifier", "text": "gotoPage", "parent": 546, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 17}}, {"id": 548, "type": "parameter_list", "text": "(int next)", "parent": 546, "children": [549], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 27}}, {"id": 549, "type": "parameter_declaration", "text": "int next", "parent": 548, "children": [550, 551], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 26}}, {"id": 550, "type": "primitive_type", "text": "int", "parent": 549, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 21}}, {"id": 551, "type": "identifier", "text": "next", "parent": 549, "children": [], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 26}}, {"id": 552, "type": "declaration", "text": "void pageDisplayed(int next);", "parent": null, "children": [553, 554], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 33}}, {"id": 553, "type": "primitive_type", "text": "void", "parent": 552, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 8}}, {"id": 554, "type": "function_declarator", "text": "pageDisplayed(int next)", "parent": 552, "children": [555, 556], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 32}}, {"id": 555, "type": "identifier", "text": "pageDisplayed", "parent": 554, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 22}}, {"id": 556, "type": "parameter_list", "text": "(int next)", "parent": 554, "children": [557], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 32}}, {"id": 557, "type": "parameter_declaration", "text": "int next", "parent": 556, "children": [558, 559], "start_point": {"row": 125, "column": 23}, "end_point": {"row": 125, "column": 31}}, {"id": 558, "type": "primitive_type", "text": "int", "parent": 557, "children": [], "start_point": {"row": 125, "column": 23}, "end_point": {"row": 125, "column": 26}}, {"id": 559, "type": "identifier", "text": "next", "parent": 557, "children": [], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 31}}, {"id": 560, "type": "declaration", "text": "int showPage(int curr, int next);", "parent": null, "children": [561, 562], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 37}}, {"id": 561, "type": "primitive_type", "text": "int", "parent": 560, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 7}}, {"id": 562, "type": "function_declarator", "text": "showPage(int curr, int next)", "parent": 560, "children": [563, 564], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 36}}, {"id": 563, "type": "identifier", "text": "showPage", "parent": 562, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 16}}, {"id": 564, "type": "parameter_list", "text": "(int curr, int next)", "parent": 562, "children": [565, 568], "start_point": {"row": 126, "column": 16}, "end_point": {"row": 126, "column": 36}}, {"id": 565, "type": "parameter_declaration", "text": "int curr", "parent": 564, "children": [566, 567], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 25}}, {"id": 566, "type": "primitive_type", "text": "int", "parent": 565, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 20}}, {"id": 567, "type": "identifier", "text": "curr", "parent": 565, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 25}}, {"id": 568, "type": "parameter_declaration", "text": "int next", "parent": 564, "children": [569, 570], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 35}}, {"id": 569, "type": "primitive_type", "text": "int", "parent": 568, "children": [], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 30}}, {"id": 570, "type": "identifier", "text": "next", "parent": 568, "children": [], "start_point": {"row": 126, "column": 31}, "end_point": {"row": 126, "column": 35}}, {"id": 571, "type": "declaration", "text": "void stopInstall();", "parent": null, "children": [572, 573], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 23}}, {"id": 572, "type": "primitive_type", "text": "void", "parent": 571, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 8}}, {"id": 573, "type": "function_declarator", "text": "stopInstall()", "parent": 571, "children": [574, 575], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 22}}, {"id": 574, "type": "identifier", "text": "stopInstall", "parent": 573, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 20}}, {"id": 575, "type": "parameter_list", "text": "()", "parent": 573, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 22}}, {"id": 576, "type": "declaration", "text": "void firstRefresh(QDialog *main);", "parent": null, "children": [577, 578], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 37}}, {"id": 577, "type": "primitive_type", "text": "void", "parent": 576, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 578, "type": "function_declarator", "text": "firstRefresh(QDialog *main)", "parent": 576, "children": [579, 580], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 36}}, {"id": 579, "type": "identifier", "text": "firstRefresh", "parent": 578, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 21}}, {"id": 580, "type": "parameter_list", "text": "(QDialog *main)", "parent": 578, "children": [581], "start_point": {"row": 128, "column": 21}, "end_point": {"row": 128, "column": 36}}, {"id": 581, "type": "parameter_declaration", "text": "QDialog *main", "parent": 580, "children": [582, 583], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 35}}, {"id": 582, "type": "type_identifier", "text": "QDialog", "parent": 581, "children": [], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 29}}, {"id": 583, "type": "pointer_declarator", "text": "*main", "parent": 581, "children": [584, 585], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 35}}, {"id": 584, "type": "*", "text": "*", "parent": 583, "children": [], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 31}}, {"id": 585, "type": "identifier", "text": "main", "parent": 583, "children": [], "start_point": {"row": 128, "column": 31}, "end_point": {"row": 128, "column": 35}}, {"id": 586, "type": "declaration", "text": "void refresh();", "parent": null, "children": [587, 588], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 19}}, {"id": 587, "type": "primitive_type", "text": "void", "parent": 586, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 8}}, {"id": 588, "type": "function_declarator", "text": "refresh()", "parent": 586, "children": [589, 590], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 18}}, {"id": 589, "type": "identifier", "text": "refresh", "parent": 588, "children": [], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 16}}, {"id": 590, "type": "parameter_list", "text": "()", "parent": 588, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 18}}, {"id": 591, "type": "declaration", "text": "public slots:\n virtual void on_passwordCheckBox_stateChanged(int);", "parent": null, "children": [592, 596], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 55}}, {"id": 592, "type": "ERROR", "text": "slots:\n virtual void", "parent": 591, "children": [593, 594, 595], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 132, "column": 16}}, {"id": 593, "type": "identifier", "text": "slots", "parent": 592, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 12}}, {"id": 594, "type": "identifier", "text": "virtual", "parent": 592, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 11}}, {"id": 595, "type": "identifier", "text": "void", "parent": 592, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 16}}, {"id": 596, "type": "function_declarator", "text": "on_passwordCheckBox_stateChanged(int)", "parent": 591, "children": [597, 598], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 54}}, {"id": 597, "type": "identifier", "text": "on_passwordCheckBox_stateChanged", "parent": 596, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 49}}, {"id": 598, "type": "parameter_list", "text": "(int)", "parent": 596, "children": [599], "start_point": {"row": 132, "column": 49}, "end_point": {"row": 132, "column": 54}}, {"id": 599, "type": "parameter_declaration", "text": "int", "parent": 598, "children": [600], "start_point": {"row": 132, "column": 50}, "end_point": {"row": 132, "column": 53}}, {"id": 600, "type": "primitive_type", "text": "int", "parent": 599, "children": [], "start_point": {"row": 132, "column": 50}, "end_point": {"row": 132, "column": 53}}, {"id": 601, "type": "declaration", "text": "virtual void on_nextButton_clicked();", "parent": null, "children": [602, 603, 605], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 41}}, {"id": 602, "type": "type_identifier", "text": "virtual", "parent": 601, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 11}}, {"id": 603, "type": "ERROR", "text": "void", "parent": 601, "children": [604], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 16}}, {"id": 604, "type": "identifier", "text": "void", "parent": 603, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 16}}, {"id": 605, "type": "function_declarator", "text": "on_nextButton_clicked()", "parent": 601, "children": [606, 607], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 40}}, {"id": 606, "type": "identifier", "text": "on_nextButton_clicked", "parent": 605, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 38}}, {"id": 607, "type": "parameter_list", "text": "()", "parent": 605, "children": [], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 40}}, {"id": 608, "type": "declaration", "text": "virtual void on_backButton_clicked();", "parent": null, "children": [609, 610, 612], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 41}}, {"id": 609, "type": "type_identifier", "text": "virtual", "parent": 608, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 11}}, {"id": 610, "type": "ERROR", "text": "void", "parent": 608, "children": [611], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 16}}, {"id": 611, "type": "identifier", "text": "void", "parent": 610, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 16}}, {"id": 612, "type": "function_declarator", "text": "on_backButton_clicked()", "parent": 608, "children": [613, 614], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 40}}, {"id": 613, "type": "identifier", "text": "on_backButton_clicked", "parent": 612, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 38}}, {"id": 614, "type": "parameter_list", "text": "()", "parent": 612, "children": [], "start_point": {"row": 134, "column": 38}, "end_point": {"row": 134, "column": 40}}, {"id": 615, "type": "declaration", "text": "virtual void on_abortInstallButton_clicked();", "parent": null, "children": [616, 617, 619], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 49}}, {"id": 616, "type": "type_identifier", "text": "virtual", "parent": 615, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 11}}, {"id": 617, "type": "ERROR", "text": "void", "parent": 615, "children": [618], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 16}}, {"id": 618, "type": "identifier", "text": "void", "parent": 617, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 16}}, {"id": 619, "type": "function_declarator", "text": "on_abortInstallButton_clicked()", "parent": 615, "children": [620, 621], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 48}}, {"id": 620, "type": "identifier", "text": "on_abortInstallButton_clicked", "parent": 619, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 46}}, {"id": 621, "type": "parameter_list", "text": "()", "parent": 619, "children": [], "start_point": {"row": 135, "column": 46}, "end_point": {"row": 135, "column": 48}}, {"id": 622, "type": "declaration", "text": "virtual void on_qtpartedButton_clicked();", "parent": null, "children": [623, 624, 626], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 45}}, {"id": 623, "type": "type_identifier", "text": "virtual", "parent": 622, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 11}}, {"id": 624, "type": "ERROR", "text": "void", "parent": 622, "children": [625], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 16}}, {"id": 625, "type": "identifier", "text": "void", "parent": 624, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 16}}, {"id": 626, "type": "function_declarator", "text": "on_qtpartedButton_clicked()", "parent": 622, "children": [627, 628], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 44}}, {"id": 627, "type": "identifier", "text": "on_qtpartedButton_clicked", "parent": 626, "children": [], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 42}}, {"id": 628, "type": "parameter_list", "text": "()", "parent": 626, "children": [], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 44}}, {"id": 629, "type": "declaration", "text": "virtual void on_diskCombo_activated(QString item = \"\");", "parent": null, "children": [630, 631, 633], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 59}}, {"id": 630, "type": "type_identifier", "text": "virtual", "parent": 629, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 11}}, {"id": 631, "type": "ERROR", "text": "void", "parent": 629, "children": [632], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 16}}, {"id": 632, "type": "identifier", "text": "void", "parent": 631, "children": [], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 16}}, {"id": 633, "type": "init_declarator", "text": "on_diskCombo_activated(QString item = \"\"", "parent": 629, "children": [634, 640, 641], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 57}}, {"id": 634, "type": "function_declarator", "text": "on_diskCombo_activated(QString item", "parent": 633, "children": [635, 636], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 52}}, {"id": 635, "type": "identifier", "text": "on_diskCombo_activated", "parent": 634, "children": [], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 39}}, {"id": 636, "type": "parameter_list", "text": "(QString item", "parent": 634, "children": [637], "start_point": {"row": 137, "column": 39}, "end_point": {"row": 137, "column": 52}}, {"id": 637, "type": "parameter_declaration", "text": "QString item", "parent": 636, "children": [638, 639], "start_point": {"row": 137, "column": 40}, "end_point": {"row": 137, "column": 52}}, {"id": 638, "type": "type_identifier", "text": "QString", "parent": 637, "children": [], "start_point": {"row": 137, "column": 40}, "end_point": {"row": 137, "column": 47}}, {"id": 639, "type": "identifier", "text": "item", "parent": 637, "children": [], "start_point": {"row": 137, "column": 48}, "end_point": {"row": 137, "column": 52}}, {"id": 640, "type": "=", "text": "=", "parent": 633, "children": [], "start_point": {"row": 137, "column": 53}, "end_point": {"row": 137, "column": 54}}, {"id": 641, "type": "string_literal", "text": "\"\"", "parent": 633, "children": [], "start_point": {"row": 137, "column": 55}, "end_point": {"row": 137, "column": 57}}, {"id": 642, "type": "declaration", "text": "virtual void on_rootCombo_activated(QString item = \"\");", "parent": null, "children": [643, 644, 646], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 59}}, {"id": 643, "type": "type_identifier", "text": "virtual", "parent": 642, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 11}}, {"id": 644, "type": "ERROR", "text": "void", "parent": 642, "children": [645], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 16}}, {"id": 645, "type": "identifier", "text": "void", "parent": 644, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 16}}, {"id": 646, "type": "init_declarator", "text": "on_rootCombo_activated(QString item = \"\"", "parent": 642, "children": [647, 653, 654], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 57}}, {"id": 647, "type": "function_declarator", "text": "on_rootCombo_activated(QString item", "parent": 646, "children": [648, 649], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 52}}, {"id": 648, "type": "identifier", "text": "on_rootCombo_activated", "parent": 647, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 39}}, {"id": 649, "type": "parameter_list", "text": "(QString item", "parent": 647, "children": [650], "start_point": {"row": 138, "column": 39}, "end_point": {"row": 138, "column": 52}}, {"id": 650, "type": "parameter_declaration", "text": "QString item", "parent": 649, "children": [651, 652], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 52}}, {"id": 651, "type": "type_identifier", "text": "QString", "parent": 650, "children": [], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 47}}, {"id": 652, "type": "identifier", "text": "item", "parent": 650, "children": [], "start_point": {"row": 138, "column": 48}, "end_point": {"row": 138, "column": 52}}, {"id": 653, "type": "=", "text": "=", "parent": 646, "children": [], "start_point": {"row": 138, "column": 53}, "end_point": {"row": 138, "column": 54}}, {"id": 654, "type": "string_literal", "text": "\"\"", "parent": 646, "children": [], "start_point": {"row": 138, "column": 55}, "end_point": {"row": 138, "column": 57}}, {"id": 655, "type": "declaration", "text": "virtual void on_rootTypeCombo_activated(QString item = \"\");", "parent": null, "children": [656, 657, 659], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 63}}, {"id": 656, "type": "type_identifier", "text": "virtual", "parent": 655, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 11}}, {"id": 657, "type": "ERROR", "text": "void", "parent": 655, "children": [658], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 16}}, {"id": 658, "type": "identifier", "text": "void", "parent": 657, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 16}}, {"id": 659, "type": "init_declarator", "text": "on_rootTypeCombo_activated(QString item = \"\"", "parent": 655, "children": [660, 666, 667], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 61}}, {"id": 660, "type": "function_declarator", "text": "on_rootTypeCombo_activated(QString item", "parent": 659, "children": [661, 662], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 56}}, {"id": 661, "type": "identifier", "text": "on_rootTypeCombo_activated", "parent": 660, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 43}}, {"id": 662, "type": "parameter_list", "text": "(QString item", "parent": 660, "children": [663], "start_point": {"row": 139, "column": 43}, "end_point": {"row": 139, "column": 56}}, {"id": 663, "type": "parameter_declaration", "text": "QString item", "parent": 662, "children": [664, 665], "start_point": {"row": 139, "column": 44}, "end_point": {"row": 139, "column": 56}}, {"id": 664, "type": "type_identifier", "text": "QString", "parent": 663, "children": [], "start_point": {"row": 139, "column": 44}, "end_point": {"row": 139, "column": 51}}, {"id": 665, "type": "identifier", "text": "item", "parent": 663, "children": [], "start_point": {"row": 139, "column": 52}, "end_point": {"row": 139, "column": 56}}, {"id": 666, "type": "=", "text": "=", "parent": 659, "children": [], "start_point": {"row": 139, "column": 57}, "end_point": {"row": 139, "column": 58}}, {"id": 667, "type": "string_literal", "text": "\"\"", "parent": 659, "children": [], "start_point": {"row": 139, "column": 59}, "end_point": {"row": 139, "column": 61}}, {"id": 668, "type": "declaration", "text": "void procAbort();", "parent": null, "children": [669, 670], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 21}}, {"id": 669, "type": "primitive_type", "text": "void", "parent": 668, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 8}}, {"id": 670, "type": "function_declarator", "text": "procAbort()", "parent": 668, "children": [671, 672], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 20}}, {"id": 671, "type": "identifier", "text": "procAbort", "parent": 670, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 18}}, {"id": 672, "type": "parameter_list", "text": "()", "parent": 670, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 20}}, {"id": 673, "type": "declaration", "text": "virtual bool close();", "parent": null, "children": [674, 675, 677], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 25}}, {"id": 674, "type": "type_identifier", "text": "virtual", "parent": 673, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 11}}, {"id": 675, "type": "ERROR", "text": "bool", "parent": 673, "children": [676], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 16}}, {"id": 676, "type": "identifier", "text": "bool", "parent": 675, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 16}}, {"id": 677, "type": "function_declarator", "text": "close()", "parent": 673, "children": [678, 679], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 24}}, {"id": 678, "type": "identifier", "text": "close", "parent": 677, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 22}}, {"id": 679, "type": "parameter_list", "text": "()", "parent": 677, "children": [], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 24}}, {"id": 680, "type": "declaration", "text": "void delStart();", "parent": null, "children": [681, 682], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 20}}, {"id": 681, "type": "primitive_type", "text": "void", "parent": 680, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 8}}, {"id": 682, "type": "function_declarator", "text": "delStart()", "parent": 680, "children": [683, 684], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 19}}, {"id": 683, "type": "identifier", "text": "delStart", "parent": 682, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 17}}, {"id": 684, "type": "parameter_list", "text": "()", "parent": 682, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 19}}, {"id": 685, "type": "declaration", "text": "void delDone(int, QProcess::ExitStatus exitStatus);", "parent": null, "children": [686, 687], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 55}}, {"id": 686, "type": "primitive_type", "text": "void", "parent": 685, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 8}}, {"id": 687, "type": "function_declarator", "text": "delDone(int, QProcess::ExitStatus exitStatus)", "parent": 685, "children": [688, 689], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 54}}, {"id": 688, "type": "identifier", "text": "delDone", "parent": 687, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 16}}, {"id": 689, "type": "parameter_list", "text": "(int, QProcess::ExitStatus exitStatus)", "parent": 687, "children": [690, 692], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 54}}, {"id": 690, "type": "parameter_declaration", "text": "int", "parent": 689, "children": [691], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 20}}, {"id": 691, "type": "primitive_type", "text": "int", "parent": 690, "children": [], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 20}}, {"id": 692, "type": "parameter_declaration", "text": "QProcess::ExitStatus exitStatus", "parent": 689, "children": [693, 694, 696], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 53}}, {"id": 693, "type": "type_identifier", "text": "QProcess", "parent": 692, "children": [], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 30}}, {"id": 694, "type": "ERROR", "text": "::ExitStatus", "parent": 692, "children": [695], "start_point": {"row": 144, "column": 30}, "end_point": {"row": 144, "column": 42}}, {"id": 695, "type": "identifier", "text": "ExitStatus", "parent": 694, "children": [], "start_point": {"row": 144, "column": 32}, "end_point": {"row": 144, "column": 42}}, {"id": 696, "type": "identifier", "text": "exitStatus", "parent": 692, "children": [], "start_point": {"row": 144, "column": 43}, "end_point": {"row": 144, "column": 53}}, {"id": 697, "type": "declaration", "text": "void delTime();", "parent": null, "children": [698, 699], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 19}}, {"id": 698, "type": "primitive_type", "text": "void", "parent": 697, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 8}}, {"id": 699, "type": "function_declarator", "text": "delTime()", "parent": 697, "children": [700, 701], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 18}}, {"id": 700, "type": "identifier", "text": "delTime", "parent": 699, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 16}}, {"id": 701, "type": "parameter_list", "text": "()", "parent": 699, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 18}}, {"id": 702, "type": "declaration", "text": "void copyStart();", "parent": null, "children": [703, 704], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 21}}, {"id": 703, "type": "primitive_type", "text": "void", "parent": 702, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 8}}, {"id": 704, "type": "function_declarator", "text": "copyStart()", "parent": 702, "children": [705, 706], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 20}}, {"id": 705, "type": "identifier", "text": "copyStart", "parent": 704, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 18}}, {"id": 706, "type": "parameter_list", "text": "()", "parent": 704, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 20}}, {"id": 707, "type": "declaration", "text": "void copyDone(int, QProcess::ExitStatus exitStatus);", "parent": null, "children": [708, 709], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 56}}, {"id": 708, "type": "primitive_type", "text": "void", "parent": 707, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 8}}, {"id": 709, "type": "function_declarator", "text": "copyDone(int, QProcess::ExitStatus exitStatus)", "parent": 707, "children": [710, 711], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 55}}, {"id": 710, "type": "identifier", "text": "copyDone", "parent": 709, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 17}}, {"id": 711, "type": "parameter_list", "text": "(int, QProcess::ExitStatus exitStatus)", "parent": 709, "children": [712, 714], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 55}}, {"id": 712, "type": "parameter_declaration", "text": "int", "parent": 711, "children": [713], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 21}}, {"id": 713, "type": "primitive_type", "text": "int", "parent": 712, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 21}}, {"id": 714, "type": "parameter_declaration", "text": "QProcess::ExitStatus exitStatus", "parent": 711, "children": [715, 716, 718], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 54}}, {"id": 715, "type": "type_identifier", "text": "QProcess", "parent": 714, "children": [], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 31}}, {"id": 716, "type": "ERROR", "text": "::ExitStatus", "parent": 714, "children": [717], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 43}}, {"id": 717, "type": "identifier", "text": "ExitStatus", "parent": 716, "children": [], "start_point": {"row": 148, "column": 33}, "end_point": {"row": 148, "column": 43}}, {"id": 718, "type": "identifier", "text": "exitStatus", "parent": 714, "children": [], "start_point": {"row": 148, "column": 44}, "end_point": {"row": 148, "column": 54}}, {"id": 719, "type": "declaration", "text": "void copyTime();", "parent": null, "children": [720, 721], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 20}}, {"id": 720, "type": "primitive_type", "text": "void", "parent": 719, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 8}}, {"id": 721, "type": "function_declarator", "text": "copyTime()", "parent": 719, "children": [722, 723], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 19}}, {"id": 722, "type": "identifier", "text": "copyTime", "parent": 721, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 17}}, {"id": 723, "type": "parameter_list", "text": "()", "parent": 721, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 19}}, {"id": 724, "type": "declaration", "text": "void procTime();", "parent": null, "children": [725, 726], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 20}}, {"id": 725, "type": "primitive_type", "text": "void", "parent": 724, "children": [], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 8}}, {"id": 726, "type": "function_declarator", "text": "procTime()", "parent": 724, "children": [727, 728], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 19}}, {"id": 727, "type": "identifier", "text": "procTime", "parent": 726, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 17}}, {"id": 728, "type": "parameter_list", "text": "()", "parent": 726, "children": [], "start_point": {"row": 150, "column": 17}, "end_point": {"row": 150, "column": 19}}, {"id": 729, "type": "ERROR", "text": "private slots:", "parent": null, "children": [730], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 14}}, {"id": 730, "type": "identifier", "text": "slots", "parent": 729, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 13}}, {"id": 731, "type": "declaration", "text": "void on_viewServicesButton_clicked();", "parent": null, "children": [732, 733], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 41}}, {"id": 732, "type": "primitive_type", "text": "void", "parent": 731, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 8}}, {"id": 733, "type": "function_declarator", "text": "on_viewServicesButton_clicked()", "parent": 731, "children": [734, 735], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 40}}, {"id": 734, "type": "identifier", "text": "on_viewServicesButton_clicked", "parent": 733, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 38}}, {"id": 735, "type": "parameter_list", "text": "()", "parent": 733, "children": [], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 40}}, {"id": 736, "type": "declaration", "text": "void on_homeCombo_activated(const QString &arg1);", "parent": null, "children": [737, 738], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 53}}, {"id": 737, "type": "primitive_type", "text": "void", "parent": 736, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 8}}, {"id": 738, "type": "function_declarator", "text": "on_homeCombo_activated(const QString &arg1)", "parent": 736, "children": [739, 740], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 52}}, {"id": 739, "type": "identifier", "text": "on_homeCombo_activated", "parent": 738, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 31}}, {"id": 740, "type": "parameter_list", "text": "(const QString &arg1)", "parent": 738, "children": [741], "start_point": {"row": 154, "column": 31}, "end_point": {"row": 154, "column": 52}}, {"id": 741, "type": "parameter_declaration", "text": "const QString &arg1", "parent": 740, "children": [742, 743], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 51}}, {"id": 742, "type": "type_identifier", "text": "QString", "parent": 741, "children": [], "start_point": {"row": 154, "column": 38}, "end_point": {"row": 154, "column": 45}}, {"id": 743, "type": "identifier", "text": "arg1", "parent": 741, "children": [], "start_point": {"row": 154, "column": 47}, "end_point": {"row": 154, "column": 51}}, {"id": 744, "type": "declaration", "text": "void on_grubBootCombo_activated(QString item = \"\");", "parent": null, "children": [745, 746], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 55}}, {"id": 745, "type": "primitive_type", "text": "void", "parent": 744, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 8}}, {"id": 746, "type": "init_declarator", "text": "on_grubBootCombo_activated(QString item = \"\"", "parent": 744, "children": [747, 753, 754], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 53}}, {"id": 747, "type": "function_declarator", "text": "on_grubBootCombo_activated(QString item", "parent": 746, "children": [748, 749], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 48}}, {"id": 748, "type": "identifier", "text": "on_grubBootCombo_activated", "parent": 747, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 35}}, {"id": 749, "type": "parameter_list", "text": "(QString item", "parent": 747, "children": [750], "start_point": {"row": 155, "column": 35}, "end_point": {"row": 155, "column": 48}}, {"id": 750, "type": "parameter_declaration", "text": "QString item", "parent": 749, "children": [751, 752], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 48}}, {"id": 751, "type": "type_identifier", "text": "QString", "parent": 750, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 43}}, {"id": 752, "type": "identifier", "text": "item", "parent": 750, "children": [], "start_point": {"row": 155, "column": 44}, "end_point": {"row": 155, "column": 48}}, {"id": 753, "type": "=", "text": "=", "parent": 746, "children": [], "start_point": {"row": 155, "column": 49}, "end_point": {"row": 155, "column": 50}}, {"id": 754, "type": "string_literal", "text": "\"\"", "parent": 746, "children": [], "start_point": {"row": 155, "column": 51}, "end_point": {"row": 155, "column": 53}}, {"id": 755, "type": "declaration", "text": "void on_closeButton_clicked();", "parent": null, "children": [756, 757], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 34}}, {"id": 756, "type": "primitive_type", "text": "void", "parent": 755, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 8}}, {"id": 757, "type": "function_declarator", "text": "on_closeButton_clicked()", "parent": 755, "children": [758, 759], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 33}}, {"id": 758, "type": "identifier", "text": "on_closeButton_clicked", "parent": 757, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 31}}, {"id": 759, "type": "parameter_list", "text": "()", "parent": 757, "children": [], "start_point": {"row": 156, "column": 31}, "end_point": {"row": 156, "column": 33}}, {"id": 760, "type": "declaration", "text": "void on_encryptCheckBox_toggled(bool checked);", "parent": null, "children": [761, 762], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 50}}, {"id": 761, "type": "primitive_type", "text": "void", "parent": 760, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 8}}, {"id": 762, "type": "function_declarator", "text": "on_encryptCheckBox_toggled(bool checked)", "parent": 760, "children": [763, 764], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 49}}, {"id": 763, "type": "identifier", "text": "on_encryptCheckBox_toggled", "parent": 762, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 35}}, {"id": 764, "type": "parameter_list", "text": "(bool checked)", "parent": 762, "children": [765], "start_point": {"row": 157, "column": 35}, "end_point": {"row": 157, "column": 49}}, {"id": 765, "type": "parameter_declaration", "text": "bool checked", "parent": 764, "children": [766, 767], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 48}}, {"id": 766, "type": "primitive_type", "text": "bool", "parent": 765, "children": [], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 40}}, {"id": 767, "type": "identifier", "text": "checked", "parent": 765, "children": [], "start_point": {"row": 157, "column": 41}, "end_point": {"row": 157, "column": 48}}, {"id": 768, "type": "declaration", "text": "void on_saveHomeCheck_toggled(bool checked);", "parent": null, "children": [769, 770], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 48}}, {"id": 769, "type": "primitive_type", "text": "void", "parent": 768, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 8}}, {"id": 770, "type": "function_declarator", "text": "on_saveHomeCheck_toggled(bool checked)", "parent": 768, "children": [771, 772], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 47}}, {"id": 771, "type": "identifier", "text": "on_saveHomeCheck_toggled", "parent": 770, "children": [], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 33}}, {"id": 772, "type": "parameter_list", "text": "(bool checked)", "parent": 770, "children": [773], "start_point": {"row": 158, "column": 33}, "end_point": {"row": 158, "column": 47}}, {"id": 773, "type": "parameter_declaration", "text": "bool checked", "parent": 772, "children": [774, 775], "start_point": {"row": 158, "column": 34}, "end_point": {"row": 158, "column": 46}}, {"id": 774, "type": "primitive_type", "text": "bool", "parent": 773, "children": [], "start_point": {"row": 158, "column": 34}, "end_point": {"row": 158, "column": 38}}, {"id": 775, "type": "identifier", "text": "checked", "parent": 773, "children": [], "start_point": {"row": 158, "column": 39}, "end_point": {"row": 158, "column": 46}}]}, "node_categories": {"declarations": {"functions": [251, 259, 267, 275, 283, 300, 317, 331, 336, 344, 349, 354, 359, 367, 372, 380, 385, 390, 395, 400, 405, 410, 415, 426, 431, 436, 441, 446, 451, 470, 489, 497, 508, 521, 526, 531, 536, 541, 546, 554, 562, 573, 578, 588, 596, 605, 612, 619, 626, 634, 647, 660, 670, 677, 682, 687, 699, 704, 709, 721, 726, 733, 738, 747, 757, 762, 770], "variables": [33, 45, 50, 64, 69, 74, 79, 84, 89, 94, 99, 104, 109, 114, 119, 124, 129, 134, 139, 144, 149, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 240, 243, 246, 249, 254, 257, 262, 265, 270, 273, 278, 281, 286, 289, 292, 295, 298, 303, 306, 309, 312, 315, 320, 323, 326, 329, 334, 339, 342, 347, 352, 357, 362, 365, 370, 375, 378, 383, 388, 393, 398, 403, 408, 413, 418, 421, 424, 429, 434, 439, 444, 449, 454, 457, 460, 465, 468, 473, 476, 481, 484, 487, 492, 495, 500, 503, 506, 511, 514, 519, 524, 529, 534, 539, 544, 549, 552, 557, 560, 565, 568, 571, 576, 581, 586, 591, 599, 601, 608, 615, 622, 629, 637, 642, 650, 655, 663, 668, 673, 680, 685, 690, 692, 697, 702, 707, 712, 714, 719, 724, 731, 736, 741, 744, 750, 755, 760, 765, 768, 773], "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": [55, 56, 57, 225, 228, 235, 237], "assignments": [231], "loops": [], "conditionals": [34, 36, 38, 39, 40, 41, 44, 46, 49, 51, 54, 58, 60, 62, 65, 68, 70, 73, 75, 78, 80, 83, 85, 88, 90, 93, 95, 98, 100, 103, 105, 108, 110, 113, 115, 118, 120, 123, 125, 128, 130, 133, 135, 138, 140, 143, 145, 148, 150, 153, 155, 158, 160, 163, 165, 168, 170, 173, 175, 178, 180, 183, 185, 188, 190, 193, 195, 198, 200, 203, 205, 208, 210, 213, 215, 218, 220, 223, 226, 229, 232, 238, 242, 245, 247, 248, 252, 255, 256, 260, 263, 264, 266, 268, 271, 272, 274, 276, 279, 280, 282, 284, 287, 288, 290, 291, 293, 294, 296, 297, 299, 301, 304, 305, 307, 308, 310, 311, 313, 314, 318, 321, 322, 324, 325, 327, 328, 332, 337, 340, 341, 345, 350, 355, 360, 363, 364, 368, 373, 376, 377, 381, 386, 391, 396, 401, 406, 411, 416, 419, 420, 423, 427, 432, 437, 442, 447, 452, 456, 458, 459, 464, 467, 471, 474, 475, 480, 483, 485, 486, 490, 493, 494, 498, 501, 502, 505, 509, 512, 513, 518, 522, 527, 532, 537, 542, 547, 551, 555, 559, 563, 567, 570, 574, 579, 582, 585, 589, 593, 594, 595, 597, 602, 604, 606, 609, 611, 613, 616, 618, 620, 623, 625, 627, 630, 632, 635, 638, 639, 643, 645, 648, 651, 652, 656, 658, 661, 664, 665, 671, 674, 676, 678, 683, 688, 693, 695, 696, 700, 705, 710, 715, 717, 718, 722, 727, 730, 734, 739, 742, 743, 748, 751, 752, 758, 763, 767, 771, 775], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 234, 641, 654, 667, 754], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "goBack(QString msg)"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "unmountGoBack(QString msg)"}, {"node_id": 267, "universal_type": "function", "name": "unknown", "text_snippet": "getCmdOut(QString cmd)"}, {"node_id": 275, "universal_type": "function", "name": "unknown", "text_snippet": "getCmdOuts(QString cmd)"}, {"node_id": 283, "universal_type": "function", "name": "unknown", "text_snippet": "getCmdValue(QString cmd, QString key, QString keydel, QString valdel)"}, {"node_id": 300, "universal_type": "function", "name": "unknown", "text_snippet": "getCmdValues(QString cmd, QString key, QString keydel, QString valdel)"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "replaceStringInFile(QString oldtext, QString newtext, QString filepath)"}, {"node_id": 331, "universal_type": "function", "name": "unknown", "text_snippet": "getPartitionNumber()"}, {"node_id": 336, "universal_type": "function", "name": "unknown", "text_snippet": "command(const QString &string)"}, {"node_id": 344, "universal_type": "function", "name": "unknown", "text_snippet": "is32bit()"}, {"node_id": 349, "universal_type": "function", "name": "unknown", "text_snippet": "is64bit()"}, {"node_id": 354, "universal_type": "function", "name": "unknown", "text_snippet": "isInsideVB()"}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "isGpt(QString drv)"}, {"node_id": 367, "universal_type": "function", "name": "unknown", "text_snippet": "isUefi()"}, {"node_id": 372, "universal_type": "function", "name": "unknown", "text_snippet": "runCmd(QString cmd)"}, {"node_id": 380, "universal_type": "function", "name": "unknown", "text_snippet": "buildServiceList()"}, {"node_id": 385, "universal_type": "function", "name": "unknown", "text_snippet": "copyLinux()"}, {"node_id": 390, "universal_type": "function", "name": "unknown", "text_snippet": "installLinux()"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "prepareToInstall()"}, {"node_id": 400, "universal_type": "function", "name": "unknown", "text_snippet": "setLocale()"}, {"node_id": 405, "universal_type": "function", "name": "unknown", "text_snippet": "setServices()"}, {"node_id": 410, "universal_type": "function", "name": "unknown", "text_snippet": "updatePartitionWidgets()"}, {"node_id": 415, "universal_type": "function", "name": "val)", "text_snippet": "updateStatus(QString msg, int val)"}, {"node_id": 426, "universal_type": "function", "name": "unknown", "text_snippet": "checkDisk()"}, {"node_id": 431, "universal_type": "function", "name": "unknown", "text_snippet": "installLoader()"}, {"node_id": 436, "universal_type": "function", "name": "unknown", "text_snippet": "makeChosenPartitions()"}, {"node_id": 441, "universal_type": "function", "name": "unknown", "text_snippet": "makeDefaultPartitions()"}, {"node_id": 446, "universal_type": "function", "name": "unknown", "text_snippet": "makeFloppy()"}, {"node_id": 451, "universal_type": "function", "name": "initrd)", "text_snippet": "makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd)"}, {"node_id": 470, "universal_type": "function", "name": "bad,", "text_snippet": "makeLinuxPartition(QString dev, const char *type, bool bad, QString label)"}, {"node_id": 489, "universal_type": "function", "name": "unknown", "text_snippet": "makeSwapPartition(QString dev)"}, {"node_id": 497, "universal_type": "function", "name": "size)", "text_snippet": "makeEsp(QString drv, int size)"}, {"node_id": 508, "universal_type": "function", "name": "unknown", "text_snippet": "mountPartition(QString dev, const char *point)"}, {"node_id": 521, "universal_type": "function", "name": "unknown", "text_snippet": "removeKernel()"}, {"node_id": 526, "universal_type": "function", "name": "unknown", "text_snippet": "setComputerName()"}, {"node_id": 531, "universal_type": "function", "name": "unknown", "text_snippet": "setPasswords()"}, {"node_id": 536, "universal_type": "function", "name": "unknown", "text_snippet": "setUserInfo()"}, {"node_id": 541, "universal_type": "function", "name": "unknown", "text_snippet": "setUserName()"}, {"node_id": 546, "universal_type": "function", "name": "unknown", "text_snippet": "gotoPage(int next)"}, {"node_id": 554, "universal_type": "function", "name": "unknown", "text_snippet": "pageDisplayed(int next)"}, {"node_id": 562, "universal_type": "function", "name": "next)", "text_snippet": "showPage(int curr, int next)"}, {"node_id": 573, "universal_type": "function", "name": "unknown", "text_snippet": "stopInstall()"}, {"node_id": 578, "universal_type": "function", "name": "unknown", "text_snippet": "firstRefresh(QDialog *main)"}, {"node_id": 588, "universal_type": "function", "name": "unknown", "text_snippet": "refresh()"}, {"node_id": 596, "universal_type": "function", "name": "unknown", "text_snippet": "on_passwordCheckBox_stateChanged(int)"}, {"node_id": 605, "universal_type": "function", "name": "unknown", "text_snippet": "on_nextButton_clicked()"}, {"node_id": 612, "universal_type": "function", "name": "unknown", "text_snippet": "on_backButton_clicked()"}, {"node_id": 619, "universal_type": "function", "name": "unknown", "text_snippet": "on_abortInstallButton_clicked()"}, {"node_id": 626, "universal_type": "function", "name": "unknown", "text_snippet": "on_qtpartedButton_clicked()"}, {"node_id": 634, "universal_type": "function", "name": "unknown", "text_snippet": "on_diskCombo_activated(QString item"}, {"node_id": 647, "universal_type": "function", "name": "unknown", "text_snippet": "on_rootCombo_activated(QString item"}, {"node_id": 660, "universal_type": "function", "name": "unknown", "text_snippet": "on_rootTypeCombo_activated(QString item"}, {"node_id": 670, "universal_type": "function", "name": "unknown", "text_snippet": "procAbort()"}, {"node_id": 677, "universal_type": "function", "name": "unknown", "text_snippet": "close()"}, {"node_id": 682, "universal_type": "function", "name": "unknown", "text_snippet": "delStart()"}, {"node_id": 687, "universal_type": "function", "name": "unknown", "text_snippet": "delDone(int, QProcess::ExitStatus exitStatus)"}, {"node_id": 699, "universal_type": "function", "name": "unknown", "text_snippet": "delTime()"}, {"node_id": 704, "universal_type": "function", "name": "unknown", "text_snippet": "copyStart()"}, {"node_id": 709, "universal_type": "function", "name": "unknown", "text_snippet": "copyDone(int, QProcess::ExitStatus exitStatus)"}, {"node_id": 721, "universal_type": "function", "name": "unknown", "text_snippet": "copyTime()"}, {"node_id": 726, "universal_type": "function", "name": "unknown", "text_snippet": "procTime()"}, {"node_id": 733, "universal_type": "function", "name": "unknown", "text_snippet": "on_viewServicesButton_clicked()"}, {"node_id": 738, "universal_type": "function", "name": "unknown", "text_snippet": "on_homeCombo_activated(const QString &arg1)"}, {"node_id": 747, "universal_type": "function", "name": "unknown", "text_snippet": "on_grubBootCombo_activated(QString item"}, {"node_id": 757, "universal_type": "function", "name": "unknown", "text_snippet": "on_closeButton_clicked()"}, {"node_id": 762, "universal_type": "function", "name": "unknown", "text_snippet": "on_encryptCheckBox_toggled(bool checked)"}, {"node_id": 770, "universal_type": "function", "name": "unknown", "text_snippet": "on_saveHomeCheck_toggled(bool checked)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <sys/stat.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <sys/swap.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 <dirent.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QFile>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QMessageBox>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QProcess>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QTimer>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <QProgressDialog>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <QtConcurrent/QtConcurrent>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"ui_meinstall.h\"\n"}, {"node_id": 31, "text": "#include"}]}, "original_source_code": "//\n// Copyright (C) 2003-2009 by <NAME>\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\n#include <sys/stat.h>\n#include <sys/swap.h>\n#include <unistd.h>\n#include <dirent.h>\n#include <QFile>\n#include <QMessageBox>\n#include <QProcess>\n#include <QTimer>\n#include <QProgressDialog>\n#include <QtConcurrent/QtConcurrent>\n#include \"ui_meinstall.h\"\n\nclass MInstall : public QWidget, public Ui::MeInstall {\n Q_OBJECT\nprotected:\n QProcess *proc;\n QTimer *timer;\n QProgressBar *bar;\n QFutureWatcher<void> futureWatcher;\n QTreeWidgetItem *webminItem;\n QTreeWidgetItem *sshItem;\n QTreeWidgetItem *cupsItem;\n QTreeWidgetItem *mysqlItem;\n QTreeWidgetItem *cpufreqItem;\n QTreeWidgetItem *anacronItem;\n QTreeWidgetItem *dbusItem;\n QTreeWidgetItem *cronItem;\n QTreeWidgetItem *gpmItem;\n QTreeWidgetItem *sudoItem;\n QTreeWidgetItem *postfixItem;\n QTreeWidgetItem *sanedItem;\n QTreeWidgetItem *rsyncItem;\n QTreeWidgetItem *bindItem;\n QTreeWidgetItem *dhcpItem;\n QTreeWidgetItem *spamassassinItem;\n QTreeWidgetItem *shorewallItem;\n QTreeWidgetItem *snortItem;\n QTreeWidgetItem *squidItem;\n QTreeWidgetItem *bluetoothItem;\n QTreeWidgetItem *guarddogItem;\n QTreeWidgetItem *networkmanagerItem;\n QTreeWidgetItem *isdnItem;\n QTreeWidgetItem *nfsItem;\n QTreeWidgetItem *openvpnItem;\n QTreeWidgetItem *smartmontoolsItem;\n QTreeWidgetItem *acpidItem;\n QTreeWidgetItem *hddtempItem;\n QTreeWidgetItem *acpifakekeyItem;\n QTreeWidgetItem *havegedItem;\n QTreeWidgetItem *avahiItem;\n\n\n QDialog *mmn;\n\n\npublic:\n /** constructor */\n MInstall(QWidget* parent=0);\n /** destructor */\n ~MInstall();\n\n bool abortInstall;\n\n int removedItemIndex;\n QString removedItem;\n\n void goBack(QString msg);\n void unmountGoBack(QString msg);\n\n // helpers\n static QString getCmdOut(QString cmd);\n static QStringList getCmdOuts(QString cmd);\n static QString getCmdValue(QString cmd, QString key, QString keydel, QString valdel);\n static QStringList getCmdValues(QString cmd, QString key, QString keydel, QString valdel);\n static bool replaceStringInFile(QString oldtext, QString newtext, QString filepath);\n static int getPartitionNumber();\n static int command(const QString &string);\n bool is32bit();\n bool is64bit();\n bool isInsideVB();\n bool isGpt(QString drv);\n bool isUefi();\n int runCmd(QString cmd);\n\n void buildServiceList();\n void copyLinux();\n void installLinux();\n void prepareToInstall();\n void setLocale();\n void setServices();\n void updatePartitionWidgets();\n void updateStatus(QString msg, int val);\n bool checkDisk();\n bool installLoader();\n bool makeChosenPartitions();\n bool makeDefaultPartitions();\n bool makeFloppy();\n bool makeGrub(int rootdev, QString rootpart, const char *rootmnt, bool initrd);\n bool makeLinuxPartition(QString dev, const char *type, bool bad, QString label);\n bool makeSwapPartition(QString dev);\n bool makeEsp(QString drv, int size);\n bool mountPartition(QString dev, const char *point);\n bool removeKernel();\n bool setComputerName();\n bool setPasswords();\n bool setUserInfo();\n bool setUserName();\n\n void gotoPage(int next);\n void pageDisplayed(int next);\n int showPage(int curr, int next);\n void stopInstall();\n void firstRefresh(QDialog *main);\n void refresh();\n\npublic slots:\n virtual void on_passwordCheckBox_stateChanged(int);\n virtual void on_nextButton_clicked();\n virtual void on_backButton_clicked();\n virtual void on_abortInstallButton_clicked();\n virtual void on_qtpartedButton_clicked();\n virtual void on_diskCombo_activated(QString item = \"\");\n virtual void on_rootCombo_activated(QString item = \"\");\n virtual void on_rootTypeCombo_activated(QString item = \"\");\n void procAbort();\n virtual bool close();\n // void moreClicked(QListViewItem *item);\n void delStart();\n void delDone(int, QProcess::ExitStatus exitStatus);\n void delTime();\n\n void copyStart();\n void copyDone(int, QProcess::ExitStatus exitStatus);\n void copyTime();\n void procTime();\n\nprivate slots:\n void on_viewServicesButton_clicked();\n void on_homeCombo_activated(const QString &arg1);\n void on_grubBootCombo_activated(QString item = \"\");\n void on_closeButton_clicked();\n void on_encryptCheckBox_toggled(bool checked);\n void on_saveHomeCheck_toggled(bool checked);\n};\n"}
139
c
#ifndef __COMMONS_H_ #define __COMMONS_H_ /** * These are the system events that we use to signal events to the PRUs. * See the AM335x TRM Table 4-22 for a list of all events */ #define HOST_PRU_EVT_RESET 27 #define HOST_PRU_EVT_START 28 #define HOST_PRU_EVT_TIMESTAMP 29 /* The SharedMem struct resides at the beginning of the PRUs shared memory */ #define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000 enum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 }; enum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG }; enum ShepherdState { STATE_UNKNOWN, STATE_IDLE, STATE_ARMED, STATE_RUNNING, STATE_FAULT }; /* This is external to expose some of the attributes through sysfs */ extern void __iomem *pru_shared_mem_io; struct SharedMem { uint32_t shepherd_state; /* Stores the mode, e.g. harvesting or emulation */ uint32_t shepherd_mode; /* Allows setting a fixed harvesting voltage as reference for the boost converter */ uint32_t harvesting_voltage; /* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */ uint32_t mem_base_addr; /* Length of shared area in DDR RAM */ uint32_t mem_size; /* Maximum number of buffers stored in the shared DDR RAM area */ uint32_t n_buffers; /* Number of IV samples stored per buffer */ uint32_t samples_per_buffer; /* The time for sampling samples_per_buffer. Determines sampling rate */ uint32_t buffer_period_ns; } __attribute__((packed)); /* Control request message sent from PRU0 to this kernel module */ struct CtrlReqMsg { /* This is used to identify message type at receiver */ char identifier; /* Number of ticks passed on the PRU's IEP timer */ uint32_t ticks_iep; /* Previous buffer period in IEP ticks */ uint32_t old_period; } __attribute__((packed)); /* Control reply message sent from this kernel module to PRU0 after running the control loop */ struct CtrlRepMsg { char identifier; int32_t clock_corr; uint64_t next_timestamp_ns; } __attribute__((packed)); #endif /* __COMMONS_H_ */
36.13
55
(translation_unit) "#ifndef __COMMONS_H_\n#define __COMMONS_H_\n\n/**\n * These are the system events that we use to signal events to the PRUs.\n * See the AM335x TRM Table 4-22 for a list of all events\n */\n#define HOST_PRU_EVT_RESET 27\n#define HOST_PRU_EVT_START 28\n#define HOST_PRU_EVT_TIMESTAMP 29\n\n/* The SharedMem struct resides at the beginning of the PRUs shared memory */\n#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n\nenum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 };\n\nenum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG };\nenum ShepherdState {\n STATE_UNKNOWN,\n STATE_IDLE,\n STATE_ARMED,\n STATE_RUNNING,\n STATE_FAULT\n};\n\n/* This is external to expose some of the attributes through sysfs */\nextern void __iomem *pru_shared_mem_io;\n\nstruct SharedMem {\n uint32_t shepherd_state;\n /* Stores the mode, e.g. harvesting or emulation */\n uint32_t shepherd_mode;\n /* Allows setting a fixed harvesting voltage as reference for the boost converter */\n uint32_t harvesting_voltage;\n /* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n uint32_t mem_base_addr;\n /* Length of shared area in DDR RAM */\n uint32_t mem_size;\n /* Maximum number of buffers stored in the shared DDR RAM area */\n uint32_t n_buffers;\n /* Number of IV samples stored per buffer */\n uint32_t samples_per_buffer;\n /* The time for sampling samples_per_buffer. Determines sampling rate */\n uint32_t buffer_period_ns;\n} __attribute__((packed));\n\n/* Control request message sent from PRU0 to this kernel module */\nstruct CtrlReqMsg {\n /* This is used to identify message type at receiver */\n char identifier;\n /* Number of ticks passed on the PRU's IEP timer */\n uint32_t ticks_iep;\n /* Previous buffer period in IEP ticks */\n uint32_t old_period;\n} __attribute__((packed));\n\n/* Control reply message sent from this kernel module to PRU0 after running the control loop */\nstruct CtrlRepMsg {\n char identifier;\n int32_t clock_corr;\n uint64_t next_timestamp_ns;\n} __attribute__((packed));\n\n#endif /* __COMMONS_H_ */" (preproc_ifdef) "#ifndef __COMMONS_H_\n#define __COMMONS_H_\n\n/**\n * These are the system events that we use to signal events to the PRUs.\n * See the AM335x TRM Table 4-22 for a list of all events\n */\n#define HOST_PRU_EVT_RESET 27\n#define HOST_PRU_EVT_START 28\n#define HOST_PRU_EVT_TIMESTAMP 29\n\n/* The SharedMem struct resides at the beginning of the PRUs shared memory */\n#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n\nenum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 };\n\nenum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG };\nenum ShepherdState {\n STATE_UNKNOWN,\n STATE_IDLE,\n STATE_ARMED,\n STATE_RUNNING,\n STATE_FAULT\n};\n\n/* This is external to expose some of the attributes through sysfs */\nextern void __iomem *pru_shared_mem_io;\n\nstruct SharedMem {\n uint32_t shepherd_state;\n /* Stores the mode, e.g. harvesting or emulation */\n uint32_t shepherd_mode;\n /* Allows setting a fixed harvesting voltage as reference for the boost converter */\n uint32_t harvesting_voltage;\n /* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n uint32_t mem_base_addr;\n /* Length of shared area in DDR RAM */\n uint32_t mem_size;\n /* Maximum number of buffers stored in the shared DDR RAM area */\n uint32_t n_buffers;\n /* Number of IV samples stored per buffer */\n uint32_t samples_per_buffer;\n /* The time for sampling samples_per_buffer. Determines sampling rate */\n uint32_t buffer_period_ns;\n} __attribute__((packed));\n\n/* Control request message sent from PRU0 to this kernel module */\nstruct CtrlReqMsg {\n /* This is used to identify message type at receiver */\n char identifier;\n /* Number of ticks passed on the PRU's IEP timer */\n uint32_t ticks_iep;\n /* Previous buffer period in IEP ticks */\n uint32_t old_period;\n} __attribute__((packed));\n\n/* Control reply message sent from this kernel module to PRU0 after running the control loop */\nstruct CtrlRepMsg {\n char identifier;\n int32_t clock_corr;\n uint64_t next_timestamp_ns;\n} __attribute__((packed));\n\n#endif" (#ifndef) "#ifndef" (identifier) "__COMMONS_H_" (preproc_def) "#define __COMMONS_H_\n" (#define) "#define" (identifier) "__COMMONS_H_" (comment) "/**\n * These are the system events that we use to signal events to the PRUs.\n * See the AM335x TRM Table 4-22 for a list of all events\n */" (preproc_def) "#define HOST_PRU_EVT_RESET 27\n" (#define) "#define" (identifier) "HOST_PRU_EVT_RESET" (preproc_arg) "27" (preproc_def) "#define HOST_PRU_EVT_START 28\n" (#define) "#define" (identifier) "HOST_PRU_EVT_START" (preproc_arg) "28" (preproc_def) "#define HOST_PRU_EVT_TIMESTAMP 29\n" (#define) "#define" (identifier) "HOST_PRU_EVT_TIMESTAMP" (preproc_arg) "29" (comment) "/* The SharedMem struct resides at the beginning of the PRUs shared memory */" (preproc_def) "#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n" (#define) "#define" (identifier) "PRU_SHARED_MEM_STRUCT_OFFSET" (preproc_arg) "0x10000" (enum_specifier) "enum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 }" (enum) "enum" (type_identifier) "SyncMsg" (enumerator_list) "{ MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 }" ({) "{" (enumerator) "MSG_SYNC_CTRL_REQ = 0xF0" (identifier) "MSG_SYNC_CTRL_REQ" (=) "=" (number_literal) "0xF0" (,) "," (enumerator) "MSG_SYNC_CTRL_REP = 0xF1" (identifier) "MSG_SYNC_CTRL_REP" (=) "=" (number_literal) "0xF1" (}) "}" (;) ";" (enum_specifier) "enum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG }" (enum) "enum" (type_identifier) "ShepherdMode" (enumerator_list) "{ MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG }" ({) "{" (enumerator) "MODE_HARVESTING" (identifier) "MODE_HARVESTING" (,) "," (enumerator) "MODE_LOAD" (identifier) "MODE_LOAD" (,) "," (enumerator) "MODE_EMULATION" (identifier) "MODE_EMULATION" (,) "," (enumerator) "MODE_DEBUG" (identifier) "MODE_DEBUG" (}) "}" (;) ";" (enum_specifier) "enum ShepherdState {\n STATE_UNKNOWN,\n STATE_IDLE,\n STATE_ARMED,\n STATE_RUNNING,\n STATE_FAULT\n}" (enum) "enum" (type_identifier) "ShepherdState" (enumerator_list) "{\n STATE_UNKNOWN,\n STATE_IDLE,\n STATE_ARMED,\n STATE_RUNNING,\n STATE_FAULT\n}" ({) "{" (enumerator) "STATE_UNKNOWN" (identifier) "STATE_UNKNOWN" (,) "," (enumerator) "STATE_IDLE" (identifier) "STATE_IDLE" (,) "," (enumerator) "STATE_ARMED" (identifier) "STATE_ARMED" (,) "," (enumerator) "STATE_RUNNING" (identifier) "STATE_RUNNING" (,) "," (enumerator) "STATE_FAULT" (identifier) "STATE_FAULT" (}) "}" (;) ";" (comment) "/* This is external to expose some of the attributes through sysfs */" (declaration) "extern void __iomem *pru_shared_mem_io;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (pointer_declarator) "*pru_shared_mem_io" (*) "*" (identifier) "pru_shared_mem_io" (;) ";" (struct_specifier) "struct SharedMem {\n uint32_t shepherd_state;\n /* Stores the mode, e.g. harvesting or emulation */\n uint32_t shepherd_mode;\n /* Allows setting a fixed harvesting voltage as reference for the boost converter */\n uint32_t harvesting_voltage;\n /* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n uint32_t mem_base_addr;\n /* Length of shared area in DDR RAM */\n uint32_t mem_size;\n /* Maximum number of buffers stored in the shared DDR RAM area */\n uint32_t n_buffers;\n /* Number of IV samples stored per buffer */\n uint32_t samples_per_buffer;\n /* The time for sampling samples_per_buffer. Determines sampling rate */\n uint32_t buffer_period_ns;\n} __attribute__((packed))" (struct) "struct" (type_identifier) "SharedMem" (field_declaration_list) "{\n uint32_t shepherd_state;\n /* Stores the mode, e.g. harvesting or emulation */\n uint32_t shepherd_mode;\n /* Allows setting a fixed harvesting voltage as reference for the boost converter */\n uint32_t harvesting_voltage;\n /* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n uint32_t mem_base_addr;\n /* Length of shared area in DDR RAM */\n uint32_t mem_size;\n /* Maximum number of buffers stored in the shared DDR RAM area */\n uint32_t n_buffers;\n /* Number of IV samples stored per buffer */\n uint32_t samples_per_buffer;\n /* The time for sampling samples_per_buffer. Determines sampling rate */\n uint32_t buffer_period_ns;\n}" ({) "{" (field_declaration) "uint32_t shepherd_state;" (primitive_type) "uint32_t" (field_identifier) "shepherd_state" (;) ";" (comment) "/* Stores the mode, e.g. harvesting or emulation */" (field_declaration) "uint32_t shepherd_mode;" (primitive_type) "uint32_t" (field_identifier) "shepherd_mode" (;) ";" (comment) "/* Allows setting a fixed harvesting voltage as reference for the boost converter */" (field_declaration) "uint32_t harvesting_voltage;" (primitive_type) "uint32_t" (field_identifier) "harvesting_voltage" (;) ";" (comment) "/* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */" (field_declaration) "uint32_t mem_base_addr;" (primitive_type) "uint32_t" (field_identifier) "mem_base_addr" (;) ";" (comment) "/* Length of shared area in DDR RAM */" (field_declaration) "uint32_t mem_size;" (primitive_type) "uint32_t" (field_identifier) "mem_size" (;) ";" (comment) "/* Maximum number of buffers stored in the shared DDR RAM area */" (field_declaration) "uint32_t n_buffers;" (primitive_type) "uint32_t" (field_identifier) "n_buffers" (;) ";" (comment) "/* Number of IV samples stored per buffer */" (field_declaration) "uint32_t samples_per_buffer;" (primitive_type) "uint32_t" (field_identifier) "samples_per_buffer" (;) ";" (comment) "/* The time for sampling samples_per_buffer. Determines sampling rate */" (field_declaration) "uint32_t buffer_period_ns;" (primitive_type) "uint32_t" (field_identifier) "buffer_period_ns" (;) ";" (}) "}" (attribute_specifier) "__attribute__((packed))" (__attribute__) "__attribute__" (() "(" (argument_list) "(packed)" (() "(" (identifier) "packed" ()) ")" ()) ")" (;) ";" (comment) "/* Control request message sent from PRU0 to this kernel module */" (struct_specifier) "struct CtrlReqMsg {\n /* This is used to identify message type at receiver */\n char identifier;\n /* Number of ticks passed on the PRU's IEP timer */\n uint32_t ticks_iep;\n /* Previous buffer period in IEP ticks */\n uint32_t old_period;\n} __attribute__((packed))" (struct) "struct" (type_identifier) "CtrlReqMsg" (field_declaration_list) "{\n /* This is used to identify message type at receiver */\n char identifier;\n /* Number of ticks passed on the PRU's IEP timer */\n uint32_t ticks_iep;\n /* Previous buffer period in IEP ticks */\n uint32_t old_period;\n}" ({) "{" (comment) "/* This is used to identify message type at receiver */" (field_declaration) "char identifier;" (primitive_type) "char" (field_identifier) "identifier" (;) ";" (comment) "/* Number of ticks passed on the PRU's IEP timer */" (field_declaration) "uint32_t ticks_iep;" (primitive_type) "uint32_t" (field_identifier) "ticks_iep" (;) ";" (comment) "/* Previous buffer period in IEP ticks */" (field_declaration) "uint32_t old_period;" (primitive_type) "uint32_t" (field_identifier) "old_period" (;) ";" (}) "}" (attribute_specifier) "__attribute__((packed))" (__attribute__) "__attribute__" (() "(" (argument_list) "(packed)" (() "(" (identifier) "packed" ()) ")" ()) ")" (;) ";" (comment) "/* Control reply message sent from this kernel module to PRU0 after running the control loop */" (struct_specifier) "struct CtrlRepMsg {\n char identifier;\n int32_t clock_corr;\n uint64_t next_timestamp_ns;\n} __attribute__((packed))" (struct) "struct" (type_identifier) "CtrlRepMsg" (field_declaration_list) "{\n char identifier;\n int32_t clock_corr;\n uint64_t next_timestamp_ns;\n}" ({) "{" (field_declaration) "char identifier;" (primitive_type) "char" (field_identifier) "identifier" (;) ";" (field_declaration) "int32_t clock_corr;" (primitive_type) "int32_t" (field_identifier) "clock_corr" (;) ";" (field_declaration) "uint64_t next_timestamp_ns;" (primitive_type) "uint64_t" (field_identifier) "next_timestamp_ns" (;) ";" (}) "}" (attribute_specifier) "__attribute__((packed))" (__attribute__) "__attribute__" (() "(" (argument_list) "(packed)" (() "(" (identifier) "packed" ()) ")" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __COMMONS_H_ */"
206
1
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.13, "nodes": 133, "errors": 0, "source_hash": "f3c42161bca67b4e62aae44a9f7118dbe51499dc554e88de432d17ca56b8334a", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __COMMONS_H_\n#define __COMMONS_H_\n\n/**\n * These are the system events that we use to signal events to the PRUs.\n * See the AM335x TRM Table 4-22 for a list of all events\n */\n#define HOST_PRU_EVT_RESET 27\n#define HOST_PRU_EVT_START 28\n#define HOST_PRU_EVT_TIMESTAMP 29\n\n/* The SharedMem struct resides at the beginning of the PRUs shared memory */\n#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n\nenum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 };\n\nenum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG };\nenum ShepherdState {\n\tSTATE_UNKNOWN,\n\tSTATE_IDLE,\n\tSTATE_ARMED,\n\tSTATE_RUNNING,\n\tSTATE_FAULT\n};\n\n/* This is external to expose some of the attributes through sysfs */\nextern void __iomem *pru_shared_mem_io;\n\nstruct SharedMem {\n\tuint32_t shepherd_state;\n\t/* Stores the mode, e.g. harvesting or emulation */\n\tuint32_t shepherd_mode;\n\t/* Allows setting a fixed harvesting voltage as reference for the boost converter */\n\tuint32_t harvesting_voltage;\n\t/* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n\tuint32_t mem_base_addr;\n\t/* Length of shared area in DDR RAM */\n\tuint32_t mem_size;\n\t/* Maximum number of buffers stored in the shared DDR RAM area */\n\tuint32_t n_buffers;\n\t/* Number of IV samples stored per buffer */\n\tuint32_t samples_per_buffer;\n\t/* The time for sampling samples_per_buffer. Determines sampling rate */\n\tuint32_t buffer_period_ns;\n} __attribute__((packed));\n\n/* Control request message sent from PRU0 to this kernel module */\nstruct CtrlReqMsg {\n\t/* This is used to identify message type at receiver */\n\tchar identifier;\n\t/* Number of ticks passed on the PRU's IEP timer */\n\tuint32_t ticks_iep;\n\t/* Previous buffer period in IEP ticks */\n\tuint32_t old_period;\n} __attribute__((packed));\n\n/* Control reply message sent from this kernel module to PRU0 after running the control loop */\nstruct CtrlRepMsg {\n\tchar identifier;\n\tint32_t clock_corr;\n\tuint64_t next_timestamp_ns;\n} __attribute__((packed));\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 18, 22, 34, 46, 60, 69, 100, 116, 132], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 63, "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": "__COMMONS_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define __COMMONS_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": "__COMMONS_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_def", "text": "#define HOST_PRU_EVT_RESET 27\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 8, "type": "identifier", "text": "HOST_PRU_EVT_RESET", "parent": 6, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 26}}, {"id": 9, "type": "preproc_arg", "text": "27", "parent": 6, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 29}}, {"id": 10, "type": "preproc_def", "text": "#define HOST_PRU_EVT_START 28\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 12, "type": "identifier", "text": "HOST_PRU_EVT_START", "parent": 10, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 13, "type": "preproc_arg", "text": "28", "parent": 10, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 29}}, {"id": 14, "type": "preproc_def", "text": "#define HOST_PRU_EVT_TIMESTAMP 29\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 16, "type": "identifier", "text": "HOST_PRU_EVT_TIMESTAMP", "parent": 14, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 30}}, {"id": 17, "type": "preproc_arg", "text": "29", "parent": 14, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 33}}, {"id": 18, "type": "preproc_def", "text": "#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 20, "type": "identifier", "text": "PRU_SHARED_MEM_STRUCT_OFFSET", "parent": 18, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 36}}, {"id": 21, "type": "preproc_arg", "text": "0x10000", "parent": 18, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 44}}, {"id": 22, "type": "enum_specifier", "text": "enum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 }", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 67}}, {"id": 23, "type": "enum", "text": "enum", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 24, "type": "type_identifier", "text": "SyncMsg", "parent": 22, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 12}}, {"id": 25, "type": "enumerator_list", "text": "{ MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 }", "parent": 22, "children": [26, 30], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 67}}, {"id": 26, "type": "enumerator", "text": "MSG_SYNC_CTRL_REQ = 0xF0", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 39}}, {"id": 27, "type": "identifier", "text": "MSG_SYNC_CTRL_REQ", "parent": 26, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 32}}, {"id": 28, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 29, "type": "number_literal", "text": "0xF0", "parent": 26, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 39}}, {"id": 30, "type": "enumerator", "text": "MSG_SYNC_CTRL_REP = 0xF1", "parent": 25, "children": [31, 32, 33], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 65}}, {"id": 31, "type": "identifier", "text": "MSG_SYNC_CTRL_REP", "parent": 30, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 58}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 14, "column": 59}, "end_point": {"row": 14, "column": 60}}, {"id": 33, "type": "number_literal", "text": "0xF1", "parent": 30, "children": [], "start_point": {"row": 14, "column": 61}, "end_point": {"row": 14, "column": 65}}, {"id": 34, "type": "enum_specifier", "text": "enum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG }", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 76}}, {"id": 35, "type": "enum", "text": "enum", "parent": 34, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 36, "type": "type_identifier", "text": "ShepherdMode", "parent": 34, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 17}}, {"id": 37, "type": "enumerator_list", "text": "{ MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG }", "parent": 34, "children": [38, 40, 42, 44], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 76}}, {"id": 38, "type": "enumerator", "text": "MODE_HARVESTING", "parent": 37, "children": [39], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 35}}, {"id": 39, "type": "identifier", "text": "MODE_HARVESTING", "parent": 38, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 35}}, {"id": 40, "type": "enumerator", "text": "MODE_LOAD", "parent": 37, "children": [41], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 46}}, {"id": 41, "type": "identifier", "text": "MODE_LOAD", "parent": 40, "children": [], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 46}}, {"id": 42, "type": "enumerator", "text": "MODE_EMULATION", "parent": 37, "children": [43], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 62}}, {"id": 43, "type": "identifier", "text": "MODE_EMULATION", "parent": 42, "children": [], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 62}}, {"id": 44, "type": "enumerator", "text": "MODE_DEBUG", "parent": 37, "children": [45], "start_point": {"row": 16, "column": 64}, "end_point": {"row": 16, "column": 74}}, {"id": 45, "type": "identifier", "text": "MODE_DEBUG", "parent": 44, "children": [], "start_point": {"row": 16, "column": 64}, "end_point": {"row": 16, "column": 74}}, {"id": 46, "type": "enum_specifier", "text": "enum ShepherdState {\n\tSTATE_UNKNOWN,\n\tSTATE_IDLE,\n\tSTATE_ARMED,\n\tSTATE_RUNNING,\n\tSTATE_FAULT\n}", "parent": 0, "children": [47, 48, 49], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 47, "type": "enum", "text": "enum", "parent": 46, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 48, "type": "type_identifier", "text": "ShepherdState", "parent": 46, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 18}}, {"id": 49, "type": "enumerator_list", "text": "{\n\tSTATE_UNKNOWN,\n\tSTATE_IDLE,\n\tSTATE_ARMED,\n\tSTATE_RUNNING,\n\tSTATE_FAULT\n}", "parent": 46, "children": [50, 52, 54, 56, 58], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 23, "column": 1}}, {"id": 50, "type": "enumerator", "text": "STATE_UNKNOWN", "parent": 49, "children": [51], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 14}}, {"id": 51, "type": "identifier", "text": "STATE_UNKNOWN", "parent": 50, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 14}}, {"id": 52, "type": "enumerator", "text": "STATE_IDLE", "parent": 49, "children": [53], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 11}}, {"id": 53, "type": "identifier", "text": "STATE_IDLE", "parent": 52, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 11}}, {"id": 54, "type": "enumerator", "text": "STATE_ARMED", "parent": 49, "children": [55], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 12}}, {"id": 55, "type": "identifier", "text": "STATE_ARMED", "parent": 54, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 12}}, {"id": 56, "type": "enumerator", "text": "STATE_RUNNING", "parent": 49, "children": [57], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 14}}, {"id": 57, "type": "identifier", "text": "STATE_RUNNING", "parent": 56, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 14}}, {"id": 58, "type": "enumerator", "text": "STATE_FAULT", "parent": 49, "children": [59], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 12}}, {"id": 59, "type": "identifier", "text": "STATE_FAULT", "parent": 58, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 12}}, {"id": 60, "type": "declaration", "text": "extern void __iomem *pru_shared_mem_io;", "parent": 0, "children": [61, 63, 64, 66], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 39}}, {"id": 61, "type": "storage_class_specifier", "text": "extern", "parent": 60, "children": [62], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 62, "type": "extern", "text": "extern", "parent": 61, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 11}}, {"id": 64, "type": "ERROR", "text": "__iomem", "parent": 60, "children": [65], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 19}}, {"id": 65, "type": "identifier", "text": "__iomem", "parent": 64, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 19}}, {"id": 66, "type": "pointer_declarator", "text": "*pru_shared_mem_io", "parent": 60, "children": [67, 68], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 38}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 68, "type": "identifier", "text": "pru_shared_mem_io", "parent": 66, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 38}}, {"id": 69, "type": "struct_specifier", "text": "struct SharedMem {\n\tuint32_t shepherd_state;\n\t/* Stores the mode, e.g. harvesting or emulation */\n\tuint32_t shepherd_mode;\n\t/* Allows setting a fixed harvesting voltage as reference for the boost converter */\n\tuint32_t harvesting_voltage;\n\t/* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n\tuint32_t mem_base_addr;\n\t/* Length of shared area in DDR RAM */\n\tuint32_t mem_size;\n\t/* Maximum number of buffers stored in the shared DDR RAM area */\n\tuint32_t n_buffers;\n\t/* Number of IV samples stored per buffer */\n\tuint32_t samples_per_buffer;\n\t/* The time for sampling samples_per_buffer. Determines sampling rate */\n\tuint32_t buffer_period_ns;\n} __attribute__((packed))", "parent": 0, "children": [70, 71, 96], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 44, "column": 25}}, {"id": 70, "type": "struct", "text": "struct", "parent": 69, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 71, "type": "type_identifier", "text": "SharedMem", "parent": 69, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 16}}, {"id": 72, "type": "field_declaration", "text": "uint32_t shepherd_state;", "parent": 69, "children": [73, 74], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 25}}, {"id": 73, "type": "primitive_type", "text": "uint32_t", "parent": 72, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 74, "type": "field_identifier", "text": "shepherd_state", "parent": 72, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 24}}, {"id": 75, "type": "field_declaration", "text": "uint32_t shepherd_mode;", "parent": 69, "children": [76, 77], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 24}}, {"id": 76, "type": "primitive_type", "text": "uint32_t", "parent": 75, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 77, "type": "field_identifier", "text": "shepherd_mode", "parent": 75, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 23}}, {"id": 78, "type": "field_declaration", "text": "uint32_t harvesting_voltage;", "parent": 69, "children": [79, 80], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 29}}, {"id": 79, "type": "primitive_type", "text": "uint32_t", "parent": 78, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 80, "type": "field_identifier", "text": "harvesting_voltage", "parent": 78, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 28}}, {"id": 81, "type": "field_declaration", "text": "uint32_t mem_base_addr;", "parent": 69, "children": [82, 83], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 24}}, {"id": 82, "type": "primitive_type", "text": "uint32_t", "parent": 81, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 83, "type": "field_identifier", "text": "mem_base_addr", "parent": 81, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 23}}, {"id": 84, "type": "field_declaration", "text": "uint32_t mem_size;", "parent": 69, "children": [85, 86], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 19}}, {"id": 85, "type": "primitive_type", "text": "uint32_t", "parent": 84, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 86, "type": "field_identifier", "text": "mem_size", "parent": 84, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 18}}, {"id": 87, "type": "field_declaration", "text": "uint32_t n_buffers;", "parent": 69, "children": [88, 89], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 20}}, {"id": 88, "type": "primitive_type", "text": "uint32_t", "parent": 87, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 9}}, {"id": 89, "type": "field_identifier", "text": "n_buffers", "parent": 87, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 19}}, {"id": 90, "type": "field_declaration", "text": "uint32_t samples_per_buffer;", "parent": 69, "children": [91, 92], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 29}}, {"id": 91, "type": "primitive_type", "text": "uint32_t", "parent": 90, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 92, "type": "field_identifier", "text": "samples_per_buffer", "parent": 90, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 28}}, {"id": 93, "type": "field_declaration", "text": "uint32_t buffer_period_ns;", "parent": 69, "children": [94, 95], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 27}}, {"id": 94, "type": "primitive_type", "text": "uint32_t", "parent": 93, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 95, "type": "field_identifier", "text": "buffer_period_ns", "parent": 93, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 26}}, {"id": 96, "type": "attribute_specifier", "text": "__attribute__((packed))", "parent": 69, "children": [97, 98], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 25}}, {"id": 97, "type": "__attribute__", "text": "__attribute__", "parent": 96, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 15}}, {"id": 98, "type": "argument_list", "text": "(packed)", "parent": 96, "children": [99], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 24}}, {"id": 99, "type": "identifier", "text": "packed", "parent": 98, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 23}}, {"id": 100, "type": "struct_specifier", "text": "struct CtrlReqMsg {\n\t/* This is used to identify message type at receiver */\n\tchar identifier;\n\t/* Number of ticks passed on the PRU's IEP timer */\n\tuint32_t ticks_iep;\n\t/* Previous buffer period in IEP ticks */\n\tuint32_t old_period;\n} __attribute__((packed))", "parent": 0, "children": [101, 102, 112], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 54, "column": 25}}, {"id": 101, "type": "struct", "text": "struct", "parent": 100, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 102, "type": "type_identifier", "text": "CtrlReqMsg", "parent": 100, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 17}}, {"id": 103, "type": "field_declaration", "text": "char identifier;", "parent": 100, "children": [104, 105], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 17}}, {"id": 104, "type": "primitive_type", "text": "char", "parent": 103, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 105, "type": "field_identifier", "text": "identifier", "parent": 103, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 16}}, {"id": 106, "type": "field_declaration", "text": "uint32_t ticks_iep;", "parent": 100, "children": [107, 108], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 20}}, {"id": 107, "type": "primitive_type", "text": "uint32_t", "parent": 106, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 9}}, {"id": 108, "type": "field_identifier", "text": "ticks_iep", "parent": 106, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 19}}, {"id": 109, "type": "field_declaration", "text": "uint32_t old_period;", "parent": 100, "children": [110, 111], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 21}}, {"id": 110, "type": "primitive_type", "text": "uint32_t", "parent": 109, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 111, "type": "field_identifier", "text": "old_period", "parent": 109, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 20}}, {"id": 112, "type": "attribute_specifier", "text": "__attribute__((packed))", "parent": 100, "children": [113, 114], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 25}}, {"id": 113, "type": "__attribute__", "text": "__attribute__", "parent": 112, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 15}}, {"id": 114, "type": "argument_list", "text": "(packed)", "parent": 112, "children": [115], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 24}}, {"id": 115, "type": "identifier", "text": "packed", "parent": 114, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 23}}, {"id": 116, "type": "struct_specifier", "text": "struct CtrlRepMsg {\n\tchar identifier;\n\tint32_t clock_corr;\n\tuint64_t next_timestamp_ns;\n} __attribute__((packed))", "parent": 0, "children": [117, 118, 128], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 61, "column": 25}}, {"id": 117, "type": "struct", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 118, "type": "type_identifier", "text": "CtrlRepMsg", "parent": 116, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 17}}, {"id": 119, "type": "field_declaration", "text": "char identifier;", "parent": 116, "children": [120, 121], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 17}}, {"id": 120, "type": "primitive_type", "text": "char", "parent": 119, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 5}}, {"id": 121, "type": "field_identifier", "text": "identifier", "parent": 119, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 16}}, {"id": 122, "type": "field_declaration", "text": "int32_t clock_corr;", "parent": 116, "children": [123, 124], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 20}}, {"id": 123, "type": "primitive_type", "text": "int32_t", "parent": 122, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 124, "type": "field_identifier", "text": "clock_corr", "parent": 122, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 19}}, {"id": 125, "type": "field_declaration", "text": "uint64_t next_timestamp_ns;", "parent": 116, "children": [126, 127], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 28}}, {"id": 126, "type": "primitive_type", "text": "uint64_t", "parent": 125, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 9}}, {"id": 127, "type": "field_identifier", "text": "next_timestamp_ns", "parent": 125, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 27}}, {"id": 128, "type": "attribute_specifier", "text": "__attribute__((packed))", "parent": 116, "children": [129, 130], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 25}}, {"id": 129, "type": "__attribute__", "text": "__attribute__", "parent": 128, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 15}}, {"id": 130, "type": "argument_list", "text": "(packed)", "parent": 128, "children": [131], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 24}}, {"id": 131, "type": "identifier", "text": "packed", "parent": 130, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 23}}, {"id": 132, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [60, 72, 75, 78, 81, 84, 87, 90, 93, 103, 106, 109, 119, 122, 125], "classes": [61, 69, 70, 100, 101, 116, 117], "imports": [], "modules": [], "enums": [22, 23, 25, 26, 30, 34, 35, 37, 38, 40, 42, 44, 46, 47, 49, 50, 52, 54, 56, 58]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 20, 24, 27, 31, 36, 39, 41, 43, 45, 48, 51, 53, 55, 57, 59, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 96, 99, 102, 105, 108, 111, 112, 115, 118, 121, 124, 127, 128, 131, 132], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [29, 33], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 69, "universal_type": "class", "name": "SharedMem", "text_snippet": "struct SharedMem {\n\tuint32_t shepherd_state;\n\t/* Stores the mode, e.g. harvesting or emulation */\n\tu"}, {"node_id": 70, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 100, "universal_type": "class", "name": "CtrlReqMsg", "text_snippet": "struct CtrlReqMsg {\n\t/* This is used to identify message type at receiver */\n\tchar identifier;\n\t/* N"}, {"node_id": 101, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 116, "universal_type": "class", "name": "CtrlRepMsg", "text_snippet": "struct CtrlRepMsg {\n\tchar identifier;\n\tint32_t clock_corr;\n\tuint64_t next_timestamp_ns;\n} __attribut"}, {"node_id": 117, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef __COMMONS_H_\n#define __COMMONS_H_\n\n/**\n * These are the system events that we use to signal events to the PRUs.\n * See the AM335x TRM Table 4-22 for a list of all events\n */\n#define HOST_PRU_EVT_RESET 27\n#define HOST_PRU_EVT_START 28\n#define HOST_PRU_EVT_TIMESTAMP 29\n\n/* The SharedMem struct resides at the beginning of the PRUs shared memory */\n#define PRU_SHARED_MEM_STRUCT_OFFSET 0x10000\n\nenum SyncMsg { MSG_SYNC_CTRL_REQ = 0xF0, MSG_SYNC_CTRL_REP = 0xF1 };\n\nenum ShepherdMode { MODE_HARVESTING, MODE_LOAD, MODE_EMULATION, MODE_DEBUG };\nenum ShepherdState {\n\tSTATE_UNKNOWN,\n\tSTATE_IDLE,\n\tSTATE_ARMED,\n\tSTATE_RUNNING,\n\tSTATE_FAULT\n};\n\n/* This is external to expose some of the attributes through sysfs */\nextern void __iomem *pru_shared_mem_io;\n\nstruct SharedMem {\n\tuint32_t shepherd_state;\n\t/* Stores the mode, e.g. harvesting or emulation */\n\tuint32_t shepherd_mode;\n\t/* Allows setting a fixed harvesting voltage as reference for the boost converter */\n\tuint32_t harvesting_voltage;\n\t/* Physical address of shared area in DDR RAM, that is used to exchange data between user space and PRUs */\n\tuint32_t mem_base_addr;\n\t/* Length of shared area in DDR RAM */\n\tuint32_t mem_size;\n\t/* Maximum number of buffers stored in the shared DDR RAM area */\n\tuint32_t n_buffers;\n\t/* Number of IV samples stored per buffer */\n\tuint32_t samples_per_buffer;\n\t/* The time for sampling samples_per_buffer. Determines sampling rate */\n\tuint32_t buffer_period_ns;\n} __attribute__((packed));\n\n/* Control request message sent from PRU0 to this kernel module */\nstruct CtrlReqMsg {\n\t/* This is used to identify message type at receiver */\n\tchar identifier;\n\t/* Number of ticks passed on the PRU's IEP timer */\n\tuint32_t ticks_iep;\n\t/* Previous buffer period in IEP ticks */\n\tuint32_t old_period;\n} __attribute__((packed));\n\n/* Control reply message sent from this kernel module to PRU0 after running the control loop */\nstruct CtrlRepMsg {\n\tchar identifier;\n\tint32_t clock_corr;\n\tuint64_t next_timestamp_ns;\n} __attribute__((packed));\n\n#endif /* __COMMONS_H_ */"}
140
c
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. * Copyright (c) 2006-2007 Los Alamos National Security, LLC. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "orte_config.h" #include "orte/types.h" #include "orte/runtime/orte_globals.h" #include "orte/mca/oob/tcp/oob_tcp.h" /** * Process a matched posted receive * * Note that the match lock must be held prior to the call. */ static void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match) { int i,rc; if(match->msg_rc < 0) { rc = match->msg_rc; } else { if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC; /* if we are just doing peek, return bytes without dequeing message */ rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt); if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) { rc = 0; for(i=1; i<match->msg_rwcnt+1; i++) rc += match->msg_rwiov[i].iov_len; } if(ORTE_RML_PEEK & msg->msg_flags) { OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock); msg->msg_cbfunc(rc, &match->msg_peer, msg->msg_uiov, msg->msg_ucnt, match->msg_hdr.msg_tag, msg->msg_cbdata); OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock); return; } } /* otherwise remove the match */ opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match); /* invoke callback */ OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock); msg->msg_cbfunc(rc, &match->msg_peer, msg->msg_uiov, msg->msg_ucnt, match->msg_hdr.msg_tag, msg->msg_cbdata); OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock); /* return match to free list */ MCA_OOB_TCP_MSG_RETURN(match); } /* * Non-blocking version of mca_oob_recv(). * * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive. * @param msg (IN) Array of iovecs describing user buffers and lengths. * @param count (IN) Number of elements in iovec array. * @param tag (IN) User supplied tag for matching send/recv. * @param flags (IN) May be MCA_OOB_PEEK to return up to size bytes of msg w/out removing it from the queue, * @param cbfunc (IN) Callback function on recv completion. * @param cbdata (IN) User data that is passed to callback function. * @return OMPI error code (<0) on error. */ int mca_oob_tcp_recv_nb( orte_process_name_t* peer, struct iovec* iov, int count, int tag, int flags, orte_rml_callback_fn_t cbfunc, void* cbdata) { mca_oob_tcp_msg_t *msg; mca_oob_tcp_msg_t *match; int i, rc, size = 0; /* validate params */ if(NULL == iov || 0 == count) { return ORTE_ERR_BAD_PARAM; } /* allocate/initialize the posted receive */ MCA_OOB_TCP_MSG_ALLOC(msg, rc); if(NULL == msg) { OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock); return rc; } /* determine overall size of user supplied buffer */ for(i = 0; i < count; i++) { size += iov[i].iov_len; } /* fill in the header */ msg->msg_hdr.msg_origin = *peer; msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME; msg->msg_hdr.msg_dst = *peer; msg->msg_hdr.msg_size = size; msg->msg_hdr.msg_tag = tag; msg->msg_type = MCA_OOB_TCP_POSTED; msg->msg_rc = 0; msg->msg_flags = flags; msg->msg_uiov = iov; msg->msg_ucnt = count; msg->msg_cbfunc = cbfunc; msg->msg_cbdata = cbdata; msg->msg_complete = false; msg->msg_peer = *peer; msg->msg_rwbuf = NULL; msg->msg_rwiov = NULL; /* acquire the match lock */ OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock); if(flags & ORTE_RML_PERSISTENT) { opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg); while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) { mca_oob_tcp_msg_matched(msg, match); } } else { /* check to see if a matching receive is on the list */ match = mca_oob_tcp_msg_match_recv(peer, tag); if(NULL != match) { mca_oob_tcp_msg_matched(msg, match); MCA_OOB_TCP_MSG_RETURN(msg); } else { opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg); } } OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock); return 0; } /* * Cancel non-blocking recv. * * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive. * @param tag (IN) User supplied tag for matching send/recv. * @return OMPI error code (<0) on error or number of bytes actually received. */ int mca_oob_tcp_recv_cancel( orte_process_name_t* name, int tag) { int matched = 0; opal_list_item_t *item, *next; /* wait for any previously matched messages to be processed */ OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock); #if ORTE_ENABLE_PROGRESS_THREADS if(opal_event_progress_thread() == false) { while(mca_oob_tcp_component.tcp_match_count) { opal_condition_wait( &mca_oob_tcp_component.tcp_match_cond, &mca_oob_tcp_component.tcp_match_lock); } } #endif /* remove any matching posted receives */ for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post); item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post); item = next) { mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item; next = opal_list_get_next(item); if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) { if (msg->msg_hdr.msg_tag == tag) { opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super); MCA_OOB_TCP_MSG_RETURN(msg); matched++; } } } OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock); return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND; }
36.06
186
(translation_unit) "/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2005 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2006-2007 Los Alamos National Security, LLC. \n * All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */\n#include "orte_config.h"\n#include "orte/types.h"\n\n#include "orte/runtime/orte_globals.h"\n\n#include "orte/mca/oob/tcp/oob_tcp.h"\n\n\n/**\n * Process a matched posted receive\n *\n * Note that the match lock must be held prior to the call.\n */\n\nstatic void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)\n{\n int i,rc;\n if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }\n\n /* otherwise remove the match */\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);\n\n /* invoke callback */\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n\n /* return match to free list */\n MCA_OOB_TCP_MSG_RETURN(match);\n}\n\n/*\n * Non-blocking version of mca_oob_recv().\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param msg (IN) Array of iovecs describing user buffers and lengths.\n * @param count (IN) Number of elements in iovec array.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @param flags (IN) May be MCA_OOB_PEEK to return up to size bytes of msg w/out removing it from the queue,\n * @param cbfunc (IN) Callback function on recv completion.\n * @param cbdata (IN) User data that is passed to callback function.\n * @return OMPI error code (<0) on error.\n */\nint mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)\n{\n mca_oob_tcp_msg_t *msg;\n mca_oob_tcp_msg_t *match;\n int i, rc, size = 0;\n\n /* validate params */\n if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }\n\n /* allocate/initialize the posted receive */\n MCA_OOB_TCP_MSG_ALLOC(msg, rc);\n if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }\n\n /* determine overall size of user supplied buffer */\n for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }\n\n /* fill in the header */\n msg->msg_hdr.msg_origin = *peer;\n msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;\n msg->msg_hdr.msg_dst = *peer;\n msg->msg_hdr.msg_size = size;\n msg->msg_hdr.msg_tag = tag;\n msg->msg_type = MCA_OOB_TCP_POSTED;\n msg->msg_rc = 0;\n msg->msg_flags = flags;\n msg->msg_uiov = iov;\n msg->msg_ucnt = count;\n msg->msg_cbfunc = cbfunc;\n msg->msg_cbdata = cbdata;\n msg->msg_complete = false;\n msg->msg_peer = *peer;\n msg->msg_rwbuf = NULL;\n msg->msg_rwiov = NULL;\n\n /* acquire the match lock */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return 0;\n}\n\n\n/*\n * Cancel non-blocking recv.\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @return OMPI error code (<0) on error or number of bytes actually received.\n */\n\nint mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)\n{\n int matched = 0;\n opal_list_item_t *item, *next;\n\n /* wait for any previously matched messages to be processed */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif\n\n /* remove any matching posted receives */\n for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;\n}\n\n" (comment) "/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2005 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2006-2007 Los Alamos National Security, LLC. \n * All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */" (preproc_include) "#include "orte_config.h"\n" (#include) "#include" (string_literal) ""orte_config.h"" (") """ (string_content) "orte_config.h" (") """ (preproc_include) "#include "orte/types.h"\n" (#include) "#include" (string_literal) ""orte/types.h"" (") """ (string_content) "orte/types.h" (") """ (preproc_include) "#include "orte/runtime/orte_globals.h"\n" (#include) "#include" (string_literal) ""orte/runtime/orte_globals.h"" (") """ (string_content) "orte/runtime/orte_globals.h" (") """ (preproc_include) "#include "orte/mca/oob/tcp/oob_tcp.h"\n" (#include) "#include" (string_literal) ""orte/mca/oob/tcp/oob_tcp.h"" (") """ (string_content) "orte/mca/oob/tcp/oob_tcp.h" (") """ (comment) "/**\n * Process a matched posted receive\n *\n * Note that the match lock must be held prior to the call.\n */" (function_definition) "static void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)\n{\n int i,rc;\n if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }\n\n /* otherwise remove the match */\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);\n\n /* invoke callback */\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n\n /* return match to free list */\n MCA_OOB_TCP_MSG_RETURN(match);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)" (identifier) "mca_oob_tcp_msg_matched" (parameter_list) "(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)" (() "(" (parameter_declaration) "mca_oob_tcp_msg_t* msg" (type_identifier) "mca_oob_tcp_msg_t" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "mca_oob_tcp_msg_t* match" (type_identifier) "mca_oob_tcp_msg_t" (pointer_declarator) "* match" (*) "*" (identifier) "match" ()) ")" (compound_statement) "{\n int i,rc;\n if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }\n\n /* otherwise remove the match */\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);\n\n /* invoke callback */\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n\n /* return match to free list */\n MCA_OOB_TCP_MSG_RETURN(match);\n}" ({) "{" (declaration) "int i,rc;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "rc" (;) ";" (if_statement) "if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }" (if) "if" (parenthesized_expression) "(match->msg_rc < 0)" (() "(" (binary_expression) "match->msg_rc < 0" (field_expression) "match->msg_rc" (identifier) "match" (->) "->" (field_identifier) "msg_rc" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n rc = match->msg_rc; \n\n }" ({) "{" (expression_statement) "rc = match->msg_rc;" (assignment_expression) "rc = match->msg_rc" (identifier) "rc" (=) "=" (field_expression) "match->msg_rc" (identifier) "match" (->) "->" (field_identifier) "msg_rc" (;) ";" (}) "}" (else_clause) "else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }" (else) "else" (compound_statement) "{\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }" ({) "{" (if_statement) "if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;" (if) "if" (parenthesized_expression) "(msg->msg_flags & ORTE_RML_ALLOC)" (() "(" (binary_expression) "msg->msg_flags & ORTE_RML_ALLOC" (field_expression) "msg->msg_flags" (identifier) "msg" (->) "->" (field_identifier) "msg_flags" (&) "&" (identifier) "ORTE_RML_ALLOC" ()) ")" (expression_statement) "match->msg_flags |= ORTE_RML_ALLOC;" (assignment_expression) "match->msg_flags |= ORTE_RML_ALLOC" (field_expression) "match->msg_flags" (identifier) "match" (->) "->" (field_identifier) "msg_flags" (|=) "|=" (identifier) "ORTE_RML_ALLOC" (;) ";" (comment) "/* if we are just doing peek, return bytes without dequeing message */" (expression_statement) "rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);" (assignment_expression) "rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt)" (identifier) "rc" (=) "=" (call_expression) "mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt)" (identifier) "mca_oob_tcp_msg_copy" (argument_list) "(match, msg->msg_uiov, msg->msg_ucnt)" (() "(" (identifier) "match" (,) "," (field_expression) "msg->msg_uiov" (identifier) "msg" (->) "->" (field_identifier) "msg_uiov" (,) "," (field_expression) "msg->msg_ucnt" (identifier) "msg" (->) "->" (field_identifier) "msg_ucnt" ()) ")" (;) ";" (if_statement) "if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }" (if) "if" (parenthesized_expression) "(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags)" (() "(" (binary_expression) "rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags" (binary_expression) "rc >= 0" (identifier) "rc" (>=) ">=" (number_literal) "0" (&&) "&&" (binary_expression) "ORTE_RML_TRUNC & msg->msg_flags" (identifier) "ORTE_RML_TRUNC" (&) "&" (field_expression) "msg->msg_flags" (identifier) "msg" (->) "->" (field_identifier) "msg_flags" ()) ")" (compound_statement) "{\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }" ({) "{" (expression_statement) "rc = 0;" (assignment_expression) "rc = 0" (identifier) "rc" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<match->msg_rwcnt+1" (identifier) "i" (<) "<" (binary_expression) "match->msg_rwcnt+1" (field_expression) "match->msg_rwcnt" (identifier) "match" (->) "->" (field_identifier) "msg_rwcnt" (+) "+" (number_literal) "1" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "rc += match->msg_rwiov[i].iov_len;" (assignment_expression) "rc += match->msg_rwiov[i].iov_len" (identifier) "rc" (+=) "+=" (field_expression) "match->msg_rwiov[i].iov_len" (subscript_expression) "match->msg_rwiov[i]" (field_expression) "match->msg_rwiov" (identifier) "match" (->) "->" (field_identifier) "msg_rwiov" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "iov_len" (;) ";" (}) "}" (if_statement) "if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }" (if) "if" (parenthesized_expression) "(ORTE_RML_PEEK & msg->msg_flags)" (() "(" (binary_expression) "ORTE_RML_PEEK & msg->msg_flags" (identifier) "ORTE_RML_PEEK" (&) "&" (field_expression) "msg->msg_flags" (identifier) "msg" (->) "->" (field_identifier) "msg_flags" ()) ")" (compound_statement) "{\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }" ({) "{" (expression_statement) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_UNLOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (expression_statement) "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);" (call_expression) "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)" (field_expression) "msg->msg_cbfunc" (identifier) "msg" (->) "->" (field_identifier) "msg_cbfunc" (argument_list) "(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)" (() "(" (identifier) "rc" (,) "," (pointer_expression) "&match->msg_peer" (&) "&" (field_expression) "match->msg_peer" (identifier) "match" (->) "->" (field_identifier) "msg_peer" (,) "," (field_expression) "msg->msg_uiov" (identifier) "msg" (->) "->" (field_identifier) "msg_uiov" (,) "," (field_expression) "msg->msg_ucnt" (identifier) "msg" (->) "->" (field_identifier) "msg_ucnt" (,) "," (field_expression) "match->msg_hdr.msg_tag" (field_expression) "match->msg_hdr" (identifier) "match" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_tag" (,) "," (field_expression) "msg->msg_cbdata" (identifier) "msg" (->) "->" (field_identifier) "msg_cbdata" ()) ")" (;) ";" (expression_statement) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_LOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (comment) "/* otherwise remove the match */" (expression_statement) "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);" (call_expression) "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match)" (identifier) "opal_list_remove_item" (argument_list) "(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_recv" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_recv" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_recv" (,) "," (cast_expression) "(opal_list_item_t *) match" (() "(" (type_descriptor) "opal_list_item_t *" (type_identifier) "opal_list_item_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "match" ()) ")" (;) ";" (comment) "/* invoke callback */" (expression_statement) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_UNLOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (expression_statement) "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);" (call_expression) "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)" (field_expression) "msg->msg_cbfunc" (identifier) "msg" (->) "->" (field_identifier) "msg_cbfunc" (argument_list) "(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)" (() "(" (identifier) "rc" (,) "," (pointer_expression) "&match->msg_peer" (&) "&" (field_expression) "match->msg_peer" (identifier) "match" (->) "->" (field_identifier) "msg_peer" (,) "," (field_expression) "msg->msg_uiov" (identifier) "msg" (->) "->" (field_identifier) "msg_uiov" (,) "," (field_expression) "msg->msg_ucnt" (identifier) "msg" (->) "->" (field_identifier) "msg_ucnt" (,) "," (field_expression) "match->msg_hdr.msg_tag" (field_expression) "match->msg_hdr" (identifier) "match" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_tag" (,) "," (field_expression) "msg->msg_cbdata" (identifier) "msg" (->) "->" (field_identifier) "msg_cbdata" ()) ")" (;) ";" (expression_statement) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_LOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (comment) "/* return match to free list */" (expression_statement) "MCA_OOB_TCP_MSG_RETURN(match);" (call_expression) "MCA_OOB_TCP_MSG_RETURN(match)" (identifier) "MCA_OOB_TCP_MSG_RETURN" (argument_list) "(match)" (() "(" (identifier) "match" ()) ")" (;) ";" (}) "}" (comment) "/*\n * Non-blocking version of mca_oob_recv().\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param msg (IN) Array of iovecs describing user buffers and lengths.\n * @param count (IN) Number of elements in iovec array.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @param flags (IN) May be MCA_OOB_PEEK to return up to size bytes of msg w/out removing it from the queue,\n * @param cbfunc (IN) Callback function on recv completion.\n * @param cbdata (IN) User data that is passed to callback function.\n * @return OMPI error code (<0) on error.\n */" (function_definition) "int mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)\n{\n mca_oob_tcp_msg_t *msg;\n mca_oob_tcp_msg_t *match;\n int i, rc, size = 0;\n\n /* validate params */\n if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }\n\n /* allocate/initialize the posted receive */\n MCA_OOB_TCP_MSG_ALLOC(msg, rc);\n if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }\n\n /* determine overall size of user supplied buffer */\n for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }\n\n /* fill in the header */\n msg->msg_hdr.msg_origin = *peer;\n msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;\n msg->msg_hdr.msg_dst = *peer;\n msg->msg_hdr.msg_size = size;\n msg->msg_hdr.msg_tag = tag;\n msg->msg_type = MCA_OOB_TCP_POSTED;\n msg->msg_rc = 0;\n msg->msg_flags = flags;\n msg->msg_uiov = iov;\n msg->msg_ucnt = count;\n msg->msg_cbfunc = cbfunc;\n msg->msg_cbdata = cbdata;\n msg->msg_complete = false;\n msg->msg_peer = *peer;\n msg->msg_rwbuf = NULL;\n msg->msg_rwiov = NULL;\n\n /* acquire the match lock */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return 0;\n}" (primitive_type) "int" (function_declarator) "mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)" (identifier) "mca_oob_tcp_recv_nb" (parameter_list) "(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)" (() "(" (parameter_declaration) "orte_process_name_t* peer" (type_identifier) "orte_process_name_t" (pointer_declarator) "* peer" (*) "*" (identifier) "peer" (,) "," (parameter_declaration) "struct iovec* iov" (struct_specifier) "struct iovec" (struct) "struct" (type_identifier) "iovec" (pointer_declarator) "* iov" (*) "*" (identifier) "iov" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "int tag" (primitive_type) "int" (identifier) "tag" (,) "," (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" (,) "," (parameter_declaration) "orte_rml_callback_fn_t cbfunc" (type_identifier) "orte_rml_callback_fn_t" (identifier) "cbfunc" (,) "," (parameter_declaration) "void* cbdata" (primitive_type) "void" (pointer_declarator) "* cbdata" (*) "*" (identifier) "cbdata" ()) ")" (compound_statement) "{\n mca_oob_tcp_msg_t *msg;\n mca_oob_tcp_msg_t *match;\n int i, rc, size = 0;\n\n /* validate params */\n if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }\n\n /* allocate/initialize the posted receive */\n MCA_OOB_TCP_MSG_ALLOC(msg, rc);\n if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }\n\n /* determine overall size of user supplied buffer */\n for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }\n\n /* fill in the header */\n msg->msg_hdr.msg_origin = *peer;\n msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;\n msg->msg_hdr.msg_dst = *peer;\n msg->msg_hdr.msg_size = size;\n msg->msg_hdr.msg_tag = tag;\n msg->msg_type = MCA_OOB_TCP_POSTED;\n msg->msg_rc = 0;\n msg->msg_flags = flags;\n msg->msg_uiov = iov;\n msg->msg_ucnt = count;\n msg->msg_cbfunc = cbfunc;\n msg->msg_cbdata = cbdata;\n msg->msg_complete = false;\n msg->msg_peer = *peer;\n msg->msg_rwbuf = NULL;\n msg->msg_rwiov = NULL;\n\n /* acquire the match lock */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return 0;\n}" ({) "{" (declaration) "mca_oob_tcp_msg_t *msg;" (type_identifier) "mca_oob_tcp_msg_t" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" (;) ";" (declaration) "mca_oob_tcp_msg_t *match;" (type_identifier) "mca_oob_tcp_msg_t" (pointer_declarator) "*match" (*) "*" (identifier) "match" (;) ";" (declaration) "int i, rc, size = 0;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "rc" (,) "," (init_declarator) "size = 0" (identifier) "size" (=) "=" (number_literal) "0" (;) ";" (comment) "/* validate params */" (if_statement) "if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }" (if) "if" (parenthesized_expression) "(NULL == iov || 0 == count)" (() "(" (binary_expression) "NULL == iov || 0 == count" (binary_expression) "NULL == iov" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "iov" (||) "||" (binary_expression) "0 == count" (number_literal) "0" (==) "==" (identifier) "count" ()) ")" (compound_statement) "{\n return ORTE_ERR_BAD_PARAM;\n }" ({) "{" (return_statement) "return ORTE_ERR_BAD_PARAM;" (return) "return" (identifier) "ORTE_ERR_BAD_PARAM" (;) ";" (}) "}" (comment) "/* allocate/initialize the posted receive */" (expression_statement) "MCA_OOB_TCP_MSG_ALLOC(msg, rc);" (call_expression) "MCA_OOB_TCP_MSG_ALLOC(msg, rc)" (identifier) "MCA_OOB_TCP_MSG_ALLOC" (argument_list) "(msg, rc)" (() "(" (identifier) "msg" (,) "," (identifier) "rc" ()) ")" (;) ";" (if_statement) "if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }" (if) "if" (parenthesized_expression) "(NULL == msg)" (() "(" (binary_expression) "NULL == msg" (null) "NULL" (NULL) "NULL" (==) "==" (identifier) "msg" ()) ")" (compound_statement) "{\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }" ({) "{" (expression_statement) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_UNLOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/* determine overall size of user supplied buffer */" (for_statement) "for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < count" (identifier) "i" (<) "<" (identifier) "count" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n size += iov[i].iov_len;\n }" ({) "{" (expression_statement) "size += iov[i].iov_len;" (assignment_expression) "size += iov[i].iov_len" (identifier) "size" (+=) "+=" (field_expression) "iov[i].iov_len" (subscript_expression) "iov[i]" (identifier) "iov" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "iov_len" (;) ";" (}) "}" (comment) "/* fill in the header */" (expression_statement) "msg->msg_hdr.msg_origin = *peer;" (assignment_expression) "msg->msg_hdr.msg_origin = *peer" (field_expression) "msg->msg_hdr.msg_origin" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_origin" (=) "=" (pointer_expression) "*peer" (*) "*" (identifier) "peer" (;) ";" (expression_statement) "msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;" (assignment_expression) "msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME" (field_expression) "msg->msg_hdr.msg_src" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_src" (=) "=" (pointer_expression) "*ORTE_PROC_MY_NAME" (*) "*" (identifier) "ORTE_PROC_MY_NAME" (;) ";" (expression_statement) "msg->msg_hdr.msg_dst = *peer;" (assignment_expression) "msg->msg_hdr.msg_dst = *peer" (field_expression) "msg->msg_hdr.msg_dst" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_dst" (=) "=" (pointer_expression) "*peer" (*) "*" (identifier) "peer" (;) ";" (expression_statement) "msg->msg_hdr.msg_size = size;" (assignment_expression) "msg->msg_hdr.msg_size = size" (field_expression) "msg->msg_hdr.msg_size" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_size" (=) "=" (identifier) "size" (;) ";" (expression_statement) "msg->msg_hdr.msg_tag = tag;" (assignment_expression) "msg->msg_hdr.msg_tag = tag" (field_expression) "msg->msg_hdr.msg_tag" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_tag" (=) "=" (identifier) "tag" (;) ";" (expression_statement) "msg->msg_type = MCA_OOB_TCP_POSTED;" (assignment_expression) "msg->msg_type = MCA_OOB_TCP_POSTED" (field_expression) "msg->msg_type" (identifier) "msg" (->) "->" (field_identifier) "msg_type" (=) "=" (identifier) "MCA_OOB_TCP_POSTED" (;) ";" (expression_statement) "msg->msg_rc = 0;" (assignment_expression) "msg->msg_rc = 0" (field_expression) "msg->msg_rc" (identifier) "msg" (->) "->" (field_identifier) "msg_rc" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "msg->msg_flags = flags;" (assignment_expression) "msg->msg_flags = flags" (field_expression) "msg->msg_flags" (identifier) "msg" (->) "->" (field_identifier) "msg_flags" (=) "=" (identifier) "flags" (;) ";" (expression_statement) "msg->msg_uiov = iov;" (assignment_expression) "msg->msg_uiov = iov" (field_expression) "msg->msg_uiov" (identifier) "msg" (->) "->" (field_identifier) "msg_uiov" (=) "=" (identifier) "iov" (;) ";" (expression_statement) "msg->msg_ucnt = count;" (assignment_expression) "msg->msg_ucnt = count" (field_expression) "msg->msg_ucnt" (identifier) "msg" (->) "->" (field_identifier) "msg_ucnt" (=) "=" (identifier) "count" (;) ";" (expression_statement) "msg->msg_cbfunc = cbfunc;" (assignment_expression) "msg->msg_cbfunc = cbfunc" (field_expression) "msg->msg_cbfunc" (identifier) "msg" (->) "->" (field_identifier) "msg_cbfunc" (=) "=" (identifier) "cbfunc" (;) ";" (expression_statement) "msg->msg_cbdata = cbdata;" (assignment_expression) "msg->msg_cbdata = cbdata" (field_expression) "msg->msg_cbdata" (identifier) "msg" (->) "->" (field_identifier) "msg_cbdata" (=) "=" (identifier) "cbdata" (;) ";" (expression_statement) "msg->msg_complete = false;" (assignment_expression) "msg->msg_complete = false" (field_expression) "msg->msg_complete" (identifier) "msg" (->) "->" (field_identifier) "msg_complete" (=) "=" (false) "false" (;) ";" (expression_statement) "msg->msg_peer = *peer;" (assignment_expression) "msg->msg_peer = *peer" (field_expression) "msg->msg_peer" (identifier) "msg" (->) "->" (field_identifier) "msg_peer" (=) "=" (pointer_expression) "*peer" (*) "*" (identifier) "peer" (;) ";" (expression_statement) "msg->msg_rwbuf = NULL;" (assignment_expression) "msg->msg_rwbuf = NULL" (field_expression) "msg->msg_rwbuf" (identifier) "msg" (->) "->" (field_identifier) "msg_rwbuf" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "msg->msg_rwiov = NULL;" (assignment_expression) "msg->msg_rwiov = NULL" (field_expression) "msg->msg_rwiov" (identifier) "msg" (->) "->" (field_identifier) "msg_rwiov" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "/* acquire the match lock */" (expression_statement) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_LOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (if_statement) "if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }" (if) "if" (parenthesized_expression) "(flags & ORTE_RML_PERSISTENT)" (() "(" (binary_expression) "flags & ORTE_RML_PERSISTENT" (identifier) "flags" (&) "&" (identifier) "ORTE_RML_PERSISTENT" ()) ")" (compound_statement) "{\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n }" ({) "{" (expression_statement) "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);" (call_expression) "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)" (identifier) "opal_list_append" (argument_list) "(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_post" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_post" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_post" (,) "," (cast_expression) "(opal_list_item_t *) msg" (() "(" (type_descriptor) "opal_list_item_t *" (type_identifier) "opal_list_item_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "msg" ()) ")" (;) ";" (while_statement) "while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }" (while) "while" (parenthesized_expression) "(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag)))" (() "(" (binary_expression) "NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))" (null) "NULL" (NULL) "NULL" (!=) "!=" (parenthesized_expression) "(match = mca_oob_tcp_msg_match_recv(peer,tag))" (() "(" (assignment_expression) "match = mca_oob_tcp_msg_match_recv(peer,tag)" (identifier) "match" (=) "=" (call_expression) "mca_oob_tcp_msg_match_recv(peer,tag)" (identifier) "mca_oob_tcp_msg_match_recv" (argument_list) "(peer,tag)" (() "(" (identifier) "peer" (,) "," (identifier) "tag" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n mca_oob_tcp_msg_matched(msg, match);\n }" ({) "{" (expression_statement) "mca_oob_tcp_msg_matched(msg, match);" (call_expression) "mca_oob_tcp_msg_matched(msg, match)" (identifier) "mca_oob_tcp_msg_matched" (argument_list) "(msg, match)" (() "(" (identifier) "msg" (,) "," (identifier) "match" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }" (else) "else" (compound_statement) "{\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }" ({) "{" (comment) "/* check to see if a matching receive is on the list */" (expression_statement) "match = mca_oob_tcp_msg_match_recv(peer, tag);" (assignment_expression) "match = mca_oob_tcp_msg_match_recv(peer, tag)" (identifier) "match" (=) "=" (call_expression) "mca_oob_tcp_msg_match_recv(peer, tag)" (identifier) "mca_oob_tcp_msg_match_recv" (argument_list) "(peer, tag)" (() "(" (identifier) "peer" (,) "," (identifier) "tag" ()) ")" (;) ";" (if_statement) "if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }" (if) "if" (parenthesized_expression) "(NULL != match)" (() "(" (binary_expression) "NULL != match" (null) "NULL" (NULL) "NULL" (!=) "!=" (identifier) "match" ()) ")" (compound_statement) "{\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n }" ({) "{" (expression_statement) "mca_oob_tcp_msg_matched(msg, match);" (call_expression) "mca_oob_tcp_msg_matched(msg, match)" (identifier) "mca_oob_tcp_msg_matched" (argument_list) "(msg, match)" (() "(" (identifier) "msg" (,) "," (identifier) "match" ()) ")" (;) ";" (expression_statement) "MCA_OOB_TCP_MSG_RETURN(msg);" (call_expression) "MCA_OOB_TCP_MSG_RETURN(msg)" (identifier) "MCA_OOB_TCP_MSG_RETURN" (argument_list) "(msg)" (() "(" (identifier) "msg" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }" (else) "else" (compound_statement) "{\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }" ({) "{" (expression_statement) "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);" (call_expression) "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)" (identifier) "opal_list_append" (argument_list) "(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_post" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_post" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_post" (,) "," (cast_expression) "(opal_list_item_t *) msg" (() "(" (type_descriptor) "opal_list_item_t *" (type_identifier) "opal_list_item_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "msg" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_UNLOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/*\n * Cancel non-blocking recv.\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @return OMPI error code (<0) on error or number of bytes actually received.\n */" (function_definition) "int mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)\n{\n int matched = 0;\n opal_list_item_t *item, *next;\n\n /* wait for any previously matched messages to be processed */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif\n\n /* remove any matching posted receives */\n for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;\n}" (primitive_type) "int" (function_declarator) "mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)" (identifier) "mca_oob_tcp_recv_cancel" (parameter_list) "(\n orte_process_name_t* name, \n int tag)" (() "(" (parameter_declaration) "orte_process_name_t* name" (type_identifier) "orte_process_name_t" (pointer_declarator) "* name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "int tag" (primitive_type) "int" (identifier) "tag" ()) ")" (compound_statement) "{\n int matched = 0;\n opal_list_item_t *item, *next;\n\n /* wait for any previously matched messages to be processed */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif\n\n /* remove any matching posted receives */\n for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;\n}" ({) "{" (declaration) "int matched = 0;" (primitive_type) "int" (init_declarator) "matched = 0" (identifier) "matched" (=) "=" (number_literal) "0" (;) ";" (declaration) "opal_list_item_t *item, *next;" (type_identifier) "opal_list_item_t" (pointer_declarator) "*item" (*) "*" (identifier) "item" (,) "," (pointer_declarator) "*next" (*) "*" (identifier) "next" (;) ";" (comment) "/* wait for any previously matched messages to be processed */" (expression_statement) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_LOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (preproc_if) "#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif" (#if) "#if" (identifier) "ORTE_ENABLE_PROGRESS_THREADS" ( ) "\n" (if_statement) "if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }" (if) "if" (parenthesized_expression) "(opal_event_progress_thread() == false)" (() "(" (binary_expression) "opal_event_progress_thread() == false" (call_expression) "opal_event_progress_thread()" (identifier) "opal_event_progress_thread" (argument_list) "()" (() "(" ()) ")" (==) "==" (false) "false" ()) ")" (compound_statement) "{\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }" ({) "{" (while_statement) "while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }" (while) "while" (parenthesized_expression) "(mca_oob_tcp_component.tcp_match_count)" (() "(" (field_expression) "mca_oob_tcp_component.tcp_match_count" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_count" ()) ")" (compound_statement) "{\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }" ({) "{" (expression_statement) "opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);" (call_expression) "opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock)" (identifier) "opal_condition_wait" (argument_list) "(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_cond" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_cond" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_cond" (,) "," (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (}) "}" (}) "}" (#endif) "#endif" (comment) "/* remove any matching posted receives */" (for_statement) "for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }" (for) "for" (() "(" (assignment_expression) "item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post)" (identifier) "item" (=) "=" (call_expression) "opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post)" (identifier) "opal_list_get_first" (argument_list) "(&mca_oob_tcp_component.tcp_msg_post)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_post" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_post" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_post" ()) ")" (;) ";" (binary_expression) "item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post)" (identifier) "item" (!=) "!=" (call_expression) "opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post)" (identifier) "opal_list_get_end" (argument_list) "(&mca_oob_tcp_component.tcp_msg_post)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_post" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_post" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_post" ()) ")" (;) ";" (assignment_expression) "item = next" (identifier) "item" (=) "=" (identifier) "next" ()) ")" (compound_statement) "{\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }" ({) "{" (declaration) "mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;" (type_identifier) "mca_oob_tcp_msg_t" (init_declarator) "* msg = (mca_oob_tcp_msg_t*)item" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (=) "=" (cast_expression) "(mca_oob_tcp_msg_t*)item" (() "(" (type_descriptor) "mca_oob_tcp_msg_t*" (type_identifier) "mca_oob_tcp_msg_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "item" (;) ";" (expression_statement) "next = opal_list_get_next(item);" (assignment_expression) "next = opal_list_get_next(item)" (identifier) "next" (=) "=" (call_expression) "opal_list_get_next(item)" (identifier) "opal_list_get_next" (argument_list) "(item)" (() "(" (identifier) "item" ()) ")" (;) ";" (if_statement) "if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }" (if) "if" (parenthesized_expression) "(OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME))" (() "(" (binary_expression) "OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)" (identifier) "OPAL_EQUAL" (==) "==" (call_expression) "opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)" (field_expression) "opal_dss.compare" (identifier) "opal_dss" (.) "." (field_identifier) "compare" (argument_list) "(name, &msg->msg_peer, ORTE_NAME)" (() "(" (identifier) "name" (,) "," (pointer_expression) "&msg->msg_peer" (&) "&" (field_expression) "msg->msg_peer" (identifier) "msg" (->) "->" (field_identifier) "msg_peer" (,) "," (identifier) "ORTE_NAME" ()) ")" ()) ")" (compound_statement) "{\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }" ({) "{" (if_statement) "if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }" (if) "if" (parenthesized_expression) "(msg->msg_hdr.msg_tag == tag)" (() "(" (binary_expression) "msg->msg_hdr.msg_tag == tag" (field_expression) "msg->msg_hdr.msg_tag" (field_expression) "msg->msg_hdr" (identifier) "msg" (->) "->" (field_identifier) "msg_hdr" (.) "." (field_identifier) "msg_tag" (==) "==" (identifier) "tag" ()) ")" (compound_statement) "{\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }" ({) "{" (expression_statement) "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);" (call_expression) "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super)" (identifier) "opal_list_remove_item" (argument_list) "(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_msg_post" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_msg_post" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_msg_post" (,) "," (pointer_expression) "&msg->super.super" (&) "&" (field_expression) "msg->super.super" (field_expression) "msg->super" (identifier) "msg" (->) "->" (field_identifier) "super" (.) "." (field_identifier) "super" ()) ")" (;) ";" (expression_statement) "MCA_OOB_TCP_MSG_RETURN(msg);" (call_expression) "MCA_OOB_TCP_MSG_RETURN(msg)" (identifier) "MCA_OOB_TCP_MSG_RETURN" (argument_list) "(msg)" (() "(" (identifier) "msg" ()) ")" (;) ";" (expression_statement) "matched++;" (update_expression) "matched++" (identifier) "matched" (++) "++" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);" (call_expression) "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)" (identifier) "OPAL_THREAD_UNLOCK" (argument_list) "(&mca_oob_tcp_component.tcp_match_lock)" (() "(" (pointer_expression) "&mca_oob_tcp_component.tcp_match_lock" (&) "&" (field_expression) "mca_oob_tcp_component.tcp_match_lock" (identifier) "mca_oob_tcp_component" (.) "." (field_identifier) "tcp_match_lock" ()) ")" (;) ";" (return_statement) "return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;" (return) "return" (conditional_expression) "(matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND" (parenthesized_expression) "(matched > 0)" (() "(" (binary_expression) "matched > 0" (identifier) "matched" (>) ">" (number_literal) "0" ()) ")" (?) "?" (identifier) "ORTE_SUCCESS" (:) ":" (identifier) "ORTE_ERR_NOT_FOUND" (;) ";" (}) "}"
1,179
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 36.06, "nodes": 705, "errors": 0, "source_hash": "2d8f2abe457c513835932a67ff92402d9d89d3ecced9c05cab6b64fa242f7cf0", "categorized_nodes": 549}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"orte_config.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"orte_config.h\"", "parent": 0, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 24}}, {"id": 3, "type": "preproc_include", "text": "#include \"orte/types.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"orte/types.h\"", "parent": 3, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"orte/runtime/orte_globals.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": "\"orte/runtime/orte_globals.h\"", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 38}}, {"id": 9, "type": "preproc_include", "text": "#include \"orte/mca/oob/tcp/oob_tcp.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"orte/mca/oob/tcp/oob_tcp.h\"", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 37}}, {"id": 12, "type": "function_definition", "text": "static void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)\n{\n int i,rc;\n if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }\n\n /* otherwise remove the match */\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);\n\n /* invoke callback */\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n\n /* return match to free list */\n MCA_OOB_TCP_MSG_RETURN(match);\n}", "parent": null, "children": [13, 14], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 14, "type": "function_declarator", "text": "mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)", "parent": 12, "children": [15, 16], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 85}}, {"id": 15, "type": "identifier", "text": "mca_oob_tcp_msg_matched", "parent": 14, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 35}}, {"id": 16, "type": "parameter_list", "text": "(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)", "parent": 14, "children": [17, 22], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 85}}, {"id": 17, "type": "parameter_declaration", "text": "mca_oob_tcp_msg_t* msg", "parent": 16, "children": [18, 19], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 58}}, {"id": 18, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 17, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 53}}, {"id": 19, "type": "pointer_declarator", "text": "* msg", "parent": 17, "children": [20, 21], "start_point": {"row": 33, "column": 53}, "end_point": {"row": 33, "column": 58}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 33, "column": 53}, "end_point": {"row": 33, "column": 54}}, {"id": 21, "type": "identifier", "text": "msg", "parent": 19, "children": [], "start_point": {"row": 33, "column": 55}, "end_point": {"row": 33, "column": 58}}, {"id": 22, "type": "parameter_declaration", "text": "mca_oob_tcp_msg_t* match", "parent": 16, "children": [23, 24], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 33, "column": 84}}, {"id": 23, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 22, "children": [], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 33, "column": 77}}, {"id": 24, "type": "pointer_declarator", "text": "* match", "parent": 22, "children": [25, 26], "start_point": {"row": 33, "column": 77}, "end_point": {"row": 33, "column": 84}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 33, "column": 77}, "end_point": {"row": 33, "column": 78}}, {"id": 26, "type": "identifier", "text": "match", "parent": 24, "children": [], "start_point": {"row": 33, "column": 79}, "end_point": {"row": 33, "column": 84}}, {"id": 27, "type": "declaration", "text": "int i,rc;", "parent": 12, "children": [28, 29, 30], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 13}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 29, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 30, "type": "identifier", "text": "rc", "parent": 27, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 12}}, {"id": 31, "type": "if_statement", "text": "if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }", "parent": 12, "children": [32, 45], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 32, "type": "parenthesized_expression", "text": "(match->msg_rc < 0)", "parent": 31, "children": [33], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 25}}, {"id": 33, "type": "binary_expression", "text": "match->msg_rc < 0", "parent": 32, "children": [34, 37, 38], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 24}}, {"id": 34, "type": "field_expression", "text": "match->msg_rc", "parent": 33, "children": [35, 36], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 20}}, {"id": 35, "type": "identifier", "text": "match", "parent": 34, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 12}}, {"id": 36, "type": "field_identifier", "text": "msg_rc", "parent": 34, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 20}}, {"id": 37, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 39, "type": "assignment_expression", "text": "rc = match->msg_rc", "parent": 31, "children": [40, 41, 42], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 26}}, {"id": 40, "type": "identifier", "text": "rc", "parent": 39, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 10}}, {"id": 41, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 42, "type": "field_expression", "text": "match->msg_rc", "parent": 39, "children": [43, 44], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 26}}, {"id": 43, "type": "identifier", "text": "match", "parent": 42, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 18}}, {"id": 44, "type": "field_identifier", "text": "msg_rc", "parent": 42, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 26}}, {"id": 45, "type": "else_clause", "text": "else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }", "parent": 31, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 60, "column": 5}}, {"id": 46, "type": "if_statement", "text": "if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;", "parent": 45, "children": [47], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 80}}, {"id": 47, "type": "parenthesized_expression", "text": "(msg->msg_flags & ORTE_RML_ALLOC)", "parent": 46, "children": [48], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 44}}, {"id": 48, "type": "binary_expression", "text": "msg->msg_flags & ORTE_RML_ALLOC", "parent": 47, "children": [49, 52], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 43}}, {"id": 49, "type": "field_expression", "text": "msg->msg_flags", "parent": 48, "children": [50, 51], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 26}}, {"id": 50, "type": "identifier", "text": "msg", "parent": 49, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 51, "type": "field_identifier", "text": "msg_flags", "parent": 49, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 26}}, {"id": 52, "type": "identifier", "text": "ORTE_RML_ALLOC", "parent": 48, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 43}}, {"id": 53, "type": "assignment_expression", "text": "match->msg_flags |= ORTE_RML_ALLOC", "parent": 46, "children": [54, 57, 58], "start_point": {"row": 41, "column": 45}, "end_point": {"row": 41, "column": 79}}, {"id": 54, "type": "field_expression", "text": "match->msg_flags", "parent": 53, "children": [55, 56], "start_point": {"row": 41, "column": 45}, "end_point": {"row": 41, "column": 61}}, {"id": 55, "type": "identifier", "text": "match", "parent": 54, "children": [], "start_point": {"row": 41, "column": 45}, "end_point": {"row": 41, "column": 50}}, {"id": 56, "type": "field_identifier", "text": "msg_flags", "parent": 54, "children": [], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 61}}, {"id": 57, "type": "|=", "text": "|=", "parent": 53, "children": [], "start_point": {"row": 41, "column": 62}, "end_point": {"row": 41, "column": 64}}, {"id": 58, "type": "identifier", "text": "ORTE_RML_ALLOC", "parent": 53, "children": [], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 79}}, {"id": 59, "type": "assignment_expression", "text": "rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt)", "parent": 45, "children": [60, 61, 62], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 70}}, {"id": 60, "type": "identifier", "text": "rc", "parent": 59, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 10}}, {"id": 61, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 12}}, {"id": 62, "type": "call_expression", "text": "mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt)", "parent": 59, "children": [63, 64], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 70}}, {"id": 63, "type": "identifier", "text": "mca_oob_tcp_msg_copy", "parent": 62, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 33}}, {"id": 64, "type": "argument_list", "text": "(match, msg->msg_uiov, msg->msg_ucnt)", "parent": 62, "children": [65, 66, 69], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 70}}, {"id": 65, "type": "identifier", "text": "match", "parent": 64, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 39}}, {"id": 66, "type": "field_expression", "text": "msg->msg_uiov", "parent": 64, "children": [67, 68], "start_point": {"row": 43, "column": 41}, "end_point": {"row": 43, "column": 54}}, {"id": 67, "type": "identifier", "text": "msg", "parent": 66, "children": [], "start_point": {"row": 43, "column": 41}, "end_point": {"row": 43, "column": 44}}, {"id": 68, "type": "field_identifier", "text": "msg_uiov", "parent": 66, "children": [], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 54}}, {"id": 69, "type": "field_expression", "text": "msg->msg_ucnt", "parent": 64, "children": [70, 71], "start_point": {"row": 43, "column": 56}, "end_point": {"row": 43, "column": 69}}, {"id": 70, "type": "identifier", "text": "msg", "parent": 69, "children": [], "start_point": {"row": 43, "column": 56}, "end_point": {"row": 43, "column": 59}}, {"id": 71, "type": "field_identifier", "text": "msg_ucnt", "parent": 69, "children": [], "start_point": {"row": 43, "column": 61}, "end_point": {"row": 43, "column": 69}}, {"id": 72, "type": "if_statement", "text": "if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }", "parent": 45, "children": [73], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 73, "type": "parenthesized_expression", "text": "(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags)", "parent": 72, "children": [74], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 54}}, {"id": 74, "type": "binary_expression", "text": "rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags", "parent": 73, "children": [75, 79, 80], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 53}}, {"id": 75, "type": "binary_expression", "text": "rc >= 0", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 18}}, {"id": 76, "type": "identifier", "text": "rc", "parent": 75, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 13}}, {"id": 77, "type": ">=", "text": ">=", "parent": 75, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 16}}, {"id": 78, "type": "number_literal", "text": "0", "parent": 75, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 79, "type": "&&", "text": "&&", "parent": 74, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 21}}, {"id": 80, "type": "binary_expression", "text": "ORTE_RML_TRUNC & msg->msg_flags", "parent": 74, "children": [81, 82], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 53}}, {"id": 81, "type": "identifier", "text": "ORTE_RML_TRUNC", "parent": 80, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 36}}, {"id": 82, "type": "field_expression", "text": "msg->msg_flags", "parent": 80, "children": [83, 84], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 53}}, {"id": 83, "type": "identifier", "text": "msg", "parent": 82, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 42}}, {"id": 84, "type": "field_identifier", "text": "msg_flags", "parent": 82, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 53}}, {"id": 85, "type": "assignment_expression", "text": "rc = 0", "parent": 72, "children": [86, 87, 88], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 18}}, {"id": 86, "type": "identifier", "text": "rc", "parent": 85, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 14}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 16}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 89, "type": "for_statement", "text": "for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;", "parent": 72, "children": [90, 94, 103], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 47, "column": 50}}, {"id": 90, "type": "assignment_expression", "text": "i=1", "parent": 89, "children": [91, 92, 93], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 19}}, {"id": 91, "type": "identifier", "text": "i", "parent": 90, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 17}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 18}}, {"id": 93, "type": "number_literal", "text": "1", "parent": 90, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 19}}, {"id": 94, "type": "binary_expression", "text": "i<match->msg_rwcnt+1", "parent": 89, "children": [95, 96, 97], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 41}}, {"id": 95, "type": "identifier", "text": "i", "parent": 94, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 22}}, {"id": 96, "type": "<", "text": "<", "parent": 94, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 23}}, {"id": 97, "type": "binary_expression", "text": "match->msg_rwcnt+1", "parent": 94, "children": [98, 101, 102], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 41}}, {"id": 98, "type": "field_expression", "text": "match->msg_rwcnt", "parent": 97, "children": [99, 100], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 39}}, {"id": 99, "type": "identifier", "text": "match", "parent": 98, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 28}}, {"id": 100, "type": "field_identifier", "text": "msg_rwcnt", "parent": 98, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 39}}, {"id": 101, "type": "+", "text": "+", "parent": 97, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 40}}, {"id": 102, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 46, "column": 40}, "end_point": {"row": 46, "column": 41}}, {"id": 103, "type": "update_expression", "text": "i++", "parent": 89, "children": [104, 105], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 46}}, {"id": 104, "type": "identifier", "text": "i", "parent": 103, "children": [], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 44}}, {"id": 105, "type": "++", "text": "++", "parent": 103, "children": [], "start_point": {"row": 46, "column": 44}, "end_point": {"row": 46, "column": 46}}, {"id": 106, "type": "assignment_expression", "text": "rc += match->msg_rwiov[i].iov_len", "parent": 89, "children": [107, 108, 109], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 49}}, {"id": 107, "type": "identifier", "text": "rc", "parent": 106, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 18}}, {"id": 108, "type": "+=", "text": "+=", "parent": 106, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 21}}, {"id": 109, "type": "field_expression", "text": "match->msg_rwiov[i].iov_len", "parent": 106, "children": [110, 115], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 49}}, {"id": 110, "type": "subscript_expression", "text": "match->msg_rwiov[i]", "parent": 109, "children": [111, 114], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 41}}, {"id": 111, "type": "field_expression", "text": "match->msg_rwiov", "parent": 110, "children": [112, 113], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 38}}, {"id": 112, "type": "identifier", "text": "match", "parent": 111, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 27}}, {"id": 113, "type": "field_identifier", "text": "msg_rwiov", "parent": 111, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 38}}, {"id": 114, "type": "identifier", "text": "i", "parent": 110, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 115, "type": "field_identifier", "text": "iov_len", "parent": 109, "children": [], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 49}}, {"id": 116, "type": "if_statement", "text": "if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }", "parent": 45, "children": [117], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 117, "type": "parenthesized_expression", "text": "(ORTE_RML_PEEK & msg->msg_flags)", "parent": 116, "children": [118], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 42}}, {"id": 118, "type": "binary_expression", "text": "ORTE_RML_PEEK & msg->msg_flags", "parent": 117, "children": [119, 120], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 41}}, {"id": 119, "type": "identifier", "text": "ORTE_RML_PEEK", "parent": 118, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 24}}, {"id": 120, "type": "field_expression", "text": "msg->msg_flags", "parent": 118, "children": [121, 122], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 41}}, {"id": 121, "type": "identifier", "text": "msg", "parent": 120, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 30}}, {"id": 122, "type": "field_identifier", "text": "msg_flags", "parent": 120, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 41}}, {"id": 123, "type": "call_expression", "text": "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 116, "children": [124, 125], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 69}}, {"id": 124, "type": "identifier", "text": "OPAL_THREAD_UNLOCK", "parent": 123, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 30}}, {"id": 125, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 123, "children": [126], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 69}}, {"id": 126, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 125, "children": [127], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 68}}, {"id": 127, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 126, "children": [128, 129], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 68}}, {"id": 128, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 127, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 53}}, {"id": 129, "type": "field_identifier", "text": "tcp_match_lock", "parent": 127, "children": [], "start_point": {"row": 50, "column": 54}, "end_point": {"row": 50, "column": 68}}, {"id": 130, "type": "call_expression", "text": "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)", "parent": 116, "children": [131, 134], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 56, "column": 32}}, {"id": 131, "type": "field_expression", "text": "msg->msg_cbfunc", "parent": 130, "children": [132, 133], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 27}}, {"id": 132, "type": "identifier", "text": "msg", "parent": 131, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 15}}, {"id": 133, "type": "field_identifier", "text": "msg_cbfunc", "parent": 131, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 27}}, {"id": 134, "type": "argument_list", "text": "(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)", "parent": 130, "children": [135, 136, 140, 143, 146, 151], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 56, "column": 32}}, {"id": 135, "type": "identifier", "text": "rc", "parent": 134, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 30}}, {"id": 136, "type": "pointer_expression", "text": "&match->msg_peer", "parent": 134, "children": [137], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 32}}, {"id": 137, "type": "field_expression", "text": "match->msg_peer", "parent": 136, "children": [138, 139], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 32}}, {"id": 138, "type": "identifier", "text": "match", "parent": 137, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 22}}, {"id": 139, "type": "field_identifier", "text": "msg_peer", "parent": 137, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 32}}, {"id": 140, "type": "field_expression", "text": "msg->msg_uiov", "parent": 134, "children": [141, 142], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 29}}, {"id": 141, "type": "identifier", "text": "msg", "parent": 140, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 19}}, {"id": 142, "type": "field_identifier", "text": "msg_uiov", "parent": 140, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 29}}, {"id": 143, "type": "field_expression", "text": "msg->msg_ucnt", "parent": 134, "children": [144, 145], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 29}}, {"id": 144, "type": "identifier", "text": "msg", "parent": 143, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 19}}, {"id": 145, "type": "field_identifier", "text": "msg_ucnt", "parent": 143, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 29}}, {"id": 146, "type": "field_expression", "text": "match->msg_hdr.msg_tag", "parent": 134, "children": [147, 150], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 38}}, {"id": 147, "type": "field_expression", "text": "match->msg_hdr", "parent": 146, "children": [148, 149], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 30}}, {"id": 148, "type": "identifier", "text": "match", "parent": 147, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 21}}, {"id": 149, "type": "field_identifier", "text": "msg_hdr", "parent": 147, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 30}}, {"id": 150, "type": "field_identifier", "text": "msg_tag", "parent": 146, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 38}}, {"id": 151, "type": "field_expression", "text": "msg->msg_cbdata", "parent": 134, "children": [152, 153], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 31}}, {"id": 152, "type": "identifier", "text": "msg", "parent": 151, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 19}}, {"id": 153, "type": "field_identifier", "text": "msg_cbdata", "parent": 151, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 31}}, {"id": 154, "type": "call_expression", "text": "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 116, "children": [155, 156], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 67}}, {"id": 155, "type": "identifier", "text": "OPAL_THREAD_LOCK", "parent": 154, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 28}}, {"id": 156, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 154, "children": [157], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 67}}, {"id": 157, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 156, "children": [158], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 66}}, {"id": 158, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 157, "children": [159, 160], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 66}}, {"id": 159, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 158, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 51}}, {"id": 160, "type": "field_identifier", "text": "tcp_match_lock", "parent": 158, "children": [], "start_point": {"row": 57, "column": 52}, "end_point": {"row": 57, "column": 66}}, {"id": 161, "type": "return_statement", "text": "return;", "parent": 116, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 19}}, {"id": 162, "type": "call_expression", "text": "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match)", "parent": 12, "children": [163, 164], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 90}}, {"id": 163, "type": "identifier", "text": "opal_list_remove_item", "parent": 162, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 25}}, {"id": 164, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match)", "parent": 162, "children": [165, 169], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 90}}, {"id": 165, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_recv", "parent": 164, "children": [166], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 61}}, {"id": 166, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_recv", "parent": 165, "children": [167, 168], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 61}}, {"id": 167, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 166, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 48}}, {"id": 168, "type": "field_identifier", "text": "tcp_msg_recv", "parent": 166, "children": [], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 61}}, {"id": 169, "type": "cast_expression", "text": "(opal_list_item_t *) match", "parent": 164, "children": [170, 174], "start_point": {"row": 63, "column": 63}, "end_point": {"row": 63, "column": 89}}, {"id": 170, "type": "type_descriptor", "text": "opal_list_item_t *", "parent": 169, "children": [171, 172], "start_point": {"row": 63, "column": 64}, "end_point": {"row": 63, "column": 82}}, {"id": 171, "type": "type_identifier", "text": "opal_list_item_t", "parent": 170, "children": [], "start_point": {"row": 63, "column": 64}, "end_point": {"row": 63, "column": 80}}, {"id": 172, "type": "abstract_pointer_declarator", "text": "*", "parent": 170, "children": [173], "start_point": {"row": 63, "column": 81}, "end_point": {"row": 63, "column": 82}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 63, "column": 81}, "end_point": {"row": 63, "column": 82}}, {"id": 174, "type": "identifier", "text": "match", "parent": 169, "children": [], "start_point": {"row": 63, "column": 84}, "end_point": {"row": 63, "column": 89}}, {"id": 175, "type": "call_expression", "text": "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 12, "children": [176, 177], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 61}}, {"id": 176, "type": "identifier", "text": "OPAL_THREAD_UNLOCK", "parent": 175, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 22}}, {"id": 177, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 175, "children": [178], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 61}}, {"id": 178, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 177, "children": [179], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 60}}, {"id": 179, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 178, "children": [180, 181], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 60}}, {"id": 180, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 179, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 45}}, {"id": 181, "type": "field_identifier", "text": "tcp_match_lock", "parent": 179, "children": [], "start_point": {"row": 66, "column": 46}, "end_point": {"row": 66, "column": 60}}, {"id": 182, "type": "call_expression", "text": "msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)", "parent": 12, "children": [183, 186], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 72, "column": 24}}, {"id": 183, "type": "field_expression", "text": "msg->msg_cbfunc", "parent": 182, "children": [184, 185], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 19}}, {"id": 184, "type": "identifier", "text": "msg", "parent": 183, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 7}}, {"id": 185, "type": "field_identifier", "text": "msg_cbfunc", "parent": 183, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 19}}, {"id": 186, "type": "argument_list", "text": "(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata)", "parent": 182, "children": [187, 188, 192, 195, 198, 203], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 72, "column": 24}}, {"id": 187, "type": "identifier", "text": "rc", "parent": 186, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 22}}, {"id": 188, "type": "pointer_expression", "text": "&match->msg_peer", "parent": 186, "children": [189], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 24}}, {"id": 189, "type": "field_expression", "text": "match->msg_peer", "parent": 188, "children": [190, 191], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 24}}, {"id": 190, "type": "identifier", "text": "match", "parent": 189, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 14}}, {"id": 191, "type": "field_identifier", "text": "msg_peer", "parent": 189, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 24}}, {"id": 192, "type": "field_expression", "text": "msg->msg_uiov", "parent": 186, "children": [193, 194], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 21}}, {"id": 193, "type": "identifier", "text": "msg", "parent": 192, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 11}}, {"id": 194, "type": "field_identifier", "text": "msg_uiov", "parent": 192, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 21}}, {"id": 195, "type": "field_expression", "text": "msg->msg_ucnt", "parent": 186, "children": [196, 197], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 21}}, {"id": 196, "type": "identifier", "text": "msg", "parent": 195, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 11}}, {"id": 197, "type": "field_identifier", "text": "msg_ucnt", "parent": 195, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 21}}, {"id": 198, "type": "field_expression", "text": "match->msg_hdr.msg_tag", "parent": 186, "children": [199, 202], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 30}}, {"id": 199, "type": "field_expression", "text": "match->msg_hdr", "parent": 198, "children": [200, 201], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 22}}, {"id": 200, "type": "identifier", "text": "match", "parent": 199, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 13}}, {"id": 201, "type": "field_identifier", "text": "msg_hdr", "parent": 199, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 22}}, {"id": 202, "type": "field_identifier", "text": "msg_tag", "parent": 198, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 30}}, {"id": 203, "type": "field_expression", "text": "msg->msg_cbdata", "parent": 186, "children": [204, 205], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 23}}, {"id": 204, "type": "identifier", "text": "msg", "parent": 203, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 11}}, {"id": 205, "type": "field_identifier", "text": "msg_cbdata", "parent": 203, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 23}}, {"id": 206, "type": "call_expression", "text": "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 12, "children": [207, 208], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 59}}, {"id": 207, "type": "identifier", "text": "OPAL_THREAD_LOCK", "parent": 206, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 20}}, {"id": 208, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 206, "children": [209], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 59}}, {"id": 209, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 208, "children": [210], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 58}}, {"id": 210, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 209, "children": [211, 212], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 58}}, {"id": 211, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 210, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 43}}, {"id": 212, "type": "field_identifier", "text": "tcp_match_lock", "parent": 210, "children": [], "start_point": {"row": 73, "column": 44}, "end_point": {"row": 73, "column": 58}}, {"id": 213, "type": "call_expression", "text": "MCA_OOB_TCP_MSG_RETURN(match)", "parent": 12, "children": [214, 215], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 33}}, {"id": 214, "type": "identifier", "text": "MCA_OOB_TCP_MSG_RETURN", "parent": 213, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 26}}, {"id": 215, "type": "argument_list", "text": "(match)", "parent": 213, "children": [216], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 33}}, {"id": 216, "type": "identifier", "text": "match", "parent": 215, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 32}}, {"id": 217, "type": "function_definition", "text": "int mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)\n{\n mca_oob_tcp_msg_t *msg;\n mca_oob_tcp_msg_t *match;\n int i, rc, size = 0;\n\n /* validate params */\n if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }\n\n /* allocate/initialize the posted receive */\n MCA_OOB_TCP_MSG_ALLOC(msg, rc);\n if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }\n\n /* determine overall size of user supplied buffer */\n for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }\n\n /* fill in the header */\n msg->msg_hdr.msg_origin = *peer;\n msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;\n msg->msg_hdr.msg_dst = *peer;\n msg->msg_hdr.msg_size = size;\n msg->msg_hdr.msg_tag = tag;\n msg->msg_type = MCA_OOB_TCP_POSTED;\n msg->msg_rc = 0;\n msg->msg_flags = flags;\n msg->msg_uiov = iov;\n msg->msg_ucnt = count;\n msg->msg_cbfunc = cbfunc;\n msg->msg_cbdata = cbdata;\n msg->msg_complete = false;\n msg->msg_peer = *peer;\n msg->msg_rwbuf = NULL;\n msg->msg_rwiov = NULL;\n\n /* acquire the match lock */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return 0;\n}", "parent": null, "children": [218, 219], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 161, "column": 1}}, {"id": 218, "type": "primitive_type", "text": "int", "parent": 217, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 3}}, {"id": 219, "type": "function_declarator", "text": "mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)", "parent": 217, "children": [220, 221], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 98, "column": 17}}, {"id": 220, "type": "identifier", "text": "mca_oob_tcp_recv_nb", "parent": 219, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 23}}, {"id": 221, "type": "parameter_list", "text": "(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)", "parent": 219, "children": [222, 227, 234, 237, 240, 243, 246], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 98, "column": 17}}, {"id": 222, "type": "parameter_declaration", "text": "orte_process_name_t* peer", "parent": 221, "children": [223, 224], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 29}}, {"id": 223, "type": "type_identifier", "text": "orte_process_name_t", "parent": 222, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 23}}, {"id": 224, "type": "pointer_declarator", "text": "* peer", "parent": 222, "children": [225, 226], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 29}}, {"id": 225, "type": "*", "text": "*", "parent": 224, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 24}}, {"id": 226, "type": "identifier", "text": "peer", "parent": 224, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 29}}, {"id": 227, "type": "parameter_declaration", "text": "struct iovec* iov", "parent": 221, "children": [228, 231], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 21}}, {"id": 228, "type": "struct_specifier", "text": "struct iovec", "parent": 227, "children": [229, 230], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 16}}, {"id": 229, "type": "struct", "text": "struct", "parent": 228, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 10}}, {"id": 230, "type": "type_identifier", "text": "iovec", "parent": 228, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 16}}, {"id": 231, "type": "pointer_declarator", "text": "* iov", "parent": 227, "children": [232, 233], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 21}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 17}}, {"id": 233, "type": "identifier", "text": "iov", "parent": 231, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 21}}, {"id": 234, "type": "parameter_declaration", "text": "int count", "parent": 221, "children": [235, 236], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 13}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 234, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 7}}, {"id": 236, "type": "identifier", "text": "count", "parent": 234, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 13}}, {"id": 237, "type": "parameter_declaration", "text": "int tag", "parent": 221, "children": [238, 239], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 11}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 7}}, {"id": 239, "type": "identifier", "text": "tag", "parent": 237, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 11}}, {"id": 240, "type": "parameter_declaration", "text": "int flags", "parent": 221, "children": [241, 242], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 13}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 7}}, {"id": 242, "type": "identifier", "text": "flags", "parent": 240, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 13}}, {"id": 243, "type": "parameter_declaration", "text": "orte_rml_callback_fn_t cbfunc", "parent": 221, "children": [244, 245], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 33}}, {"id": 244, "type": "type_identifier", "text": "orte_rml_callback_fn_t", "parent": 243, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 26}}, {"id": 245, "type": "identifier", "text": "cbfunc", "parent": 243, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 33}}, {"id": 246, "type": "parameter_declaration", "text": "void* cbdata", "parent": 221, "children": [247, 248], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 16}}, {"id": 247, "type": "primitive_type", "text": "void", "parent": 246, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 8}}, {"id": 248, "type": "pointer_declarator", "text": "* cbdata", "parent": 246, "children": [249, 250], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 16}}, {"id": 249, "type": "*", "text": "*", "parent": 248, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 9}}, {"id": 250, "type": "identifier", "text": "cbdata", "parent": 248, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 16}}, {"id": 251, "type": "declaration", "text": "mca_oob_tcp_msg_t *msg;", "parent": 217, "children": [252, 253], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 27}}, {"id": 252, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 251, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 21}}, {"id": 253, "type": "pointer_declarator", "text": "*msg", "parent": 251, "children": [254, 255], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 26}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 23}}, {"id": 255, "type": "identifier", "text": "msg", "parent": 253, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 26}}, {"id": 256, "type": "declaration", "text": "mca_oob_tcp_msg_t *match;", "parent": 217, "children": [257, 258], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 29}}, {"id": 257, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 256, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 21}}, {"id": 258, "type": "pointer_declarator", "text": "*match", "parent": 256, "children": [259, 260], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 28}}, {"id": 259, "type": "*", "text": "*", "parent": 258, "children": [], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 23}}, {"id": 260, "type": "identifier", "text": "match", "parent": 258, "children": [], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 28}}, {"id": 261, "type": "declaration", "text": "int i, rc, size = 0;", "parent": 217, "children": [262, 263, 264, 265], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 24}}, {"id": 262, "type": "primitive_type", "text": "int", "parent": 261, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 7}}, {"id": 263, "type": "identifier", "text": "i", "parent": 261, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 264, "type": "identifier", "text": "rc", "parent": 261, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 13}}, {"id": 265, "type": "init_declarator", "text": "size = 0", "parent": 261, "children": [266, 267, 268], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 23}}, {"id": 266, "type": "identifier", "text": "size", "parent": 265, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 19}}, {"id": 267, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 268, "type": "number_literal", "text": "0", "parent": 265, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 23}}, {"id": 269, "type": "if_statement", "text": "if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }", "parent": 217, "children": [270], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 107, "column": 5}}, {"id": 270, "type": "parenthesized_expression", "text": "(NULL == iov || 0 == count)", "parent": 269, "children": [271], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 33}}, {"id": 271, "type": "binary_expression", "text": "NULL == iov || 0 == count", "parent": 270, "children": [272, 277, 278], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 32}}, {"id": 272, "type": "binary_expression", "text": "NULL == iov", "parent": 271, "children": [273, 275, 276], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 18}}, {"id": 273, "type": "null", "text": "NULL", "parent": 272, "children": [274], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 11}}, {"id": 274, "type": "NULL", "text": "NULL", "parent": 273, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 11}}, {"id": 275, "type": "==", "text": "==", "parent": 272, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 14}}, {"id": 276, "type": "identifier", "text": "iov", "parent": 272, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 18}}, {"id": 277, "type": "||", "text": "||", "parent": 271, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 21}}, {"id": 278, "type": "binary_expression", "text": "0 == count", "parent": 271, "children": [279, 280, 281], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 32}}, {"id": 279, "type": "number_literal", "text": "0", "parent": 278, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 23}}, {"id": 280, "type": "==", "text": "==", "parent": 278, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 26}}, {"id": 281, "type": "identifier", "text": "count", "parent": 278, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 32}}, {"id": 282, "type": "return_statement", "text": "return ORTE_ERR_BAD_PARAM;", "parent": 269, "children": [283], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 34}}, {"id": 283, "type": "identifier", "text": "ORTE_ERR_BAD_PARAM", "parent": 282, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 33}}, {"id": 284, "type": "call_expression", "text": "MCA_OOB_TCP_MSG_ALLOC(msg, rc)", "parent": 217, "children": [285, 286], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 34}}, {"id": 285, "type": "identifier", "text": "MCA_OOB_TCP_MSG_ALLOC", "parent": 284, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 25}}, {"id": 286, "type": "argument_list", "text": "(msg, rc)", "parent": 284, "children": [287, 288], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 34}}, {"id": 287, "type": "identifier", "text": "msg", "parent": 286, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 29}}, {"id": 288, "type": "identifier", "text": "rc", "parent": 286, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 33}}, {"id": 289, "type": "if_statement", "text": "if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }", "parent": 217, "children": [290], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 114, "column": 5}}, {"id": 290, "type": "parenthesized_expression", "text": "(NULL == msg)", "parent": 289, "children": [291], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 19}}, {"id": 291, "type": "binary_expression", "text": "NULL == msg", "parent": 290, "children": [292, 294, 295], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 18}}, {"id": 292, "type": "null", "text": "NULL", "parent": 291, "children": [293], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 11}}, {"id": 293, "type": "NULL", "text": "NULL", "parent": 292, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 11}}, {"id": 294, "type": "==", "text": "==", "parent": 291, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 14}}, {"id": 295, "type": "identifier", "text": "msg", "parent": 291, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 18}}, {"id": 296, "type": "call_expression", "text": "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 289, "children": [297, 298], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 65}}, {"id": 297, "type": "identifier", "text": "OPAL_THREAD_UNLOCK", "parent": 296, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 26}}, {"id": 298, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 296, "children": [299], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 65}}, {"id": 299, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 298, "children": [300], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 64}}, {"id": 300, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 299, "children": [301, 302], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 64}}, {"id": 301, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 300, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 49}}, {"id": 302, "type": "field_identifier", "text": "tcp_match_lock", "parent": 300, "children": [], "start_point": {"row": 112, "column": 50}, "end_point": {"row": 112, "column": 64}}, {"id": 303, "type": "return_statement", "text": "return rc;", "parent": 289, "children": [304], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 18}}, {"id": 304, "type": "identifier", "text": "rc", "parent": 303, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 17}}, {"id": 305, "type": "for_statement", "text": "for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }", "parent": 217, "children": [306, 310, 314], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 306, "type": "assignment_expression", "text": "i = 0", "parent": 305, "children": [307, 308, 309], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 13}}, {"id": 307, "type": "identifier", "text": "i", "parent": 306, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 9}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 11}}, {"id": 309, "type": "number_literal", "text": "0", "parent": 306, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 13}}, {"id": 310, "type": "binary_expression", "text": "i < count", "parent": 305, "children": [311, 312, 313], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 24}}, {"id": 311, "type": "identifier", "text": "i", "parent": 310, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 312, "type": "<", "text": "<", "parent": 310, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 18}}, {"id": 313, "type": "identifier", "text": "count", "parent": 310, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 24}}, {"id": 314, "type": "update_expression", "text": "i++", "parent": 305, "children": [315, 316], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 29}}, {"id": 315, "type": "identifier", "text": "i", "parent": 314, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 27}}, {"id": 316, "type": "++", "text": "++", "parent": 314, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 29}}, {"id": 317, "type": "assignment_expression", "text": "size += iov[i].iov_len", "parent": 305, "children": [318, 319, 320], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 30}}, {"id": 318, "type": "identifier", "text": "size", "parent": 317, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 12}}, {"id": 319, "type": "+=", "text": "+=", "parent": 317, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 15}}, {"id": 320, "type": "field_expression", "text": "iov[i].iov_len", "parent": 317, "children": [321, 324], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 30}}, {"id": 321, "type": "subscript_expression", "text": "iov[i]", "parent": 320, "children": [322, 323], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 22}}, {"id": 322, "type": "identifier", "text": "iov", "parent": 321, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 19}}, {"id": 323, "type": "identifier", "text": "i", "parent": 321, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 21}}, {"id": 324, "type": "field_identifier", "text": "iov_len", "parent": 320, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 30}}, {"id": 325, "type": "assignment_expression", "text": "msg->msg_hdr.msg_origin = *peer", "parent": 217, "children": [326, 331, 332], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 35}}, {"id": 326, "type": "field_expression", "text": "msg->msg_hdr.msg_origin", "parent": 325, "children": [327, 330], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 27}}, {"id": 327, "type": "field_expression", "text": "msg->msg_hdr", "parent": 326, "children": [328, 329], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 16}}, {"id": 328, "type": "identifier", "text": "msg", "parent": 327, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 7}}, {"id": 329, "type": "field_identifier", "text": "msg_hdr", "parent": 327, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 16}}, {"id": 330, "type": "field_identifier", "text": "msg_origin", "parent": 326, "children": [], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 27}}, {"id": 331, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 29}}, {"id": 332, "type": "pointer_expression", "text": "*peer", "parent": 325, "children": [333, 334], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 35}}, {"id": 333, "type": "*", "text": "*", "parent": 332, "children": [], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 31}}, {"id": 334, "type": "identifier", "text": "peer", "parent": 332, "children": [], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 35}}, {"id": 335, "type": "assignment_expression", "text": "msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME", "parent": 217, "children": [336, 341, 342], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 45}}, {"id": 336, "type": "field_expression", "text": "msg->msg_hdr.msg_src", "parent": 335, "children": [337, 340], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 24}}, {"id": 337, "type": "field_expression", "text": "msg->msg_hdr", "parent": 336, "children": [338, 339], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 16}}, {"id": 338, "type": "identifier", "text": "msg", "parent": 337, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 7}}, {"id": 339, "type": "field_identifier", "text": "msg_hdr", "parent": 337, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 16}}, {"id": 340, "type": "field_identifier", "text": "msg_src", "parent": 336, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 24}}, {"id": 341, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 26}}, {"id": 342, "type": "pointer_expression", "text": "*ORTE_PROC_MY_NAME", "parent": 335, "children": [343, 344], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 45}}, {"id": 343, "type": "*", "text": "*", "parent": 342, "children": [], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 28}}, {"id": 344, "type": "identifier", "text": "ORTE_PROC_MY_NAME", "parent": 342, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 45}}, {"id": 345, "type": "assignment_expression", "text": "msg->msg_hdr.msg_dst = *peer", "parent": 217, "children": [346, 351, 352], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 32}}, {"id": 346, "type": "field_expression", "text": "msg->msg_hdr.msg_dst", "parent": 345, "children": [347, 350], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 24}}, {"id": 347, "type": "field_expression", "text": "msg->msg_hdr", "parent": 346, "children": [348, 349], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 16}}, {"id": 348, "type": "identifier", "text": "msg", "parent": 347, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 7}}, {"id": 349, "type": "field_identifier", "text": "msg_hdr", "parent": 347, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 16}}, {"id": 350, "type": "field_identifier", "text": "msg_dst", "parent": 346, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 24}}, {"id": 351, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 26}}, {"id": 352, "type": "pointer_expression", "text": "*peer", "parent": 345, "children": [353, 354], "start_point": {"row": 124, "column": 27}, "end_point": {"row": 124, "column": 32}}, {"id": 353, "type": "*", "text": "*", "parent": 352, "children": [], "start_point": {"row": 124, "column": 27}, "end_point": {"row": 124, "column": 28}}, {"id": 354, "type": "identifier", "text": "peer", "parent": 352, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 32}}, {"id": 355, "type": "assignment_expression", "text": "msg->msg_hdr.msg_size = size", "parent": 217, "children": [356, 361, 362], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 32}}, {"id": 356, "type": "field_expression", "text": "msg->msg_hdr.msg_size", "parent": 355, "children": [357, 360], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 25}}, {"id": 357, "type": "field_expression", "text": "msg->msg_hdr", "parent": 356, "children": [358, 359], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 16}}, {"id": 358, "type": "identifier", "text": "msg", "parent": 357, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 7}}, {"id": 359, "type": "field_identifier", "text": "msg_hdr", "parent": 357, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 16}}, {"id": 360, "type": "field_identifier", "text": "msg_size", "parent": 356, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 25}}, {"id": 361, "type": "=", "text": "=", "parent": 355, "children": [], "start_point": {"row": 125, "column": 26}, "end_point": {"row": 125, "column": 27}}, {"id": 362, "type": "identifier", "text": "size", "parent": 355, "children": [], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 32}}, {"id": 363, "type": "assignment_expression", "text": "msg->msg_hdr.msg_tag = tag", "parent": 217, "children": [364, 369, 370], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 30}}, {"id": 364, "type": "field_expression", "text": "msg->msg_hdr.msg_tag", "parent": 363, "children": [365, 368], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 24}}, {"id": 365, "type": "field_expression", "text": "msg->msg_hdr", "parent": 364, "children": [366, 367], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 16}}, {"id": 366, "type": "identifier", "text": "msg", "parent": 365, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 7}}, {"id": 367, "type": "field_identifier", "text": "msg_hdr", "parent": 365, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 16}}, {"id": 368, "type": "field_identifier", "text": "msg_tag", "parent": 364, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 24}}, {"id": 369, "type": "=", "text": "=", "parent": 363, "children": [], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 26}}, {"id": 370, "type": "identifier", "text": "tag", "parent": 363, "children": [], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 30}}, {"id": 371, "type": "assignment_expression", "text": "msg->msg_type = MCA_OOB_TCP_POSTED", "parent": 217, "children": [372, 375, 376], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 38}}, {"id": 372, "type": "field_expression", "text": "msg->msg_type", "parent": 371, "children": [373, 374], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 17}}, {"id": 373, "type": "identifier", "text": "msg", "parent": 372, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 7}}, {"id": 374, "type": "field_identifier", "text": "msg_type", "parent": 372, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 17}}, {"id": 375, "type": "=", "text": "=", "parent": 371, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 19}}, {"id": 376, "type": "identifier", "text": "MCA_OOB_TCP_POSTED", "parent": 371, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 38}}, {"id": 377, "type": "assignment_expression", "text": "msg->msg_rc = 0", "parent": 217, "children": [378, 381, 382], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 19}}, {"id": 378, "type": "field_expression", "text": "msg->msg_rc", "parent": 377, "children": [379, 380], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 15}}, {"id": 379, "type": "identifier", "text": "msg", "parent": 378, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 7}}, {"id": 380, "type": "field_identifier", "text": "msg_rc", "parent": 378, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 15}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 17}}, {"id": 382, "type": "number_literal", "text": "0", "parent": 377, "children": [], "start_point": {"row": 128, "column": 18}, "end_point": {"row": 128, "column": 19}}, {"id": 383, "type": "assignment_expression", "text": "msg->msg_flags = flags", "parent": 217, "children": [384, 387, 388], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 26}}, {"id": 384, "type": "field_expression", "text": "msg->msg_flags", "parent": 383, "children": [385, 386], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 18}}, {"id": 385, "type": "identifier", "text": "msg", "parent": 384, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 7}}, {"id": 386, "type": "field_identifier", "text": "msg_flags", "parent": 384, "children": [], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 18}}, {"id": 387, "type": "=", "text": "=", "parent": 383, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 20}}, {"id": 388, "type": "identifier", "text": "flags", "parent": 383, "children": [], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 26}}, {"id": 389, "type": "assignment_expression", "text": "msg->msg_uiov = iov", "parent": 217, "children": [390, 393, 394], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 23}}, {"id": 390, "type": "field_expression", "text": "msg->msg_uiov", "parent": 389, "children": [391, 392], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 17}}, {"id": 391, "type": "identifier", "text": "msg", "parent": 390, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 7}}, {"id": 392, "type": "field_identifier", "text": "msg_uiov", "parent": 390, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 17}}, {"id": 393, "type": "=", "text": "=", "parent": 389, "children": [], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 19}}, {"id": 394, "type": "identifier", "text": "iov", "parent": 389, "children": [], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 23}}, {"id": 395, "type": "assignment_expression", "text": "msg->msg_ucnt = count", "parent": 217, "children": [396, 399, 400], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 25}}, {"id": 396, "type": "field_expression", "text": "msg->msg_ucnt", "parent": 395, "children": [397, 398], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 17}}, {"id": 397, "type": "identifier", "text": "msg", "parent": 396, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 7}}, {"id": 398, "type": "field_identifier", "text": "msg_ucnt", "parent": 396, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 17}}, {"id": 399, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 19}}, {"id": 400, "type": "identifier", "text": "count", "parent": 395, "children": [], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 25}}, {"id": 401, "type": "assignment_expression", "text": "msg->msg_cbfunc = cbfunc", "parent": 217, "children": [402, 405, 406], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 28}}, {"id": 402, "type": "field_expression", "text": "msg->msg_cbfunc", "parent": 401, "children": [403, 404], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 19}}, {"id": 403, "type": "identifier", "text": "msg", "parent": 402, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 7}}, {"id": 404, "type": "field_identifier", "text": "msg_cbfunc", "parent": 402, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 19}}, {"id": 405, "type": "=", "text": "=", "parent": 401, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 21}}, {"id": 406, "type": "identifier", "text": "cbfunc", "parent": 401, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 28}}, {"id": 407, "type": "assignment_expression", "text": "msg->msg_cbdata = cbdata", "parent": 217, "children": [408, 411, 412], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 28}}, {"id": 408, "type": "field_expression", "text": "msg->msg_cbdata", "parent": 407, "children": [409, 410], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 19}}, {"id": 409, "type": "identifier", "text": "msg", "parent": 408, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 7}}, {"id": 410, "type": "field_identifier", "text": "msg_cbdata", "parent": 408, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 19}}, {"id": 411, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 21}}, {"id": 412, "type": "identifier", "text": "cbdata", "parent": 407, "children": [], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 28}}, {"id": 413, "type": "assignment_expression", "text": "msg->msg_complete = false", "parent": 217, "children": [414, 417, 418], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 29}}, {"id": 414, "type": "field_expression", "text": "msg->msg_complete", "parent": 413, "children": [415, 416], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 21}}, {"id": 415, "type": "identifier", "text": "msg", "parent": 414, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 7}}, {"id": 416, "type": "field_identifier", "text": "msg_complete", "parent": 414, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 21}}, {"id": 417, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 23}}, {"id": 418, "type": "false", "text": "false", "parent": 413, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 29}}, {"id": 419, "type": "assignment_expression", "text": "msg->msg_peer = *peer", "parent": 217, "children": [420, 423, 424], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 25}}, {"id": 420, "type": "field_expression", "text": "msg->msg_peer", "parent": 419, "children": [421, 422], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 17}}, {"id": 421, "type": "identifier", "text": "msg", "parent": 420, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 7}}, {"id": 422, "type": "field_identifier", "text": "msg_peer", "parent": 420, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 17}}, {"id": 423, "type": "=", "text": "=", "parent": 419, "children": [], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 19}}, {"id": 424, "type": "pointer_expression", "text": "*peer", "parent": 419, "children": [425, 426], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 25}}, {"id": 425, "type": "*", "text": "*", "parent": 424, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 21}}, {"id": 426, "type": "identifier", "text": "peer", "parent": 424, "children": [], "start_point": {"row": 135, "column": 21}, "end_point": {"row": 135, "column": 25}}, {"id": 427, "type": "assignment_expression", "text": "msg->msg_rwbuf = NULL", "parent": 217, "children": [428, 431, 432], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 25}}, {"id": 428, "type": "field_expression", "text": "msg->msg_rwbuf", "parent": 427, "children": [429, 430], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 18}}, {"id": 429, "type": "identifier", "text": "msg", "parent": 428, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 7}}, {"id": 430, "type": "field_identifier", "text": "msg_rwbuf", "parent": 428, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 18}}, {"id": 431, "type": "=", "text": "=", "parent": 427, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 20}}, {"id": 432, "type": "null", "text": "NULL", "parent": 427, "children": [433], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 25}}, {"id": 433, "type": "NULL", "text": "NULL", "parent": 432, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 25}}, {"id": 434, "type": "assignment_expression", "text": "msg->msg_rwiov = NULL", "parent": 217, "children": [435, 438, 439], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 25}}, {"id": 435, "type": "field_expression", "text": "msg->msg_rwiov", "parent": 434, "children": [436, 437], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 18}}, {"id": 436, "type": "identifier", "text": "msg", "parent": 435, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 7}}, {"id": 437, "type": "field_identifier", "text": "msg_rwiov", "parent": 435, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 18}}, {"id": 438, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 20}}, {"id": 439, "type": "null", "text": "NULL", "parent": 434, "children": [440], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 25}}, {"id": 440, "type": "NULL", "text": "NULL", "parent": 439, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 25}}, {"id": 441, "type": "call_expression", "text": "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 217, "children": [442, 443], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 59}}, {"id": 442, "type": "identifier", "text": "OPAL_THREAD_LOCK", "parent": 441, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 20}}, {"id": 443, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 441, "children": [444], "start_point": {"row": 140, "column": 20}, "end_point": {"row": 140, "column": 59}}, {"id": 444, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 443, "children": [445], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 58}}, {"id": 445, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 444, "children": [446, 447], "start_point": {"row": 140, "column": 22}, "end_point": {"row": 140, "column": 58}}, {"id": 446, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 445, "children": [], "start_point": {"row": 140, "column": 22}, "end_point": {"row": 140, "column": 43}}, {"id": 447, "type": "field_identifier", "text": "tcp_match_lock", "parent": 445, "children": [], "start_point": {"row": 140, "column": 44}, "end_point": {"row": 140, "column": 58}}, {"id": 448, "type": "if_statement", "text": "if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }", "parent": 217, "children": [449, 486], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 158, "column": 5}}, {"id": 449, "type": "parenthesized_expression", "text": "(flags & ORTE_RML_PERSISTENT)", "parent": 448, "children": [450], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 35}}, {"id": 450, "type": "binary_expression", "text": "flags & ORTE_RML_PERSISTENT", "parent": 449, "children": [451, 452], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 34}}, {"id": 451, "type": "identifier", "text": "flags", "parent": 450, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 12}}, {"id": 452, "type": "identifier", "text": "ORTE_RML_PERSISTENT", "parent": 450, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 34}}, {"id": 453, "type": "call_expression", "text": "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)", "parent": 448, "children": [454, 455], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 87}}, {"id": 454, "type": "identifier", "text": "opal_list_append", "parent": 453, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 24}}, {"id": 455, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)", "parent": 453, "children": [456, 460], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 87}}, {"id": 456, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_post", "parent": 455, "children": [457], "start_point": {"row": 143, "column": 25}, "end_point": {"row": 143, "column": 60}}, {"id": 457, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_post", "parent": 456, "children": [458, 459], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 60}}, {"id": 458, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 457, "children": [], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 47}}, {"id": 459, "type": "field_identifier", "text": "tcp_msg_post", "parent": 457, "children": [], "start_point": {"row": 143, "column": 48}, "end_point": {"row": 143, "column": 60}}, {"id": 460, "type": "cast_expression", "text": "(opal_list_item_t *) msg", "parent": 455, "children": [461, 465], "start_point": {"row": 143, "column": 62}, "end_point": {"row": 143, "column": 86}}, {"id": 461, "type": "type_descriptor", "text": "opal_list_item_t *", "parent": 460, "children": [462, 463], "start_point": {"row": 143, "column": 63}, "end_point": {"row": 143, "column": 81}}, {"id": 462, "type": "type_identifier", "text": "opal_list_item_t", "parent": 461, "children": [], "start_point": {"row": 143, "column": 63}, "end_point": {"row": 143, "column": 79}}, {"id": 463, "type": "abstract_pointer_declarator", "text": "*", "parent": 461, "children": [464], "start_point": {"row": 143, "column": 80}, "end_point": {"row": 143, "column": 81}}, {"id": 464, "type": "*", "text": "*", "parent": 463, "children": [], "start_point": {"row": 143, "column": 80}, "end_point": {"row": 143, "column": 81}}, {"id": 465, "type": "identifier", "text": "msg", "parent": 460, "children": [], "start_point": {"row": 143, "column": 83}, "end_point": {"row": 143, "column": 86}}, {"id": 466, "type": "while_statement", "text": "while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }", "parent": 448, "children": [467], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 146, "column": 9}}, {"id": 467, "type": "parenthesized_expression", "text": "(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag)))", "parent": 466, "children": [468], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 69}}, {"id": 468, "type": "binary_expression", "text": "NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))", "parent": 467, "children": [469, 471, 472], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 68}}, {"id": 469, "type": "null", "text": "NULL", "parent": 468, "children": [470], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 18}}, {"id": 470, "type": "NULL", "text": "NULL", "parent": 469, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 18}}, {"id": 471, "type": "!=", "text": "!=", "parent": 468, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 21}}, {"id": 472, "type": "parenthesized_expression", "text": "(match = mca_oob_tcp_msg_match_recv(peer,tag))", "parent": 468, "children": [473], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 68}}, {"id": 473, "type": "assignment_expression", "text": "match = mca_oob_tcp_msg_match_recv(peer,tag)", "parent": 472, "children": [474, 475, 476], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 67}}, {"id": 474, "type": "identifier", "text": "match", "parent": 473, "children": [], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 28}}, {"id": 475, "type": "=", "text": "=", "parent": 473, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 30}}, {"id": 476, "type": "call_expression", "text": "mca_oob_tcp_msg_match_recv(peer,tag)", "parent": 473, "children": [477, 478], "start_point": {"row": 144, "column": 31}, "end_point": {"row": 144, "column": 67}}, {"id": 477, "type": "identifier", "text": "mca_oob_tcp_msg_match_recv", "parent": 476, "children": [], "start_point": {"row": 144, "column": 31}, "end_point": {"row": 144, "column": 57}}, {"id": 478, "type": "argument_list", "text": "(peer,tag)", "parent": 476, "children": [479, 480], "start_point": {"row": 144, "column": 57}, "end_point": {"row": 144, "column": 67}}, {"id": 479, "type": "identifier", "text": "peer", "parent": 478, "children": [], "start_point": {"row": 144, "column": 58}, "end_point": {"row": 144, "column": 62}}, {"id": 480, "type": "identifier", "text": "tag", "parent": 478, "children": [], "start_point": {"row": 144, "column": 63}, "end_point": {"row": 144, "column": 66}}, {"id": 481, "type": "call_expression", "text": "mca_oob_tcp_msg_matched(msg, match)", "parent": 466, "children": [482, 483], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 47}}, {"id": 482, "type": "identifier", "text": "mca_oob_tcp_msg_matched", "parent": 481, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 35}}, {"id": 483, "type": "argument_list", "text": "(msg, match)", "parent": 481, "children": [484, 485], "start_point": {"row": 145, "column": 35}, "end_point": {"row": 145, "column": 47}}, {"id": 484, "type": "identifier", "text": "msg", "parent": 483, "children": [], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 39}}, {"id": 485, "type": "identifier", "text": "match", "parent": 483, "children": [], "start_point": {"row": 145, "column": 41}, "end_point": {"row": 145, "column": 46}}, {"id": 486, "type": "else_clause", "text": "else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }", "parent": 448, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 158, "column": 5}}, {"id": 487, "type": "assignment_expression", "text": "match = mca_oob_tcp_msg_match_recv(peer, tag)", "parent": 486, "children": [488, 489, 490], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 53}}, {"id": 488, "type": "identifier", "text": "match", "parent": 487, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 13}}, {"id": 489, "type": "=", "text": "=", "parent": 487, "children": [], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 15}}, {"id": 490, "type": "call_expression", "text": "mca_oob_tcp_msg_match_recv(peer, tag)", "parent": 487, "children": [491, 492], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 53}}, {"id": 491, "type": "identifier", "text": "mca_oob_tcp_msg_match_recv", "parent": 490, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 42}}, {"id": 492, "type": "argument_list", "text": "(peer, tag)", "parent": 490, "children": [493, 494], "start_point": {"row": 151, "column": 42}, "end_point": {"row": 151, "column": 53}}, {"id": 493, "type": "identifier", "text": "peer", "parent": 492, "children": [], "start_point": {"row": 151, "column": 43}, "end_point": {"row": 151, "column": 47}}, {"id": 494, "type": "identifier", "text": "tag", "parent": 492, "children": [], "start_point": {"row": 151, "column": 49}, "end_point": {"row": 151, "column": 52}}, {"id": 495, "type": "if_statement", "text": "if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }", "parent": 486, "children": [496, 511], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 157, "column": 9}}, {"id": 496, "type": "parenthesized_expression", "text": "(NULL != match)", "parent": 495, "children": [497], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 25}}, {"id": 497, "type": "binary_expression", "text": "NULL != match", "parent": 496, "children": [498, 500, 501], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 24}}, {"id": 498, "type": "null", "text": "NULL", "parent": 497, "children": [499], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 15}}, {"id": 499, "type": "NULL", "text": "NULL", "parent": 498, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 15}}, {"id": 500, "type": "!=", "text": "!=", "parent": 497, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 18}}, {"id": 501, "type": "identifier", "text": "match", "parent": 497, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 24}}, {"id": 502, "type": "call_expression", "text": "mca_oob_tcp_msg_matched(msg, match)", "parent": 495, "children": [503, 504], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 47}}, {"id": 503, "type": "identifier", "text": "mca_oob_tcp_msg_matched", "parent": 502, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 35}}, {"id": 504, "type": "argument_list", "text": "(msg, match)", "parent": 502, "children": [505, 506], "start_point": {"row": 153, "column": 35}, "end_point": {"row": 153, "column": 47}}, {"id": 505, "type": "identifier", "text": "msg", "parent": 504, "children": [], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 39}}, {"id": 506, "type": "identifier", "text": "match", "parent": 504, "children": [], "start_point": {"row": 153, "column": 41}, "end_point": {"row": 153, "column": 46}}, {"id": 507, "type": "call_expression", "text": "MCA_OOB_TCP_MSG_RETURN(msg)", "parent": 495, "children": [508, 509], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 39}}, {"id": 508, "type": "identifier", "text": "MCA_OOB_TCP_MSG_RETURN", "parent": 507, "children": [], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 34}}, {"id": 509, "type": "argument_list", "text": "(msg)", "parent": 507, "children": [510], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 39}}, {"id": 510, "type": "identifier", "text": "msg", "parent": 509, "children": [], "start_point": {"row": 154, "column": 35}, "end_point": {"row": 154, "column": 38}}, {"id": 511, "type": "else_clause", "text": "else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }", "parent": 495, "children": [], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 157, "column": 9}}, {"id": 512, "type": "call_expression", "text": "opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)", "parent": 511, "children": [513, 514], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 91}}, {"id": 513, "type": "identifier", "text": "opal_list_append", "parent": 512, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 28}}, {"id": 514, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg)", "parent": 512, "children": [515, 519], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 91}}, {"id": 515, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_post", "parent": 514, "children": [516], "start_point": {"row": 156, "column": 29}, "end_point": {"row": 156, "column": 64}}, {"id": 516, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_post", "parent": 515, "children": [517, 518], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 64}}, {"id": 517, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 516, "children": [], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 51}}, {"id": 518, "type": "field_identifier", "text": "tcp_msg_post", "parent": 516, "children": [], "start_point": {"row": 156, "column": 52}, "end_point": {"row": 156, "column": 64}}, {"id": 519, "type": "cast_expression", "text": "(opal_list_item_t *) msg", "parent": 514, "children": [520, 524], "start_point": {"row": 156, "column": 66}, "end_point": {"row": 156, "column": 90}}, {"id": 520, "type": "type_descriptor", "text": "opal_list_item_t *", "parent": 519, "children": [521, 522], "start_point": {"row": 156, "column": 67}, "end_point": {"row": 156, "column": 85}}, {"id": 521, "type": "type_identifier", "text": "opal_list_item_t", "parent": 520, "children": [], "start_point": {"row": 156, "column": 67}, "end_point": {"row": 156, "column": 83}}, {"id": 522, "type": "abstract_pointer_declarator", "text": "*", "parent": 520, "children": [523], "start_point": {"row": 156, "column": 84}, "end_point": {"row": 156, "column": 85}}, {"id": 523, "type": "*", "text": "*", "parent": 522, "children": [], "start_point": {"row": 156, "column": 84}, "end_point": {"row": 156, "column": 85}}, {"id": 524, "type": "identifier", "text": "msg", "parent": 519, "children": [], "start_point": {"row": 156, "column": 87}, "end_point": {"row": 156, "column": 90}}, {"id": 525, "type": "call_expression", "text": "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 217, "children": [526, 527], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 61}}, {"id": 526, "type": "identifier", "text": "OPAL_THREAD_UNLOCK", "parent": 525, "children": [], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 22}}, {"id": 527, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 525, "children": [528], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 61}}, {"id": 528, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 527, "children": [529], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 60}}, {"id": 529, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 528, "children": [530, 531], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 60}}, {"id": 530, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 529, "children": [], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 45}}, {"id": 531, "type": "field_identifier", "text": "tcp_match_lock", "parent": 529, "children": [], "start_point": {"row": 159, "column": 46}, "end_point": {"row": 159, "column": 60}}, {"id": 532, "type": "return_statement", "text": "return 0;", "parent": 217, "children": [533], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 13}}, {"id": 533, "type": "number_literal", "text": "0", "parent": 532, "children": [], "start_point": {"row": 160, "column": 11}, "end_point": {"row": 160, "column": 12}}, {"id": 534, "type": "function_definition", "text": "int mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)\n{\n int matched = 0;\n opal_list_item_t *item, *next;\n\n /* wait for any previously matched messages to be processed */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif\n\n /* remove any matching posted receives */\n for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;\n}", "parent": null, "children": [535, 536], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 208, "column": 1}}, {"id": 535, "type": "primitive_type", "text": "int", "parent": 534, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 3}}, {"id": 536, "type": "function_declarator", "text": "mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)", "parent": 534, "children": [537, 538], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 174, "column": 12}}, {"id": 537, "type": "identifier", "text": "mca_oob_tcp_recv_cancel", "parent": 536, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 27}}, {"id": 538, "type": "parameter_list", "text": "(\n orte_process_name_t* name, \n int tag)", "parent": 536, "children": [539, 544], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 174, "column": 12}}, {"id": 539, "type": "parameter_declaration", "text": "orte_process_name_t* name", "parent": 538, "children": [540, 541], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 29}}, {"id": 540, "type": "type_identifier", "text": "orte_process_name_t", "parent": 539, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 23}}, {"id": 541, "type": "pointer_declarator", "text": "* name", "parent": 539, "children": [542, 543], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 29}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 24}}, {"id": 543, "type": "identifier", "text": "name", "parent": 541, "children": [], "start_point": {"row": 173, "column": 25}, "end_point": {"row": 173, "column": 29}}, {"id": 544, "type": "parameter_declaration", "text": "int tag", "parent": 538, "children": [545, 546], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 11}}, {"id": 545, "type": "primitive_type", "text": "int", "parent": 544, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 7}}, {"id": 546, "type": "identifier", "text": "tag", "parent": 544, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 11}}, {"id": 547, "type": "declaration", "text": "int matched = 0;", "parent": 534, "children": [548, 549], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 20}}, {"id": 548, "type": "primitive_type", "text": "int", "parent": 547, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 7}}, {"id": 549, "type": "init_declarator", "text": "matched = 0", "parent": 547, "children": [550, 551, 552], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 19}}, {"id": 550, "type": "identifier", "text": "matched", "parent": 549, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 15}}, {"id": 551, "type": "=", "text": "=", "parent": 549, "children": [], "start_point": {"row": 176, "column": 16}, "end_point": {"row": 176, "column": 17}}, {"id": 552, "type": "number_literal", "text": "0", "parent": 549, "children": [], "start_point": {"row": 176, "column": 18}, "end_point": {"row": 176, "column": 19}}, {"id": 553, "type": "declaration", "text": "opal_list_item_t *item, *next;", "parent": 534, "children": [554, 555, 558], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 34}}, {"id": 554, "type": "type_identifier", "text": "opal_list_item_t", "parent": 553, "children": [], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 20}}, {"id": 555, "type": "pointer_declarator", "text": "*item", "parent": 553, "children": [556, 557], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 26}}, {"id": 556, "type": "*", "text": "*", "parent": 555, "children": [], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 22}}, {"id": 557, "type": "identifier", "text": "item", "parent": 555, "children": [], "start_point": {"row": 177, "column": 22}, "end_point": {"row": 177, "column": 26}}, {"id": 558, "type": "pointer_declarator", "text": "*next", "parent": 553, "children": [559, 560], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 33}}, {"id": 559, "type": "*", "text": "*", "parent": 558, "children": [], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 29}}, {"id": 560, "type": "identifier", "text": "next", "parent": 558, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 33}}, {"id": 561, "type": "call_expression", "text": "OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 534, "children": [562, 563], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 59}}, {"id": 562, "type": "identifier", "text": "OPAL_THREAD_LOCK", "parent": 561, "children": [], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 20}}, {"id": 563, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 561, "children": [564], "start_point": {"row": 180, "column": 20}, "end_point": {"row": 180, "column": 59}}, {"id": 564, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 563, "children": [565], "start_point": {"row": 180, "column": 21}, "end_point": {"row": 180, "column": 58}}, {"id": 565, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 564, "children": [566, 567], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 58}}, {"id": 566, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 565, "children": [], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 43}}, {"id": 567, "type": "field_identifier", "text": "tcp_match_lock", "parent": 565, "children": [], "start_point": {"row": 180, "column": 44}, "end_point": {"row": 180, "column": 58}}, {"id": 568, "type": "preproc_if", "text": "#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif", "parent": 534, "children": [569, 570, 571, 572, 596], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 189, "column": 6}}, {"id": 569, "type": "#if", "text": "#if", "parent": 568, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 3}}, {"id": 570, "type": "identifier", "text": "ORTE_ENABLE_PROGRESS_THREADS", "parent": 568, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 32}}, {"id": 571, "type": "\n", "text": "\n", "parent": 568, "children": [], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 182, "column": 0}}, {"id": 572, "type": "if_statement", "text": "if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }", "parent": 568, "children": [573], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 573, "type": "parenthesized_expression", "text": "(opal_event_progress_thread() == false)", "parent": 572, "children": [574], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 182, "column": 45}}, {"id": 574, "type": "binary_expression", "text": "opal_event_progress_thread() == false", "parent": 573, "children": [575, 578, 579], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 44}}, {"id": 575, "type": "call_expression", "text": "opal_event_progress_thread()", "parent": 574, "children": [576, 577], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 35}}, {"id": 576, "type": "identifier", "text": "opal_event_progress_thread", "parent": 575, "children": [], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 33}}, {"id": 577, "type": "argument_list", "text": "()", "parent": 575, "children": [], "start_point": {"row": 182, "column": 33}, "end_point": {"row": 182, "column": 35}}, {"id": 578, "type": "==", "text": "==", "parent": 574, "children": [], "start_point": {"row": 182, "column": 36}, "end_point": {"row": 182, "column": 38}}, {"id": 579, "type": "false", "text": "false", "parent": 574, "children": [], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 44}}, {"id": 580, "type": "while_statement", "text": "while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }", "parent": 572, "children": [581], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 187, "column": 9}}, {"id": 581, "type": "parenthesized_expression", "text": "(mca_oob_tcp_component.tcp_match_count)", "parent": 580, "children": [582], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 52}}, {"id": 582, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_count", "parent": 581, "children": [583, 584], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 51}}, {"id": 583, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 582, "children": [], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 35}}, {"id": 584, "type": "field_identifier", "text": "tcp_match_count", "parent": 582, "children": [], "start_point": {"row": 183, "column": 36}, "end_point": {"row": 183, "column": 51}}, {"id": 585, "type": "call_expression", "text": "opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock)", "parent": 580, "children": [586, 587], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 186, "column": 54}}, {"id": 586, "type": "identifier", "text": "opal_condition_wait", "parent": 585, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 31}}, {"id": 587, "type": "argument_list", "text": "(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock)", "parent": 585, "children": [588, 592], "start_point": {"row": 184, "column": 31}, "end_point": {"row": 186, "column": 54}}, {"id": 588, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_cond", "parent": 587, "children": [589], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 53}}, {"id": 589, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_cond", "parent": 588, "children": [590, 591], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 53}}, {"id": 590, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 589, "children": [], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 38}}, {"id": 591, "type": "field_identifier", "text": "tcp_match_cond", "parent": 589, "children": [], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 53}}, {"id": 592, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 587, "children": [593], "start_point": {"row": 186, "column": 16}, "end_point": {"row": 186, "column": 53}}, {"id": 593, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 592, "children": [594, 595], "start_point": {"row": 186, "column": 17}, "end_point": {"row": 186, "column": 53}}, {"id": 594, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 593, "children": [], "start_point": {"row": 186, "column": 17}, "end_point": {"row": 186, "column": 38}}, {"id": 595, "type": "field_identifier", "text": "tcp_match_lock", "parent": 593, "children": [], "start_point": {"row": 186, "column": 39}, "end_point": {"row": 186, "column": 53}}, {"id": 596, "type": "#endif", "text": "#endif", "parent": 568, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 6}}, {"id": 597, "type": "for_statement", "text": "for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }", "parent": 534, "children": [598, 608, 618], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 205, "column": 5}}, {"id": 598, "type": "assignment_expression", "text": "item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post)", "parent": 597, "children": [599, 600, 601], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 72}}, {"id": 599, "type": "identifier", "text": "item", "parent": 598, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 12}}, {"id": 600, "type": "=", "text": "=", "parent": 598, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 14}}, {"id": 601, "type": "call_expression", "text": "opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post)", "parent": 598, "children": [602, 603], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 72}}, {"id": 602, "type": "identifier", "text": "opal_list_get_first", "parent": 601, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 35}}, {"id": 603, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_post)", "parent": 601, "children": [604], "start_point": {"row": 192, "column": 35}, "end_point": {"row": 192, "column": 72}}, {"id": 604, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_post", "parent": 603, "children": [605], "start_point": {"row": 192, "column": 36}, "end_point": {"row": 192, "column": 71}}, {"id": 605, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_post", "parent": 604, "children": [606, 607], "start_point": {"row": 192, "column": 37}, "end_point": {"row": 192, "column": 71}}, {"id": 606, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 605, "children": [], "start_point": {"row": 192, "column": 37}, "end_point": {"row": 192, "column": 58}}, {"id": 607, "type": "field_identifier", "text": "tcp_msg_post", "parent": 605, "children": [], "start_point": {"row": 192, "column": 59}, "end_point": {"row": 192, "column": 71}}, {"id": 608, "type": "binary_expression", "text": "item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post)", "parent": 597, "children": [609, 610, 611], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 70}}, {"id": 609, "type": "identifier", "text": "item", "parent": 608, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 12}}, {"id": 610, "type": "!=", "text": "!=", "parent": 608, "children": [], "start_point": {"row": 193, "column": 13}, "end_point": {"row": 193, "column": 15}}, {"id": 611, "type": "call_expression", "text": "opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post)", "parent": 608, "children": [612, 613], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 70}}, {"id": 612, "type": "identifier", "text": "opal_list_get_end", "parent": 611, "children": [], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 33}}, {"id": 613, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_post)", "parent": 611, "children": [614], "start_point": {"row": 193, "column": 33}, "end_point": {"row": 193, "column": 70}}, {"id": 614, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_post", "parent": 613, "children": [615], "start_point": {"row": 193, "column": 34}, "end_point": {"row": 193, "column": 69}}, {"id": 615, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_post", "parent": 614, "children": [616, 617], "start_point": {"row": 193, "column": 35}, "end_point": {"row": 193, "column": 69}}, {"id": 616, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 615, "children": [], "start_point": {"row": 193, "column": 35}, "end_point": {"row": 193, "column": 56}}, {"id": 617, "type": "field_identifier", "text": "tcp_msg_post", "parent": 615, "children": [], "start_point": {"row": 193, "column": 57}, "end_point": {"row": 193, "column": 69}}, {"id": 618, "type": "assignment_expression", "text": "item = next", "parent": 597, "children": [619, 620, 621], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 20}}, {"id": 619, "type": "identifier", "text": "item", "parent": 618, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 12}}, {"id": 620, "type": "=", "text": "=", "parent": 618, "children": [], "start_point": {"row": 194, "column": 13}, "end_point": {"row": 194, "column": 14}}, {"id": 621, "type": "identifier", "text": "next", "parent": 618, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 20}}, {"id": 622, "type": "declaration", "text": "mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;", "parent": 597, "children": [623, 624], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 58}}, {"id": 623, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 622, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 25}}, {"id": 624, "type": "init_declarator", "text": "* msg = (mca_oob_tcp_msg_t*)item", "parent": 622, "children": [625, 628, 629], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 57}}, {"id": 625, "type": "pointer_declarator", "text": "* msg", "parent": 624, "children": [626, 627], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 30}}, {"id": 626, "type": "*", "text": "*", "parent": 625, "children": [], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 26}}, {"id": 627, "type": "identifier", "text": "msg", "parent": 625, "children": [], "start_point": {"row": 195, "column": 27}, "end_point": {"row": 195, "column": 30}}, {"id": 628, "type": "=", "text": "=", "parent": 624, "children": [], "start_point": {"row": 195, "column": 31}, "end_point": {"row": 195, "column": 32}}, {"id": 629, "type": "cast_expression", "text": "(mca_oob_tcp_msg_t*)item", "parent": 624, "children": [630, 634], "start_point": {"row": 195, "column": 33}, "end_point": {"row": 195, "column": 57}}, {"id": 630, "type": "type_descriptor", "text": "mca_oob_tcp_msg_t*", "parent": 629, "children": [631, 632], "start_point": {"row": 195, "column": 34}, "end_point": {"row": 195, "column": 52}}, {"id": 631, "type": "type_identifier", "text": "mca_oob_tcp_msg_t", "parent": 630, "children": [], "start_point": {"row": 195, "column": 34}, "end_point": {"row": 195, "column": 51}}, {"id": 632, "type": "abstract_pointer_declarator", "text": "*", "parent": 630, "children": [633], "start_point": {"row": 195, "column": 51}, "end_point": {"row": 195, "column": 52}}, {"id": 633, "type": "*", "text": "*", "parent": 632, "children": [], "start_point": {"row": 195, "column": 51}, "end_point": {"row": 195, "column": 52}}, {"id": 634, "type": "identifier", "text": "item", "parent": 629, "children": [], "start_point": {"row": 195, "column": 53}, "end_point": {"row": 195, "column": 57}}, {"id": 635, "type": "assignment_expression", "text": "next = opal_list_get_next(item)", "parent": 597, "children": [636, 637, 638], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 39}}, {"id": 636, "type": "identifier", "text": "next", "parent": 635, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 12}}, {"id": 637, "type": "=", "text": "=", "parent": 635, "children": [], "start_point": {"row": 196, "column": 13}, "end_point": {"row": 196, "column": 14}}, {"id": 638, "type": "call_expression", "text": "opal_list_get_next(item)", "parent": 635, "children": [639, 640], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 39}}, {"id": 639, "type": "identifier", "text": "opal_list_get_next", "parent": 638, "children": [], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 33}}, {"id": 640, "type": "argument_list", "text": "(item)", "parent": 638, "children": [641], "start_point": {"row": 196, "column": 33}, "end_point": {"row": 196, "column": 39}}, {"id": 641, "type": "identifier", "text": "item", "parent": 640, "children": [], "start_point": {"row": 196, "column": 34}, "end_point": {"row": 196, "column": 38}}, {"id": 642, "type": "if_statement", "text": "if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }", "parent": 597, "children": [643], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 204, "column": 9}}, {"id": 643, "type": "parenthesized_expression", "text": "(OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME))", "parent": 642, "children": [644], "start_point": {"row": 198, "column": 11}, "end_point": {"row": 198, "column": 76}}, {"id": 644, "type": "binary_expression", "text": "OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)", "parent": 643, "children": [645, 646, 647], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 75}}, {"id": 645, "type": "identifier", "text": "OPAL_EQUAL", "parent": 644, "children": [], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 22}}, {"id": 646, "type": "==", "text": "==", "parent": 644, "children": [], "start_point": {"row": 198, "column": 23}, "end_point": {"row": 198, "column": 25}}, {"id": 647, "type": "call_expression", "text": "opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)", "parent": 644, "children": [648, 651], "start_point": {"row": 198, "column": 26}, "end_point": {"row": 198, "column": 75}}, {"id": 648, "type": "field_expression", "text": "opal_dss.compare", "parent": 647, "children": [649, 650], "start_point": {"row": 198, "column": 26}, "end_point": {"row": 198, "column": 42}}, {"id": 649, "type": "identifier", "text": "opal_dss", "parent": 648, "children": [], "start_point": {"row": 198, "column": 26}, "end_point": {"row": 198, "column": 34}}, {"id": 650, "type": "field_identifier", "text": "compare", "parent": 648, "children": [], "start_point": {"row": 198, "column": 35}, "end_point": {"row": 198, "column": 42}}, {"id": 651, "type": "argument_list", "text": "(name, &msg->msg_peer, ORTE_NAME)", "parent": 647, "children": [652, 653, 657], "start_point": {"row": 198, "column": 42}, "end_point": {"row": 198, "column": 75}}, {"id": 652, "type": "identifier", "text": "name", "parent": 651, "children": [], "start_point": {"row": 198, "column": 43}, "end_point": {"row": 198, "column": 47}}, {"id": 653, "type": "pointer_expression", "text": "&msg->msg_peer", "parent": 651, "children": [654], "start_point": {"row": 198, "column": 49}, "end_point": {"row": 198, "column": 63}}, {"id": 654, "type": "field_expression", "text": "msg->msg_peer", "parent": 653, "children": [655, 656], "start_point": {"row": 198, "column": 50}, "end_point": {"row": 198, "column": 63}}, {"id": 655, "type": "identifier", "text": "msg", "parent": 654, "children": [], "start_point": {"row": 198, "column": 50}, "end_point": {"row": 198, "column": 53}}, {"id": 656, "type": "field_identifier", "text": "msg_peer", "parent": 654, "children": [], "start_point": {"row": 198, "column": 55}, "end_point": {"row": 198, "column": 63}}, {"id": 657, "type": "identifier", "text": "ORTE_NAME", "parent": 651, "children": [], "start_point": {"row": 198, "column": 65}, "end_point": {"row": 198, "column": 74}}, {"id": 658, "type": "if_statement", "text": "if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }", "parent": 642, "children": [659], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 203, "column": 13}}, {"id": 659, "type": "parenthesized_expression", "text": "(msg->msg_hdr.msg_tag == tag)", "parent": 658, "children": [660], "start_point": {"row": 199, "column": 15}, "end_point": {"row": 199, "column": 44}}, {"id": 660, "type": "binary_expression", "text": "msg->msg_hdr.msg_tag == tag", "parent": 659, "children": [661, 666, 667], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 43}}, {"id": 661, "type": "field_expression", "text": "msg->msg_hdr.msg_tag", "parent": 660, "children": [662, 665], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 36}}, {"id": 662, "type": "field_expression", "text": "msg->msg_hdr", "parent": 661, "children": [663, 664], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 28}}, {"id": 663, "type": "identifier", "text": "msg", "parent": 662, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 19}}, {"id": 664, "type": "field_identifier", "text": "msg_hdr", "parent": 662, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 28}}, {"id": 665, "type": "field_identifier", "text": "msg_tag", "parent": 661, "children": [], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 36}}, {"id": 666, "type": "==", "text": "==", "parent": 660, "children": [], "start_point": {"row": 199, "column": 37}, "end_point": {"row": 199, "column": 39}}, {"id": 667, "type": "identifier", "text": "tag", "parent": 660, "children": [], "start_point": {"row": 199, "column": 40}, "end_point": {"row": 199, "column": 43}}, {"id": 668, "type": "call_expression", "text": "opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super)", "parent": 658, "children": [669, 670], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 93}}, {"id": 669, "type": "identifier", "text": "opal_list_remove_item", "parent": 668, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 37}}, {"id": 670, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super)", "parent": 668, "children": [671, 675], "start_point": {"row": 200, "column": 37}, "end_point": {"row": 200, "column": 93}}, {"id": 671, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_msg_post", "parent": 670, "children": [672], "start_point": {"row": 200, "column": 38}, "end_point": {"row": 200, "column": 73}}, {"id": 672, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_msg_post", "parent": 671, "children": [673, 674], "start_point": {"row": 200, "column": 39}, "end_point": {"row": 200, "column": 73}}, {"id": 673, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 672, "children": [], "start_point": {"row": 200, "column": 39}, "end_point": {"row": 200, "column": 60}}, {"id": 674, "type": "field_identifier", "text": "tcp_msg_post", "parent": 672, "children": [], "start_point": {"row": 200, "column": 61}, "end_point": {"row": 200, "column": 73}}, {"id": 675, "type": "pointer_expression", "text": "&msg->super.super", "parent": 670, "children": [676], "start_point": {"row": 200, "column": 75}, "end_point": {"row": 200, "column": 92}}, {"id": 676, "type": "field_expression", "text": "msg->super.super", "parent": 675, "children": [677, 680], "start_point": {"row": 200, "column": 76}, "end_point": {"row": 200, "column": 92}}, {"id": 677, "type": "field_expression", "text": "msg->super", "parent": 676, "children": [678, 679], "start_point": {"row": 200, "column": 76}, "end_point": {"row": 200, "column": 86}}, {"id": 678, "type": "identifier", "text": "msg", "parent": 677, "children": [], "start_point": {"row": 200, "column": 76}, "end_point": {"row": 200, "column": 79}}, {"id": 679, "type": "field_identifier", "text": "super", "parent": 677, "children": [], "start_point": {"row": 200, "column": 81}, "end_point": {"row": 200, "column": 86}}, {"id": 680, "type": "field_identifier", "text": "super", "parent": 676, "children": [], "start_point": {"row": 200, "column": 87}, "end_point": {"row": 200, "column": 92}}, {"id": 681, "type": "call_expression", "text": "MCA_OOB_TCP_MSG_RETURN(msg)", "parent": 658, "children": [682, 683], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 43}}, {"id": 682, "type": "identifier", "text": "MCA_OOB_TCP_MSG_RETURN", "parent": 681, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 38}}, {"id": 683, "type": "argument_list", "text": "(msg)", "parent": 681, "children": [684], "start_point": {"row": 201, "column": 38}, "end_point": {"row": 201, "column": 43}}, {"id": 684, "type": "identifier", "text": "msg", "parent": 683, "children": [], "start_point": {"row": 201, "column": 39}, "end_point": {"row": 201, "column": 42}}, {"id": 685, "type": "update_expression", "text": "matched++", "parent": 658, "children": [686, 687], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 25}}, {"id": 686, "type": "identifier", "text": "matched", "parent": 685, "children": [], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 23}}, {"id": 687, "type": "++", "text": "++", "parent": 685, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 25}}, {"id": 688, "type": "call_expression", "text": "OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock)", "parent": 534, "children": [689, 690], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 61}}, {"id": 689, "type": "identifier", "text": "OPAL_THREAD_UNLOCK", "parent": 688, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 22}}, {"id": 690, "type": "argument_list", "text": "(&mca_oob_tcp_component.tcp_match_lock)", "parent": 688, "children": [691], "start_point": {"row": 206, "column": 22}, "end_point": {"row": 206, "column": 61}}, {"id": 691, "type": "pointer_expression", "text": "&mca_oob_tcp_component.tcp_match_lock", "parent": 690, "children": [692], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 60}}, {"id": 692, "type": "field_expression", "text": "mca_oob_tcp_component.tcp_match_lock", "parent": 691, "children": [693, 694], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 60}}, {"id": 693, "type": "identifier", "text": "mca_oob_tcp_component", "parent": 692, "children": [], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 45}}, {"id": 694, "type": "field_identifier", "text": "tcp_match_lock", "parent": 692, "children": [], "start_point": {"row": 206, "column": 46}, "end_point": {"row": 206, "column": 60}}, {"id": 695, "type": "return_statement", "text": "return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;", "parent": 534, "children": [696], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 61}}, {"id": 696, "type": "conditional_expression", "text": "(matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND", "parent": 695, "children": [697, 702, 703, 704], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 60}}, {"id": 697, "type": "parenthesized_expression", "text": "(matched > 0)", "parent": 696, "children": [698], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 24}}, {"id": 698, "type": "binary_expression", "text": "matched > 0", "parent": 697, "children": [699, 700, 701], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 23}}, {"id": 699, "type": "identifier", "text": "matched", "parent": 698, "children": [], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 19}}, {"id": 700, "type": ">", "text": ">", "parent": 698, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 21}}, {"id": 701, "type": "number_literal", "text": "0", "parent": 698, "children": [], "start_point": {"row": 207, "column": 22}, "end_point": {"row": 207, "column": 23}}, {"id": 702, "type": "?", "text": "?", "parent": 696, "children": [], "start_point": {"row": 207, "column": 25}, "end_point": {"row": 207, "column": 26}}, {"id": 703, "type": "identifier", "text": "ORTE_SUCCESS", "parent": 696, "children": [], "start_point": {"row": 207, "column": 27}, "end_point": {"row": 207, "column": 39}}, {"id": 704, "type": "identifier", "text": "ORTE_ERR_NOT_FOUND", "parent": 696, "children": [], "start_point": {"row": 207, "column": 42}, "end_point": {"row": 207, "column": 60}}]}, "node_categories": {"declarations": {"functions": [12, 14, 217, 219, 534, 536], "variables": [17, 22, 27, 222, 227, 234, 237, 240, 243, 246, 251, 256, 261, 539, 544, 547, 553, 622], "classes": [228, 229], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [32, 33, 34, 42, 47, 48, 49, 54, 62, 66, 69, 73, 74, 75, 80, 82, 94, 97, 98, 103, 109, 110, 111, 117, 118, 120, 123, 126, 127, 130, 131, 136, 137, 140, 143, 146, 147, 151, 154, 157, 158, 162, 165, 166, 169, 175, 178, 179, 182, 183, 188, 189, 192, 195, 198, 199, 203, 206, 209, 210, 213, 270, 271, 272, 278, 284, 290, 291, 296, 299, 300, 310, 314, 320, 321, 326, 327, 332, 336, 337, 342, 346, 347, 352, 356, 357, 364, 365, 372, 378, 384, 390, 396, 402, 408, 414, 420, 424, 428, 435, 441, 444, 445, 449, 450, 453, 456, 457, 460, 467, 468, 472, 476, 481, 490, 496, 497, 502, 507, 512, 515, 516, 519, 525, 528, 529, 561, 564, 565, 573, 574, 575, 581, 582, 585, 588, 589, 592, 593, 601, 604, 605, 608, 611, 614, 615, 629, 638, 643, 644, 647, 648, 653, 654, 659, 660, 661, 662, 668, 671, 672, 675, 676, 677, 681, 685, 688, 691, 692, 697, 698], "assignments": [39, 53, 59, 85, 90, 106, 306, 317, 325, 335, 345, 355, 363, 371, 377, 383, 389, 395, 401, 407, 413, 419, 427, 434, 473, 487, 598, 618, 635], "loops": [89, 305, 466, 580, 597], "conditionals": [15, 18, 21, 23, 26, 29, 30, 31, 35, 36, 40, 43, 44, 46, 50, 51, 52, 55, 56, 58, 60, 63, 65, 67, 68, 70, 71, 72, 76, 81, 83, 84, 86, 91, 95, 99, 100, 104, 107, 112, 113, 114, 115, 116, 119, 121, 122, 124, 128, 129, 132, 133, 135, 138, 139, 141, 142, 144, 145, 148, 149, 150, 152, 153, 155, 159, 160, 163, 167, 168, 171, 174, 176, 180, 181, 184, 185, 187, 190, 191, 193, 194, 196, 197, 200, 201, 202, 204, 205, 207, 211, 212, 214, 216, 220, 223, 226, 230, 233, 236, 239, 242, 244, 245, 250, 252, 255, 257, 260, 263, 264, 266, 269, 276, 281, 283, 285, 287, 288, 289, 295, 297, 301, 302, 304, 307, 311, 313, 315, 318, 322, 323, 324, 328, 329, 330, 334, 338, 339, 340, 344, 348, 349, 350, 354, 358, 359, 360, 362, 366, 367, 368, 370, 373, 374, 376, 379, 380, 385, 386, 388, 391, 392, 394, 397, 398, 400, 403, 404, 406, 409, 410, 412, 415, 416, 421, 422, 426, 429, 430, 436, 437, 442, 446, 447, 448, 451, 452, 454, 458, 459, 462, 465, 474, 477, 479, 480, 482, 484, 485, 488, 491, 493, 494, 495, 501, 503, 505, 506, 508, 510, 513, 517, 518, 521, 524, 526, 530, 531, 537, 540, 543, 546, 550, 554, 557, 560, 562, 566, 567, 568, 569, 570, 572, 576, 583, 584, 586, 590, 591, 594, 595, 596, 599, 602, 606, 607, 609, 612, 616, 617, 619, 621, 623, 627, 631, 634, 636, 639, 641, 642, 645, 649, 650, 652, 655, 656, 657, 658, 663, 664, 665, 667, 669, 673, 674, 678, 679, 680, 682, 684, 686, 689, 693, 694, 696, 699, 703, 704], "returns": [161, 282, 303, 532, 695], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 38, 78, 88, 93, 102, 268, 279, 309, 382, 533, 552, 701], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "mca_oob_tcp_msg_matched", "text_snippet": "static void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)\n{\n int i,rc"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)"}, {"node_id": 217, "universal_type": "function", "name": "mca_oob_tcp_recv_nb", "text_snippet": "int mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n "}, {"node_id": 219, "universal_type": "function", "name": "iovec*", "text_snippet": "mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int "}, {"node_id": 534, "universal_type": "function", "name": "mca_oob_tcp_recv_cancel", "text_snippet": "int mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)\n{\n int matched = 0;\n "}, {"node_id": 536, "universal_type": "function", "name": "tag)", "text_snippet": "mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)"}], "class_declarations": [{"node_id": 228, "universal_type": "class", "name": "iovec", "text_snippet": "struct iovec"}, {"node_id": 229, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"orte_config.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"orte/types.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"orte/runtime/orte_globals.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"orte/mca/oob/tcp/oob_tcp.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana\n * University Research and Technology\n * Corporation. All rights reserved.\n * Copyright (c) 2004-2005 The University of Tennessee and The University\n * of Tennessee Research Foundation. All rights\n * reserved.\n * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, \n * University of Stuttgart. All rights reserved.\n * Copyright (c) 2004-2005 The Regents of the University of California.\n * All rights reserved.\n * Copyright (c) 2006-2007 Los Alamos National Security, LLC. \n * All rights reserved.\n * $COPYRIGHT$\n * \n * Additional copyrights may follow\n * \n * $HEADER$\n */\n#include \"orte_config.h\"\n#include \"orte/types.h\"\n\n#include \"orte/runtime/orte_globals.h\"\n\n#include \"orte/mca/oob/tcp/oob_tcp.h\"\n\n\n/**\n * Process a matched posted receive\n *\n * Note that the match lock must be held prior to the call.\n */\n\nstatic void mca_oob_tcp_msg_matched(mca_oob_tcp_msg_t* msg, mca_oob_tcp_msg_t* match)\n{\n int i,rc;\n if(match->msg_rc < 0) {\n rc = match->msg_rc; \n\n } else {\n\n if (msg->msg_flags & ORTE_RML_ALLOC) match->msg_flags |= ORTE_RML_ALLOC;\n /* if we are just doing peek, return bytes without dequeing message */\n rc = mca_oob_tcp_msg_copy(match, msg->msg_uiov, msg->msg_ucnt);\n if(rc >= 0 && ORTE_RML_TRUNC & msg->msg_flags) {\n rc = 0;\n for(i=1; i<match->msg_rwcnt+1; i++)\n rc += match->msg_rwiov[i].iov_len;\n }\n if(ORTE_RML_PEEK & msg->msg_flags) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n return;\n }\n }\n\n /* otherwise remove the match */\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_recv, (opal_list_item_t *) match);\n\n /* invoke callback */\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n msg->msg_cbfunc(rc, \n &match->msg_peer, \n msg->msg_uiov, \n msg->msg_ucnt, \n match->msg_hdr.msg_tag, \n msg->msg_cbdata);\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n\n /* return match to free list */\n MCA_OOB_TCP_MSG_RETURN(match);\n}\n\n/*\n * Non-blocking version of mca_oob_recv().\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param msg (IN) Array of iovecs describing user buffers and lengths.\n * @param count (IN) Number of elements in iovec array.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @param flags (IN) May be MCA_OOB_PEEK to return up to size bytes of msg w/out removing it from the queue,\n * @param cbfunc (IN) Callback function on recv completion.\n * @param cbdata (IN) User data that is passed to callback function.\n * @return OMPI error code (<0) on error.\n */\nint mca_oob_tcp_recv_nb(\n orte_process_name_t* peer, \n struct iovec* iov, \n int count,\n int tag,\n int flags, \n orte_rml_callback_fn_t cbfunc, \n void* cbdata)\n{\n mca_oob_tcp_msg_t *msg;\n mca_oob_tcp_msg_t *match;\n int i, rc, size = 0;\n\n /* validate params */\n if(NULL == iov || 0 == count) {\n return ORTE_ERR_BAD_PARAM;\n }\n\n /* allocate/initialize the posted receive */\n MCA_OOB_TCP_MSG_ALLOC(msg, rc);\n if(NULL == msg) {\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return rc;\n }\n\n /* determine overall size of user supplied buffer */\n for(i = 0; i < count; i++) {\n size += iov[i].iov_len;\n }\n\n /* fill in the header */\n msg->msg_hdr.msg_origin = *peer;\n msg->msg_hdr.msg_src = *ORTE_PROC_MY_NAME;\n msg->msg_hdr.msg_dst = *peer;\n msg->msg_hdr.msg_size = size;\n msg->msg_hdr.msg_tag = tag;\n msg->msg_type = MCA_OOB_TCP_POSTED;\n msg->msg_rc = 0;\n msg->msg_flags = flags;\n msg->msg_uiov = iov;\n msg->msg_ucnt = count;\n msg->msg_cbfunc = cbfunc;\n msg->msg_cbdata = cbdata;\n msg->msg_complete = false;\n msg->msg_peer = *peer;\n msg->msg_rwbuf = NULL;\n msg->msg_rwiov = NULL;\n\n /* acquire the match lock */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n if(flags & ORTE_RML_PERSISTENT) {\n\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n while(NULL != (match = mca_oob_tcp_msg_match_recv(peer,tag))) {\n mca_oob_tcp_msg_matched(msg, match);\n }\n\n } else {\n\n /* check to see if a matching receive is on the list */\n match = mca_oob_tcp_msg_match_recv(peer, tag);\n if(NULL != match) {\n mca_oob_tcp_msg_matched(msg, match);\n MCA_OOB_TCP_MSG_RETURN(msg);\n } else {\n opal_list_append(&mca_oob_tcp_component.tcp_msg_post, (opal_list_item_t *) msg);\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return 0;\n}\n\n\n/*\n * Cancel non-blocking recv.\n *\n * @param peer (IN) Opaque name of peer process or ORTE_NAME_WILDCARD for wildcard receive.\n * @param tag (IN) User supplied tag for matching send/recv.\n * @return OMPI error code (<0) on error or number of bytes actually received.\n */\n\nint mca_oob_tcp_recv_cancel(\n orte_process_name_t* name, \n int tag)\n{\n int matched = 0;\n opal_list_item_t *item, *next;\n\n /* wait for any previously matched messages to be processed */\n OPAL_THREAD_LOCK(&mca_oob_tcp_component.tcp_match_lock);\n#if ORTE_ENABLE_PROGRESS_THREADS\n if(opal_event_progress_thread() == false) {\n while(mca_oob_tcp_component.tcp_match_count) {\n opal_condition_wait(\n &mca_oob_tcp_component.tcp_match_cond, \n &mca_oob_tcp_component.tcp_match_lock);\n }\n }\n#endif\n\n /* remove any matching posted receives */\n for(item = opal_list_get_first(&mca_oob_tcp_component.tcp_msg_post);\n item != opal_list_get_end(&mca_oob_tcp_component.tcp_msg_post);\n item = next) {\n mca_oob_tcp_msg_t* msg = (mca_oob_tcp_msg_t*)item;\n next = opal_list_get_next(item);\n\n if (OPAL_EQUAL == opal_dss.compare(name, &msg->msg_peer, ORTE_NAME)) {\n if (msg->msg_hdr.msg_tag == tag) {\n opal_list_remove_item(&mca_oob_tcp_component.tcp_msg_post, &msg->super.super);\n MCA_OOB_TCP_MSG_RETURN(msg);\n matched++;\n }\n }\n }\n OPAL_THREAD_UNLOCK(&mca_oob_tcp_component.tcp_match_lock);\n return (matched > 0) ? ORTE_SUCCESS : ORTE_ERR_NOT_FOUND;\n}\n\n"}
141
c
/*------------------------------------------------------------------------------ * * * Copyright (c) 2018-Present Pivotal Software, Inc * *------------------------------------------------------------------------------ */ #ifndef PLC_PYQUOTE_H #define PLC_PYQUOTE_H #include <Python.h> PyObject * PLy_quote_literal(PyObject *self, PyObject *args); PyObject * PLy_quote_nullable(PyObject *self, PyObject *args); PyObject * PLy_quote_ident(PyObject *self, PyObject *args); #endif /* PLC_PYQUOTE_H */
34.93
14
(translation_unit) "/*------------------------------------------------------------------------------\n *\n *\n * Copyright (c) 2018-Present Pivotal Software, Inc\n *\n *------------------------------------------------------------------------------\n */\n\n#ifndef PLC_PYQUOTE_H\n#define PLC_PYQUOTE_H\n\n#include <Python.h>\n\nPyObject * PLy_quote_literal(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_nullable(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_ident(PyObject *self, PyObject *args);\n\n#endif /* PLC_PYQUOTE_H */\n" (comment) "/*------------------------------------------------------------------------------\n *\n *\n * Copyright (c) 2018-Present Pivotal Software, Inc\n *\n *------------------------------------------------------------------------------\n */" (preproc_ifdef) "#ifndef PLC_PYQUOTE_H\n#define PLC_PYQUOTE_H\n\n#include <Python.h>\n\nPyObject * PLy_quote_literal(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_nullable(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_ident(PyObject *self, PyObject *args);\n\n#endif" (#ifndef) "#ifndef" (identifier) "PLC_PYQUOTE_H" (preproc_def) "#define PLC_PYQUOTE_H\n" (#define) "#define" (identifier) "PLC_PYQUOTE_H" (preproc_include) "#include <Python.h>\n" (#include) "#include" (system_lib_string) "<Python.h>" (declaration) "PyObject * PLy_quote_literal(PyObject *self, PyObject *args);" (type_identifier) "PyObject" (pointer_declarator) "* PLy_quote_literal(PyObject *self, PyObject *args)" (*) "*" (function_declarator) "PLy_quote_literal(PyObject *self, PyObject *args)" (identifier) "PLy_quote_literal" (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" ()) ")" (;) ";" (declaration) "PyObject * PLy_quote_nullable(PyObject *self, PyObject *args);" (type_identifier) "PyObject" (pointer_declarator) "* PLy_quote_nullable(PyObject *self, PyObject *args)" (*) "*" (function_declarator) "PLy_quote_nullable(PyObject *self, PyObject *args)" (identifier) "PLy_quote_nullable" (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" ()) ")" (;) ";" (declaration) "PyObject * PLy_quote_ident(PyObject *self, PyObject *args);" (type_identifier) "PyObject" (pointer_declarator) "* PLy_quote_ident(PyObject *self, PyObject *args)" (*) "*" (function_declarator) "PLy_quote_ident(PyObject *self, PyObject *args)" (identifier) "PLy_quote_ident" (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" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* PLC_PYQUOTE_H */"
76
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.93, "nodes": 61, "errors": 0, "source_hash": "c7109f1be4c27a1892096bc1294a1e1843cc48e9d258ec84457b2f81b78d1af5", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PLC_PYQUOTE_H\n#define PLC_PYQUOTE_H\n\n#include <Python.h>\n\nPyObject * PLy_quote_literal(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_nullable(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_ident(PyObject *self, PyObject *args);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 26, 43, 60], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 19, "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": "PLC_PYQUOTE_H", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define PLC_PYQUOTE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "PLC_PYQUOTE_H", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <Python.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": "<Python.h>", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 9, "type": "declaration", "text": "PyObject * PLy_quote_literal(PyObject *self, PyObject *args);", "parent": 0, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 61}}, {"id": 10, "type": "type_identifier", "text": "PyObject", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 11, "type": "pointer_declarator", "text": "* PLy_quote_literal(PyObject *self, PyObject *args)", "parent": 9, "children": [12, 13], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 60}}, {"id": 12, "type": "*", "text": "*", "parent": 11, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 13, "type": "function_declarator", "text": "PLy_quote_literal(PyObject *self, PyObject *args)", "parent": 11, "children": [14, 15], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 60}}, {"id": 14, "type": "identifier", "text": "PLy_quote_literal", "parent": 13, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 28}}, {"id": 15, "type": "parameter_list", "text": "(PyObject *self, PyObject *args)", "parent": 13, "children": [16, 21], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 60}}, {"id": 16, "type": "parameter_declaration", "text": "PyObject *self", "parent": 15, "children": [17, 18], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 43}}, {"id": 17, "type": "type_identifier", "text": "PyObject", "parent": 16, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 18, "type": "pointer_declarator", "text": "*self", "parent": 16, "children": [19, 20], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 43}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 20, "type": "identifier", "text": "self", "parent": 18, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 43}}, {"id": 21, "type": "parameter_declaration", "text": "PyObject *args", "parent": 15, "children": [22, 23], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 59}}, {"id": 22, "type": "type_identifier", "text": "PyObject", "parent": 21, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 53}}, {"id": 23, "type": "pointer_declarator", "text": "*args", "parent": 21, "children": [24, 25], "start_point": {"row": 13, "column": 54}, "end_point": {"row": 13, "column": 59}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 13, "column": 54}, "end_point": {"row": 13, "column": 55}}, {"id": 25, "type": "identifier", "text": "args", "parent": 23, "children": [], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 59}}, {"id": 26, "type": "declaration", "text": "PyObject * PLy_quote_nullable(PyObject *self, PyObject *args);", "parent": 0, "children": [27, 28], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 62}}, {"id": 27, "type": "type_identifier", "text": "PyObject", "parent": 26, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 28, "type": "pointer_declarator", "text": "* PLy_quote_nullable(PyObject *self, PyObject *args)", "parent": 26, "children": [29, 30], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 61}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 30, "type": "function_declarator", "text": "PLy_quote_nullable(PyObject *self, PyObject *args)", "parent": 28, "children": [31, 32], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 61}}, {"id": 31, "type": "identifier", "text": "PLy_quote_nullable", "parent": 30, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 29}}, {"id": 32, "type": "parameter_list", "text": "(PyObject *self, PyObject *args)", "parent": 30, "children": [33, 38], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 61}}, {"id": 33, "type": "parameter_declaration", "text": "PyObject *self", "parent": 32, "children": [34, 35], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 44}}, {"id": 34, "type": "type_identifier", "text": "PyObject", "parent": 33, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 38}}, {"id": 35, "type": "pointer_declarator", "text": "*self", "parent": 33, "children": [36, 37], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 44}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 40}}, {"id": 37, "type": "identifier", "text": "self", "parent": 35, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 44}}, {"id": 38, "type": "parameter_declaration", "text": "PyObject *args", "parent": 32, "children": [39, 40], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 60}}, {"id": 39, "type": "type_identifier", "text": "PyObject", "parent": 38, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 54}}, {"id": 40, "type": "pointer_declarator", "text": "*args", "parent": 38, "children": [41, 42], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 60}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 56}}, {"id": 42, "type": "identifier", "text": "args", "parent": 40, "children": [], "start_point": {"row": 15, "column": 56}, "end_point": {"row": 15, "column": 60}}, {"id": 43, "type": "declaration", "text": "PyObject * PLy_quote_ident(PyObject *self, PyObject *args);", "parent": 0, "children": [44, 45], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 59}}, {"id": 44, "type": "type_identifier", "text": "PyObject", "parent": 43, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 45, "type": "pointer_declarator", "text": "* PLy_quote_ident(PyObject *self, PyObject *args)", "parent": 43, "children": [46, 47], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 58}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 47, "type": "function_declarator", "text": "PLy_quote_ident(PyObject *self, PyObject *args)", "parent": 45, "children": [48, 49], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 58}}, {"id": 48, "type": "identifier", "text": "PLy_quote_ident", "parent": 47, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 26}}, {"id": 49, "type": "parameter_list", "text": "(PyObject *self, PyObject *args)", "parent": 47, "children": [50, 55], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 58}}, {"id": 50, "type": "parameter_declaration", "text": "PyObject *self", "parent": 49, "children": [51, 52], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 41}}, {"id": 51, "type": "type_identifier", "text": "PyObject", "parent": 50, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 35}}, {"id": 52, "type": "pointer_declarator", "text": "*self", "parent": 50, "children": [53, 54], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 41}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 54, "type": "identifier", "text": "self", "parent": 52, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 41}}, {"id": 55, "type": "parameter_declaration", "text": "PyObject *args", "parent": 49, "children": [56, 57], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 57}}, {"id": 56, "type": "type_identifier", "text": "PyObject", "parent": 55, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 51}}, {"id": 57, "type": "pointer_declarator", "text": "*args", "parent": 55, "children": [58, 59], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 57}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 53}}, {"id": 59, "type": "identifier", "text": "args", "parent": 57, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 57}}, {"id": 60, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}]}, "node_categories": {"declarations": {"functions": [13, 30, 47], "variables": [9, 16, 21, 26, 33, 38, 43, 50, 55], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 14, 17, 20, 22, 25, 27, 31, 34, 37, 39, 42, 44, 48, 51, 54, 56, 59, 60], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "unknown", "text_snippet": "PLy_quote_literal(PyObject *self, PyObject *args)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "PLy_quote_nullable(PyObject *self, PyObject *args)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "PLy_quote_ident(PyObject *self, PyObject *args)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <Python.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*------------------------------------------------------------------------------\n *\n *\n * Copyright (c) 2018-Present Pivotal Software, Inc\n *\n *------------------------------------------------------------------------------\n */\n\n#ifndef PLC_PYQUOTE_H\n#define PLC_PYQUOTE_H\n\n#include <Python.h>\n\nPyObject * PLy_quote_literal(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_nullable(PyObject *self, PyObject *args);\n\nPyObject * PLy_quote_ident(PyObject *self, PyObject *args);\n\n#endif /* PLC_PYQUOTE_H */\n"}
142
c
#ifndef FURNITURE_H #define FURNITURE_H #include <QPointF> #include <QRectF> #include <QDebug> #include <QPixmap> class Furniture { private: QPixmap *image; QString name; QPointF position; QRectF size; QString image_dir; public: Furniture(); Furniture(const QString& name, const QString imageFileName); int setName (const QString& name); int setPosition (const QPointF& position); int setSize (const QRectF& size); int setImage (const QString& imageFileName); QString getName() const; QPointF getPosition() const; QRectF getSize() const; QPixmap* getImage(); QString getImageDir(); bool isCollide(const QRectF& other); ~Furniture(); }; #endif // FURNITURE_H
19.51
39
(translation_unit) "#ifndef FURNITURE_H \n#define FURNITURE_H \n \n#include <QPointF> \n#include <QRectF> \n#include <QDebug> \n#include <QPixmap> \n \nclass Furniture \n{ \nprivate: \n QPixmap *image; \n QString name; \n QPointF position; \n QRectF size; \n QString image_dir; \n \n \npublic: \n Furniture(); \n Furniture(const QString& name, const QString imageFileName); \n \n int setName (const QString& name); \n int setPosition (const QPointF& position); \n int setSize (const QRectF& size); \n int setImage (const QString& imageFileName); \n \n QString getName() const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage(); \n QString getImageDir(); \n \n bool isCollide(const QRectF& other); \n \n ~Furniture(); \n}; \n \n#endif // FURNITURE_H \n" (preproc_ifdef) "#ifndef FURNITURE_H \n#define FURNITURE_H \n \n#include <QPointF> \n#include <QRectF> \n#include <QDebug> \n#include <QPixmap> \n \nclass Furniture \n{ \nprivate: \n QPixmap *image; \n QString name; \n QPointF position; \n QRectF size; \n QString image_dir; \n \n \npublic: \n Furniture(); \n Furniture(const QString& name, const QString imageFileName); \n \n int setName (const QString& name); \n int setPosition (const QPointF& position); \n int setSize (const QRectF& size); \n int setImage (const QString& imageFileName); \n \n QString getName() const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage(); \n QString getImageDir(); \n \n bool isCollide(const QRectF& other); \n \n ~Furniture(); \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "FURNITURE_H" (preproc_def) "#define FURNITURE_H \n" (#define) "#define" (identifier) "FURNITURE_H" (preproc_include) "#include <QPointF> \n" (#include) "#include" (system_lib_string) "<QPointF>" (preproc_include) "#include <QRectF> \n" (#include) "#include" (system_lib_string) "<QRectF>" (preproc_include) "#include <QDebug> \n" (#include) "#include" (system_lib_string) "<QDebug>" (preproc_include) "#include <QPixmap> \n" (#include) "#include" (system_lib_string) "<QPixmap>" (function_definition) "class Furniture \n{ \nprivate: \n QPixmap *image; \n QString name; \n QPointF position; \n QRectF size; \n QString image_dir; \n \n \npublic: \n Furniture(); \n Furniture(const QString& name, const QString imageFileName); \n \n int setName (const QString& name); \n int setPosition (const QPointF& position); \n int setSize (const QRectF& size); \n int setImage (const QString& imageFileName); \n \n QString getName() const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage(); \n QString getImageDir(); \n \n bool isCollide(const QRectF& other); \n \n ~Furniture(); \n}" (type_identifier) "class" (identifier) "Furniture" (compound_statement) "{ \nprivate: \n QPixmap *image; \n QString name; \n QPointF position; \n QRectF size; \n QString image_dir; \n \n \npublic: \n Furniture(); \n Furniture(const QString& name, const QString imageFileName); \n \n int setName (const QString& name); \n int setPosition (const QPointF& position); \n int setSize (const QRectF& size); \n int setImage (const QString& imageFileName); \n \n QString getName() const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage(); \n QString getImageDir(); \n \n bool isCollide(const QRectF& other); \n \n ~Furniture(); \n}" ({) "{" (labeled_statement) "private: \n QPixmap *image;" (statement_identifier) "private" (:) ":" (declaration) "QPixmap *image;" (type_identifier) "QPixmap" (pointer_declarator) "*image" (*) "*" (identifier) "image" (;) ";" (declaration) "QString name;" (type_identifier) "QString" (identifier) "name" (;) ";" (declaration) "QPointF position;" (type_identifier) "QPointF" (identifier) "position" (;) ";" (declaration) "QRectF size;" (type_identifier) "QRectF" (identifier) "size" (;) ";" (declaration) "QString image_dir;" (type_identifier) "QString" (identifier) "image_dir" (;) ";" (labeled_statement) "public: \n Furniture();" (statement_identifier) "public" (:) ":" (expression_statement) "Furniture();" (call_expression) "Furniture()" (identifier) "Furniture" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "Furniture(const QString& name, const" (comma_expression) "Furniture(const QString& name, const" (binary_expression) "Furniture(const QString& name" (identifier) "Furniture" (ERROR) "(const QString" (() "(" (type_descriptor) "const QString" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (&) "&" (identifier) "name" (,) "," (identifier) "const" (;) "" (declaration) "QString imageFileName);" (type_identifier) "QString" (identifier) "imageFileName" (ERROR) ")" ()) ")" (;) ";" (declaration) "int setName (const QString& name);" (primitive_type) "int" (function_declarator) "setName (const QString& name)" (identifier) "setName" (parameter_list) "(const QString& name)" (() "(" (parameter_declaration) "const QString& name" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "name" ()) ")" (;) ";" (declaration) "int setPosition (const QPointF& position);" (primitive_type) "int" (function_declarator) "setPosition (const QPointF& position)" (identifier) "setPosition" (parameter_list) "(const QPointF& position)" (() "(" (parameter_declaration) "const QPointF& position" (type_qualifier) "const" (const) "const" (type_identifier) "QPointF" (ERROR) "&" (&) "&" (identifier) "position" ()) ")" (;) ";" (declaration) "int setSize (const QRectF& size);" (primitive_type) "int" (function_declarator) "setSize (const QRectF& size)" (identifier) "setSize" (parameter_list) "(const QRectF& size)" (() "(" (parameter_declaration) "const QRectF& size" (type_qualifier) "const" (const) "const" (type_identifier) "QRectF" (ERROR) "&" (&) "&" (identifier) "size" ()) ")" (;) ";" (declaration) "int setImage (const QString& imageFileName);" (primitive_type) "int" (function_declarator) "setImage (const QString& imageFileName)" (identifier) "setImage" (parameter_list) "(const QString& imageFileName)" (() "(" (parameter_declaration) "const QString& imageFileName" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "imageFileName" ()) ")" (;) ";" (ERROR) "QString getName() const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage(); \n QString getImageDir(); \n \n bool isCollide(const QRectF& other); \n \n ~Furniture();" (type_identifier) "QString" (function_declarator) "getName()" (identifier) "getName" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; \n QPointF getPosition() const; \n QRectF getSize() const; \n QPixmap* getImage();" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "QPointF" (ERROR) "getPosition() const; \n QRectF getSize() const; \n QPixmap" (function_declarator) "getPosition() const" (identifier) "getPosition" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "QRectF" (function_declarator) "getSize() const" (identifier) "getSize" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "QPixmap" (pointer_declarator) "* getImage()" (*) "*" (function_declarator) "getImage()" (identifier) "getImage" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "QString getImageDir();" (type_identifier) "QString" (function_declarator) "getImageDir()" (identifier) "getImageDir" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool isCollide(const QRectF& other);" (primitive_type) "bool" (function_declarator) "isCollide(const QRectF& other)" (identifier) "isCollide" (parameter_list) "(const QRectF& other)" (() "(" (parameter_declaration) "const QRectF& other" (type_qualifier) "const" (const) "const" (type_identifier) "QRectF" (ERROR) "&" (&) "&" (identifier) "other" ()) ")" (;) ";" (ERROR) "~" (~) "~" (identifier) "Furniture" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// FURNITURE_H "
212
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 19.51, "nodes": 122, "errors": 0, "source_hash": "d6a0c42d6c9a85c52ac507a2ae6e11dd71796180063c7f5578170da6f7f0fdbb", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FURNITURE_H\r\n#define FURNITURE_H\r\n\r\n#include <QPointF>\r\n#include <QRectF>\r\n#include <QDebug>\r\n#include <QPixmap>\r\n\r\nclass Furniture\r\n{\r\nprivate:\r\n QPixmap *image;\r\n QString name;\r\n QPointF position;\r\n QRectF size;\r\n QString image_dir;\r\n\r\n\r\npublic:\r\n Furniture();\r\n Furniture(const QString& name, const QString imageFileName);\r\n\r\n int setName\t\t(const QString& name);\r\n int setPosition (const QPointF& position);\r\n int setSize\t (const QRectF& size);\r\n int setImage\t(const QString& imageFileName);\r\n\r\n QString getName() \t const;\r\n QPointF getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap* getImage();\r\n QString getImageDir();\r\n\r\n bool isCollide(const QRectF& other);\r\n\r\n ~Furniture();\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 121], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 38, "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": "FURNITURE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define FURNITURE_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": "FURNITURE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <QPointF>\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QPointF>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <QRectF>\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<QRectF>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <QDebug>\r\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QDebug>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <QPixmap>\r\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": "<QPixmap>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 18, "type": "function_definition", "text": "class Furniture\r\n{\r\nprivate:\r\n QPixmap *image;\r\n QString name;\r\n QPointF position;\r\n QRectF size;\r\n QString image_dir;\r\n\r\n\r\npublic:\r\n Furniture();\r\n Furniture(const QString& name, const QString imageFileName);\r\n\r\n int setName\t\t(const QString& name);\r\n int setPosition (const QPointF& position);\r\n int setSize\t (const QRectF& size);\r\n int setImage\t(const QString& imageFileName);\r\n\r\n QString getName() \t const;\r\n QPointF getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap* getImage();\r\n QString getImageDir();\r\n\r\n bool isCollide(const QRectF& other);\r\n\r\n ~Furniture();\r\n}", "parent": 0, "children": [19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 19, "type": "identifier", "text": "Furniture", "parent": 18, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 15}}, {"id": 20, "type": "labeled_statement", "text": "private:\r\n QPixmap *image;", "parent": 18, "children": [21], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 20}}, {"id": 21, "type": "declaration", "text": "QPixmap *image;", "parent": 20, "children": [22, 23], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 20}}, {"id": 22, "type": "type_identifier", "text": "QPixmap", "parent": 21, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 23, "type": "pointer_declarator", "text": "*image", "parent": 21, "children": [24, 25], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 19}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 14}}, {"id": 25, "type": "identifier", "text": "image", "parent": 23, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 19}}, {"id": 26, "type": "declaration", "text": "QString name;", "parent": 18, "children": [27, 28], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 18}}, {"id": 27, "type": "type_identifier", "text": "QString", "parent": 26, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 11}}, {"id": 28, "type": "identifier", "text": "name", "parent": 26, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 29, "type": "declaration", "text": "QPointF position;", "parent": 18, "children": [30, 31], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 22}}, {"id": 30, "type": "type_identifier", "text": "QPointF", "parent": 29, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 31, "type": "identifier", "text": "position", "parent": 29, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 21}}, {"id": 32, "type": "declaration", "text": "QRectF size;", "parent": 18, "children": [33, 34], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 18}}, {"id": 33, "type": "type_identifier", "text": "QRectF", "parent": 32, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 34, "type": "identifier", "text": "size", "parent": 32, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 17}}, {"id": 35, "type": "declaration", "text": "QString image_dir;", "parent": 18, "children": [36, 37], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 36, "type": "type_identifier", "text": "QString", "parent": 35, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 37, "type": "identifier", "text": "image_dir", "parent": 35, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 21}}, {"id": 38, "type": "labeled_statement", "text": "public:\r\n Furniture();", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 16}}, {"id": 39, "type": "call_expression", "text": "Furniture()", "parent": 38, "children": [40, 41], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 15}}, {"id": 40, "type": "identifier", "text": "Furniture", "parent": 39, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 13}}, {"id": 41, "type": "argument_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 15}}, {"id": 42, "type": "comma_expression", "text": "Furniture(const QString& name, const", "parent": 18, "children": [43], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 40}}, {"id": 43, "type": "binary_expression", "text": "Furniture(const QString& name", "parent": 42, "children": [44, 45, 48], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 33}}, {"id": 44, "type": "identifier", "text": "Furniture", "parent": 43, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 13}}, {"id": 45, "type": "ERROR", "text": "(const QString", "parent": 43, "children": [46], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 27}}, {"id": 46, "type": "type_descriptor", "text": "const QString", "parent": 45, "children": [47], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 27}}, {"id": 47, "type": "type_identifier", "text": "QString", "parent": 46, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 27}}, {"id": 48, "type": "identifier", "text": "name", "parent": 43, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 33}}, {"id": 49, "type": "declaration", "text": "QString imageFileName);", "parent": 18, "children": [50, 51], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 64}}, {"id": 50, "type": "type_identifier", "text": "QString", "parent": 49, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 48}}, {"id": 51, "type": "identifier", "text": "imageFileName", "parent": 49, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 62}}, {"id": 52, "type": "declaration", "text": "int setName\t\t(const QString& name);", "parent": 18, "children": [53, 54], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 39}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 7}}, {"id": 54, "type": "function_declarator", "text": "setName\t\t(const QString& name)", "parent": 52, "children": [55, 56], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 38}}, {"id": 55, "type": "identifier", "text": "setName", "parent": 54, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 15}}, {"id": 56, "type": "parameter_list", "text": "(const QString& name)", "parent": 54, "children": [57], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 38}}, {"id": 57, "type": "parameter_declaration", "text": "const QString& name", "parent": 56, "children": [58, 59], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 37}}, {"id": 58, "type": "type_identifier", "text": "QString", "parent": 57, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 31}}, {"id": 59, "type": "identifier", "text": "name", "parent": 57, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 37}}, {"id": 60, "type": "declaration", "text": "int setPosition (const QPointF& position);", "parent": 18, "children": [61, 62], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 46}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 62, "type": "function_declarator", "text": "setPosition (const QPointF& position)", "parent": 60, "children": [63, 64], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 45}}, {"id": 63, "type": "identifier", "text": "setPosition", "parent": 62, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 19}}, {"id": 64, "type": "parameter_list", "text": "(const QPointF& position)", "parent": 62, "children": [65], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 45}}, {"id": 65, "type": "parameter_declaration", "text": "const QPointF& position", "parent": 64, "children": [66, 67], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 44}}, {"id": 66, "type": "type_identifier", "text": "QPointF", "parent": 65, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 34}}, {"id": 67, "type": "identifier", "text": "position", "parent": 65, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 44}}, {"id": 68, "type": "declaration", "text": "int setSize\t (const QRectF& size);", "parent": 18, "children": [69, 70], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 41}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 7}}, {"id": 70, "type": "function_declarator", "text": "setSize\t (const QRectF& size)", "parent": 68, "children": [71, 72], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 40}}, {"id": 71, "type": "identifier", "text": "setSize", "parent": 70, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 15}}, {"id": 72, "type": "parameter_list", "text": "(const QRectF& size)", "parent": 70, "children": [73], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 40}}, {"id": 73, "type": "parameter_declaration", "text": "const QRectF& size", "parent": 72, "children": [74, 75], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 39}}, {"id": 74, "type": "type_identifier", "text": "QRectF", "parent": 73, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 33}}, {"id": 75, "type": "identifier", "text": "size", "parent": 73, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 39}}, {"id": 76, "type": "declaration", "text": "int setImage\t(const QString& imageFileName);", "parent": 18, "children": [77, 78], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 48}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 78, "type": "function_declarator", "text": "setImage\t(const QString& imageFileName)", "parent": 76, "children": [79, 80], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 47}}, {"id": 79, "type": "identifier", "text": "setImage", "parent": 78, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 16}}, {"id": 80, "type": "parameter_list", "text": "(const QString& imageFileName)", "parent": 78, "children": [81], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 47}}, {"id": 81, "type": "parameter_declaration", "text": "const QString& imageFileName", "parent": 80, "children": [82, 83], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 46}}, {"id": 82, "type": "type_identifier", "text": "QString", "parent": 81, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 31}}, {"id": 83, "type": "identifier", "text": "imageFileName", "parent": 81, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 46}}, {"id": 84, "type": "ERROR", "text": "QString getName() \t const;\r\n QPointF getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap* getImage();\r\n QString getImageDir();\r\n\r\n bool isCollide(const QRectF& other);\r\n\r\n ~Furniture();", "parent": 18, "children": [85, 86, 89, 105, 110, 118, 120], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 35, "column": 17}}, {"id": 85, "type": "type_identifier", "text": "QString", "parent": 84, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 11}}, {"id": 86, "type": "function_declarator", "text": "getName()", "parent": 84, "children": [87, 88], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 22}}, {"id": 87, "type": "identifier", "text": "getName", "parent": 86, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 20}}, {"id": 88, "type": "parameter_list", "text": "()", "parent": 86, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 22}}, {"id": 89, "type": "declaration", "text": "const;\r\n QPointF getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap* getImage();", "parent": 84, "children": [90, 91, 100], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 30, "column": 24}}, {"id": 90, "type": "type_identifier", "text": "QPointF", "parent": 89, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 11}}, {"id": 91, "type": "ERROR", "text": "getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap", "parent": 89, "children": [92, 95, 96, 99], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 30, "column": 11}}, {"id": 92, "type": "function_declarator", "text": "getPosition() const", "parent": 91, "children": [93, 94], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 32}}, {"id": 93, "type": "identifier", "text": "getPosition", "parent": 92, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 24}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 26}}, {"id": 95, "type": "identifier", "text": "QRectF", "parent": 91, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 96, "type": "function_declarator", "text": "getSize() const", "parent": 91, "children": [97, 98], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 32}}, {"id": 97, "type": "identifier", "text": "getSize", "parent": 96, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 20}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 22}}, {"id": 99, "type": "identifier", "text": "QPixmap", "parent": 91, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 100, "type": "pointer_declarator", "text": "* getImage()", "parent": 89, "children": [101, 102], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 23}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 102, "type": "function_declarator", "text": "getImage()", "parent": 100, "children": [103, 104], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 103, "type": "identifier", "text": "getImage", "parent": 102, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 21}}, {"id": 104, "type": "parameter_list", "text": "()", "parent": 102, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 23}}, {"id": 105, "type": "declaration", "text": "QString getImageDir();", "parent": 84, "children": [106, 107], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 27}}, {"id": 106, "type": "type_identifier", "text": "QString", "parent": 105, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 107, "type": "function_declarator", "text": "getImageDir()", "parent": 105, "children": [108, 109], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 26}}, {"id": 108, "type": "identifier", "text": "getImageDir", "parent": 107, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 24}}, {"id": 109, "type": "parameter_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 26}}, {"id": 110, "type": "declaration", "text": "bool isCollide(const QRectF& other);", "parent": 84, "children": [111, 112], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 40}}, {"id": 111, "type": "primitive_type", "text": "bool", "parent": 110, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 112, "type": "function_declarator", "text": "isCollide(const QRectF& other)", "parent": 110, "children": [113, 114], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 39}}, {"id": 113, "type": "identifier", "text": "isCollide", "parent": 112, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 114, "type": "parameter_list", "text": "(const QRectF& other)", "parent": 112, "children": [115], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 39}}, {"id": 115, "type": "parameter_declaration", "text": "const QRectF& other", "parent": 114, "children": [116, 117], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 38}}, {"id": 116, "type": "type_identifier", "text": "QRectF", "parent": 115, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 31}}, {"id": 117, "type": "identifier", "text": "other", "parent": 115, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 38}}, {"id": 118, "type": "ERROR", "text": "~", "parent": 84, "children": [119], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 119, "type": "~", "text": "~", "parent": 118, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 120, "type": "identifier", "text": "Furniture", "parent": 84, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 14}}, {"id": 121, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 54, 62, 70, 78, 86, 92, 96, 102, 107, 112], "variables": [21, 26, 29, 32, 35, 49, 52, 57, 60, 65, 68, 73, 76, 81, 89, 105, 110, 115], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [39, 42, 43], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 22, 25, 27, 28, 30, 31, 33, 34, 36, 37, 40, 44, 47, 48, 50, 51, 55, 58, 59, 63, 66, 67, 71, 74, 75, 79, 82, 83, 85, 87, 90, 93, 95, 97, 99, 103, 106, 108, 113, 116, 117, 120, 121], "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": "Furniture", "text_snippet": "class Furniture\r\n{\r\nprivate:\r\n QPixmap *image;\r\n QString name;\r\n QPointF position;\r\n "}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "setName\t\t(const QString& name)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "setPosition (const QPointF& position)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "setSize\t (const QRectF& size)"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "setImage\t(const QString& imageFileName)"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "getName()"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "getPosition() const"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "getSize() const"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "getImage()"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "getImageDir()"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "isCollide(const QRectF& other)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QPointF>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QRectF>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QDebug>\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QPixmap>\r\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef FURNITURE_H\r\n#define FURNITURE_H\r\n\r\n#include <QPointF>\r\n#include <QRectF>\r\n#include <QDebug>\r\n#include <QPixmap>\r\n\r\nclass Furniture\r\n{\r\nprivate:\r\n QPixmap *image;\r\n QString name;\r\n QPointF position;\r\n QRectF size;\r\n QString image_dir;\r\n\r\n\r\npublic:\r\n Furniture();\r\n Furniture(const QString& name, const QString imageFileName);\r\n\r\n int setName\t\t(const QString& name);\r\n int setPosition (const QPointF& position);\r\n int setSize\t (const QRectF& size);\r\n int setImage\t(const QString& imageFileName);\r\n\r\n QString getName() \t const;\r\n QPointF getPosition() const;\r\n QRectF getSize() const;\r\n QPixmap* getImage();\r\n QString getImageDir();\r\n\r\n bool isCollide(const QRectF& other);\r\n\r\n ~Furniture();\r\n};\r\n\r\n#endif // FURNITURE_H\r\n"}
143
c
//[]---------------------------------------------------------------[] //| | //| Copyright (C) 2016, 2022 <NAME>. | //| | //| This software is provided 'as-is', without any express or | //| implied warranty. In no event will the authors be held liable | //| for any damages arising from the use of this software. | //| | //| Permission is granted to anyone to use this software for any | //| purpose, including commercial applications, and to alter it and | //| redistribute it freely, subject to the following restrictions: | //| | //| 1. The origin of this software must not be misrepresented; you | //| must not claim that you wrote the original software. If you use | //| this software in a product, an acknowledgment in the product | //| documentation would be appreciated but is not required. | //| | //| 2. Altered source versions must be plainly marked as such, and | //| must not be misrepresented as being the original software. | //| | //| 3. This notice may not be removed or altered from any source | //| distribution. | //| | //[]---------------------------------------------------------------[] // // OVERVIEW: AnimatedAlgorithm.h // ======== // Class definition for animated algorithm. // // Author: <NAME> // Last revision: 10/02/2022 #ifndef __AnimatedAlgorithm_h #define __AnimatedAlgorithm_h #include <condition_variable> #include <memory> #include <string> #include <thread> namespace cg { // begin namespace cg namespace this_algorithm { // begin namespace this_algorithm #ifdef _DRAW_ALG /// Draws the current algorithm. void draw(bool stop = false, const char* fmt = nullptr, ...); #else inline void draw(bool, const char*, ...) { // do nothing } #endif // _DRAW_ALG } // end namespace this_algorithm ///////////////////////////////////////////////////////////////////// // // AnimatedAlgorithm: animated algorithm class // ================= class AnimatedAlgorithm { public: enum class State { CREATED, RUNNING, SLEEPING, CANCEL, RUN, TERMINATED }; enum class RunMode { CONTINUE, STEP }; RunMode runMode{RunMode::CONTINUE}; /// Destructor. virtual ~AnimatedAlgorithm() { // do nothing } /// Gets the name of this algorithm. const char* name() const { return _name.c_str(); } State state() const { return _state; } /// Starts this algorithm. void start(); /// Waits for termination of this algorithm. void join(); const std::string& stepLog() const { return _stepLog; } protected: bool _canDraw{false}; bool _stopped{false}; /// Constructor. AnimatedAlgorithm(const std::string& s): _name{s}, _state{State::CREATED} { // do nothing } /// Initializes this algorithm. virtual void initialize() { // do nothing } /// Runs this algorithm. virtual void run() = 0; /// Terminates this algorithm. virtual void terminate() { // do nothing } /// Handles mouse button event. virtual bool onMouse(double, double, int, int) { return false; } /// Handles mouse motion event. virtual bool onMotion(int, double, double) { return false; } /// Handles mouse wheel/touchpad gesture event. virtual bool onScroll(double, double) { return false; } /// Handles text input event. virtual bool onChar(unsigned int) { return false; } virtual void draw(int, int) = 0; void wait(bool); void wake(bool = false); void stop(bool stop = true) { if (!(_stopped = stop)) wake(); } void cancel(); private: using ThreadPtr = std::unique_ptr<std::thread>; std::string _name; State _state; std::mutex _lockDrawing; std::condition_variable _drawing; ThreadPtr _thread; bool _notified{true}; std::string _stepLog; static AnimatedAlgorithm* _current; void launch(); friend class GUI; friend void this_algorithm::draw(bool, const char*, ...); }; // AnimatedAlgorithm } // end namespace cg #endif // __AnimatedAlgorithm_h
26.39
165
(translation_unit) "//[]---------------------------------------------------------------[]\n//| |\n//| Copyright (C) 2016, 2022 <NAME>. |\n//| |\n//| This software is provided 'as-is', without any express or |\n//| implied warranty. In no event will the authors be held liable |\n//| for any damages arising from the use of this software. |\n//| |\n//| Permission is granted to anyone to use this software for any |\n//| purpose, including commercial applications, and to alter it and |\n//| redistribute it freely, subject to the following restrictions: |\n//| |\n//| 1. The origin of this software must not be misrepresented; you |\n//| must not claim that you wrote the original software. If you use |\n//| this software in a product, an acknowledgment in the product |\n//| documentation would be appreciated but is not required. |\n//| |\n//| 2. Altered source versions must be plainly marked as such, and |\n//| must not be misrepresented as being the original software. |\n//| |\n//| 3. This notice may not be removed or altered from any source |\n//| distribution. |\n//| |\n//[]---------------------------------------------------------------[]\n//\n// OVERVIEW: AnimatedAlgorithm.h\n// ========\n// Class definition for animated algorithm.\n//\n// Author: <NAME>\n// Last revision: 10/02/2022\n\n#ifndef __AnimatedAlgorithm_h\n#define __AnimatedAlgorithm_h\n\n#include <condition_variable>\n#include <memory>\n#include <string>\n#include <thread>\n\nnamespace cg\n{ // begin namespace cg\n\nnamespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n} // end namespace this_algorithm\n\n\n/////////////////////////////////////////////////////////////////////\n//\n// AnimatedAlgorithm: animated algorithm class\n// =================\nclass AnimatedAlgorithm\n{\npublic:\n enum class State\n {\n CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED\n };\n\n enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n} // end namespace cg\n\n#endif // __AnimatedAlgorithm_h\n" (comment) "//[]---------------------------------------------------------------[]" (comment) "//| |" (comment) "//| Copyright (C) 2016, 2022 <NAME>. |" (comment) "//| |" (comment) "//| This software is provided 'as-is', without any express or |" (comment) "//| implied warranty. In no event will the authors be held liable |" (comment) "//| for any damages arising from the use of this software. |" (comment) "//| |" (comment) "//| Permission is granted to anyone to use this software for any |" (comment) "//| purpose, including commercial applications, and to alter it and |" (comment) "//| redistribute it freely, subject to the following restrictions: |" (comment) "//| |" (comment) "//| 1. The origin of this software must not be misrepresented; you |" (comment) "//| must not claim that you wrote the original software. If you use |" (comment) "//| this software in a product, an acknowledgment in the product |" (comment) "//| documentation would be appreciated but is not required. |" (comment) "//| |" (comment) "//| 2. Altered source versions must be plainly marked as such, and |" (comment) "//| must not be misrepresented as being the original software. |" (comment) "//| |" (comment) "//| 3. This notice may not be removed or altered from any source |" (comment) "//| distribution. |" (comment) "//| |" (comment) "//[]---------------------------------------------------------------[]" (comment) "//" (comment) "// OVERVIEW: AnimatedAlgorithm.h" (comment) "// ========" (comment) "// Class definition for animated algorithm." (comment) "//" (comment) "// Author: <NAME>" (comment) "// Last revision: 10/02/2022" (ERROR) "#ifndef __AnimatedAlgorithm_h\n#define __AnimatedAlgorithm_h\n\n#include <condition_variable>\n#include <memory>\n#include <string>\n#include <thread>\n\nnamespace cg\n{ // begin namespace cg\n\nnamespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n} // end namespace this_algorithm\n\n\n/////////////////////////////////////////////////////////////////////\n//\n// AnimatedAlgorithm: animated algorithm class\n// =================\nclass AnimatedAlgorithm\n{\npublic:\n enum class State\n {\n CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED\n };\n\n enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n} // end namespace cg\n\n#endif // __AnimatedAlgorithm_h\n" (#ifndef) "#ifndef" (identifier) "__AnimatedAlgorithm_h" (preproc_def) "#define __AnimatedAlgorithm_h\n" (#define) "#define" (identifier) "__AnimatedAlgorithm_h" (preproc_include) "#include <condition_variable>\n" (#include) "#include" (system_lib_string) "<condition_variable>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <thread>\n" (#include) "#include" (system_lib_string) "<thread>" (type_identifier) "namespace" (identifier) "cg" ({) "{" (comment) "// begin namespace cg" (function_definition) "namespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n}" (type_identifier) "namespace" (identifier) "this_algorithm" (compound_statement) "{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n}" ({) "{" (comment) "// begin namespace this_algorithm" (preproc_ifdef) "#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif" (#ifdef) "#ifdef" (identifier) "_DRAW_ALG" (comment) "/// Draws the current algorithm." (declaration) "void draw(bool stop = false, const char* fmt = nullptr, ...);" (primitive_type) "void" (init_declarator) "draw(bool stop = false" (function_declarator) "draw(bool stop" (identifier) "draw" (parameter_list) "(bool stop" (() "(" (parameter_declaration) "bool stop" (primitive_type) "bool" (identifier) "stop" ()) "" (=) "=" (false) "false" (,) "," (ERROR) "const char" (identifier) "const" (identifier) "char" (init_declarator) "* fmt = nullptr" (pointer_declarator) "* fmt" (*) "*" (identifier) "fmt" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ", ...)" (,) "," (...) "..." ()) ")" (;) ";" (preproc_else) "#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}" (#else) "#else" (function_definition) "inline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "draw(bool, const char*, ...)" (identifier) "draw" (parameter_list) "(bool, const char*, ...)" (() "(" (parameter_declaration) "bool" (primitive_type) "bool" (,) "," (parameter_declaration) "const char*" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n // do nothing\n}" ({) "{" (comment) "// do nothing" (}) "}" (#endif) "#endif" (comment) "// _DRAW_ALG" (}) "}" (comment) "// end namespace this_algorithm" (comment) "/////////////////////////////////////////////////////////////////////" (comment) "//" (comment) "// AnimatedAlgorithm: animated algorithm class" (comment) "// =================" (type_identifier) "class" (identifier) "AnimatedAlgorithm" ({) "{" (identifier) "public" (:) ":" (ERROR) "enum class State" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "State" ({) "{" (expression_statement) "CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED\n };" (comma_expression) "CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED" (identifier) "CREATED" (,) "," (comma_expression) "RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED" (identifier) "RUNNING" (,) "," (comma_expression) "SLEEPING,\n CANCEL,\n RUN,\n TERMINATED" (identifier) "SLEEPING" (,) "," (comma_expression) "CANCEL,\n RUN,\n TERMINATED" (identifier) "CANCEL" (,) "," (comma_expression) "RUN,\n TERMINATED" (identifier) "RUN" (,) "," (identifier) "TERMINATED" (ERROR) "}" (}) "}" (;) ";" (function_definition) "enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n}" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "RunMode" (compound_statement) "{\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n}" ({) "{" (expression_statement) "CONTINUE,\n STEP\n };" (comma_expression) "CONTINUE,\n STEP" (identifier) "CONTINUE" (,) "," (identifier) "STEP" (ERROR) "}" (}) "}" (;) ";" (function_definition) "RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }" (type_identifier) "RunMode" (identifier) "runMode" (compound_statement) "{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }" ({) "{" (labeled_statement) "RunMode::CONTINUE};" (statement_identifier) "RunMode" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "CONTINUE};" (identifier) "CONTINUE" (ERROR) "}" (}) "}" (;) ";" (comment) "/// Destructor." (function_definition) "virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "AnimatedAlgorithm()" (identifier) "AnimatedAlgorithm" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n // do nothing\n }" ({) "{" (comment) "// do nothing" (}) "}" (comment) "/// Gets the name of this algorithm." (function_definition) "const char* name() const\n {\n return _name.c_str();\n }" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name() const" (*) "*" (function_declarator) "name() const" (identifier) "name" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return _name.c_str();\n }" ({) "{" (return_statement) "return _name.c_str();" (return) "return" (call_expression) "_name.c_str()" (field_expression) "_name.c_str" (identifier) "_name" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "State state() const" (type_identifier) "State" (function_declarator) "state()" (identifier) "state" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return _state;\n }" ({) "{" (return_statement) "return _state;" (return) "return" (identifier) "_state" (;) ";" (}) "}" (comment) "/// Starts this algorithm." (declaration) "void start();" (primitive_type) "void" (function_declarator) "start()" (identifier) "start" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// Waits for termination of this algorithm." (declaration) "void join();" (primitive_type) "void" (function_declarator) "join()" (identifier) "join" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "const std::string& stepLog() const" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "stepLog()" (identifier) "stepLog" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return _stepLog;\n }" ({) "{" (return_statement) "return _stepLog;" (return) "return" (identifier) "_stepLog" (;) ";" (}) "}" (labeled_statement) "protected:\n bool _canDraw{false};" (statement_identifier) "protected" (:) ":" (ERROR) "bool _canDraw{false}" (primitive_type) "bool" (identifier) "_canDraw" ({) "{" (false) "false" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}" (primitive_type) "bool" (identifier) "_stopped" (compound_statement) "{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}" ({) "{" (expression_statement) "false};" (false) "false" (ERROR) "}" (}) "}" (;) ";" (comment) "/// Constructor." (labeled_statement) "AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED" (statement_identifier) "AnimatedAlgorithm" (ERROR) "(const std::string& s):\n _name{s},\n _state{State:" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "string& s" (identifier) "string" (&) "&" (identifier) "s" ()) ")" (:) ":" (type_identifier) "_name" (ERROR) "{" ({) "{" (identifier) "s" (ERROR) "}" (}) "}" (,) "," (identifier) "_state" ({) "{" (identifier) "State" (:) ":" (:) ":" (expression_statement) "CREATED" (identifier) "CREATED" (;) "" (}) "}" (compound_statement) "{\n // do nothing\n }" ({) "{" (comment) "// do nothing" (}) "}" (comment) "/// Initializes this algorithm." (function_definition) "virtual void initialize()\n {\n // do nothing\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "initialize()" (identifier) "initialize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n // do nothing\n }" ({) "{" (comment) "// do nothing" (}) "}" (comment) "/// Runs this algorithm." (declaration) "virtual void run() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "run() = 0" (function_declarator) "run()" (identifier) "run" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "/// Terminates this algorithm." (function_definition) "virtual void terminate()\n {\n // do nothing\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "terminate()" (identifier) "terminate" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n // do nothing\n }" ({) "{" (comment) "// do nothing" (}) "}" (comment) "/// Handles mouse button event." (function_definition) "virtual bool onMouse(double, double, int, int)\n {\n return false;\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "onMouse(double, double, int, int)" (identifier) "onMouse" (parameter_list) "(double, double, int, int)" (() "(" (parameter_declaration) "double" (primitive_type) "double" (,) "," (parameter_declaration) "double" (primitive_type) "double" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/// Handles mouse motion event." (function_definition) "virtual bool onMotion(int, double, double)\n {\n return false;\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "onMotion(int, double, double)" (identifier) "onMotion" (parameter_list) "(int, double, double)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "double" (primitive_type) "double" (,) "," (parameter_declaration) "double" (primitive_type) "double" ()) ")" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/// Handles mouse wheel/touchpad gesture event." (function_definition) "virtual bool onScroll(double, double)\n {\n return false;\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "onScroll(double, double)" (identifier) "onScroll" (parameter_list) "(double, double)" (() "(" (parameter_declaration) "double" (primitive_type) "double" (,) "," (parameter_declaration) "double" (primitive_type) "double" ()) ")" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/// Handles text input event." (function_definition) "virtual bool onChar(unsigned int)\n {\n return false;\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "onChar(unsigned int)" (identifier) "onChar" (parameter_list) "(unsigned int)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (compound_statement) "{\n return false;\n }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (declaration) "virtual void draw(int, int) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "draw(int, int) = 0" (function_declarator) "draw(int, int)" (identifier) "draw" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "void wait(bool);" (primitive_type) "void" (function_declarator) "wait(bool)" (identifier) "wait" (parameter_list) "(bool)" (() "(" (parameter_declaration) "bool" (primitive_type) "bool" ()) ")" (;) ";" (declaration) "void wake(bool = false);" (primitive_type) "void" (init_declarator) "wake(bool = false" (function_declarator) "wake(bool" (identifier) "wake" (parameter_list) "(bool" (() "(" (parameter_declaration) "bool" (primitive_type) "bool" ()) "" (=) "=" (false) "false" (ERROR) ")" ()) ")" (;) ";" (declaration) "void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();" (primitive_type) "void" (init_declarator) "stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake()" (function_declarator) "stop(bool stop" (identifier) "stop" (parameter_list) "(bool stop" (() "(" (parameter_declaration) "bool stop" (primitive_type) "bool" (identifier) "stop" ()) "" (=) "=" (ERROR) "true)" (true) "true" ()) ")" (initializer_list) "{\n if (!(_stopped = stop))\n wake()" ({) "{" (ERROR) "if (!(_stopped = stop))" (call_expression) "if (!(_stopped = stop))" (identifier) "if" (argument_list) "(!(_stopped = stop))" (() "(" (unary_expression) "!(_stopped = stop)" (!) "!" (parenthesized_expression) "(_stopped = stop)" (() "(" (assignment_expression) "_stopped = stop" (identifier) "_stopped" (=) "=" (identifier) "stop" ()) ")" ()) ")" (call_expression) "wake()" (identifier) "wake" (argument_list) "()" (() "(" ()) ")" (}) "" (;) ";" (}) "}" (declaration) "void cancel();" (primitive_type) "void" (function_declarator) "cancel()" (identifier) "cancel" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n using ThreadPtr = std::unique_ptr<std::thread>;" (statement_identifier) "private" (:) ":" (declaration) "using ThreadPtr = std::unique_ptr<std::thread>;" (type_identifier) "using" (init_declarator) "ThreadPtr = std::unique_ptr<std::thread" (identifier) "ThreadPtr" (=) "=" (ERROR) "std::unique_ptr<std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "unique_ptr<std" (identifier) "unique_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "thread" (ERROR) ">" (>) ">" (;) ";" (labeled_statement) "std::string _name;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string _name;" (type_identifier) "string" (identifier) "_name" (;) ";" (declaration) "State _state;" (type_identifier) "State" (identifier) "_state" (;) ";" (labeled_statement) "std::mutex _lockDrawing;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "mutex _lockDrawing;" (type_identifier) "mutex" (identifier) "_lockDrawing" (;) ";" (labeled_statement) "std::condition_variable _drawing;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "condition_variable _drawing;" (type_identifier) "condition_variable" (identifier) "_drawing" (;) ";" (declaration) "ThreadPtr _thread;" (type_identifier) "ThreadPtr" (identifier) "_thread" (;) ";" (function_definition) "bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}" (primitive_type) "bool" (identifier) "_notified" (compound_statement) "{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}" ({) "{" (expression_statement) "true};" (true) "true" (ERROR) "}" (}) "}" (;) ";" (labeled_statement) "std::string _stepLog;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string _stepLog;" (type_identifier) "string" (identifier) "_stepLog" (;) ";" (declaration) "static AnimatedAlgorithm* _current;" (storage_class_specifier) "static" (static) "static" (type_identifier) "AnimatedAlgorithm" (pointer_declarator) "* _current" (*) "*" (identifier) "_current" (;) ";" (declaration) "void launch();" (primitive_type) "void" (function_declarator) "launch()" (identifier) "launch" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "friend class GUI;" (type_identifier) "friend" (identifier) "class" (ERROR) "GUI" (identifier) "GUI" (;) ";" (declaration) "friend void" (type_identifier) "friend" (identifier) "void" (;) "" (labeled_statement) "this_algorithm::draw(bool, const char*, ...);" (statement_identifier) "this_algorithm" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "draw(bool, const char*, ...);" (call_expression) "draw(bool, const char*, ...)" (identifier) "draw" (argument_list) "(bool, const char*, ...)" (() "(" (identifier) "bool" (,) "," (identifier) "const" (ERROR) "char*, ..." (identifier) "char" (*) "*" (,) "," (.) "." (.) "." (.) "." ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// AnimatedAlgorithm" (}) "}" (comment) "// end namespace cg" (preproc_call) "#endif // __AnimatedAlgorithm_h\n" (preproc_directive) "#endif" (comment) "// __AnimatedAlgorithm_h"
707
38
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 26.39, "nodes": 377, "errors": 0, "source_hash": "e9a0aeb11bf1a0d96b8fa480c4d53136837008b42077dc4c184b58741b3db2a9", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __AnimatedAlgorithm_h\n#define __AnimatedAlgorithm_h\n\n#include <condition_variable>\n#include <memory>\n#include <string>\n#include <thread>\n\nnamespace cg\n{ // begin namespace cg\n\nnamespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n} // end namespace this_algorithm\n\n\n/////////////////////////////////////////////////////////////////////\n//\n// AnimatedAlgorithm: animated algorithm class\n// =================\nclass AnimatedAlgorithm\n{\npublic:\n enum class State\n {\n CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED\n };\n\n enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n} // end namespace cg\n\n#endif // __AnimatedAlgorithm_h\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 19, 20, 63, 64, 79, 375], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 204, "column": 0}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 2, "type": "identifier", "text": "__AnimatedAlgorithm_h", "parent": 0, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define __AnimatedAlgorithm_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 5, "type": "identifier", "text": "__AnimatedAlgorithm_h", "parent": 3, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include <condition_variable>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<condition_variable>", "parent": 6, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 29}}, {"id": 9, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<memory>", "parent": 9, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string>", "parent": 12, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <thread>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<thread>", "parent": 15, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 17}}, {"id": 18, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 9}}, {"id": 19, "type": "identifier", "text": "cg", "parent": 0, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 12}}, {"id": 20, "type": "function_definition", "text": "namespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n}", "parent": 0, "children": [21, 22], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 21, "type": "type_identifier", "text": "namespace", "parent": 20, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 9}}, {"id": 22, "type": "identifier", "text": "this_algorithm", "parent": 20, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 24}}, {"id": 23, "type": "preproc_ifdef", "text": "#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif", "parent": 20, "children": [24, 25, 26, 47, 62], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 24, "type": "#ifdef", "text": "#ifdef", "parent": 23, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 25, "type": "identifier", "text": "_DRAW_ALG", "parent": 23, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 16}}, {"id": 26, "type": "declaration", "text": "void draw(bool stop = false, const char* fmt = nullptr, ...);", "parent": 23, "children": [27, 28, 37, 39, 46], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 61}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 28, "type": "init_declarator", "text": "draw(bool stop = false", "parent": 26, "children": [29, 35, 36], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 27}}, {"id": 29, "type": "function_declarator", "text": "draw(bool stop", "parent": 28, "children": [30, 31], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 19}}, {"id": 30, "type": "identifier", "text": "draw", "parent": 29, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 9}}, {"id": 31, "type": "parameter_list", "text": "(bool stop", "parent": 29, "children": [32], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 19}}, {"id": 32, "type": "parameter_declaration", "text": "bool stop", "parent": 31, "children": [33, 34], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 19}}, {"id": 33, "type": "primitive_type", "text": "bool", "parent": 32, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 34, "type": "identifier", "text": "stop", "parent": 32, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 19}}, {"id": 35, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 36, "type": "false", "text": "false", "parent": 28, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 27}}, {"id": 37, "type": "ERROR", "text": "const char", "parent": 26, "children": [38], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 39}}, {"id": 38, "type": "identifier", "text": "char", "parent": 37, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 39}}, {"id": 39, "type": "init_declarator", "text": "* fmt = nullptr", "parent": 26, "children": [40, 43, 44], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 54}}, {"id": 40, "type": "pointer_declarator", "text": "* fmt", "parent": 39, "children": [41, 42], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 44}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 40}}, {"id": 42, "type": "identifier", "text": "fmt", "parent": 40, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 44}}, {"id": 43, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 46}}, {"id": 44, "type": "null", "text": "nullptr", "parent": 39, "children": [45], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 54}}, {"id": 45, "type": "nullptr", "text": "nullptr", "parent": 44, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 54}}, {"id": 46, "type": "ERROR", "text": ", ...)", "parent": 26, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 60}}, {"id": 47, "type": "preproc_else", "text": "#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}", "parent": 23, "children": [48, 49], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 48, "type": "#else", "text": "#else", "parent": 47, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 5}}, {"id": 49, "type": "function_definition", "text": "inline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}", "parent": 47, "children": [50, 52, 53], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 50, "type": "storage_class_specifier", "text": "inline", "parent": 49, "children": [51], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 51, "type": "inline", "text": "inline", "parent": 50, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 11}}, {"id": 53, "type": "function_declarator", "text": "draw(bool, const char*, ...)", "parent": 49, "children": [54, 55], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 28}}, {"id": 54, "type": "identifier", "text": "draw", "parent": 53, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 55, "type": "parameter_list", "text": "(bool, const char*, ...)", "parent": 53, "children": [56, 58], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 28}}, {"id": 56, "type": "parameter_declaration", "text": "bool", "parent": 55, "children": [57], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 9}}, {"id": 57, "type": "primitive_type", "text": "bool", "parent": 56, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 9}}, {"id": 58, "type": "parameter_declaration", "text": "const char*", "parent": 55, "children": [59, 60], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 22}}, {"id": 59, "type": "primitive_type", "text": "char", "parent": 58, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 21}}, {"id": 60, "type": "abstract_pointer_declarator", "text": "*", "parent": 58, "children": [61], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 62, "type": "#endif", "text": "#endif", "parent": 23, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 63, "type": "identifier", "text": "AnimatedAlgorithm", "parent": 0, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 23}}, {"id": 64, "type": "ERROR", "text": "enum class State", "parent": 0, "children": [65, 67], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 18}}, {"id": 65, "type": "enum_specifier", "text": "enum class", "parent": 64, "children": [66], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 12}}, {"id": 66, "type": "enum", "text": "enum", "parent": 65, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 67, "type": "identifier", "text": "State", "parent": 64, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 18}}, {"id": 68, "type": "comma_expression", "text": "CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED", "parent": 0, "children": [69, 70], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 69, "type": "identifier", "text": "CREATED", "parent": 68, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 11}}, {"id": 70, "type": "comma_expression", "text": "RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED", "parent": 68, "children": [71, 72], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 71, "type": "identifier", "text": "RUNNING", "parent": 70, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 72, "type": "comma_expression", "text": "SLEEPING,\n CANCEL,\n RUN,\n TERMINATED", "parent": 70, "children": [73, 74], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 73, "type": "identifier", "text": "SLEEPING", "parent": 72, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 12}}, {"id": 74, "type": "comma_expression", "text": "CANCEL,\n RUN,\n TERMINATED", "parent": 72, "children": [75, 76], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 75, "type": "identifier", "text": "CANCEL", "parent": 74, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 76, "type": "comma_expression", "text": "RUN,\n TERMINATED", "parent": 74, "children": [77, 78], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 77, "type": "identifier", "text": "RUN", "parent": 76, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 7}}, {"id": 78, "type": "identifier", "text": "TERMINATED", "parent": 76, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 79, "type": "function_definition", "text": "enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n}", "parent": 0, "children": [80, 82], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 201, "column": 1}}, {"id": 80, "type": "enum_specifier", "text": "enum class", "parent": 79, "children": [81], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 12}}, {"id": 81, "type": "enum", "text": "enum", "parent": 80, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 82, "type": "identifier", "text": "RunMode", "parent": 79, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 20}}, {"id": 83, "type": "comma_expression", "text": "CONTINUE,\n STEP", "parent": 79, "children": [84, 85], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 84, "type": "identifier", "text": "CONTINUE", "parent": 83, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 12}}, {"id": 85, "type": "identifier", "text": "STEP", "parent": 83, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 86, "type": "function_definition", "text": "RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }", "parent": 79, "children": [87, 88], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 177, "column": 3}}, {"id": 87, "type": "type_identifier", "text": "RunMode", "parent": 86, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 88, "type": "identifier", "text": "runMode", "parent": 86, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 17}}, {"id": 89, "type": "labeled_statement", "text": "RunMode::CONTINUE};", "parent": 86, "children": [90], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 37}}, {"id": 90, "type": "statement_identifier", "text": "RunMode", "parent": 89, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 25}}, {"id": 91, "type": "identifier", "text": "CONTINUE", "parent": 89, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 35}}, {"id": 92, "type": "function_definition", "text": "virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }", "parent": 86, "children": [93, 94, 96], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 93, "type": "type_identifier", "text": "virtual", "parent": 92, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 9}}, {"id": 94, "type": "ERROR", "text": "~", "parent": 92, "children": [95], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 11}}, {"id": 95, "type": "~", "text": "~", "parent": 94, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 11}}, {"id": 96, "type": "function_declarator", "text": "AnimatedAlgorithm()", "parent": 92, "children": [97, 98], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 30}}, {"id": 97, "type": "identifier", "text": "AnimatedAlgorithm", "parent": 96, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 28}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 30}}, {"id": 99, "type": "function_definition", "text": "const char* name() const\n {\n return _name.c_str();\n }", "parent": 86, "children": [100, 101], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 99, "column": 3}}, {"id": 100, "type": "primitive_type", "text": "char", "parent": 99, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 12}}, {"id": 101, "type": "pointer_declarator", "text": "* name() const", "parent": 99, "children": [102, 103], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 26}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 13}}, {"id": 103, "type": "function_declarator", "text": "name() const", "parent": 101, "children": [104, 105], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 26}}, {"id": 104, "type": "identifier", "text": "name", "parent": 103, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 18}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 20}}, {"id": 106, "type": "return_statement", "text": "return _name.c_str();", "parent": 99, "children": [107], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 25}}, {"id": 107, "type": "call_expression", "text": "_name.c_str()", "parent": 106, "children": [108, 111], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 24}}, {"id": 108, "type": "field_expression", "text": "_name.c_str", "parent": 107, "children": [109, 110], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 22}}, {"id": 109, "type": "identifier", "text": "_name", "parent": 108, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 16}}, {"id": 110, "type": "field_identifier", "text": "c_str", "parent": 108, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 22}}, {"id": 111, "type": "argument_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 24}}, {"id": 112, "type": "ERROR", "text": "State state() const", "parent": 86, "children": [113, 114], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 21}}, {"id": 113, "type": "type_identifier", "text": "State", "parent": 112, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 7}}, {"id": 114, "type": "function_declarator", "text": "state()", "parent": 112, "children": [115, 116], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 15}}, {"id": 115, "type": "identifier", "text": "state", "parent": 114, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 13}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 15}}, {"id": 117, "type": "return_statement", "text": "return _state;", "parent": 86, "children": [118], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 18}}, {"id": 118, "type": "identifier", "text": "_state", "parent": 117, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 17}}, {"id": 119, "type": "declaration", "text": "void start();", "parent": 86, "children": [120, 121], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 15}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 6}}, {"id": 121, "type": "function_declarator", "text": "start()", "parent": 119, "children": [122, 123], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 14}}, {"id": 122, "type": "identifier", "text": "start", "parent": 121, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 12}}, {"id": 123, "type": "parameter_list", "text": "()", "parent": 121, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 14}}, {"id": 124, "type": "declaration", "text": "void join();", "parent": 86, "children": [125, 126], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 14}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 124, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 6}}, {"id": 126, "type": "function_declarator", "text": "join()", "parent": 124, "children": [127, 128], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 13}}, {"id": 127, "type": "identifier", "text": "join", "parent": 126, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 11}}, {"id": 128, "type": "parameter_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 13}}, {"id": 129, "type": "ERROR", "text": "const std::string& stepLog() const", "parent": 86, "children": [130, 131, 133], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 36}}, {"id": 130, "type": "type_identifier", "text": "std", "parent": 129, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 11}}, {"id": 131, "type": "ERROR", "text": "::string&", "parent": 129, "children": [132], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 20}}, {"id": 132, "type": "identifier", "text": "string", "parent": 131, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 19}}, {"id": 133, "type": "function_declarator", "text": "stepLog()", "parent": 129, "children": [134, 135], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 30}}, {"id": 134, "type": "identifier", "text": "stepLog", "parent": 133, "children": [], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 28}}, {"id": 135, "type": "parameter_list", "text": "()", "parent": 133, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 30}}, {"id": 136, "type": "return_statement", "text": "return _stepLog;", "parent": 86, "children": [137], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 20}}, {"id": 137, "type": "identifier", "text": "_stepLog", "parent": 136, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 19}}, {"id": 138, "type": "labeled_statement", "text": "protected:\n bool _canDraw{false};", "parent": 86, "children": [139], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 23}}, {"id": 139, "type": "ERROR", "text": "bool _canDraw{false}", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 22}}, {"id": 140, "type": "primitive_type", "text": "bool", "parent": 139, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 6}}, {"id": 141, "type": "identifier", "text": "_canDraw", "parent": 139, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 15}}, {"id": 142, "type": "false", "text": "false", "parent": 139, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 21}}, {"id": 143, "type": "function_definition", "text": "bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}", "parent": 86, "children": [144, 145], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 124, "column": 26}}, {"id": 144, "type": "primitive_type", "text": "bool", "parent": 143, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 6}}, {"id": 145, "type": "identifier", "text": "_stopped", "parent": 143, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 15}}, {"id": 146, "type": "false", "text": "false", "parent": 143, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 21}}, {"id": 147, "type": "labeled_statement", "text": "AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED", "parent": 143, "children": [148, 149], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 124, "column": 25}}, {"id": 148, "type": "statement_identifier", "text": "AnimatedAlgorithm", "parent": 147, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 19}}, {"id": 149, "type": "ERROR", "text": "(const std::string& s):\n _name{s},\n _state{State:", "parent": 147, "children": [150, 152, 155, 156, 157, 158], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 124, "column": 17}}, {"id": 150, "type": "type_descriptor", "text": "const std", "parent": 149, "children": [151], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 29}}, {"id": 151, "type": "type_identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 29}}, {"id": 152, "type": "binary_expression", "text": "string& s", "parent": 149, "children": [153, 154], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 40}}, {"id": 153, "type": "identifier", "text": "string", "parent": 152, "children": [], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 37}}, {"id": 154, "type": "identifier", "text": "s", "parent": 152, "children": [], "start_point": {"row": 122, "column": 39}, "end_point": {"row": 122, "column": 40}}, {"id": 155, "type": "type_identifier", "text": "_name", "parent": 149, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 9}}, {"id": 156, "type": "identifier", "text": "s", "parent": 149, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 11}}, {"id": 157, "type": "identifier", "text": "_state", "parent": 149, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 10}}, {"id": 158, "type": "identifier", "text": "State", "parent": 149, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 16}}, {"id": 159, "type": "identifier", "text": "CREATED", "parent": 147, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 25}}, {"id": 160, "type": "function_definition", "text": "virtual void initialize()\n {\n // do nothing\n }", "parent": 86, "children": [161, 162, 164], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 133, "column": 3}}, {"id": 161, "type": "type_identifier", "text": "virtual", "parent": 160, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 9}}, {"id": 162, "type": "ERROR", "text": "void", "parent": 160, "children": [163], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 14}}, {"id": 163, "type": "identifier", "text": "void", "parent": 162, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 14}}, {"id": 164, "type": "function_declarator", "text": "initialize()", "parent": 160, "children": [165, 166], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 27}}, {"id": 165, "type": "identifier", "text": "initialize", "parent": 164, "children": [], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 25}}, {"id": 166, "type": "parameter_list", "text": "()", "parent": 164, "children": [], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 27}}, {"id": 167, "type": "declaration", "text": "virtual void run() = 0;", "parent": 86, "children": [168, 169, 171], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 25}}, {"id": 168, "type": "type_identifier", "text": "virtual", "parent": 167, "children": [], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 9}}, {"id": 169, "type": "ERROR", "text": "void", "parent": 167, "children": [170], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 14}}, {"id": 170, "type": "identifier", "text": "void", "parent": 169, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 14}}, {"id": 171, "type": "init_declarator", "text": "run() = 0", "parent": 167, "children": [172, 175, 176], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 24}}, {"id": 172, "type": "function_declarator", "text": "run()", "parent": 171, "children": [173, 174], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 20}}, {"id": 173, "type": "identifier", "text": "run", "parent": 172, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 18}}, {"id": 174, "type": "parameter_list", "text": "()", "parent": 172, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 20}}, {"id": 175, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 22}}, {"id": 176, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 24}}, {"id": 177, "type": "function_definition", "text": "virtual void terminate()\n {\n // do nothing\n }", "parent": 86, "children": [178, 179, 181], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 142, "column": 3}}, {"id": 178, "type": "type_identifier", "text": "virtual", "parent": 177, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 9}}, {"id": 179, "type": "ERROR", "text": "void", "parent": 177, "children": [180], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 14}}, {"id": 180, "type": "identifier", "text": "void", "parent": 179, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 14}}, {"id": 181, "type": "function_declarator", "text": "terminate()", "parent": 177, "children": [182, 183], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 26}}, {"id": 182, "type": "identifier", "text": "terminate", "parent": 181, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 24}}, {"id": 183, "type": "parameter_list", "text": "()", "parent": 181, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 26}}, {"id": 184, "type": "function_definition", "text": "virtual bool onMouse(double, double, int, int)\n {\n return false;\n }", "parent": 86, "children": [185, 186, 188], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 148, "column": 3}}, {"id": 185, "type": "type_identifier", "text": "virtual", "parent": 184, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 9}}, {"id": 186, "type": "ERROR", "text": "bool", "parent": 184, "children": [187], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 14}}, {"id": 187, "type": "identifier", "text": "bool", "parent": 186, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 14}}, {"id": 188, "type": "function_declarator", "text": "onMouse(double, double, int, int)", "parent": 184, "children": [189, 190], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 48}}, {"id": 189, "type": "identifier", "text": "onMouse", "parent": 188, "children": [], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 22}}, {"id": 190, "type": "parameter_list", "text": "(double, double, int, int)", "parent": 188, "children": [191, 193, 195, 197], "start_point": {"row": 145, "column": 22}, "end_point": {"row": 145, "column": 48}}, {"id": 191, "type": "parameter_declaration", "text": "double", "parent": 190, "children": [192], "start_point": {"row": 145, "column": 23}, "end_point": {"row": 145, "column": 29}}, {"id": 192, "type": "primitive_type", "text": "double", "parent": 191, "children": [], "start_point": {"row": 145, "column": 23}, "end_point": {"row": 145, "column": 29}}, {"id": 193, "type": "parameter_declaration", "text": "double", "parent": 190, "children": [194], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 37}}, {"id": 194, "type": "primitive_type", "text": "double", "parent": 193, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 37}}, {"id": 195, "type": "parameter_declaration", "text": "int", "parent": 190, "children": [196], "start_point": {"row": 145, "column": 39}, "end_point": {"row": 145, "column": 42}}, {"id": 196, "type": "primitive_type", "text": "int", "parent": 195, "children": [], "start_point": {"row": 145, "column": 39}, "end_point": {"row": 145, "column": 42}}, {"id": 197, "type": "parameter_declaration", "text": "int", "parent": 190, "children": [198], "start_point": {"row": 145, "column": 44}, "end_point": {"row": 145, "column": 47}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 145, "column": 44}, "end_point": {"row": 145, "column": 47}}, {"id": 199, "type": "return_statement", "text": "return false;", "parent": 184, "children": [200], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 17}}, {"id": 200, "type": "false", "text": "false", "parent": 199, "children": [], "start_point": {"row": 147, "column": 11}, "end_point": {"row": 147, "column": 16}}, {"id": 201, "type": "function_definition", "text": "virtual bool onMotion(int, double, double)\n {\n return false;\n }", "parent": 86, "children": [202, 203, 205], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 154, "column": 3}}, {"id": 202, "type": "type_identifier", "text": "virtual", "parent": 201, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 9}}, {"id": 203, "type": "ERROR", "text": "bool", "parent": 201, "children": [204], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 14}}, {"id": 204, "type": "identifier", "text": "bool", "parent": 203, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 14}}, {"id": 205, "type": "function_declarator", "text": "onMotion(int, double, double)", "parent": 201, "children": [206, 207], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 44}}, {"id": 206, "type": "identifier", "text": "onMotion", "parent": 205, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 23}}, {"id": 207, "type": "parameter_list", "text": "(int, double, double)", "parent": 205, "children": [208, 210, 212], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 44}}, {"id": 208, "type": "parameter_declaration", "text": "int", "parent": 207, "children": [209], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 27}}, {"id": 209, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 27}}, {"id": 210, "type": "parameter_declaration", "text": "double", "parent": 207, "children": [211], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 35}}, {"id": 211, "type": "primitive_type", "text": "double", "parent": 210, "children": [], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 35}}, {"id": 212, "type": "parameter_declaration", "text": "double", "parent": 207, "children": [213], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 43}}, {"id": 213, "type": "primitive_type", "text": "double", "parent": 212, "children": [], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 43}}, {"id": 214, "type": "return_statement", "text": "return false;", "parent": 201, "children": [215], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 17}}, {"id": 215, "type": "false", "text": "false", "parent": 214, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 16}}, {"id": 216, "type": "function_definition", "text": "virtual bool onScroll(double, double)\n {\n return false;\n }", "parent": 86, "children": [217, 218, 220], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 160, "column": 3}}, {"id": 217, "type": "type_identifier", "text": "virtual", "parent": 216, "children": [], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 9}}, {"id": 218, "type": "ERROR", "text": "bool", "parent": 216, "children": [219], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 14}}, {"id": 219, "type": "identifier", "text": "bool", "parent": 218, "children": [], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 14}}, {"id": 220, "type": "function_declarator", "text": "onScroll(double, double)", "parent": 216, "children": [221, 222], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 39}}, {"id": 221, "type": "identifier", "text": "onScroll", "parent": 220, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 23}}, {"id": 222, "type": "parameter_list", "text": "(double, double)", "parent": 220, "children": [223, 225], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 39}}, {"id": 223, "type": "parameter_declaration", "text": "double", "parent": 222, "children": [224], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 30}}, {"id": 224, "type": "primitive_type", "text": "double", "parent": 223, "children": [], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 30}}, {"id": 225, "type": "parameter_declaration", "text": "double", "parent": 222, "children": [226], "start_point": {"row": 157, "column": 32}, "end_point": {"row": 157, "column": 38}}, {"id": 226, "type": "primitive_type", "text": "double", "parent": 225, "children": [], "start_point": {"row": 157, "column": 32}, "end_point": {"row": 157, "column": 38}}, {"id": 227, "type": "return_statement", "text": "return false;", "parent": 216, "children": [228], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 17}}, {"id": 228, "type": "false", "text": "false", "parent": 227, "children": [], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 16}}, {"id": 229, "type": "function_definition", "text": "virtual bool onChar(unsigned int)\n {\n return false;\n }", "parent": 86, "children": [230, 231, 233], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 166, "column": 3}}, {"id": 230, "type": "type_identifier", "text": "virtual", "parent": 229, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 9}}, {"id": 231, "type": "ERROR", "text": "bool", "parent": 229, "children": [232], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 14}}, {"id": 232, "type": "identifier", "text": "bool", "parent": 231, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 14}}, {"id": 233, "type": "function_declarator", "text": "onChar(unsigned int)", "parent": 229, "children": [234, 235], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 35}}, {"id": 234, "type": "identifier", "text": "onChar", "parent": 233, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 21}}, {"id": 235, "type": "parameter_list", "text": "(unsigned int)", "parent": 233, "children": [236], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 35}}, {"id": 236, "type": "parameter_declaration", "text": "unsigned int", "parent": 235, "children": [237], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 34}}, {"id": 237, "type": "sized_type_specifier", "text": "unsigned int", "parent": 236, "children": [238, 239], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 34}}, {"id": 238, "type": "unsigned", "text": "unsigned", "parent": 237, "children": [], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 30}}, {"id": 239, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 34}}, {"id": 240, "type": "return_statement", "text": "return false;", "parent": 229, "children": [241], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 17}}, {"id": 241, "type": "false", "text": "false", "parent": 240, "children": [], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 16}}, {"id": 242, "type": "declaration", "text": "virtual void draw(int, int) = 0;", "parent": 86, "children": [243, 244, 246], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 34}}, {"id": 243, "type": "type_identifier", "text": "virtual", "parent": 242, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 9}}, {"id": 244, "type": "ERROR", "text": "void", "parent": 242, "children": [245], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 14}}, {"id": 245, "type": "identifier", "text": "void", "parent": 244, "children": [], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 14}}, {"id": 246, "type": "init_declarator", "text": "draw(int, int) = 0", "parent": 242, "children": [247, 254, 255], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 33}}, {"id": 247, "type": "function_declarator", "text": "draw(int, int)", "parent": 246, "children": [248, 249], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 29}}, {"id": 248, "type": "identifier", "text": "draw", "parent": 247, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 19}}, {"id": 249, "type": "parameter_list", "text": "(int, int)", "parent": 247, "children": [250, 252], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 29}}, {"id": 250, "type": "parameter_declaration", "text": "int", "parent": 249, "children": [251], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 23}}, {"id": 251, "type": "primitive_type", "text": "int", "parent": 250, "children": [], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 23}}, {"id": 252, "type": "parameter_declaration", "text": "int", "parent": 249, "children": [253], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 28}}, {"id": 253, "type": "primitive_type", "text": "int", "parent": 252, "children": [], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 28}}, {"id": 254, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 31}}, {"id": 255, "type": "number_literal", "text": "0", "parent": 246, "children": [], "start_point": {"row": 168, "column": 32}, "end_point": {"row": 168, "column": 33}}, {"id": 256, "type": "declaration", "text": "void wait(bool);", "parent": 86, "children": [257, 258], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 18}}, {"id": 257, "type": "primitive_type", "text": "void", "parent": 256, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 6}}, {"id": 258, "type": "function_declarator", "text": "wait(bool)", "parent": 256, "children": [259, 260], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 17}}, {"id": 259, "type": "identifier", "text": "wait", "parent": 258, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 11}}, {"id": 260, "type": "parameter_list", "text": "(bool)", "parent": 258, "children": [261], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 17}}, {"id": 261, "type": "parameter_declaration", "text": "bool", "parent": 260, "children": [262], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 16}}, {"id": 262, "type": "primitive_type", "text": "bool", "parent": 261, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 16}}, {"id": 263, "type": "declaration", "text": "void wake(bool = false);", "parent": 86, "children": [264, 265], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 26}}, {"id": 264, "type": "primitive_type", "text": "void", "parent": 263, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 6}}, {"id": 265, "type": "init_declarator", "text": "wake(bool = false", "parent": 263, "children": [266, 271, 272], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 24}}, {"id": 266, "type": "function_declarator", "text": "wake(bool", "parent": 265, "children": [267, 268], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 16}}, {"id": 267, "type": "identifier", "text": "wake", "parent": 266, "children": [], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 11}}, {"id": 268, "type": "parameter_list", "text": "(bool", "parent": 266, "children": [269], "start_point": {"row": 171, "column": 11}, "end_point": {"row": 171, "column": 16}}, {"id": 269, "type": "parameter_declaration", "text": "bool", "parent": 268, "children": [270], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 16}}, {"id": 270, "type": "primitive_type", "text": "bool", "parent": 269, "children": [], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 16}}, {"id": 271, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 272, "type": "false", "text": "false", "parent": 265, "children": [], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 24}}, {"id": 273, "type": "declaration", "text": "void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();", "parent": 86, "children": [274, 275], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 176, "column": 13}}, {"id": 274, "type": "primitive_type", "text": "void", "parent": 273, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 6}}, {"id": 275, "type": "init_declarator", "text": "stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake()", "parent": 273, "children": [276, 282, 283, 285], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 176, "column": 12}}, {"id": 276, "type": "function_declarator", "text": "stop(bool stop", "parent": 275, "children": [277, 278], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 21}}, {"id": 277, "type": "identifier", "text": "stop", "parent": 276, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 11}}, {"id": 278, "type": "parameter_list", "text": "(bool stop", "parent": 276, "children": [279], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 21}}, {"id": 279, "type": "parameter_declaration", "text": "bool stop", "parent": 278, "children": [280, 281], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 21}}, {"id": 280, "type": "primitive_type", "text": "bool", "parent": 279, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 16}}, {"id": 281, "type": "identifier", "text": "stop", "parent": 279, "children": [], "start_point": {"row": 173, "column": 17}, "end_point": {"row": 173, "column": 21}}, {"id": 282, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 23}}, {"id": 283, "type": "ERROR", "text": "true)", "parent": 275, "children": [284], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 29}}, {"id": 284, "type": "true", "text": "true", "parent": 283, "children": [], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 28}}, {"id": 285, "type": "initializer_list", "text": "{\n if (!(_stopped = stop))\n wake()", "parent": 275, "children": [286, 296], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 176, "column": 12}}, {"id": 286, "type": "ERROR", "text": "if (!(_stopped = stop))", "parent": 285, "children": [287], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 27}}, {"id": 287, "type": "call_expression", "text": "if (!(_stopped = stop))", "parent": 286, "children": [288], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 27}}, {"id": 288, "type": "argument_list", "text": "(!(_stopped = stop))", "parent": 287, "children": [289], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 27}}, {"id": 289, "type": "unary_expression", "text": "!(_stopped = stop)", "parent": 288, "children": [290, 291], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 26}}, {"id": 290, "type": "!", "text": "!", "parent": 289, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 9}}, {"id": 291, "type": "parenthesized_expression", "text": "(_stopped = stop)", "parent": 289, "children": [292], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 26}}, {"id": 292, "type": "assignment_expression", "text": "_stopped = stop", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 25}}, {"id": 293, "type": "identifier", "text": "_stopped", "parent": 292, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 18}}, {"id": 294, "type": "=", "text": "=", "parent": 292, "children": [], "start_point": {"row": 175, "column": 19}, "end_point": {"row": 175, "column": 20}}, {"id": 295, "type": "identifier", "text": "stop", "parent": 292, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 25}}, {"id": 296, "type": "call_expression", "text": "wake()", "parent": 285, "children": [297, 298], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 12}}, {"id": 297, "type": "identifier", "text": "wake", "parent": 296, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 10}}, {"id": 298, "type": "argument_list", "text": "()", "parent": 296, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 12}}, {"id": 299, "type": "declaration", "text": "void cancel();", "parent": 79, "children": [300, 301], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 16}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 6}}, {"id": 301, "type": "function_declarator", "text": "cancel()", "parent": 299, "children": [302, 303], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 15}}, {"id": 302, "type": "identifier", "text": "cancel", "parent": 301, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 13}}, {"id": 303, "type": "parameter_list", "text": "()", "parent": 301, "children": [], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 15}}, {"id": 304, "type": "labeled_statement", "text": "private:\n using ThreadPtr = std::unique_ptr<std::thread>;", "parent": 79, "children": [305], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 182, "column": 49}}, {"id": 305, "type": "declaration", "text": "using ThreadPtr = std::unique_ptr<std::thread>;", "parent": 304, "children": [306, 307, 317], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 49}}, {"id": 306, "type": "type_identifier", "text": "using", "parent": 305, "children": [], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 7}}, {"id": 307, "type": "init_declarator", "text": "ThreadPtr = std::unique_ptr<std::thread", "parent": 305, "children": [308, 309, 310, 316], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 47}}, {"id": 308, "type": "identifier", "text": "ThreadPtr", "parent": 307, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 17}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 19}}, {"id": 310, "type": "ERROR", "text": "std::unique_ptr<std::", "parent": 307, "children": [311, 312], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 41}}, {"id": 311, "type": "identifier", "text": "std", "parent": 310, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 23}}, {"id": 312, "type": "binary_expression", "text": "unique_ptr<std", "parent": 310, "children": [313, 314, 315], "start_point": {"row": 182, "column": 25}, "end_point": {"row": 182, "column": 39}}, {"id": 313, "type": "identifier", "text": "unique_ptr", "parent": 312, "children": [], "start_point": {"row": 182, "column": 25}, "end_point": {"row": 182, "column": 35}}, {"id": 314, "type": "<", "text": "<", "parent": 312, "children": [], "start_point": {"row": 182, "column": 35}, "end_point": {"row": 182, "column": 36}}, {"id": 315, "type": "identifier", "text": "std", "parent": 312, "children": [], "start_point": {"row": 182, "column": 36}, "end_point": {"row": 182, "column": 39}}, {"id": 316, "type": "identifier", "text": "thread", "parent": 307, "children": [], "start_point": {"row": 182, "column": 41}, "end_point": {"row": 182, "column": 47}}, {"id": 317, "type": "ERROR", "text": ">", "parent": 305, "children": [318], "start_point": {"row": 182, "column": 47}, "end_point": {"row": 182, "column": 48}}, {"id": 318, "type": ">", "text": ">", "parent": 317, "children": [], "start_point": {"row": 182, "column": 47}, "end_point": {"row": 182, "column": 48}}, {"id": 319, "type": "labeled_statement", "text": "std::string _name;", "parent": 79, "children": [320, 321], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 20}}, {"id": 320, "type": "statement_identifier", "text": "std", "parent": 319, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 5}}, {"id": 321, "type": "declaration", "text": "string _name;", "parent": 319, "children": [322, 323], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 20}}, {"id": 322, "type": "type_identifier", "text": "string", "parent": 321, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 13}}, {"id": 323, "type": "identifier", "text": "_name", "parent": 321, "children": [], "start_point": {"row": 184, "column": 14}, "end_point": {"row": 184, "column": 19}}, {"id": 324, "type": "declaration", "text": "State _state;", "parent": 79, "children": [325, 326], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 15}}, {"id": 325, "type": "type_identifier", "text": "State", "parent": 324, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 7}}, {"id": 326, "type": "identifier", "text": "_state", "parent": 324, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 14}}, {"id": 327, "type": "labeled_statement", "text": "std::mutex _lockDrawing;", "parent": 79, "children": [328, 329], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 26}}, {"id": 328, "type": "statement_identifier", "text": "std", "parent": 327, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 5}}, {"id": 329, "type": "declaration", "text": "mutex _lockDrawing;", "parent": 327, "children": [330, 331], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 26}}, {"id": 330, "type": "type_identifier", "text": "mutex", "parent": 329, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 12}}, {"id": 331, "type": "identifier", "text": "_lockDrawing", "parent": 329, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 25}}, {"id": 332, "type": "labeled_statement", "text": "std::condition_variable _drawing;", "parent": 79, "children": [333, 334], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 35}}, {"id": 333, "type": "statement_identifier", "text": "std", "parent": 332, "children": [], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 5}}, {"id": 334, "type": "declaration", "text": "condition_variable _drawing;", "parent": 332, "children": [335, 336], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 35}}, {"id": 335, "type": "type_identifier", "text": "condition_variable", "parent": 334, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 25}}, {"id": 336, "type": "identifier", "text": "_drawing", "parent": 334, "children": [], "start_point": {"row": 187, "column": 26}, "end_point": {"row": 187, "column": 34}}, {"id": 337, "type": "declaration", "text": "ThreadPtr _thread;", "parent": 79, "children": [338, 339], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 20}}, {"id": 338, "type": "type_identifier", "text": "ThreadPtr", "parent": 337, "children": [], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 11}}, {"id": 339, "type": "identifier", "text": "_thread", "parent": 337, "children": [], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 19}}, {"id": 340, "type": "function_definition", "text": "bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}", "parent": 79, "children": [341, 342], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 199, "column": 1}}, {"id": 341, "type": "primitive_type", "text": "bool", "parent": 340, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 6}}, {"id": 342, "type": "identifier", "text": "_notified", "parent": 340, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 16}}, {"id": 343, "type": "true", "text": "true", "parent": 340, "children": [], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 21}}, {"id": 344, "type": "labeled_statement", "text": "std::string _stepLog;", "parent": 340, "children": [345, 346], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 23}}, {"id": 345, "type": "statement_identifier", "text": "std", "parent": 344, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 5}}, {"id": 346, "type": "declaration", "text": "string _stepLog;", "parent": 344, "children": [347, 348], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 23}}, {"id": 347, "type": "type_identifier", "text": "string", "parent": 346, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 13}}, {"id": 348, "type": "identifier", "text": "_stepLog", "parent": 346, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 22}}, {"id": 349, "type": "declaration", "text": "static AnimatedAlgorithm* _current;", "parent": 340, "children": [350, 351], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 37}}, {"id": 350, "type": "type_identifier", "text": "AnimatedAlgorithm", "parent": 349, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 26}}, {"id": 351, "type": "pointer_declarator", "text": "* _current", "parent": 349, "children": [352, 353], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 36}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 27}}, {"id": 353, "type": "identifier", "text": "_current", "parent": 351, "children": [], "start_point": {"row": 192, "column": 28}, "end_point": {"row": 192, "column": 36}}, {"id": 354, "type": "declaration", "text": "void launch();", "parent": 340, "children": [355, 356], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 16}}, {"id": 355, "type": "primitive_type", "text": "void", "parent": 354, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 6}}, {"id": 356, "type": "function_declarator", "text": "launch()", "parent": 354, "children": [357, 358], "start_point": {"row": 194, "column": 7}, "end_point": {"row": 194, "column": 15}}, {"id": 357, "type": "identifier", "text": "launch", "parent": 356, "children": [], "start_point": {"row": 194, "column": 7}, "end_point": {"row": 194, "column": 13}}, {"id": 358, "type": "parameter_list", "text": "()", "parent": 356, "children": [], "start_point": {"row": 194, "column": 13}, "end_point": {"row": 194, "column": 15}}, {"id": 359, "type": "declaration", "text": "friend class GUI;", "parent": 340, "children": [360, 361], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 19}}, {"id": 360, "type": "type_identifier", "text": "friend", "parent": 359, "children": [], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 8}}, {"id": 361, "type": "ERROR", "text": "GUI", "parent": 359, "children": [362], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 18}}, {"id": 362, "type": "identifier", "text": "GUI", "parent": 361, "children": [], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 18}}, {"id": 363, "type": "declaration", "text": "friend void", "parent": 340, "children": [364, 365], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 13}}, {"id": 364, "type": "type_identifier", "text": "friend", "parent": 363, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 8}}, {"id": 365, "type": "identifier", "text": "void", "parent": 363, "children": [], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 13}}, {"id": 366, "type": "labeled_statement", "text": "this_algorithm::draw(bool, const char*, ...);", "parent": 340, "children": [367], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 59}}, {"id": 367, "type": "statement_identifier", "text": "this_algorithm", "parent": 366, "children": [], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 28}}, {"id": 368, "type": "call_expression", "text": "draw(bool, const char*, ...)", "parent": 366, "children": [369, 370], "start_point": {"row": 197, "column": 30}, "end_point": {"row": 197, "column": 58}}, {"id": 369, "type": "identifier", "text": "draw", "parent": 368, "children": [], "start_point": {"row": 197, "column": 30}, "end_point": {"row": 197, "column": 34}}, {"id": 370, "type": "argument_list", "text": "(bool, const char*, ...)", "parent": 368, "children": [371, 372], "start_point": {"row": 197, "column": 34}, "end_point": {"row": 197, "column": 58}}, {"id": 371, "type": "identifier", "text": "bool", "parent": 370, "children": [], "start_point": {"row": 197, "column": 35}, "end_point": {"row": 197, "column": 39}}, {"id": 372, "type": "ERROR", "text": "char*, ...", "parent": 370, "children": [373, 374], "start_point": {"row": 197, "column": 47}, "end_point": {"row": 197, "column": 57}}, {"id": 373, "type": "identifier", "text": "char", "parent": 372, "children": [], "start_point": {"row": 197, "column": 47}, "end_point": {"row": 197, "column": 51}}, {"id": 374, "type": "*", "text": "*", "parent": 372, "children": [], "start_point": {"row": 197, "column": 51}, "end_point": {"row": 197, "column": 52}}, {"id": 375, "type": "preproc_call", "text": "#endif // __AnimatedAlgorithm_h\n", "parent": 0, "children": [376], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 204, "column": 0}}, {"id": 376, "type": "preproc_directive", "text": "#endif", "parent": 375, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20, 29, 49, 53, 79, 86, 92, 96, 99, 103, 114, 121, 126, 133, 143, 160, 164, 172, 177, 181, 184, 188, 201, 205, 216, 220, 229, 233, 247, 258, 266, 276, 301, 340, 356], "variables": [26, 32, 56, 58, 119, 124, 167, 191, 193, 195, 197, 208, 210, 212, 223, 225, 236, 242, 250, 252, 256, 261, 263, 269, 273, 279, 299, 305, 321, 324, 329, 334, 337, 346, 349, 354, 359, 363], "classes": [50], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": [65, 66, 80, 81]}, "statements": {"expressions": [68, 70, 72, 74, 76, 83, 107, 108, 152, 287, 289, 291, 296, 312, 368], "assignments": [292], "loops": [], "conditionals": [1, 2, 5, 18, 19, 21, 22, 23, 24, 25, 30, 34, 38, 42, 54, 62, 63, 67, 69, 71, 73, 75, 77, 78, 82, 84, 85, 87, 88, 90, 91, 93, 97, 104, 109, 110, 113, 115, 118, 122, 127, 130, 132, 134, 137, 141, 145, 148, 151, 153, 154, 155, 156, 157, 158, 159, 161, 163, 165, 168, 170, 173, 178, 180, 182, 185, 187, 189, 202, 204, 206, 217, 219, 221, 230, 232, 234, 237, 243, 245, 248, 259, 267, 277, 281, 293, 295, 297, 302, 306, 308, 311, 313, 315, 316, 320, 322, 323, 325, 326, 328, 330, 331, 333, 335, 336, 338, 339, 342, 345, 347, 348, 350, 353, 357, 360, 362, 364, 365, 367, 369, 371, 373], "returns": [106, 117, 136, 199, 214, 227, 240], "exceptions": []}, "expressions": {"calls": [375], "literals": [8, 11, 14, 17, 176, 255], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "draw", "text_snippet": "namespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the curre"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "draw(bool stop"}, {"node_id": 49, "universal_type": "function", "name": "draw", "text_snippet": "inline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "draw(bool, const char*, ...)"}, {"node_id": 79, "universal_type": "function", "name": "RunMode", "text_snippet": "enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Des"}, {"node_id": 86, "universal_type": "function", "name": "start", "text_snippet": "RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do "}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "AnimatedAlgorithm()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "const char* name() const\n {\n return _name.c_str();\n }"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "name() const"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "state()"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "start()"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "join()"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "stepLog()"}, {"node_id": 143, "universal_type": "function", "name": "_stopped{false};", "text_snippet": "bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n "}, {"node_id": 160, "universal_type": "function", "name": "initialize", "text_snippet": "virtual void initialize()\n {\n // do nothing\n }"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "initialize()"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "run()"}, {"node_id": 177, "universal_type": "function", "name": "terminate", "text_snippet": "virtual void terminate()\n {\n // do nothing\n }"}, {"node_id": 181, "universal_type": "function", "name": "unknown", "text_snippet": "terminate()"}, {"node_id": 184, "universal_type": "function", "name": "onMouse", "text_snippet": "virtual bool onMouse(double, double, int, int)\n {\n return false;\n }"}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "onMouse(double, double, int, int)"}, {"node_id": 201, "universal_type": "function", "name": "onMotion", "text_snippet": "virtual bool onMotion(int, double, double)\n {\n return false;\n }"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "onMotion(int, double, double)"}, {"node_id": 216, "universal_type": "function", "name": "onScroll", "text_snippet": "virtual bool onScroll(double, double)\n {\n return false;\n }"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "onScroll(double, double)"}, {"node_id": 229, "universal_type": "function", "name": "onChar", "text_snippet": "virtual bool onChar(unsigned int)\n {\n return false;\n }"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "onChar(unsigned int)"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "draw(int, int)"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "wait(bool)"}, {"node_id": 266, "universal_type": "function", "name": "unknown", "text_snippet": "wake(bool"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "stop(bool stop"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "cancel()"}, {"node_id": 340, "universal_type": "function", "name": "_notified{true};", "text_snippet": "bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch("}, {"node_id": 356, "universal_type": "function", "name": "unknown", "text_snippet": "launch()"}], "class_declarations": [{"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include <condition_variable>\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"}, {"node_id": 15, "text": "#include <thread>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "//[]---------------------------------------------------------------[]\n//| |\n//| Copyright (C) 2016, 2022 <NAME>. |\n//| |\n//| This software is provided 'as-is', without any express or |\n//| implied warranty. In no event will the authors be held liable |\n//| for any damages arising from the use of this software. |\n//| |\n//| Permission is granted to anyone to use this software for any |\n//| purpose, including commercial applications, and to alter it and |\n//| redistribute it freely, subject to the following restrictions: |\n//| |\n//| 1. The origin of this software must not be misrepresented; you |\n//| must not claim that you wrote the original software. If you use |\n//| this software in a product, an acknowledgment in the product |\n//| documentation would be appreciated but is not required. |\n//| |\n//| 2. Altered source versions must be plainly marked as such, and |\n//| must not be misrepresented as being the original software. |\n//| |\n//| 3. This notice may not be removed or altered from any source |\n//| distribution. |\n//| |\n//[]---------------------------------------------------------------[]\n//\n// OVERVIEW: AnimatedAlgorithm.h\n// ========\n// Class definition for animated algorithm.\n//\n// Author: <NAME>\n// Last revision: 10/02/2022\n\n#ifndef __AnimatedAlgorithm_h\n#define __AnimatedAlgorithm_h\n\n#include <condition_variable>\n#include <memory>\n#include <string>\n#include <thread>\n\nnamespace cg\n{ // begin namespace cg\n\nnamespace this_algorithm\n{ // begin namespace this_algorithm\n\n#ifdef _DRAW_ALG\n\n /// Draws the current algorithm.\nvoid draw(bool stop = false, const char* fmt = nullptr, ...);\n\n#else\n\ninline void\ndraw(bool, const char*, ...)\n{\n // do nothing\n}\n\n#endif // _DRAW_ALG\n\n} // end namespace this_algorithm\n\n\n/////////////////////////////////////////////////////////////////////\n//\n// AnimatedAlgorithm: animated algorithm class\n// =================\nclass AnimatedAlgorithm\n{\npublic:\n enum class State\n {\n CREATED,\n RUNNING,\n SLEEPING,\n CANCEL,\n RUN,\n TERMINATED\n };\n\n enum class RunMode\n {\n CONTINUE,\n STEP\n };\n\n RunMode runMode{RunMode::CONTINUE};\n\n /// Destructor.\n virtual ~AnimatedAlgorithm()\n {\n // do nothing\n }\n\n /// Gets the name of this algorithm.\n const char* name() const\n {\n return _name.c_str();\n }\n\n State state() const\n {\n return _state;\n }\n\n /// Starts this algorithm.\n void start();\n\n /// Waits for termination of this algorithm.\n void join();\n\n const std::string& stepLog() const\n {\n return _stepLog;\n }\n\nprotected:\n bool _canDraw{false};\n bool _stopped{false};\n\n /// Constructor.\n AnimatedAlgorithm(const std::string& s):\n _name{s},\n _state{State::CREATED}\n {\n // do nothing\n }\n\n /// Initializes this algorithm.\n virtual void initialize()\n {\n // do nothing\n }\n\n /// Runs this algorithm.\n virtual void run() = 0;\n\n /// Terminates this algorithm.\n virtual void terminate()\n {\n // do nothing\n }\n\n /// Handles mouse button event.\n virtual bool onMouse(double, double, int, int)\n {\n return false;\n }\n \n /// Handles mouse motion event.\n virtual bool onMotion(int, double, double)\n {\n return false;\n }\n\n /// Handles mouse wheel/touchpad gesture event.\n virtual bool onScroll(double, double)\n {\n return false;\n }\n\n /// Handles text input event.\n virtual bool onChar(unsigned int)\n {\n return false;\n }\n\n virtual void draw(int, int) = 0;\n\n void wait(bool);\n void wake(bool = false);\n\n void stop(bool stop = true)\n {\n if (!(_stopped = stop))\n wake();\n }\n\n void cancel();\n\nprivate:\n using ThreadPtr = std::unique_ptr<std::thread>;\n\n std::string _name;\n State _state;\n std::mutex _lockDrawing;\n std::condition_variable _drawing;\n ThreadPtr _thread;\n bool _notified{true};\n std::string _stepLog;\n\n static AnimatedAlgorithm* _current;\n\n void launch();\n\n friend class GUI;\n friend void this_algorithm::draw(bool, const char*, ...);\n\n}; // AnimatedAlgorithm\n\n} // end namespace cg\n\n#endif // __AnimatedAlgorithm_h\n"}
144
c
/************************************************************************ * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ************************************************************************/ //--------------------------------------------------------------------------- #ifndef AIEngineH #define AIEngineH //--------------------------------------------------------------------------- #include "AIObject.h" //--------------------------------------------------------------------------- class BDAIEngine { private: Vector3 *playerPos; BDAIObject *firstAI, *lastAI; public: BDAIEngine(Vector3* p) : playerPos(p) { firstAI = NULL; lastAI = NULL; } void AddAIObject(BDAIObject* obj) { // must move in previousNode direction to get to lastAI if (firstAI == NULL) { firstAI = obj; lastAI = obj; } else { lastAI = obj; } } void Update(); }; //--------------------------------------------------------------------------- #endif
33.52
44
(translation_unit) "/************************************************************************\n * Copyright 2013 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ************************************************************************/\n//---------------------------------------------------------------------------\n#ifndef AIEngineH\n#define AIEngineH\n//---------------------------------------------------------------------------\n#include "AIObject.h"\n//---------------------------------------------------------------------------\nclass BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n};\n//---------------------------------------------------------------------------\n#endif\n" (comment) "/************************************************************************\n * Copyright 2013 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ************************************************************************/" (comment) "//---------------------------------------------------------------------------" (preproc_ifdef) "#ifndef AIEngineH\n#define AIEngineH\n//---------------------------------------------------------------------------\n#include "AIObject.h"\n//---------------------------------------------------------------------------\nclass BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n};\n//---------------------------------------------------------------------------\n#endif" (#ifndef) "#ifndef" (identifier) "AIEngineH" (preproc_def) "#define AIEngineH\n" (#define) "#define" (identifier) "AIEngineH" (comment) "//---------------------------------------------------------------------------" (preproc_include) "#include "AIObject.h"\n" (#include) "#include" (string_literal) ""AIObject.h"" (") """ (string_content) "AIObject.h" (") """ (comment) "//---------------------------------------------------------------------------" (function_definition) "class BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n}" (type_identifier) "class" (identifier) "BDAIEngine" (compound_statement) "{\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n}" ({) "{" (labeled_statement) "private:\n Vector3 *playerPos;" (statement_identifier) "private" (:) ":" (declaration) "Vector3 *playerPos;" (type_identifier) "Vector3" (pointer_declarator) "*playerPos" (*) "*" (identifier) "playerPos" (;) ";" (declaration) "BDAIObject *firstAI, *lastAI;" (type_identifier) "BDAIObject" (pointer_declarator) "*firstAI" (*) "*" (identifier) "firstAI" (,) "," (pointer_declarator) "*lastAI" (*) "*" (identifier) "lastAI" (;) ";" (labeled_statement) "public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }" (statement_identifier) "public" (ERROR) ":\n BDAIEngine(Vector3* p)" (:) ":" (call_expression) "BDAIEngine(Vector3* p)" (identifier) "BDAIEngine" (argument_list) "(Vector3* p)" (() "(" (binary_expression) "Vector3* p" (identifier) "Vector3" (*) "*" (identifier) "p" ()) ")" (:) ":" (ERROR) "playerPos(p)" (macro_type_specifier) "playerPos(p)" (identifier) "playerPos" (() "(" (type_descriptor) "p" (type_identifier) "p" ()) ")" (compound_statement) "{\n firstAI = NULL;\n lastAI = NULL;\n }" ({) "{" (expression_statement) "firstAI = NULL;" (assignment_expression) "firstAI = NULL" (identifier) "firstAI" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "lastAI = NULL;" (assignment_expression) "lastAI = NULL" (identifier) "lastAI" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }" (primitive_type) "void" (function_declarator) "AddAIObject(BDAIObject* obj)" (identifier) "AddAIObject" (parameter_list) "(BDAIObject* obj)" (() "(" (parameter_declaration) "BDAIObject* obj" (type_identifier) "BDAIObject" (pointer_declarator) "* obj" (*) "*" (identifier) "obj" ()) ")" (compound_statement) "{\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }" ({) "{" (comment) "// must move in previousNode direction to get to lastAI" (if_statement) "if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }" (if) "if" (parenthesized_expression) "(firstAI == NULL)" (() "(" (binary_expression) "firstAI == NULL" (identifier) "firstAI" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n firstAI = obj;\n lastAI = obj;\n }" ({) "{" (expression_statement) "firstAI = obj;" (assignment_expression) "firstAI = obj" (identifier) "firstAI" (=) "=" (identifier) "obj" (;) ";" (expression_statement) "lastAI = obj;" (assignment_expression) "lastAI = obj" (identifier) "lastAI" (=) "=" (identifier) "obj" (;) ";" (}) "}" (else_clause) "else {\n lastAI = obj;\n }" (else) "else" (compound_statement) "{\n lastAI = obj;\n }" ({) "{" (expression_statement) "lastAI = obj;" (assignment_expression) "lastAI = obj" (identifier) "lastAI" (=) "=" (identifier) "obj" (;) ";" (}) "}" (}) "}" (declaration) "void Update();" (primitive_type) "void" (function_declarator) "Update()" (identifier) "Update" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "//---------------------------------------------------------------------------" (#endif) "#endif"
144
2
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 33.52, "nodes": 85, "errors": 0, "source_hash": "9891b4b6224d687fa33fdcf9e1d8a93a7a73cf14217e439d1fe8b58a78661ff6", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef AIEngineH\n#define AIEngineH\n//---------------------------------------------------------------------------\n#include \"AIObject.h\"\n//---------------------------------------------------------------------------\nclass BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n};\n//---------------------------------------------------------------------------\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 84], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 45, "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": "AIEngineH", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define AIEngineH\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": "AIEngineH", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"AIObject.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"AIObject.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 21}}, {"id": 9, "type": "function_definition", "text": "class BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n}", "parent": 0, "children": [10], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 10, "type": "identifier", "text": "BDAIEngine", "parent": 9, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 16}}, {"id": 11, "type": "labeled_statement", "text": "private:\n Vector3 *playerPos;", "parent": 9, "children": [12], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 21}}, {"id": 12, "type": "declaration", "text": "Vector3 *playerPos;", "parent": 11, "children": [13, 14], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 21}}, {"id": 13, "type": "type_identifier", "text": "Vector3", "parent": 12, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 9}}, {"id": 14, "type": "pointer_declarator", "text": "*playerPos", "parent": 12, "children": [15, 16], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 20}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 11}}, {"id": 16, "type": "identifier", "text": "playerPos", "parent": 14, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 17, "type": "declaration", "text": "BDAIObject *firstAI, *lastAI;", "parent": 9, "children": [18, 19, 22], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 31}}, {"id": 18, "type": "type_identifier", "text": "BDAIObject", "parent": 17, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 12}}, {"id": 19, "type": "pointer_declarator", "text": "*firstAI", "parent": 17, "children": [20, 21], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 21, "type": "identifier", "text": "firstAI", "parent": 19, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 21}}, {"id": 22, "type": "pointer_declarator", "text": "*lastAI", "parent": 17, "children": [23, 24], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 24, "type": "identifier", "text": "lastAI", "parent": 22, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 30}}, {"id": 25, "type": "labeled_statement", "text": "public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }", "parent": 9, "children": [26, 34], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 30, "column": 3}}, {"id": 26, "type": "ERROR", "text": ":\n BDAIEngine(Vector3* p)", "parent": 25, "children": [27], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 26, "column": 24}}, {"id": 27, "type": "call_expression", "text": "BDAIEngine(Vector3* p)", "parent": 26, "children": [28, 29], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 24}}, {"id": 28, "type": "identifier", "text": "BDAIEngine", "parent": 27, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 12}}, {"id": 29, "type": "argument_list", "text": "(Vector3* p)", "parent": 27, "children": [30], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 24}}, {"id": 30, "type": "binary_expression", "text": "Vector3* p", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 23}}, {"id": 31, "type": "identifier", "text": "Vector3", "parent": 30, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 20}}, {"id": 32, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 33, "type": "identifier", "text": "p", "parent": 30, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 34, "type": "ERROR", "text": "playerPos(p)", "parent": 25, "children": [35], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 18}}, {"id": 35, "type": "macro_type_specifier", "text": "playerPos(p)", "parent": 34, "children": [36, 37], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 18}}, {"id": 36, "type": "identifier", "text": "playerPos", "parent": 35, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 15}}, {"id": 37, "type": "type_descriptor", "text": "p", "parent": 35, "children": [38], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 17}}, {"id": 38, "type": "type_identifier", "text": "p", "parent": 37, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 17}}, {"id": 39, "type": "assignment_expression", "text": "firstAI = NULL", "parent": 25, "children": [40, 41, 42], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 18}}, {"id": 40, "type": "identifier", "text": "firstAI", "parent": 39, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 11}}, {"id": 41, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 42, "type": "null", "text": "NULL", "parent": 39, "children": [43], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 43, "type": "NULL", "text": "NULL", "parent": 42, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 44, "type": "assignment_expression", "text": "lastAI = NULL", "parent": 25, "children": [45, 46, 47], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 17}}, {"id": 45, "type": "identifier", "text": "lastAI", "parent": 44, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}, {"id": 47, "type": "null", "text": "NULL", "parent": 44, "children": [48], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 17}}, {"id": 48, "type": "NULL", "text": "NULL", "parent": 47, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 17}}, {"id": 49, "type": "function_definition", "text": "void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }", "parent": 9, "children": [50, 51], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 6}}, {"id": 51, "type": "function_declarator", "text": "AddAIObject(BDAIObject* obj)", "parent": 49, "children": [52, 53], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 35}}, {"id": 52, "type": "identifier", "text": "AddAIObject", "parent": 51, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 18}}, {"id": 53, "type": "parameter_list", "text": "(BDAIObject* obj)", "parent": 51, "children": [54], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 35}}, {"id": 54, "type": "parameter_declaration", "text": "BDAIObject* obj", "parent": 53, "children": [55, 56], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 34}}, {"id": 55, "type": "type_identifier", "text": "BDAIObject", "parent": 54, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 29}}, {"id": 56, "type": "pointer_declarator", "text": "* obj", "parent": 54, "children": [57, 58], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 34}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 30}}, {"id": 58, "type": "identifier", "text": "obj", "parent": 56, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 34}}, {"id": 59, "type": "if_statement", "text": "if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }", "parent": 49, "children": [60, 74], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 60, "type": "parenthesized_expression", "text": "(firstAI == NULL)", "parent": 59, "children": [61], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 24}}, {"id": 61, "type": "binary_expression", "text": "firstAI == NULL", "parent": 60, "children": [62, 63, 64], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 23}}, {"id": 62, "type": "identifier", "text": "firstAI", "parent": 61, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 63, "type": "==", "text": "==", "parent": 61, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 18}}, {"id": 64, "type": "null", "text": "NULL", "parent": 61, "children": [65], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 23}}, {"id": 65, "type": "NULL", "text": "NULL", "parent": 64, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 23}}, {"id": 66, "type": "assignment_expression", "text": "firstAI = obj", "parent": 59, "children": [67, 68, 69], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 19}}, {"id": 67, "type": "identifier", "text": "firstAI", "parent": 66, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 13}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 69, "type": "identifier", "text": "obj", "parent": 66, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 19}}, {"id": 70, "type": "assignment_expression", "text": "lastAI = obj", "parent": 59, "children": [71, 72, 73], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 18}}, {"id": 71, "type": "identifier", "text": "lastAI", "parent": 70, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 12}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 73, "type": "identifier", "text": "obj", "parent": 70, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 18}}, {"id": 74, "type": "else_clause", "text": "else {\n lastAI = obj;\n }", "parent": 59, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 39, "column": 5}}, {"id": 75, "type": "assignment_expression", "text": "lastAI = obj", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 18}}, {"id": 76, "type": "identifier", "text": "lastAI", "parent": 75, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 12}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 78, "type": "identifier", "text": "obj", "parent": 75, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 18}}, {"id": 79, "type": "declaration", "text": "void Update();", "parent": 9, "children": [80, 81], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 16}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 81, "type": "function_declarator", "text": "Update()", "parent": 79, "children": [82, 83], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 15}}, {"id": 82, "type": "identifier", "text": "Update", "parent": 81, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 83, "type": "parameter_list", "text": "()", "parent": 81, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 15}}, {"id": 84, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 49, 51, 81], "variables": [12, 17, 54, 79], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [27, 30, 60, 61], "assignments": [39, 44, 66, 70, 75], "loops": [], "conditionals": [0, 1, 2, 5, 10, 13, 16, 18, 21, 24, 28, 31, 33, 35, 36, 38, 40, 45, 52, 55, 58, 59, 62, 67, 69, 71, 73, 76, 78, 82, 84], "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": "BDAIEngine", "text_snippet": "class BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEn"}, {"node_id": 49, "universal_type": "function", "name": "AddAIObject", "text_snippet": "void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n "}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "AddAIObject(BDAIObject* obj)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "Update()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"AIObject.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/************************************************************************\n * Copyright 2013 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ************************************************************************/\n//---------------------------------------------------------------------------\n#ifndef AIEngineH\n#define AIEngineH\n//---------------------------------------------------------------------------\n#include \"AIObject.h\"\n//---------------------------------------------------------------------------\nclass BDAIEngine {\n private:\n Vector3 *playerPos;\n BDAIObject *firstAI, *lastAI;\n public:\n BDAIEngine(Vector3* p)\n : playerPos(p) {\n firstAI = NULL;\n lastAI = NULL;\n }\n\n void AddAIObject(BDAIObject* obj) {\n // must move in previousNode direction to get to lastAI\n if (firstAI == NULL) {\n firstAI = obj;\n lastAI = obj;\n } else {\n lastAI = obj;\n }\n }\n\n void Update();\n};\n//---------------------------------------------------------------------------\n#endif\n"}
145
c
// // AXPhotoViewer.h // AXPhotoViewer // // Created by <NAME> on 8/18/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for AXPhotoViewer. FOUNDATION_EXPORT double AXPhotoViewerVersionNumber; //! Project version string for AXPhotoViewer. FOUNDATION_EXPORT const unsigned char AXPhotoViewerVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <AXPhotoViewer/PublicHeader.h> #import "FLAnimatedImageView+AXExtensions.h" #import "UIImageView+AXExtensions.h"
38.27
15
(translation_unit) "//\n// AXPhotoViewer.h\n// AXPhotoViewer\n//\n// Created by <NAME> on 8/18/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for AXPhotoViewer.\nFOUNDATION_EXPORT double AXPhotoViewerVersionNumber;\n\n//! Project version string for AXPhotoViewer.\nFOUNDATION_EXPORT const unsigned char AXPhotoViewerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <AXPhotoViewer/PublicHeader.h>\n\n#import "FLAnimatedImageView+AXExtensions.h"\n#import "UIImageView+AXExtensions.h"\n" (comment) "//" (comment) "// AXPhotoViewer.h" (comment) "// AXPhotoViewer" (comment) "//" (comment) "// Created by <NAME> on 8/18/19." (comment) "// Copyright © 2019 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (comment) "/! Project version number for AXPhotoViewer.\n" (declaration) "OUNDATION_EXPORT double AXPhotoViewerVersionNumber;\n" (type_identifier) "OUNDATION_EXPORT " (ERROR) "ouble " (identifier) "ouble " (identifier) "XPhotoViewerVersionNumber;" (;) "\n" (comment) "/! Project version string for AXPhotoViewer.\n" (declaration) "OUNDATION_EXPORT const unsigned " (type_identifier) "OUNDATION_EXPORT " (type_qualifier) "onst " (const) "onst " (identifier) "nsigned " (;) "" (declaration) "har AXPhotoViewerVersionString[];\n" (primitive_type) "har " (array_declarator) "XPhotoViewerVersionString[];" (identifier) "XPhotoViewerVersionString[" ([) "]" (]) ";" (;) "\n" (comment) "/ In this header, you should import all the public headers of your framework using statements like #import <AXPhotoViewer/PublicHeader.h>\n" (preproc_call) "import "FLAnimatedImageView+AXExtensions.h"\n#" (preproc_directive) "import " (preproc_arg) "FLAnimatedImageView+AXExtensions.h"\n" (preproc_call) "import "UIImageView+AXExtensions.h"\n" (preproc_directive) "import " (preproc_arg) "UIImageView+AXExtensions.h"\n"
39
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.27, "nodes": 19, "errors": 0, "source_hash": "cb3854ad067704ab18e500ac3a0a0140adcfe5ab829ba649664596c6e61b5e8f", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "declaration", "text": "OUNDATION_EXPORT double AXPhotoViewerVersionNumber;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 52}}, {"id": 3, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 2, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 4, "type": "ERROR", "text": "ouble ", "parent": 2, "children": [5], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 5, "type": "identifier", "text": "ouble ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "XPhotoViewerVersionNumber;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 51}}, {"id": 7, "type": "declaration", "text": "OUNDATION_EXPORT const unsigned ", "parent": null, "children": [8, 9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 8, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "type_qualifier", "text": "onst ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 10, "type": "identifier", "text": "nsigned ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "har AXPhotoViewerVersionString[];\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 67}}, {"id": 12, "type": "primitive_type", "text": "har ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "XPhotoViewerVersionString[];", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 66}}, {"id": 14, "type": "identifier", "text": "XPhotoViewerVersionString[", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 64}}, {"id": 15, "type": "preproc_call", "text": "import \"FLAnimatedImageView+AXExtensions.h\"\n#", "parent": null, "children": [16], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 16, "type": "preproc_arg", "text": "FLAnimatedImageView+AXExtensions.h\"\n", "parent": 15, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 44}}, {"id": 17, "type": "preproc_call", "text": "import \"UIImageView+AXExtensions.h\"\n", "parent": null, "children": [18], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 18, "type": "preproc_arg", "text": "UIImageView+AXExtensions.h\"\n", "parent": 17, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 36}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 7, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 15, 17], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// AXPhotoViewer.h\n// AXPhotoViewer\n//\n// Created by <NAME> on 8/18/19.\n// Copyright \u00a9 2019 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for AXPhotoViewer.\nFOUNDATION_EXPORT double AXPhotoViewerVersionNumber;\n\n//! Project version string for AXPhotoViewer.\nFOUNDATION_EXPORT const unsigned char AXPhotoViewerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <AXPhotoViewer/PublicHeader.h>\n\n#import \"FLAnimatedImageView+AXExtensions.h\"\n#import \"UIImageView+AXExtensions.h\"\n"}
146
c
/* * helper object for POSIX examples */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include "serial.h" int set_interface_attribs(int fd, int speed) { struct termios tty; if (tcgetattr(fd, &tty) < 0) { printf("Error from tcgetattr: %s\n", strerror(errno)); return -1; } cfsetospeed(&tty, (speed_t)speed); cfsetispeed(&tty, (speed_t)speed); tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */ tty.c_cflag &= ~CSIZE; tty.c_cflag |= CS8; /* 8-bit characters */ tty.c_cflag &= ~PARENB; /* no parity bit */ tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */ tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */ /* setup for non-canonical mode */ tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); tty.c_oflag &= ~OPOST; /* fetch bytes as they become available */ tty.c_cc[VMIN] = 1; tty.c_cc[VTIME] = 1; if (tcsetattr(fd, TCSANOW, &tty) != 0) { printf("Error from tcsetattr: %s\n", strerror(errno)); return -1; } return 0; } // // set_mincount(fd, 0); /* set to pure timed read */ // void set_mincount(int fd, int mcount) { struct termios tty; if (tcgetattr(fd, &tty) < 0) { printf("Error tcgetattr: %s\n", strerror(errno)); return; } tty.c_cc[VMIN] = mcount ? 1 : 0; tty.c_cc[VTIME] = 5; /* half second timer */ if (tcsetattr(fd, TCSANOW, &tty) < 0) printf("Error tcsetattr: %s\n", strerror(errno)); }
30.04
55
(translation_unit) "/*\n * helper object for POSIX examples\n */\n#include <errno.h>\n#include <fcntl.h> \n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <termios.h>\n#include <unistd.h>\n\n#include "serial.h"\n\n\nint set_interface_attribs(int fd, int speed)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error from tcgetattr: %s\n", strerror(errno));\n return -1;\n }\n\n cfsetospeed(&tty, (speed_t)speed);\n cfsetispeed(&tty, (speed_t)speed);\n\n tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */\n tty.c_cflag &= ~CSIZE;\n tty.c_cflag |= CS8; /* 8-bit characters */\n tty.c_cflag &= ~PARENB; /* no parity bit */\n tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */\n tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */\n\n /* setup for non-canonical mode */\n tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);\n tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n tty.c_oflag &= ~OPOST;\n\n /* fetch bytes as they become available */\n tty.c_cc[VMIN] = 1;\n tty.c_cc[VTIME] = 1;\n\n if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf("Error from tcsetattr: %s\n", strerror(errno));\n return -1;\n }\n return 0;\n}\n\n//\n// set_mincount(fd, 0); /* set to pure timed read */\n//\nvoid set_mincount(int fd, int mcount)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error tcgetattr: %s\n", strerror(errno));\n return;\n }\n\n tty.c_cc[VMIN] = mcount ? 1 : 0;\n tty.c_cc[VTIME] = 5; /* half second timer */\n\n if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf("Error tcsetattr: %s\n", strerror(errno));\n}\n\n\n" (comment) "/*\n * helper object for POSIX examples\n */" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <fcntl.h>" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <termios.h>\n" (#include) "#include" (system_lib_string) "<termios.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include "serial.h"\n" (#include) "#include" (string_literal) ""serial.h"" (") """ (string_content) "serial.h" (") """ (function_definition) "int set_interface_attribs(int fd, int speed)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error from tcgetattr: %s\n", strerror(errno));\n return -1;\n }\n\n cfsetospeed(&tty, (speed_t)speed);\n cfsetispeed(&tty, (speed_t)speed);\n\n tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */\n tty.c_cflag &= ~CSIZE;\n tty.c_cflag |= CS8; /* 8-bit characters */\n tty.c_cflag &= ~PARENB; /* no parity bit */\n tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */\n tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */\n\n /* setup for non-canonical mode */\n tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);\n tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n tty.c_oflag &= ~OPOST;\n\n /* fetch bytes as they become available */\n tty.c_cc[VMIN] = 1;\n tty.c_cc[VTIME] = 1;\n\n if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf("Error from tcsetattr: %s\n", strerror(errno));\n return -1;\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "set_interface_attribs(int fd, int speed)" (identifier) "set_interface_attribs" (parameter_list) "(int fd, int speed)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "int speed" (primitive_type) "int" (identifier) "speed" ()) ")" (compound_statement) "{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error from tcgetattr: %s\n", strerror(errno));\n return -1;\n }\n\n cfsetospeed(&tty, (speed_t)speed);\n cfsetispeed(&tty, (speed_t)speed);\n\n tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */\n tty.c_cflag &= ~CSIZE;\n tty.c_cflag |= CS8; /* 8-bit characters */\n tty.c_cflag &= ~PARENB; /* no parity bit */\n tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */\n tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */\n\n /* setup for non-canonical mode */\n tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);\n tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n tty.c_oflag &= ~OPOST;\n\n /* fetch bytes as they become available */\n tty.c_cc[VMIN] = 1;\n tty.c_cc[VTIME] = 1;\n\n if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf("Error from tcsetattr: %s\n", strerror(errno));\n return -1;\n }\n return 0;\n}" ({) "{" (declaration) "struct termios tty;" (struct_specifier) "struct termios" (struct) "struct" (type_identifier) "termios" (identifier) "tty" (;) ";" (if_statement) "if (tcgetattr(fd, &tty) < 0) {\n printf("Error from tcgetattr: %s\n", strerror(errno));\n return -1;\n }" (if) "if" (parenthesized_expression) "(tcgetattr(fd, &tty) < 0)" (() "(" (binary_expression) "tcgetattr(fd, &tty) < 0" (call_expression) "tcgetattr(fd, &tty)" (identifier) "tcgetattr" (argument_list) "(fd, &tty)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&tty" (&) "&" (identifier) "tty" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Error from tcgetattr: %s\n", strerror(errno));\n return -1;\n }" ({) "{" (expression_statement) "printf("Error from tcgetattr: %s\n", strerror(errno));" (call_expression) "printf("Error from tcgetattr: %s\n", strerror(errno))" (identifier) "printf" (argument_list) "("Error from tcgetattr: %s\n", strerror(errno))" (() "(" (string_literal) ""Error from tcgetattr: %s\n"" (") """ (string_content) "Error from tcgetattr: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (expression_statement) "cfsetospeed(&tty, (speed_t)speed);" (call_expression) "cfsetospeed(&tty, (speed_t)speed)" (identifier) "cfsetospeed" (argument_list) "(&tty, (speed_t)speed)" (() "(" (pointer_expression) "&tty" (&) "&" (identifier) "tty" (,) "," (cast_expression) "(speed_t)speed" (() "(" (type_descriptor) "speed_t" (type_identifier) "speed_t" ()) ")" (identifier) "speed" ()) ")" (;) ";" (expression_statement) "cfsetispeed(&tty, (speed_t)speed);" (call_expression) "cfsetispeed(&tty, (speed_t)speed)" (identifier) "cfsetispeed" (argument_list) "(&tty, (speed_t)speed)" (() "(" (pointer_expression) "&tty" (&) "&" (identifier) "tty" (,) "," (cast_expression) "(speed_t)speed" (() "(" (type_descriptor) "speed_t" (type_identifier) "speed_t" ()) ")" (identifier) "speed" ()) ")" (;) ";" (expression_statement) "tty.c_cflag |= (CLOCAL | CREAD);" (assignment_expression) "tty.c_cflag |= (CLOCAL | CREAD)" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (|=) "|=" (parenthesized_expression) "(CLOCAL | CREAD)" (() "(" (binary_expression) "CLOCAL | CREAD" (identifier) "CLOCAL" (|) "|" (identifier) "CREAD" ()) ")" (;) ";" (comment) "/* ignore modem controls */" (expression_statement) "tty.c_cflag &= ~CSIZE;" (assignment_expression) "tty.c_cflag &= ~CSIZE" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (&=) "&=" (unary_expression) "~CSIZE" (~) "~" (identifier) "CSIZE" (;) ";" (expression_statement) "tty.c_cflag |= CS8;" (assignment_expression) "tty.c_cflag |= CS8" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (|=) "|=" (identifier) "CS8" (;) ";" (comment) "/* 8-bit characters */" (expression_statement) "tty.c_cflag &= ~PARENB;" (assignment_expression) "tty.c_cflag &= ~PARENB" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (&=) "&=" (unary_expression) "~PARENB" (~) "~" (identifier) "PARENB" (;) ";" (comment) "/* no parity bit */" (expression_statement) "tty.c_cflag &= ~CSTOPB;" (assignment_expression) "tty.c_cflag &= ~CSTOPB" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (&=) "&=" (unary_expression) "~CSTOPB" (~) "~" (identifier) "CSTOPB" (;) ";" (comment) "/* only need 1 stop bit */" (expression_statement) "tty.c_cflag &= ~CRTSCTS;" (assignment_expression) "tty.c_cflag &= ~CRTSCTS" (field_expression) "tty.c_cflag" (identifier) "tty" (.) "." (field_identifier) "c_cflag" (&=) "&=" (unary_expression) "~CRTSCTS" (~) "~" (identifier) "CRTSCTS" (;) ";" (comment) "/* no hardware flowcontrol */" (comment) "/* setup for non-canonical mode */" (expression_statement) "tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);" (assignment_expression) "tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)" (field_expression) "tty.c_iflag" (identifier) "tty" (.) "." (field_identifier) "c_iflag" (&=) "&=" (unary_expression) "~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)" (~) "~" (parenthesized_expression) "(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)" (() "(" (binary_expression) "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON" (binary_expression) "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL" (binary_expression) "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR" (binary_expression) "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR" (binary_expression) "IGNBRK | BRKINT | PARMRK | ISTRIP" (binary_expression) "IGNBRK | BRKINT | PARMRK" (binary_expression) "IGNBRK | BRKINT" (identifier) "IGNBRK" (|) "|" (identifier) "BRKINT" (|) "|" (identifier) "PARMRK" (|) "|" (identifier) "ISTRIP" (|) "|" (identifier) "INLCR" (|) "|" (identifier) "IGNCR" (|) "|" (identifier) "ICRNL" (|) "|" (identifier) "IXON" ()) ")" (;) ";" (expression_statement) "tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);" (assignment_expression) "tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN)" (field_expression) "tty.c_lflag" (identifier) "tty" (.) "." (field_identifier) "c_lflag" (&=) "&=" (unary_expression) "~(ECHO | ECHONL | ICANON | ISIG | IEXTEN)" (~) "~" (parenthesized_expression) "(ECHO | ECHONL | ICANON | ISIG | IEXTEN)" (() "(" (binary_expression) "ECHO | ECHONL | ICANON | ISIG | IEXTEN" (binary_expression) "ECHO | ECHONL | ICANON | ISIG" (binary_expression) "ECHO | ECHONL | ICANON" (binary_expression) "ECHO | ECHONL" (identifier) "ECHO" (|) "|" (identifier) "ECHONL" (|) "|" (identifier) "ICANON" (|) "|" (identifier) "ISIG" (|) "|" (identifier) "IEXTEN" ()) ")" (;) ";" (expression_statement) "tty.c_oflag &= ~OPOST;" (assignment_expression) "tty.c_oflag &= ~OPOST" (field_expression) "tty.c_oflag" (identifier) "tty" (.) "." (field_identifier) "c_oflag" (&=) "&=" (unary_expression) "~OPOST" (~) "~" (identifier) "OPOST" (;) ";" (comment) "/* fetch bytes as they become available */" (expression_statement) "tty.c_cc[VMIN] = 1;" (assignment_expression) "tty.c_cc[VMIN] = 1" (subscript_expression) "tty.c_cc[VMIN]" (field_expression) "tty.c_cc" (identifier) "tty" (.) "." (field_identifier) "c_cc" ([) "[" (identifier) "VMIN" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "tty.c_cc[VTIME] = 1;" (assignment_expression) "tty.c_cc[VTIME] = 1" (subscript_expression) "tty.c_cc[VTIME]" (field_expression) "tty.c_cc" (identifier) "tty" (.) "." (field_identifier) "c_cc" ([) "[" (identifier) "VTIME" (]) "]" (=) "=" (number_literal) "1" (;) ";" (if_statement) "if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf("Error from tcsetattr: %s\n", strerror(errno));\n return -1;\n }" (if) "if" (parenthesized_expression) "(tcsetattr(fd, TCSANOW, &tty) != 0)" (() "(" (binary_expression) "tcsetattr(fd, TCSANOW, &tty) != 0" (call_expression) "tcsetattr(fd, TCSANOW, &tty)" (identifier) "tcsetattr" (argument_list) "(fd, TCSANOW, &tty)" (() "(" (identifier) "fd" (,) "," (identifier) "TCSANOW" (,) "," (pointer_expression) "&tty" (&) "&" (identifier) "tty" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Error from tcsetattr: %s\n", strerror(errno));\n return -1;\n }" ({) "{" (expression_statement) "printf("Error from tcsetattr: %s\n", strerror(errno));" (call_expression) "printf("Error from tcsetattr: %s\n", strerror(errno))" (identifier) "printf" (argument_list) "("Error from tcsetattr: %s\n", strerror(errno))" (() "(" (string_literal) ""Error from tcsetattr: %s\n"" (") """ (string_content) "Error from tcsetattr: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "//" (comment) "// set_mincount(fd, 0); /* set to pure timed read */" (comment) "//" (function_definition) "void set_mincount(int fd, int mcount)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error tcgetattr: %s\n", strerror(errno));\n return;\n }\n\n tty.c_cc[VMIN] = mcount ? 1 : 0;\n tty.c_cc[VTIME] = 5; /* half second timer */\n\n if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf("Error tcsetattr: %s\n", strerror(errno));\n}" (primitive_type) "void" (function_declarator) "set_mincount(int fd, int mcount)" (identifier) "set_mincount" (parameter_list) "(int fd, int mcount)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "int mcount" (primitive_type) "int" (identifier) "mcount" ()) ")" (compound_statement) "{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf("Error tcgetattr: %s\n", strerror(errno));\n return;\n }\n\n tty.c_cc[VMIN] = mcount ? 1 : 0;\n tty.c_cc[VTIME] = 5; /* half second timer */\n\n if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf("Error tcsetattr: %s\n", strerror(errno));\n}" ({) "{" (declaration) "struct termios tty;" (struct_specifier) "struct termios" (struct) "struct" (type_identifier) "termios" (identifier) "tty" (;) ";" (if_statement) "if (tcgetattr(fd, &tty) < 0) {\n printf("Error tcgetattr: %s\n", strerror(errno));\n return;\n }" (if) "if" (parenthesized_expression) "(tcgetattr(fd, &tty) < 0)" (() "(" (binary_expression) "tcgetattr(fd, &tty) < 0" (call_expression) "tcgetattr(fd, &tty)" (identifier) "tcgetattr" (argument_list) "(fd, &tty)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&tty" (&) "&" (identifier) "tty" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Error tcgetattr: %s\n", strerror(errno));\n return;\n }" ({) "{" (expression_statement) "printf("Error tcgetattr: %s\n", strerror(errno));" (call_expression) "printf("Error tcgetattr: %s\n", strerror(errno))" (identifier) "printf" (argument_list) "("Error tcgetattr: %s\n", strerror(errno))" (() "(" (string_literal) ""Error tcgetattr: %s\n"" (") """ (string_content) "Error tcgetattr: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "tty.c_cc[VMIN] = mcount ? 1 : 0;" (assignment_expression) "tty.c_cc[VMIN] = mcount ? 1 : 0" (subscript_expression) "tty.c_cc[VMIN]" (field_expression) "tty.c_cc" (identifier) "tty" (.) "." (field_identifier) "c_cc" ([) "[" (identifier) "VMIN" (]) "]" (=) "=" (conditional_expression) "mcount ? 1 : 0" (identifier) "mcount" (?) "?" (number_literal) "1" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "tty.c_cc[VTIME] = 5;" (assignment_expression) "tty.c_cc[VTIME] = 5" (subscript_expression) "tty.c_cc[VTIME]" (field_expression) "tty.c_cc" (identifier) "tty" (.) "." (field_identifier) "c_cc" ([) "[" (identifier) "VTIME" (]) "]" (=) "=" (number_literal) "5" (;) ";" (comment) "/* half second timer */" (if_statement) "if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf("Error tcsetattr: %s\n", strerror(errno));" (if) "if" (parenthesized_expression) "(tcsetattr(fd, TCSANOW, &tty) < 0)" (() "(" (binary_expression) "tcsetattr(fd, TCSANOW, &tty) < 0" (call_expression) "tcsetattr(fd, TCSANOW, &tty)" (identifier) "tcsetattr" (argument_list) "(fd, TCSANOW, &tty)" (() "(" (identifier) "fd" (,) "," (identifier) "TCSANOW" (,) "," (pointer_expression) "&tty" (&) "&" (identifier) "tty" ()) ")" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "printf("Error tcsetattr: %s\n", strerror(errno));" (call_expression) "printf("Error tcsetattr: %s\n", strerror(errno))" (identifier) "printf" (argument_list) "("Error tcsetattr: %s\n", strerror(errno))" (() "(" (string_literal) ""Error tcsetattr: %s\n"" (") """ (string_content) "Error tcsetattr: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (}) "}"
493
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.04, "nodes": 294, "errors": 0, "source_hash": "8c7745d272100fbfa5e60e97ddbe69f06309a4ebdba63e3d1e88b9ab7f83db8e", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<errno.h>", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <fcntl.h>", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 18}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <termios.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<termios.h>", "parent": 15, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unistd.h>", "parent": 18, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include \"serial.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": "\"serial.h\"", "parent": 21, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 24, "type": "function_definition", "text": "int set_interface_attribs(int fd, int speed)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error from tcgetattr: %s\\n\", strerror(errno));\n return -1;\n }\n\n cfsetospeed(&tty, (speed_t)speed);\n cfsetispeed(&tty, (speed_t)speed);\n\n tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */\n tty.c_cflag &= ~CSIZE;\n tty.c_cflag |= CS8; /* 8-bit characters */\n tty.c_cflag &= ~PARENB; /* no parity bit */\n tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */\n tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */\n\n /* setup for non-canonical mode */\n tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);\n tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n tty.c_oflag &= ~OPOST;\n\n /* fetch bytes as they become available */\n tty.c_cc[VMIN] = 1;\n tty.c_cc[VTIME] = 1;\n\n if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf(\"Error from tcsetattr: %s\\n\", strerror(errno));\n return -1;\n }\n return 0;\n}", "parent": null, "children": [25, 26], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 26, "type": "function_declarator", "text": "set_interface_attribs(int fd, int speed)", "parent": 24, "children": [27, 28], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 44}}, {"id": 27, "type": "identifier", "text": "set_interface_attribs", "parent": 26, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 25}}, {"id": 28, "type": "parameter_list", "text": "(int fd, int speed)", "parent": 26, "children": [29, 32], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 44}}, {"id": 29, "type": "parameter_declaration", "text": "int fd", "parent": 28, "children": [30, 31], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 32}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 29}}, {"id": 31, "type": "identifier", "text": "fd", "parent": 29, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 32}}, {"id": 32, "type": "parameter_declaration", "text": "int speed", "parent": 28, "children": [33, 34], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 43}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 37}}, {"id": 34, "type": "identifier", "text": "speed", "parent": 32, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 43}}, {"id": 35, "type": "declaration", "text": "struct termios tty;", "parent": 24, "children": [36, 39], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 23}}, {"id": 36, "type": "struct_specifier", "text": "struct termios", "parent": 35, "children": [37, 38], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 18}}, {"id": 37, "type": "struct", "text": "struct", "parent": 36, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 38, "type": "type_identifier", "text": "termios", "parent": 36, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 18}}, {"id": 39, "type": "identifier", "text": "tty", "parent": 35, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 22}}, {"id": 40, "type": "if_statement", "text": "if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error from tcgetattr: %s\\n\", strerror(errno));\n return -1;\n }", "parent": 24, "children": [41], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 21, "column": 5}}, {"id": 41, "type": "parenthesized_expression", "text": "(tcgetattr(fd, &tty) < 0)", "parent": 40, "children": [42], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 32}}, {"id": 42, "type": "binary_expression", "text": "tcgetattr(fd, &tty) < 0", "parent": 41, "children": [43, 49, 50], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 31}}, {"id": 43, "type": "call_expression", "text": "tcgetattr(fd, &tty)", "parent": 42, "children": [44, 45], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 27}}, {"id": 44, "type": "identifier", "text": "tcgetattr", "parent": 43, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 17}}, {"id": 45, "type": "argument_list", "text": "(fd, &tty)", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 27}}, {"id": 46, "type": "identifier", "text": "fd", "parent": 45, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 20}}, {"id": 47, "type": "pointer_expression", "text": "&tty", "parent": 45, "children": [48], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 48, "type": "identifier", "text": "tty", "parent": 47, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 26}}, {"id": 49, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 50, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 31}}, {"id": 51, "type": "call_expression", "text": "printf(\"Error from tcgetattr: %s\\n\", strerror(errno))", "parent": 40, "children": [52, 53], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 61}}, {"id": 52, "type": "identifier", "text": "printf", "parent": 51, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 53, "type": "argument_list", "text": "(\"Error from tcgetattr: %s\\n\", strerror(errno))", "parent": 51, "children": [54, 56], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 61}}, {"id": 54, "type": "string_literal", "text": "\"Error from tcgetattr: %s\\n\"", "parent": 53, "children": [55], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 43}}, {"id": 55, "type": "escape_sequence", "text": "\\n", "parent": 54, "children": [], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 42}}, {"id": 56, "type": "call_expression", "text": "strerror(errno)", "parent": 53, "children": [57, 58], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 60}}, {"id": 57, "type": "identifier", "text": "strerror", "parent": 56, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 53}}, {"id": 58, "type": "argument_list", "text": "(errno)", "parent": 56, "children": [59], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 60}}, {"id": 59, "type": "identifier", "text": "errno", "parent": 58, "children": [], "start_point": {"row": 19, "column": 54}, "end_point": {"row": 19, "column": 59}}, {"id": 60, "type": "return_statement", "text": "return -1;", "parent": 40, "children": [61], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 18}}, {"id": 61, "type": "number_literal", "text": "-1", "parent": 60, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 17}}, {"id": 62, "type": "call_expression", "text": "cfsetospeed(&tty, (speed_t)speed)", "parent": 24, "children": [63, 64], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 37}}, {"id": 63, "type": "identifier", "text": "cfsetospeed", "parent": 62, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 64, "type": "argument_list", "text": "(&tty, (speed_t)speed)", "parent": 62, "children": [65, 67], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 37}}, {"id": 65, "type": "pointer_expression", "text": "&tty", "parent": 64, "children": [66], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 20}}, {"id": 66, "type": "identifier", "text": "tty", "parent": 65, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 20}}, {"id": 67, "type": "cast_expression", "text": "(speed_t)speed", "parent": 64, "children": [68, 70], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 36}}, {"id": 68, "type": "type_descriptor", "text": "speed_t", "parent": 67, "children": [69], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 30}}, {"id": 69, "type": "type_identifier", "text": "speed_t", "parent": 68, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 30}}, {"id": 70, "type": "identifier", "text": "speed", "parent": 67, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 36}}, {"id": 71, "type": "call_expression", "text": "cfsetispeed(&tty, (speed_t)speed)", "parent": 24, "children": [72, 73], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 37}}, {"id": 72, "type": "identifier", "text": "cfsetispeed", "parent": 71, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 73, "type": "argument_list", "text": "(&tty, (speed_t)speed)", "parent": 71, "children": [74, 76], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 37}}, {"id": 74, "type": "pointer_expression", "text": "&tty", "parent": 73, "children": [75], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 20}}, {"id": 75, "type": "identifier", "text": "tty", "parent": 74, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 20}}, {"id": 76, "type": "cast_expression", "text": "(speed_t)speed", "parent": 73, "children": [77, 79], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 36}}, {"id": 77, "type": "type_descriptor", "text": "speed_t", "parent": 76, "children": [78], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 78, "type": "type_identifier", "text": "speed_t", "parent": 77, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 79, "type": "identifier", "text": "speed", "parent": 76, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 36}}, {"id": 80, "type": "assignment_expression", "text": "tty.c_cflag |= (CLOCAL | CREAD)", "parent": 24, "children": [81, 84, 85], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 35}}, {"id": 81, "type": "field_expression", "text": "tty.c_cflag", "parent": 80, "children": [82, 83], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 82, "type": "identifier", "text": "tty", "parent": 81, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 83, "type": "field_identifier", "text": "c_cflag", "parent": 81, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 15}}, {"id": 84, "type": "|=", "text": "|=", "parent": 80, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 18}}, {"id": 85, "type": "parenthesized_expression", "text": "(CLOCAL | CREAD)", "parent": 80, "children": [86], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 35}}, {"id": 86, "type": "binary_expression", "text": "CLOCAL | CREAD", "parent": 85, "children": [87, 88], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 34}}, {"id": 87, "type": "identifier", "text": "CLOCAL", "parent": 86, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 26}}, {"id": 88, "type": "identifier", "text": "CREAD", "parent": 86, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 34}}, {"id": 89, "type": "assignment_expression", "text": "tty.c_cflag &= ~CSIZE", "parent": 24, "children": [90, 93, 94], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 25}}, {"id": 90, "type": "field_expression", "text": "tty.c_cflag", "parent": 89, "children": [91, 92], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 15}}, {"id": 91, "type": "identifier", "text": "tty", "parent": 90, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 92, "type": "field_identifier", "text": "c_cflag", "parent": 90, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 15}}, {"id": 93, "type": "&=", "text": "&=", "parent": 89, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 18}}, {"id": 94, "type": "unary_expression", "text": "~CSIZE", "parent": 89, "children": [95, 96], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 95, "type": "~", "text": "~", "parent": 94, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 96, "type": "identifier", "text": "CSIZE", "parent": 94, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 25}}, {"id": 97, "type": "assignment_expression", "text": "tty.c_cflag |= CS8", "parent": 24, "children": [98, 101, 102], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 22}}, {"id": 98, "type": "field_expression", "text": "tty.c_cflag", "parent": 97, "children": [99, 100], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 15}}, {"id": 99, "type": "identifier", "text": "tty", "parent": 98, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 100, "type": "field_identifier", "text": "c_cflag", "parent": 98, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 15}}, {"id": 101, "type": "|=", "text": "|=", "parent": 97, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 18}}, {"id": 102, "type": "identifier", "text": "CS8", "parent": 97, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 22}}, {"id": 103, "type": "assignment_expression", "text": "tty.c_cflag &= ~PARENB", "parent": 24, "children": [104, 107, 108], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 26}}, {"id": 104, "type": "field_expression", "text": "tty.c_cflag", "parent": 103, "children": [105, 106], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 15}}, {"id": 105, "type": "identifier", "text": "tty", "parent": 104, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 7}}, {"id": 106, "type": "field_identifier", "text": "c_cflag", "parent": 104, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 15}}, {"id": 107, "type": "&=", "text": "&=", "parent": 103, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 18}}, {"id": 108, "type": "unary_expression", "text": "~PARENB", "parent": 103, "children": [109, 110], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 26}}, {"id": 109, "type": "~", "text": "~", "parent": 108, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 110, "type": "identifier", "text": "PARENB", "parent": 108, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 26}}, {"id": 111, "type": "assignment_expression", "text": "tty.c_cflag &= ~CSTOPB", "parent": 24, "children": [112, 115, 116], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 26}}, {"id": 112, "type": "field_expression", "text": "tty.c_cflag", "parent": 111, "children": [113, 114], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 15}}, {"id": 113, "type": "identifier", "text": "tty", "parent": 112, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 7}}, {"id": 114, "type": "field_identifier", "text": "c_cflag", "parent": 112, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 15}}, {"id": 115, "type": "&=", "text": "&=", "parent": 111, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 18}}, {"id": 116, "type": "unary_expression", "text": "~CSTOPB", "parent": 111, "children": [117, 118], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 26}}, {"id": 117, "type": "~", "text": "~", "parent": 116, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 20}}, {"id": 118, "type": "identifier", "text": "CSTOPB", "parent": 116, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 26}}, {"id": 119, "type": "assignment_expression", "text": "tty.c_cflag &= ~CRTSCTS", "parent": 24, "children": [120, 123, 124], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 27}}, {"id": 120, "type": "field_expression", "text": "tty.c_cflag", "parent": 119, "children": [121, 122], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 15}}, {"id": 121, "type": "identifier", "text": "tty", "parent": 120, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 7}}, {"id": 122, "type": "field_identifier", "text": "c_cflag", "parent": 120, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 15}}, {"id": 123, "type": "&=", "text": "&=", "parent": 119, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 18}}, {"id": 124, "type": "unary_expression", "text": "~CRTSCTS", "parent": 119, "children": [125, 126], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 27}}, {"id": 125, "type": "~", "text": "~", "parent": 124, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 20}}, {"id": 126, "type": "identifier", "text": "CRTSCTS", "parent": 124, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 27}}, {"id": 127, "type": "assignment_expression", "text": "tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)", "parent": 24, "children": [128, 131, 132], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 86}}, {"id": 128, "type": "field_expression", "text": "tty.c_iflag", "parent": 127, "children": [129, 130], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 15}}, {"id": 129, "type": "identifier", "text": "tty", "parent": 128, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 7}}, {"id": 130, "type": "field_identifier", "text": "c_iflag", "parent": 128, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 131, "type": "&=", "text": "&=", "parent": 127, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 18}}, {"id": 132, "type": "unary_expression", "text": "~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)", "parent": 127, "children": [133, 134], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 86}}, {"id": 133, "type": "~", "text": "~", "parent": 132, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 134, "type": "parenthesized_expression", "text": "(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON)", "parent": 132, "children": [135], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 86}}, {"id": 135, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON", "parent": 134, "children": [136, 149], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 85}}, {"id": 136, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL", "parent": 135, "children": [137, 148], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 78}}, {"id": 137, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR", "parent": 136, "children": [138, 147], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 70}}, {"id": 138, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR", "parent": 137, "children": [139, 146], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 62}}, {"id": 139, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK | ISTRIP", "parent": 138, "children": [140, 145], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 54}}, {"id": 140, "type": "binary_expression", "text": "IGNBRK | BRKINT | PARMRK", "parent": 139, "children": [141, 144], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 45}}, {"id": 141, "type": "binary_expression", "text": "IGNBRK | BRKINT", "parent": 140, "children": [142, 143], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 36}}, {"id": 142, "type": "identifier", "text": "IGNBRK", "parent": 141, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 27}}, {"id": 143, "type": "identifier", "text": "BRKINT", "parent": 141, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 36}}, {"id": 144, "type": "identifier", "text": "PARMRK", "parent": 140, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 45}}, {"id": 145, "type": "identifier", "text": "ISTRIP", "parent": 139, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 54}}, {"id": 146, "type": "identifier", "text": "INLCR", "parent": 138, "children": [], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 62}}, {"id": 147, "type": "identifier", "text": "IGNCR", "parent": 137, "children": [], "start_point": {"row": 34, "column": 65}, "end_point": {"row": 34, "column": 70}}, {"id": 148, "type": "identifier", "text": "ICRNL", "parent": 136, "children": [], "start_point": {"row": 34, "column": 73}, "end_point": {"row": 34, "column": 78}}, {"id": 149, "type": "identifier", "text": "IXON", "parent": 135, "children": [], "start_point": {"row": 34, "column": 81}, "end_point": {"row": 34, "column": 85}}, {"id": 150, "type": "assignment_expression", "text": "tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN)", "parent": 24, "children": [151, 154, 155], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 60}}, {"id": 151, "type": "field_expression", "text": "tty.c_lflag", "parent": 150, "children": [152, 153], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 15}}, {"id": 152, "type": "identifier", "text": "tty", "parent": 151, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 153, "type": "field_identifier", "text": "c_lflag", "parent": 151, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 15}}, {"id": 154, "type": "&=", "text": "&=", "parent": 150, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 18}}, {"id": 155, "type": "unary_expression", "text": "~(ECHO | ECHONL | ICANON | ISIG | IEXTEN)", "parent": 150, "children": [156, 157], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 60}}, {"id": 156, "type": "~", "text": "~", "parent": 155, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 157, "type": "parenthesized_expression", "text": "(ECHO | ECHONL | ICANON | ISIG | IEXTEN)", "parent": 155, "children": [158], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 60}}, {"id": 158, "type": "binary_expression", "text": "ECHO | ECHONL | ICANON | ISIG | IEXTEN", "parent": 157, "children": [159, 166], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 59}}, {"id": 159, "type": "binary_expression", "text": "ECHO | ECHONL | ICANON | ISIG", "parent": 158, "children": [160, 165], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 50}}, {"id": 160, "type": "binary_expression", "text": "ECHO | ECHONL | ICANON", "parent": 159, "children": [161, 164], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 43}}, {"id": 161, "type": "binary_expression", "text": "ECHO | ECHONL", "parent": 160, "children": [162, 163], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 34}}, {"id": 162, "type": "identifier", "text": "ECHO", "parent": 161, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 25}}, {"id": 163, "type": "identifier", "text": "ECHONL", "parent": 161, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 34}}, {"id": 164, "type": "identifier", "text": "ICANON", "parent": 160, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 43}}, {"id": 165, "type": "identifier", "text": "ISIG", "parent": 159, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 50}}, {"id": 166, "type": "identifier", "text": "IEXTEN", "parent": 158, "children": [], "start_point": {"row": 35, "column": 53}, "end_point": {"row": 35, "column": 59}}, {"id": 167, "type": "assignment_expression", "text": "tty.c_oflag &= ~OPOST", "parent": 24, "children": [168, 171, 172], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 25}}, {"id": 168, "type": "field_expression", "text": "tty.c_oflag", "parent": 167, "children": [169, 170], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 15}}, {"id": 169, "type": "identifier", "text": "tty", "parent": 168, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 170, "type": "field_identifier", "text": "c_oflag", "parent": 168, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 15}}, {"id": 171, "type": "&=", "text": "&=", "parent": 167, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 18}}, {"id": 172, "type": "unary_expression", "text": "~OPOST", "parent": 167, "children": [173, 174], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 25}}, {"id": 173, "type": "~", "text": "~", "parent": 172, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 20}}, {"id": 174, "type": "identifier", "text": "OPOST", "parent": 172, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 25}}, {"id": 175, "type": "assignment_expression", "text": "tty.c_cc[VMIN] = 1", "parent": 24, "children": [176, 181, 182], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 22}}, {"id": 176, "type": "subscript_expression", "text": "tty.c_cc[VMIN]", "parent": 175, "children": [177, 180], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 18}}, {"id": 177, "type": "field_expression", "text": "tty.c_cc", "parent": 176, "children": [178, 179], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 12}}, {"id": 178, "type": "identifier", "text": "tty", "parent": 177, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 179, "type": "field_identifier", "text": "c_cc", "parent": 177, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 180, "type": "identifier", "text": "VMIN", "parent": 176, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 181, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 182, "type": "number_literal", "text": "1", "parent": 175, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 183, "type": "assignment_expression", "text": "tty.c_cc[VTIME] = 1", "parent": 24, "children": [184, 189, 190], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 23}}, {"id": 184, "type": "subscript_expression", "text": "tty.c_cc[VTIME]", "parent": 183, "children": [185, 188], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 19}}, {"id": 185, "type": "field_expression", "text": "tty.c_cc", "parent": 184, "children": [186, 187], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 12}}, {"id": 186, "type": "identifier", "text": "tty", "parent": 185, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 187, "type": "field_identifier", "text": "c_cc", "parent": 185, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 188, "type": "identifier", "text": "VTIME", "parent": 184, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 18}}, {"id": 189, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 190, "type": "number_literal", "text": "1", "parent": 183, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 23}}, {"id": 191, "type": "if_statement", "text": "if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf(\"Error from tcsetattr: %s\\n\", strerror(errno));\n return -1;\n }", "parent": 24, "children": [192], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 192, "type": "parenthesized_expression", "text": "(tcsetattr(fd, TCSANOW, &tty) != 0)", "parent": 191, "children": [193], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 42}}, {"id": 193, "type": "binary_expression", "text": "tcsetattr(fd, TCSANOW, &tty) != 0", "parent": 192, "children": [194, 201, 202], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 41}}, {"id": 194, "type": "call_expression", "text": "tcsetattr(fd, TCSANOW, &tty)", "parent": 193, "children": [195, 196], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 36}}, {"id": 195, "type": "identifier", "text": "tcsetattr", "parent": 194, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 17}}, {"id": 196, "type": "argument_list", "text": "(fd, TCSANOW, &tty)", "parent": 194, "children": [197, 198, 199], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 36}}, {"id": 197, "type": "identifier", "text": "fd", "parent": 196, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 20}}, {"id": 198, "type": "identifier", "text": "TCSANOW", "parent": 196, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 29}}, {"id": 199, "type": "pointer_expression", "text": "&tty", "parent": 196, "children": [200], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 35}}, {"id": 200, "type": "identifier", "text": "tty", "parent": 199, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 35}}, {"id": 201, "type": "!=", "text": "!=", "parent": 193, "children": [], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 39}}, {"id": 202, "type": "number_literal", "text": "0", "parent": 193, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 41}}, {"id": 203, "type": "call_expression", "text": "printf(\"Error from tcsetattr: %s\\n\", strerror(errno))", "parent": 191, "children": [204, 205], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 61}}, {"id": 204, "type": "identifier", "text": "printf", "parent": 203, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 14}}, {"id": 205, "type": "argument_list", "text": "(\"Error from tcsetattr: %s\\n\", strerror(errno))", "parent": 203, "children": [206, 208], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 61}}, {"id": 206, "type": "string_literal", "text": "\"Error from tcsetattr: %s\\n\"", "parent": 205, "children": [207], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 43}}, {"id": 207, "type": "escape_sequence", "text": "\\n", "parent": 206, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 42}}, {"id": 208, "type": "call_expression", "text": "strerror(errno)", "parent": 205, "children": [209, 210], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 60}}, {"id": 209, "type": "identifier", "text": "strerror", "parent": 208, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 53}}, {"id": 210, "type": "argument_list", "text": "(errno)", "parent": 208, "children": [211], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 60}}, {"id": 211, "type": "identifier", "text": "errno", "parent": 210, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 59}}, {"id": 212, "type": "return_statement", "text": "return -1;", "parent": 191, "children": [213], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 18}}, {"id": 213, "type": "number_literal", "text": "-1", "parent": 212, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 17}}, {"id": 214, "type": "return_statement", "text": "return 0;", "parent": 24, "children": [215], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 215, "type": "number_literal", "text": "0", "parent": 214, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 12}}, {"id": 216, "type": "function_definition", "text": "void set_mincount(int fd, int mcount)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error tcgetattr: %s\\n\", strerror(errno));\n return;\n }\n\n tty.c_cc[VMIN] = mcount ? 1 : 0;\n tty.c_cc[VTIME] = 5; /* half second timer */\n\n if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf(\"Error tcsetattr: %s\\n\", strerror(errno));\n}", "parent": null, "children": [217, 218], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 217, "type": "primitive_type", "text": "void", "parent": 216, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 218, "type": "function_declarator", "text": "set_mincount(int fd, int mcount)", "parent": 216, "children": [219, 220], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 37}}, {"id": 219, "type": "identifier", "text": "set_mincount", "parent": 218, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 17}}, {"id": 220, "type": "parameter_list", "text": "(int fd, int mcount)", "parent": 218, "children": [221, 224], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 37}}, {"id": 221, "type": "parameter_declaration", "text": "int fd", "parent": 220, "children": [222, 223], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 24}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 221, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 21}}, {"id": 223, "type": "identifier", "text": "fd", "parent": 221, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 24}}, {"id": 224, "type": "parameter_declaration", "text": "int mcount", "parent": 220, "children": [225, 226], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 36}}, {"id": 225, "type": "primitive_type", "text": "int", "parent": 224, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 29}}, {"id": 226, "type": "identifier", "text": "mcount", "parent": 224, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 36}}, {"id": 227, "type": "declaration", "text": "struct termios tty;", "parent": 216, "children": [228, 231], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 23}}, {"id": 228, "type": "struct_specifier", "text": "struct termios", "parent": 227, "children": [229, 230], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 18}}, {"id": 229, "type": "struct", "text": "struct", "parent": 228, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 10}}, {"id": 230, "type": "type_identifier", "text": "termios", "parent": 228, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 18}}, {"id": 231, "type": "identifier", "text": "tty", "parent": 227, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 22}}, {"id": 232, "type": "if_statement", "text": "if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error tcgetattr: %s\\n\", strerror(errno));\n return;\n }", "parent": 216, "children": [233], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 233, "type": "parenthesized_expression", "text": "(tcgetattr(fd, &tty) < 0)", "parent": 232, "children": [234], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 32}}, {"id": 234, "type": "binary_expression", "text": "tcgetattr(fd, &tty) < 0", "parent": 233, "children": [235, 241, 242], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 31}}, {"id": 235, "type": "call_expression", "text": "tcgetattr(fd, &tty)", "parent": 234, "children": [236, 237], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 27}}, {"id": 236, "type": "identifier", "text": "tcgetattr", "parent": 235, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 17}}, {"id": 237, "type": "argument_list", "text": "(fd, &tty)", "parent": 235, "children": [238, 239], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 27}}, {"id": 238, "type": "identifier", "text": "fd", "parent": 237, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 20}}, {"id": 239, "type": "pointer_expression", "text": "&tty", "parent": 237, "children": [240], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 26}}, {"id": 240, "type": "identifier", "text": "tty", "parent": 239, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 26}}, {"id": 241, "type": "<", "text": "<", "parent": 234, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 29}}, {"id": 242, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 31}}, {"id": 243, "type": "call_expression", "text": "printf(\"Error tcgetattr: %s\\n\", strerror(errno))", "parent": 232, "children": [244, 245], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 56}}, {"id": 244, "type": "identifier", "text": "printf", "parent": 243, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 14}}, {"id": 245, "type": "argument_list", "text": "(\"Error tcgetattr: %s\\n\", strerror(errno))", "parent": 243, "children": [246, 248], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 56}}, {"id": 246, "type": "string_literal", "text": "\"Error tcgetattr: %s\\n\"", "parent": 245, "children": [247], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 38}}, {"id": 247, "type": "escape_sequence", "text": "\\n", "parent": 246, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 37}}, {"id": 248, "type": "call_expression", "text": "strerror(errno)", "parent": 245, "children": [249, 250], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 55}}, {"id": 249, "type": "identifier", "text": "strerror", "parent": 248, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 48}}, {"id": 250, "type": "argument_list", "text": "(errno)", "parent": 248, "children": [251], "start_point": {"row": 57, "column": 48}, "end_point": {"row": 57, "column": 55}}, {"id": 251, "type": "identifier", "text": "errno", "parent": 250, "children": [], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 54}}, {"id": 252, "type": "return_statement", "text": "return;", "parent": 232, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 253, "type": "assignment_expression", "text": "tty.c_cc[VMIN] = mcount ? 1 : 0", "parent": 216, "children": [254, 259, 260], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 35}}, {"id": 254, "type": "subscript_expression", "text": "tty.c_cc[VMIN]", "parent": 253, "children": [255, 258], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 18}}, {"id": 255, "type": "field_expression", "text": "tty.c_cc", "parent": 254, "children": [256, 257], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 12}}, {"id": 256, "type": "identifier", "text": "tty", "parent": 255, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 7}}, {"id": 257, "type": "field_identifier", "text": "c_cc", "parent": 255, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 12}}, {"id": 258, "type": "identifier", "text": "VMIN", "parent": 254, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 17}}, {"id": 259, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 260, "type": "conditional_expression", "text": "mcount ? 1 : 0", "parent": 253, "children": [261, 262, 263, 264], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 35}}, {"id": 261, "type": "identifier", "text": "mcount", "parent": 260, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 27}}, {"id": 262, "type": "?", "text": "?", "parent": 260, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 29}}, {"id": 263, "type": "number_literal", "text": "1", "parent": 260, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 31}}, {"id": 264, "type": "number_literal", "text": "0", "parent": 260, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 35}}, {"id": 265, "type": "assignment_expression", "text": "tty.c_cc[VTIME] = 5", "parent": 216, "children": [266, 271, 272], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 23}}, {"id": 266, "type": "subscript_expression", "text": "tty.c_cc[VTIME]", "parent": 265, "children": [267, 270], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 19}}, {"id": 267, "type": "field_expression", "text": "tty.c_cc", "parent": 266, "children": [268, 269], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 12}}, {"id": 268, "type": "identifier", "text": "tty", "parent": 267, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 7}}, {"id": 269, "type": "field_identifier", "text": "c_cc", "parent": 267, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 270, "type": "identifier", "text": "VTIME", "parent": 266, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 18}}, {"id": 271, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 272, "type": "number_literal", "text": "5", "parent": 265, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 23}}, {"id": 273, "type": "if_statement", "text": "if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf(\"Error tcsetattr: %s\\n\", strerror(errno));", "parent": 216, "children": [274], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 65, "column": 57}}, {"id": 274, "type": "parenthesized_expression", "text": "(tcsetattr(fd, TCSANOW, &tty) < 0)", "parent": 273, "children": [275], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 41}}, {"id": 275, "type": "binary_expression", "text": "tcsetattr(fd, TCSANOW, &tty) < 0", "parent": 274, "children": [276, 283, 284], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 40}}, {"id": 276, "type": "call_expression", "text": "tcsetattr(fd, TCSANOW, &tty)", "parent": 275, "children": [277, 278], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 36}}, {"id": 277, "type": "identifier", "text": "tcsetattr", "parent": 276, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 17}}, {"id": 278, "type": "argument_list", "text": "(fd, TCSANOW, &tty)", "parent": 276, "children": [279, 280, 281], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 36}}, {"id": 279, "type": "identifier", "text": "fd", "parent": 278, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 20}}, {"id": 280, "type": "identifier", "text": "TCSANOW", "parent": 278, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 29}}, {"id": 281, "type": "pointer_expression", "text": "&tty", "parent": 278, "children": [282], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 35}}, {"id": 282, "type": "identifier", "text": "tty", "parent": 281, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 35}}, {"id": 283, "type": "<", "text": "<", "parent": 275, "children": [], "start_point": {"row": 64, "column": 37}, "end_point": {"row": 64, "column": 38}}, {"id": 284, "type": "number_literal", "text": "0", "parent": 275, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 40}}, {"id": 285, "type": "call_expression", "text": "printf(\"Error tcsetattr: %s\\n\", strerror(errno))", "parent": 273, "children": [286, 287], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 56}}, {"id": 286, "type": "identifier", "text": "printf", "parent": 285, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 14}}, {"id": 287, "type": "argument_list", "text": "(\"Error tcsetattr: %s\\n\", strerror(errno))", "parent": 285, "children": [288, 290], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 56}}, {"id": 288, "type": "string_literal", "text": "\"Error tcsetattr: %s\\n\"", "parent": 287, "children": [289], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 38}}, {"id": 289, "type": "escape_sequence", "text": "\\n", "parent": 288, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 37}}, {"id": 290, "type": "call_expression", "text": "strerror(errno)", "parent": 287, "children": [291, 292], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 55}}, {"id": 291, "type": "identifier", "text": "strerror", "parent": 290, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 48}}, {"id": 292, "type": "argument_list", "text": "(errno)", "parent": 290, "children": [293], "start_point": {"row": 65, "column": 48}, "end_point": {"row": 65, "column": 55}}, {"id": 293, "type": "identifier", "text": "errno", "parent": 292, "children": [], "start_point": {"row": 65, "column": 49}, "end_point": {"row": 65, "column": 54}}]}, "node_categories": {"declarations": {"functions": [24, 26, 216, 218], "variables": [29, 32, 35, 221, 224, 227], "classes": [36, 37, 228, 229], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [41, 42, 43, 47, 51, 56, 62, 65, 67, 71, 74, 76, 81, 85, 86, 90, 94, 98, 104, 108, 112, 116, 120, 124, 128, 132, 134, 135, 136, 137, 138, 139, 140, 141, 151, 155, 157, 158, 159, 160, 161, 168, 172, 176, 177, 184, 185, 192, 193, 194, 199, 203, 208, 233, 234, 235, 239, 243, 248, 254, 255, 266, 267, 274, 275, 276, 281, 285, 290], "assignments": [80, 89, 97, 103, 111, 119, 127, 150, 167, 175, 183, 253, 265], "loops": [], "conditionals": [27, 31, 34, 38, 39, 40, 44, 46, 48, 52, 57, 59, 63, 66, 69, 70, 72, 75, 78, 79, 82, 83, 87, 88, 91, 92, 96, 99, 100, 102, 105, 106, 110, 113, 114, 118, 121, 122, 126, 129, 130, 142, 143, 144, 145, 146, 147, 148, 149, 152, 153, 162, 163, 164, 165, 166, 169, 170, 174, 178, 179, 180, 186, 187, 188, 191, 195, 197, 198, 200, 204, 209, 211, 219, 223, 226, 230, 231, 232, 236, 238, 240, 244, 249, 251, 256, 257, 258, 260, 261, 268, 269, 270, 273, 277, 279, 280, 282, 286, 291, 293], "returns": [60, 212, 214, 252], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 50, 54, 61, 182, 190, 202, 206, 213, 215, 242, 246, 263, 264, 272, 284, 288], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "set_interface_attribs", "text_snippet": "int set_interface_attribs(int fd, int speed)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) "}, {"node_id": 26, "universal_type": "function", "name": "speed)", "text_snippet": "set_interface_attribs(int fd, int speed)"}, {"node_id": 216, "universal_type": "function", "name": "set_mincount", "text_snippet": "void set_mincount(int fd, int mcount)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n"}, {"node_id": 218, "universal_type": "function", "name": "mcount)", "text_snippet": "set_mincount(int fd, int mcount)"}], "class_declarations": [{"node_id": 36, "universal_type": "class", "name": "termios", "text_snippet": "struct termios"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 228, "universal_type": "class", "name": "termios", "text_snippet": "struct termios"}, {"node_id": 229, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <errno.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <fcntl.h>"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdlib.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <termios.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unistd.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"serial.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/*\n * helper object for POSIX examples\n */\n#include <errno.h>\n#include <fcntl.h> \n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <termios.h>\n#include <unistd.h>\n\n#include \"serial.h\"\n\n\nint set_interface_attribs(int fd, int speed)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error from tcgetattr: %s\\n\", strerror(errno));\n return -1;\n }\n\n cfsetospeed(&tty, (speed_t)speed);\n cfsetispeed(&tty, (speed_t)speed);\n\n tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */\n tty.c_cflag &= ~CSIZE;\n tty.c_cflag |= CS8; /* 8-bit characters */\n tty.c_cflag &= ~PARENB; /* no parity bit */\n tty.c_cflag &= ~CSTOPB; /* only need 1 stop bit */\n tty.c_cflag &= ~CRTSCTS; /* no hardware flowcontrol */\n\n /* setup for non-canonical mode */\n tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);\n tty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n tty.c_oflag &= ~OPOST;\n\n /* fetch bytes as they become available */\n tty.c_cc[VMIN] = 1;\n tty.c_cc[VTIME] = 1;\n\n if (tcsetattr(fd, TCSANOW, &tty) != 0) {\n printf(\"Error from tcsetattr: %s\\n\", strerror(errno));\n return -1;\n }\n return 0;\n}\n\n//\n// set_mincount(fd, 0); /* set to pure timed read */\n//\nvoid set_mincount(int fd, int mcount)\n{\n struct termios tty;\n\n if (tcgetattr(fd, &tty) < 0) {\n printf(\"Error tcgetattr: %s\\n\", strerror(errno));\n return;\n }\n\n tty.c_cc[VMIN] = mcount ? 1 : 0;\n tty.c_cc[VTIME] = 5; /* half second timer */\n\n if (tcsetattr(fd, TCSANOW, &tty) < 0)\n printf(\"Error tcsetattr: %s\\n\", strerror(errno));\n}\n\n\n"}
147
c
#pragma once #include "project_check.h" #if defined(CONFIGURATION_DEBUG) #define USE_GUI() true #define USE_USER_INPUT_EVENTS() true #define PROFILING_MODE() true #define DEVEL_MODE_ENABLED() true #define SANITY_CHECK_ENABLED() true #define DEBUGGER_ASSERTION_ENABLED() false #endif #if defined(CONFIGURATION_PROFILER) #define USE_GUI() true #define USE_USER_INPUT_EVENTS() true #define PROFILING_MODE() false #define DEVEL_MODE_ENABLED() true #define SANITY_CHECK_ENABLED() true #define DEBUGGER_ASSERTION_ENABLED() false #endif #if defined(CONFIGURATION_RELEASE) #define USE_GUI() false #define USE_USER_INPUT_EVENTS() true #define PROFILING_MODE() false #define DEVEL_MODE_ENABLED() true #define SANITY_CHECK_ENABLED() true #define DEBUGGER_ASSERTION_ENABLED() false #endif
28.88
26
(translation_unit) "#pragma once\n\n#include "project_check.h"\n\n#if defined(CONFIGURATION_DEBUG)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() true\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n#if defined(CONFIGURATION_PROFILER)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n#if defined(CONFIGURATION_RELEASE)\n\n#define USE_GUI() false\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "project_check.h"\n" (#include) "#include" (string_literal) ""project_check.h"" (") """ (string_content) "project_check.h" (") """ (preproc_if) "#if defined(CONFIGURATION_DEBUG)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() true\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif" (#if) "#if" (preproc_defined) "defined(CONFIGURATION_DEBUG)" (defined) "defined" (() "(" (identifier) "CONFIGURATION_DEBUG" ()) ")" ( ) "\n\n" (preproc_function_def) "#define USE_GUI() true\n" (#define) "#define" (identifier) "USE_GUI" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define USE_USER_INPUT_EVENTS() true\n" (#define) "#define" (identifier) "USE_USER_INPUT_EVENTS" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define PROFILING_MODE() true\n" (#define) "#define" (identifier) "PROFILING_MODE" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define DEVEL_MODE_ENABLED() true\n" (#define) "#define" (identifier) "DEVEL_MODE_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define SANITY_CHECK_ENABLED() true\n" (#define) "#define" (identifier) "SANITY_CHECK_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define DEBUGGER_ASSERTION_ENABLED() false\n" (#define) "#define" (identifier) "DEBUGGER_ASSERTION_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (#endif) "#endif" (preproc_if) "#if defined(CONFIGURATION_PROFILER)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif" (#if) "#if" (preproc_defined) "defined(CONFIGURATION_PROFILER)" (defined) "defined" (() "(" (identifier) "CONFIGURATION_PROFILER" ()) ")" ( ) "\n\n" (preproc_function_def) "#define USE_GUI() true\n" (#define) "#define" (identifier) "USE_GUI" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define USE_USER_INPUT_EVENTS() true\n" (#define) "#define" (identifier) "USE_USER_INPUT_EVENTS" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define PROFILING_MODE() false\n" (#define) "#define" (identifier) "PROFILING_MODE" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (preproc_function_def) "#define DEVEL_MODE_ENABLED() true\n" (#define) "#define" (identifier) "DEVEL_MODE_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define SANITY_CHECK_ENABLED() true\n" (#define) "#define" (identifier) "SANITY_CHECK_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define DEBUGGER_ASSERTION_ENABLED() false\n" (#define) "#define" (identifier) "DEBUGGER_ASSERTION_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (#endif) "#endif" (preproc_if) "#if defined(CONFIGURATION_RELEASE)\n\n#define USE_GUI() false\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif" (#if) "#if" (preproc_defined) "defined(CONFIGURATION_RELEASE)" (defined) "defined" (() "(" (identifier) "CONFIGURATION_RELEASE" ()) ")" ( ) "\n\n" (preproc_function_def) "#define USE_GUI() false\n" (#define) "#define" (identifier) "USE_GUI" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (preproc_function_def) "#define USE_USER_INPUT_EVENTS() true\n" (#define) "#define" (identifier) "USE_USER_INPUT_EVENTS" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define PROFILING_MODE() false\n" (#define) "#define" (identifier) "PROFILING_MODE" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (preproc_function_def) "#define DEVEL_MODE_ENABLED() true\n" (#define) "#define" (identifier) "DEVEL_MODE_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define SANITY_CHECK_ENABLED() true\n" (#define) "#define" (identifier) "SANITY_CHECK_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "true" (preproc_function_def) "#define DEBUGGER_ASSERTION_ENABLED() false\n" (#define) "#define" (identifier) "DEBUGGER_ASSERTION_ENABLED" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "false" (#endif) "#endif"
163
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.88, "nodes": 117, "errors": 0, "source_hash": "24559b01ce11b3684edda94311a4a692b01dcedad8a6a3ae4f51302f92390c7a", "categorized_nodes": 52}, "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 \"project_check.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": "\"project_check.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "preproc_if", "text": "#if defined(CONFIGURATION_DEBUG)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() true\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif", "parent": null, "children": [7, 8, 11, 12, 17, 22, 27, 32, 37, 42], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 13, "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": "preproc_defined", "text": "defined(CONFIGURATION_DEBUG)", "parent": 6, "children": [9, 10], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 32}}, {"id": 9, "type": "defined", "text": "defined", "parent": 8, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 11}}, {"id": 10, "type": "identifier", "text": "CONFIGURATION_DEBUG", "parent": 8, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 31}}, {"id": 11, "type": "\n", "text": "\n\n", "parent": 6, "children": [], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 6, "column": 0}}, {"id": 12, "type": "preproc_function_def", "text": "#define USE_GUI() true\n", "parent": 6, "children": [13, 14, 15, 16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 14, "type": "identifier", "text": "USE_GUI", "parent": 12, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 15, "type": "preproc_params", "text": "()", "parent": 12, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "preproc_arg", "text": "true", "parent": 12, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 22}}, {"id": 17, "type": "preproc_function_def", "text": "#define USE_USER_INPUT_EVENTS() true\n", "parent": 6, "children": [18, 19, 20, 21], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 19, "type": "identifier", "text": "USE_USER_INPUT_EVENTS", "parent": 17, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 29}}, {"id": 20, "type": "preproc_params", "text": "()", "parent": 17, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 31}}, {"id": 21, "type": "preproc_arg", "text": "true", "parent": 17, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 36}}, {"id": 22, "type": "preproc_function_def", "text": "#define PROFILING_MODE() true\n", "parent": 6, "children": [23, 24, 25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 24, "type": "identifier", "text": "PROFILING_MODE", "parent": 22, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 25, "type": "preproc_params", "text": "()", "parent": 22, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 24}}, {"id": 26, "type": "preproc_arg", "text": "true", "parent": 22, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 29}}, {"id": 27, "type": "preproc_function_def", "text": "#define DEVEL_MODE_ENABLED() true\n", "parent": 6, "children": [28, 29, 30, 31], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 29, "type": "identifier", "text": "DEVEL_MODE_ENABLED", "parent": 27, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 26}}, {"id": 30, "type": "preproc_params", "text": "()", "parent": 27, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 28}}, {"id": 31, "type": "preproc_arg", "text": "true", "parent": 27, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 33}}, {"id": 32, "type": "preproc_function_def", "text": "#define SANITY_CHECK_ENABLED() true\n", "parent": 6, "children": [33, 34, 35, 36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 34, "type": "identifier", "text": "SANITY_CHECK_ENABLED", "parent": 32, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 28}}, {"id": 35, "type": "preproc_params", "text": "()", "parent": 32, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 30}}, {"id": 36, "type": "preproc_arg", "text": "true", "parent": 32, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 35}}, {"id": 37, "type": "preproc_function_def", "text": "#define DEBUGGER_ASSERTION_ENABLED() false\n", "parent": 6, "children": [38, 39, 40, 41], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 39, "type": "identifier", "text": "DEBUGGER_ASSERTION_ENABLED", "parent": 37, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 34}}, {"id": 40, "type": "preproc_params", "text": "()", "parent": 37, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 36}}, {"id": 41, "type": "preproc_arg", "text": "false", "parent": 37, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 42}}, {"id": 42, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 43, "type": "preproc_if", "text": "#if defined(CONFIGURATION_PROFILER)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif", "parent": null, "children": [44, 45, 48, 49, 54, 59, 64, 69, 74, 79], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 44, "type": "#if", "text": "#if", "parent": 43, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 3}}, {"id": 45, "type": "preproc_defined", "text": "defined(CONFIGURATION_PROFILER)", "parent": 43, "children": [46, 47], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 35}}, {"id": 46, "type": "defined", "text": "defined", "parent": 45, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 47, "type": "identifier", "text": "CONFIGURATION_PROFILER", "parent": 45, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 34}}, {"id": 48, "type": "\n", "text": "\n\n", "parent": 43, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 17, "column": 0}}, {"id": 49, "type": "preproc_function_def", "text": "#define USE_GUI() true\n", "parent": 43, "children": [50, 51, 52, 53], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 50, "type": "#define", "text": "#define", "parent": 49, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 51, "type": "identifier", "text": "USE_GUI", "parent": 49, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 15}}, {"id": 52, "type": "preproc_params", "text": "()", "parent": 49, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 17}}, {"id": 53, "type": "preproc_arg", "text": "true", "parent": 49, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 22}}, {"id": 54, "type": "preproc_function_def", "text": "#define USE_USER_INPUT_EVENTS() true\n", "parent": 43, "children": [55, 56, 57, 58], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 56, "type": "identifier", "text": "USE_USER_INPUT_EVENTS", "parent": 54, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 29}}, {"id": 57, "type": "preproc_params", "text": "()", "parent": 54, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 31}}, {"id": 58, "type": "preproc_arg", "text": "true", "parent": 54, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 36}}, {"id": 59, "type": "preproc_function_def", "text": "#define PROFILING_MODE() false\n", "parent": 43, "children": [60, 61, 62, 63], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 60, "type": "#define", "text": "#define", "parent": 59, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 61, "type": "identifier", "text": "PROFILING_MODE", "parent": 59, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 62, "type": "preproc_params", "text": "()", "parent": 59, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 24}}, {"id": 63, "type": "preproc_arg", "text": "false", "parent": 59, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 30}}, {"id": 64, "type": "preproc_function_def", "text": "#define DEVEL_MODE_ENABLED() true\n", "parent": 43, "children": [65, 66, 67, 68], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 66, "type": "identifier", "text": "DEVEL_MODE_ENABLED", "parent": 64, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 26}}, {"id": 67, "type": "preproc_params", "text": "()", "parent": 64, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 28}}, {"id": 68, "type": "preproc_arg", "text": "true", "parent": 64, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 33}}, {"id": 69, "type": "preproc_function_def", "text": "#define SANITY_CHECK_ENABLED() true\n", "parent": 43, "children": [70, 71, 72, 73], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 71, "type": "identifier", "text": "SANITY_CHECK_ENABLED", "parent": 69, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 28}}, {"id": 72, "type": "preproc_params", "text": "()", "parent": 69, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 30}}, {"id": 73, "type": "preproc_arg", "text": "true", "parent": 69, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 35}}, {"id": 74, "type": "preproc_function_def", "text": "#define DEBUGGER_ASSERTION_ENABLED() false\n", "parent": 43, "children": [75, 76, 77, 78], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 76, "type": "identifier", "text": "DEBUGGER_ASSERTION_ENABLED", "parent": 74, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 34}}, {"id": 77, "type": "preproc_params", "text": "()", "parent": 74, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 36}}, {"id": 78, "type": "preproc_arg", "text": "false", "parent": 74, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 42}}, {"id": 79, "type": "#endif", "text": "#endif", "parent": 43, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 80, "type": "preproc_if", "text": "#if defined(CONFIGURATION_RELEASE)\n\n#define USE_GUI() false\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif", "parent": null, "children": [81, 82, 85, 86, 91, 96, 101, 106, 111, 116], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 81, "type": "#if", "text": "#if", "parent": 80, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 3}}, {"id": 82, "type": "preproc_defined", "text": "defined(CONFIGURATION_RELEASE)", "parent": 80, "children": [83, 84], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 34}}, {"id": 83, "type": "defined", "text": "defined", "parent": 82, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 84, "type": "identifier", "text": "CONFIGURATION_RELEASE", "parent": 82, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 33}}, {"id": 85, "type": "\n", "text": "\n\n", "parent": 80, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 28, "column": 0}}, {"id": 86, "type": "preproc_function_def", "text": "#define USE_GUI() false\n", "parent": 80, "children": [87, 88, 89, 90], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 88, "type": "identifier", "text": "USE_GUI", "parent": 86, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 15}}, {"id": 89, "type": "preproc_params", "text": "()", "parent": 86, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 17}}, {"id": 90, "type": "preproc_arg", "text": "false", "parent": 86, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 23}}, {"id": 91, "type": "preproc_function_def", "text": "#define USE_USER_INPUT_EVENTS() true\n", "parent": 80, "children": [92, 93, 94, 95], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 92, "type": "#define", "text": "#define", "parent": 91, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 93, "type": "identifier", "text": "USE_USER_INPUT_EVENTS", "parent": 91, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 29}}, {"id": 94, "type": "preproc_params", "text": "()", "parent": 91, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 31}}, {"id": 95, "type": "preproc_arg", "text": "true", "parent": 91, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 36}}, {"id": 96, "type": "preproc_function_def", "text": "#define PROFILING_MODE() false\n", "parent": 80, "children": [97, 98, 99, 100], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 97, "type": "#define", "text": "#define", "parent": 96, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 98, "type": "identifier", "text": "PROFILING_MODE", "parent": 96, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 22}}, {"id": 99, "type": "preproc_params", "text": "()", "parent": 96, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 24}}, {"id": 100, "type": "preproc_arg", "text": "false", "parent": 96, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 30}}, {"id": 101, "type": "preproc_function_def", "text": "#define DEVEL_MODE_ENABLED() true\n", "parent": 80, "children": [102, 103, 104, 105], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 103, "type": "identifier", "text": "DEVEL_MODE_ENABLED", "parent": 101, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 104, "type": "preproc_params", "text": "()", "parent": 101, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 28}}, {"id": 105, "type": "preproc_arg", "text": "true", "parent": 101, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 33}}, {"id": 106, "type": "preproc_function_def", "text": "#define SANITY_CHECK_ENABLED() true\n", "parent": 80, "children": [107, 108, 109, 110], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 107, "type": "#define", "text": "#define", "parent": 106, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 108, "type": "identifier", "text": "SANITY_CHECK_ENABLED", "parent": 106, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 28}}, {"id": 109, "type": "preproc_params", "text": "()", "parent": 106, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 30}}, {"id": 110, "type": "preproc_arg", "text": "true", "parent": 106, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 35}}, {"id": 111, "type": "preproc_function_def", "text": "#define DEBUGGER_ASSERTION_ENABLED() false\n", "parent": 80, "children": [112, 113, 114, 115], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 112, "type": "#define", "text": "#define", "parent": 111, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 113, "type": "identifier", "text": "DEBUGGER_ASSERTION_ENABLED", "parent": 111, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 34}}, {"id": 114, "type": "preproc_params", "text": "()", "parent": 111, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 36}}, {"id": 115, "type": "preproc_arg", "text": "false", "parent": 111, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 42}}, {"id": 116, "type": "#endif", "text": "#endif", "parent": 80, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 17, 22, 27, 32, 37, 49, 54, 59, 64, 69, 74, 86, 91, 96, 101, 106, 111], "variables": [], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 7, 10, 14, 19, 24, 29, 34, 39, 42, 43, 44, 47, 51, 56, 61, 66, 71, 76, 79, 80, 81, 84, 88, 93, 98, 103, 108, 113, 116], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_GUI() true\n"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_USER_INPUT_EVENTS() true\n"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "#define PROFILING_MODE() true\n"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEVEL_MODE_ENABLED() true\n"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "#define SANITY_CHECK_ENABLED() true\n"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEBUGGER_ASSERTION_ENABLED() false\n"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_GUI() true\n"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_USER_INPUT_EVENTS() true\n"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "#define PROFILING_MODE() false\n"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEVEL_MODE_ENABLED() true\n"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "#define SANITY_CHECK_ENABLED() true\n"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEBUGGER_ASSERTION_ENABLED() false\n"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_GUI() false\n"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "#define USE_USER_INPUT_EVENTS() true\n"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "#define PROFILING_MODE() false\n"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEVEL_MODE_ENABLED() true\n"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "#define SANITY_CHECK_ENABLED() true\n"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "#define DEBUGGER_ASSERTION_ENABLED() false\n"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"project_check.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"project_check.h\"\n\n#if defined(CONFIGURATION_DEBUG)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() true\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n#if defined(CONFIGURATION_PROFILER)\n\n#define USE_GUI() true\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n#if defined(CONFIGURATION_RELEASE)\n\n#define USE_GUI() false\n#define USE_USER_INPUT_EVENTS() true\n#define PROFILING_MODE() false\n#define DEVEL_MODE_ENABLED() true\n#define SANITY_CHECK_ENABLED() true\n#define DEBUGGER_ASSERTION_ENABLED() false\n\n#endif\n\n\n"}
148
c
// // WRUntieBankCardSuccessController.h // wallet // // Created by xc-ios on 2020/7/29. // Copyright © 2020 为仁科技. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface WRUntieBankCardSuccessController : BaseViewController @end NS_ASSUME_NONNULL_END
23.17
12
(translation_unit) "//\n// WRUntieBankCardSuccessController.h\n// wallet\n//\n// Created by xc-ios on 2020/7/29.\n// Copyright © 2020 为仁科技. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WRUntieBankCardSuccessController : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// WRUntieBankCardSuccessController.h" (comment) "// wallet" (comment) "//" (comment) "// Created by xc-ios on 2020/7/29." (comment) "// Copyright © 2020 为仁科技. All rights reserved.\n//\n\n#imp" (comment) "rt" (preproc_call) "BaseViewController.h"\n\nNS_ASSUM" (preproc_directive) "BaseVie" (preproc_arg) "Controller.h"\n\nNS_ASSU" (declaration) "_NONNULL_BEGIN\n\n@interface WRUntieB" (type_identifier) "_NONNULL_BEGIN\n\n@interf" (ERROR) "e" (ERROR) "e" (identifier) " WRUntieB" (;) "" (labeled_statement) "nkCardSuccessController : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (statement_identifier) "nkCardSuccessController : BaseVi" (:) "w" (declaration) "ontroller\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "ontroller\n\n@end\n\nN" (ERROR) "ASSU" (ERROR) "A" (identifier) "SSU" (identifier) "_NONNULL_END\n" (;) ""
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.17, "nodes": 16, "errors": 0, "source_hash": "59850b4d128e51f8efc76704c369023689e8ea66f3c4eb1c57fbc25fa2e76000", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "BaseViewController.h\"\n\nNS_ASSUM", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "BaseVie", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Controller.h\"\n\nNS_ASSU", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 30}}, {"id": 3, "type": "declaration", "text": "_NONNULL_BEGIN\n\n@interface WRUntieB", "parent": null, "children": [4, 5, 7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"id": 4, "type": "type_identifier", "text": "_NONNULL_BEGIN\n\n@interf", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 5, "type": "ERROR", "text": "e", "parent": 3, "children": [6], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "ERROR", "text": "e", "parent": 5, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "identifier", "text": " WRUntieB", "parent": 3, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 8, "type": "labeled_statement", "text": "nkCardSuccessController : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [9, 10], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 9, "type": "statement_identifier", "text": "nkCardSuccessController : BaseVi", "parent": 8, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 43}}, {"id": 10, "type": "declaration", "text": "ontroller\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": 8, "children": [11, 12, 15], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 16, "column": 21}}, {"id": 11, "type": "type_identifier", "text": "ontroller\n\n@end\n\nN", "parent": 10, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 64}}, {"id": 12, "type": "ERROR", "text": "ASSU", "parent": 10, "children": [13, 14], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 13, "type": "ERROR", "text": "A", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 14, "type": "identifier", "text": "SSU", "parent": 12, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 15, "type": "identifier", "text": "_NONNULL_END\n", "parent": 10, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3, 10], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 7, 9, 11, 14, 15], "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// WRUntieBankCardSuccessController.h\n// wallet\n//\n// Created by xc-ios on 2020/7/29.\n// Copyright \u00a9 2020 \u4e3a\u4ec1\u79d1\u6280. All rights reserved.\n//\n\n#import \"BaseViewController.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WRUntieBankCardSuccessController : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
149
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Intel IFC VF NIC driver for virtio dataplane offloading * * Copyright (C) 2020 Intel Corporation. * * Author: <NAME> <<EMAIL>> * */ #ifndef _IFCVF_H_ #define _IFCVF_H_ #include <linux/pci.h> #include <linux/pci_regs.h> #include <linux/vdpa.h> #include <uapi/linux/virtio_net.h> #include <uapi/linux/virtio_config.h> #include <uapi/linux/virtio_pci.h> #define IFCVF_VENDOR_ID 0x1AF4 #define IFCVF_DEVICE_ID 0x1041 #define IFCVF_SUBSYS_VENDOR_ID 0x8086 #define IFCVF_SUBSYS_DEVICE_ID 0x001A #define IFCVF_SUPPORTED_FEATURES \ ((1ULL << VIRTIO_NET_F_MAC) | \ (1ULL << VIRTIO_F_ANY_LAYOUT) | \ (1ULL << VIRTIO_F_VERSION_1) | \ (1ULL << VIRTIO_NET_F_STATUS) | \ (1ULL << VIRTIO_F_ORDER_PLATFORM) | \ (1ULL << VIRTIO_F_ACCESS_PLATFORM) | \ (1ULL << VIRTIO_NET_F_MRG_RXBUF)) /* Only one queue pair for now. */ #define IFCVF_MAX_QUEUE_PAIRS 1 #define IFCVF_QUEUE_ALIGNMENT PAGE_SIZE #define IFCVF_QUEUE_MAX 32768 #define IFCVF_MSI_CONFIG_OFF 0 #define IFCVF_MSI_QUEUE_OFF 1 #define IFCVF_PCI_MAX_RESOURCE 6 #define IFCVF_LM_CFG_SIZE 0x40 #define IFCVF_LM_RING_STATE_OFFSET 0x20 #define IFCVF_LM_BAR 4 #define IFCVF_ERR(pdev, fmt, ...) dev_err(&pdev->dev, fmt, ##__VA_ARGS__) #define IFCVF_DBG(pdev, fmt, ...) dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__) #define IFCVF_INFO(pdev, fmt, ...) dev_info(&pdev->dev, fmt, ##__VA_ARGS__) #define ifcvf_private_to_vf(adapter) \ (&((struct ifcvf_adapter *)adapter)->vf) #define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1) struct vring_info { u64 desc; u64 avail; u64 used; u16 size; u16 last_avail_idx; bool ready; void __iomem *notify_addr; u32 irq; struct vdpa_callback cb; char msix_name[256]; }; struct ifcvf_hw { u8 __iomem *isr; /* Live migration */ u8 __iomem *lm_cfg; u16 nr_vring; /* Notification bar number */ u8 notify_bar; /* Notificaiton bar address */ void __iomem *notify_base; u32 notify_off_multiplier; u64 req_features; struct virtio_pci_common_cfg __iomem *common_cfg; void __iomem *net_cfg; struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2]; void __iomem * const *base; char config_msix_name[256]; struct vdpa_callback config_cb; unsigned int config_irq; }; struct ifcvf_adapter { struct vdpa_device vdpa; struct pci_dev *pdev; struct ifcvf_hw vf; }; struct ifcvf_vring_lm_cfg { u32 idx_addr[2]; u8 reserved[IFCVF_LM_CFG_SIZE - 8]; }; struct ifcvf_lm_cfg { u8 reserved[IFCVF_LM_RING_STATE_OFFSET]; struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS]; }; int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev); int ifcvf_start_hw(struct ifcvf_hw *hw); void ifcvf_stop_hw(struct ifcvf_hw *hw); void ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid); void ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset, void *dst, int length); void ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset, const void *src, int length); u8 ifcvf_get_status(struct ifcvf_hw *hw); void ifcvf_set_status(struct ifcvf_hw *hw, u8 status); void io_write64_twopart(u64 val, u32 *lo, u32 *hi); void ifcvf_reset(struct ifcvf_hw *hw); u64 ifcvf_get_features(struct ifcvf_hw *hw); u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid); int ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num); struct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw); #endif /* _IFCVF_H_ */
31.58
103
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * Intel IFC VF NIC driver for virtio dataplane offloading\n *\n * Copyright (C) 2020 Intel Corporation.\n *\n * Author: <NAME> <<EMAIL>>\n *\n */\n\n#ifndef _IFCVF_H_\n#define _IFCVF_H_\n\n#include <linux/pci.h>\n#include <linux/pci_regs.h>\n#include <linux/vdpa.h>\n#include <uapi/linux/virtio_net.h>\n#include <uapi/linux/virtio_config.h>\n#include <uapi/linux/virtio_pci.h>\n\n#define IFCVF_VENDOR_ID 0x1AF4\n#define IFCVF_DEVICE_ID 0x1041\n#define IFCVF_SUBSYS_VENDOR_ID 0x8086\n#define IFCVF_SUBSYS_DEVICE_ID 0x001A\n\n#define IFCVF_SUPPORTED_FEATURES \\n ((1ULL << VIRTIO_NET_F_MAC) | \\n (1ULL << VIRTIO_F_ANY_LAYOUT) | \\n (1ULL << VIRTIO_F_VERSION_1) | \\n (1ULL << VIRTIO_NET_F_STATUS) | \\n (1ULL << VIRTIO_F_ORDER_PLATFORM) | \\n (1ULL << VIRTIO_F_ACCESS_PLATFORM) | \\n (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n\n/* Only one queue pair for now. */\n#define IFCVF_MAX_QUEUE_PAIRS 1\n\n#define IFCVF_QUEUE_ALIGNMENT PAGE_SIZE\n#define IFCVF_QUEUE_MAX 32768\n#define IFCVF_MSI_CONFIG_OFF 0\n#define IFCVF_MSI_QUEUE_OFF 1\n#define IFCVF_PCI_MAX_RESOURCE 6\n\n#define IFCVF_LM_CFG_SIZE 0x40\n#define IFCVF_LM_RING_STATE_OFFSET 0x20\n#define IFCVF_LM_BAR 4\n\n#define IFCVF_ERR(pdev, fmt, ...) dev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_DBG(pdev, fmt, ...) dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_INFO(pdev, fmt, ...) dev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n\n#define ifcvf_private_to_vf(adapter) \\n (&((struct ifcvf_adapter *)adapter)->vf)\n\n#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n\nstruct vring_info {\n u64 desc;\n u64 avail;\n u64 used;\n u16 size;\n u16 last_avail_idx;\n bool ready;\n void __iomem *notify_addr;\n u32 irq;\n struct vdpa_callback cb;\n char msix_name[256];\n};\n\nstruct ifcvf_hw {\n u8 __iomem *isr;\n /* Live migration */\n u8 __iomem *lm_cfg;\n u16 nr_vring;\n /* Notification bar number */\n u8 notify_bar;\n /* Notificaiton bar address */\n void __iomem *notify_base;\n u32 notify_off_multiplier;\n u64 req_features;\n struct virtio_pci_common_cfg __iomem *common_cfg;\n void __iomem *net_cfg;\n struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n void __iomem * const *base;\n char config_msix_name[256];\n struct vdpa_callback config_cb;\n unsigned int config_irq;\n};\n\nstruct ifcvf_adapter {\n struct vdpa_device vdpa;\n struct pci_dev *pdev;\n struct ifcvf_hw vf;\n};\n\nstruct ifcvf_vring_lm_cfg {\n u32 idx_addr[2];\n u8 reserved[IFCVF_LM_CFG_SIZE - 8];\n};\n\nstruct ifcvf_lm_cfg {\n u8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n};\n\nint ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);\nint ifcvf_start_hw(struct ifcvf_hw *hw);\nvoid ifcvf_stop_hw(struct ifcvf_hw *hw);\nvoid ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);\nvoid ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n void *dst, int length);\nvoid ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n const void *src, int length);\nu8 ifcvf_get_status(struct ifcvf_hw *hw);\nvoid ifcvf_set_status(struct ifcvf_hw *hw, u8 status);\nvoid io_write64_twopart(u64 val, u32 *lo, u32 *hi);\nvoid ifcvf_reset(struct ifcvf_hw *hw);\nu64 ifcvf_get_features(struct ifcvf_hw *hw);\nu16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);\nint ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);\nstruct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);\n#endif /* _IFCVF_H_ */\n" (comment) "/* SPDX-License-Identifier: GPL-2.0-only */" (comment) "/*\n * Intel IFC VF NIC driver for virtio dataplane offloading\n *\n * Copyright (C) 2020 Intel Corporation.\n *\n * Author: <NAME> <<EMAIL>>\n *\n */" (preproc_ifdef) "#ifndef _IFCVF_H_\n#define _IFCVF_H_\n\n#include <linux/pci.h>\n#include <linux/pci_regs.h>\n#include <linux/vdpa.h>\n#include <uapi/linux/virtio_net.h>\n#include <uapi/linux/virtio_config.h>\n#include <uapi/linux/virtio_pci.h>\n\n#define IFCVF_VENDOR_ID 0x1AF4\n#define IFCVF_DEVICE_ID 0x1041\n#define IFCVF_SUBSYS_VENDOR_ID 0x8086\n#define IFCVF_SUBSYS_DEVICE_ID 0x001A\n\n#define IFCVF_SUPPORTED_FEATURES \\n ((1ULL << VIRTIO_NET_F_MAC) | \\n (1ULL << VIRTIO_F_ANY_LAYOUT) | \\n (1ULL << VIRTIO_F_VERSION_1) | \\n (1ULL << VIRTIO_NET_F_STATUS) | \\n (1ULL << VIRTIO_F_ORDER_PLATFORM) | \\n (1ULL << VIRTIO_F_ACCESS_PLATFORM) | \\n (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n\n/* Only one queue pair for now. */\n#define IFCVF_MAX_QUEUE_PAIRS 1\n\n#define IFCVF_QUEUE_ALIGNMENT PAGE_SIZE\n#define IFCVF_QUEUE_MAX 32768\n#define IFCVF_MSI_CONFIG_OFF 0\n#define IFCVF_MSI_QUEUE_OFF 1\n#define IFCVF_PCI_MAX_RESOURCE 6\n\n#define IFCVF_LM_CFG_SIZE 0x40\n#define IFCVF_LM_RING_STATE_OFFSET 0x20\n#define IFCVF_LM_BAR 4\n\n#define IFCVF_ERR(pdev, fmt, ...) dev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_DBG(pdev, fmt, ...) dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_INFO(pdev, fmt, ...) dev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n\n#define ifcvf_private_to_vf(adapter) \\n (&((struct ifcvf_adapter *)adapter)->vf)\n\n#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n\nstruct vring_info {\n u64 desc;\n u64 avail;\n u64 used;\n u16 size;\n u16 last_avail_idx;\n bool ready;\n void __iomem *notify_addr;\n u32 irq;\n struct vdpa_callback cb;\n char msix_name[256];\n};\n\nstruct ifcvf_hw {\n u8 __iomem *isr;\n /* Live migration */\n u8 __iomem *lm_cfg;\n u16 nr_vring;\n /* Notification bar number */\n u8 notify_bar;\n /* Notificaiton bar address */\n void __iomem *notify_base;\n u32 notify_off_multiplier;\n u64 req_features;\n struct virtio_pci_common_cfg __iomem *common_cfg;\n void __iomem *net_cfg;\n struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n void __iomem * const *base;\n char config_msix_name[256];\n struct vdpa_callback config_cb;\n unsigned int config_irq;\n};\n\nstruct ifcvf_adapter {\n struct vdpa_device vdpa;\n struct pci_dev *pdev;\n struct ifcvf_hw vf;\n};\n\nstruct ifcvf_vring_lm_cfg {\n u32 idx_addr[2];\n u8 reserved[IFCVF_LM_CFG_SIZE - 8];\n};\n\nstruct ifcvf_lm_cfg {\n u8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n};\n\nint ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);\nint ifcvf_start_hw(struct ifcvf_hw *hw);\nvoid ifcvf_stop_hw(struct ifcvf_hw *hw);\nvoid ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);\nvoid ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n void *dst, int length);\nvoid ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n const void *src, int length);\nu8 ifcvf_get_status(struct ifcvf_hw *hw);\nvoid ifcvf_set_status(struct ifcvf_hw *hw, u8 status);\nvoid io_write64_twopart(u64 val, u32 *lo, u32 *hi);\nvoid ifcvf_reset(struct ifcvf_hw *hw);\nu64 ifcvf_get_features(struct ifcvf_hw *hw);\nu16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);\nint ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);\nstruct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);\n#endif" (#ifndef) "#ifndef" (identifier) "_IFCVF_H_" (preproc_def) "#define _IFCVF_H_\n" (#define) "#define" (identifier) "_IFCVF_H_" (preproc_include) "#include <linux/pci.h>\n" (#include) "#include" (system_lib_string) "<linux/pci.h>" (preproc_include) "#include <linux/pci_regs.h>\n" (#include) "#include" (system_lib_string) "<linux/pci_regs.h>" (preproc_include) "#include <linux/vdpa.h>\n" (#include) "#include" (system_lib_string) "<linux/vdpa.h>" (preproc_include) "#include <uapi/linux/virtio_net.h>\n" (#include) "#include" (system_lib_string) "<uapi/linux/virtio_net.h>" (preproc_include) "#include <uapi/linux/virtio_config.h>\n" (#include) "#include" (system_lib_string) "<uapi/linux/virtio_config.h>" (preproc_include) "#include <uapi/linux/virtio_pci.h>\n" (#include) "#include" (system_lib_string) "<uapi/linux/virtio_pci.h>" (preproc_def) "#define IFCVF_VENDOR_ID 0x1AF4\n" (#define) "#define" (identifier) "IFCVF_VENDOR_ID" (preproc_arg) "0x1AF4" (preproc_def) "#define IFCVF_DEVICE_ID 0x1041\n" (#define) "#define" (identifier) "IFCVF_DEVICE_ID" (preproc_arg) "0x1041" (preproc_def) "#define IFCVF_SUBSYS_VENDOR_ID 0x8086\n" (#define) "#define" (identifier) "IFCVF_SUBSYS_VENDOR_ID" (preproc_arg) "0x8086" (preproc_def) "#define IFCVF_SUBSYS_DEVICE_ID 0x001A\n" (#define) "#define" (identifier) "IFCVF_SUBSYS_DEVICE_ID" (preproc_arg) "0x001A" (preproc_def) "#define IFCVF_SUPPORTED_FEATURES \\n ((1ULL << VIRTIO_NET_F_MAC) | \\n (1ULL << VIRTIO_F_ANY_LAYOUT) | \\n (1ULL << VIRTIO_F_VERSION_1) | \\n (1ULL << VIRTIO_NET_F_STATUS) | \\n (1ULL << VIRTIO_F_ORDER_PLATFORM) | \\n (1ULL << VIRTIO_F_ACCESS_PLATFORM) | \\n (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n" (#define) "#define" (identifier) "IFCVF_SUPPORTED_FEATURES" (preproc_arg) "((1ULL << VIRTIO_NET_F_MAC) | \\n (1ULL << VIRTIO_F_ANY_LAYOUT) | \\n (1ULL << VIRTIO_F_VERSION_1) | \\n (1ULL << VIRTIO_NET_F_STATUS) | \\n (1ULL << VIRTIO_F_ORDER_PLATFORM) | \\n (1ULL << VIRTIO_F_ACCESS_PLATFORM) | \\n (1ULL << VIRTIO_NET_F_MRG_RXBUF))" (comment) "/* Only one queue pair for now. */" (preproc_def) "#define IFCVF_MAX_QUEUE_PAIRS 1\n" (#define) "#define" (identifier) "IFCVF_MAX_QUEUE_PAIRS" (preproc_arg) "1" (preproc_def) "#define IFCVF_QUEUE_ALIGNMENT PAGE_SIZE\n" (#define) "#define" (identifier) "IFCVF_QUEUE_ALIGNMENT" (preproc_arg) "PAGE_SIZE" (preproc_def) "#define IFCVF_QUEUE_MAX 32768\n" (#define) "#define" (identifier) "IFCVF_QUEUE_MAX" (preproc_arg) "32768" (preproc_def) "#define IFCVF_MSI_CONFIG_OFF 0\n" (#define) "#define" (identifier) "IFCVF_MSI_CONFIG_OFF" (preproc_arg) "0" (preproc_def) "#define IFCVF_MSI_QUEUE_OFF 1\n" (#define) "#define" (identifier) "IFCVF_MSI_QUEUE_OFF" (preproc_arg) "1" (preproc_def) "#define IFCVF_PCI_MAX_RESOURCE 6\n" (#define) "#define" (identifier) "IFCVF_PCI_MAX_RESOURCE" (preproc_arg) "6" (preproc_def) "#define IFCVF_LM_CFG_SIZE 0x40\n" (#define) "#define" (identifier) "IFCVF_LM_CFG_SIZE" (preproc_arg) "0x40" (preproc_def) "#define IFCVF_LM_RING_STATE_OFFSET 0x20\n" (#define) "#define" (identifier) "IFCVF_LM_RING_STATE_OFFSET" (preproc_arg) "0x20" (preproc_def) "#define IFCVF_LM_BAR 4\n" (#define) "#define" (identifier) "IFCVF_LM_BAR" (preproc_arg) "4" (preproc_function_def) "#define IFCVF_ERR(pdev, fmt, ...) dev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n" (#define) "#define" (identifier) "IFCVF_ERR" (preproc_params) "(pdev, fmt, ...)" (() "(" (identifier) "pdev" (,) "," (identifier) "fmt" (,) "," (...) "..." ()) ")" (preproc_arg) "dev_err(&pdev->dev, fmt, ##__VA_ARGS__)" (preproc_function_def) "#define IFCVF_DBG(pdev, fmt, ...) dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n" (#define) "#define" (identifier) "IFCVF_DBG" (preproc_params) "(pdev, fmt, ...)" (() "(" (identifier) "pdev" (,) "," (identifier) "fmt" (,) "," (...) "..." ()) ")" (preproc_arg) "dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)" (preproc_function_def) "#define IFCVF_INFO(pdev, fmt, ...) dev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n" (#define) "#define" (identifier) "IFCVF_INFO" (preproc_params) "(pdev, fmt, ...)" (() "(" (identifier) "pdev" (,) "," (identifier) "fmt" (,) "," (...) "..." ()) ")" (preproc_arg) "dev_info(&pdev->dev, fmt, ##__VA_ARGS__)" (preproc_function_def) "#define ifcvf_private_to_vf(adapter) \\n (&((struct ifcvf_adapter *)adapter)->vf)\n" (#define) "#define" (identifier) "ifcvf_private_to_vf" (preproc_params) "(adapter)" (() "(" (identifier) "adapter" ()) ")" (preproc_arg) "(&((struct ifcvf_adapter *)adapter)->vf)" (preproc_def) "#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n" (#define) "#define" (identifier) "IFCVF_MAX_INTR" (preproc_arg) "(IFCVF_MAX_QUEUE_PAIRS * 2 + 1)" (struct_specifier) "struct vring_info {\n u64 desc;\n u64 avail;\n u64 used;\n u16 size;\n u16 last_avail_idx;\n bool ready;\n void __iomem *notify_addr;\n u32 irq;\n struct vdpa_callback cb;\n char msix_name[256];\n}" (struct) "struct" (type_identifier) "vring_info" (field_declaration_list) "{\n u64 desc;\n u64 avail;\n u64 used;\n u16 size;\n u16 last_avail_idx;\n bool ready;\n void __iomem *notify_addr;\n u32 irq;\n struct vdpa_callback cb;\n char msix_name[256];\n}" ({) "{" (field_declaration) "u64 desc;" (type_identifier) "u64" (field_identifier) "desc" (;) ";" (field_declaration) "u64 avail;" (type_identifier) "u64" (field_identifier) "avail" (;) ";" (field_declaration) "u64 used;" (type_identifier) "u64" (field_identifier) "used" (;) ";" (field_declaration) "u16 size;" (type_identifier) "u16" (field_identifier) "size" (;) ";" (field_declaration) "u16 last_avail_idx;" (type_identifier) "u16" (field_identifier) "last_avail_idx" (;) ";" (field_declaration) "bool ready;" (primitive_type) "bool" (field_identifier) "ready" (;) ";" (field_declaration) "void __iomem *notify_addr;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*notify_addr" (*) "*" (field_identifier) "notify_addr" (;) ";" (field_declaration) "u32 irq;" (type_identifier) "u32" (field_identifier) "irq" (;) ";" (field_declaration) "struct vdpa_callback cb;" (struct_specifier) "struct vdpa_callback" (struct) "struct" (type_identifier) "vdpa_callback" (field_identifier) "cb" (;) ";" (field_declaration) "char msix_name[256];" (primitive_type) "char" (array_declarator) "msix_name[256]" (field_identifier) "msix_name" ([) "[" (number_literal) "256" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct ifcvf_hw {\n u8 __iomem *isr;\n /* Live migration */\n u8 __iomem *lm_cfg;\n u16 nr_vring;\n /* Notification bar number */\n u8 notify_bar;\n /* Notificaiton bar address */\n void __iomem *notify_base;\n u32 notify_off_multiplier;\n u64 req_features;\n struct virtio_pci_common_cfg __iomem *common_cfg;\n void __iomem *net_cfg;\n struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n void __iomem * const *base;\n char config_msix_name[256];\n struct vdpa_callback config_cb;\n unsigned int config_irq;\n}" (struct) "struct" (type_identifier) "ifcvf_hw" (field_declaration_list) "{\n u8 __iomem *isr;\n /* Live migration */\n u8 __iomem *lm_cfg;\n u16 nr_vring;\n /* Notification bar number */\n u8 notify_bar;\n /* Notificaiton bar address */\n void __iomem *notify_base;\n u32 notify_off_multiplier;\n u64 req_features;\n struct virtio_pci_common_cfg __iomem *common_cfg;\n void __iomem *net_cfg;\n struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n void __iomem * const *base;\n char config_msix_name[256];\n struct vdpa_callback config_cb;\n unsigned int config_irq;\n}" ({) "{" (field_declaration) "u8 __iomem *isr;" (type_identifier) "u8" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*isr" (*) "*" (field_identifier) "isr" (;) ";" (comment) "/* Live migration */" (field_declaration) "u8 __iomem *lm_cfg;" (type_identifier) "u8" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*lm_cfg" (*) "*" (field_identifier) "lm_cfg" (;) ";" (field_declaration) "u16 nr_vring;" (type_identifier) "u16" (field_identifier) "nr_vring" (;) ";" (comment) "/* Notification bar number */" (field_declaration) "u8 notify_bar;" (type_identifier) "u8" (field_identifier) "notify_bar" (;) ";" (comment) "/* Notificaiton bar address */" (field_declaration) "void __iomem *notify_base;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*notify_base" (*) "*" (field_identifier) "notify_base" (;) ";" (field_declaration) "u32 notify_off_multiplier;" (type_identifier) "u32" (field_identifier) "notify_off_multiplier" (;) ";" (field_declaration) "u64 req_features;" (type_identifier) "u64" (field_identifier) "req_features" (;) ";" (field_declaration) "struct virtio_pci_common_cfg __iomem *common_cfg;" (struct_specifier) "struct virtio_pci_common_cfg" (struct) "struct" (type_identifier) "virtio_pci_common_cfg" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*common_cfg" (*) "*" (field_identifier) "common_cfg" (;) ";" (field_declaration) "void __iomem *net_cfg;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*net_cfg" (*) "*" (field_identifier) "net_cfg" (;) ";" (field_declaration) "struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];" (struct_specifier) "struct vring_info" (struct) "struct" (type_identifier) "vring_info" (array_declarator) "vring[IFCVF_MAX_QUEUE_PAIRS * 2]" (field_identifier) "vring" ([) "[" (binary_expression) "IFCVF_MAX_QUEUE_PAIRS * 2" (identifier) "IFCVF_MAX_QUEUE_PAIRS" (*) "*" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "void __iomem * const *base;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "* const *base" (*) "*" (type_qualifier) "const" (const) "const" (pointer_declarator) "*base" (*) "*" (field_identifier) "base" (;) ";" (field_declaration) "char config_msix_name[256];" (primitive_type) "char" (array_declarator) "config_msix_name[256]" (field_identifier) "config_msix_name" ([) "[" (number_literal) "256" (]) "]" (;) ";" (field_declaration) "struct vdpa_callback config_cb;" (struct_specifier) "struct vdpa_callback" (struct) "struct" (type_identifier) "vdpa_callback" (field_identifier) "config_cb" (;) ";" (field_declaration) "unsigned int config_irq;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "config_irq" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct ifcvf_adapter {\n struct vdpa_device vdpa;\n struct pci_dev *pdev;\n struct ifcvf_hw vf;\n}" (struct) "struct" (type_identifier) "ifcvf_adapter" (field_declaration_list) "{\n struct vdpa_device vdpa;\n struct pci_dev *pdev;\n struct ifcvf_hw vf;\n}" ({) "{" (field_declaration) "struct vdpa_device vdpa;" (struct_specifier) "struct vdpa_device" (struct) "struct" (type_identifier) "vdpa_device" (field_identifier) "vdpa" (;) ";" (field_declaration) "struct pci_dev *pdev;" (struct_specifier) "struct pci_dev" (struct) "struct" (type_identifier) "pci_dev" (pointer_declarator) "*pdev" (*) "*" (field_identifier) "pdev" (;) ";" (field_declaration) "struct ifcvf_hw vf;" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (field_identifier) "vf" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct ifcvf_vring_lm_cfg {\n u32 idx_addr[2];\n u8 reserved[IFCVF_LM_CFG_SIZE - 8];\n}" (struct) "struct" (type_identifier) "ifcvf_vring_lm_cfg" (field_declaration_list) "{\n u32 idx_addr[2];\n u8 reserved[IFCVF_LM_CFG_SIZE - 8];\n}" ({) "{" (field_declaration) "u32 idx_addr[2];" (type_identifier) "u32" (array_declarator) "idx_addr[2]" (field_identifier) "idx_addr" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "u8 reserved[IFCVF_LM_CFG_SIZE - 8];" (type_identifier) "u8" (array_declarator) "reserved[IFCVF_LM_CFG_SIZE - 8]" (field_identifier) "reserved" ([) "[" (binary_expression) "IFCVF_LM_CFG_SIZE - 8" (identifier) "IFCVF_LM_CFG_SIZE" (-) "-" (number_literal) "8" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct ifcvf_lm_cfg {\n u8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n}" (struct) "struct" (type_identifier) "ifcvf_lm_cfg" (field_declaration_list) "{\n u8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n}" ({) "{" (field_declaration) "u8 reserved[IFCVF_LM_RING_STATE_OFFSET];" (type_identifier) "u8" (array_declarator) "reserved[IFCVF_LM_RING_STATE_OFFSET]" (field_identifier) "reserved" ([) "[" (identifier) "IFCVF_LM_RING_STATE_OFFSET" (]) "]" (;) ";" (field_declaration) "struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];" (struct_specifier) "struct ifcvf_vring_lm_cfg" (struct) "struct" (type_identifier) "ifcvf_vring_lm_cfg" (array_declarator) "vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS]" (field_identifier) "vring_lm_cfg" ([) "[" (identifier) "IFCVF_MAX_QUEUE_PAIRS" (]) "]" (;) ";" (}) "}" (;) ";" (declaration) "int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);" (primitive_type) "int" (function_declarator) "ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev)" (identifier) "ifcvf_init_hw" (parameter_list) "(struct ifcvf_hw *hw, struct pci_dev *dev)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "struct pci_dev *dev" (struct_specifier) "struct pci_dev" (struct) "struct" (type_identifier) "pci_dev" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" ()) ")" (;) ";" (declaration) "int ifcvf_start_hw(struct ifcvf_hw *hw);" (primitive_type) "int" (function_declarator) "ifcvf_start_hw(struct ifcvf_hw *hw)" (identifier) "ifcvf_start_hw" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (declaration) "void ifcvf_stop_hw(struct ifcvf_hw *hw);" (primitive_type) "void" (function_declarator) "ifcvf_stop_hw(struct ifcvf_hw *hw)" (identifier) "ifcvf_stop_hw" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (declaration) "void ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);" (primitive_type) "void" (function_declarator) "ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid)" (identifier) "ifcvf_notify_queue" (parameter_list) "(struct ifcvf_hw *hw, u16 qid)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u16 qid" (type_identifier) "u16" (identifier) "qid" ()) ")" (;) ";" (declaration) "void ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n void *dst, int length);" (primitive_type) "void" (function_declarator) "ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n void *dst, int length)" (identifier) "ifcvf_read_net_config" (parameter_list) "(struct ifcvf_hw *hw, u64 offset,\n void *dst, int length)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u64 offset" (type_identifier) "u64" (identifier) "offset" (,) "," (parameter_declaration) "void *dst" (primitive_type) "void" (pointer_declarator) "*dst" (*) "*" (identifier) "dst" (,) "," (parameter_declaration) "int length" (primitive_type) "int" (identifier) "length" ()) ")" (;) ";" (declaration) "void ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n const void *src, int length);" (primitive_type) "void" (function_declarator) "ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n const void *src, int length)" (identifier) "ifcvf_write_net_config" (parameter_list) "(struct ifcvf_hw *hw, u64 offset,\n const void *src, int length)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u64 offset" (type_identifier) "u64" (identifier) "offset" (,) "," (parameter_declaration) "const void *src" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "int length" (primitive_type) "int" (identifier) "length" ()) ")" (;) ";" (declaration) "u8 ifcvf_get_status(struct ifcvf_hw *hw);" (type_identifier) "u8" (function_declarator) "ifcvf_get_status(struct ifcvf_hw *hw)" (identifier) "ifcvf_get_status" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (declaration) "void ifcvf_set_status(struct ifcvf_hw *hw, u8 status);" (primitive_type) "void" (function_declarator) "ifcvf_set_status(struct ifcvf_hw *hw, u8 status)" (identifier) "ifcvf_set_status" (parameter_list) "(struct ifcvf_hw *hw, u8 status)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u8 status" (type_identifier) "u8" (identifier) "status" ()) ")" (;) ";" (declaration) "void io_write64_twopart(u64 val, u32 *lo, u32 *hi);" (primitive_type) "void" (function_declarator) "io_write64_twopart(u64 val, u32 *lo, u32 *hi)" (identifier) "io_write64_twopart" (parameter_list) "(u64 val, u32 *lo, u32 *hi)" (() "(" (parameter_declaration) "u64 val" (type_identifier) "u64" (identifier) "val" (,) "," (parameter_declaration) "u32 *lo" (type_identifier) "u32" (pointer_declarator) "*lo" (*) "*" (identifier) "lo" (,) "," (parameter_declaration) "u32 *hi" (type_identifier) "u32" (pointer_declarator) "*hi" (*) "*" (identifier) "hi" ()) ")" (;) ";" (declaration) "void ifcvf_reset(struct ifcvf_hw *hw);" (primitive_type) "void" (function_declarator) "ifcvf_reset(struct ifcvf_hw *hw)" (identifier) "ifcvf_reset" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (declaration) "u64 ifcvf_get_features(struct ifcvf_hw *hw);" (type_identifier) "u64" (function_declarator) "ifcvf_get_features(struct ifcvf_hw *hw)" (identifier) "ifcvf_get_features" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (declaration) "u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);" (type_identifier) "u16" (function_declarator) "ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid)" (identifier) "ifcvf_get_vq_state" (parameter_list) "(struct ifcvf_hw *hw, u16 qid)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u16 qid" (type_identifier) "u16" (identifier) "qid" ()) ")" (;) ";" (declaration) "int ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);" (primitive_type) "int" (function_declarator) "ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num)" (identifier) "ifcvf_set_vq_state" (parameter_list) "(struct ifcvf_hw *hw, u16 qid, u16 num)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" (,) "," (parameter_declaration) "u16 qid" (type_identifier) "u16" (identifier) "qid" (,) "," (parameter_declaration) "u16 num" (type_identifier) "u16" (identifier) "num" ()) ")" (;) ";" (declaration) "struct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);" (struct_specifier) "struct ifcvf_adapter" (struct) "struct" (type_identifier) "ifcvf_adapter" (pointer_declarator) "*vf_to_adapter(struct ifcvf_hw *hw)" (*) "*" (function_declarator) "vf_to_adapter(struct ifcvf_hw *hw)" (identifier) "vf_to_adapter" (parameter_list) "(struct ifcvf_hw *hw)" (() "(" (parameter_declaration) "struct ifcvf_hw *hw" (struct_specifier) "struct ifcvf_hw" (struct) "struct" (type_identifier) "ifcvf_hw" (pointer_declarator) "*hw" (*) "*" (identifier) "hw" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* _IFCVF_H_ */"
662
7
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 31.58, "nodes": 512, "errors": 0, "source_hash": "66f0502cb9d40720eb16bc21e357bcb670df9c4f1937e04c8db7461c28bd1c39", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _IFCVF_H_\n#define _IFCVF_H_\n\n#include <linux/pci.h>\n#include <linux/pci_regs.h>\n#include <linux/vdpa.h>\n#include <uapi/linux/virtio_net.h>\n#include <uapi/linux/virtio_config.h>\n#include <uapi/linux/virtio_pci.h>\n\n#define IFCVF_VENDOR_ID\t\t0x1AF4\n#define IFCVF_DEVICE_ID\t\t0x1041\n#define IFCVF_SUBSYS_VENDOR_ID\t0x8086\n#define IFCVF_SUBSYS_DEVICE_ID\t0x001A\n\n#define IFCVF_SUPPORTED_FEATURES \\\n\t\t((1ULL << VIRTIO_NET_F_MAC)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ANY_LAYOUT)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_VERSION_1)\t\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_STATUS)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ORDER_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_F_ACCESS_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n\n/* Only one queue pair for now. */\n#define IFCVF_MAX_QUEUE_PAIRS\t1\n\n#define IFCVF_QUEUE_ALIGNMENT\tPAGE_SIZE\n#define IFCVF_QUEUE_MAX\t\t32768\n#define IFCVF_MSI_CONFIG_OFF\t0\n#define IFCVF_MSI_QUEUE_OFF\t1\n#define IFCVF_PCI_MAX_RESOURCE\t6\n\n#define IFCVF_LM_CFG_SIZE\t\t0x40\n#define IFCVF_LM_RING_STATE_OFFSET\t0x20\n#define IFCVF_LM_BAR\t\t\t4\n\n#define IFCVF_ERR(pdev, fmt, ...)\tdev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_DBG(pdev, fmt, ...)\tdev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_INFO(pdev, fmt, ...)\tdev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n\n#define ifcvf_private_to_vf(adapter) \\\n\t(&((struct ifcvf_adapter *)adapter)->vf)\n\n#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n\nstruct vring_info {\n\tu64 desc;\n\tu64 avail;\n\tu64 used;\n\tu16 size;\n\tu16 last_avail_idx;\n\tbool ready;\n\tvoid __iomem *notify_addr;\n\tu32 irq;\n\tstruct vdpa_callback cb;\n\tchar msix_name[256];\n};\n\nstruct ifcvf_hw {\n\tu8 __iomem *isr;\n\t/* Live migration */\n\tu8 __iomem *lm_cfg;\n\tu16 nr_vring;\n\t/* Notification bar number */\n\tu8 notify_bar;\n\t/* Notificaiton bar address */\n\tvoid __iomem *notify_base;\n\tu32 notify_off_multiplier;\n\tu64 req_features;\n\tstruct virtio_pci_common_cfg __iomem *common_cfg;\n\tvoid __iomem *net_cfg;\n\tstruct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n\tvoid __iomem * const *base;\n\tchar config_msix_name[256];\n\tstruct vdpa_callback config_cb;\n\tunsigned int config_irq;\n};\n\nstruct ifcvf_adapter {\n\tstruct vdpa_device vdpa;\n\tstruct pci_dev *pdev;\n\tstruct ifcvf_hw vf;\n};\n\nstruct ifcvf_vring_lm_cfg {\n\tu32 idx_addr[2];\n\tu8 reserved[IFCVF_LM_CFG_SIZE - 8];\n};\n\nstruct ifcvf_lm_cfg {\n\tu8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n\tstruct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n};\n\nint ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);\nint ifcvf_start_hw(struct ifcvf_hw *hw);\nvoid ifcvf_stop_hw(struct ifcvf_hw *hw);\nvoid ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);\nvoid ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length);\nvoid ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length);\nu8 ifcvf_get_status(struct ifcvf_hw *hw);\nvoid ifcvf_set_status(struct ifcvf_hw *hw, u8 status);\nvoid io_write64_twopart(u64 val, u32 *lo, u32 *hi);\nvoid ifcvf_reset(struct ifcvf_hw *hw);\nu64 ifcvf_get_features(struct ifcvf_hw *hw);\nu16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);\nint ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);\nstruct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 87, 94, 101, 107, 111, 152, 238, 258, 274, 289, 308, 320, 332, 347, 370, 393, 405, 420, 438, 450, 462, 477, 495, 511], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 121, "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": "_IFCVF_H_", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define _IFCVF_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": "_IFCVF_H_", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/pci.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/pci.h>", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/pci_regs.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/pci_regs.h>", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/vdpa.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/vdpa.h>", "parent": 12, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include <uapi/linux/virtio_net.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<uapi/linux/virtio_net.h>", "parent": 15, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 34}}, {"id": 18, "type": "preproc_include", "text": "#include <uapi/linux/virtio_config.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<uapi/linux/virtio_config.h>", "parent": 18, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 37}}, {"id": 21, "type": "preproc_include", "text": "#include <uapi/linux/virtio_pci.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<uapi/linux/virtio_pci.h>", "parent": 21, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 34}}, {"id": 24, "type": "preproc_def", "text": "#define IFCVF_VENDOR_ID\t\t0x1AF4\n", "parent": 0, "children": [25, 26, 27], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 26, "type": "identifier", "text": "IFCVF_VENDOR_ID", "parent": 24, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 23}}, {"id": 27, "type": "preproc_arg", "text": "0x1AF4", "parent": 24, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 31}}, {"id": 28, "type": "preproc_def", "text": "#define IFCVF_DEVICE_ID\t\t0x1041\n", "parent": 0, "children": [29, 30, 31], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 30, "type": "identifier", "text": "IFCVF_DEVICE_ID", "parent": 28, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 23}}, {"id": 31, "type": "preproc_arg", "text": "0x1041", "parent": 28, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 31}}, {"id": 32, "type": "preproc_def", "text": "#define IFCVF_SUBSYS_VENDOR_ID\t0x8086\n", "parent": 0, "children": [33, 34, 35], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 34, "type": "identifier", "text": "IFCVF_SUBSYS_VENDOR_ID", "parent": 32, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 30}}, {"id": 35, "type": "preproc_arg", "text": "0x8086", "parent": 32, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 37}}, {"id": 36, "type": "preproc_def", "text": "#define IFCVF_SUBSYS_DEVICE_ID\t0x001A\n", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 38, "type": "identifier", "text": "IFCVF_SUBSYS_DEVICE_ID", "parent": 36, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 30}}, {"id": 39, "type": "preproc_arg", "text": "0x001A", "parent": 36, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 37}}, {"id": 40, "type": "preproc_def", "text": "#define IFCVF_SUPPORTED_FEATURES \\\n\t\t((1ULL << VIRTIO_NET_F_MAC)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ANY_LAYOUT)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_VERSION_1)\t\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_STATUS)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ORDER_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_F_ACCESS_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n", "parent": 0, "children": [41, 42, 43], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 42, "type": "identifier", "text": "IFCVF_SUPPORTED_FEATURES", "parent": 40, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 32}}, {"id": 43, "type": "preproc_arg", "text": "((1ULL << VIRTIO_NET_F_MAC)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ANY_LAYOUT)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_VERSION_1)\t\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_STATUS)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ORDER_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_F_ACCESS_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_MRG_RXBUF))", "parent": 40, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 32, "column": 36}}, {"id": 44, "type": "preproc_def", "text": "#define IFCVF_MAX_QUEUE_PAIRS\t1\n", "parent": 0, "children": [45, 46, 47], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 46, "type": "identifier", "text": "IFCVF_MAX_QUEUE_PAIRS", "parent": 44, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 29}}, {"id": 47, "type": "preproc_arg", "text": "1", "parent": 44, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 48, "type": "preproc_def", "text": "#define IFCVF_QUEUE_ALIGNMENT\tPAGE_SIZE\n", "parent": 0, "children": [49, 50, 51], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 50, "type": "identifier", "text": "IFCVF_QUEUE_ALIGNMENT", "parent": 48, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 29}}, {"id": 51, "type": "preproc_arg", "text": "PAGE_SIZE", "parent": 48, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 39}}, {"id": 52, "type": "preproc_def", "text": "#define IFCVF_QUEUE_MAX\t\t32768\n", "parent": 0, "children": [53, 54, 55], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 54, "type": "identifier", "text": "IFCVF_QUEUE_MAX", "parent": 52, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 23}}, {"id": 55, "type": "preproc_arg", "text": "32768", "parent": 52, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 30}}, {"id": 56, "type": "preproc_def", "text": "#define IFCVF_MSI_CONFIG_OFF\t0\n", "parent": 0, "children": [57, 58, 59], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 58, "type": "identifier", "text": "IFCVF_MSI_CONFIG_OFF", "parent": 56, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 28}}, {"id": 59, "type": "preproc_arg", "text": "0", "parent": 56, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 30}}, {"id": 60, "type": "preproc_def", "text": "#define IFCVF_MSI_QUEUE_OFF\t1\n", "parent": 0, "children": [61, 62, 63], "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": "IFCVF_MSI_QUEUE_OFF", "parent": 60, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 27}}, {"id": 63, "type": "preproc_arg", "text": "1", "parent": 60, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 64, "type": "preproc_def", "text": "#define IFCVF_PCI_MAX_RESOURCE\t6\n", "parent": 0, "children": [65, 66, 67], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 66, "type": "identifier", "text": "IFCVF_PCI_MAX_RESOURCE", "parent": 64, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 30}}, {"id": 67, "type": "preproc_arg", "text": "6", "parent": 64, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 32}}, {"id": 68, "type": "preproc_def", "text": "#define IFCVF_LM_CFG_SIZE\t\t0x40\n", "parent": 0, "children": [69, 70, 71], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 70, "type": "identifier", "text": "IFCVF_LM_CFG_SIZE", "parent": 68, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 25}}, {"id": 71, "type": "preproc_arg", "text": "0x40", "parent": 68, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 31}}, {"id": 72, "type": "preproc_def", "text": "#define IFCVF_LM_RING_STATE_OFFSET\t0x20\n", "parent": 0, "children": [73, 74, 75], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 74, "type": "identifier", "text": "IFCVF_LM_RING_STATE_OFFSET", "parent": 72, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 34}}, {"id": 75, "type": "preproc_arg", "text": "0x20", "parent": 72, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 39}}, {"id": 76, "type": "preproc_def", "text": "#define IFCVF_LM_BAR\t\t\t4\n", "parent": 0, "children": [77, 78, 79], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 78, "type": "identifier", "text": "IFCVF_LM_BAR", "parent": 76, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 20}}, {"id": 79, "type": "preproc_arg", "text": "4", "parent": 76, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 24}}, {"id": 80, "type": "preproc_function_def", "text": "#define IFCVF_ERR(pdev, fmt, ...)\tdev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n", "parent": 0, "children": [81, 82, 83, 86], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 82, "type": "identifier", "text": "IFCVF_ERR", "parent": 80, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 17}}, {"id": 83, "type": "preproc_params", "text": "(pdev, fmt, ...)", "parent": 80, "children": [84, 85], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 33}}, {"id": 84, "type": "identifier", "text": "pdev", "parent": 83, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 22}}, {"id": 85, "type": "identifier", "text": "fmt", "parent": 83, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 27}}, {"id": 86, "type": "preproc_arg", "text": "dev_err(&pdev->dev, fmt, ##__VA_ARGS__)", "parent": 80, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 73}}, {"id": 87, "type": "preproc_function_def", "text": "#define IFCVF_DBG(pdev, fmt, ...)\tdev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n", "parent": 0, "children": [88, 89, 90, 93], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 88, "type": "#define", "text": "#define", "parent": 87, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 89, "type": "identifier", "text": "IFCVF_DBG", "parent": 87, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 17}}, {"id": 90, "type": "preproc_params", "text": "(pdev, fmt, ...)", "parent": 87, "children": [91, 92], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 33}}, {"id": 91, "type": "identifier", "text": "pdev", "parent": 90, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 22}}, {"id": 92, "type": "identifier", "text": "fmt", "parent": 90, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 27}}, {"id": 93, "type": "preproc_arg", "text": "dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)", "parent": 87, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 73}}, {"id": 94, "type": "preproc_function_def", "text": "#define IFCVF_INFO(pdev, fmt, ...)\tdev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n", "parent": 0, "children": [95, 96, 97, 100], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 96, "type": "identifier", "text": "IFCVF_INFO", "parent": 94, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 18}}, {"id": 97, "type": "preproc_params", "text": "(pdev, fmt, ...)", "parent": 94, "children": [98, 99], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 34}}, {"id": 98, "type": "identifier", "text": "pdev", "parent": 97, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 23}}, {"id": 99, "type": "identifier", "text": "fmt", "parent": 97, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 28}}, {"id": 100, "type": "preproc_arg", "text": "dev_info(&pdev->dev, fmt, ##__VA_ARGS__)", "parent": 94, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 75}}, {"id": 101, "type": "preproc_function_def", "text": "#define ifcvf_private_to_vf(adapter) \\\n\t(&((struct ifcvf_adapter *)adapter)->vf)\n", "parent": 0, "children": [102, 103, 104, 106], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 103, "type": "identifier", "text": "ifcvf_private_to_vf", "parent": 101, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 27}}, {"id": 104, "type": "preproc_params", "text": "(adapter)", "parent": 101, "children": [105], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 36}}, {"id": 105, "type": "identifier", "text": "adapter", "parent": 104, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 35}}, {"id": 106, "type": "preproc_arg", "text": "(&((struct ifcvf_adapter *)adapter)->vf)", "parent": 101, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 41}}, {"id": 107, "type": "preproc_def", "text": "#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n", "parent": 0, "children": [108, 109, 110], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 108, "type": "#define", "text": "#define", "parent": 107, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 109, "type": "identifier", "text": "IFCVF_MAX_INTR", "parent": 107, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 22}}, {"id": 110, "type": "preproc_arg", "text": "(IFCVF_MAX_QUEUE_PAIRS * 2 + 1)", "parent": 107, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 54}}, {"id": 111, "type": "struct_specifier", "text": "struct vring_info {\n\tu64 desc;\n\tu64 avail;\n\tu64 used;\n\tu16 size;\n\tu16 last_avail_idx;\n\tbool ready;\n\tvoid __iomem *notify_addr;\n\tu32 irq;\n\tstruct vdpa_callback cb;\n\tchar msix_name[256];\n}", "parent": 0, "children": [112, 113], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 112, "type": "struct", "text": "struct", "parent": 111, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 113, "type": "type_identifier", "text": "vring_info", "parent": 111, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 17}}, {"id": 114, "type": "field_declaration", "text": "u64 desc;", "parent": 111, "children": [115, 116], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 10}}, {"id": 115, "type": "type_identifier", "text": "u64", "parent": 114, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 116, "type": "field_identifier", "text": "desc", "parent": 114, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 9}}, {"id": 117, "type": "field_declaration", "text": "u64 avail;", "parent": 111, "children": [118, 119], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 11}}, {"id": 118, "type": "type_identifier", "text": "u64", "parent": 117, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 119, "type": "field_identifier", "text": "avail", "parent": 117, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 10}}, {"id": 120, "type": "field_declaration", "text": "u64 used;", "parent": 111, "children": [121, 122], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 10}}, {"id": 121, "type": "type_identifier", "text": "u64", "parent": 120, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 4}}, {"id": 122, "type": "field_identifier", "text": "used", "parent": 120, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 9}}, {"id": 123, "type": "field_declaration", "text": "u16 size;", "parent": 111, "children": [124, 125], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 10}}, {"id": 124, "type": "type_identifier", "text": "u16", "parent": 123, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 125, "type": "field_identifier", "text": "size", "parent": 123, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 9}}, {"id": 126, "type": "field_declaration", "text": "u16 last_avail_idx;", "parent": 111, "children": [127, 128], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 20}}, {"id": 127, "type": "type_identifier", "text": "u16", "parent": 126, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 128, "type": "field_identifier", "text": "last_avail_idx", "parent": 126, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 19}}, {"id": 129, "type": "field_declaration", "text": "bool ready;", "parent": 111, "children": [130, 131], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 12}}, {"id": 130, "type": "primitive_type", "text": "bool", "parent": 129, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 5}}, {"id": 131, "type": "field_identifier", "text": "ready", "parent": 129, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 11}}, {"id": 132, "type": "field_declaration", "text": "void __iomem *notify_addr;", "parent": 111, "children": [133, 134, 136], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 27}}, {"id": 133, "type": "primitive_type", "text": "void", "parent": 132, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 5}}, {"id": 134, "type": "ERROR", "text": "__iomem", "parent": 132, "children": [135], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 13}}, {"id": 135, "type": "field_identifier", "text": "__iomem", "parent": 134, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 13}}, {"id": 136, "type": "pointer_declarator", "text": "*notify_addr", "parent": 132, "children": [137, 138], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 26}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 15}}, {"id": 138, "type": "field_identifier", "text": "notify_addr", "parent": 136, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 26}}, {"id": 139, "type": "field_declaration", "text": "u32 irq;", "parent": 111, "children": [140, 141], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 9}}, {"id": 140, "type": "type_identifier", "text": "u32", "parent": 139, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 4}}, {"id": 141, "type": "field_identifier", "text": "irq", "parent": 139, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 8}}, {"id": 142, "type": "field_declaration", "text": "struct vdpa_callback cb;", "parent": 111, "children": [143, 146], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 25}}, {"id": 143, "type": "struct_specifier", "text": "struct vdpa_callback", "parent": 142, "children": [144, 145], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 21}}, {"id": 144, "type": "struct", "text": "struct", "parent": 143, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 145, "type": "type_identifier", "text": "vdpa_callback", "parent": 143, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 21}}, {"id": 146, "type": "field_identifier", "text": "cb", "parent": 142, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 24}}, {"id": 147, "type": "field_declaration", "text": "char msix_name[256];", "parent": 111, "children": [148, 149], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 21}}, {"id": 148, "type": "primitive_type", "text": "char", "parent": 147, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 149, "type": "array_declarator", "text": "msix_name[256]", "parent": 147, "children": [150, 151], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 20}}, {"id": 150, "type": "field_identifier", "text": "msix_name", "parent": 149, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 15}}, {"id": 151, "type": "number_literal", "text": "256", "parent": 149, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 19}}, {"id": 152, "type": "struct_specifier", "text": "struct ifcvf_hw {\n\tu8 __iomem *isr;\n\t/* Live migration */\n\tu8 __iomem *lm_cfg;\n\tu16 nr_vring;\n\t/* Notification bar number */\n\tu8 notify_bar;\n\t/* Notificaiton bar address */\n\tvoid __iomem *notify_base;\n\tu32 notify_off_multiplier;\n\tu64 req_features;\n\tstruct virtio_pci_common_cfg __iomem *common_cfg;\n\tvoid __iomem *net_cfg;\n\tstruct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n\tvoid __iomem * const *base;\n\tchar config_msix_name[256];\n\tstruct vdpa_callback config_cb;\n\tunsigned int config_irq;\n}", "parent": 0, "children": [153, 154], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 153, "type": "struct", "text": "struct", "parent": 152, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 154, "type": "type_identifier", "text": "ifcvf_hw", "parent": 152, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 15}}, {"id": 155, "type": "field_declaration", "text": "u8 __iomem *isr;", "parent": 152, "children": [156, 157, 159], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 17}}, {"id": 156, "type": "type_identifier", "text": "u8", "parent": 155, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 3}}, {"id": 157, "type": "ERROR", "text": "__iomem", "parent": 155, "children": [158], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 11}}, {"id": 158, "type": "field_identifier", "text": "__iomem", "parent": 157, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 11}}, {"id": 159, "type": "pointer_declarator", "text": "*isr", "parent": 155, "children": [160, 161], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 16}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 13}}, {"id": 161, "type": "field_identifier", "text": "isr", "parent": 159, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 16}}, {"id": 162, "type": "field_declaration", "text": "u8 __iomem *lm_cfg;", "parent": 152, "children": [163, 164, 166], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 20}}, {"id": 163, "type": "type_identifier", "text": "u8", "parent": 162, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 3}}, {"id": 164, "type": "ERROR", "text": "__iomem", "parent": 162, "children": [165], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 11}}, {"id": 165, "type": "field_identifier", "text": "__iomem", "parent": 164, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 11}}, {"id": 166, "type": "pointer_declarator", "text": "*lm_cfg", "parent": 162, "children": [167, 168], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 19}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 168, "type": "field_identifier", "text": "lm_cfg", "parent": 166, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 19}}, {"id": 169, "type": "field_declaration", "text": "u16 nr_vring;", "parent": 152, "children": [170, 171], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 14}}, {"id": 170, "type": "type_identifier", "text": "u16", "parent": 169, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 171, "type": "field_identifier", "text": "nr_vring", "parent": 169, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 13}}, {"id": 172, "type": "field_declaration", "text": "u8 notify_bar;", "parent": 152, "children": [173, 174], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 15}}, {"id": 173, "type": "type_identifier", "text": "u8", "parent": 172, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 3}}, {"id": 174, "type": "field_identifier", "text": "notify_bar", "parent": 172, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 14}}, {"id": 175, "type": "field_declaration", "text": "void __iomem *notify_base;", "parent": 152, "children": [176, 177, 179], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 27}}, {"id": 176, "type": "primitive_type", "text": "void", "parent": 175, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 177, "type": "ERROR", "text": "__iomem", "parent": 175, "children": [178], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 13}}, {"id": 178, "type": "field_identifier", "text": "__iomem", "parent": 177, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 13}}, {"id": 179, "type": "pointer_declarator", "text": "*notify_base", "parent": 175, "children": [180, 181], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 26}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 15}}, {"id": 181, "type": "field_identifier", "text": "notify_base", "parent": 179, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 26}}, {"id": 182, "type": "field_declaration", "text": "u32 notify_off_multiplier;", "parent": 152, "children": [183, 184], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 27}}, {"id": 183, "type": "type_identifier", "text": "u32", "parent": 182, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 184, "type": "field_identifier", "text": "notify_off_multiplier", "parent": 182, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 26}}, {"id": 185, "type": "field_declaration", "text": "u64 req_features;", "parent": 152, "children": [186, 187], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 18}}, {"id": 186, "type": "type_identifier", "text": "u64", "parent": 185, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 187, "type": "field_identifier", "text": "req_features", "parent": 185, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 17}}, {"id": 188, "type": "field_declaration", "text": "struct virtio_pci_common_cfg __iomem *common_cfg;", "parent": 152, "children": [189, 192, 194], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 50}}, {"id": 189, "type": "struct_specifier", "text": "struct virtio_pci_common_cfg", "parent": 188, "children": [190, 191], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 29}}, {"id": 190, "type": "struct", "text": "struct", "parent": 189, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 7}}, {"id": 191, "type": "type_identifier", "text": "virtio_pci_common_cfg", "parent": 189, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 29}}, {"id": 192, "type": "ERROR", "text": "__iomem", "parent": 188, "children": [193], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 37}}, {"id": 193, "type": "field_identifier", "text": "__iomem", "parent": 192, "children": [], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 37}}, {"id": 194, "type": "pointer_declarator", "text": "*common_cfg", "parent": 188, "children": [195, 196], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 49}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 39}}, {"id": 196, "type": "field_identifier", "text": "common_cfg", "parent": 194, "children": [], "start_point": {"row": 80, "column": 39}, "end_point": {"row": 80, "column": 49}}, {"id": 197, "type": "field_declaration", "text": "void __iomem *net_cfg;", "parent": 152, "children": [198, 199, 201], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 23}}, {"id": 198, "type": "primitive_type", "text": "void", "parent": 197, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 199, "type": "ERROR", "text": "__iomem", "parent": 197, "children": [200], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 13}}, {"id": 200, "type": "field_identifier", "text": "__iomem", "parent": 199, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 13}}, {"id": 201, "type": "pointer_declarator", "text": "*net_cfg", "parent": 197, "children": [202, 203], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 22}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 15}}, {"id": 203, "type": "field_identifier", "text": "net_cfg", "parent": 201, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 22}}, {"id": 204, "type": "field_declaration", "text": "struct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];", "parent": 152, "children": [205, 208], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 52}}, {"id": 205, "type": "struct_specifier", "text": "struct vring_info", "parent": 204, "children": [206, 207], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 18}}, {"id": 206, "type": "struct", "text": "struct", "parent": 205, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 7}}, {"id": 207, "type": "type_identifier", "text": "vring_info", "parent": 205, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 18}}, {"id": 208, "type": "array_declarator", "text": "vring[IFCVF_MAX_QUEUE_PAIRS * 2]", "parent": 204, "children": [209, 210], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 51}}, {"id": 209, "type": "field_identifier", "text": "vring", "parent": 208, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 24}}, {"id": 210, "type": "binary_expression", "text": "IFCVF_MAX_QUEUE_PAIRS * 2", "parent": 208, "children": [211, 212, 213], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 50}}, {"id": 211, "type": "identifier", "text": "IFCVF_MAX_QUEUE_PAIRS", "parent": 210, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 46}}, {"id": 212, "type": "*", "text": "*", "parent": 210, "children": [], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 48}}, {"id": 213, "type": "number_literal", "text": "2", "parent": 210, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 50}}, {"id": 214, "type": "field_declaration", "text": "void __iomem * const *base;", "parent": 152, "children": [215, 216, 218], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 28}}, {"id": 215, "type": "primitive_type", "text": "void", "parent": 214, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 5}}, {"id": 216, "type": "ERROR", "text": "__iomem", "parent": 214, "children": [217], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 13}}, {"id": 217, "type": "field_identifier", "text": "__iomem", "parent": 216, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 13}}, {"id": 218, "type": "pointer_declarator", "text": "* const *base", "parent": 214, "children": [219, 220], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 27}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 15}}, {"id": 220, "type": "pointer_declarator", "text": "*base", "parent": 218, "children": [221, 222], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 27}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 23}}, {"id": 222, "type": "field_identifier", "text": "base", "parent": 220, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 27}}, {"id": 223, "type": "field_declaration", "text": "char config_msix_name[256];", "parent": 152, "children": [224, 225], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 28}}, {"id": 224, "type": "primitive_type", "text": "char", "parent": 223, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 5}}, {"id": 225, "type": "array_declarator", "text": "config_msix_name[256]", "parent": 223, "children": [226, 227], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 27}}, {"id": 226, "type": "field_identifier", "text": "config_msix_name", "parent": 225, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 22}}, {"id": 227, "type": "number_literal", "text": "256", "parent": 225, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 26}}, {"id": 228, "type": "field_declaration", "text": "struct vdpa_callback config_cb;", "parent": 152, "children": [229, 232], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 32}}, {"id": 229, "type": "struct_specifier", "text": "struct vdpa_callback", "parent": 228, "children": [230, 231], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 21}}, {"id": 230, "type": "struct", "text": "struct", "parent": 229, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 7}}, {"id": 231, "type": "type_identifier", "text": "vdpa_callback", "parent": 229, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 21}}, {"id": 232, "type": "field_identifier", "text": "config_cb", "parent": 228, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 31}}, {"id": 233, "type": "field_declaration", "text": "unsigned int config_irq;", "parent": 152, "children": [234, 237], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 25}}, {"id": 234, "type": "sized_type_specifier", "text": "unsigned int", "parent": 233, "children": [235, 236], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 13}}, {"id": 235, "type": "unsigned", "text": "unsigned", "parent": 234, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 9}}, {"id": 236, "type": "primitive_type", "text": "int", "parent": 234, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 13}}, {"id": 237, "type": "field_identifier", "text": "config_irq", "parent": 233, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 24}}, {"id": 238, "type": "struct_specifier", "text": "struct ifcvf_adapter {\n\tstruct vdpa_device vdpa;\n\tstruct pci_dev *pdev;\n\tstruct ifcvf_hw vf;\n}", "parent": 0, "children": [239, 240], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 239, "type": "struct", "text": "struct", "parent": 238, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 240, "type": "type_identifier", "text": "ifcvf_adapter", "parent": 238, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 20}}, {"id": 241, "type": "field_declaration", "text": "struct vdpa_device vdpa;", "parent": 238, "children": [242, 245], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 25}}, {"id": 242, "type": "struct_specifier", "text": "struct vdpa_device", "parent": 241, "children": [243, 244], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 19}}, {"id": 243, "type": "struct", "text": "struct", "parent": 242, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 7}}, {"id": 244, "type": "type_identifier", "text": "vdpa_device", "parent": 242, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 19}}, {"id": 245, "type": "field_identifier", "text": "vdpa", "parent": 241, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 24}}, {"id": 246, "type": "field_declaration", "text": "struct pci_dev *pdev;", "parent": 238, "children": [247, 250], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 22}}, {"id": 247, "type": "struct_specifier", "text": "struct pci_dev", "parent": 246, "children": [248, 249], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 15}}, {"id": 248, "type": "struct", "text": "struct", "parent": 247, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 7}}, {"id": 249, "type": "type_identifier", "text": "pci_dev", "parent": 247, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 15}}, {"id": 250, "type": "pointer_declarator", "text": "*pdev", "parent": 246, "children": [251, 252], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 21}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 17}}, {"id": 252, "type": "field_identifier", "text": "pdev", "parent": 250, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 21}}, {"id": 253, "type": "field_declaration", "text": "struct ifcvf_hw vf;", "parent": 238, "children": [254, 257], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 20}}, {"id": 254, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 253, "children": [255, 256], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 16}}, {"id": 255, "type": "struct", "text": "struct", "parent": 254, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 7}}, {"id": 256, "type": "type_identifier", "text": "ifcvf_hw", "parent": 254, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 16}}, {"id": 257, "type": "field_identifier", "text": "vf", "parent": 253, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 19}}, {"id": 258, "type": "struct_specifier", "text": "struct ifcvf_vring_lm_cfg {\n\tu32 idx_addr[2];\n\tu8 reserved[IFCVF_LM_CFG_SIZE - 8];\n}", "parent": 0, "children": [259, 260], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 259, "type": "struct", "text": "struct", "parent": 258, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 260, "type": "type_identifier", "text": "ifcvf_vring_lm_cfg", "parent": 258, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 25}}, {"id": 261, "type": "field_declaration", "text": "u32 idx_addr[2];", "parent": 258, "children": [262, 263], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 17}}, {"id": 262, "type": "type_identifier", "text": "u32", "parent": 261, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 263, "type": "array_declarator", "text": "idx_addr[2]", "parent": 261, "children": [264, 265], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 16}}, {"id": 264, "type": "field_identifier", "text": "idx_addr", "parent": 263, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 13}}, {"id": 265, "type": "number_literal", "text": "2", "parent": 263, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 15}}, {"id": 266, "type": "field_declaration", "text": "u8 reserved[IFCVF_LM_CFG_SIZE - 8];", "parent": 258, "children": [267, 268], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 36}}, {"id": 267, "type": "type_identifier", "text": "u8", "parent": 266, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 3}}, {"id": 268, "type": "array_declarator", "text": "reserved[IFCVF_LM_CFG_SIZE - 8]", "parent": 266, "children": [269, 270], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 35}}, {"id": 269, "type": "field_identifier", "text": "reserved", "parent": 268, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 12}}, {"id": 270, "type": "binary_expression", "text": "IFCVF_LM_CFG_SIZE - 8", "parent": 268, "children": [271, 272, 273], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 34}}, {"id": 271, "type": "identifier", "text": "IFCVF_LM_CFG_SIZE", "parent": 270, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 30}}, {"id": 272, "type": "-", "text": "-", "parent": 270, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 273, "type": "number_literal", "text": "8", "parent": 270, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 34}}, {"id": 274, "type": "struct_specifier", "text": "struct ifcvf_lm_cfg {\n\tu8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n\tstruct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n}", "parent": 0, "children": [275, 276], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 103, "column": 1}}, {"id": 275, "type": "struct", "text": "struct", "parent": 274, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 6}}, {"id": 276, "type": "type_identifier", "text": "ifcvf_lm_cfg", "parent": 274, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 19}}, {"id": 277, "type": "field_declaration", "text": "u8 reserved[IFCVF_LM_RING_STATE_OFFSET];", "parent": 274, "children": [278, 279], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 41}}, {"id": 278, "type": "type_identifier", "text": "u8", "parent": 277, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 3}}, {"id": 279, "type": "array_declarator", "text": "reserved[IFCVF_LM_RING_STATE_OFFSET]", "parent": 277, "children": [280, 281], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 40}}, {"id": 280, "type": "field_identifier", "text": "reserved", "parent": 279, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 12}}, {"id": 281, "type": "identifier", "text": "IFCVF_LM_RING_STATE_OFFSET", "parent": 279, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 39}}, {"id": 282, "type": "field_declaration", "text": "struct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];", "parent": 274, "children": [283, 286], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 63}}, {"id": 283, "type": "struct_specifier", "text": "struct ifcvf_vring_lm_cfg", "parent": 282, "children": [284, 285], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 26}}, {"id": 284, "type": "struct", "text": "struct", "parent": 283, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 7}}, {"id": 285, "type": "type_identifier", "text": "ifcvf_vring_lm_cfg", "parent": 283, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 26}}, {"id": 286, "type": "array_declarator", "text": "vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS]", "parent": 282, "children": [287, 288], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 62}}, {"id": 287, "type": "field_identifier", "text": "vring_lm_cfg", "parent": 286, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 39}}, {"id": 288, "type": "identifier", "text": "IFCVF_MAX_QUEUE_PAIRS", "parent": 286, "children": [], "start_point": {"row": 102, "column": 40}, "end_point": {"row": 102, "column": 61}}, {"id": 289, "type": "declaration", "text": "int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);", "parent": 0, "children": [290, 291], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 60}}, {"id": 290, "type": "primitive_type", "text": "int", "parent": 289, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 3}}, {"id": 291, "type": "function_declarator", "text": "ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev)", "parent": 289, "children": [292, 293], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 59}}, {"id": 292, "type": "identifier", "text": "ifcvf_init_hw", "parent": 291, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 17}}, {"id": 293, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, struct pci_dev *dev)", "parent": 291, "children": [294, 301], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 59}}, {"id": 294, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 293, "children": [295, 298], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 37}}, {"id": 295, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 294, "children": [296, 297], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 33}}, {"id": 296, "type": "struct", "text": "struct", "parent": 295, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 24}}, {"id": 297, "type": "type_identifier", "text": "ifcvf_hw", "parent": 295, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 33}}, {"id": 298, "type": "pointer_declarator", "text": "*hw", "parent": 294, "children": [299, 300], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 37}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 35}}, {"id": 300, "type": "identifier", "text": "hw", "parent": 298, "children": [], "start_point": {"row": 105, "column": 35}, "end_point": {"row": 105, "column": 37}}, {"id": 301, "type": "parameter_declaration", "text": "struct pci_dev *dev", "parent": 293, "children": [302, 305], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 58}}, {"id": 302, "type": "struct_specifier", "text": "struct pci_dev", "parent": 301, "children": [303, 304], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 53}}, {"id": 303, "type": "struct", "text": "struct", "parent": 302, "children": [], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 45}}, {"id": 304, "type": "type_identifier", "text": "pci_dev", "parent": 302, "children": [], "start_point": {"row": 105, "column": 46}, "end_point": {"row": 105, "column": 53}}, {"id": 305, "type": "pointer_declarator", "text": "*dev", "parent": 301, "children": [306, 307], "start_point": {"row": 105, "column": 54}, "end_point": {"row": 105, "column": 58}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 105, "column": 54}, "end_point": {"row": 105, "column": 55}}, {"id": 307, "type": "identifier", "text": "dev", "parent": 305, "children": [], "start_point": {"row": 105, "column": 55}, "end_point": {"row": 105, "column": 58}}, {"id": 308, "type": "declaration", "text": "int ifcvf_start_hw(struct ifcvf_hw *hw);", "parent": 0, "children": [309, 310], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 40}}, {"id": 309, "type": "primitive_type", "text": "int", "parent": 308, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 3}}, {"id": 310, "type": "function_declarator", "text": "ifcvf_start_hw(struct ifcvf_hw *hw)", "parent": 308, "children": [311, 312], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 39}}, {"id": 311, "type": "identifier", "text": "ifcvf_start_hw", "parent": 310, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 18}}, {"id": 312, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 310, "children": [313], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 39}}, {"id": 313, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 312, "children": [314, 317], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 38}}, {"id": 314, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 313, "children": [315, 316], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 34}}, {"id": 315, "type": "struct", "text": "struct", "parent": 314, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 25}}, {"id": 316, "type": "type_identifier", "text": "ifcvf_hw", "parent": 314, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 34}}, {"id": 317, "type": "pointer_declarator", "text": "*hw", "parent": 313, "children": [318, 319], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 38}}, {"id": 318, "type": "*", "text": "*", "parent": 317, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 36}}, {"id": 319, "type": "identifier", "text": "hw", "parent": 317, "children": [], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 38}}, {"id": 320, "type": "declaration", "text": "void ifcvf_stop_hw(struct ifcvf_hw *hw);", "parent": 0, "children": [321, 322], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 40}}, {"id": 321, "type": "primitive_type", "text": "void", "parent": 320, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 4}}, {"id": 322, "type": "function_declarator", "text": "ifcvf_stop_hw(struct ifcvf_hw *hw)", "parent": 320, "children": [323, 324], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 39}}, {"id": 323, "type": "identifier", "text": "ifcvf_stop_hw", "parent": 322, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 18}}, {"id": 324, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 322, "children": [325], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 39}}, {"id": 325, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 324, "children": [326, 329], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 38}}, {"id": 326, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 325, "children": [327, 328], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 34}}, {"id": 327, "type": "struct", "text": "struct", "parent": 326, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 25}}, {"id": 328, "type": "type_identifier", "text": "ifcvf_hw", "parent": 326, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 34}}, {"id": 329, "type": "pointer_declarator", "text": "*hw", "parent": 325, "children": [330, 331], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 38}}, {"id": 330, "type": "*", "text": "*", "parent": 329, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 36}}, {"id": 331, "type": "identifier", "text": "hw", "parent": 329, "children": [], "start_point": {"row": 107, "column": 36}, "end_point": {"row": 107, "column": 38}}, {"id": 332, "type": "declaration", "text": "void ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);", "parent": 0, "children": [333, 334], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 54}}, {"id": 333, "type": "primitive_type", "text": "void", "parent": 332, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 4}}, {"id": 334, "type": "function_declarator", "text": "ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid)", "parent": 332, "children": [335, 336], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 53}}, {"id": 335, "type": "identifier", "text": "ifcvf_notify_queue", "parent": 334, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 23}}, {"id": 336, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u16 qid)", "parent": 334, "children": [337, 344], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 53}}, {"id": 337, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 336, "children": [338, 341], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 43}}, {"id": 338, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 337, "children": [339, 340], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 39}}, {"id": 339, "type": "struct", "text": "struct", "parent": 338, "children": [], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 30}}, {"id": 340, "type": "type_identifier", "text": "ifcvf_hw", "parent": 338, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 39}}, {"id": 341, "type": "pointer_declarator", "text": "*hw", "parent": 337, "children": [342, 343], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 43}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 41}}, {"id": 343, "type": "identifier", "text": "hw", "parent": 341, "children": [], "start_point": {"row": 108, "column": 41}, "end_point": {"row": 108, "column": 43}}, {"id": 344, "type": "parameter_declaration", "text": "u16 qid", "parent": 336, "children": [345, 346], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 52}}, {"id": 345, "type": "type_identifier", "text": "u16", "parent": 344, "children": [], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 48}}, {"id": 346, "type": "identifier", "text": "qid", "parent": 344, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 52}}, {"id": 347, "type": "declaration", "text": "void ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length);", "parent": 0, "children": [348, 349], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 29}}, {"id": 348, "type": "primitive_type", "text": "void", "parent": 347, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 349, "type": "function_declarator", "text": "ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length)", "parent": 347, "children": [350, 351], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 110, "column": 28}}, {"id": 350, "type": "identifier", "text": "ifcvf_read_net_config", "parent": 349, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 26}}, {"id": 351, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length)", "parent": 349, "children": [352, 359, 362, 367], "start_point": {"row": 109, "column": 26}, "end_point": {"row": 110, "column": 28}}, {"id": 352, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 351, "children": [353, 356], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 46}}, {"id": 353, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 352, "children": [354, 355], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 42}}, {"id": 354, "type": "struct", "text": "struct", "parent": 353, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 33}}, {"id": 355, "type": "type_identifier", "text": "ifcvf_hw", "parent": 353, "children": [], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 42}}, {"id": 356, "type": "pointer_declarator", "text": "*hw", "parent": 352, "children": [357, 358], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 46}}, {"id": 357, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 44}}, {"id": 358, "type": "identifier", "text": "hw", "parent": 356, "children": [], "start_point": {"row": 109, "column": 44}, "end_point": {"row": 109, "column": 46}}, {"id": 359, "type": "parameter_declaration", "text": "u64 offset", "parent": 351, "children": [360, 361], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 58}}, {"id": 360, "type": "type_identifier", "text": "u64", "parent": 359, "children": [], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 51}}, {"id": 361, "type": "identifier", "text": "offset", "parent": 359, "children": [], "start_point": {"row": 109, "column": 52}, "end_point": {"row": 109, "column": 58}}, {"id": 362, "type": "parameter_declaration", "text": "void *dst", "parent": 351, "children": [363, 364], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 15}}, {"id": 363, "type": "primitive_type", "text": "void", "parent": 362, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 10}}, {"id": 364, "type": "pointer_declarator", "text": "*dst", "parent": 362, "children": [365, 366], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 15}}, {"id": 365, "type": "*", "text": "*", "parent": 364, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 12}}, {"id": 366, "type": "identifier", "text": "dst", "parent": 364, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 15}}, {"id": 367, "type": "parameter_declaration", "text": "int length", "parent": 351, "children": [368, 369], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 27}}, {"id": 368, "type": "primitive_type", "text": "int", "parent": 367, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 20}}, {"id": 369, "type": "identifier", "text": "length", "parent": 367, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 27}}, {"id": 370, "type": "declaration", "text": "void ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length);", "parent": 0, "children": [371, 372], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 36}}, {"id": 371, "type": "primitive_type", "text": "void", "parent": 370, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 4}}, {"id": 372, "type": "function_declarator", "text": "ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length)", "parent": 370, "children": [373, 374], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 112, "column": 35}}, {"id": 373, "type": "identifier", "text": "ifcvf_write_net_config", "parent": 372, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 27}}, {"id": 374, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length)", "parent": 372, "children": [375, 382, 385, 390], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 112, "column": 35}}, {"id": 375, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 374, "children": [376, 379], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 47}}, {"id": 376, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 375, "children": [377, 378], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 43}}, {"id": 377, "type": "struct", "text": "struct", "parent": 376, "children": [], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 34}}, {"id": 378, "type": "type_identifier", "text": "ifcvf_hw", "parent": 376, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 43}}, {"id": 379, "type": "pointer_declarator", "text": "*hw", "parent": 375, "children": [380, 381], "start_point": {"row": 111, "column": 44}, "end_point": {"row": 111, "column": 47}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 111, "column": 44}, "end_point": {"row": 111, "column": 45}}, {"id": 381, "type": "identifier", "text": "hw", "parent": 379, "children": [], "start_point": {"row": 111, "column": 45}, "end_point": {"row": 111, "column": 47}}, {"id": 382, "type": "parameter_declaration", "text": "u64 offset", "parent": 374, "children": [383, 384], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 59}}, {"id": 383, "type": "type_identifier", "text": "u64", "parent": 382, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 52}}, {"id": 384, "type": "identifier", "text": "offset", "parent": 382, "children": [], "start_point": {"row": 111, "column": 53}, "end_point": {"row": 111, "column": 59}}, {"id": 385, "type": "parameter_declaration", "text": "const void *src", "parent": 374, "children": [386, 387], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 22}}, {"id": 386, "type": "primitive_type", "text": "void", "parent": 385, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 17}}, {"id": 387, "type": "pointer_declarator", "text": "*src", "parent": 385, "children": [388, 389], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 22}}, {"id": 388, "type": "*", "text": "*", "parent": 387, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 19}}, {"id": 389, "type": "identifier", "text": "src", "parent": 387, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 22}}, {"id": 390, "type": "parameter_declaration", "text": "int length", "parent": 374, "children": [391, 392], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 34}}, {"id": 391, "type": "primitive_type", "text": "int", "parent": 390, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 27}}, {"id": 392, "type": "identifier", "text": "length", "parent": 390, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 34}}, {"id": 393, "type": "declaration", "text": "u8 ifcvf_get_status(struct ifcvf_hw *hw);", "parent": 0, "children": [394, 395], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 41}}, {"id": 394, "type": "type_identifier", "text": "u8", "parent": 393, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 2}}, {"id": 395, "type": "function_declarator", "text": "ifcvf_get_status(struct ifcvf_hw *hw)", "parent": 393, "children": [396, 397], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 40}}, {"id": 396, "type": "identifier", "text": "ifcvf_get_status", "parent": 395, "children": [], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 19}}, {"id": 397, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 395, "children": [398], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 40}}, {"id": 398, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 397, "children": [399, 402], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 39}}, {"id": 399, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 398, "children": [400, 401], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 35}}, {"id": 400, "type": "struct", "text": "struct", "parent": 399, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 26}}, {"id": 401, "type": "type_identifier", "text": "ifcvf_hw", "parent": 399, "children": [], "start_point": {"row": 113, "column": 27}, "end_point": {"row": 113, "column": 35}}, {"id": 402, "type": "pointer_declarator", "text": "*hw", "parent": 398, "children": [403, 404], "start_point": {"row": 113, "column": 36}, "end_point": {"row": 113, "column": 39}}, {"id": 403, "type": "*", "text": "*", "parent": 402, "children": [], "start_point": {"row": 113, "column": 36}, "end_point": {"row": 113, "column": 37}}, {"id": 404, "type": "identifier", "text": "hw", "parent": 402, "children": [], "start_point": {"row": 113, "column": 37}, "end_point": {"row": 113, "column": 39}}, {"id": 405, "type": "declaration", "text": "void ifcvf_set_status(struct ifcvf_hw *hw, u8 status);", "parent": 0, "children": [406, 407], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 54}}, {"id": 406, "type": "primitive_type", "text": "void", "parent": 405, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 4}}, {"id": 407, "type": "function_declarator", "text": "ifcvf_set_status(struct ifcvf_hw *hw, u8 status)", "parent": 405, "children": [408, 409], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 53}}, {"id": 408, "type": "identifier", "text": "ifcvf_set_status", "parent": 407, "children": [], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 21}}, {"id": 409, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u8 status)", "parent": 407, "children": [410, 417], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 53}}, {"id": 410, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 409, "children": [411, 414], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 41}}, {"id": 411, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 410, "children": [412, 413], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 37}}, {"id": 412, "type": "struct", "text": "struct", "parent": 411, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 28}}, {"id": 413, "type": "type_identifier", "text": "ifcvf_hw", "parent": 411, "children": [], "start_point": {"row": 114, "column": 29}, "end_point": {"row": 114, "column": 37}}, {"id": 414, "type": "pointer_declarator", "text": "*hw", "parent": 410, "children": [415, 416], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 41}}, {"id": 415, "type": "*", "text": "*", "parent": 414, "children": [], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 39}}, {"id": 416, "type": "identifier", "text": "hw", "parent": 414, "children": [], "start_point": {"row": 114, "column": 39}, "end_point": {"row": 114, "column": 41}}, {"id": 417, "type": "parameter_declaration", "text": "u8 status", "parent": 409, "children": [418, 419], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 52}}, {"id": 418, "type": "type_identifier", "text": "u8", "parent": 417, "children": [], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 45}}, {"id": 419, "type": "identifier", "text": "status", "parent": 417, "children": [], "start_point": {"row": 114, "column": 46}, "end_point": {"row": 114, "column": 52}}, {"id": 420, "type": "declaration", "text": "void io_write64_twopart(u64 val, u32 *lo, u32 *hi);", "parent": 0, "children": [421, 422], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 51}}, {"id": 421, "type": "primitive_type", "text": "void", "parent": 420, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 4}}, {"id": 422, "type": "function_declarator", "text": "io_write64_twopart(u64 val, u32 *lo, u32 *hi)", "parent": 420, "children": [423, 424], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 50}}, {"id": 423, "type": "identifier", "text": "io_write64_twopart", "parent": 422, "children": [], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 23}}, {"id": 424, "type": "parameter_list", "text": "(u64 val, u32 *lo, u32 *hi)", "parent": 422, "children": [425, 428, 433], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 50}}, {"id": 425, "type": "parameter_declaration", "text": "u64 val", "parent": 424, "children": [426, 427], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 31}}, {"id": 426, "type": "type_identifier", "text": "u64", "parent": 425, "children": [], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 27}}, {"id": 427, "type": "identifier", "text": "val", "parent": 425, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 31}}, {"id": 428, "type": "parameter_declaration", "text": "u32 *lo", "parent": 424, "children": [429, 430], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 40}}, {"id": 429, "type": "type_identifier", "text": "u32", "parent": 428, "children": [], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 36}}, {"id": 430, "type": "pointer_declarator", "text": "*lo", "parent": 428, "children": [431, 432], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 40}}, {"id": 431, "type": "*", "text": "*", "parent": 430, "children": [], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 38}}, {"id": 432, "type": "identifier", "text": "lo", "parent": 430, "children": [], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 40}}, {"id": 433, "type": "parameter_declaration", "text": "u32 *hi", "parent": 424, "children": [434, 435], "start_point": {"row": 115, "column": 42}, "end_point": {"row": 115, "column": 49}}, {"id": 434, "type": "type_identifier", "text": "u32", "parent": 433, "children": [], "start_point": {"row": 115, "column": 42}, "end_point": {"row": 115, "column": 45}}, {"id": 435, "type": "pointer_declarator", "text": "*hi", "parent": 433, "children": [436, 437], "start_point": {"row": 115, "column": 46}, "end_point": {"row": 115, "column": 49}}, {"id": 436, "type": "*", "text": "*", "parent": 435, "children": [], "start_point": {"row": 115, "column": 46}, "end_point": {"row": 115, "column": 47}}, {"id": 437, "type": "identifier", "text": "hi", "parent": 435, "children": [], "start_point": {"row": 115, "column": 47}, "end_point": {"row": 115, "column": 49}}, {"id": 438, "type": "declaration", "text": "void ifcvf_reset(struct ifcvf_hw *hw);", "parent": 0, "children": [439, 440], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 38}}, {"id": 439, "type": "primitive_type", "text": "void", "parent": 438, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 4}}, {"id": 440, "type": "function_declarator", "text": "ifcvf_reset(struct ifcvf_hw *hw)", "parent": 438, "children": [441, 442], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 37}}, {"id": 441, "type": "identifier", "text": "ifcvf_reset", "parent": 440, "children": [], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 16}}, {"id": 442, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 440, "children": [443], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 37}}, {"id": 443, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 442, "children": [444, 447], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 36}}, {"id": 444, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 443, "children": [445, 446], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 32}}, {"id": 445, "type": "struct", "text": "struct", "parent": 444, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 23}}, {"id": 446, "type": "type_identifier", "text": "ifcvf_hw", "parent": 444, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 32}}, {"id": 447, "type": "pointer_declarator", "text": "*hw", "parent": 443, "children": [448, 449], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 36}}, {"id": 448, "type": "*", "text": "*", "parent": 447, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 34}}, {"id": 449, "type": "identifier", "text": "hw", "parent": 447, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 36}}, {"id": 450, "type": "declaration", "text": "u64 ifcvf_get_features(struct ifcvf_hw *hw);", "parent": 0, "children": [451, 452], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 44}}, {"id": 451, "type": "type_identifier", "text": "u64", "parent": 450, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 3}}, {"id": 452, "type": "function_declarator", "text": "ifcvf_get_features(struct ifcvf_hw *hw)", "parent": 450, "children": [453, 454], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 43}}, {"id": 453, "type": "identifier", "text": "ifcvf_get_features", "parent": 452, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 22}}, {"id": 454, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 452, "children": [455], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 43}}, {"id": 455, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 454, "children": [456, 459], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 42}}, {"id": 456, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 455, "children": [457, 458], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 38}}, {"id": 457, "type": "struct", "text": "struct", "parent": 456, "children": [], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 29}}, {"id": 458, "type": "type_identifier", "text": "ifcvf_hw", "parent": 456, "children": [], "start_point": {"row": 117, "column": 30}, "end_point": {"row": 117, "column": 38}}, {"id": 459, "type": "pointer_declarator", "text": "*hw", "parent": 455, "children": [460, 461], "start_point": {"row": 117, "column": 39}, "end_point": {"row": 117, "column": 42}}, {"id": 460, "type": "*", "text": "*", "parent": 459, "children": [], "start_point": {"row": 117, "column": 39}, "end_point": {"row": 117, "column": 40}}, {"id": 461, "type": "identifier", "text": "hw", "parent": 459, "children": [], "start_point": {"row": 117, "column": 40}, "end_point": {"row": 117, "column": 42}}, {"id": 462, "type": "declaration", "text": "u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);", "parent": 0, "children": [463, 464], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 53}}, {"id": 463, "type": "type_identifier", "text": "u16", "parent": 462, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 3}}, {"id": 464, "type": "function_declarator", "text": "ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid)", "parent": 462, "children": [465, 466], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 52}}, {"id": 465, "type": "identifier", "text": "ifcvf_get_vq_state", "parent": 464, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 22}}, {"id": 466, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u16 qid)", "parent": 464, "children": [467, 474], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 52}}, {"id": 467, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 466, "children": [468, 471], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 42}}, {"id": 468, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 467, "children": [469, 470], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 38}}, {"id": 469, "type": "struct", "text": "struct", "parent": 468, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 29}}, {"id": 470, "type": "type_identifier", "text": "ifcvf_hw", "parent": 468, "children": [], "start_point": {"row": 118, "column": 30}, "end_point": {"row": 118, "column": 38}}, {"id": 471, "type": "pointer_declarator", "text": "*hw", "parent": 467, "children": [472, 473], "start_point": {"row": 118, "column": 39}, "end_point": {"row": 118, "column": 42}}, {"id": 472, "type": "*", "text": "*", "parent": 471, "children": [], "start_point": {"row": 118, "column": 39}, "end_point": {"row": 118, "column": 40}}, {"id": 473, "type": "identifier", "text": "hw", "parent": 471, "children": [], "start_point": {"row": 118, "column": 40}, "end_point": {"row": 118, "column": 42}}, {"id": 474, "type": "parameter_declaration", "text": "u16 qid", "parent": 466, "children": [475, 476], "start_point": {"row": 118, "column": 44}, "end_point": {"row": 118, "column": 51}}, {"id": 475, "type": "type_identifier", "text": "u16", "parent": 474, "children": [], "start_point": {"row": 118, "column": 44}, "end_point": {"row": 118, "column": 47}}, {"id": 476, "type": "identifier", "text": "qid", "parent": 474, "children": [], "start_point": {"row": 118, "column": 48}, "end_point": {"row": 118, "column": 51}}, {"id": 477, "type": "declaration", "text": "int ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);", "parent": 0, "children": [478, 479], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 62}}, {"id": 478, "type": "primitive_type", "text": "int", "parent": 477, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 3}}, {"id": 479, "type": "function_declarator", "text": "ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num)", "parent": 477, "children": [480, 481], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 61}}, {"id": 480, "type": "identifier", "text": "ifcvf_set_vq_state", "parent": 479, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 22}}, {"id": 481, "type": "parameter_list", "text": "(struct ifcvf_hw *hw, u16 qid, u16 num)", "parent": 479, "children": [482, 489, 492], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 61}}, {"id": 482, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 481, "children": [483, 486], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 42}}, {"id": 483, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 482, "children": [484, 485], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 38}}, {"id": 484, "type": "struct", "text": "struct", "parent": 483, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 29}}, {"id": 485, "type": "type_identifier", "text": "ifcvf_hw", "parent": 483, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 38}}, {"id": 486, "type": "pointer_declarator", "text": "*hw", "parent": 482, "children": [487, 488], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 42}}, {"id": 487, "type": "*", "text": "*", "parent": 486, "children": [], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 40}}, {"id": 488, "type": "identifier", "text": "hw", "parent": 486, "children": [], "start_point": {"row": 119, "column": 40}, "end_point": {"row": 119, "column": 42}}, {"id": 489, "type": "parameter_declaration", "text": "u16 qid", "parent": 481, "children": [490, 491], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 51}}, {"id": 490, "type": "type_identifier", "text": "u16", "parent": 489, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 47}}, {"id": 491, "type": "identifier", "text": "qid", "parent": 489, "children": [], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 51}}, {"id": 492, "type": "parameter_declaration", "text": "u16 num", "parent": 481, "children": [493, 494], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 60}}, {"id": 493, "type": "type_identifier", "text": "u16", "parent": 492, "children": [], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 56}}, {"id": 494, "type": "identifier", "text": "num", "parent": 492, "children": [], "start_point": {"row": 119, "column": 57}, "end_point": {"row": 119, "column": 60}}, {"id": 495, "type": "declaration", "text": "struct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);", "parent": 0, "children": [496, 499], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 57}}, {"id": 496, "type": "struct_specifier", "text": "struct ifcvf_adapter", "parent": 495, "children": [497, 498], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 20}}, {"id": 497, "type": "struct", "text": "struct", "parent": 496, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 498, "type": "type_identifier", "text": "ifcvf_adapter", "parent": 496, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 20}}, {"id": 499, "type": "pointer_declarator", "text": "*vf_to_adapter(struct ifcvf_hw *hw)", "parent": 495, "children": [500, 501], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 56}}, {"id": 500, "type": "*", "text": "*", "parent": 499, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 22}}, {"id": 501, "type": "function_declarator", "text": "vf_to_adapter(struct ifcvf_hw *hw)", "parent": 499, "children": [502, 503], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 56}}, {"id": 502, "type": "identifier", "text": "vf_to_adapter", "parent": 501, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 35}}, {"id": 503, "type": "parameter_list", "text": "(struct ifcvf_hw *hw)", "parent": 501, "children": [504], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 56}}, {"id": 504, "type": "parameter_declaration", "text": "struct ifcvf_hw *hw", "parent": 503, "children": [505, 508], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 55}}, {"id": 505, "type": "struct_specifier", "text": "struct ifcvf_hw", "parent": 504, "children": [506, 507], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 51}}, {"id": 506, "type": "struct", "text": "struct", "parent": 505, "children": [], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 42}}, {"id": 507, "type": "type_identifier", "text": "ifcvf_hw", "parent": 505, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 51}}, {"id": 508, "type": "pointer_declarator", "text": "*hw", "parent": 504, "children": [509, 510], "start_point": {"row": 120, "column": 52}, "end_point": {"row": 120, "column": 55}}, {"id": 509, "type": "*", "text": "*", "parent": 508, "children": [], "start_point": {"row": 120, "column": 52}, "end_point": {"row": 120, "column": 53}}, {"id": 510, "type": "identifier", "text": "hw", "parent": 508, "children": [], "start_point": {"row": 120, "column": 53}, "end_point": {"row": 120, "column": 55}}, {"id": 511, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}]}, "node_categories": {"declarations": {"functions": [80, 87, 94, 101, 291, 310, 322, 334, 349, 372, 395, 407, 422, 440, 452, 464, 479, 501], "variables": [114, 117, 120, 123, 126, 129, 132, 139, 142, 147, 155, 162, 169, 172, 175, 182, 185, 188, 197, 204, 214, 223, 228, 233, 241, 246, 253, 261, 266, 277, 282, 289, 294, 301, 308, 313, 320, 325, 332, 337, 344, 347, 352, 359, 362, 367, 370, 375, 382, 385, 390, 393, 398, 405, 410, 417, 420, 425, 428, 433, 438, 443, 450, 455, 462, 467, 474, 477, 482, 489, 492, 495, 504], "classes": [111, 112, 143, 144, 152, 153, 189, 190, 205, 206, 229, 230, 238, 239, 242, 243, 247, 248, 254, 255, 258, 259, 274, 275, 283, 284, 295, 296, 302, 303, 314, 315, 326, 327, 338, 339, 353, 354, 376, 377, 399, 400, 411, 412, 444, 445, 456, 457, 468, 469, 483, 484, 496, 497, 505, 506], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [210, 270], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 84, 85, 89, 91, 92, 96, 98, 99, 103, 105, 109, 113, 115, 116, 118, 119, 121, 122, 124, 125, 127, 128, 131, 135, 138, 140, 141, 145, 146, 150, 154, 156, 158, 161, 163, 165, 168, 170, 171, 173, 174, 178, 181, 183, 184, 186, 187, 191, 193, 196, 200, 203, 207, 209, 211, 217, 222, 226, 231, 232, 234, 237, 240, 244, 245, 249, 252, 256, 257, 260, 262, 264, 267, 269, 271, 276, 278, 280, 281, 285, 287, 288, 292, 297, 300, 304, 307, 311, 316, 319, 323, 328, 331, 335, 340, 343, 345, 346, 350, 355, 358, 360, 361, 366, 369, 373, 378, 381, 383, 384, 389, 392, 394, 396, 401, 404, 408, 413, 416, 418, 419, 423, 426, 427, 429, 432, 434, 437, 441, 446, 449, 451, 453, 458, 461, 463, 465, 470, 473, 475, 476, 480, 485, 488, 490, 491, 493, 494, 498, 502, 507, 510, 511], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 151, 213, 227, 265, 273], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "#define IFCVF_ERR(pdev, fmt, ...)\tdev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "#define IFCVF_DBG(pdev, fmt, ...)\tdev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "#define IFCVF_INFO(pdev, fmt, ...)\tdev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "#define ifcvf_private_to_vf(adapter) \\\n\t(&((struct ifcvf_adapter *)adapter)->vf)\n"}, {"node_id": 291, "universal_type": "function", "name": "pci_dev", "text_snippet": "ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev)"}, {"node_id": 310, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_start_hw(struct ifcvf_hw *hw)"}, {"node_id": 322, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_stop_hw(struct ifcvf_hw *hw)"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid)"}, {"node_id": 349, "universal_type": "function", "name": "*dst,", "text_snippet": "ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length)"}, {"node_id": 372, "universal_type": "function", "name": "*src,", "text_snippet": "ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length)"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_get_status(struct ifcvf_hw *hw)"}, {"node_id": 407, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_set_status(struct ifcvf_hw *hw, u8 status)"}, {"node_id": 422, "universal_type": "function", "name": "unknown", "text_snippet": "io_write64_twopart(u64 val, u32 *lo, u32 *hi)"}, {"node_id": 440, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_reset(struct ifcvf_hw *hw)"}, {"node_id": 452, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_get_features(struct ifcvf_hw *hw)"}, {"node_id": 464, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid)"}, {"node_id": 479, "universal_type": "function", "name": "unknown", "text_snippet": "ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num)"}, {"node_id": 501, "universal_type": "function", "name": "unknown", "text_snippet": "vf_to_adapter(struct ifcvf_hw *hw)"}], "class_declarations": [{"node_id": 111, "universal_type": "class", "name": "vring_info", "text_snippet": "struct vring_info {\n\tu64 desc;\n\tu64 avail;\n\tu64 used;\n\tu16 size;\n\tu16 last_avail_idx;\n\tbool ready;\n\t"}, {"node_id": 112, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 143, "universal_type": "class", "name": "vdpa_callback", "text_snippet": "struct vdpa_callback"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 152, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw {\n\tu8 __iomem *isr;\n\t/* Live migration */\n\tu8 __iomem *lm_cfg;\n\tu16 nr_vring;\n\t/* No"}, {"node_id": 153, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 189, "universal_type": "class", "name": "virtio_pci_common_cfg", "text_snippet": "struct virtio_pci_common_cfg"}, {"node_id": 190, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 205, "universal_type": "class", "name": "vring_info", "text_snippet": "struct vring_info"}, {"node_id": 206, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 229, "universal_type": "class", "name": "vdpa_callback", "text_snippet": "struct vdpa_callback"}, {"node_id": 230, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 238, "universal_type": "class", "name": "ifcvf_adapter", "text_snippet": "struct ifcvf_adapter {\n\tstruct vdpa_device vdpa;\n\tstruct pci_dev *pdev;\n\tstruct ifcvf_hw vf;\n}"}, {"node_id": 239, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 242, "universal_type": "class", "name": "vdpa_device", "text_snippet": "struct vdpa_device"}, {"node_id": 243, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 247, "universal_type": "class", "name": "pci_dev", "text_snippet": "struct pci_dev"}, {"node_id": 248, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 254, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 255, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 258, "universal_type": "class", "name": "ifcvf_vring_lm_cfg", "text_snippet": "struct ifcvf_vring_lm_cfg {\n\tu32 idx_addr[2];\n\tu8 reserved[IFCVF_LM_CFG_SIZE - 8];\n}"}, {"node_id": 259, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 274, "universal_type": "class", "name": "ifcvf_lm_cfg", "text_snippet": "struct ifcvf_lm_cfg {\n\tu8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n\tstruct ifcvf_vring_lm_cfg vring_lm_"}, {"node_id": 275, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 283, "universal_type": "class", "name": "ifcvf_vring_lm_cfg", "text_snippet": "struct ifcvf_vring_lm_cfg"}, {"node_id": 284, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 295, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 296, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 302, "universal_type": "class", "name": "pci_dev", "text_snippet": "struct pci_dev"}, {"node_id": 303, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 314, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 315, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 326, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 327, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 338, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 339, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 353, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 354, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 376, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 377, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 399, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 400, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 411, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 412, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 444, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 445, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 456, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 457, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 468, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 469, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 483, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 484, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 496, "universal_type": "class", "name": "ifcvf_adapter", "text_snippet": "struct ifcvf_adapter"}, {"node_id": 497, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 505, "universal_type": "class", "name": "ifcvf_hw", "text_snippet": "struct ifcvf_hw"}, {"node_id": 506, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <linux/pci.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/pci_regs.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/vdpa.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <uapi/linux/virtio_net.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <uapi/linux/virtio_config.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <uapi/linux/virtio_pci.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * Intel IFC VF NIC driver for virtio dataplane offloading\n *\n * Copyright (C) 2020 Intel Corporation.\n *\n * Author: <NAME> <<EMAIL>>\n *\n */\n\n#ifndef _IFCVF_H_\n#define _IFCVF_H_\n\n#include <linux/pci.h>\n#include <linux/pci_regs.h>\n#include <linux/vdpa.h>\n#include <uapi/linux/virtio_net.h>\n#include <uapi/linux/virtio_config.h>\n#include <uapi/linux/virtio_pci.h>\n\n#define IFCVF_VENDOR_ID\t\t0x1AF4\n#define IFCVF_DEVICE_ID\t\t0x1041\n#define IFCVF_SUBSYS_VENDOR_ID\t0x8086\n#define IFCVF_SUBSYS_DEVICE_ID\t0x001A\n\n#define IFCVF_SUPPORTED_FEATURES \\\n\t\t((1ULL << VIRTIO_NET_F_MAC)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ANY_LAYOUT)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_VERSION_1)\t\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_STATUS)\t\t\t| \\\n\t\t (1ULL << VIRTIO_F_ORDER_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_F_ACCESS_PLATFORM)\t\t| \\\n\t\t (1ULL << VIRTIO_NET_F_MRG_RXBUF))\n\n/* Only one queue pair for now. */\n#define IFCVF_MAX_QUEUE_PAIRS\t1\n\n#define IFCVF_QUEUE_ALIGNMENT\tPAGE_SIZE\n#define IFCVF_QUEUE_MAX\t\t32768\n#define IFCVF_MSI_CONFIG_OFF\t0\n#define IFCVF_MSI_QUEUE_OFF\t1\n#define IFCVF_PCI_MAX_RESOURCE\t6\n\n#define IFCVF_LM_CFG_SIZE\t\t0x40\n#define IFCVF_LM_RING_STATE_OFFSET\t0x20\n#define IFCVF_LM_BAR\t\t\t4\n\n#define IFCVF_ERR(pdev, fmt, ...)\tdev_err(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_DBG(pdev, fmt, ...)\tdev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)\n#define IFCVF_INFO(pdev, fmt, ...)\tdev_info(&pdev->dev, fmt, ##__VA_ARGS__)\n\n#define ifcvf_private_to_vf(adapter) \\\n\t(&((struct ifcvf_adapter *)adapter)->vf)\n\n#define IFCVF_MAX_INTR (IFCVF_MAX_QUEUE_PAIRS * 2 + 1)\n\nstruct vring_info {\n\tu64 desc;\n\tu64 avail;\n\tu64 used;\n\tu16 size;\n\tu16 last_avail_idx;\n\tbool ready;\n\tvoid __iomem *notify_addr;\n\tu32 irq;\n\tstruct vdpa_callback cb;\n\tchar msix_name[256];\n};\n\nstruct ifcvf_hw {\n\tu8 __iomem *isr;\n\t/* Live migration */\n\tu8 __iomem *lm_cfg;\n\tu16 nr_vring;\n\t/* Notification bar number */\n\tu8 notify_bar;\n\t/* Notificaiton bar address */\n\tvoid __iomem *notify_base;\n\tu32 notify_off_multiplier;\n\tu64 req_features;\n\tstruct virtio_pci_common_cfg __iomem *common_cfg;\n\tvoid __iomem *net_cfg;\n\tstruct vring_info vring[IFCVF_MAX_QUEUE_PAIRS * 2];\n\tvoid __iomem * const *base;\n\tchar config_msix_name[256];\n\tstruct vdpa_callback config_cb;\n\tunsigned int config_irq;\n};\n\nstruct ifcvf_adapter {\n\tstruct vdpa_device vdpa;\n\tstruct pci_dev *pdev;\n\tstruct ifcvf_hw vf;\n};\n\nstruct ifcvf_vring_lm_cfg {\n\tu32 idx_addr[2];\n\tu8 reserved[IFCVF_LM_CFG_SIZE - 8];\n};\n\nstruct ifcvf_lm_cfg {\n\tu8 reserved[IFCVF_LM_RING_STATE_OFFSET];\n\tstruct ifcvf_vring_lm_cfg vring_lm_cfg[IFCVF_MAX_QUEUE_PAIRS];\n};\n\nint ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev);\nint ifcvf_start_hw(struct ifcvf_hw *hw);\nvoid ifcvf_stop_hw(struct ifcvf_hw *hw);\nvoid ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);\nvoid ifcvf_read_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t void *dst, int length);\nvoid ifcvf_write_net_config(struct ifcvf_hw *hw, u64 offset,\n\t\t\t const void *src, int length);\nu8 ifcvf_get_status(struct ifcvf_hw *hw);\nvoid ifcvf_set_status(struct ifcvf_hw *hw, u8 status);\nvoid io_write64_twopart(u64 val, u32 *lo, u32 *hi);\nvoid ifcvf_reset(struct ifcvf_hw *hw);\nu64 ifcvf_get_features(struct ifcvf_hw *hw);\nu16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);\nint ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);\nstruct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);\n#endif /* _IFCVF_H_ */\n"}
150
c
// // Created by kira on 30.04.2020. // #ifndef LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_ #define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_ namespace geometry { struct Point { float x; float y; }; } // namespace geometry #endif //LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_
20.46
13
(translation_unit) "//\n// Created by kira on 30.04.2020.\n//\n\n#ifndef LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n\nnamespace geometry {\nstruct Point {\n float x;\n float y;\n};\n} // namespace geometry\n\n\n#endif //LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n" (comment) "//" (comment) "// Created by kira on 30.04.2020." (comment) "//" (preproc_ifdef) "#ifndef LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n\nnamespace geometry {\nstruct Point {\n float x;\n float y;\n};\n} // namespace geometry\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_" (preproc_def) "#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n" (#define) "#define" (identifier) "LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_" (function_definition) "namespace geometry {\nstruct Point {\n float x;\n float y;\n};\n}" (type_identifier) "namespace" (identifier) "geometry" (compound_statement) "{\nstruct Point {\n float x;\n float y;\n};\n}" ({) "{" (struct_specifier) "struct Point {\n float x;\n float y;\n}" (struct) "struct" (type_identifier) "Point" (field_declaration_list) "{\n float x;\n float y;\n}" ({) "{" (field_declaration) "float x;" (primitive_type) "float" (field_identifier) "x" (;) ";" (field_declaration) "float y;" (primitive_type) "float" (field_identifier) "y" (;) ";" (}) "}" (;) ";" (}) "}" (comment) "// namespace geometry" (#endif) "#endif" (comment) "//LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_"
34
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.46, "nodes": 19, "errors": 0, "source_hash": "0fafdf5d22b41ccf9fae006101c014649537387bca810a7ec8066d729439da9b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n\nnamespace geometry {\nstruct Point {\n float x;\n float y;\n};\n} // namespace geometry\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 18], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 15, "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": "LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 48}}, {"id": 3, "type": "preproc_def", "text": "#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_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": "LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 48}}, {"id": 6, "type": "function_definition", "text": "namespace geometry {\nstruct Point {\n float x;\n float y;\n};\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 12, "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": "geometry", "parent": 6, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 18}}, {"id": 9, "type": "struct_specifier", "text": "struct Point {\n float x;\n float y;\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "Point", "parent": 9, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 12}}, {"id": 12, "type": "field_declaration", "text": "float x;", "parent": 9, "children": [13, 14], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 12}}, {"id": 13, "type": "primitive_type", "text": "float", "parent": 12, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 9}}, {"id": 14, "type": "field_identifier", "text": "x", "parent": 12, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 11}}, {"id": 15, "type": "field_declaration", "text": "float y;", "parent": 9, "children": [16, 17], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 16, "type": "primitive_type", "text": "float", "parent": 15, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 9}}, {"id": 17, "type": "field_identifier", "text": "y", "parent": 15, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 18, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [12, 15], "classes": [9, 10], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 8, 11, 14, 17, 18], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "Point", "text_snippet": "namespace geometry {\nstruct Point {\n float x;\n float y;\n};\n}"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "Point", "text_snippet": "struct Point {\n float x;\n float y;\n}"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "//\n// Created by kira on 30.04.2020.\n//\n\n#ifndef LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n#define LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n\nnamespace geometry {\nstruct Point {\n float x;\n float y;\n};\n} // namespace geometry\n\n\n#endif //LED_PLAYER_LIB_GEOMETRY_INCLUDE_POINT_H_\n"}
151
c
#include <stdio.h> #include <stdlib.h> // defining structure of a node struct node{ int data; struct node *next; }; //function to print element of linked list void display(struct node *head) { struct node *ptr; ptr=(struct node *)malloc(sizeof(struct node)); ptr = head; if(ptr == NULL) printf("\n SLL is empty!"); else { while (ptr != NULL) { printf(" %d ", ptr->data); if (ptr->next != NULL) { printf("->"); } ptr = ptr->next; } } } //function to insert element at the end of linked list struct node *insert_End(struct node *head, int ele) { struct node *new_node, *ptr; new_node=(struct node *)malloc(sizeof(struct node)); new_node->data= ele; new_node->next= NULL; ptr=head; if(ptr == NULL) { ptr=new_node; head=ptr; } else { while (ptr->next != NULL) { ptr = ptr->next; } ptr->next = new_node; } return head; } // function to delete element from the end of SLL struct node *delete_End(struct node *head) { struct node *ptr, *temp; ptr=head; temp=head; if(head == NULL){ printf("SLL is empty!"); return head; } else if(head->next == NULL) { head = NULL; return head; } else{ while(ptr->next != NULL){ temp = ptr; ptr = ptr->next; } temp->next = NULL; free(ptr); return head; } } // main function int main() { struct node *head; head = NULL; int choice, ele; do { printf("\n\n ****----- MENU -----****"); printf("\n 1. INSERT (at End)"); printf("\n 2. DELETE (from End)"); printf("\n 3. DISPLAY"); printf("\n 4. EXIT\n"); printf("\n\n Enter your choice : "); scanf("%d", &choice); switch(choice) { case 1: printf("\n Enter the number to Insert at the end of SLL :"); scanf("%d", &ele); head = insert_End(head, ele); printf("\n Insertion done !"); break; case 2: head = delete_End(head); printf("\n Deletion done !"); break; case 3: printf("\n Elements of SLL are : \n"); display(head); break; case 4: exit(0); } } while( choice != 4); return 0; }
22.77
107
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n// defining structure of a node\nstruct node{\n int data;\n struct node *next;\n};\n\n\n\n//function to print element of linked list\nvoid display(struct node *head)\n{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct node));\n ptr = head;\n if(ptr == NULL)\n printf("\n SLL is empty!");\n\n else {\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }\n\n}\n\n\n\n//function to insert element at the end of linked list\nstruct node *insert_End(struct node *head, int ele)\n{\n struct node *new_node, *ptr;\n\n new_node=(struct node *)malloc(sizeof(struct node));\n\n new_node->data= ele;\n new_node->next= NULL;\n\n ptr=head;\n\n if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }\n\n return head;\n\n}\n\n\n\n// function to delete element from the end of SLL\nstruct node *delete_End(struct node *head) {\n struct node *ptr, *temp;\n ptr=head;\n temp=head;\n\n if(head == NULL){\n printf("SLL is empty!");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }\n\n}\n\n\n\n// main function\nint main() {\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf("\n\n ****----- MENU -----****");\n printf("\n 1. INSERT (at End)");\n printf("\n 2. DELETE (from End)");\n printf("\n 3. DISPLAY");\n printf("\n 4. EXIT\n");\n printf("\n\n Enter your choice : ");\n scanf("%d", &choice);\n\n switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);\n\n return 0;\n\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (comment) "// defining structure of a node" (struct_specifier) "struct node{\n int data;\n struct node *next;\n}" (struct) "struct" (type_identifier) "node" (field_declaration_list) "{\n int data;\n struct node *next;\n}" ({) "{" (field_declaration) "int data;" (primitive_type) "int" (field_identifier) "data" (;) ";" (field_declaration) "struct node *next;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (comment) "//function to print element of linked list" (function_definition) "void display(struct node *head)\n{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct node));\n ptr = head;\n if(ptr == NULL)\n printf("\n SLL is empty!");\n\n else {\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }\n\n}" (primitive_type) "void" (function_declarator) "display(struct node *head)" (identifier) "display" (parameter_list) "(struct node *head)" (() "(" (parameter_declaration) "struct node *head" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*head" (*) "*" (identifier) "head" ()) ")" (compound_statement) "{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct node));\n ptr = head;\n if(ptr == NULL)\n printf("\n SLL is empty!");\n\n else {\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }\n\n}" ({) "{" (declaration) "struct node *ptr;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (;) ";" (expression_statement) "ptr=(struct node *)malloc(sizeof(struct node));" (assignment_expression) "ptr=(struct node *)malloc(sizeof(struct node))" (identifier) "ptr" (=) "=" (cast_expression) "(struct node *)malloc(sizeof(struct node))" (() "(" (type_descriptor) "struct node *" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(struct node))" (identifier) "malloc" (argument_list) "(sizeof(struct node))" (() "(" (sizeof_expression) "sizeof(struct node)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct node" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" ()) ")" ()) ")" (;) ";" (expression_statement) "ptr = head;" (assignment_expression) "ptr = head" (identifier) "ptr" (=) "=" (identifier) "head" (;) ";" (if_statement) "if(ptr == NULL)\n printf("\n SLL is empty!");\n\n else {\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }" (if) "if" (parenthesized_expression) "(ptr == NULL)" (() "(" (binary_expression) "ptr == NULL" (identifier) "ptr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "printf("\n SLL is empty!");" (call_expression) "printf("\n SLL is empty!")" (identifier) "printf" (argument_list) "("\n SLL is empty!")" (() "(" (string_literal) ""\n SLL is empty!"" (") """ (escape_sequence) "\n" (string_content) " SLL is empty!" (") """ ()) ")" (;) ";" (else_clause) "else {\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }" (else) "else" (compound_statement) "{\n while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }\n }" ({) "{" (while_statement) "while (ptr != NULL) {\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }" (while) "while" (parenthesized_expression) "(ptr != NULL)" (() "(" (binary_expression) "ptr != NULL" (identifier) "ptr" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf(" %d ", ptr->data);\n if (ptr->next != NULL) {\n printf("->");\n }\n ptr = ptr->next;\n }" ({) "{" (expression_statement) "printf(" %d ", ptr->data);" (call_expression) "printf(" %d ", ptr->data)" (identifier) "printf" (argument_list) "(" %d ", ptr->data)" (() "(" (string_literal) "" %d "" (") """ (string_content) " %d " (") """ (,) "," (field_expression) "ptr->data" (identifier) "ptr" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (if_statement) "if (ptr->next != NULL) {\n printf("->");\n }" (if) "if" (parenthesized_expression) "(ptr->next != NULL)" (() "(" (binary_expression) "ptr->next != NULL" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("->");\n }" ({) "{" (expression_statement) "printf("->");" (call_expression) "printf("->")" (identifier) "printf" (argument_list) "("->")" (() "(" (string_literal) ""->"" (") """ (string_content) "->" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "ptr = ptr->next;" (assignment_expression) "ptr = ptr->next" (identifier) "ptr" (=) "=" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "//function to insert element at the end of linked list" (function_definition) "struct node *insert_End(struct node *head, int ele)\n{\n struct node *new_node, *ptr;\n\n new_node=(struct node *)malloc(sizeof(struct node));\n\n new_node->data= ele;\n new_node->next= NULL;\n\n ptr=head;\n\n if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }\n\n return head;\n\n}" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*insert_End(struct node *head, int ele)" (*) "*" (function_declarator) "insert_End(struct node *head, int ele)" (identifier) "insert_End" (parameter_list) "(struct node *head, int ele)" (() "(" (parameter_declaration) "struct node *head" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*head" (*) "*" (identifier) "head" (,) "," (parameter_declaration) "int ele" (primitive_type) "int" (identifier) "ele" ()) ")" (compound_statement) "{\n struct node *new_node, *ptr;\n\n new_node=(struct node *)malloc(sizeof(struct node));\n\n new_node->data= ele;\n new_node->next= NULL;\n\n ptr=head;\n\n if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }\n\n return head;\n\n}" ({) "{" (declaration) "struct node *new_node, *ptr;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*new_node" (*) "*" (identifier) "new_node" (,) "," (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (;) ";" (expression_statement) "new_node=(struct node *)malloc(sizeof(struct node));" (assignment_expression) "new_node=(struct node *)malloc(sizeof(struct node))" (identifier) "new_node" (=) "=" (cast_expression) "(struct node *)malloc(sizeof(struct node))" (() "(" (type_descriptor) "struct node *" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(struct node))" (identifier) "malloc" (argument_list) "(sizeof(struct node))" (() "(" (sizeof_expression) "sizeof(struct node)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct node" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" ()) ")" ()) ")" (;) ";" (expression_statement) "new_node->data= ele;" (assignment_expression) "new_node->data= ele" (field_expression) "new_node->data" (identifier) "new_node" (->) "->" (field_identifier) "data" (=) "=" (identifier) "ele" (;) ";" (expression_statement) "new_node->next= NULL;" (assignment_expression) "new_node->next= NULL" (field_expression) "new_node->next" (identifier) "new_node" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "ptr=head;" (assignment_expression) "ptr=head" (identifier) "ptr" (=) "=" (identifier) "head" (;) ";" (if_statement) "if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }" (if) "if" (parenthesized_expression) "(ptr == NULL)" (() "(" (binary_expression) "ptr == NULL" (identifier) "ptr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n ptr=new_node;\n head=ptr;\n }" ({) "{" (expression_statement) "ptr=new_node;" (assignment_expression) "ptr=new_node" (identifier) "ptr" (=) "=" (identifier) "new_node" (;) ";" (expression_statement) "head=ptr;" (assignment_expression) "head=ptr" (identifier) "head" (=) "=" (identifier) "ptr" (;) ";" (}) "}" (else_clause) "else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }" (else) "else" (compound_statement) "{\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }" ({) "{" (while_statement) "while (ptr->next != NULL) {\n ptr = ptr->next;\n }" (while) "while" (parenthesized_expression) "(ptr->next != NULL)" (() "(" (binary_expression) "ptr->next != NULL" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n ptr = ptr->next;\n }" ({) "{" (expression_statement) "ptr = ptr->next;" (assignment_expression) "ptr = ptr->next" (identifier) "ptr" (=) "=" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "ptr->next = new_node;" (assignment_expression) "ptr->next = new_node" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (=) "=" (identifier) "new_node" (;) ";" (}) "}" (return_statement) "return head;" (return) "return" (identifier) "head" (;) ";" (}) "}" (comment) "// function to delete element from the end of SLL" (function_definition) "struct node *delete_End(struct node *head) {\n struct node *ptr, *temp;\n ptr=head;\n temp=head;\n\n if(head == NULL){\n printf("SLL is empty!");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }\n\n}" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*delete_End(struct node *head)" (*) "*" (function_declarator) "delete_End(struct node *head)" (identifier) "delete_End" (parameter_list) "(struct node *head)" (() "(" (parameter_declaration) "struct node *head" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*head" (*) "*" (identifier) "head" ()) ")" (compound_statement) "{\n struct node *ptr, *temp;\n ptr=head;\n temp=head;\n\n if(head == NULL){\n printf("SLL is empty!");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }\n\n}" ({) "{" (declaration) "struct node *ptr, *temp;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (,) "," (pointer_declarator) "*temp" (*) "*" (identifier) "temp" (;) ";" (expression_statement) "ptr=head;" (assignment_expression) "ptr=head" (identifier) "ptr" (=) "=" (identifier) "head" (;) ";" (expression_statement) "temp=head;" (assignment_expression) "temp=head" (identifier) "temp" (=) "=" (identifier) "head" (;) ";" (if_statement) "if(head == NULL){\n printf("SLL is empty!");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }" (if) "if" (parenthesized_expression) "(head == NULL)" (() "(" (binary_expression) "head == NULL" (identifier) "head" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("SLL is empty!");\n return head;\n }" ({) "{" (expression_statement) "printf("SLL is empty!");" (call_expression) "printf("SLL is empty!")" (identifier) "printf" (argument_list) "("SLL is empty!")" (() "(" (string_literal) ""SLL is empty!"" (") """ (string_content) "SLL is empty!" (") """ ()) ")" (;) ";" (return_statement) "return head;" (return) "return" (identifier) "head" (;) ";" (}) "}" (else_clause) "else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }" (else) "else" (if_statement) "if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }" (if) "if" (parenthesized_expression) "(head->next == NULL)" (() "(" (binary_expression) "head->next == NULL" (field_expression) "head->next" (identifier) "head" (->) "->" (field_identifier) "next" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n head = NULL;\n return head;\n }" ({) "{" (expression_statement) "head = NULL;" (assignment_expression) "head = NULL" (identifier) "head" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return head;" (return) "return" (identifier) "head" (;) ";" (}) "}" (else_clause) "else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }" (else) "else" (compound_statement) "{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }" ({) "{" (while_statement) "while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }" (while) "while" (parenthesized_expression) "(ptr->next != NULL)" (() "(" (binary_expression) "ptr->next != NULL" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n temp = ptr;\n ptr = ptr->next;\n }" ({) "{" (expression_statement) "temp = ptr;" (assignment_expression) "temp = ptr" (identifier) "temp" (=) "=" (identifier) "ptr" (;) ";" (expression_statement) "ptr = ptr->next;" (assignment_expression) "ptr = ptr->next" (identifier) "ptr" (=) "=" (field_expression) "ptr->next" (identifier) "ptr" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "temp->next = NULL;" (assignment_expression) "temp->next = NULL" (field_expression) "temp->next" (identifier) "temp" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "free(ptr);" (call_expression) "free(ptr)" (identifier) "free" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (return_statement) "return head;" (return) "return" (identifier) "head" (;) ";" (}) "}" (}) "}" (comment) "// main function" (function_definition) "int main() {\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf("\n\n ****----- MENU -----****");\n printf("\n 1. INSERT (at End)");\n printf("\n 2. DELETE (from End)");\n printf("\n 3. DISPLAY");\n printf("\n 4. EXIT\n");\n printf("\n\n Enter your choice : ");\n scanf("%d", &choice);\n\n switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);\n\n return 0;\n\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf("\n\n ****----- MENU -----****");\n printf("\n 1. INSERT (at End)");\n printf("\n 2. DELETE (from End)");\n printf("\n 3. DISPLAY");\n printf("\n 4. EXIT\n");\n printf("\n\n Enter your choice : ");\n scanf("%d", &choice);\n\n switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);\n\n return 0;\n\n}" ({) "{" (declaration) "struct node *head;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "*head" (*) "*" (identifier) "head" (;) ";" (expression_statement) "head = NULL;" (assignment_expression) "head = NULL" (identifier) "head" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int choice, ele;" (primitive_type) "int" (identifier) "choice" (,) "," (identifier) "ele" (;) ";" (do_statement) "do {\n printf("\n\n ****----- MENU -----****");\n printf("\n 1. INSERT (at End)");\n printf("\n 2. DELETE (from End)");\n printf("\n 3. DISPLAY");\n printf("\n 4. EXIT\n");\n printf("\n\n Enter your choice : ");\n scanf("%d", &choice);\n\n switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);" (do) "do" (compound_statement) "{\n printf("\n\n ****----- MENU -----****");\n printf("\n 1. INSERT (at End)");\n printf("\n 2. DELETE (from End)");\n printf("\n 3. DISPLAY");\n printf("\n 4. EXIT\n");\n printf("\n\n Enter your choice : ");\n scanf("%d", &choice);\n\n switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n }" ({) "{" (expression_statement) "printf("\n\n ****----- MENU -----****");" (call_expression) "printf("\n\n ****----- MENU -----****")" (identifier) "printf" (argument_list) "("\n\n ****----- MENU -----****")" (() "(" (string_literal) ""\n\n ****----- MENU -----****"" (") """ (escape_sequence) "\n" (escape_sequence) "\n" (string_content) " ****----- MENU -----****" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n 1. INSERT (at End)");" (call_expression) "printf("\n 1. INSERT (at End)")" (identifier) "printf" (argument_list) "("\n 1. INSERT (at End)")" (() "(" (string_literal) ""\n 1. INSERT (at End)"" (") """ (escape_sequence) "\n" (string_content) " 1. INSERT (at End)" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n 2. DELETE (from End)");" (call_expression) "printf("\n 2. DELETE (from End)")" (identifier) "printf" (argument_list) "("\n 2. DELETE (from End)")" (() "(" (string_literal) ""\n 2. DELETE (from End)"" (") """ (escape_sequence) "\n" (string_content) " 2. DELETE (from End)" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n 3. DISPLAY");" (call_expression) "printf("\n 3. DISPLAY")" (identifier) "printf" (argument_list) "("\n 3. DISPLAY")" (() "(" (string_literal) ""\n 3. DISPLAY"" (") """ (escape_sequence) "\n" (string_content) " 3. DISPLAY" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n 4. EXIT\n");" (call_expression) "printf("\n 4. EXIT\n")" (identifier) "printf" (argument_list) "("\n 4. EXIT\n")" (() "(" (string_literal) ""\n 4. EXIT\n"" (") """ (escape_sequence) "\n" (string_content) " 4. EXIT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n\n Enter your choice : ");" (call_expression) "printf("\n\n Enter your choice : ")" (identifier) "printf" (argument_list) "("\n\n Enter your choice : ")" (() "(" (string_literal) ""\n\n Enter your choice : "" (") """ (escape_sequence) "\n" (escape_sequence) "\n" (string_content) " Enter your choice : " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &choice);" (call_expression) "scanf("%d", &choice)" (identifier) "scanf" (argument_list) "("%d", &choice)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&choice" (&) "&" (identifier) "choice" ()) ")" (;) ";" (switch_statement) "switch(choice)\n {\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }" (switch) "switch" (parenthesized_expression) "(choice)" (() "(" (identifier) "choice" ()) ")" (compound_statement) "{\n case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;\n\n case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;\n\n case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }" ({) "{" (case_statement) "case 1:\n printf("\n Enter the number to Insert at the end of SLL :");\n scanf("%d", &ele);\n head = insert_End(head, ele);\n printf("\n Insertion done !");\n break;" (case) "case" (number_literal) "1" (:) ":" (expression_statement) "printf("\n Enter the number to Insert at the end of SLL :");" (call_expression) "printf("\n Enter the number to Insert at the end of SLL :")" (identifier) "printf" (argument_list) "("\n Enter the number to Insert at the end of SLL :")" (() "(" (string_literal) ""\n Enter the number to Insert at the end of SLL :"" (") """ (escape_sequence) "\n" (string_content) " Enter the number to Insert at the end of SLL :" (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &ele);" (call_expression) "scanf("%d", &ele)" (identifier) "scanf" (argument_list) "("%d", &ele)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&ele" (&) "&" (identifier) "ele" ()) ")" (;) ";" (expression_statement) "head = insert_End(head, ele);" (assignment_expression) "head = insert_End(head, ele)" (identifier) "head" (=) "=" (call_expression) "insert_End(head, ele)" (identifier) "insert_End" (argument_list) "(head, ele)" (() "(" (identifier) "head" (,) "," (identifier) "ele" ()) ")" (;) ";" (expression_statement) "printf("\n Insertion done !");" (call_expression) "printf("\n Insertion done !")" (identifier) "printf" (argument_list) "("\n Insertion done !")" (() "(" (string_literal) ""\n Insertion done !"" (") """ (escape_sequence) "\n" (string_content) " Insertion done !" (") """ ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 2:\n head = delete_End(head);\n printf("\n Deletion done !");\n break;" (case) "case" (number_literal) "2" (:) ":" (expression_statement) "head = delete_End(head);" (assignment_expression) "head = delete_End(head)" (identifier) "head" (=) "=" (call_expression) "delete_End(head)" (identifier) "delete_End" (argument_list) "(head)" (() "(" (identifier) "head" ()) ")" (;) ";" (expression_statement) "printf("\n Deletion done !");" (call_expression) "printf("\n Deletion done !")" (identifier) "printf" (argument_list) "("\n Deletion done !")" (() "(" (string_literal) ""\n Deletion done !"" (") """ (escape_sequence) "\n" (string_content) " Deletion done !" (") """ ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 3:\n printf("\n Elements of SLL are : \n");\n display(head);\n break;" (case) "case" (number_literal) "3" (:) ":" (expression_statement) "printf("\n Elements of SLL are : \n");" (call_expression) "printf("\n Elements of SLL are : \n")" (identifier) "printf" (argument_list) "("\n Elements of SLL are : \n")" (() "(" (string_literal) ""\n Elements of SLL are : \n"" (") """ (escape_sequence) "\n" (string_content) " Elements of SLL are : " (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "display(head);" (call_expression) "display(head)" (identifier) "display" (argument_list) "(head)" (() "(" (identifier) "head" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 4:\n exit(0);" (case) "case" (number_literal) "4" (:) ":" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (}) "}" (while) "while" (parenthesized_expression) "( choice != 4)" (() "(" (binary_expression) "choice != 4" (identifier) "choice" (!=) "!=" (number_literal) "4" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
775
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 22.77, "nodes": 446, "errors": 0, "source_hash": "2073aeb1f3172e64ae02b59b3d89cba250406c19a42b9dafd8bb78fa772e6821", "categorized_nodes": 303}, "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": "struct_specifier", "text": "struct node{\n int data;\n struct node *next;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 7, "type": "struct", "text": "struct", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "type_identifier", "text": "node", "parent": 6, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 11}}, {"id": 9, "type": "field_declaration", "text": "int data;", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 13}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "field_identifier", "text": "data", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 12, "type": "field_declaration", "text": "struct node *next;", "parent": 6, "children": [13, 16], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 13, "type": "struct_specifier", "text": "struct node", "parent": 12, "children": [14, 15], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 15}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 10}}, {"id": 15, "type": "type_identifier", "text": "node", "parent": 13, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 15}}, {"id": 16, "type": "pointer_declarator", "text": "*next", "parent": 12, "children": [17, 18], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 21}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "field_identifier", "text": "next", "parent": 16, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 21}}, {"id": 19, "type": "function_definition", "text": "void display(struct node *head)\n{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct node));\n ptr = head;\n if(ptr == NULL)\n printf(\"\\n SLL is empty!\");\n\n else {\n while (ptr != NULL) {\n printf(\" %d \", ptr->data);\n if (ptr->next != NULL) {\n printf(\"->\");\n }\n ptr = ptr->next;\n }\n }\n\n}", "parent": null, "children": [20, 21], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 21, "type": "function_declarator", "text": "display(struct node *head)", "parent": 19, "children": [22, 23], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 31}}, {"id": 22, "type": "identifier", "text": "display", "parent": 21, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 12}}, {"id": 23, "type": "parameter_list", "text": "(struct node *head)", "parent": 21, "children": [24], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 31}}, {"id": 24, "type": "parameter_declaration", "text": "struct node *head", "parent": 23, "children": [25, 28], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 30}}, {"id": 25, "type": "struct_specifier", "text": "struct node", "parent": 24, "children": [26, 27], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 24}}, {"id": 26, "type": "struct", "text": "struct", "parent": 25, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 19}}, {"id": 27, "type": "type_identifier", "text": "node", "parent": 25, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 24}}, {"id": 28, "type": "pointer_declarator", "text": "*head", "parent": 24, "children": [29, 30], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 30}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 26}}, {"id": 30, "type": "identifier", "text": "head", "parent": 28, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 30}}, {"id": 31, "type": "declaration", "text": "struct node *ptr;", "parent": 19, "children": [32, 35], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 21}}, {"id": 32, "type": "struct_specifier", "text": "struct node", "parent": 31, "children": [33, 34], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 34, "type": "type_identifier", "text": "node", "parent": 32, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 15}}, {"id": 35, "type": "pointer_declarator", "text": "*ptr", "parent": 31, "children": [36, 37], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 20}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 17}}, {"id": 37, "type": "identifier", "text": "ptr", "parent": 35, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 20}}, {"id": 38, "type": "assignment_expression", "text": "ptr=(struct node *)malloc(sizeof(struct node))", "parent": 19, "children": [39, 40, 41], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 50}}, {"id": 39, "type": "identifier", "text": "ptr", "parent": 38, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 7}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 8}}, {"id": 41, "type": "cast_expression", "text": "(struct node *)malloc(sizeof(struct node))", "parent": 38, "children": [42, 48], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 50}}, {"id": 42, "type": "type_descriptor", "text": "struct node *", "parent": 41, "children": [43, 46], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 22}}, {"id": 43, "type": "struct_specifier", "text": "struct node", "parent": 42, "children": [44, 45], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 20}}, {"id": 44, "type": "struct", "text": "struct", "parent": 43, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 15}}, {"id": 45, "type": "type_identifier", "text": "node", "parent": 43, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 46, "type": "abstract_pointer_declarator", "text": "*", "parent": 42, "children": [47], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 48, "type": "call_expression", "text": "malloc(sizeof(struct node))", "parent": 41, "children": [49, 50], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 50}}, {"id": 49, "type": "identifier", "text": "malloc", "parent": 48, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 29}}, {"id": 50, "type": "argument_list", "text": "(sizeof(struct node))", "parent": 48, "children": [51], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 50}}, {"id": 51, "type": "sizeof_expression", "text": "sizeof(struct node)", "parent": 50, "children": [52], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 49}}, {"id": 52, "type": "type_descriptor", "text": "struct node", "parent": 51, "children": [53], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 48}}, {"id": 53, "type": "struct_specifier", "text": "struct node", "parent": 52, "children": [54, 55], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 48}}, {"id": 54, "type": "struct", "text": "struct", "parent": 53, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 43}}, {"id": 55, "type": "type_identifier", "text": "node", "parent": 53, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 48}}, {"id": 56, "type": "assignment_expression", "text": "ptr = head", "parent": 19, "children": [57, 58, 59], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 14}}, {"id": 57, "type": "identifier", "text": "ptr", "parent": 56, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 59, "type": "identifier", "text": "head", "parent": 56, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 60, "type": "if_statement", "text": "if(ptr == NULL)\n printf(\"\\n SLL is empty!\");\n\n else {\n while (ptr != NULL) {\n printf(\" %d \", ptr->data);\n if (ptr->next != NULL) {\n printf(\"->\");\n }\n ptr = ptr->next;\n }\n }", "parent": 19, "children": [61, 72], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 61, "type": "parenthesized_expression", "text": "(ptr == NULL)", "parent": 60, "children": [62], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 19}}, {"id": 62, "type": "binary_expression", "text": "ptr == NULL", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 18}}, {"id": 63, "type": "identifier", "text": "ptr", "parent": 62, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 64, "type": "==", "text": "==", "parent": 62, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 13}}, {"id": 65, "type": "null", "text": "NULL", "parent": 62, "children": [66], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 66, "type": "NULL", "text": "NULL", "parent": 65, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 67, "type": "call_expression", "text": "printf(\"\\n SLL is empty!\")", "parent": 60, "children": [68, 69], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 34}}, {"id": 68, "type": "identifier", "text": "printf", "parent": 67, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 69, "type": "argument_list", "text": "(\"\\n SLL is empty!\")", "parent": 67, "children": [70], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 34}}, {"id": 70, "type": "string_literal", "text": "\"\\n SLL is empty!\"", "parent": 69, "children": [71], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 33}}, {"id": 71, "type": "escape_sequence", "text": "\\n", "parent": 70, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 18}}, {"id": 72, "type": "else_clause", "text": "else {\n while (ptr != NULL) {\n printf(\" %d \", ptr->data);\n if (ptr->next != NULL) {\n printf(\"->\");\n }\n ptr = ptr->next;\n }\n }", "parent": 60, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 73, "type": "while_statement", "text": "while (ptr != NULL) {\n printf(\" %d \", ptr->data);\n if (ptr->next != NULL) {\n printf(\"->\");\n }\n ptr = ptr->next;\n }", "parent": 72, "children": [74], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 74, "type": "parenthesized_expression", "text": "(ptr != NULL)", "parent": 73, "children": [75], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 27}}, {"id": 75, "type": "binary_expression", "text": "ptr != NULL", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 26}}, {"id": 76, "type": "identifier", "text": "ptr", "parent": 75, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 18}}, {"id": 77, "type": "!=", "text": "!=", "parent": 75, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 78, "type": "null", "text": "NULL", "parent": 75, "children": [79], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 26}}, {"id": 79, "type": "NULL", "text": "NULL", "parent": 78, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 26}}, {"id": 80, "type": "call_expression", "text": "printf(\" %d \", ptr->data)", "parent": 73, "children": [81, 82], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 38}}, {"id": 81, "type": "identifier", "text": "printf", "parent": 80, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 18}}, {"id": 82, "type": "argument_list", "text": "(\" %d \", ptr->data)", "parent": 80, "children": [83, 84], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 38}}, {"id": 83, "type": "string_literal", "text": "\" %d \"", "parent": 82, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 26}}, {"id": 84, "type": "field_expression", "text": "ptr->data", "parent": 82, "children": [85, 86], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 37}}, {"id": 85, "type": "identifier", "text": "ptr", "parent": 84, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 86, "type": "field_identifier", "text": "data", "parent": 84, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 37}}, {"id": 87, "type": "if_statement", "text": "if (ptr->next != NULL) {\n printf(\"->\");\n }", "parent": 73, "children": [88], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 88, "type": "parenthesized_expression", "text": "(ptr->next != NULL)", "parent": 87, "children": [89], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 34}}, {"id": 89, "type": "binary_expression", "text": "ptr->next != NULL", "parent": 88, "children": [90, 93, 94], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 33}}, {"id": 90, "type": "field_expression", "text": "ptr->next", "parent": 89, "children": [91, 92], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 25}}, {"id": 91, "type": "identifier", "text": "ptr", "parent": 90, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 19}}, {"id": 92, "type": "field_identifier", "text": "next", "parent": 90, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 25}}, {"id": 93, "type": "!=", "text": "!=", "parent": 89, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 28}}, {"id": 94, "type": "null", "text": "NULL", "parent": 89, "children": [95], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 33}}, {"id": 95, "type": "NULL", "text": "NULL", "parent": 94, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 33}}, {"id": 96, "type": "call_expression", "text": "printf(\"->\")", "parent": 87, "children": [97, 98], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 28}}, {"id": 97, "type": "identifier", "text": "printf", "parent": 96, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 98, "type": "argument_list", "text": "(\"->\")", "parent": 96, "children": [99], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 28}}, {"id": 99, "type": "string_literal", "text": "\"->\"", "parent": 98, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 27}}, {"id": 100, "type": "assignment_expression", "text": "ptr = ptr->next", "parent": 73, "children": [101, 102, 103], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 27}}, {"id": 101, "type": "identifier", "text": "ptr", "parent": 100, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 15}}, {"id": 102, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 103, "type": "field_expression", "text": "ptr->next", "parent": 100, "children": [104, 105], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 27}}, {"id": 104, "type": "identifier", "text": "ptr", "parent": 103, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 21}}, {"id": 105, "type": "field_identifier", "text": "next", "parent": 103, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 27}}, {"id": 106, "type": "function_definition", "text": "struct node *insert_End(struct node *head, int ele)\n{\n struct node *new_node, *ptr;\n\n new_node=(struct node *)malloc(sizeof(struct node));\n\n new_node->data= ele;\n new_node->next= NULL;\n\n ptr=head;\n\n if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }\n\n return head;\n\n}", "parent": null, "children": [107, 110], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 107, "type": "struct_specifier", "text": "struct node", "parent": 106, "children": [108, 109], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 11}}, {"id": 108, "type": "struct", "text": "struct", "parent": 107, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 109, "type": "type_identifier", "text": "node", "parent": 107, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 110, "type": "pointer_declarator", "text": "*insert_End(struct node *head, int ele)", "parent": 106, "children": [111, 112], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 51}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 112, "type": "function_declarator", "text": "insert_End(struct node *head, int ele)", "parent": 110, "children": [113, 114], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 51}}, {"id": 113, "type": "identifier", "text": "insert_End", "parent": 112, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 23}}, {"id": 114, "type": "parameter_list", "text": "(struct node *head, int ele)", "parent": 112, "children": [115, 122], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 51}}, {"id": 115, "type": "parameter_declaration", "text": "struct node *head", "parent": 114, "children": [116, 119], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 41}}, {"id": 116, "type": "struct_specifier", "text": "struct node", "parent": 115, "children": [117, 118], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 35}}, {"id": 117, "type": "struct", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 30}}, {"id": 118, "type": "type_identifier", "text": "node", "parent": 116, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 35}}, {"id": 119, "type": "pointer_declarator", "text": "*head", "parent": 115, "children": [120, 121], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 41}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 37}}, {"id": 121, "type": "identifier", "text": "head", "parent": 119, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 41}}, {"id": 122, "type": "parameter_declaration", "text": "int ele", "parent": 114, "children": [123, 124], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 50}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 46}}, {"id": 124, "type": "identifier", "text": "ele", "parent": 122, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 50}}, {"id": 125, "type": "declaration", "text": "struct node *new_node, *ptr;", "parent": 106, "children": [126, 129, 132], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 32}}, {"id": 126, "type": "struct_specifier", "text": "struct node", "parent": 125, "children": [127, 128], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 127, "type": "struct", "text": "struct", "parent": 126, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 10}}, {"id": 128, "type": "type_identifier", "text": "node", "parent": 126, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 15}}, {"id": 129, "type": "pointer_declarator", "text": "*new_node", "parent": 125, "children": [130, 131], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 25}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 131, "type": "identifier", "text": "new_node", "parent": 129, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 25}}, {"id": 132, "type": "pointer_declarator", "text": "*ptr", "parent": 125, "children": [133, 134], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 31}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 28}}, {"id": 134, "type": "identifier", "text": "ptr", "parent": 132, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 31}}, {"id": 135, "type": "assignment_expression", "text": "new_node=(struct node *)malloc(sizeof(struct node))", "parent": 106, "children": [136, 137, 138], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 55}}, {"id": 136, "type": "identifier", "text": "new_node", "parent": 135, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 12}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 138, "type": "cast_expression", "text": "(struct node *)malloc(sizeof(struct node))", "parent": 135, "children": [139, 145], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 55}}, {"id": 139, "type": "type_descriptor", "text": "struct node *", "parent": 138, "children": [140, 143], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 27}}, {"id": 140, "type": "struct_specifier", "text": "struct node", "parent": 139, "children": [141, 142], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 25}}, {"id": 141, "type": "struct", "text": "struct", "parent": 140, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 20}}, {"id": 142, "type": "type_identifier", "text": "node", "parent": 140, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 25}}, {"id": 143, "type": "abstract_pointer_declarator", "text": "*", "parent": 139, "children": [144], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 27}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 27}}, {"id": 145, "type": "call_expression", "text": "malloc(sizeof(struct node))", "parent": 138, "children": [146, 147], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 55}}, {"id": 146, "type": "identifier", "text": "malloc", "parent": 145, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 34}}, {"id": 147, "type": "argument_list", "text": "(sizeof(struct node))", "parent": 145, "children": [148], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 55}}, {"id": 148, "type": "sizeof_expression", "text": "sizeof(struct node)", "parent": 147, "children": [149], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 54}}, {"id": 149, "type": "type_descriptor", "text": "struct node", "parent": 148, "children": [150], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 53}}, {"id": 150, "type": "struct_specifier", "text": "struct node", "parent": 149, "children": [151, 152], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 53}}, {"id": 151, "type": "struct", "text": "struct", "parent": 150, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 48}}, {"id": 152, "type": "type_identifier", "text": "node", "parent": 150, "children": [], "start_point": {"row": 39, "column": 49}, "end_point": {"row": 39, "column": 53}}, {"id": 153, "type": "assignment_expression", "text": "new_node->data= ele", "parent": 106, "children": [154, 157, 158], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 23}}, {"id": 154, "type": "field_expression", "text": "new_node->data", "parent": 153, "children": [155, 156], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 18}}, {"id": 155, "type": "identifier", "text": "new_node", "parent": 154, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 12}}, {"id": 156, "type": "field_identifier", "text": "data", "parent": 154, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 18}}, {"id": 157, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 158, "type": "identifier", "text": "ele", "parent": 153, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 159, "type": "assignment_expression", "text": "new_node->next= NULL", "parent": 106, "children": [160, 163, 164], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 24}}, {"id": 160, "type": "field_expression", "text": "new_node->next", "parent": 159, "children": [161, 162], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 18}}, {"id": 161, "type": "identifier", "text": "new_node", "parent": 160, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 162, "type": "field_identifier", "text": "next", "parent": 160, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 163, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 164, "type": "null", "text": "NULL", "parent": 159, "children": [165], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 24}}, {"id": 165, "type": "NULL", "text": "NULL", "parent": 164, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 24}}, {"id": 166, "type": "assignment_expression", "text": "ptr=head", "parent": 106, "children": [167, 168, 169], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 167, "type": "identifier", "text": "ptr", "parent": 166, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 7}}, {"id": 168, "type": "=", "text": "=", "parent": 166, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 169, "type": "identifier", "text": "head", "parent": 166, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 170, "type": "if_statement", "text": "if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }", "parent": 106, "children": [171, 185], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 171, "type": "parenthesized_expression", "text": "(ptr == NULL)", "parent": 170, "children": [172], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 19}}, {"id": 172, "type": "binary_expression", "text": "ptr == NULL", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 18}}, {"id": 173, "type": "identifier", "text": "ptr", "parent": 172, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 10}}, {"id": 174, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 13}}, {"id": 175, "type": "null", "text": "NULL", "parent": 172, "children": [176], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 176, "type": "NULL", "text": "NULL", "parent": 175, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 177, "type": "assignment_expression", "text": "ptr=new_node", "parent": 170, "children": [178, 179, 180], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 20}}, {"id": 178, "type": "identifier", "text": "ptr", "parent": 177, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 11}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 180, "type": "identifier", "text": "new_node", "parent": 177, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 20}}, {"id": 181, "type": "assignment_expression", "text": "head=ptr", "parent": 170, "children": [182, 183, 184], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 16}}, {"id": 182, "type": "identifier", "text": "head", "parent": 181, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 183, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 184, "type": "identifier", "text": "ptr", "parent": 181, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 16}}, {"id": 185, "type": "else_clause", "text": "else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }", "parent": 170, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 186, "type": "while_statement", "text": "while (ptr->next != NULL) {\n ptr = ptr->next;\n }", "parent": 185, "children": [187], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 54, "column": 9}}, {"id": 187, "type": "parenthesized_expression", "text": "(ptr->next != NULL)", "parent": 186, "children": [188], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 33}}, {"id": 188, "type": "binary_expression", "text": "ptr->next != NULL", "parent": 187, "children": [189, 192, 193], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 32}}, {"id": 189, "type": "field_expression", "text": "ptr->next", "parent": 188, "children": [190, 191], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 24}}, {"id": 190, "type": "identifier", "text": "ptr", "parent": 189, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 18}}, {"id": 191, "type": "field_identifier", "text": "next", "parent": 189, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 24}}, {"id": 192, "type": "!=", "text": "!=", "parent": 188, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 27}}, {"id": 193, "type": "null", "text": "NULL", "parent": 188, "children": [194], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 32}}, {"id": 194, "type": "NULL", "text": "NULL", "parent": 193, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 32}}, {"id": 195, "type": "assignment_expression", "text": "ptr = ptr->next", "parent": 186, "children": [196, 197, 198], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 27}}, {"id": 196, "type": "identifier", "text": "ptr", "parent": 195, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 15}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 198, "type": "field_expression", "text": "ptr->next", "parent": 195, "children": [199, 200], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 27}}, {"id": 199, "type": "identifier", "text": "ptr", "parent": 198, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 21}}, {"id": 200, "type": "field_identifier", "text": "next", "parent": 198, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 27}}, {"id": 201, "type": "assignment_expression", "text": "ptr->next = new_node", "parent": 185, "children": [202, 205, 206], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 28}}, {"id": 202, "type": "field_expression", "text": "ptr->next", "parent": 201, "children": [203, 204], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 17}}, {"id": 203, "type": "identifier", "text": "ptr", "parent": 202, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 11}}, {"id": 204, "type": "field_identifier", "text": "next", "parent": 202, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 205, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 19}}, {"id": 206, "type": "identifier", "text": "new_node", "parent": 201, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 28}}, {"id": 207, "type": "return_statement", "text": "return head;", "parent": 106, "children": [208], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 16}}, {"id": 208, "type": "identifier", "text": "head", "parent": 207, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 15}}, {"id": 209, "type": "function_definition", "text": "struct node *delete_End(struct node *head) {\n struct node *ptr, *temp;\n ptr=head;\n temp=head;\n\n if(head == NULL){\n printf(\"SLL is empty!\");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }\n\n}", "parent": null, "children": [210, 213], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 210, "type": "struct_specifier", "text": "struct node", "parent": 209, "children": [211, 212], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 11}}, {"id": 211, "type": "struct", "text": "struct", "parent": 210, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 212, "type": "type_identifier", "text": "node", "parent": 210, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 11}}, {"id": 213, "type": "pointer_declarator", "text": "*delete_End(struct node *head)", "parent": 209, "children": [214, 215], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 42}}, {"id": 214, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 215, "type": "function_declarator", "text": "delete_End(struct node *head)", "parent": 213, "children": [216, 217], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 42}}, {"id": 216, "type": "identifier", "text": "delete_End", "parent": 215, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 23}}, {"id": 217, "type": "parameter_list", "text": "(struct node *head)", "parent": 215, "children": [218], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 42}}, {"id": 218, "type": "parameter_declaration", "text": "struct node *head", "parent": 217, "children": [219, 222], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 41}}, {"id": 219, "type": "struct_specifier", "text": "struct node", "parent": 218, "children": [220, 221], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 35}}, {"id": 220, "type": "struct", "text": "struct", "parent": 219, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 30}}, {"id": 221, "type": "type_identifier", "text": "node", "parent": 219, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 35}}, {"id": 222, "type": "pointer_declarator", "text": "*head", "parent": 218, "children": [223, 224], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 41}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 37}}, {"id": 224, "type": "identifier", "text": "head", "parent": 222, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 41}}, {"id": 225, "type": "declaration", "text": "struct node *ptr, *temp;", "parent": 209, "children": [226, 229, 232], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 28}}, {"id": 226, "type": "struct_specifier", "text": "struct node", "parent": 225, "children": [227, 228], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 15}}, {"id": 227, "type": "struct", "text": "struct", "parent": 226, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 228, "type": "type_identifier", "text": "node", "parent": 226, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 15}}, {"id": 229, "type": "pointer_declarator", "text": "*ptr", "parent": 225, "children": [230, 231], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 20}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 17}}, {"id": 231, "type": "identifier", "text": "ptr", "parent": 229, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 20}}, {"id": 232, "type": "pointer_declarator", "text": "*temp", "parent": 225, "children": [233, 234], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 27}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 23}}, {"id": 234, "type": "identifier", "text": "temp", "parent": 232, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 27}}, {"id": 235, "type": "assignment_expression", "text": "ptr=head", "parent": 209, "children": [236, 237, 238], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 12}}, {"id": 236, "type": "identifier", "text": "ptr", "parent": 235, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 7}}, {"id": 237, "type": "=", "text": "=", "parent": 235, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 8}}, {"id": 238, "type": "identifier", "text": "head", "parent": 235, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 12}}, {"id": 239, "type": "assignment_expression", "text": "temp=head", "parent": 209, "children": [240, 241, 242], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 240, "type": "identifier", "text": "temp", "parent": 239, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 8}}, {"id": 241, "type": "=", "text": "=", "parent": 239, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 242, "type": "identifier", "text": "head", "parent": 239, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 13}}, {"id": 243, "type": "if_statement", "text": "if(head == NULL){\n printf(\"SLL is empty!\");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }", "parent": 209, "children": [244, 256], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 244, "type": "parenthesized_expression", "text": "(head == NULL)", "parent": 243, "children": [245], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 20}}, {"id": 245, "type": "binary_expression", "text": "head == NULL", "parent": 244, "children": [246, 247, 248], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 19}}, {"id": 246, "type": "identifier", "text": "head", "parent": 245, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 11}}, {"id": 247, "type": "==", "text": "==", "parent": 245, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 14}}, {"id": 248, "type": "null", "text": "NULL", "parent": 245, "children": [249], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 19}}, {"id": 249, "type": "NULL", "text": "NULL", "parent": 248, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 19}}, {"id": 250, "type": "call_expression", "text": "printf(\"SLL is empty!\")", "parent": 243, "children": [251, 252], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 31}}, {"id": 251, "type": "identifier", "text": "printf", "parent": 250, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 252, "type": "argument_list", "text": "(\"SLL is empty!\")", "parent": 250, "children": [253], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 31}}, {"id": 253, "type": "string_literal", "text": "\"SLL is empty!\"", "parent": 252, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 30}}, {"id": 254, "type": "return_statement", "text": "return head;", "parent": 243, "children": [255], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 20}}, {"id": 255, "type": "identifier", "text": "head", "parent": 254, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 19}}, {"id": 256, "type": "else_clause", "text": "else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }", "parent": 243, "children": [257], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 257, "type": "if_statement", "text": "if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }", "parent": 256, "children": [258, 273], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 87, "column": 5}}, {"id": 258, "type": "parenthesized_expression", "text": "(head->next == NULL)", "parent": 257, "children": [259], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 31}}, {"id": 259, "type": "binary_expression", "text": "head->next == NULL", "parent": 258, "children": [260, 263, 264], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 30}}, {"id": 260, "type": "field_expression", "text": "head->next", "parent": 259, "children": [261, 262], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 22}}, {"id": 261, "type": "identifier", "text": "head", "parent": 260, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 16}}, {"id": 262, "type": "field_identifier", "text": "next", "parent": 260, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 22}}, {"id": 263, "type": "==", "text": "==", "parent": 259, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 25}}, {"id": 264, "type": "null", "text": "NULL", "parent": 259, "children": [265], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 30}}, {"id": 265, "type": "NULL", "text": "NULL", "parent": 264, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 30}}, {"id": 266, "type": "assignment_expression", "text": "head = NULL", "parent": 257, "children": [267, 268, 269], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 19}}, {"id": 267, "type": "identifier", "text": "head", "parent": 266, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 12}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 14}}, {"id": 269, "type": "null", "text": "NULL", "parent": 266, "children": [270], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 19}}, {"id": 270, "type": "NULL", "text": "NULL", "parent": 269, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 19}}, {"id": 271, "type": "return_statement", "text": "return head;", "parent": 257, "children": [272], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 20}}, {"id": 272, "type": "identifier", "text": "head", "parent": 271, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 19}}, {"id": 273, "type": "else_clause", "text": "else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }", "parent": 257, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 274, "type": "while_statement", "text": "while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }", "parent": 273, "children": [275], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 82, "column": 9}}, {"id": 275, "type": "parenthesized_expression", "text": "(ptr->next != NULL)", "parent": 274, "children": [276], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 32}}, {"id": 276, "type": "binary_expression", "text": "ptr->next != NULL", "parent": 275, "children": [277, 280, 281], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 31}}, {"id": 277, "type": "field_expression", "text": "ptr->next", "parent": 276, "children": [278, 279], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 23}}, {"id": 278, "type": "identifier", "text": "ptr", "parent": 277, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 17}}, {"id": 279, "type": "field_identifier", "text": "next", "parent": 277, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 23}}, {"id": 280, "type": "!=", "text": "!=", "parent": 276, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 26}}, {"id": 281, "type": "null", "text": "NULL", "parent": 276, "children": [282], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 31}}, {"id": 282, "type": "NULL", "text": "NULL", "parent": 281, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 31}}, {"id": 283, "type": "assignment_expression", "text": "temp = ptr", "parent": 274, "children": [284, 285, 286], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 22}}, {"id": 284, "type": "identifier", "text": "temp", "parent": 283, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 16}}, {"id": 285, "type": "=", "text": "=", "parent": 283, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 18}}, {"id": 286, "type": "identifier", "text": "ptr", "parent": 283, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 22}}, {"id": 287, "type": "assignment_expression", "text": "ptr = ptr->next", "parent": 274, "children": [288, 289, 290], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 27}}, {"id": 288, "type": "identifier", "text": "ptr", "parent": 287, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 15}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 17}}, {"id": 290, "type": "field_expression", "text": "ptr->next", "parent": 287, "children": [291, 292], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 27}}, {"id": 291, "type": "identifier", "text": "ptr", "parent": 290, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 21}}, {"id": 292, "type": "field_identifier", "text": "next", "parent": 290, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 27}}, {"id": 293, "type": "assignment_expression", "text": "temp->next = NULL", "parent": 273, "children": [294, 297, 298], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 25}}, {"id": 294, "type": "field_expression", "text": "temp->next", "parent": 293, "children": [295, 296], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 18}}, {"id": 295, "type": "identifier", "text": "temp", "parent": 294, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 12}}, {"id": 296, "type": "field_identifier", "text": "next", "parent": 294, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 18}}, {"id": 297, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 20}}, {"id": 298, "type": "null", "text": "NULL", "parent": 293, "children": [299], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 25}}, {"id": 299, "type": "NULL", "text": "NULL", "parent": 298, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 25}}, {"id": 300, "type": "call_expression", "text": "free(ptr)", "parent": 273, "children": [301, 302], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 17}}, {"id": 301, "type": "identifier", "text": "free", "parent": 300, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 302, "type": "argument_list", "text": "(ptr)", "parent": 300, "children": [303], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 17}}, {"id": 303, "type": "identifier", "text": "ptr", "parent": 302, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 16}}, {"id": 304, "type": "return_statement", "text": "return head;", "parent": 273, "children": [305], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 20}}, {"id": 305, "type": "identifier", "text": "head", "parent": 304, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 19}}, {"id": 306, "type": "function_definition", "text": "int main() {\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf(\"\\n\\n ****----- MENU -----****\");\n printf(\"\\n 1. INSERT (at End)\");\n printf(\"\\n 2. DELETE (from End)\");\n printf(\"\\n 3. DISPLAY\");\n printf(\"\\n 4. EXIT\\n\");\n printf(\"\\n\\n Enter your choice : \");\n scanf(\"%d\", &choice);\n\n switch(choice)\n {\n case 1:\n printf(\"\\n Enter the number to Insert at the end of SLL :\");\n scanf(\"%d\", &ele);\n head = insert_End(head, ele);\n printf(\"\\n Insertion done !\");\n break;\n\n case 2:\n head = delete_End(head);\n printf(\"\\n Deletion done !\");\n break;\n\n case 3:\n printf(\"\\n Elements of SLL are : \\n\");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);\n\n return 0;\n\n}", "parent": null, "children": [307, 308], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 136, "column": 1}}, {"id": 307, "type": "primitive_type", "text": "int", "parent": 306, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 3}}, {"id": 308, "type": "function_declarator", "text": "main()", "parent": 306, "children": [309, 310], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 10}}, {"id": 309, "type": "identifier", "text": "main", "parent": 308, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 310, "type": "parameter_list", "text": "()", "parent": 308, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 10}}, {"id": 311, "type": "declaration", "text": "struct node *head;", "parent": 306, "children": [312, 315], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 22}}, {"id": 312, "type": "struct_specifier", "text": "struct node", "parent": 311, "children": [313, 314], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 15}}, {"id": 313, "type": "struct", "text": "struct", "parent": 312, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 10}}, {"id": 314, "type": "type_identifier", "text": "node", "parent": 312, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 15}}, {"id": 315, "type": "pointer_declarator", "text": "*head", "parent": 311, "children": [316, 317], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 21}}, {"id": 316, "type": "*", "text": "*", "parent": 315, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 17}}, {"id": 317, "type": "identifier", "text": "head", "parent": 315, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 21}}, {"id": 318, "type": "assignment_expression", "text": "head = NULL", "parent": 306, "children": [319, 320, 321], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 15}}, {"id": 319, "type": "identifier", "text": "head", "parent": 318, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 10}}, {"id": 321, "type": "null", "text": "NULL", "parent": 318, "children": [322], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 15}}, {"id": 322, "type": "NULL", "text": "NULL", "parent": 321, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 15}}, {"id": 323, "type": "declaration", "text": "int choice, ele;", "parent": 306, "children": [324, 325, 326], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 20}}, {"id": 324, "type": "primitive_type", "text": "int", "parent": 323, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 7}}, {"id": 325, "type": "identifier", "text": "choice", "parent": 323, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 326, "type": "identifier", "text": "ele", "parent": 323, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 19}}, {"id": 327, "type": "do_statement", "text": "do {\n printf(\"\\n\\n ****----- MENU -----****\");\n printf(\"\\n 1. INSERT (at End)\");\n printf(\"\\n 2. DELETE (from End)\");\n printf(\"\\n 3. DISPLAY\");\n printf(\"\\n 4. EXIT\\n\");\n printf(\"\\n\\n Enter your choice : \");\n scanf(\"%d\", &choice);\n\n switch(choice)\n {\n case 1:\n printf(\"\\n Enter the number to Insert at the end of SLL :\");\n scanf(\"%d\", &ele);\n head = insert_End(head, ele);\n printf(\"\\n Insertion done !\");\n break;\n\n case 2:\n head = delete_End(head);\n printf(\"\\n Deletion done !\");\n break;\n\n case 3:\n printf(\"\\n Elements of SLL are : \\n\");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);", "parent": 306, "children": [439], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 132, "column": 26}}, {"id": 328, "type": "call_expression", "text": "printf(\"\\n\\n ****----- MENU -----****\")", "parent": 327, "children": [329, 330], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 47}}, {"id": 329, "type": "identifier", "text": "printf", "parent": 328, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 14}}, {"id": 330, "type": "argument_list", "text": "(\"\\n\\n ****----- MENU -----****\")", "parent": 328, "children": [331], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 47}}, {"id": 331, "type": "string_literal", "text": "\"\\n\\n ****----- MENU -----****\"", "parent": 330, "children": [332, 333], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 46}}, {"id": 332, "type": "escape_sequence", "text": "\\n", "parent": 331, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 18}}, {"id": 333, "type": "escape_sequence", "text": "\\n", "parent": 331, "children": [], "start_point": {"row": 100, "column": 18}, "end_point": {"row": 100, "column": 20}}, {"id": 334, "type": "call_expression", "text": "printf(\"\\n 1. INSERT (at End)\")", "parent": 327, "children": [335, 336], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 39}}, {"id": 335, "type": "identifier", "text": "printf", "parent": 334, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 14}}, {"id": 336, "type": "argument_list", "text": "(\"\\n 1. INSERT (at End)\")", "parent": 334, "children": [337], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 39}}, {"id": 337, "type": "string_literal", "text": "\"\\n 1. INSERT (at End)\"", "parent": 336, "children": [338], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 38}}, {"id": 338, "type": "escape_sequence", "text": "\\n", "parent": 337, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 18}}, {"id": 339, "type": "call_expression", "text": "printf(\"\\n 2. DELETE (from End)\")", "parent": 327, "children": [340, 341], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 41}}, {"id": 340, "type": "identifier", "text": "printf", "parent": 339, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 14}}, {"id": 341, "type": "argument_list", "text": "(\"\\n 2. DELETE (from End)\")", "parent": 339, "children": [342], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 41}}, {"id": 342, "type": "string_literal", "text": "\"\\n 2. DELETE (from End)\"", "parent": 341, "children": [343], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 40}}, {"id": 343, "type": "escape_sequence", "text": "\\n", "parent": 342, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 18}}, {"id": 344, "type": "call_expression", "text": "printf(\"\\n 3. DISPLAY\")", "parent": 327, "children": [345, 346], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 31}}, {"id": 345, "type": "identifier", "text": "printf", "parent": 344, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 14}}, {"id": 346, "type": "argument_list", "text": "(\"\\n 3. DISPLAY\")", "parent": 344, "children": [347], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 31}}, {"id": 347, "type": "string_literal", "text": "\"\\n 3. DISPLAY\"", "parent": 346, "children": [348], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 30}}, {"id": 348, "type": "escape_sequence", "text": "\\n", "parent": 347, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 18}}, {"id": 349, "type": "call_expression", "text": "printf(\"\\n 4. EXIT\\n\")", "parent": 327, "children": [350, 351], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 30}}, {"id": 350, "type": "identifier", "text": "printf", "parent": 349, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 14}}, {"id": 351, "type": "argument_list", "text": "(\"\\n 4. EXIT\\n\")", "parent": 349, "children": [352], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 30}}, {"id": 352, "type": "string_literal", "text": "\"\\n 4. EXIT\\n\"", "parent": 351, "children": [353, 354], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 29}}, {"id": 353, "type": "escape_sequence", "text": "\\n", "parent": 352, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 18}}, {"id": 354, "type": "escape_sequence", "text": "\\n", "parent": 352, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 28}}, {"id": 355, "type": "call_expression", "text": "printf(\"\\n\\n Enter your choice : \")", "parent": 327, "children": [356, 357], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 43}}, {"id": 356, "type": "identifier", "text": "printf", "parent": 355, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 14}}, {"id": 357, "type": "argument_list", "text": "(\"\\n\\n Enter your choice : \")", "parent": 355, "children": [358], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 43}}, {"id": 358, "type": "string_literal", "text": "\"\\n\\n Enter your choice : \"", "parent": 357, "children": [359, 360], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 42}}, {"id": 359, "type": "escape_sequence", "text": "\\n", "parent": 358, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 18}}, {"id": 360, "type": "escape_sequence", "text": "\\n", "parent": 358, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 20}}, {"id": 361, "type": "call_expression", "text": "scanf(\"%d\", &choice)", "parent": 327, "children": [362, 363], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 28}}, {"id": 362, "type": "identifier", "text": "scanf", "parent": 361, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 13}}, {"id": 363, "type": "argument_list", "text": "(\"%d\", &choice)", "parent": 361, "children": [364, 365], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 28}}, {"id": 364, "type": "string_literal", "text": "\"%d\"", "parent": 363, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 18}}, {"id": 365, "type": "pointer_expression", "text": "&choice", "parent": 363, "children": [366], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 27}}, {"id": 366, "type": "identifier", "text": "choice", "parent": 365, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 27}}, {"id": 367, "type": "switch_statement", "text": "switch(choice)\n {\n case 1:\n printf(\"\\n Enter the number to Insert at the end of SLL :\");\n scanf(\"%d\", &ele);\n head = insert_End(head, ele);\n printf(\"\\n Insertion done !\");\n break;\n\n case 2:\n head = delete_End(head);\n printf(\"\\n Deletion done !\");\n break;\n\n case 3:\n printf(\"\\n Elements of SLL are : \\n\");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }", "parent": 327, "children": [368, 369], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 130, "column": 9}}, {"id": 368, "type": "switch", "text": "switch", "parent": 367, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 14}}, {"id": 369, "type": "parenthesized_expression", "text": "(choice)", "parent": 367, "children": [370], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 22}}, {"id": 370, "type": "identifier", "text": "choice", "parent": 369, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 21}}, {"id": 371, "type": "case_statement", "text": "case 1:\n printf(\"\\n Enter the number to Insert at the end of SLL :\");\n scanf(\"%d\", &ele);\n head = insert_End(head, ele);\n printf(\"\\n Insertion done !\");\n break;", "parent": 367, "children": [372, 373, 398], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 115, "column": 22}}, {"id": 372, "type": "case", "text": "case", "parent": 371, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 16}}, {"id": 373, "type": "number_literal", "text": "1", "parent": 371, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 374, "type": "call_expression", "text": "printf(\"\\n Enter the number to Insert at the end of SLL :\")", "parent": 371, "children": [375, 376], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 75}}, {"id": 375, "type": "identifier", "text": "printf", "parent": 374, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 22}}, {"id": 376, "type": "argument_list", "text": "(\"\\n Enter the number to Insert at the end of SLL :\")", "parent": 374, "children": [377], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 75}}, {"id": 377, "type": "string_literal", "text": "\"\\n Enter the number to Insert at the end of SLL :\"", "parent": 376, "children": [378], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 74}}, {"id": 378, "type": "escape_sequence", "text": "\\n", "parent": 377, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 26}}, {"id": 379, "type": "call_expression", "text": "scanf(\"%d\", &ele)", "parent": 371, "children": [380, 381], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 33}}, {"id": 380, "type": "identifier", "text": "scanf", "parent": 379, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 21}}, {"id": 381, "type": "argument_list", "text": "(\"%d\", &ele)", "parent": 379, "children": [382, 383], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 33}}, {"id": 382, "type": "string_literal", "text": "\"%d\"", "parent": 381, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 26}}, {"id": 383, "type": "pointer_expression", "text": "&ele", "parent": 381, "children": [384], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 32}}, {"id": 384, "type": "identifier", "text": "ele", "parent": 383, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 32}}, {"id": 385, "type": "assignment_expression", "text": "head = insert_End(head, ele)", "parent": 371, "children": [386, 387, 388], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 44}}, {"id": 386, "type": "identifier", "text": "head", "parent": 385, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 20}}, {"id": 387, "type": "=", "text": "=", "parent": 385, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 22}}, {"id": 388, "type": "call_expression", "text": "insert_End(head, ele)", "parent": 385, "children": [389, 390], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 44}}, {"id": 389, "type": "identifier", "text": "insert_End", "parent": 388, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 33}}, {"id": 390, "type": "argument_list", "text": "(head, ele)", "parent": 388, "children": [391, 392], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 44}}, {"id": 391, "type": "identifier", "text": "head", "parent": 390, "children": [], "start_point": {"row": 113, "column": 34}, "end_point": {"row": 113, "column": 38}}, {"id": 392, "type": "identifier", "text": "ele", "parent": 390, "children": [], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 43}}, {"id": 393, "type": "call_expression", "text": "printf(\"\\n Insertion done !\")", "parent": 371, "children": [394, 395], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 45}}, {"id": 394, "type": "identifier", "text": "printf", "parent": 393, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 22}}, {"id": 395, "type": "argument_list", "text": "(\"\\n Insertion done !\")", "parent": 393, "children": [396], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 45}}, {"id": 396, "type": "string_literal", "text": "\"\\n Insertion done !\"", "parent": 395, "children": [397], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 44}}, {"id": 397, "type": "escape_sequence", "text": "\\n", "parent": 396, "children": [], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 26}}, {"id": 398, "type": "break_statement", "text": "break;", "parent": 371, "children": [399], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 22}}, {"id": 399, "type": "break", "text": "break", "parent": 398, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 21}}, {"id": 400, "type": "case_statement", "text": "case 2:\n head = delete_End(head);\n printf(\"\\n Deletion done !\");\n break;", "parent": 367, "children": [401, 402, 415], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 120, "column": 22}}, {"id": 401, "type": "case", "text": "case", "parent": 400, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 16}}, {"id": 402, "type": "number_literal", "text": "2", "parent": 400, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 18}}, {"id": 403, "type": "assignment_expression", "text": "head = delete_End(head)", "parent": 400, "children": [404, 405, 406], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 39}}, {"id": 404, "type": "identifier", "text": "head", "parent": 403, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 20}}, {"id": 405, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 22}}, {"id": 406, "type": "call_expression", "text": "delete_End(head)", "parent": 403, "children": [407, 408], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 39}}, {"id": 407, "type": "identifier", "text": "delete_End", "parent": 406, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 33}}, {"id": 408, "type": "argument_list", "text": "(head)", "parent": 406, "children": [409], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 39}}, {"id": 409, "type": "identifier", "text": "head", "parent": 408, "children": [], "start_point": {"row": 118, "column": 34}, "end_point": {"row": 118, "column": 38}}, {"id": 410, "type": "call_expression", "text": "printf(\"\\n Deletion done !\")", "parent": 400, "children": [411, 412], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 44}}, {"id": 411, "type": "identifier", "text": "printf", "parent": 410, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 22}}, {"id": 412, "type": "argument_list", "text": "(\"\\n Deletion done !\")", "parent": 410, "children": [413], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 44}}, {"id": 413, "type": "string_literal", "text": "\"\\n Deletion done !\"", "parent": 412, "children": [414], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 43}}, {"id": 414, "type": "escape_sequence", "text": "\\n", "parent": 413, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 26}}, {"id": 415, "type": "break_statement", "text": "break;", "parent": 400, "children": [416], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 22}}, {"id": 416, "type": "break", "text": "break", "parent": 415, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 21}}, {"id": 417, "type": "case_statement", "text": "case 3:\n printf(\"\\n Elements of SLL are : \\n\");\n display(head);\n break;", "parent": 367, "children": [418, 419, 430], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 125, "column": 22}}, {"id": 418, "type": "case", "text": "case", "parent": 417, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 16}}, {"id": 419, "type": "number_literal", "text": "3", "parent": 417, "children": [], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 18}}, {"id": 420, "type": "call_expression", "text": "printf(\"\\n Elements of SLL are : \\n\")", "parent": 417, "children": [421, 422], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 53}}, {"id": 421, "type": "identifier", "text": "printf", "parent": 420, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 22}}, {"id": 422, "type": "argument_list", "text": "(\"\\n Elements of SLL are : \\n\")", "parent": 420, "children": [423], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 53}}, {"id": 423, "type": "string_literal", "text": "\"\\n Elements of SLL are : \\n\"", "parent": 422, "children": [424, 425], "start_point": {"row": 123, "column": 23}, "end_point": {"row": 123, "column": 52}}, {"id": 424, "type": "escape_sequence", "text": "\\n", "parent": 423, "children": [], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 26}}, {"id": 425, "type": "escape_sequence", "text": "\\n", "parent": 423, "children": [], "start_point": {"row": 123, "column": 49}, "end_point": {"row": 123, "column": 51}}, {"id": 426, "type": "call_expression", "text": "display(head)", "parent": 417, "children": [427, 428], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 29}}, {"id": 427, "type": "identifier", "text": "display", "parent": 426, "children": [], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 23}}, {"id": 428, "type": "argument_list", "text": "(head)", "parent": 426, "children": [429], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 29}}, {"id": 429, "type": "identifier", "text": "head", "parent": 428, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 28}}, {"id": 430, "type": "break_statement", "text": "break;", "parent": 417, "children": [431], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 22}}, {"id": 431, "type": "break", "text": "break", "parent": 430, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 21}}, {"id": 432, "type": "case_statement", "text": "case 4:\n exit(0);", "parent": 367, "children": [433, 434], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 128, "column": 24}}, {"id": 433, "type": "case", "text": "case", "parent": 432, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 16}}, {"id": 434, "type": "number_literal", "text": "4", "parent": 432, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 18}}, {"id": 435, "type": "call_expression", "text": "exit(0)", "parent": 432, "children": [436, 437], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 23}}, {"id": 436, "type": "identifier", "text": "exit", "parent": 435, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 20}}, {"id": 437, "type": "argument_list", "text": "(0)", "parent": 435, "children": [438], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 23}}, {"id": 438, "type": "number_literal", "text": "0", "parent": 437, "children": [], "start_point": {"row": 128, "column": 21}, "end_point": {"row": 128, "column": 22}}, {"id": 439, "type": "parenthesized_expression", "text": "( choice != 4)", "parent": 327, "children": [440], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 25}}, {"id": 440, "type": "binary_expression", "text": "choice != 4", "parent": 439, "children": [441, 442, 443], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 24}}, {"id": 441, "type": "identifier", "text": "choice", "parent": 440, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 19}}, {"id": 442, "type": "!=", "text": "!=", "parent": 440, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 22}}, {"id": 443, "type": "number_literal", "text": "4", "parent": 440, "children": [], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 24}}, {"id": 444, "type": "return_statement", "text": "return 0;", "parent": 306, "children": [445], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 13}}, {"id": 445, "type": "number_literal", "text": "0", "parent": 444, "children": [], "start_point": {"row": 134, "column": 11}, "end_point": {"row": 134, "column": 12}}]}, "node_categories": {"declarations": {"functions": [19, 21, 106, 112, 209, 215, 306, 308], "variables": [9, 12, 24, 31, 115, 122, 125, 218, 225, 311, 323], "classes": [6, 7, 13, 14, 25, 26, 32, 33, 43, 44, 53, 54, 107, 108, 116, 117, 126, 127, 140, 141, 150, 151, 210, 211, 219, 220, 226, 227, 312, 313], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [41, 48, 51, 61, 62, 67, 74, 75, 80, 84, 88, 89, 90, 96, 103, 138, 145, 148, 154, 160, 171, 172, 187, 188, 189, 198, 202, 244, 245, 250, 258, 259, 260, 275, 276, 277, 290, 294, 300, 328, 334, 339, 344, 349, 355, 361, 365, 369, 374, 379, 383, 388, 393, 406, 410, 420, 426, 435, 439, 440], "assignments": [38, 56, 100, 135, 153, 159, 166, 177, 181, 195, 201, 235, 239, 266, 283, 287, 293, 318, 385, 403], "loops": [73, 186, 274], "conditionals": [8, 11, 15, 18, 22, 27, 30, 34, 37, 39, 45, 49, 55, 57, 59, 60, 63, 68, 76, 81, 85, 86, 87, 91, 92, 97, 101, 104, 105, 109, 113, 118, 121, 124, 128, 131, 134, 136, 142, 146, 152, 155, 156, 158, 161, 162, 167, 169, 170, 173, 178, 180, 182, 184, 190, 191, 196, 199, 200, 203, 204, 206, 208, 212, 216, 221, 224, 228, 231, 234, 236, 238, 240, 242, 243, 246, 251, 255, 257, 261, 262, 267, 272, 278, 279, 284, 286, 288, 291, 292, 295, 296, 301, 303, 305, 309, 314, 317, 319, 325, 326, 329, 335, 340, 345, 350, 356, 362, 366, 367, 368, 370, 371, 372, 375, 380, 384, 386, 389, 391, 392, 394, 400, 401, 404, 407, 409, 411, 417, 418, 421, 427, 429, 432, 433, 436, 441], "returns": [207, 254, 271, 304, 444], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 70, 83, 99, 253, 331, 337, 342, 347, 352, 358, 364, 373, 377, 382, 396, 402, 413, 419, 423, 434, 438, 443, 445], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "display", "text_snippet": "void display(struct node *head)\n{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct "}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "display(struct node *head)"}, {"node_id": 106, "universal_type": "function", "name": "node", "text_snippet": "struct node *insert_End(struct node *head, int ele)\n{\n struct node *new_node, *ptr;\n\n new_node"}, {"node_id": 112, "universal_type": "function", "name": "ele)", "text_snippet": "insert_End(struct node *head, int ele)"}, {"node_id": 209, "universal_type": "function", "name": "node", "text_snippet": "struct node *delete_End(struct node *head) {\n struct node *ptr, *temp;\n ptr=head;\n temp=hea"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "delete_End(struct node *head)"}, {"node_id": 306, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf(\""}, {"node_id": 308, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 6, "universal_type": "class", "name": "node{", "text_snippet": "struct node{\n int data;\n struct node *next;\n}"}, {"node_id": 7, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 13, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 25, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 32, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 43, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 44, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 53, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 107, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 116, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 117, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 126, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 127, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 140, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 141, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 150, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 151, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 210, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 211, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 219, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 220, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 226, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 227, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 312, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"node_id": 313, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\n// defining structure of a node\nstruct node{\n int data;\n struct node *next;\n};\n\n\n\n//function to print element of linked list\nvoid display(struct node *head)\n{\n struct node *ptr;\n ptr=(struct node *)malloc(sizeof(struct node));\n ptr = head;\n if(ptr == NULL)\n printf(\"\\n SLL is empty!\");\n\n else {\n while (ptr != NULL) {\n printf(\" %d \", ptr->data);\n if (ptr->next != NULL) {\n printf(\"->\");\n }\n ptr = ptr->next;\n }\n }\n\n}\n\n\n\n//function to insert element at the end of linked list\nstruct node *insert_End(struct node *head, int ele)\n{\n struct node *new_node, *ptr;\n\n new_node=(struct node *)malloc(sizeof(struct node));\n\n new_node->data= ele;\n new_node->next= NULL;\n\n ptr=head;\n\n if(ptr == NULL) {\n ptr=new_node;\n head=ptr;\n }\n else {\n\n while (ptr->next != NULL) {\n ptr = ptr->next;\n }\n ptr->next = new_node;\n }\n\n return head;\n\n}\n\n\n\n// function to delete element from the end of SLL\nstruct node *delete_End(struct node *head) {\n struct node *ptr, *temp;\n ptr=head;\n temp=head;\n\n if(head == NULL){\n printf(\"SLL is empty!\");\n return head;\n }\n else if(head->next == NULL) {\n head = NULL;\n return head;\n }\n else{\n while(ptr->next != NULL){\n temp = ptr;\n ptr = ptr->next;\n }\n temp->next = NULL;\n free(ptr);\n\n return head;\n }\n\n}\n\n\n\n// main function\nint main() {\n struct node *head;\n head = NULL;\n\n int choice, ele;\n do {\n printf(\"\\n\\n ****----- MENU -----****\");\n printf(\"\\n 1. INSERT (at End)\");\n printf(\"\\n 2. DELETE (from End)\");\n printf(\"\\n 3. DISPLAY\");\n printf(\"\\n 4. EXIT\\n\");\n printf(\"\\n\\n Enter your choice : \");\n scanf(\"%d\", &choice);\n\n switch(choice)\n {\n case 1:\n printf(\"\\n Enter the number to Insert at the end of SLL :\");\n scanf(\"%d\", &ele);\n head = insert_End(head, ele);\n printf(\"\\n Insertion done !\");\n break;\n\n case 2:\n head = delete_End(head);\n printf(\"\\n Deletion done !\");\n break;\n\n case 3:\n printf(\"\\n Elements of SLL are : \\n\");\n display(head);\n break;\n\n case 4:\n exit(0);\n\n }\n\n } while( choice != 4);\n\n return 0;\n\n}\n"}
152
c
/* * Early printk support for Microblaze. * * Copyright (C) 2007-2009 <NAME> <<EMAIL>> * Copyright (C) 2007-2009 PetaLogix * Copyright (C) 2003-2006 <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/console.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/string.h> #include <linux/tty.h> #include <linux/io.h> #include <asm/processor.h> #include <linux/fcntl.h> #include <asm/setup.h> #include <asm/prom.h> static u32 base_addr; #ifdef CONFIG_SERIAL_UARTLITE_CONSOLE static void early_printk_uartlite_putc(char c) { /* * Limit how many times we'll spin waiting for TX FIFO status. * This will prevent lockups if the base address is incorrectly * set, or any other issue on the UARTLITE. * This limit is pretty arbitrary, unless we are at about 10 baud * we'll never timeout on a working UART. */ unsigned retries = 1000000; /* read status bit - 0x8 offset */ while (--retries && (in_be32(base_addr + 8) & (1 << 3))) ; /* Only attempt the iowrite if we didn't timeout */ /* write to TX_FIFO - 0x4 offset */ if (retries) out_be32(base_addr + 4, c & 0xff); } static void early_printk_uartlite_write(struct console *unused, const char *s, unsigned n) { while (*s && n-- > 0) { if (*s == '\n') early_printk_uartlite_putc('\r'); early_printk_uartlite_putc(*s); s++; } } static struct console early_serial_uartlite_console = { .name = "earlyser", .write = early_printk_uartlite_write, .flags = CON_PRINTBUFFER | CON_BOOT, .index = -1, }; #endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */ #ifdef CONFIG_SERIAL_8250_CONSOLE static void early_printk_uart16550_putc(char c) { /* * Limit how many times we'll spin waiting for TX FIFO status. * This will prevent lockups if the base address is incorrectly * set, or any other issue on the UARTLITE. * This limit is pretty arbitrary, unless we are at about 10 baud * we'll never timeout on a working UART. */ #define UART_LSR_TEMT 0x40 /* Transmitter empty */ #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */ #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) unsigned retries = 10000; while (--retries && !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)) ; if (retries) out_be32(base_addr, c & 0xff); } static void early_printk_uart16550_write(struct console *unused, const char *s, unsigned n) { while (*s && n-- > 0) { if (*s == '\n') early_printk_uart16550_putc('\r'); early_printk_uart16550_putc(*s); s++; } } static struct console early_serial_uart16550_console = { .name = "earlyser", .write = early_printk_uart16550_write, .flags = CON_PRINTBUFFER | CON_BOOT, .index = -1, }; #endif /* CONFIG_SERIAL_8250_CONSOLE */ int __init setup_early_printk(char *opt) { int version = 0; if (early_console) return 1; base_addr = of_early_console(&version); if (base_addr) { #ifdef CONFIG_MMU early_console_reg_tlb_alloc(base_addr); #endif switch (version) { #ifdef CONFIG_SERIAL_UARTLITE_CONSOLE case UARTLITE: pr_info("Early console on uartlite at 0x%08x\n", base_addr); early_console = &early_serial_uartlite_console; break; #endif #ifdef CONFIG_SERIAL_8250_CONSOLE case UART16550: pr_info("Early console on uart16650 at 0x%08x\n", base_addr); early_console = &early_serial_uart16550_console; break; #endif default: pr_info("Unsupported early console %d\n", version); return 1; } register_console(early_console); return 0; } return 1; } /* Remap early console to virtual address and do not allocate one TLB * only for early console because of performance degression */ void __init remap_early_printk(void) { if (!early_console) return; pr_info("early_printk_console remapping from 0x%x to ", base_addr); base_addr = (u32) ioremap(base_addr, PAGE_SIZE); pr_cont("0x%x\n", base_addr); #ifdef CONFIG_MMU /* * Early console is on the top of skipped TLB entries * decrease tlb_skip size ensure that hardcoded TLB entry will be * used by generic algorithm * FIXME check if early console mapping is on the top by rereading * TLB entry and compare baseaddr * mts rtlbx, (tlb_skip - 1) * nop * mfs rX, rtlblo * nop * cmp rX, orig_base_addr */ tlb_skip -= 1; #endif } void __init disable_early_printk(void) { if (!early_console) return; pr_warn("disabling early console\n"); unregister_console(early_console); early_console = NULL; }
27.01
163
(translation_unit) "/*\n * Early printk support for Microblaze.\n *\n * Copyright (C) 2007-2009 <NAME> <<EMAIL>>\n * Copyright (C) 2007-2009 PetaLogix\n * Copyright (C) 2003-2006 <NAME> <<EMAIL>>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this archive\n * for more details.\n */\n\n#include <linux/console.h>\n#include <linux/kernel.h>\n#include <linux/init.h>\n#include <linux/string.h>\n#include <linux/tty.h>\n#include <linux/io.h>\n#include <asm/processor.h>\n#include <linux/fcntl.h>\n#include <asm/setup.h>\n#include <asm/prom.h>\n\nstatic u32 base_addr;\n\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\nstatic void early_printk_uartlite_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n unsigned retries = 1000000;\n /* read status bit - 0x8 offset */\n while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n ;\n\n /* Only attempt the iowrite if we didn't timeout */\n /* write to TX_FIFO - 0x4 offset */\n if (retries)\n out_be32(base_addr + 4, c & 0xff);\n}\n\nstatic void early_printk_uartlite_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }\n}\n\nstatic struct console early_serial_uartlite_console = {\n .name = "earlyser",\n .write = early_printk_uartlite_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};\n#endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */\n\n#ifdef CONFIG_SERIAL_8250_CONSOLE\nstatic void early_printk_uart16550_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n #define UART_LSR_TEMT 0x40 /* Transmitter empty */\n #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */\n #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n unsigned retries = 10000;\n\n while (--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n ;\n\n if (retries)\n out_be32(base_addr, c & 0xff);\n}\n\nstatic void early_printk_uart16550_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }\n}\n\nstatic struct console early_serial_uart16550_console = {\n .name = "earlyser",\n .write = early_printk_uart16550_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};\n#endif /* CONFIG_SERIAL_8250_CONSOLE */\n\nint __init setup_early_printk(char *opt)\n{\n int version = 0;\n\n if (early_console)\n return 1;\n\n base_addr = of_early_console(&version);\n if (base_addr) {\n#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif\n switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }\n\n register_console(early_console);\n return 0;\n }\n return 1;\n}\n\n/* Remap early console to virtual address and do not allocate one TLB\n * only for early console because of performance degression */\nvoid __init remap_early_printk(void)\n{\n if (!early_console)\n return;\n pr_info("early_printk_console remapping from 0x%x to ", base_addr);\n base_addr = (u32) ioremap(base_addr, PAGE_SIZE);\n pr_cont("0x%x\n", base_addr);\n\n#ifdef CONFIG_MMU\n /*\n * Early console is on the top of skipped TLB entries\n * decrease tlb_skip size ensure that hardcoded TLB entry will be\n * used by generic algorithm\n * FIXME check if early console mapping is on the top by rereading\n * TLB entry and compare baseaddr\n * mts rtlbx, (tlb_skip - 1)\n * nop\n * mfs rX, rtlblo\n * nop\n * cmp rX, orig_base_addr\n */\n tlb_skip -= 1;\n#endif\n}\n\nvoid __init disable_early_printk(void)\n{\n if (!early_console)\n return;\n pr_warn("disabling early console\n");\n unregister_console(early_console);\n early_console = NULL;\n}\n" (comment) "/*\n * Early printk support for Microblaze.\n *\n * Copyright (C) 2007-2009 <NAME> <<EMAIL>>\n * Copyright (C) 2007-2009 PetaLogix\n * Copyright (C) 2003-2006 <NAME> <<EMAIL>>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this archive\n * for more details.\n */" (preproc_include) "#include <linux/console.h>\n" (#include) "#include" (system_lib_string) "<linux/console.h>" (preproc_include) "#include <linux/kernel.h>\n" (#include) "#include" (system_lib_string) "<linux/kernel.h>" (preproc_include) "#include <linux/init.h>\n" (#include) "#include" (system_lib_string) "<linux/init.h>" (preproc_include) "#include <linux/string.h>\n" (#include) "#include" (system_lib_string) "<linux/string.h>" (preproc_include) "#include <linux/tty.h>\n" (#include) "#include" (system_lib_string) "<linux/tty.h>" (preproc_include) "#include <linux/io.h>\n" (#include) "#include" (system_lib_string) "<linux/io.h>" (preproc_include) "#include <asm/processor.h>\n" (#include) "#include" (system_lib_string) "<asm/processor.h>" (preproc_include) "#include <linux/fcntl.h>\n" (#include) "#include" (system_lib_string) "<linux/fcntl.h>" (preproc_include) "#include <asm/setup.h>\n" (#include) "#include" (system_lib_string) "<asm/setup.h>" (preproc_include) "#include <asm/prom.h>\n" (#include) "#include" (system_lib_string) "<asm/prom.h>" (declaration) "static u32 base_addr;" (storage_class_specifier) "static" (static) "static" (type_identifier) "u32" (identifier) "base_addr" (;) ";" (preproc_ifdef) "#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\nstatic void early_printk_uartlite_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n unsigned retries = 1000000;\n /* read status bit - 0x8 offset */\n while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n ;\n\n /* Only attempt the iowrite if we didn't timeout */\n /* write to TX_FIFO - 0x4 offset */\n if (retries)\n out_be32(base_addr + 4, c & 0xff);\n}\n\nstatic void early_printk_uartlite_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }\n}\n\nstatic struct console early_serial_uartlite_console = {\n .name = "earlyser",\n .write = early_printk_uartlite_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SERIAL_UARTLITE_CONSOLE" (function_definition) "static void early_printk_uartlite_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n unsigned retries = 1000000;\n /* read status bit - 0x8 offset */\n while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n ;\n\n /* Only attempt the iowrite if we didn't timeout */\n /* write to TX_FIFO - 0x4 offset */\n if (retries)\n out_be32(base_addr + 4, c & 0xff);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "early_printk_uartlite_putc(char c)" (identifier) "early_printk_uartlite_putc" (parameter_list) "(char c)" (() "(" (parameter_declaration) "char c" (primitive_type) "char" (identifier) "c" ()) ")" (compound_statement) "{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n unsigned retries = 1000000;\n /* read status bit - 0x8 offset */\n while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n ;\n\n /* Only attempt the iowrite if we didn't timeout */\n /* write to TX_FIFO - 0x4 offset */\n if (retries)\n out_be32(base_addr + 4, c & 0xff);\n}" ({) "{" (comment) "/*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */" (declaration) "unsigned retries = 1000000;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "retries = 1000000" (identifier) "retries" (=) "=" (number_literal) "1000000" (;) ";" (comment) "/* read status bit - 0x8 offset */" (while_statement) "while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n ;" (while) "while" (parenthesized_expression) "(--retries && (in_be32(base_addr + 8) & (1 << 3)))" (() "(" (binary_expression) "--retries && (in_be32(base_addr + 8) & (1 << 3))" (update_expression) "--retries" (--) "--" (identifier) "retries" (&&) "&&" (parenthesized_expression) "(in_be32(base_addr + 8) & (1 << 3))" (() "(" (binary_expression) "in_be32(base_addr + 8) & (1 << 3)" (call_expression) "in_be32(base_addr + 8)" (identifier) "in_be32" (argument_list) "(base_addr + 8)" (() "(" (binary_expression) "base_addr + 8" (identifier) "base_addr" (+) "+" (number_literal) "8" ()) ")" (&) "&" (parenthesized_expression) "(1 << 3)" (() "(" (binary_expression) "1 << 3" (number_literal) "1" (<<) "<<" (number_literal) "3" ()) ")" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (comment) "/* Only attempt the iowrite if we didn't timeout */" (comment) "/* write to TX_FIFO - 0x4 offset */" (if_statement) "if (retries)\n out_be32(base_addr + 4, c & 0xff);" (if) "if" (parenthesized_expression) "(retries)" (() "(" (identifier) "retries" ()) ")" (expression_statement) "out_be32(base_addr + 4, c & 0xff);" (call_expression) "out_be32(base_addr + 4, c & 0xff)" (identifier) "out_be32" (argument_list) "(base_addr + 4, c & 0xff)" (() "(" (binary_expression) "base_addr + 4" (identifier) "base_addr" (+) "+" (number_literal) "4" (,) "," (binary_expression) "c & 0xff" (identifier) "c" (&) "&" (number_literal) "0xff" ()) ")" (;) ";" (}) "}" (function_definition) "static void early_printk_uartlite_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "early_printk_uartlite_write(struct console *unused,\n const char *s, unsigned n)" (identifier) "early_printk_uartlite_write" (parameter_list) "(struct console *unused,\n const char *s, unsigned n)" (() "(" (parameter_declaration) "struct console *unused" (struct_specifier) "struct console" (struct) "struct" (type_identifier) "console" (pointer_declarator) "*unused" (*) "*" (identifier) "unused" (,) "," (parameter_declaration) "const char *s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "unsigned n" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "n" ()) ")" (compound_statement) "{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }\n}" ({) "{" (while_statement) "while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }" (while) "while" (parenthesized_expression) "(*s && n-- > 0)" (() "(" (binary_expression) "*s && n-- > 0" (pointer_expression) "*s" (*) "*" (identifier) "s" (&&) "&&" (binary_expression) "n-- > 0" (update_expression) "n--" (identifier) "n" (--) "--" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (*s == '\n')\n early_printk_uartlite_putc('\r');\n early_printk_uartlite_putc(*s);\n s++;\n }" ({) "{" (if_statement) "if (*s == '\n')\n early_printk_uartlite_putc('\r');" (if) "if" (parenthesized_expression) "(*s == '\n')" (() "(" (binary_expression) "*s == '\n'" (pointer_expression) "*s" (*) "*" (identifier) "s" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (expression_statement) "early_printk_uartlite_putc('\r');" (call_expression) "early_printk_uartlite_putc('\r')" (identifier) "early_printk_uartlite_putc" (argument_list) "('\r')" (() "(" (char_literal) "'\r'" (') "'" (escape_sequence) "\r" (') "'" ()) ")" (;) ";" (expression_statement) "early_printk_uartlite_putc(*s);" (call_expression) "early_printk_uartlite_putc(*s)" (identifier) "early_printk_uartlite_putc" (argument_list) "(*s)" (() "(" (pointer_expression) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (expression_statement) "s++;" (update_expression) "s++" (identifier) "s" (++) "++" (;) ";" (}) "}" (}) "}" (declaration) "static struct console early_serial_uartlite_console = {\n .name = "earlyser",\n .write = early_printk_uartlite_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct console" (struct) "struct" (type_identifier) "console" (init_declarator) "early_serial_uartlite_console = {\n .name = "earlyser",\n .write = early_printk_uartlite_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n}" (identifier) "early_serial_uartlite_console" (=) "=" (initializer_list) "{\n .name = "earlyser",\n .write = early_printk_uartlite_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n}" ({) "{" (initializer_pair) ".name = "earlyser"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""earlyser"" (") """ (string_content) "earlyser" (") """ (,) "," (initializer_pair) ".write = early_printk_uartlite_write" (field_designator) ".write" (.) "." (field_identifier) "write" (=) "=" (identifier) "early_printk_uartlite_write" (,) "," (initializer_pair) ".flags = CON_PRINTBUFFER | CON_BOOT" (field_designator) ".flags" (.) "." (field_identifier) "flags" (=) "=" (binary_expression) "CON_PRINTBUFFER | CON_BOOT" (identifier) "CON_PRINTBUFFER" (|) "|" (identifier) "CON_BOOT" (,) "," (initializer_pair) ".index = -1" (field_designator) ".index" (.) "." (field_identifier) "index" (=) "=" (number_literal) "-1" (,) "," (}) "}" (;) ";" (#endif) "#endif" (comment) "/* CONFIG_SERIAL_UARTLITE_CONSOLE */" (preproc_ifdef) "#ifdef CONFIG_SERIAL_8250_CONSOLE\nstatic void early_printk_uart16550_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n #define UART_LSR_TEMT 0x40 /* Transmitter empty */\n #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */\n #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n unsigned retries = 10000;\n\n while (--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n ;\n\n if (retries)\n out_be32(base_addr, c & 0xff);\n}\n\nstatic void early_printk_uart16550_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }\n}\n\nstatic struct console early_serial_uart16550_console = {\n .name = "earlyser",\n .write = early_printk_uart16550_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SERIAL_8250_CONSOLE" (function_definition) "static void early_printk_uart16550_putc(char c)\n{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n #define UART_LSR_TEMT 0x40 /* Transmitter empty */\n #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */\n #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n unsigned retries = 10000;\n\n while (--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n ;\n\n if (retries)\n out_be32(base_addr, c & 0xff);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "early_printk_uart16550_putc(char c)" (identifier) "early_printk_uart16550_putc" (parameter_list) "(char c)" (() "(" (parameter_declaration) "char c" (primitive_type) "char" (identifier) "c" ()) ")" (compound_statement) "{\n /*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */\n\n #define UART_LSR_TEMT 0x40 /* Transmitter empty */\n #define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */\n #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n unsigned retries = 10000;\n\n while (--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n ;\n\n if (retries)\n out_be32(base_addr, c & 0xff);\n}" ({) "{" (comment) "/*\n * Limit how many times we'll spin waiting for TX FIFO status.\n * This will prevent lockups if the base address is incorrectly\n * set, or any other issue on the UARTLITE.\n * This limit is pretty arbitrary, unless we are at about 10 baud\n * we'll never timeout on a working UART.\n */" (preproc_def) "#define UART_LSR_TEMT 0x40 /* Transmitter empty */\n" (#define) "#define" (identifier) "UART_LSR_TEMT" (preproc_arg) "0x40 " (comment) "/* Transmitter empty */" (preproc_def) "#define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */\n" (#define) "#define" (identifier) "UART_LSR_THRE" (preproc_arg) "0x20 " (comment) "/* Transmit-hold-register empty */" (preproc_def) "#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n" (#define) "#define" (identifier) "BOTH_EMPTY" (preproc_arg) "(UART_LSR_TEMT | UART_LSR_THRE)" (declaration) "unsigned retries = 10000;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "retries = 10000" (identifier) "retries" (=) "=" (number_literal) "10000" (;) ";" (while_statement) "while (--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n ;" (while) "while" (parenthesized_expression) "(--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))" (() "(" (binary_expression) "--retries &&\n !((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)" (update_expression) "--retries" (--) "--" (identifier) "retries" (&&) "&&" (unary_expression) "!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)" (!) "!" (parenthesized_expression) "((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)" (() "(" (binary_expression) "(in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY" (parenthesized_expression) "(in_be32(base_addr + 0x14) & BOTH_EMPTY)" (() "(" (binary_expression) "in_be32(base_addr + 0x14) & BOTH_EMPTY" (call_expression) "in_be32(base_addr + 0x14)" (identifier) "in_be32" (argument_list) "(base_addr + 0x14)" (() "(" (binary_expression) "base_addr + 0x14" (identifier) "base_addr" (+) "+" (number_literal) "0x14" ()) ")" (&) "&" (identifier) "BOTH_EMPTY" ()) ")" (==) "==" (identifier) "BOTH_EMPTY" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (if_statement) "if (retries)\n out_be32(base_addr, c & 0xff);" (if) "if" (parenthesized_expression) "(retries)" (() "(" (identifier) "retries" ()) ")" (expression_statement) "out_be32(base_addr, c & 0xff);" (call_expression) "out_be32(base_addr, c & 0xff)" (identifier) "out_be32" (argument_list) "(base_addr, c & 0xff)" (() "(" (identifier) "base_addr" (,) "," (binary_expression) "c & 0xff" (identifier) "c" (&) "&" (number_literal) "0xff" ()) ")" (;) ";" (}) "}" (function_definition) "static void early_printk_uart16550_write(struct console *unused,\n const char *s, unsigned n)\n{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "early_printk_uart16550_write(struct console *unused,\n const char *s, unsigned n)" (identifier) "early_printk_uart16550_write" (parameter_list) "(struct console *unused,\n const char *s, unsigned n)" (() "(" (parameter_declaration) "struct console *unused" (struct_specifier) "struct console" (struct) "struct" (type_identifier) "console" (pointer_declarator) "*unused" (*) "*" (identifier) "unused" (,) "," (parameter_declaration) "const char *s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "unsigned n" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "n" ()) ")" (compound_statement) "{\n while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }\n}" ({) "{" (while_statement) "while (*s && n-- > 0) {\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }" (while) "while" (parenthesized_expression) "(*s && n-- > 0)" (() "(" (binary_expression) "*s && n-- > 0" (pointer_expression) "*s" (*) "*" (identifier) "s" (&&) "&&" (binary_expression) "n-- > 0" (update_expression) "n--" (identifier) "n" (--) "--" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (*s == '\n')\n early_printk_uart16550_putc('\r');\n early_printk_uart16550_putc(*s);\n s++;\n }" ({) "{" (if_statement) "if (*s == '\n')\n early_printk_uart16550_putc('\r');" (if) "if" (parenthesized_expression) "(*s == '\n')" (() "(" (binary_expression) "*s == '\n'" (pointer_expression) "*s" (*) "*" (identifier) "s" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (expression_statement) "early_printk_uart16550_putc('\r');" (call_expression) "early_printk_uart16550_putc('\r')" (identifier) "early_printk_uart16550_putc" (argument_list) "('\r')" (() "(" (char_literal) "'\r'" (') "'" (escape_sequence) "\r" (') "'" ()) ")" (;) ";" (expression_statement) "early_printk_uart16550_putc(*s);" (call_expression) "early_printk_uart16550_putc(*s)" (identifier) "early_printk_uart16550_putc" (argument_list) "(*s)" (() "(" (pointer_expression) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (expression_statement) "s++;" (update_expression) "s++" (identifier) "s" (++) "++" (;) ";" (}) "}" (}) "}" (declaration) "static struct console early_serial_uart16550_console = {\n .name = "earlyser",\n .write = early_printk_uart16550_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct console" (struct) "struct" (type_identifier) "console" (init_declarator) "early_serial_uart16550_console = {\n .name = "earlyser",\n .write = early_printk_uart16550_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n}" (identifier) "early_serial_uart16550_console" (=) "=" (initializer_list) "{\n .name = "earlyser",\n .write = early_printk_uart16550_write,\n .flags = CON_PRINTBUFFER | CON_BOOT,\n .index = -1,\n}" ({) "{" (initializer_pair) ".name = "earlyser"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""earlyser"" (") """ (string_content) "earlyser" (") """ (,) "," (initializer_pair) ".write = early_printk_uart16550_write" (field_designator) ".write" (.) "." (field_identifier) "write" (=) "=" (identifier) "early_printk_uart16550_write" (,) "," (initializer_pair) ".flags = CON_PRINTBUFFER | CON_BOOT" (field_designator) ".flags" (.) "." (field_identifier) "flags" (=) "=" (binary_expression) "CON_PRINTBUFFER | CON_BOOT" (identifier) "CON_PRINTBUFFER" (|) "|" (identifier) "CON_BOOT" (,) "," (initializer_pair) ".index = -1" (field_designator) ".index" (.) "." (field_identifier) "index" (=) "=" (number_literal) "-1" (,) "," (}) "}" (;) ";" (#endif) "#endif" (comment) "/* CONFIG_SERIAL_8250_CONSOLE */" (function_definition) "int __init setup_early_printk(char *opt)\n{\n int version = 0;\n\n if (early_console)\n return 1;\n\n base_addr = of_early_console(&version);\n if (base_addr) {\n#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif\n switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }\n\n register_console(early_console);\n return 0;\n }\n return 1;\n}" (primitive_type) "int" (ERROR) "__init" (identifier) "__init" (function_declarator) "setup_early_printk(char *opt)" (identifier) "setup_early_printk" (parameter_list) "(char *opt)" (() "(" (parameter_declaration) "char *opt" (primitive_type) "char" (pointer_declarator) "*opt" (*) "*" (identifier) "opt" ()) ")" (compound_statement) "{\n int version = 0;\n\n if (early_console)\n return 1;\n\n base_addr = of_early_console(&version);\n if (base_addr) {\n#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif\n switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }\n\n register_console(early_console);\n return 0;\n }\n return 1;\n}" ({) "{" (declaration) "int version = 0;" (primitive_type) "int" (init_declarator) "version = 0" (identifier) "version" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (early_console)\n return 1;" (if) "if" (parenthesized_expression) "(early_console)" (() "(" (identifier) "early_console" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "base_addr = of_early_console(&version);" (assignment_expression) "base_addr = of_early_console(&version)" (identifier) "base_addr" (=) "=" (call_expression) "of_early_console(&version)" (identifier) "of_early_console" (argument_list) "(&version)" (() "(" (pointer_expression) "&version" (&) "&" (identifier) "version" ()) ")" (;) ";" (if_statement) "if (base_addr) {\n#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif\n switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }\n\n register_console(early_console);\n return 0;\n }" (if) "if" (parenthesized_expression) "(base_addr)" (() "(" (identifier) "base_addr" ()) ")" (compound_statement) "{\n#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif\n switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }\n\n register_console(early_console);\n return 0;\n }" ({) "{" (preproc_ifdef) "#ifdef CONFIG_MMU\n early_console_reg_tlb_alloc(base_addr);\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_MMU" (expression_statement) "early_console_reg_tlb_alloc(base_addr);" (call_expression) "early_console_reg_tlb_alloc(base_addr)" (identifier) "early_console_reg_tlb_alloc" (argument_list) "(base_addr)" (() "(" (identifier) "base_addr" ()) ")" (;) ";" (#endif) "#endif" (switch_statement) "switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }" (switch) "switch" (parenthesized_expression) "(version)" (() "(" (identifier) "version" ()) ")" (compound_statement) "{\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif\n default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;\n }" ({) "{" (preproc_ifdef) "#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SERIAL_UARTLITE_CONSOLE" (case_statement) "case UARTLITE:\n pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uartlite_console;\n break;" (case) "case" (identifier) "UARTLITE" (:) ":" (expression_statement) "pr_info("Early console on uartlite at 0x%08x\n",\n base_addr);" (call_expression) "pr_info("Early console on uartlite at 0x%08x\n",\n base_addr)" (identifier) "pr_info" (argument_list) "("Early console on uartlite at 0x%08x\n",\n base_addr)" (() "(" (string_literal) ""Early console on uartlite at 0x%08x\n"" (") """ (string_content) "Early console on uartlite at 0x%08x" (escape_sequence) "\n" (") """ (,) "," (identifier) "base_addr" ()) ")" (;) ";" (expression_statement) "early_console = &early_serial_uartlite_console;" (assignment_expression) "early_console = &early_serial_uartlite_console" (identifier) "early_console" (=) "=" (pointer_expression) "&early_serial_uartlite_console" (&) "&" (identifier) "early_serial_uartlite_console" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (#endif) "#endif" (preproc_ifdef) "#ifdef CONFIG_SERIAL_8250_CONSOLE\n case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SERIAL_8250_CONSOLE" (case_statement) "case UART16550:\n pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);\n early_console = &early_serial_uart16550_console;\n break;" (case) "case" (identifier) "UART16550" (:) ":" (expression_statement) "pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr);" (call_expression) "pr_info("Early console on uart16650 at 0x%08x\n",\n base_addr)" (identifier) "pr_info" (argument_list) "("Early console on uart16650 at 0x%08x\n",\n base_addr)" (() "(" (string_literal) ""Early console on uart16650 at 0x%08x\n"" (") """ (string_content) "Early console on uart16650 at 0x%08x" (escape_sequence) "\n" (") """ (,) "," (identifier) "base_addr" ()) ")" (;) ";" (expression_statement) "early_console = &early_serial_uart16550_console;" (assignment_expression) "early_console = &early_serial_uart16550_console" (identifier) "early_console" (=) "=" (pointer_expression) "&early_serial_uart16550_console" (&) "&" (identifier) "early_serial_uart16550_console" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (#endif) "#endif" (case_statement) "default:\n pr_info("Unsupported early console %d\n",\n version);\n return 1;" (default) "default" (:) ":" (expression_statement) "pr_info("Unsupported early console %d\n",\n version);" (call_expression) "pr_info("Unsupported early console %d\n",\n version)" (identifier) "pr_info" (argument_list) "("Unsupported early console %d\n",\n version)" (() "(" (string_literal) ""Unsupported early console %d\n"" (") """ (string_content) "Unsupported early console %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "version" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "register_console(early_console);" (call_expression) "register_console(early_console)" (identifier) "register_console" (argument_list) "(early_console)" (() "(" (identifier) "early_console" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "/* Remap early console to virtual address and do not allocate one TLB\n * only for early console because of performance degression */" (function_definition) "void __init remap_early_printk(void)\n{\n if (!early_console)\n return;\n pr_info("early_printk_console remapping from 0x%x to ", base_addr);\n base_addr = (u32) ioremap(base_addr, PAGE_SIZE);\n pr_cont("0x%x\n", base_addr);\n\n#ifdef CONFIG_MMU\n /*\n * Early console is on the top of skipped TLB entries\n * decrease tlb_skip size ensure that hardcoded TLB entry will be\n * used by generic algorithm\n * FIXME check if early console mapping is on the top by rereading\n * TLB entry and compare baseaddr\n * mts rtlbx, (tlb_skip - 1)\n * nop\n * mfs rX, rtlblo\n * nop\n * cmp rX, orig_base_addr\n */\n tlb_skip -= 1;\n#endif\n}" (primitive_type) "void" (ERROR) "__init" (identifier) "__init" (function_declarator) "remap_early_printk(void)" (identifier) "remap_early_printk" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n if (!early_console)\n return;\n pr_info("early_printk_console remapping from 0x%x to ", base_addr);\n base_addr = (u32) ioremap(base_addr, PAGE_SIZE);\n pr_cont("0x%x\n", base_addr);\n\n#ifdef CONFIG_MMU\n /*\n * Early console is on the top of skipped TLB entries\n * decrease tlb_skip size ensure that hardcoded TLB entry will be\n * used by generic algorithm\n * FIXME check if early console mapping is on the top by rereading\n * TLB entry and compare baseaddr\n * mts rtlbx, (tlb_skip - 1)\n * nop\n * mfs rX, rtlblo\n * nop\n * cmp rX, orig_base_addr\n */\n tlb_skip -= 1;\n#endif\n}" ({) "{" (if_statement) "if (!early_console)\n return;" (if) "if" (parenthesized_expression) "(!early_console)" (() "(" (unary_expression) "!early_console" (!) "!" (identifier) "early_console" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "pr_info("early_printk_console remapping from 0x%x to ", base_addr);" (call_expression) "pr_info("early_printk_console remapping from 0x%x to ", base_addr)" (identifier) "pr_info" (argument_list) "("early_printk_console remapping from 0x%x to ", base_addr)" (() "(" (string_literal) ""early_printk_console remapping from 0x%x to "" (") """ (string_content) "early_printk_console remapping from 0x%x to " (") """ (,) "," (identifier) "base_addr" ()) ")" (;) ";" (expression_statement) "base_addr = (u32) ioremap(base_addr, PAGE_SIZE);" (assignment_expression) "base_addr = (u32) ioremap(base_addr, PAGE_SIZE)" (identifier) "base_addr" (=) "=" (cast_expression) "(u32) ioremap(base_addr, PAGE_SIZE)" (() "(" (type_descriptor) "u32" (type_identifier) "u32" ()) ")" (call_expression) "ioremap(base_addr, PAGE_SIZE)" (identifier) "ioremap" (argument_list) "(base_addr, PAGE_SIZE)" (() "(" (identifier) "base_addr" (,) "," (identifier) "PAGE_SIZE" ()) ")" (;) ";" (expression_statement) "pr_cont("0x%x\n", base_addr);" (call_expression) "pr_cont("0x%x\n", base_addr)" (identifier) "pr_cont" (argument_list) "("0x%x\n", base_addr)" (() "(" (string_literal) ""0x%x\n"" (") """ (string_content) "0x%x" (escape_sequence) "\n" (") """ (,) "," (identifier) "base_addr" ()) ")" (;) ";" (preproc_ifdef) "#ifdef CONFIG_MMU\n /*\n * Early console is on the top of skipped TLB entries\n * decrease tlb_skip size ensure that hardcoded TLB entry will be\n * used by generic algorithm\n * FIXME check if early console mapping is on the top by rereading\n * TLB entry and compare baseaddr\n * mts rtlbx, (tlb_skip - 1)\n * nop\n * mfs rX, rtlblo\n * nop\n * cmp rX, orig_base_addr\n */\n tlb_skip -= 1;\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_MMU" (comment) "/*\n * Early console is on the top of skipped TLB entries\n * decrease tlb_skip size ensure that hardcoded TLB entry will be\n * used by generic algorithm\n * FIXME check if early console mapping is on the top by rereading\n * TLB entry and compare baseaddr\n * mts rtlbx, (tlb_skip - 1)\n * nop\n * mfs rX, rtlblo\n * nop\n * cmp rX, orig_base_addr\n */" (expression_statement) "tlb_skip -= 1;" (assignment_expression) "tlb_skip -= 1" (identifier) "tlb_skip" (-=) "-=" (number_literal) "1" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "void __init disable_early_printk(void)\n{\n if (!early_console)\n return;\n pr_warn("disabling early console\n");\n unregister_console(early_console);\n early_console = NULL;\n}" (primitive_type) "void" (ERROR) "__init" (identifier) "__init" (function_declarator) "disable_early_printk(void)" (identifier) "disable_early_printk" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n if (!early_console)\n return;\n pr_warn("disabling early console\n");\n unregister_console(early_console);\n early_console = NULL;\n}" ({) "{" (if_statement) "if (!early_console)\n return;" (if) "if" (parenthesized_expression) "(!early_console)" (() "(" (unary_expression) "!early_console" (!) "!" (identifier) "early_console" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "pr_warn("disabling early console\n");" (call_expression) "pr_warn("disabling early console\n")" (identifier) "pr_warn" (argument_list) "("disabling early console\n")" (() "(" (string_literal) ""disabling early console\n"" (") """ (string_content) "disabling early console" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "unregister_console(early_console);" (call_expression) "unregister_console(early_console)" (identifier) "unregister_console" (argument_list) "(early_console)" (() "(" (identifier) "early_console" ()) ")" (;) ";" (expression_statement) "early_console = NULL;" (assignment_expression) "early_console = NULL" (identifier) "early_console" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}"
812
3
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 27.01, "nodes": 510, "errors": 0, "source_hash": "cbf497e943f573ff117deba4cfaebd792fc4444599cec7c3cf6036afc544ce7d", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/console.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/console.h>", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/kernel.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<linux/kernel.h>", "parent": 3, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/init.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/init.h>", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/string.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/string.h>", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/tty.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/tty.h>", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 22}}, {"id": 15, "type": "preproc_include", "text": "#include <linux/io.h>\n", "parent": null, "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": "system_lib_string", "text": "<linux/io.h>", "parent": 15, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include <asm/processor.h>\n", "parent": null, "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": "system_lib_string", "text": "<asm/processor.h>", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 26}}, {"id": 21, "type": "preproc_include", "text": "#include <linux/fcntl.h>\n", "parent": null, "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": "system_lib_string", "text": "<linux/fcntl.h>", "parent": 21, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 24}}, {"id": 24, "type": "preproc_include", "text": "#include <asm/setup.h>\n", "parent": null, "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": "system_lib_string", "text": "<asm/setup.h>", "parent": 24, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 22}}, {"id": 27, "type": "preproc_include", "text": "#include <asm/prom.h>\n", "parent": null, "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": "system_lib_string", "text": "<asm/prom.h>", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 21}}, {"id": 30, "type": "declaration", "text": "static u32 base_addr;", "parent": null, "children": [31, 32], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 21}}, {"id": 31, "type": "type_identifier", "text": "u32", "parent": 30, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 10}}, {"id": 32, "type": "identifier", "text": "base_addr", "parent": 30, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 33, "type": "preproc_ifdef", "text": "#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\nstatic void early_printk_uartlite_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\tunsigned retries = 1000000;\n\t/* read status bit - 0x8 offset */\n\twhile (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n\t\t;\n\n\t/* Only attempt the iowrite if we didn't timeout */\n\t/* write to TX_FIFO - 0x4 offset */\n\tif (retries)\n\t\tout_be32(base_addr + 4, c & 0xff);\n}\n\nstatic void early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uartlite_putc('\\r');\n\t\tearly_printk_uartlite_putc(*s);\n\t\ts++;\n\t}\n}\n\nstatic struct console early_serial_uartlite_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uartlite_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};\n#endif", "parent": null, "children": [34, 35, 36, 85, 146, 176], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 34, "type": "#ifdef", "text": "#ifdef", "parent": 33, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 35, "type": "identifier", "text": "CONFIG_SERIAL_UARTLITE_CONSOLE", "parent": 33, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 37}}, {"id": 36, "type": "function_definition", "text": "static void early_printk_uartlite_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\tunsigned retries = 1000000;\n\t/* read status bit - 0x8 offset */\n\twhile (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n\t\t;\n\n\t/* Only attempt the iowrite if we didn't timeout */\n\t/* write to TX_FIFO - 0x4 offset */\n\tif (retries)\n\t\tout_be32(base_addr + 4, c & 0xff);\n}", "parent": 33, "children": [37, 38], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 11}}, {"id": 38, "type": "function_declarator", "text": "early_printk_uartlite_putc(char c)", "parent": 36, "children": [39, 40], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 46}}, {"id": 39, "type": "identifier", "text": "early_printk_uartlite_putc", "parent": 38, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 38}}, {"id": 40, "type": "parameter_list", "text": "(char c)", "parent": 38, "children": [41], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 46}}, {"id": 41, "type": "parameter_declaration", "text": "char c", "parent": 40, "children": [42, 43], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 45}}, {"id": 42, "type": "primitive_type", "text": "char", "parent": 41, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 43}}, {"id": 43, "type": "identifier", "text": "c", "parent": 41, "children": [], "start_point": {"row": 26, "column": 44}, "end_point": {"row": 26, "column": 45}}, {"id": 44, "type": "declaration", "text": "unsigned retries = 1000000;", "parent": 36, "children": [45, 47], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 28}}, {"id": 45, "type": "sized_type_specifier", "text": "unsigned", "parent": 44, "children": [46], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 9}}, {"id": 46, "type": "unsigned", "text": "unsigned", "parent": 45, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 9}}, {"id": 47, "type": "init_declarator", "text": "retries = 1000000", "parent": 44, "children": [48, 49, 50], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 27}}, {"id": 48, "type": "identifier", "text": "retries", "parent": 47, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 17}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 19}}, {"id": 50, "type": "number_literal", "text": "1000000", "parent": 47, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 27}}, {"id": 51, "type": "while_statement", "text": "while (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n\t\t;", "parent": 36, "children": [52], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 39, "column": 3}}, {"id": 52, "type": "parenthesized_expression", "text": "(--retries && (in_be32(base_addr + 8) & (1 << 3)))", "parent": 51, "children": [53], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 57}}, {"id": 53, "type": "binary_expression", "text": "--retries && (in_be32(base_addr + 8) & (1 << 3))", "parent": 52, "children": [54, 57, 58], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 56}}, {"id": 54, "type": "update_expression", "text": "--retries", "parent": 53, "children": [55, 56], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 17}}, {"id": 55, "type": "--", "text": "--", "parent": 54, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 10}}, {"id": 56, "type": "identifier", "text": "retries", "parent": 54, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 17}}, {"id": 57, "type": "&&", "text": "&&", "parent": 53, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 20}}, {"id": 58, "type": "parenthesized_expression", "text": "(in_be32(base_addr + 8) & (1 << 3))", "parent": 53, "children": [59], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 56}}, {"id": 59, "type": "binary_expression", "text": "in_be32(base_addr + 8) & (1 << 3)", "parent": 58, "children": [60, 67], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 55}}, {"id": 60, "type": "call_expression", "text": "in_be32(base_addr + 8)", "parent": 59, "children": [61, 62], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 44}}, {"id": 61, "type": "identifier", "text": "in_be32", "parent": 60, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 29}}, {"id": 62, "type": "argument_list", "text": "(base_addr + 8)", "parent": 60, "children": [63], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 44}}, {"id": 63, "type": "binary_expression", "text": "base_addr + 8", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 43}}, {"id": 64, "type": "identifier", "text": "base_addr", "parent": 63, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 39}}, {"id": 65, "type": "+", "text": "+", "parent": 63, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 41}}, {"id": 66, "type": "number_literal", "text": "8", "parent": 63, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 43}}, {"id": 67, "type": "parenthesized_expression", "text": "(1 << 3)", "parent": 59, "children": [68], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 55}}, {"id": 68, "type": "binary_expression", "text": "1 << 3", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 54}}, {"id": 69, "type": "number_literal", "text": "1", "parent": 68, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 49}}, {"id": 70, "type": "<<", "text": "<<", "parent": 68, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 52}}, {"id": 71, "type": "number_literal", "text": "3", "parent": 68, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 54}}, {"id": 72, "type": "if_statement", "text": "if (retries)\n\t\tout_be32(base_addr + 4, c & 0xff);", "parent": 36, "children": [73], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 44, "column": 36}}, {"id": 73, "type": "parenthesized_expression", "text": "(retries)", "parent": 72, "children": [74], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 74, "type": "identifier", "text": "retries", "parent": 73, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 12}}, {"id": 75, "type": "call_expression", "text": "out_be32(base_addr + 4, c & 0xff)", "parent": 72, "children": [76, 77], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 35}}, {"id": 76, "type": "identifier", "text": "out_be32", "parent": 75, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 10}}, {"id": 77, "type": "argument_list", "text": "(base_addr + 4, c & 0xff)", "parent": 75, "children": [78, 82], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 35}}, {"id": 78, "type": "binary_expression", "text": "base_addr + 4", "parent": 77, "children": [79, 80, 81], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 24}}, {"id": 79, "type": "identifier", "text": "base_addr", "parent": 78, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 20}}, {"id": 80, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 81, "type": "number_literal", "text": "4", "parent": 78, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 24}}, {"id": 82, "type": "binary_expression", "text": "c & 0xff", "parent": 77, "children": [83, 84], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 34}}, {"id": 83, "type": "identifier", "text": "c", "parent": 82, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 27}}, {"id": 84, "type": "number_literal", "text": "0xff", "parent": 82, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 34}}, {"id": 85, "type": "function_definition", "text": "static void early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uartlite_putc('\\r');\n\t\tearly_printk_uartlite_putc(*s);\n\t\ts++;\n\t}\n}", "parent": 33, "children": [86, 87], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 56, "column": 1}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 11}}, {"id": 87, "type": "function_declarator", "text": "early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)", "parent": 85, "children": [88, 89], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 48, "column": 31}}, {"id": 88, "type": "identifier", "text": "early_printk_uartlite_write", "parent": 87, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 39}}, {"id": 89, "type": "parameter_list", "text": "(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)", "parent": 87, "children": [90, 97, 102], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 48, "column": 31}}, {"id": 90, "type": "parameter_declaration", "text": "struct console *unused", "parent": 89, "children": [91, 94], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 62}}, {"id": 91, "type": "struct_specifier", "text": "struct console", "parent": 90, "children": [92, 93], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 54}}, {"id": 92, "type": "struct", "text": "struct", "parent": 91, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 46}}, {"id": 93, "type": "type_identifier", "text": "console", "parent": 91, "children": [], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 47, "column": 54}}, {"id": 94, "type": "pointer_declarator", "text": "*unused", "parent": 90, "children": [95, 96], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 62}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 56}}, {"id": 96, "type": "identifier", "text": "unused", "parent": 94, "children": [], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 62}}, {"id": 97, "type": "parameter_declaration", "text": "const char *s", "parent": 89, "children": [98, 99], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 18}}, {"id": 98, "type": "primitive_type", "text": "char", "parent": 97, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 99, "type": "pointer_declarator", "text": "*s", "parent": 97, "children": [100, 101], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 18}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 17}}, {"id": 101, "type": "identifier", "text": "s", "parent": 99, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 102, "type": "parameter_declaration", "text": "unsigned n", "parent": 89, "children": [103, 105], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 30}}, {"id": 103, "type": "sized_type_specifier", "text": "unsigned", "parent": 102, "children": [104], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 28}}, {"id": 104, "type": "unsigned", "text": "unsigned", "parent": 103, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 28}}, {"id": 105, "type": "identifier", "text": "n", "parent": 102, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 30}}, {"id": 106, "type": "while_statement", "text": "while (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uartlite_putc('\\r');\n\t\tearly_printk_uartlite_putc(*s);\n\t\ts++;\n\t}", "parent": 85, "children": [107], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 55, "column": 2}}, {"id": 107, "type": "parenthesized_expression", "text": "(*s && n-- > 0)", "parent": 106, "children": [108], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 22}}, {"id": 108, "type": "binary_expression", "text": "*s && n-- > 0", "parent": 107, "children": [109, 112, 113], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 21}}, {"id": 109, "type": "pointer_expression", "text": "*s", "parent": 108, "children": [110, 111], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 10}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 111, "type": "identifier", "text": "s", "parent": 109, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 112, "type": "&&", "text": "&&", "parent": 108, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 13}}, {"id": 113, "type": "binary_expression", "text": "n-- > 0", "parent": 108, "children": [114, 117, 118], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 21}}, {"id": 114, "type": "update_expression", "text": "n--", "parent": 113, "children": [115, 116], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 17}}, {"id": 115, "type": "identifier", "text": "n", "parent": 114, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 15}}, {"id": 116, "type": "--", "text": "--", "parent": 114, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 17}}, {"id": 117, "type": ">", "text": ">", "parent": 113, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 118, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 21}}, {"id": 119, "type": "if_statement", "text": "if (*s == '\\n')\n\t\t\tearly_printk_uartlite_putc('\\r');", "parent": 106, "children": [120], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 52, "column": 36}}, {"id": 120, "type": "parenthesized_expression", "text": "(*s == '\\n')", "parent": 119, "children": [121], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 17}}, {"id": 121, "type": "binary_expression", "text": "*s == '\\n'", "parent": 120, "children": [122, 125, 126], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 16}}, {"id": 122, "type": "pointer_expression", "text": "*s", "parent": 121, "children": [123, 124], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 8}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 7}}, {"id": 124, "type": "identifier", "text": "s", "parent": 122, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 8}}, {"id": 125, "type": "==", "text": "==", "parent": 121, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 11}}, {"id": 126, "type": "char_literal", "text": "'\\n'", "parent": 121, "children": [127, 128, 129], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 16}}, {"id": 127, "type": "'", "text": "'", "parent": 126, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 13}}, {"id": 128, "type": "escape_sequence", "text": "\\n", "parent": 126, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 15}}, {"id": 129, "type": "'", "text": "'", "parent": 126, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 130, "type": "call_expression", "text": "early_printk_uartlite_putc('\\r')", "parent": 119, "children": [131, 132], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 35}}, {"id": 131, "type": "identifier", "text": "early_printk_uartlite_putc", "parent": 130, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 29}}, {"id": 132, "type": "argument_list", "text": "('\\r')", "parent": 130, "children": [133], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 35}}, {"id": 133, "type": "char_literal", "text": "'\\r'", "parent": 132, "children": [134, 135, 136], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 34}}, {"id": 134, "type": "'", "text": "'", "parent": 133, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 31}}, {"id": 135, "type": "escape_sequence", "text": "\\r", "parent": 133, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 33}}, {"id": 136, "type": "'", "text": "'", "parent": 133, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 34}}, {"id": 137, "type": "call_expression", "text": "early_printk_uartlite_putc(*s)", "parent": 106, "children": [138, 139], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 32}}, {"id": 138, "type": "identifier", "text": "early_printk_uartlite_putc", "parent": 137, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 28}}, {"id": 139, "type": "argument_list", "text": "(*s)", "parent": 137, "children": [140], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 32}}, {"id": 140, "type": "pointer_expression", "text": "*s", "parent": 139, "children": [141, 142], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 31}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 142, "type": "identifier", "text": "s", "parent": 140, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 31}}, {"id": 143, "type": "update_expression", "text": "s++", "parent": 106, "children": [144, 145], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 5}}, {"id": 144, "type": "identifier", "text": "s", "parent": 143, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 3}}, {"id": 145, "type": "++", "text": "++", "parent": 143, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 5}}, {"id": 146, "type": "declaration", "text": "static struct console early_serial_uartlite_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uartlite_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};", "parent": 33, "children": [147, 150], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 63, "column": 2}}, {"id": 147, "type": "struct_specifier", "text": "struct console", "parent": 146, "children": [148, 149], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 21}}, {"id": 148, "type": "struct", "text": "struct", "parent": 147, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 13}}, {"id": 149, "type": "type_identifier", "text": "console", "parent": 147, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 21}}, {"id": 150, "type": "init_declarator", "text": "early_serial_uartlite_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uartlite_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n}", "parent": 146, "children": [151, 152, 153], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 63, "column": 1}}, {"id": 151, "type": "identifier", "text": "early_serial_uartlite_console", "parent": 150, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 51}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 58, "column": 52}, "end_point": {"row": 58, "column": 53}}, {"id": 153, "type": "initializer_list", "text": "{\n\t.name = \"earlyser\",\n\t.write = early_printk_uartlite_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n}", "parent": 150, "children": [154, 159, 164, 171], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 63, "column": 1}}, {"id": 154, "type": "initializer_pair", "text": ".name = \"earlyser\"", "parent": 153, "children": [155, 157, 158], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 19}}, {"id": 155, "type": "field_designator", "text": ".name", "parent": 154, "children": [156], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 6}}, {"id": 156, "type": "field_identifier", "text": "name", "parent": 155, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 157, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 158, "type": "string_literal", "text": "\"earlyser\"", "parent": 154, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 19}}, {"id": 159, "type": "initializer_pair", "text": ".write = early_printk_uartlite_write", "parent": 153, "children": [160, 162, 163], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 37}}, {"id": 160, "type": "field_designator", "text": ".write", "parent": 159, "children": [161], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 161, "type": "field_identifier", "text": "write", "parent": 160, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 7}}, {"id": 162, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 163, "type": "identifier", "text": "early_printk_uartlite_write", "parent": 159, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 37}}, {"id": 164, "type": "initializer_pair", "text": ".flags = CON_PRINTBUFFER | CON_BOOT", "parent": 153, "children": [165, 167, 168], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 36}}, {"id": 165, "type": "field_designator", "text": ".flags", "parent": 164, "children": [166], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 7}}, {"id": 166, "type": "field_identifier", "text": "flags", "parent": 165, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 7}}, {"id": 167, "type": "=", "text": "=", "parent": 164, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 168, "type": "binary_expression", "text": "CON_PRINTBUFFER | CON_BOOT", "parent": 164, "children": [169, 170], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 36}}, {"id": 169, "type": "identifier", "text": "CON_PRINTBUFFER", "parent": 168, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 25}}, {"id": 170, "type": "identifier", "text": "CON_BOOT", "parent": 168, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 36}}, {"id": 171, "type": "initializer_pair", "text": ".index = -1", "parent": 153, "children": [172, 174, 175], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 12}}, {"id": 172, "type": "field_designator", "text": ".index", "parent": 171, "children": [173], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 7}}, {"id": 173, "type": "field_identifier", "text": "index", "parent": 172, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 7}}, {"id": 174, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 9}}, {"id": 175, "type": "number_literal", "text": "-1", "parent": 171, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 12}}, {"id": 176, "type": "#endif", "text": "#endif", "parent": 33, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 177, "type": "preproc_ifdef", "text": "#ifdef CONFIG_SERIAL_8250_CONSOLE\nstatic void early_printk_uart16550_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\t#define UART_LSR_TEMT\t0x40 /* Transmitter empty */\n\t#define UART_LSR_THRE\t0x20 /* Transmit-hold-register empty */\n\t#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n\tunsigned retries = 10000;\n\n\twhile (--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n\t\t;\n\n\tif (retries)\n\t\tout_be32(base_addr, c & 0xff);\n}\n\nstatic void early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uart16550_putc('\\r');\n\t\tearly_printk_uart16550_putc(*s);\n\t\ts++;\n\t}\n}\n\nstatic struct console early_serial_uart16550_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uart16550_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};\n#endif", "parent": null, "children": [178, 179, 180, 240, 301, 331], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 108, "column": 6}}, {"id": 178, "type": "#ifdef", "text": "#ifdef", "parent": 177, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 179, "type": "identifier", "text": "CONFIG_SERIAL_8250_CONSOLE", "parent": 177, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 33}}, {"id": 180, "type": "function_definition", "text": "static void early_printk_uart16550_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\t#define UART_LSR_TEMT\t0x40 /* Transmitter empty */\n\t#define UART_LSR_THRE\t0x20 /* Transmit-hold-register empty */\n\t#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n\tunsigned retries = 10000;\n\n\twhile (--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n\t\t;\n\n\tif (retries)\n\t\tout_be32(base_addr, c & 0xff);\n}", "parent": 177, "children": [181, 182], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 181, "type": "primitive_type", "text": "void", "parent": 180, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 182, "type": "function_declarator", "text": "early_printk_uart16550_putc(char c)", "parent": 180, "children": [183, 184], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 47}}, {"id": 183, "type": "identifier", "text": "early_printk_uart16550_putc", "parent": 182, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 39}}, {"id": 184, "type": "parameter_list", "text": "(char c)", "parent": 182, "children": [185], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 47}}, {"id": 185, "type": "parameter_declaration", "text": "char c", "parent": 184, "children": [186, 187], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 46}}, {"id": 186, "type": "primitive_type", "text": "char", "parent": 185, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 44}}, {"id": 187, "type": "identifier", "text": "c", "parent": 185, "children": [], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 46}}, {"id": 188, "type": "preproc_def", "text": "#define UART_LSR_TEMT\t0x40 /* Transmitter empty */\n", "parent": 180, "children": [189, 190, 191], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 78, "column": 0}}, {"id": 189, "type": "#define", "text": "#define", "parent": 188, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 8}}, {"id": 190, "type": "identifier", "text": "UART_LSR_TEMT", "parent": 188, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 22}}, {"id": 191, "type": "preproc_arg", "text": "0x40 ", "parent": 188, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 28}}, {"id": 192, "type": "preproc_def", "text": "#define UART_LSR_THRE\t0x20 /* Transmit-hold-register empty */\n", "parent": 180, "children": [193, 194, 195], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 79, "column": 0}}, {"id": 193, "type": "#define", "text": "#define", "parent": 192, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 8}}, {"id": 194, "type": "identifier", "text": "UART_LSR_THRE", "parent": 192, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 22}}, {"id": 195, "type": "preproc_arg", "text": "0x20 ", "parent": 192, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 28}}, {"id": 196, "type": "preproc_def", "text": "#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n", "parent": 180, "children": [197, 198, 199], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 80, "column": 0}}, {"id": 197, "type": "#define", "text": "#define", "parent": 196, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 8}}, {"id": 198, "type": "identifier", "text": "BOTH_EMPTY", "parent": 196, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 19}}, {"id": 199, "type": "preproc_arg", "text": "(UART_LSR_TEMT | UART_LSR_THRE)", "parent": 196, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 51}}, {"id": 200, "type": "declaration", "text": "unsigned retries = 10000;", "parent": 180, "children": [201, 203], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 26}}, {"id": 201, "type": "sized_type_specifier", "text": "unsigned", "parent": 200, "children": [202], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 9}}, {"id": 202, "type": "unsigned", "text": "unsigned", "parent": 201, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 9}}, {"id": 203, "type": "init_declarator", "text": "retries = 10000", "parent": 200, "children": [204, 205, 206], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 25}}, {"id": 204, "type": "identifier", "text": "retries", "parent": 203, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 17}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 206, "type": "number_literal", "text": "10000", "parent": 203, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 25}}, {"id": 207, "type": "while_statement", "text": "while (--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n\t\t;", "parent": 180, "children": [208], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 85, "column": 3}}, {"id": 208, "type": "parenthesized_expression", "text": "(--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))", "parent": 207, "children": [209], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 84, "column": 60}}, {"id": 209, "type": "binary_expression", "text": "--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)", "parent": 208, "children": [210, 213, 214], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 84, "column": 59}}, {"id": 210, "type": "update_expression", "text": "--retries", "parent": 209, "children": [211, 212], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 17}}, {"id": 211, "type": "--", "text": "--", "parent": 210, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 10}}, {"id": 212, "type": "identifier", "text": "retries", "parent": 210, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 17}}, {"id": 213, "type": "&&", "text": "&&", "parent": 209, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 20}}, {"id": 214, "type": "unary_expression", "text": "!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)", "parent": 209, "children": [215, 216], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 59}}, {"id": 215, "type": "!", "text": "!", "parent": 214, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 3}}, {"id": 216, "type": "parenthesized_expression", "text": "((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY)", "parent": 214, "children": [217], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 59}}, {"id": 217, "type": "binary_expression", "text": "(in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY", "parent": 216, "children": [218, 228, 229], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 58}}, {"id": 218, "type": "parenthesized_expression", "text": "(in_be32(base_addr + 0x14) & BOTH_EMPTY)", "parent": 217, "children": [219], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 44}}, {"id": 219, "type": "binary_expression", "text": "in_be32(base_addr + 0x14) & BOTH_EMPTY", "parent": 218, "children": [220, 227], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 43}}, {"id": 220, "type": "call_expression", "text": "in_be32(base_addr + 0x14)", "parent": 219, "children": [221, 222], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 30}}, {"id": 221, "type": "identifier", "text": "in_be32", "parent": 220, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 12}}, {"id": 222, "type": "argument_list", "text": "(base_addr + 0x14)", "parent": 220, "children": [223], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 30}}, {"id": 223, "type": "binary_expression", "text": "base_addr + 0x14", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 29}}, {"id": 224, "type": "identifier", "text": "base_addr", "parent": 223, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 22}}, {"id": 225, "type": "+", "text": "+", "parent": 223, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 24}}, {"id": 226, "type": "number_literal", "text": "0x14", "parent": 223, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 29}}, {"id": 227, "type": "identifier", "text": "BOTH_EMPTY", "parent": 219, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 43}}, {"id": 228, "type": "==", "text": "==", "parent": 217, "children": [], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 47}}, {"id": 229, "type": "identifier", "text": "BOTH_EMPTY", "parent": 217, "children": [], "start_point": {"row": 84, "column": 48}, "end_point": {"row": 84, "column": 58}}, {"id": 230, "type": "if_statement", "text": "if (retries)\n\t\tout_be32(base_addr, c & 0xff);", "parent": 180, "children": [231], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 88, "column": 32}}, {"id": 231, "type": "parenthesized_expression", "text": "(retries)", "parent": 230, "children": [232], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 13}}, {"id": 232, "type": "identifier", "text": "retries", "parent": 231, "children": [], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 12}}, {"id": 233, "type": "call_expression", "text": "out_be32(base_addr, c & 0xff)", "parent": 230, "children": [234, 235], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 31}}, {"id": 234, "type": "identifier", "text": "out_be32", "parent": 233, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 10}}, {"id": 235, "type": "argument_list", "text": "(base_addr, c & 0xff)", "parent": 233, "children": [236, 237], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 31}}, {"id": 236, "type": "identifier", "text": "base_addr", "parent": 235, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 20}}, {"id": 237, "type": "binary_expression", "text": "c & 0xff", "parent": 235, "children": [238, 239], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 30}}, {"id": 238, "type": "identifier", "text": "c", "parent": 237, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 23}}, {"id": 239, "type": "number_literal", "text": "0xff", "parent": 237, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 30}}, {"id": 240, "type": "function_definition", "text": "static void early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uart16550_putc('\\r');\n\t\tearly_printk_uart16550_putc(*s);\n\t\ts++;\n\t}\n}", "parent": 177, "children": [241, 242], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 241, "type": "primitive_type", "text": "void", "parent": 240, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 11}}, {"id": 242, "type": "function_declarator", "text": "early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)", "parent": 240, "children": [243, 244], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 92, "column": 31}}, {"id": 243, "type": "identifier", "text": "early_printk_uart16550_write", "parent": 242, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 40}}, {"id": 244, "type": "parameter_list", "text": "(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)", "parent": 242, "children": [245, 252, 257], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 92, "column": 31}}, {"id": 245, "type": "parameter_declaration", "text": "struct console *unused", "parent": 244, "children": [246, 249], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 63}}, {"id": 246, "type": "struct_specifier", "text": "struct console", "parent": 245, "children": [247, 248], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 55}}, {"id": 247, "type": "struct", "text": "struct", "parent": 246, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 47}}, {"id": 248, "type": "type_identifier", "text": "console", "parent": 246, "children": [], "start_point": {"row": 91, "column": 48}, "end_point": {"row": 91, "column": 55}}, {"id": 249, "type": "pointer_declarator", "text": "*unused", "parent": 245, "children": [250, 251], "start_point": {"row": 91, "column": 56}, "end_point": {"row": 91, "column": 63}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 91, "column": 56}, "end_point": {"row": 91, "column": 57}}, {"id": 251, "type": "identifier", "text": "unused", "parent": 249, "children": [], "start_point": {"row": 91, "column": 57}, "end_point": {"row": 91, "column": 63}}, {"id": 252, "type": "parameter_declaration", "text": "const char *s", "parent": 244, "children": [253, 254], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 18}}, {"id": 253, "type": "primitive_type", "text": "char", "parent": 252, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 15}}, {"id": 254, "type": "pointer_declarator", "text": "*s", "parent": 252, "children": [255, 256], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 18}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 17}}, {"id": 256, "type": "identifier", "text": "s", "parent": 254, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 18}}, {"id": 257, "type": "parameter_declaration", "text": "unsigned n", "parent": 244, "children": [258, 260], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 30}}, {"id": 258, "type": "sized_type_specifier", "text": "unsigned", "parent": 257, "children": [259], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 28}}, {"id": 259, "type": "unsigned", "text": "unsigned", "parent": 258, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 28}}, {"id": 260, "type": "identifier", "text": "n", "parent": 257, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 30}}, {"id": 261, "type": "while_statement", "text": "while (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uart16550_putc('\\r');\n\t\tearly_printk_uart16550_putc(*s);\n\t\ts++;\n\t}", "parent": 240, "children": [262], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 99, "column": 2}}, {"id": 262, "type": "parenthesized_expression", "text": "(*s && n-- > 0)", "parent": 261, "children": [263], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 22}}, {"id": 263, "type": "binary_expression", "text": "*s && n-- > 0", "parent": 262, "children": [264, 267, 268], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 21}}, {"id": 264, "type": "pointer_expression", "text": "*s", "parent": 263, "children": [265, 266], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 10}}, {"id": 265, "type": "*", "text": "*", "parent": 264, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 9}}, {"id": 266, "type": "identifier", "text": "s", "parent": 264, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 10}}, {"id": 267, "type": "&&", "text": "&&", "parent": 263, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 13}}, {"id": 268, "type": "binary_expression", "text": "n-- > 0", "parent": 263, "children": [269, 272, 273], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 21}}, {"id": 269, "type": "update_expression", "text": "n--", "parent": 268, "children": [270, 271], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 17}}, {"id": 270, "type": "identifier", "text": "n", "parent": 269, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 15}}, {"id": 271, "type": "--", "text": "--", "parent": 269, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 17}}, {"id": 272, "type": ">", "text": ">", "parent": 268, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 19}}, {"id": 273, "type": "number_literal", "text": "0", "parent": 268, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 274, "type": "if_statement", "text": "if (*s == '\\n')\n\t\t\tearly_printk_uart16550_putc('\\r');", "parent": 261, "children": [275], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 96, "column": 37}}, {"id": 275, "type": "parenthesized_expression", "text": "(*s == '\\n')", "parent": 274, "children": [276], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 17}}, {"id": 276, "type": "binary_expression", "text": "*s == '\\n'", "parent": 275, "children": [277, 280, 281], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 16}}, {"id": 277, "type": "pointer_expression", "text": "*s", "parent": 276, "children": [278, 279], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 8}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 7}}, {"id": 279, "type": "identifier", "text": "s", "parent": 277, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 8}}, {"id": 280, "type": "==", "text": "==", "parent": 276, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 11}}, {"id": 281, "type": "char_literal", "text": "'\\n'", "parent": 276, "children": [282, 283, 284], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 16}}, {"id": 282, "type": "'", "text": "'", "parent": 281, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 283, "type": "escape_sequence", "text": "\\n", "parent": 281, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 15}}, {"id": 284, "type": "'", "text": "'", "parent": 281, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 16}}, {"id": 285, "type": "call_expression", "text": "early_printk_uart16550_putc('\\r')", "parent": 274, "children": [286, 287], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 36}}, {"id": 286, "type": "identifier", "text": "early_printk_uart16550_putc", "parent": 285, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 30}}, {"id": 287, "type": "argument_list", "text": "('\\r')", "parent": 285, "children": [288], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 36}}, {"id": 288, "type": "char_literal", "text": "'\\r'", "parent": 287, "children": [289, 290, 291], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 96, "column": 35}}, {"id": 289, "type": "'", "text": "'", "parent": 288, "children": [], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 96, "column": 32}}, {"id": 290, "type": "escape_sequence", "text": "\\r", "parent": 288, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 34}}, {"id": 291, "type": "'", "text": "'", "parent": 288, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 35}}, {"id": 292, "type": "call_expression", "text": "early_printk_uart16550_putc(*s)", "parent": 261, "children": [293, 294], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 33}}, {"id": 293, "type": "identifier", "text": "early_printk_uart16550_putc", "parent": 292, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 29}}, {"id": 294, "type": "argument_list", "text": "(*s)", "parent": 292, "children": [295], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 33}}, {"id": 295, "type": "pointer_expression", "text": "*s", "parent": 294, "children": [296, 297], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 32}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 31}}, {"id": 297, "type": "identifier", "text": "s", "parent": 295, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 298, "type": "update_expression", "text": "s++", "parent": 261, "children": [299, 300], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 5}}, {"id": 299, "type": "identifier", "text": "s", "parent": 298, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 3}}, {"id": 300, "type": "++", "text": "++", "parent": 298, "children": [], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 5}}, {"id": 301, "type": "declaration", "text": "static struct console early_serial_uart16550_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uart16550_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};", "parent": 177, "children": [302, 305], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 107, "column": 2}}, {"id": 302, "type": "struct_specifier", "text": "struct console", "parent": 301, "children": [303, 304], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 21}}, {"id": 303, "type": "struct", "text": "struct", "parent": 302, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 13}}, {"id": 304, "type": "type_identifier", "text": "console", "parent": 302, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 21}}, {"id": 305, "type": "init_declarator", "text": "early_serial_uart16550_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uart16550_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n}", "parent": 301, "children": [306, 307, 308], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 107, "column": 1}}, {"id": 306, "type": "identifier", "text": "early_serial_uart16550_console", "parent": 305, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 52}}, {"id": 307, "type": "=", "text": "=", "parent": 305, "children": [], "start_point": {"row": 102, "column": 53}, "end_point": {"row": 102, "column": 54}}, {"id": 308, "type": "initializer_list", "text": "{\n\t.name = \"earlyser\",\n\t.write = early_printk_uart16550_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n}", "parent": 305, "children": [309, 314, 319, 326], "start_point": {"row": 102, "column": 55}, "end_point": {"row": 107, "column": 1}}, {"id": 309, "type": "initializer_pair", "text": ".name = \"earlyser\"", "parent": 308, "children": [310, 312, 313], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 19}}, {"id": 310, "type": "field_designator", "text": ".name", "parent": 309, "children": [311], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 6}}, {"id": 311, "type": "field_identifier", "text": "name", "parent": 310, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 6}}, {"id": 312, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 313, "type": "string_literal", "text": "\"earlyser\"", "parent": 309, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 19}}, {"id": 314, "type": "initializer_pair", "text": ".write = early_printk_uart16550_write", "parent": 308, "children": [315, 317, 318], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 38}}, {"id": 315, "type": "field_designator", "text": ".write", "parent": 314, "children": [316], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 7}}, {"id": 316, "type": "field_identifier", "text": "write", "parent": 315, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 7}}, {"id": 317, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 318, "type": "identifier", "text": "early_printk_uart16550_write", "parent": 314, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 38}}, {"id": 319, "type": "initializer_pair", "text": ".flags = CON_PRINTBUFFER | CON_BOOT", "parent": 308, "children": [320, 322, 323], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 36}}, {"id": 320, "type": "field_designator", "text": ".flags", "parent": 319, "children": [321], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 7}}, {"id": 321, "type": "field_identifier", "text": "flags", "parent": 320, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 7}}, {"id": 322, "type": "=", "text": "=", "parent": 319, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 323, "type": "binary_expression", "text": "CON_PRINTBUFFER | CON_BOOT", "parent": 319, "children": [324, 325], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 36}}, {"id": 324, "type": "identifier", "text": "CON_PRINTBUFFER", "parent": 323, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 25}}, {"id": 325, "type": "identifier", "text": "CON_BOOT", "parent": 323, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 36}}, {"id": 326, "type": "initializer_pair", "text": ".index = -1", "parent": 308, "children": [327, 329, 330], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 12}}, {"id": 327, "type": "field_designator", "text": ".index", "parent": 326, "children": [328], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 7}}, {"id": 328, "type": "field_identifier", "text": "index", "parent": 327, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 7}}, {"id": 329, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 9}}, {"id": 330, "type": "number_literal", "text": "-1", "parent": 326, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 12}}, {"id": 331, "type": "#endif", "text": "#endif", "parent": 177, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 6}}, {"id": 332, "type": "function_definition", "text": "int __init setup_early_printk(char *opt)\n{\n\tint version = 0;\n\n\tif (early_console)\n\t\treturn 1;\n\n\tbase_addr = of_early_console(&version);\n\tif (base_addr) {\n#ifdef CONFIG_MMU\n\t\tearly_console_reg_tlb_alloc(base_addr);\n#endif\n\t\tswitch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n\t\tcase UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n\t\tcase UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;\n#endif\n\t\tdefault:\n\t\t\tpr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion);\n\t\t\treturn 1;\n\t\t}\n\n\t\tregister_console(early_console);\n\t\treturn 0;\n\t}\n\treturn 1;\n}", "parent": null, "children": [333, 334, 336], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 147, "column": 1}}, {"id": 333, "type": "primitive_type", "text": "int", "parent": 332, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 3}}, {"id": 334, "type": "ERROR", "text": "__init", "parent": 332, "children": [335], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 10}}, {"id": 335, "type": "identifier", "text": "__init", "parent": 334, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 10}}, {"id": 336, "type": "function_declarator", "text": "setup_early_printk(char *opt)", "parent": 332, "children": [337, 338], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 40}}, {"id": 337, "type": "identifier", "text": "setup_early_printk", "parent": 336, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 29}}, {"id": 338, "type": "parameter_list", "text": "(char *opt)", "parent": 336, "children": [339], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 40}}, {"id": 339, "type": "parameter_declaration", "text": "char *opt", "parent": 338, "children": [340, 341], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 39}}, {"id": 340, "type": "primitive_type", "text": "char", "parent": 339, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 34}}, {"id": 341, "type": "pointer_declarator", "text": "*opt", "parent": 339, "children": [342, 343], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 39}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 36}}, {"id": 343, "type": "identifier", "text": "opt", "parent": 341, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 39}}, {"id": 344, "type": "declaration", "text": "int version = 0;", "parent": 332, "children": [345, 346], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 17}}, {"id": 345, "type": "primitive_type", "text": "int", "parent": 344, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 4}}, {"id": 346, "type": "init_declarator", "text": "version = 0", "parent": 344, "children": [347, 348, 349], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 16}}, {"id": 347, "type": "identifier", "text": "version", "parent": 346, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 12}}, {"id": 348, "type": "=", "text": "=", "parent": 346, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 14}}, {"id": 349, "type": "number_literal", "text": "0", "parent": 346, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 16}}, {"id": 350, "type": "if_statement", "text": "if (early_console)\n\t\treturn 1;", "parent": 332, "children": [351, 353], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 115, "column": 11}}, {"id": 351, "type": "parenthesized_expression", "text": "(early_console)", "parent": 350, "children": [352], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 19}}, {"id": 352, "type": "identifier", "text": "early_console", "parent": 351, "children": [], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 18}}, {"id": 353, "type": "return_statement", "text": "return 1;", "parent": 350, "children": [354], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 11}}, {"id": 354, "type": "number_literal", "text": "1", "parent": 353, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 10}}, {"id": 355, "type": "assignment_expression", "text": "base_addr = of_early_console(&version)", "parent": 332, "children": [356, 357, 358], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 39}}, {"id": 356, "type": "identifier", "text": "base_addr", "parent": 355, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 10}}, {"id": 357, "type": "=", "text": "=", "parent": 355, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 358, "type": "call_expression", "text": "of_early_console(&version)", "parent": 355, "children": [359, 360], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 39}}, {"id": 359, "type": "identifier", "text": "of_early_console", "parent": 358, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 29}}, {"id": 360, "type": "argument_list", "text": "(&version)", "parent": 358, "children": [361], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 39}}, {"id": 361, "type": "pointer_expression", "text": "&version", "parent": 360, "children": [362], "start_point": {"row": 117, "column": 30}, "end_point": {"row": 117, "column": 38}}, {"id": 362, "type": "identifier", "text": "version", "parent": 361, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 38}}, {"id": 363, "type": "if_statement", "text": "if (base_addr) {\n#ifdef CONFIG_MMU\n\t\tearly_console_reg_tlb_alloc(base_addr);\n#endif\n\t\tswitch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n\t\tcase UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n\t\tcase UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;\n#endif\n\t\tdefault:\n\t\t\tpr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion);\n\t\t\treturn 1;\n\t\t}\n\n\t\tregister_console(early_console);\n\t\treturn 0;\n\t}", "parent": 332, "children": [364], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 145, "column": 2}}, {"id": 364, "type": "parenthesized_expression", "text": "(base_addr)", "parent": 363, "children": [365], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 15}}, {"id": 365, "type": "identifier", "text": "base_addr", "parent": 364, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 14}}, {"id": 366, "type": "preproc_ifdef", "text": "#ifdef CONFIG_MMU\n\t\tearly_console_reg_tlb_alloc(base_addr);\n#endif", "parent": 363, "children": [367, 368, 373], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 367, "type": "#ifdef", "text": "#ifdef", "parent": 366, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 368, "type": "identifier", "text": "CONFIG_MMU", "parent": 366, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 17}}, {"id": 369, "type": "call_expression", "text": "early_console_reg_tlb_alloc(base_addr)", "parent": 366, "children": [370, 371], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 40}}, {"id": 370, "type": "identifier", "text": "early_console_reg_tlb_alloc", "parent": 369, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 29}}, {"id": 371, "type": "argument_list", "text": "(base_addr)", "parent": 369, "children": [372], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 40}}, {"id": 372, "type": "identifier", "text": "base_addr", "parent": 371, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 39}}, {"id": 373, "type": "#endif", "text": "#endif", "parent": 366, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 374, "type": "switch_statement", "text": "switch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n\t\tcase UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n\t\tcase UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;\n#endif\n\t\tdefault:\n\t\t\tpr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion);\n\t\t\treturn 1;\n\t\t}", "parent": 363, "children": [375, 376], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 141, "column": 3}}, {"id": 375, "type": "switch", "text": "switch", "parent": 374, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 8}}, {"id": 376, "type": "parenthesized_expression", "text": "(version)", "parent": 374, "children": [377], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 18}}, {"id": 377, "type": "identifier", "text": "version", "parent": 376, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 17}}, {"id": 378, "type": "preproc_ifdef", "text": "#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n\t\tcase UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;\n#endif", "parent": 374, "children": [379, 380, 381, 397], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 129, "column": 6}}, {"id": 379, "type": "#ifdef", "text": "#ifdef", "parent": 378, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 380, "type": "identifier", "text": "CONFIG_SERIAL_UARTLITE_CONSOLE", "parent": 378, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 37}}, {"id": 381, "type": "case_statement", "text": "case UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;", "parent": 378, "children": [382, 383, 395], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 128, "column": 9}}, {"id": 382, "type": "case", "text": "case", "parent": 381, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 6}}, {"id": 383, "type": "identifier", "text": "UARTLITE", "parent": 381, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 15}}, {"id": 384, "type": "call_expression", "text": "pr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr)", "parent": 381, "children": [385, 386], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 126, "column": 18}}, {"id": 385, "type": "identifier", "text": "pr_info", "parent": 384, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 10}}, {"id": 386, "type": "argument_list", "text": "(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr)", "parent": 384, "children": [387, 389], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 126, "column": 18}}, {"id": 387, "type": "string_literal", "text": "\"Early console on uartlite at 0x%08x\\n\"", "parent": 386, "children": [388], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 50}}, {"id": 388, "type": "escape_sequence", "text": "\\n", "parent": 387, "children": [], "start_point": {"row": 125, "column": 47}, "end_point": {"row": 125, "column": 49}}, {"id": 389, "type": "identifier", "text": "base_addr", "parent": 386, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 17}}, {"id": 390, "type": "assignment_expression", "text": "early_console = &early_serial_uartlite_console", "parent": 381, "children": [391, 392, 393], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 49}}, {"id": 391, "type": "identifier", "text": "early_console", "parent": 390, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 16}}, {"id": 392, "type": "=", "text": "=", "parent": 390, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 18}}, {"id": 393, "type": "pointer_expression", "text": "&early_serial_uartlite_console", "parent": 390, "children": [394], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 49}}, {"id": 394, "type": "identifier", "text": "early_serial_uartlite_console", "parent": 393, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 49}}, {"id": 395, "type": "break_statement", "text": "break;", "parent": 381, "children": [396], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 9}}, {"id": 396, "type": "break", "text": "break", "parent": 395, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 8}}, {"id": 397, "type": "#endif", "text": "#endif", "parent": 378, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 6}}, {"id": 398, "type": "preproc_ifdef", "text": "#ifdef CONFIG_SERIAL_8250_CONSOLE\n\t\tcase UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;\n#endif", "parent": 374, "children": [399, 400, 401, 417], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 136, "column": 6}}, {"id": 399, "type": "#ifdef", "text": "#ifdef", "parent": 398, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 6}}, {"id": 400, "type": "identifier", "text": "CONFIG_SERIAL_8250_CONSOLE", "parent": 398, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 33}}, {"id": 401, "type": "case_statement", "text": "case UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;", "parent": 398, "children": [402, 403, 415], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 135, "column": 9}}, {"id": 402, "type": "case", "text": "case", "parent": 401, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 6}}, {"id": 403, "type": "identifier", "text": "UART16550", "parent": 401, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 16}}, {"id": 404, "type": "call_expression", "text": "pr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr)", "parent": 401, "children": [405, 406], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 133, "column": 18}}, {"id": 405, "type": "identifier", "text": "pr_info", "parent": 404, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 10}}, {"id": 406, "type": "argument_list", "text": "(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr)", "parent": 404, "children": [407, 409], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 133, "column": 18}}, {"id": 407, "type": "string_literal", "text": "\"Early console on uart16650 at 0x%08x\\n\"", "parent": 406, "children": [408], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 51}}, {"id": 408, "type": "escape_sequence", "text": "\\n", "parent": 407, "children": [], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 50}}, {"id": 409, "type": "identifier", "text": "base_addr", "parent": 406, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 17}}, {"id": 410, "type": "assignment_expression", "text": "early_console = &early_serial_uart16550_console", "parent": 401, "children": [411, 412, 413], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 50}}, {"id": 411, "type": "identifier", "text": "early_console", "parent": 410, "children": [], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 16}}, {"id": 412, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 18}}, {"id": 413, "type": "pointer_expression", "text": "&early_serial_uart16550_console", "parent": 410, "children": [414], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 50}}, {"id": 414, "type": "identifier", "text": "early_serial_uart16550_console", "parent": 413, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 50}}, {"id": 415, "type": "break_statement", "text": "break;", "parent": 401, "children": [416], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 9}}, {"id": 416, "type": "break", "text": "break", "parent": 415, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 8}}, {"id": 417, "type": "#endif", "text": "#endif", "parent": 398, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 6}}, {"id": 418, "type": "case_statement", "text": "default:\n\t\t\tpr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion);\n\t\t\treturn 1;", "parent": 374, "children": [419, 426], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 140, "column": 12}}, {"id": 419, "type": "default", "text": "default", "parent": 418, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 9}}, {"id": 420, "type": "call_expression", "text": "pr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion)", "parent": 418, "children": [421, 422], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 139, "column": 16}}, {"id": 421, "type": "identifier", "text": "pr_info", "parent": 420, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 10}}, {"id": 422, "type": "argument_list", "text": "(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion)", "parent": 420, "children": [423, 425], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 139, "column": 16}}, {"id": 423, "type": "string_literal", "text": "\"Unsupported early console %d\\n\"", "parent": 422, "children": [424], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 43}}, {"id": 424, "type": "escape_sequence", "text": "\\n", "parent": 423, "children": [], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 42}}, {"id": 425, "type": "identifier", "text": "version", "parent": 422, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 15}}, {"id": 426, "type": "return_statement", "text": "return 1;", "parent": 418, "children": [427], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 12}}, {"id": 427, "type": "number_literal", "text": "1", "parent": 426, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 11}}, {"id": 428, "type": "call_expression", "text": "register_console(early_console)", "parent": 363, "children": [429, 430], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 33}}, {"id": 429, "type": "identifier", "text": "register_console", "parent": 428, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 18}}, {"id": 430, "type": "argument_list", "text": "(early_console)", "parent": 428, "children": [431], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 33}}, {"id": 431, "type": "identifier", "text": "early_console", "parent": 430, "children": [], "start_point": {"row": 143, "column": 19}, "end_point": {"row": 143, "column": 32}}, {"id": 432, "type": "return_statement", "text": "return 0;", "parent": 363, "children": [433], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 11}}, {"id": 433, "type": "number_literal", "text": "0", "parent": 432, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 10}}, {"id": 434, "type": "return_statement", "text": "return 1;", "parent": 332, "children": [435], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 10}}, {"id": 435, "type": "number_literal", "text": "1", "parent": 434, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 9}}, {"id": 436, "type": "function_definition", "text": "void __init remap_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_info(\"early_printk_console remapping from 0x%x to \", base_addr);\n\tbase_addr = (u32) ioremap(base_addr, PAGE_SIZE);\n\tpr_cont(\"0x%x\\n\", base_addr);\n\n#ifdef CONFIG_MMU\n\t/*\n\t * Early console is on the top of skipped TLB entries\n\t * decrease tlb_skip size ensure that hardcoded TLB entry will be\n\t * used by generic algorithm\n\t * FIXME check if early console mapping is on the top by rereading\n\t * TLB entry and compare baseaddr\n\t * mts rtlbx, (tlb_skip - 1)\n\t * nop\n\t * mfs rX, rtlblo\n\t * nop\n\t * cmp rX, orig_base_addr\n\t */\n\ttlb_skip -= 1;\n#endif\n}", "parent": null, "children": [437, 438, 440], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 174, "column": 1}}, {"id": 437, "type": "primitive_type", "text": "void", "parent": 436, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 4}}, {"id": 438, "type": "ERROR", "text": "__init", "parent": 436, "children": [439], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 11}}, {"id": 439, "type": "identifier", "text": "__init", "parent": 438, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 11}}, {"id": 440, "type": "function_declarator", "text": "remap_early_printk(void)", "parent": 436, "children": [441, 442], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 36}}, {"id": 441, "type": "identifier", "text": "remap_early_printk", "parent": 440, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 30}}, {"id": 442, "type": "parameter_list", "text": "(void)", "parent": 440, "children": [443], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 36}}, {"id": 443, "type": "parameter_declaration", "text": "void", "parent": 442, "children": [444], "start_point": {"row": 151, "column": 31}, "end_point": {"row": 151, "column": 35}}, {"id": 444, "type": "primitive_type", "text": "void", "parent": 443, "children": [], "start_point": {"row": 151, "column": 31}, "end_point": {"row": 151, "column": 35}}, {"id": 445, "type": "if_statement", "text": "if (!early_console)\n\t\treturn;", "parent": 436, "children": [446, 450], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 154, "column": 9}}, {"id": 446, "type": "parenthesized_expression", "text": "(!early_console)", "parent": 445, "children": [447], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 20}}, {"id": 447, "type": "unary_expression", "text": "!early_console", "parent": 446, "children": [448, 449], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 19}}, {"id": 448, "type": "!", "text": "!", "parent": 447, "children": [], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 6}}, {"id": 449, "type": "identifier", "text": "early_console", "parent": 447, "children": [], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 19}}, {"id": 450, "type": "return_statement", "text": "return;", "parent": 445, "children": [], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 9}}, {"id": 451, "type": "call_expression", "text": "pr_info(\"early_printk_console remapping from 0x%x to \", base_addr)", "parent": 436, "children": [452, 453], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 67}}, {"id": 452, "type": "identifier", "text": "pr_info", "parent": 451, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 8}}, {"id": 453, "type": "argument_list", "text": "(\"early_printk_console remapping from 0x%x to \", base_addr)", "parent": 451, "children": [454, 455], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 67}}, {"id": 454, "type": "string_literal", "text": "\"early_printk_console remapping from 0x%x to \"", "parent": 453, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 55}}, {"id": 455, "type": "identifier", "text": "base_addr", "parent": 453, "children": [], "start_point": {"row": 155, "column": 57}, "end_point": {"row": 155, "column": 66}}, {"id": 456, "type": "assignment_expression", "text": "base_addr = (u32) ioremap(base_addr, PAGE_SIZE)", "parent": 436, "children": [457, 458, 459], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 48}}, {"id": 457, "type": "identifier", "text": "base_addr", "parent": 456, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 10}}, {"id": 458, "type": "=", "text": "=", "parent": 456, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 12}}, {"id": 459, "type": "cast_expression", "text": "(u32) ioremap(base_addr, PAGE_SIZE)", "parent": 456, "children": [460, 462], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 48}}, {"id": 460, "type": "type_descriptor", "text": "u32", "parent": 459, "children": [461], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 17}}, {"id": 461, "type": "type_identifier", "text": "u32", "parent": 460, "children": [], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 17}}, {"id": 462, "type": "call_expression", "text": "ioremap(base_addr, PAGE_SIZE)", "parent": 459, "children": [463, 464], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 48}}, {"id": 463, "type": "identifier", "text": "ioremap", "parent": 462, "children": [], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 26}}, {"id": 464, "type": "argument_list", "text": "(base_addr, PAGE_SIZE)", "parent": 462, "children": [465, 466], "start_point": {"row": 156, "column": 26}, "end_point": {"row": 156, "column": 48}}, {"id": 465, "type": "identifier", "text": "base_addr", "parent": 464, "children": [], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 36}}, {"id": 466, "type": "identifier", "text": "PAGE_SIZE", "parent": 464, "children": [], "start_point": {"row": 156, "column": 38}, "end_point": {"row": 156, "column": 47}}, {"id": 467, "type": "call_expression", "text": "pr_cont(\"0x%x\\n\", base_addr)", "parent": 436, "children": [468, 469], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 29}}, {"id": 468, "type": "identifier", "text": "pr_cont", "parent": 467, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 8}}, {"id": 469, "type": "argument_list", "text": "(\"0x%x\\n\", base_addr)", "parent": 467, "children": [470, 472], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 29}}, {"id": 470, "type": "string_literal", "text": "\"0x%x\\n\"", "parent": 469, "children": [471], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 17}}, {"id": 471, "type": "escape_sequence", "text": "\\n", "parent": 470, "children": [], "start_point": {"row": 157, "column": 14}, "end_point": {"row": 157, "column": 16}}, {"id": 472, "type": "identifier", "text": "base_addr", "parent": 469, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 28}}, {"id": 473, "type": "preproc_ifdef", "text": "#ifdef CONFIG_MMU\n\t/*\n\t * Early console is on the top of skipped TLB entries\n\t * decrease tlb_skip size ensure that hardcoded TLB entry will be\n\t * used by generic algorithm\n\t * FIXME check if early console mapping is on the top by rereading\n\t * TLB entry and compare baseaddr\n\t * mts rtlbx, (tlb_skip - 1)\n\t * nop\n\t * mfs rX, rtlblo\n\t * nop\n\t * cmp rX, orig_base_addr\n\t */\n\ttlb_skip -= 1;\n#endif", "parent": 436, "children": [474, 475, 480], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 173, "column": 6}}, {"id": 474, "type": "#ifdef", "text": "#ifdef", "parent": 473, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 6}}, {"id": 475, "type": "identifier", "text": "CONFIG_MMU", "parent": 473, "children": [], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 17}}, {"id": 476, "type": "assignment_expression", "text": "tlb_skip -= 1", "parent": 473, "children": [477, 478, 479], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 14}}, {"id": 477, "type": "identifier", "text": "tlb_skip", "parent": 476, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 9}}, {"id": 478, "type": "-=", "text": "-=", "parent": 476, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 12}}, {"id": 479, "type": "number_literal", "text": "1", "parent": 476, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 14}}, {"id": 480, "type": "#endif", "text": "#endif", "parent": 473, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 6}}, {"id": 481, "type": "function_definition", "text": "void __init disable_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_warn(\"disabling early console\\n\");\n\tunregister_console(early_console);\n\tearly_console = NULL;\n}", "parent": null, "children": [482, 483, 485], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 183, "column": 1}}, {"id": 482, "type": "primitive_type", "text": "void", "parent": 481, "children": [], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 176, "column": 4}}, {"id": 483, "type": "ERROR", "text": "__init", "parent": 481, "children": [484], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 11}}, {"id": 484, "type": "identifier", "text": "__init", "parent": 483, "children": [], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 11}}, {"id": 485, "type": "function_declarator", "text": "disable_early_printk(void)", "parent": 481, "children": [486, 487], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 38}}, {"id": 486, "type": "identifier", "text": "disable_early_printk", "parent": 485, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 32}}, {"id": 487, "type": "parameter_list", "text": "(void)", "parent": 485, "children": [488], "start_point": {"row": 176, "column": 32}, "end_point": {"row": 176, "column": 38}}, {"id": 488, "type": "parameter_declaration", "text": "void", "parent": 487, "children": [489], "start_point": {"row": 176, "column": 33}, "end_point": {"row": 176, "column": 37}}, {"id": 489, "type": "primitive_type", "text": "void", "parent": 488, "children": [], "start_point": {"row": 176, "column": 33}, "end_point": {"row": 176, "column": 37}}, {"id": 490, "type": "if_statement", "text": "if (!early_console)\n\t\treturn;", "parent": 481, "children": [491, 495], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 179, "column": 9}}, {"id": 491, "type": "parenthesized_expression", "text": "(!early_console)", "parent": 490, "children": [492], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 20}}, {"id": 492, "type": "unary_expression", "text": "!early_console", "parent": 491, "children": [493, 494], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 19}}, {"id": 493, "type": "!", "text": "!", "parent": 492, "children": [], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 6}}, {"id": 494, "type": "identifier", "text": "early_console", "parent": 492, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 19}}, {"id": 495, "type": "return_statement", "text": "return;", "parent": 490, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 9}}, {"id": 496, "type": "call_expression", "text": "pr_warn(\"disabling early console\\n\")", "parent": 481, "children": [497, 498], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 37}}, {"id": 497, "type": "identifier", "text": "pr_warn", "parent": 496, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 8}}, {"id": 498, "type": "argument_list", "text": "(\"disabling early console\\n\")", "parent": 496, "children": [499], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 37}}, {"id": 499, "type": "string_literal", "text": "\"disabling early console\\n\"", "parent": 498, "children": [500], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 36}}, {"id": 500, "type": "escape_sequence", "text": "\\n", "parent": 499, "children": [], "start_point": {"row": 180, "column": 33}, "end_point": {"row": 180, "column": 35}}, {"id": 501, "type": "call_expression", "text": "unregister_console(early_console)", "parent": 481, "children": [502, 503], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 34}}, {"id": 502, "type": "identifier", "text": "unregister_console", "parent": 501, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 19}}, {"id": 503, "type": "argument_list", "text": "(early_console)", "parent": 501, "children": [504], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 34}}, {"id": 504, "type": "identifier", "text": "early_console", "parent": 503, "children": [], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 33}}, {"id": 505, "type": "assignment_expression", "text": "early_console = NULL", "parent": 481, "children": [506, 507, 508], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 21}}, {"id": 506, "type": "identifier", "text": "early_console", "parent": 505, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 14}}, {"id": 507, "type": "=", "text": "=", "parent": 505, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 16}}, {"id": 508, "type": "null", "text": "NULL", "parent": 505, "children": [509], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 21}}, {"id": 509, "type": "NULL", "text": "NULL", "parent": 508, "children": [], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 21}}]}, "node_categories": {"declarations": {"functions": [36, 38, 85, 87, 180, 182, 240, 242, 332, 336, 436, 440, 481, 485], "variables": [30, 41, 44, 90, 97, 102, 146, 185, 200, 245, 252, 257, 301, 339, 344, 443, 488], "classes": [91, 92, 147, 148, 246, 247, 302, 303], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [52, 53, 54, 58, 59, 60, 63, 67, 68, 73, 75, 78, 82, 107, 108, 109, 113, 114, 120, 121, 122, 130, 137, 140, 143, 168, 208, 209, 210, 214, 216, 217, 218, 219, 220, 223, 231, 233, 237, 262, 263, 264, 268, 269, 275, 276, 277, 285, 292, 295, 298, 323, 351, 358, 361, 364, 369, 376, 384, 393, 404, 413, 420, 428, 446, 447, 451, 459, 462, 467, 491, 492, 496, 501], "assignments": [355, 390, 410, 456, 476, 505], "loops": [51, 106, 207, 261], "conditionals": [31, 32, 33, 34, 35, 39, 43, 45, 48, 56, 61, 64, 72, 74, 76, 79, 83, 88, 93, 96, 101, 103, 105, 111, 115, 119, 124, 131, 138, 142, 144, 149, 151, 156, 161, 163, 166, 169, 170, 173, 176, 177, 178, 179, 183, 187, 190, 194, 198, 201, 204, 212, 221, 224, 227, 229, 230, 232, 234, 236, 238, 243, 248, 251, 256, 258, 260, 266, 270, 274, 279, 286, 293, 297, 299, 304, 306, 311, 316, 318, 321, 324, 325, 328, 331, 335, 337, 343, 347, 350, 352, 356, 359, 362, 363, 365, 366, 367, 368, 370, 372, 373, 374, 375, 377, 378, 379, 380, 381, 382, 383, 385, 389, 391, 394, 397, 398, 399, 400, 401, 402, 403, 405, 409, 411, 414, 417, 418, 421, 425, 429, 431, 439, 441, 445, 449, 452, 455, 457, 461, 463, 465, 466, 468, 472, 473, 474, 475, 477, 480, 484, 486, 490, 494, 497, 502, 504, 506], "returns": [353, 426, 432, 434, 450, 495], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 50, 66, 69, 71, 81, 84, 118, 126, 133, 158, 175, 206, 226, 239, 273, 281, 288, 313, 330, 349, 354, 387, 407, 423, 427, 433, 435, 454, 470, 479, 499], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [155, 160, 165, 172, 310, 315, 320, 327]}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "early_printk_uartlite_putc", "text_snippet": "static void early_printk_uartlite_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "early_printk_uartlite_putc(char c)"}, {"node_id": 85, "universal_type": "function", "name": "early_printk_uartlite_write", "text_snippet": "static void early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\tw"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)"}, {"node_id": 180, "universal_type": "function", "name": "early_printk_uart16550_putc", "text_snippet": "static void early_printk_uart16550_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting fo"}, {"node_id": 182, "universal_type": "function", "name": "unknown", "text_snippet": "early_printk_uart16550_putc(char c)"}, {"node_id": 240, "universal_type": "function", "name": "early_printk_uart16550_write", "text_snippet": "static void early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\t"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)"}, {"node_id": 332, "universal_type": "function", "name": "__init", "text_snippet": "int __init setup_early_printk(char *opt)\n{\n\tint version = 0;\n\n\tif (early_console)\n\t\treturn 1;\n\n\tbase"}, {"node_id": 336, "universal_type": "function", "name": "unknown", "text_snippet": "setup_early_printk(char *opt)"}, {"node_id": 436, "universal_type": "function", "name": "__init", "text_snippet": "void __init remap_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_info(\"early_printk_console"}, {"node_id": 440, "universal_type": "function", "name": "unknown", "text_snippet": "remap_early_printk(void)"}, {"node_id": 481, "universal_type": "function", "name": "__init", "text_snippet": "void __init disable_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_warn(\"disabling early co"}, {"node_id": 485, "universal_type": "function", "name": "unknown", "text_snippet": "disable_early_printk(void)"}], "class_declarations": [{"node_id": 91, "universal_type": "class", "name": "console", "text_snippet": "struct console"}, {"node_id": 92, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 147, "universal_type": "class", "name": "console", "text_snippet": "struct console"}, {"node_id": 148, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 246, "universal_type": "class", "name": "console", "text_snippet": "struct console"}, {"node_id": 247, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 302, "universal_type": "class", "name": "console", "text_snippet": "struct console"}, {"node_id": 303, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/console.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/kernel.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/init.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/string.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/tty.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <linux/io.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <asm/processor.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <linux/fcntl.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <asm/setup.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <asm/prom.h>\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*\n * Early printk support for Microblaze.\n *\n * Copyright (C) 2007-2009 <NAME> <<EMAIL>>\n * Copyright (C) 2007-2009 PetaLogix\n * Copyright (C) 2003-2006 <NAME> <<EMAIL>>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file \"COPYING\" in the main directory of this archive\n * for more details.\n */\n\n#include <linux/console.h>\n#include <linux/kernel.h>\n#include <linux/init.h>\n#include <linux/string.h>\n#include <linux/tty.h>\n#include <linux/io.h>\n#include <asm/processor.h>\n#include <linux/fcntl.h>\n#include <asm/setup.h>\n#include <asm/prom.h>\n\nstatic u32 base_addr;\n\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\nstatic void early_printk_uartlite_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\tunsigned retries = 1000000;\n\t/* read status bit - 0x8 offset */\n\twhile (--retries && (in_be32(base_addr + 8) & (1 << 3)))\n\t\t;\n\n\t/* Only attempt the iowrite if we didn't timeout */\n\t/* write to TX_FIFO - 0x4 offset */\n\tif (retries)\n\t\tout_be32(base_addr + 4, c & 0xff);\n}\n\nstatic void early_printk_uartlite_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uartlite_putc('\\r');\n\t\tearly_printk_uartlite_putc(*s);\n\t\ts++;\n\t}\n}\n\nstatic struct console early_serial_uartlite_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uartlite_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};\n#endif /* CONFIG_SERIAL_UARTLITE_CONSOLE */\n\n#ifdef CONFIG_SERIAL_8250_CONSOLE\nstatic void early_printk_uart16550_putc(char c)\n{\n\t/*\n\t * Limit how many times we'll spin waiting for TX FIFO status.\n\t * This will prevent lockups if the base address is incorrectly\n\t * set, or any other issue on the UARTLITE.\n\t * This limit is pretty arbitrary, unless we are at about 10 baud\n\t * we'll never timeout on a working UART.\n\t */\n\n\t#define UART_LSR_TEMT\t0x40 /* Transmitter empty */\n\t#define UART_LSR_THRE\t0x20 /* Transmit-hold-register empty */\n\t#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)\n\n\tunsigned retries = 10000;\n\n\twhile (--retries &&\n\t\t!((in_be32(base_addr + 0x14) & BOTH_EMPTY) == BOTH_EMPTY))\n\t\t;\n\n\tif (retries)\n\t\tout_be32(base_addr, c & 0xff);\n}\n\nstatic void early_printk_uart16550_write(struct console *unused,\n\t\t\t\t\tconst char *s, unsigned n)\n{\n\twhile (*s && n-- > 0) {\n\t\tif (*s == '\\n')\n\t\t\tearly_printk_uart16550_putc('\\r');\n\t\tearly_printk_uart16550_putc(*s);\n\t\ts++;\n\t}\n}\n\nstatic struct console early_serial_uart16550_console = {\n\t.name = \"earlyser\",\n\t.write = early_printk_uart16550_write,\n\t.flags = CON_PRINTBUFFER | CON_BOOT,\n\t.index = -1,\n};\n#endif /* CONFIG_SERIAL_8250_CONSOLE */\n\nint __init setup_early_printk(char *opt)\n{\n\tint version = 0;\n\n\tif (early_console)\n\t\treturn 1;\n\n\tbase_addr = of_early_console(&version);\n\tif (base_addr) {\n#ifdef CONFIG_MMU\n\t\tearly_console_reg_tlb_alloc(base_addr);\n#endif\n\t\tswitch (version) {\n#ifdef CONFIG_SERIAL_UARTLITE_CONSOLE\n\t\tcase UARTLITE:\n\t\t\tpr_info(\"Early console on uartlite at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uartlite_console;\n\t\t\tbreak;\n#endif\n#ifdef CONFIG_SERIAL_8250_CONSOLE\n\t\tcase UART16550:\n\t\t\tpr_info(\"Early console on uart16650 at 0x%08x\\n\",\n\t\t\t\t\t\t\t\tbase_addr);\n\t\t\tearly_console = &early_serial_uart16550_console;\n\t\t\tbreak;\n#endif\n\t\tdefault:\n\t\t\tpr_info(\"Unsupported early console %d\\n\",\n\t\t\t\t\t\t\t\tversion);\n\t\t\treturn 1;\n\t\t}\n\n\t\tregister_console(early_console);\n\t\treturn 0;\n\t}\n\treturn 1;\n}\n\n/* Remap early console to virtual address and do not allocate one TLB\n * only for early console because of performance degression */\nvoid __init remap_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_info(\"early_printk_console remapping from 0x%x to \", base_addr);\n\tbase_addr = (u32) ioremap(base_addr, PAGE_SIZE);\n\tpr_cont(\"0x%x\\n\", base_addr);\n\n#ifdef CONFIG_MMU\n\t/*\n\t * Early console is on the top of skipped TLB entries\n\t * decrease tlb_skip size ensure that hardcoded TLB entry will be\n\t * used by generic algorithm\n\t * FIXME check if early console mapping is on the top by rereading\n\t * TLB entry and compare baseaddr\n\t * mts rtlbx, (tlb_skip - 1)\n\t * nop\n\t * mfs rX, rtlblo\n\t * nop\n\t * cmp rX, orig_base_addr\n\t */\n\ttlb_skip -= 1;\n#endif\n}\n\nvoid __init disable_early_printk(void)\n{\n\tif (!early_console)\n\t\treturn;\n\tpr_warn(\"disabling early console\\n\");\n\tunregister_console(early_console);\n\tearly_console = NULL;\n}\n"}
153
c
#include <lib.h> /* rindex - find last occurrence of a character in a string */ #include <string.h> char *rindex(s, charwanted) /* found char, or NULL if none */ _CONST char *s; char charwanted; { return(strrchr(s, charwanted)); }
25
9
(translation_unit) "#include <lib.h>\n/* rindex - find last occurrence of a character in a string */\n\n#include <string.h>\n\nchar *rindex(s, charwanted) /* found char, or NULL if none */\n_CONST char *s;\nchar charwanted;\n{\n return(strrchr(s, charwanted));\n}\n" (preproc_include) "#include <lib.h>\n" (#include) "#include" (system_lib_string) "<lib.h>" (comment) "/* rindex - find last occurrence of a character in a string */" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (declaration) "char *rindex(s, charwanted) /* found char, or NULL if none */\n_CONST char *s;" (primitive_type) "char" (pointer_declarator) "*rindex(s, charwanted) /* found char, or NULL if none */\n_CONST char *s" (*) "*" (function_declarator) "rindex(s, charwanted) /* found char, or NULL if none */\n_CONST char *s" (identifier) "rindex" (parameter_list) "(s, charwanted)" (() "(" (parameter_declaration) "s" (type_identifier) "s" (,) "," (parameter_declaration) "charwanted" (type_identifier) "charwanted" ()) ")" (comment) "/* found char, or NULL if none */" (identifier) "_CONST" (identifier) "char" (ERROR) "*" (*) "*" (identifier) "s" (;) ";" (declaration) "char charwanted;" (primitive_type) "char" (identifier) "charwanted" (;) ";" (compound_statement) "{\n return(strrchr(s, charwanted));\n}" ({) "{" (return_statement) "return(strrchr(s, charwanted));" (return) "return" (parenthesized_expression) "(strrchr(s, charwanted))" (() "(" (call_expression) "strrchr(s, charwanted)" (identifier) "strrchr" (argument_list) "(s, charwanted)" (() "(" (identifier) "s" (,) "," (identifier) "charwanted" ()) ")" ()) ")" (;) ";" (}) "}"
50
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.0, "nodes": 32, "errors": 0, "source_hash": "3dceb022f79bb9b804f1d5d106bf37c1aaa6b2c000de2f52ab836c25b63dd328", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <lib.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": "<lib.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 6, "type": "declaration", "text": "char *rindex(s, charwanted)\t/* found char, or NULL if none */\n_CONST char *s;", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 15}}, {"id": 7, "type": "primitive_type", "text": "char", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 8, "type": "pointer_declarator", "text": "*rindex(s, charwanted)\t/* found char, or NULL if none */\n_CONST char *s", "parent": 6, "children": [9, 10], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 6, "column": 14}}, {"id": 9, "type": "*", "text": "*", "parent": 8, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 6}}, {"id": 10, "type": "function_declarator", "text": "rindex(s, charwanted)\t/* found char, or NULL if none */\n_CONST char *s", "parent": 8, "children": [11, 12, 17, 18, 19, 21], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 6, "column": 14}}, {"id": 11, "type": "identifier", "text": "rindex", "parent": 10, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 12}}, {"id": 12, "type": "parameter_list", "text": "(s, charwanted)", "parent": 10, "children": [13, 15], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 27}}, {"id": 13, "type": "parameter_declaration", "text": "s", "parent": 12, "children": [14], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 14}}, {"id": 14, "type": "type_identifier", "text": "s", "parent": 13, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 14}}, {"id": 15, "type": "parameter_declaration", "text": "charwanted", "parent": 12, "children": [16], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 26}}, {"id": 16, "type": "type_identifier", "text": "charwanted", "parent": 15, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 26}}, {"id": 17, "type": "identifier", "text": "_CONST", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 18, "type": "identifier", "text": "char", "parent": 10, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 19, "type": "ERROR", "text": "*", "parent": 10, "children": [20], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 21, "type": "identifier", "text": "s", "parent": 10, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 14}}, {"id": 22, "type": "declaration", "text": "char charwanted;", "parent": null, "children": [23, 24], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 16}}, {"id": 23, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 24, "type": "identifier", "text": "charwanted", "parent": 22, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 15}}, {"id": 25, "type": "return_statement", "text": "return(strrchr(s, charwanted));", "parent": null, "children": [26], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 33}}, {"id": 26, "type": "parenthesized_expression", "text": "(strrchr(s, charwanted))", "parent": 25, "children": [27], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 32}}, {"id": 27, "type": "call_expression", "text": "strrchr(s, charwanted)", "parent": 26, "children": [28, 29], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 31}}, {"id": 28, "type": "identifier", "text": "strrchr", "parent": 27, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 16}}, {"id": 29, "type": "argument_list", "text": "(s, charwanted)", "parent": 27, "children": [30, 31], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 31}}, {"id": 30, "type": "identifier", "text": "s", "parent": 29, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 31, "type": "identifier", "text": "charwanted", "parent": 29, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 30}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [6, 13, 15, 22], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [26, 27], "assignments": [], "loops": [], "conditionals": [11, 14, 16, 17, 18, 21, 24, 28, 30, 31], "returns": [25], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "rindex(s, charwanted)\t/* found char, or NULL if none */\n_CONST char *s"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <lib.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <string.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <lib.h>\n/* rindex - find last occurrence of a character in a string */\n\n#include <string.h>\n\nchar *rindex(s, charwanted)\t/* found char, or NULL if none */\n_CONST char *s;\nchar charwanted;\n{\n return(strrchr(s, charwanted));\n}\n"}
154
c
/* * Copyright 2010 <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 "config.h" #include "sequanto/server.h" #include "sequanto/stream.h" #include "sequanto/protocol.h" #include "sequanto/value.h" #include "sequanto/types.h" #include "sequanto/thread.h" #include <string.h> #include <stdio.h> #include <assert.h> static SQServer * server_instance; void sq_server_init ( SQServer * _server, int _portNumber ) { assert ( _server != NULL ); _server->m_clientsHandled = 0; _server->m_stream = sq_stream_open ( _portNumber ); sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server ); server_instance = _server; sq_parser_init ( &_server->m_parser ); } void sq_server_destroy ( SQServer * _server ) { assert ( _server != NULL ); sq_stream_close ( _server->m_stream ); _server->m_stream = NULL; server_instance = NULL; } SQServer * sq_server_get_instance ( void ) { return server_instance; } void sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte ) { assert ( _server != NULL ); sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte ); } #ifdef SQ_QT_MACHINE_AUTOMATION extern void windows_init_if_not_already ( void ); #endif void sq_server_poll ( SQServer * _server ) { SQByte byte; assert ( _server != NULL ); #ifdef SQ_QT_MACHINE_AUTOMATION windows_init_if_not_already (); #endif sq_stream_poll ( _server->m_stream ); if ( !sq_thread_is_supported() ) { while ( sq_stream_data_available(_server->m_stream) > 0 ) { if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) { /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ return; } sq_server_internal_handle_byte ( _server, byte ); } } } void sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length ) { size_t i ; SQServer * server = (SQServer *) _data; SQ_UNUSED_PARAMETER(_stream); for ( i= 0; i < _length; i++ ) { sq_server_internal_handle_byte ( server, _buffer[i] ); } } void sq_server_join ( SQServer * _server ) { sq_stream_join ( _server->m_stream ); } /* void sq_server_start( SQServer * _server) { SQStream * client; while ( _server->m_keepListening == SQ_TRUE ) { client = sq_stream_accept ( _server->m_listener ); _server->m_clientsHandled ++; sq_server_handle_client ( _server, client ); sq_stream_close ( client ); } } */
24.74
131
(translation_unit) "/* \n * Copyright 2010 <NAME> <<EMAIL>> \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); you \n * 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 \n * implied. See the License for the specific language governing \n * permissions and limitations under the License. \n */ \n \n#include "config.h" \n \n#include "sequanto/server.h" \n#include "sequanto/stream.h" \n#include "sequanto/protocol.h" \n#include "sequanto/value.h" \n#include "sequanto/types.h" \n#include "sequanto/thread.h" \n \n#include <string.h> \n#include <stdio.h> \n#include <assert.h> \n \nstatic SQServer * server_instance; \n \nvoid sq_server_init ( SQServer * _server, int _portNumber ) \n{ \n assert ( _server != NULL ); \n \n _server->m_clientsHandled = 0; \n _server->m_stream = sq_stream_open ( _portNumber ); \n sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server ); \n \n server_instance = _server; \n \n sq_parser_init ( &_server->m_parser ); \n} \n \nvoid sq_server_destroy ( SQServer * _server ) \n{ \n assert ( _server != NULL ); \n \n sq_stream_close ( _server->m_stream ); \n _server->m_stream = NULL; \n \n server_instance = NULL; \n} \n \nSQServer * sq_server_get_instance ( void ) \n{ \n return server_instance; \n} \n \nvoid sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte ) \n{ \n assert ( _server != NULL ); \n \n sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte ); \n} \n \n#ifdef SQ_QT_MACHINE_AUTOMATION \nextern void windows_init_if_not_already ( void ); \n#endif \n \nvoid sq_server_poll ( SQServer * _server ) \n{ \n SQByte byte; \n \n assert ( _server != NULL ); \n \n#ifdef SQ_QT_MACHINE_AUTOMATION \n windows_init_if_not_already (); \n#endif \n \n sq_stream_poll ( _server->m_stream ); \n \n if ( !sq_thread_is_supported() ) \n { \n while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n } \n } \n} \n \nvoid sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length ) \n{ \n size_t i ; \n SQServer * server = (SQServer *) _data; \n \n SQ_UNUSED_PARAMETER(_stream); \n \n for ( i= 0; i < _length; i++ ) \n { \n sq_server_internal_handle_byte ( server, _buffer[i] ); \n } \n} \n \nvoid sq_server_join ( SQServer * _server ) \n{ \n sq_stream_join ( _server->m_stream ); \n} \n \n/* \n void sq_server_start( SQServer * _server) \n { \n SQStream * client; \n \n while ( _server->m_keepListening == SQ_TRUE ) \n { \n client = sq_stream_accept ( _server->m_listener ); \n \n _server->m_clientsHandled ++; \n \n sq_server_handle_client ( _server, client ); \n \n sq_stream_close ( client ); \n } \n } \n*/ \n" (comment) "/* \n * Copyright 2010 <NAME> <<EMAIL>> \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); you \n * 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 \n * implied. See the License for the specific language governing \n * permissions and limitations under the License. \n */" (preproc_include) "#include "config.h" \n" (#include) "#include" (string_literal) ""config.h"" (") """ (string_content) "config.h" (") """ (preproc_include) "#include "sequanto/server.h" \n" (#include) "#include" (string_literal) ""sequanto/server.h"" (") """ (string_content) "sequanto/server.h" (") """ (preproc_include) "#include "sequanto/stream.h" \n" (#include) "#include" (string_literal) ""sequanto/stream.h"" (") """ (string_content) "sequanto/stream.h" (") """ (preproc_include) "#include "sequanto/protocol.h" \n" (#include) "#include" (string_literal) ""sequanto/protocol.h"" (") """ (string_content) "sequanto/protocol.h" (") """ (preproc_include) "#include "sequanto/value.h" \n" (#include) "#include" (string_literal) ""sequanto/value.h"" (") """ (string_content) "sequanto/value.h" (") """ (preproc_include) "#include "sequanto/types.h" \n" (#include) "#include" (string_literal) ""sequanto/types.h"" (") """ (string_content) "sequanto/types.h" (") """ (preproc_include) "#include "sequanto/thread.h" \n" (#include) "#include" (string_literal) ""sequanto/thread.h"" (") """ (string_content) "sequanto/thread.h" (") """ (preproc_include) "#include <string.h> \n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <assert.h> \n" (#include) "#include" (system_lib_string) "<assert.h>" (declaration) "static SQServer * server_instance;" (storage_class_specifier) "static" (static) "static" (type_identifier) "SQServer" (pointer_declarator) "* server_instance" (*) "*" (identifier) "server_instance" (;) ";" (function_definition) "void sq_server_init ( SQServer * _server, int _portNumber ) \n{ \n assert ( _server != NULL ); \n \n _server->m_clientsHandled = 0; \n _server->m_stream = sq_stream_open ( _portNumber ); \n sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server ); \n \n server_instance = _server; \n \n sq_parser_init ( &_server->m_parser ); \n}" (primitive_type) "void" (function_declarator) "sq_server_init ( SQServer * _server, int _portNumber )" (identifier) "sq_server_init" (parameter_list) "( SQServer * _server, int _portNumber )" (() "(" (parameter_declaration) "SQServer * _server" (type_identifier) "SQServer" (pointer_declarator) "* _server" (*) "*" (identifier) "_server" (,) "," (parameter_declaration) "int _portNumber" (primitive_type) "int" (identifier) "_portNumber" ()) ")" (compound_statement) "{ \n assert ( _server != NULL ); \n \n _server->m_clientsHandled = 0; \n _server->m_stream = sq_stream_open ( _portNumber ); \n sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server ); \n \n server_instance = _server; \n \n sq_parser_init ( &_server->m_parser ); \n}" ({) "{" (expression_statement) "assert ( _server != NULL );" (call_expression) "assert ( _server != NULL )" (identifier) "assert" (argument_list) "( _server != NULL )" (() "(" (binary_expression) "_server != NULL" (identifier) "_server" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "_server->m_clientsHandled = 0;" (assignment_expression) "_server->m_clientsHandled = 0" (field_expression) "_server->m_clientsHandled" (identifier) "_server" (->) "->" (field_identifier) "m_clientsHandled" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "_server->m_stream = sq_stream_open ( _portNumber );" (assignment_expression) "_server->m_stream = sq_stream_open ( _portNumber )" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" (=) "=" (call_expression) "sq_stream_open ( _portNumber )" (identifier) "sq_stream_open" (argument_list) "( _portNumber )" (() "(" (identifier) "_portNumber" ()) ")" (;) ";" (expression_statement) "sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server );" (call_expression) "sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server )" (identifier) "sq_stream_set_data_received_handler" (argument_list) "( _server->m_stream, sq_server_handle_stream_data_received, _server )" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" (,) "," (identifier) "sq_server_handle_stream_data_received" (,) "," (identifier) "_server" ()) ")" (;) ";" (expression_statement) "server_instance = _server;" (assignment_expression) "server_instance = _server" (identifier) "server_instance" (=) "=" (identifier) "_server" (;) ";" (expression_statement) "sq_parser_init ( &_server->m_parser );" (call_expression) "sq_parser_init ( &_server->m_parser )" (identifier) "sq_parser_init" (argument_list) "( &_server->m_parser )" (() "(" (pointer_expression) "&_server->m_parser" (&) "&" (field_expression) "_server->m_parser" (identifier) "_server" (->) "->" (field_identifier) "m_parser" ()) ")" (;) ";" (}) "}" (function_definition) "void sq_server_destroy ( SQServer * _server ) \n{ \n assert ( _server != NULL ); \n \n sq_stream_close ( _server->m_stream ); \n _server->m_stream = NULL; \n \n server_instance = NULL; \n}" (primitive_type) "void" (function_declarator) "sq_server_destroy ( SQServer * _server )" (identifier) "sq_server_destroy" (parameter_list) "( SQServer * _server )" (() "(" (parameter_declaration) "SQServer * _server" (type_identifier) "SQServer" (pointer_declarator) "* _server" (*) "*" (identifier) "_server" ()) ")" (compound_statement) "{ \n assert ( _server != NULL ); \n \n sq_stream_close ( _server->m_stream ); \n _server->m_stream = NULL; \n \n server_instance = NULL; \n}" ({) "{" (expression_statement) "assert ( _server != NULL );" (call_expression) "assert ( _server != NULL )" (identifier) "assert" (argument_list) "( _server != NULL )" (() "(" (binary_expression) "_server != NULL" (identifier) "_server" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "sq_stream_close ( _server->m_stream );" (call_expression) "sq_stream_close ( _server->m_stream )" (identifier) "sq_stream_close" (argument_list) "( _server->m_stream )" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" ()) ")" (;) ";" (expression_statement) "_server->m_stream = NULL;" (assignment_expression) "_server->m_stream = NULL" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "server_instance = NULL;" (assignment_expression) "server_instance = NULL" (identifier) "server_instance" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "SQServer * sq_server_get_instance ( void ) \n{ \n return server_instance; \n}" (type_identifier) "SQServer" (pointer_declarator) "* sq_server_get_instance ( void )" (*) "*" (function_declarator) "sq_server_get_instance ( void )" (identifier) "sq_server_get_instance" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n return server_instance; \n}" ({) "{" (return_statement) "return server_instance;" (return) "return" (identifier) "server_instance" (;) ";" (}) "}" (function_definition) "void sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte ) \n{ \n assert ( _server != NULL ); \n \n sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte ); \n}" (primitive_type) "void" (function_declarator) "sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )" (identifier) "sq_server_internal_handle_byte" (parameter_list) "( SQServer * _server, SQByte _byte )" (() "(" (parameter_declaration) "SQServer * _server" (type_identifier) "SQServer" (pointer_declarator) "* _server" (*) "*" (identifier) "_server" (,) "," (parameter_declaration) "SQByte _byte" (type_identifier) "SQByte" (identifier) "_byte" ()) ")" (compound_statement) "{ \n assert ( _server != NULL ); \n \n sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte ); \n}" ({) "{" (expression_statement) "assert ( _server != NULL );" (call_expression) "assert ( _server != NULL )" (identifier) "assert" (argument_list) "( _server != NULL )" (() "(" (binary_expression) "_server != NULL" (identifier) "_server" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte );" (call_expression) "sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte )" (identifier) "sq_parser_input_byte" (argument_list) "( &_server->m_parser, _server->m_stream, _byte )" (() "(" (pointer_expression) "&_server->m_parser" (&) "&" (field_expression) "_server->m_parser" (identifier) "_server" (->) "->" (field_identifier) "m_parser" (,) "," (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" (,) "," (identifier) "_byte" ()) ")" (;) ";" (}) "}" (preproc_ifdef) "#ifdef SQ_QT_MACHINE_AUTOMATION \nextern void windows_init_if_not_already ( void ); \n#endif" (#ifdef) "#ifdef" (identifier) "SQ_QT_MACHINE_AUTOMATION" (declaration) "extern void windows_init_if_not_already ( void );" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "windows_init_if_not_already ( void )" (identifier) "windows_init_if_not_already" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (function_definition) "void sq_server_poll ( SQServer * _server ) \n{ \n SQByte byte; \n \n assert ( _server != NULL ); \n \n#ifdef SQ_QT_MACHINE_AUTOMATION \n windows_init_if_not_already (); \n#endif \n \n sq_stream_poll ( _server->m_stream ); \n \n if ( !sq_thread_is_supported() ) \n { \n while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n } \n } \n}" (primitive_type) "void" (function_declarator) "sq_server_poll ( SQServer * _server )" (identifier) "sq_server_poll" (parameter_list) "( SQServer * _server )" (() "(" (parameter_declaration) "SQServer * _server" (type_identifier) "SQServer" (pointer_declarator) "* _server" (*) "*" (identifier) "_server" ()) ")" (compound_statement) "{ \n SQByte byte; \n \n assert ( _server != NULL ); \n \n#ifdef SQ_QT_MACHINE_AUTOMATION \n windows_init_if_not_already (); \n#endif \n \n sq_stream_poll ( _server->m_stream ); \n \n if ( !sq_thread_is_supported() ) \n { \n while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n } \n } \n}" ({) "{" (declaration) "SQByte byte;" (type_identifier) "SQByte" (identifier) "byte" (;) ";" (expression_statement) "assert ( _server != NULL );" (call_expression) "assert ( _server != NULL )" (identifier) "assert" (argument_list) "( _server != NULL )" (() "(" (binary_expression) "_server != NULL" (identifier) "_server" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (preproc_ifdef) "#ifdef SQ_QT_MACHINE_AUTOMATION \n windows_init_if_not_already (); \n#endif" (#ifdef) "#ifdef" (identifier) "SQ_QT_MACHINE_AUTOMATION" (expression_statement) "windows_init_if_not_already ();" (call_expression) "windows_init_if_not_already ()" (identifier) "windows_init_if_not_already" (argument_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "sq_stream_poll ( _server->m_stream );" (call_expression) "sq_stream_poll ( _server->m_stream )" (identifier) "sq_stream_poll" (argument_list) "( _server->m_stream )" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" ()) ")" (;) ";" (if_statement) "if ( !sq_thread_is_supported() ) \n { \n while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n } \n }" (if) "if" (parenthesized_expression) "( !sq_thread_is_supported() )" (() "(" (unary_expression) "!sq_thread_is_supported()" (!) "!" (call_expression) "sq_thread_is_supported()" (identifier) "sq_thread_is_supported" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n } \n }" ({) "{" (while_statement) "while ( sq_stream_data_available(_server->m_stream) > 0 ) \n { \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n }" (while) "while" (parenthesized_expression) "( sq_stream_data_available(_server->m_stream) > 0 )" (() "(" (binary_expression) "sq_stream_data_available(_server->m_stream) > 0" (call_expression) "sq_stream_data_available(_server->m_stream)" (identifier) "sq_stream_data_available" (argument_list) "(_server->m_stream)" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" ()) ")" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{ \n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n } \n sq_server_internal_handle_byte ( _server, byte ); \n }" ({) "{" (if_statement) "if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE ) \n { \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n }" (if) "if" (parenthesized_expression) "( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )" (() "(" (binary_expression) "sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE" (call_expression) "sq_stream_read_byte ( _server->m_stream, &byte )" (identifier) "sq_stream_read_byte" (argument_list) "( _server->m_stream, &byte )" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" (,) "," (pointer_expression) "&byte" (&) "&" (identifier) "byte" ()) ")" (==) "==" (identifier) "SQ_FALSE" ()) ")" (compound_statement) "{ \n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */ \n return; \n }" ({) "{" (comment) "/* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT("sq_server_poll: read_byte returned FALSE\r\n")) ); */" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "sq_server_internal_handle_byte ( _server, byte );" (call_expression) "sq_server_internal_handle_byte ( _server, byte )" (identifier) "sq_server_internal_handle_byte" (argument_list) "( _server, byte )" (() "(" (identifier) "_server" (,) "," (identifier) "byte" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "void sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length ) \n{ \n size_t i ; \n SQServer * server = (SQServer *) _data; \n \n SQ_UNUSED_PARAMETER(_stream); \n \n for ( i= 0; i < _length; i++ ) \n { \n sq_server_internal_handle_byte ( server, _buffer[i] ); \n } \n}" (primitive_type) "void" (function_declarator) "sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )" (identifier) "sq_server_handle_stream_data_received" (parameter_list) "( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )" (() "(" (parameter_declaration) "SQStream * _stream" (type_identifier) "SQStream" (pointer_declarator) "* _stream" (*) "*" (identifier) "_stream" (,) "," (parameter_declaration) "void * _data" (primitive_type) "void" (pointer_declarator) "* _data" (*) "*" (identifier) "_data" (,) "," (parameter_declaration) "SQByte * _buffer" (type_identifier) "SQByte" (pointer_declarator) "* _buffer" (*) "*" (identifier) "_buffer" (,) "," (parameter_declaration) "size_t _length" (primitive_type) "size_t" (identifier) "_length" ()) ")" (compound_statement) "{ \n size_t i ; \n SQServer * server = (SQServer *) _data; \n \n SQ_UNUSED_PARAMETER(_stream); \n \n for ( i= 0; i < _length; i++ ) \n { \n sq_server_internal_handle_byte ( server, _buffer[i] ); \n } \n}" ({) "{" (declaration) "size_t i ;" (primitive_type) "size_t" (identifier) "i" (;) ";" (declaration) "SQServer * server = (SQServer *) _data;" (type_identifier) "SQServer" (init_declarator) "* server = (SQServer *) _data" (pointer_declarator) "* server" (*) "*" (identifier) "server" (=) "=" (cast_expression) "(SQServer *) _data" (() "(" (type_descriptor) "SQServer *" (type_identifier) "SQServer" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "_data" (;) ";" (expression_statement) "SQ_UNUSED_PARAMETER(_stream);" (call_expression) "SQ_UNUSED_PARAMETER(_stream)" (identifier) "SQ_UNUSED_PARAMETER" (argument_list) "(_stream)" (() "(" (identifier) "_stream" ()) ")" (;) ";" (for_statement) "for ( i= 0; i < _length; i++ ) \n { \n sq_server_internal_handle_byte ( server, _buffer[i] ); \n }" (for) "for" (() "(" (assignment_expression) "i= 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < _length" (identifier) "i" (<) "<" (identifier) "_length" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n sq_server_internal_handle_byte ( server, _buffer[i] ); \n }" ({) "{" (expression_statement) "sq_server_internal_handle_byte ( server, _buffer[i] );" (call_expression) "sq_server_internal_handle_byte ( server, _buffer[i] )" (identifier) "sq_server_internal_handle_byte" (argument_list) "( server, _buffer[i] )" (() "(" (identifier) "server" (,) "," (subscript_expression) "_buffer[i]" (identifier) "_buffer" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void sq_server_join ( SQServer * _server ) \n{ \n sq_stream_join ( _server->m_stream ); \n}" (primitive_type) "void" (function_declarator) "sq_server_join ( SQServer * _server )" (identifier) "sq_server_join" (parameter_list) "( SQServer * _server )" (() "(" (parameter_declaration) "SQServer * _server" (type_identifier) "SQServer" (pointer_declarator) "* _server" (*) "*" (identifier) "_server" ()) ")" (compound_statement) "{ \n sq_stream_join ( _server->m_stream ); \n}" ({) "{" (expression_statement) "sq_stream_join ( _server->m_stream );" (call_expression) "sq_stream_join ( _server->m_stream )" (identifier) "sq_stream_join" (argument_list) "( _server->m_stream )" (() "(" (field_expression) "_server->m_stream" (identifier) "_server" (->) "->" (field_identifier) "m_stream" ()) ")" (;) ";" (}) "}" (comment) "/* \n void sq_server_start( SQServer * _server) \n { \n SQStream * client; \n \n while ( _server->m_keepListening == SQ_TRUE ) \n { \n client = sq_stream_accept ( _server->m_listener ); \n \n _server->m_clientsHandled ++; \n \n sq_server_handle_client ( _server, client ); \n \n sq_stream_close ( client ); \n } \n } \n*/"
535
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 24.74, "nodes": 331, "errors": 0, "source_hash": "9762dfd12cac80c93af5de1648ded4bd8be926fad9d30b46b9555236bee3db0d", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"config.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"config.h\"", "parent": 0, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"sequanto/server.h\"\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"sequanto/server.h\"", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"sequanto/stream.h\"\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"sequanto/stream.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"sequanto/protocol.h\"\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"sequanto/protocol.h\"", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 30}}, {"id": 12, "type": "preproc_include", "text": "#include \"sequanto/value.h\"\r\n", "parent": null, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"sequanto/value.h\"", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 27}}, {"id": 15, "type": "preproc_include", "text": "#include \"sequanto/types.h\"\r\n", "parent": null, "children": [16, 17], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"sequanto/types.h\"", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 27}}, {"id": 18, "type": "preproc_include", "text": "#include \"sequanto/thread.h\"\r\n", "parent": null, "children": [19, 20], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"sequanto/thread.h\"", "parent": 18, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 28}}, {"id": 21, "type": "preproc_include", "text": "#include <string.h>\r\n", "parent": null, "children": [22, 23], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<string.h>", "parent": 21, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 24, "type": "preproc_include", "text": "#include <stdio.h>\r\n", "parent": null, "children": [25, 26], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<stdio.h>", "parent": 24, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include <assert.h>\r\n", "parent": null, "children": [28, 29], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<assert.h>", "parent": 27, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 19}}, {"id": 30, "type": "declaration", "text": "static SQServer * server_instance;", "parent": null, "children": [31, 32], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 34}}, {"id": 31, "type": "type_identifier", "text": "SQServer", "parent": 30, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 15}}, {"id": 32, "type": "pointer_declarator", "text": "* server_instance", "parent": 30, "children": [33, 34], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 33}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 34, "type": "identifier", "text": "server_instance", "parent": 32, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 33}}, {"id": 35, "type": "function_definition", "text": "void sq_server_init ( SQServer * _server, int _portNumber )\r\n{\r\n assert ( _server != NULL );\r\n\r\n _server->m_clientsHandled = 0;\r\n _server->m_stream = sq_stream_open ( _portNumber );\r\n sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server );\r\n\r\n server_instance = _server;\r\n\r\n sq_parser_init ( &_server->m_parser );\r\n}", "parent": null, "children": [36, 37], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 4}}, {"id": 37, "type": "function_declarator", "text": "sq_server_init ( SQServer * _server, int _portNumber )", "parent": 35, "children": [38, 39], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 59}}, {"id": 38, "type": "identifier", "text": "sq_server_init", "parent": 37, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 19}}, {"id": 39, "type": "parameter_list", "text": "( SQServer * _server, int _portNumber )", "parent": 37, "children": [40, 45], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 59}}, {"id": 40, "type": "parameter_declaration", "text": "SQServer * _server", "parent": 39, "children": [41, 42], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 40}}, {"id": 41, "type": "type_identifier", "text": "SQServer", "parent": 40, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 30}}, {"id": 42, "type": "pointer_declarator", "text": "* _server", "parent": 40, "children": [43, 44], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 40}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 32}}, {"id": 44, "type": "identifier", "text": "_server", "parent": 42, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 40}}, {"id": 45, "type": "parameter_declaration", "text": "int _portNumber", "parent": 39, "children": [46, 47], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 57}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 45}}, {"id": 47, "type": "identifier", "text": "_portNumber", "parent": 45, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 57}}, {"id": 48, "type": "call_expression", "text": "assert ( _server != NULL )", "parent": 35, "children": [49, 50], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 30}}, {"id": 49, "type": "identifier", "text": "assert", "parent": 48, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 50, "type": "argument_list", "text": "( _server != NULL )", "parent": 48, "children": [51], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 30}}, {"id": 51, "type": "binary_expression", "text": "_server != NULL", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 28}}, {"id": 52, "type": "identifier", "text": "_server", "parent": 51, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 20}}, {"id": 53, "type": "!=", "text": "!=", "parent": 51, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 23}}, {"id": 54, "type": "null", "text": "NULL", "parent": 51, "children": [55], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 55, "type": "NULL", "text": "NULL", "parent": 54, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 56, "type": "assignment_expression", "text": "_server->m_clientsHandled = 0", "parent": 35, "children": [57, 60, 61], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 33}}, {"id": 57, "type": "field_expression", "text": "_server->m_clientsHandled", "parent": 56, "children": [58, 59], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 29}}, {"id": 58, "type": "identifier", "text": "_server", "parent": 57, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 59, "type": "field_identifier", "text": "m_clientsHandled", "parent": 57, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 29}}, {"id": 60, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 62, "type": "assignment_expression", "text": "_server->m_stream = sq_stream_open ( _portNumber )", "parent": 35, "children": [63, 66, 67], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 54}}, {"id": 63, "type": "field_expression", "text": "_server->m_stream", "parent": 62, "children": [64, 65], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 21}}, {"id": 64, "type": "identifier", "text": "_server", "parent": 63, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 65, "type": "field_identifier", "text": "m_stream", "parent": 63, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 21}}, {"id": 66, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 23}}, {"id": 67, "type": "call_expression", "text": "sq_stream_open ( _portNumber )", "parent": 62, "children": [68, 69], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 54}}, {"id": 68, "type": "identifier", "text": "sq_stream_open", "parent": 67, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 38}}, {"id": 69, "type": "argument_list", "text": "( _portNumber )", "parent": 67, "children": [70], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 54}}, {"id": 70, "type": "identifier", "text": "_portNumber", "parent": 69, "children": [], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 52}}, {"id": 71, "type": "call_expression", "text": "sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server )", "parent": 35, "children": [72, 73], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 109}}, {"id": 72, "type": "identifier", "text": "sq_stream_set_data_received_handler", "parent": 71, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 39}}, {"id": 73, "type": "argument_list", "text": "( _server->m_stream, sq_server_handle_stream_data_received, _server )", "parent": 71, "children": [74, 77, 78], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 109}}, {"id": 74, "type": "field_expression", "text": "_server->m_stream", "parent": 73, "children": [75, 76], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 59}}, {"id": 75, "type": "identifier", "text": "_server", "parent": 74, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 49}}, {"id": 76, "type": "field_identifier", "text": "m_stream", "parent": 74, "children": [], "start_point": {"row": 37, "column": 51}, "end_point": {"row": 37, "column": 59}}, {"id": 77, "type": "identifier", "text": "sq_server_handle_stream_data_received", "parent": 73, "children": [], "start_point": {"row": 37, "column": 61}, "end_point": {"row": 37, "column": 98}}, {"id": 78, "type": "identifier", "text": "_server", "parent": 73, "children": [], "start_point": {"row": 37, "column": 100}, "end_point": {"row": 37, "column": 107}}, {"id": 79, "type": "assignment_expression", "text": "server_instance = _server", "parent": 35, "children": [80, 81, 82], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 29}}, {"id": 80, "type": "identifier", "text": "server_instance", "parent": 79, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 19}}, {"id": 81, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 82, "type": "identifier", "text": "_server", "parent": 79, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 29}}, {"id": 83, "type": "call_expression", "text": "sq_parser_init ( &_server->m_parser )", "parent": 35, "children": [84, 85], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 41}}, {"id": 84, "type": "identifier", "text": "sq_parser_init", "parent": 83, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 18}}, {"id": 85, "type": "argument_list", "text": "( &_server->m_parser )", "parent": 83, "children": [86], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 41}}, {"id": 86, "type": "pointer_expression", "text": "&_server->m_parser", "parent": 85, "children": [87], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 39}}, {"id": 87, "type": "field_expression", "text": "_server->m_parser", "parent": 86, "children": [88, 89], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 39}}, {"id": 88, "type": "identifier", "text": "_server", "parent": 87, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 29}}, {"id": 89, "type": "field_identifier", "text": "m_parser", "parent": 87, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 39}}, {"id": 90, "type": "function_definition", "text": "void sq_server_destroy ( SQServer * _server )\r\n{\r\n assert ( _server != NULL );\r\n\r\n sq_stream_close ( _server->m_stream );\r\n _server->m_stream = NULL;\r\n\r\n server_instance = NULL;\r\n}", "parent": null, "children": [91, 92], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 92, "type": "function_declarator", "text": "sq_server_destroy ( SQServer * _server )", "parent": 90, "children": [93, 94], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 45}}, {"id": 93, "type": "identifier", "text": "sq_server_destroy", "parent": 92, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 22}}, {"id": 94, "type": "parameter_list", "text": "( SQServer * _server )", "parent": 92, "children": [95], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 45}}, {"id": 95, "type": "parameter_declaration", "text": "SQServer * _server", "parent": 94, "children": [96, 97], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 43}}, {"id": 96, "type": "type_identifier", "text": "SQServer", "parent": 95, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 33}}, {"id": 97, "type": "pointer_declarator", "text": "* _server", "parent": 95, "children": [98, 99], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 43}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 35}}, {"id": 99, "type": "identifier", "text": "_server", "parent": 97, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 43}}, {"id": 100, "type": "call_expression", "text": "assert ( _server != NULL )", "parent": 90, "children": [101, 102], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 30}}, {"id": 101, "type": "identifier", "text": "assert", "parent": 100, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 102, "type": "argument_list", "text": "( _server != NULL )", "parent": 100, "children": [103], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 30}}, {"id": 103, "type": "binary_expression", "text": "_server != NULL", "parent": 102, "children": [104, 105, 106], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 28}}, {"id": 104, "type": "identifier", "text": "_server", "parent": 103, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 20}}, {"id": 105, "type": "!=", "text": "!=", "parent": 103, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 23}}, {"id": 106, "type": "null", "text": "NULL", "parent": 103, "children": [107], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 28}}, {"id": 107, "type": "NULL", "text": "NULL", "parent": 106, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 28}}, {"id": 108, "type": "call_expression", "text": "sq_stream_close ( _server->m_stream )", "parent": 90, "children": [109, 110], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 41}}, {"id": 109, "type": "identifier", "text": "sq_stream_close", "parent": 108, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 19}}, {"id": 110, "type": "argument_list", "text": "( _server->m_stream )", "parent": 108, "children": [111], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 41}}, {"id": 111, "type": "field_expression", "text": "_server->m_stream", "parent": 110, "children": [112, 113], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 39}}, {"id": 112, "type": "identifier", "text": "_server", "parent": 111, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 29}}, {"id": 113, "type": "field_identifier", "text": "m_stream", "parent": 111, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 39}}, {"id": 114, "type": "assignment_expression", "text": "_server->m_stream = NULL", "parent": 90, "children": [115, 118, 119], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 28}}, {"id": 115, "type": "field_expression", "text": "_server->m_stream", "parent": 114, "children": [116, 117], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 21}}, {"id": 116, "type": "identifier", "text": "_server", "parent": 115, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 117, "type": "field_identifier", "text": "m_stream", "parent": 115, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 21}}, {"id": 118, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 119, "type": "null", "text": "NULL", "parent": 114, "children": [120], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 28}}, {"id": 120, "type": "NULL", "text": "NULL", "parent": 119, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 28}}, {"id": 121, "type": "assignment_expression", "text": "server_instance = NULL", "parent": 90, "children": [122, 123, 124], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 26}}, {"id": 122, "type": "identifier", "text": "server_instance", "parent": 121, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 19}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 124, "type": "null", "text": "NULL", "parent": 121, "children": [125], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 26}}, {"id": 125, "type": "NULL", "text": "NULL", "parent": 124, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 26}}, {"id": 126, "type": "function_definition", "text": "SQServer * sq_server_get_instance ( void )\r\n{\r\n return server_instance;\r\n}", "parent": null, "children": [127, 128], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 127, "type": "type_identifier", "text": "SQServer", "parent": 126, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 8}}, {"id": 128, "type": "pointer_declarator", "text": "* sq_server_get_instance ( void )", "parent": 126, "children": [129, 130], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 42}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 10}}, {"id": 130, "type": "function_declarator", "text": "sq_server_get_instance ( void )", "parent": 128, "children": [131, 132], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 42}}, {"id": 131, "type": "identifier", "text": "sq_server_get_instance", "parent": 130, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 33}}, {"id": 132, "type": "parameter_list", "text": "( void )", "parent": 130, "children": [133], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 42}}, {"id": 133, "type": "parameter_declaration", "text": "void", "parent": 132, "children": [134], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 40}}, {"id": 134, "type": "primitive_type", "text": "void", "parent": 133, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 40}}, {"id": 135, "type": "return_statement", "text": "return server_instance;", "parent": 126, "children": [136], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 27}}, {"id": 136, "type": "identifier", "text": "server_instance", "parent": 135, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 26}}, {"id": 137, "type": "function_definition", "text": "void sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )\r\n{\r\n assert ( _server != NULL );\r\n\r\n sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte );\r\n}", "parent": null, "children": [138, 139], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 138, "type": "primitive_type", "text": "void", "parent": 137, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 139, "type": "function_declarator", "text": "sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )", "parent": 137, "children": [140, 141], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 72}}, {"id": 140, "type": "identifier", "text": "sq_server_internal_handle_byte", "parent": 139, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 35}}, {"id": 141, "type": "parameter_list", "text": "( SQServer * _server, SQByte _byte )", "parent": 139, "children": [142, 147], "start_point": {"row": 59, "column": 36}, "end_point": {"row": 59, "column": 72}}, {"id": 142, "type": "parameter_declaration", "text": "SQServer * _server", "parent": 141, "children": [143, 144], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 56}}, {"id": 143, "type": "type_identifier", "text": "SQServer", "parent": 142, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 46}}, {"id": 144, "type": "pointer_declarator", "text": "* _server", "parent": 142, "children": [145, 146], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 56}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 48}}, {"id": 146, "type": "identifier", "text": "_server", "parent": 144, "children": [], "start_point": {"row": 59, "column": 49}, "end_point": {"row": 59, "column": 56}}, {"id": 147, "type": "parameter_declaration", "text": "SQByte _byte", "parent": 141, "children": [148, 149], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 59, "column": 70}}, {"id": 148, "type": "type_identifier", "text": "SQByte", "parent": 147, "children": [], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 59, "column": 64}}, {"id": 149, "type": "identifier", "text": "_byte", "parent": 147, "children": [], "start_point": {"row": 59, "column": 65}, "end_point": {"row": 59, "column": 70}}, {"id": 150, "type": "call_expression", "text": "assert ( _server != NULL )", "parent": 137, "children": [151, 152], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 30}}, {"id": 151, "type": "identifier", "text": "assert", "parent": 150, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 10}}, {"id": 152, "type": "argument_list", "text": "( _server != NULL )", "parent": 150, "children": [153], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 30}}, {"id": 153, "type": "binary_expression", "text": "_server != NULL", "parent": 152, "children": [154, 155, 156], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 28}}, {"id": 154, "type": "identifier", "text": "_server", "parent": 153, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 20}}, {"id": 155, "type": "!=", "text": "!=", "parent": 153, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 23}}, {"id": 156, "type": "null", "text": "NULL", "parent": 153, "children": [157], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 28}}, {"id": 157, "type": "NULL", "text": "NULL", "parent": 156, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 28}}, {"id": 158, "type": "call_expression", "text": "sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte )", "parent": 137, "children": [159, 160], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 73}}, {"id": 159, "type": "identifier", "text": "sq_parser_input_byte", "parent": 158, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 24}}, {"id": 160, "type": "argument_list", "text": "( &_server->m_parser, _server->m_stream, _byte )", "parent": 158, "children": [161, 165, 168], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 73}}, {"id": 161, "type": "pointer_expression", "text": "&_server->m_parser", "parent": 160, "children": [162], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 45}}, {"id": 162, "type": "field_expression", "text": "_server->m_parser", "parent": 161, "children": [163, 164], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 45}}, {"id": 163, "type": "identifier", "text": "_server", "parent": 162, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 35}}, {"id": 164, "type": "field_identifier", "text": "m_parser", "parent": 162, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 45}}, {"id": 165, "type": "field_expression", "text": "_server->m_stream", "parent": 160, "children": [166, 167], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 64}}, {"id": 166, "type": "identifier", "text": "_server", "parent": 165, "children": [], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 54}}, {"id": 167, "type": "field_identifier", "text": "m_stream", "parent": 165, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 64}}, {"id": 168, "type": "identifier", "text": "_byte", "parent": 160, "children": [], "start_point": {"row": 63, "column": 66}, "end_point": {"row": 63, "column": 71}}, {"id": 169, "type": "preproc_ifdef", "text": "#ifdef SQ_QT_MACHINE_AUTOMATION\r\nextern void windows_init_if_not_already ( void );\r\n#endif", "parent": null, "children": [170, 171, 172, 181], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 170, "type": "#ifdef", "text": "#ifdef", "parent": 169, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 171, "type": "identifier", "text": "SQ_QT_MACHINE_AUTOMATION", "parent": 169, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 31}}, {"id": 172, "type": "declaration", "text": "extern void windows_init_if_not_already ( void );", "parent": 169, "children": [173, 175, 176], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 49}}, {"id": 173, "type": "storage_class_specifier", "text": "extern", "parent": 172, "children": [174], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 174, "type": "extern", "text": "extern", "parent": 173, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 176, "type": "function_declarator", "text": "windows_init_if_not_already ( void )", "parent": 172, "children": [177, 178], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 48}}, {"id": 177, "type": "identifier", "text": "windows_init_if_not_already", "parent": 176, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 39}}, {"id": 178, "type": "parameter_list", "text": "( void )", "parent": 176, "children": [179], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 48}}, {"id": 179, "type": "parameter_declaration", "text": "void", "parent": 178, "children": [180], "start_point": {"row": 67, "column": 42}, "end_point": {"row": 67, "column": 46}}, {"id": 180, "type": "primitive_type", "text": "void", "parent": 179, "children": [], "start_point": {"row": 67, "column": 42}, "end_point": {"row": 67, "column": 46}}, {"id": 181, "type": "#endif", "text": "#endif", "parent": 169, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 182, "type": "function_definition", "text": "void sq_server_poll ( SQServer * _server )\r\n{\r\n SQByte byte;\r\n\r\n assert ( _server != NULL );\r\n\r\n#ifdef SQ_QT_MACHINE_AUTOMATION\r\n windows_init_if_not_already ();\r\n#endif\r\n\r\n sq_stream_poll ( _server->m_stream );\r\n\r\n if ( !sq_thread_is_supported() )\r\n {\r\n while ( sq_stream_data_available(_server->m_stream) > 0 )\r\n {\r\n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )\r\n {\r\n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT(\"sq_server_poll: read_byte returned FALSE\\r\\n\")) ); */\r\n return;\r\n }\r\n sq_server_internal_handle_byte ( _server, byte );\r\n }\r\n }\r\n}", "parent": null, "children": [183, 184], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 4}}, {"id": 184, "type": "function_declarator", "text": "sq_server_poll ( SQServer * _server )", "parent": 182, "children": [185, 186], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 42}}, {"id": 185, "type": "identifier", "text": "sq_server_poll", "parent": 184, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 19}}, {"id": 186, "type": "parameter_list", "text": "( SQServer * _server )", "parent": 184, "children": [187], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 42}}, {"id": 187, "type": "parameter_declaration", "text": "SQServer * _server", "parent": 186, "children": [188, 189], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 40}}, {"id": 188, "type": "type_identifier", "text": "SQServer", "parent": 187, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 30}}, {"id": 189, "type": "pointer_declarator", "text": "* _server", "parent": 187, "children": [190, 191], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 40}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 32}}, {"id": 191, "type": "identifier", "text": "_server", "parent": 189, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 40}}, {"id": 192, "type": "declaration", "text": "SQByte byte;", "parent": 182, "children": [193, 194], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 16}}, {"id": 193, "type": "type_identifier", "text": "SQByte", "parent": 192, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 10}}, {"id": 194, "type": "identifier", "text": "byte", "parent": 192, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 15}}, {"id": 195, "type": "call_expression", "text": "assert ( _server != NULL )", "parent": 182, "children": [196, 197], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 30}}, {"id": 196, "type": "identifier", "text": "assert", "parent": 195, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 10}}, {"id": 197, "type": "argument_list", "text": "( _server != NULL )", "parent": 195, "children": [198], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 30}}, {"id": 198, "type": "binary_expression", "text": "_server != NULL", "parent": 197, "children": [199, 200, 201], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 28}}, {"id": 199, "type": "identifier", "text": "_server", "parent": 198, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 20}}, {"id": 200, "type": "!=", "text": "!=", "parent": 198, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 23}}, {"id": 201, "type": "null", "text": "NULL", "parent": 198, "children": [202], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 28}}, {"id": 202, "type": "NULL", "text": "NULL", "parent": 201, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 28}}, {"id": 203, "type": "preproc_ifdef", "text": "#ifdef SQ_QT_MACHINE_AUTOMATION\r\n windows_init_if_not_already ();\r\n#endif", "parent": 182, "children": [204, 205, 209], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 204, "type": "#ifdef", "text": "#ifdef", "parent": 203, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 205, "type": "identifier", "text": "SQ_QT_MACHINE_AUTOMATION", "parent": 203, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 31}}, {"id": 206, "type": "call_expression", "text": "windows_init_if_not_already ()", "parent": 203, "children": [207, 208], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 34}}, {"id": 207, "type": "identifier", "text": "windows_init_if_not_already", "parent": 206, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 31}}, {"id": 208, "type": "argument_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 34}}, {"id": 209, "type": "#endif", "text": "#endif", "parent": 203, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 6}}, {"id": 210, "type": "call_expression", "text": "sq_stream_poll ( _server->m_stream )", "parent": 182, "children": [211, 212], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 40}}, {"id": 211, "type": "identifier", "text": "sq_stream_poll", "parent": 210, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 18}}, {"id": 212, "type": "argument_list", "text": "( _server->m_stream )", "parent": 210, "children": [213], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 40}}, {"id": 213, "type": "field_expression", "text": "_server->m_stream", "parent": 212, "children": [214, 215], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 38}}, {"id": 214, "type": "identifier", "text": "_server", "parent": 213, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 28}}, {"id": 215, "type": "field_identifier", "text": "m_stream", "parent": 213, "children": [], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 38}}, {"id": 216, "type": "if_statement", "text": "if ( !sq_thread_is_supported() )\r\n {\r\n while ( sq_stream_data_available(_server->m_stream) > 0 )\r\n {\r\n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )\r\n {\r\n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT(\"sq_server_poll: read_byte returned FALSE\\r\\n\")) ); */\r\n return;\r\n }\r\n sq_server_internal_handle_byte ( _server, byte );\r\n }\r\n }", "parent": 182, "children": [217], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 93, "column": 5}}, {"id": 217, "type": "parenthesized_expression", "text": "( !sq_thread_is_supported() )", "parent": 216, "children": [218], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 36}}, {"id": 218, "type": "unary_expression", "text": "!sq_thread_is_supported()", "parent": 217, "children": [219, 220], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 34}}, {"id": 219, "type": "!", "text": "!", "parent": 218, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 10}}, {"id": 220, "type": "call_expression", "text": "sq_thread_is_supported()", "parent": 218, "children": [221, 222], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 34}}, {"id": 221, "type": "identifier", "text": "sq_thread_is_supported", "parent": 220, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 32}}, {"id": 222, "type": "argument_list", "text": "()", "parent": 220, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 34}}, {"id": 223, "type": "while_statement", "text": "while ( sq_stream_data_available(_server->m_stream) > 0 )\r\n {\r\n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )\r\n {\r\n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT(\"sq_server_poll: read_byte returned FALSE\\r\\n\")) ); */\r\n return;\r\n }\r\n sq_server_internal_handle_byte ( _server, byte );\r\n }", "parent": 216, "children": [224], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 224, "type": "parenthesized_expression", "text": "( sq_stream_data_available(_server->m_stream) > 0 )", "parent": 223, "children": [225], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 65}}, {"id": 225, "type": "binary_expression", "text": "sq_stream_data_available(_server->m_stream) > 0", "parent": 224, "children": [226, 232, 233], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 63}}, {"id": 226, "type": "call_expression", "text": "sq_stream_data_available(_server->m_stream)", "parent": 225, "children": [227, 228], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 59}}, {"id": 227, "type": "identifier", "text": "sq_stream_data_available", "parent": 226, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 40}}, {"id": 228, "type": "argument_list", "text": "(_server->m_stream)", "parent": 226, "children": [229], "start_point": {"row": 84, "column": 40}, "end_point": {"row": 84, "column": 59}}, {"id": 229, "type": "field_expression", "text": "_server->m_stream", "parent": 228, "children": [230, 231], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 58}}, {"id": 230, "type": "identifier", "text": "_server", "parent": 229, "children": [], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 48}}, {"id": 231, "type": "field_identifier", "text": "m_stream", "parent": 229, "children": [], "start_point": {"row": 84, "column": 50}, "end_point": {"row": 84, "column": 58}}, {"id": 232, "type": ">", "text": ">", "parent": 225, "children": [], "start_point": {"row": 84, "column": 60}, "end_point": {"row": 84, "column": 61}}, {"id": 233, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 84, "column": 62}, "end_point": {"row": 84, "column": 63}}, {"id": 234, "type": "if_statement", "text": "if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )\r\n {\r\n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT(\"sq_server_poll: read_byte returned FALSE\\r\\n\")) ); */\r\n return;\r\n }", "parent": 223, "children": [235], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 90, "column": 13}}, {"id": 235, "type": "parenthesized_expression", "text": "( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )", "parent": 234, "children": [236], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 79}}, {"id": 236, "type": "binary_expression", "text": "sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE", "parent": 235, "children": [237, 245, 246], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 77}}, {"id": 237, "type": "call_expression", "text": "sq_stream_read_byte ( _server->m_stream, &byte )", "parent": 236, "children": [238, 239], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 65}}, {"id": 238, "type": "identifier", "text": "sq_stream_read_byte", "parent": 237, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 36}}, {"id": 239, "type": "argument_list", "text": "( _server->m_stream, &byte )", "parent": 237, "children": [240, 243], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 65}}, {"id": 240, "type": "field_expression", "text": "_server->m_stream", "parent": 239, "children": [241, 242], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 56}}, {"id": 241, "type": "identifier", "text": "_server", "parent": 240, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 46}}, {"id": 242, "type": "field_identifier", "text": "m_stream", "parent": 240, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 56}}, {"id": 243, "type": "pointer_expression", "text": "&byte", "parent": 239, "children": [244], "start_point": {"row": 86, "column": 58}, "end_point": {"row": 86, "column": 63}}, {"id": 244, "type": "identifier", "text": "byte", "parent": 243, "children": [], "start_point": {"row": 86, "column": 59}, "end_point": {"row": 86, "column": 63}}, {"id": 245, "type": "==", "text": "==", "parent": 236, "children": [], "start_point": {"row": 86, "column": 66}, "end_point": {"row": 86, "column": 68}}, {"id": 246, "type": "identifier", "text": "SQ_FALSE", "parent": 236, "children": [], "start_point": {"row": 86, "column": 69}, "end_point": {"row": 86, "column": 77}}, {"id": 247, "type": "return_statement", "text": "return;", "parent": 234, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 23}}, {"id": 248, "type": "call_expression", "text": "sq_server_internal_handle_byte ( _server, byte )", "parent": 223, "children": [249, 250], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 60}}, {"id": 249, "type": "identifier", "text": "sq_server_internal_handle_byte", "parent": 248, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 42}}, {"id": 250, "type": "argument_list", "text": "( _server, byte )", "parent": 248, "children": [251, 252], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 60}}, {"id": 251, "type": "identifier", "text": "_server", "parent": 250, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 52}}, {"id": 252, "type": "identifier", "text": "byte", "parent": 250, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 58}}, {"id": 253, "type": "function_definition", "text": "void sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )\r\n{\r\n size_t i ;\r\n SQServer * server = (SQServer *) _data;\r\n\r\n SQ_UNUSED_PARAMETER(_stream);\r\n\r\n for ( i= 0; i < _length; i++ )\r\n {\r\n sq_server_internal_handle_byte ( server, _buffer[i] );\r\n }\r\n}", "parent": null, "children": [254, 255], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 4}}, {"id": 255, "type": "function_declarator", "text": "sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )", "parent": 253, "children": [256, 257], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 113}}, {"id": 256, "type": "identifier", "text": "sq_server_handle_stream_data_received", "parent": 255, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 42}}, {"id": 257, "type": "parameter_list", "text": "( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )", "parent": 255, "children": [258, 263, 268, 273], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 113}}, {"id": 258, "type": "parameter_declaration", "text": "SQStream * _stream", "parent": 257, "children": [259, 260], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 63}}, {"id": 259, "type": "type_identifier", "text": "SQStream", "parent": 258, "children": [], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 53}}, {"id": 260, "type": "pointer_declarator", "text": "* _stream", "parent": 258, "children": [261, 262], "start_point": {"row": 96, "column": 54}, "end_point": {"row": 96, "column": 63}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 96, "column": 54}, "end_point": {"row": 96, "column": 55}}, {"id": 262, "type": "identifier", "text": "_stream", "parent": 260, "children": [], "start_point": {"row": 96, "column": 56}, "end_point": {"row": 96, "column": 63}}, {"id": 263, "type": "parameter_declaration", "text": "void * _data", "parent": 257, "children": [264, 265], "start_point": {"row": 96, "column": 65}, "end_point": {"row": 96, "column": 77}}, {"id": 264, "type": "primitive_type", "text": "void", "parent": 263, "children": [], "start_point": {"row": 96, "column": 65}, "end_point": {"row": 96, "column": 69}}, {"id": 265, "type": "pointer_declarator", "text": "* _data", "parent": 263, "children": [266, 267], "start_point": {"row": 96, "column": 70}, "end_point": {"row": 96, "column": 77}}, {"id": 266, "type": "*", "text": "*", "parent": 265, "children": [], "start_point": {"row": 96, "column": 70}, "end_point": {"row": 96, "column": 71}}, {"id": 267, "type": "identifier", "text": "_data", "parent": 265, "children": [], "start_point": {"row": 96, "column": 72}, "end_point": {"row": 96, "column": 77}}, {"id": 268, "type": "parameter_declaration", "text": "SQByte * _buffer", "parent": 257, "children": [269, 270], "start_point": {"row": 96, "column": 79}, "end_point": {"row": 96, "column": 95}}, {"id": 269, "type": "type_identifier", "text": "SQByte", "parent": 268, "children": [], "start_point": {"row": 96, "column": 79}, "end_point": {"row": 96, "column": 85}}, {"id": 270, "type": "pointer_declarator", "text": "* _buffer", "parent": 268, "children": [271, 272], "start_point": {"row": 96, "column": 86}, "end_point": {"row": 96, "column": 95}}, {"id": 271, "type": "*", "text": "*", "parent": 270, "children": [], "start_point": {"row": 96, "column": 86}, "end_point": {"row": 96, "column": 87}}, {"id": 272, "type": "identifier", "text": "_buffer", "parent": 270, "children": [], "start_point": {"row": 96, "column": 88}, "end_point": {"row": 96, "column": 95}}, {"id": 273, "type": "parameter_declaration", "text": "size_t _length", "parent": 257, "children": [274, 275], "start_point": {"row": 96, "column": 97}, "end_point": {"row": 96, "column": 111}}, {"id": 274, "type": "primitive_type", "text": "size_t", "parent": 273, "children": [], "start_point": {"row": 96, "column": 97}, "end_point": {"row": 96, "column": 103}}, {"id": 275, "type": "identifier", "text": "_length", "parent": 273, "children": [], "start_point": {"row": 96, "column": 104}, "end_point": {"row": 96, "column": 111}}, {"id": 276, "type": "declaration", "text": "size_t i ;", "parent": 253, "children": [277, 278], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 14}}, {"id": 277, "type": "primitive_type", "text": "size_t", "parent": 276, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 10}}, {"id": 278, "type": "identifier", "text": "i", "parent": 276, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 12}}, {"id": 279, "type": "declaration", "text": "SQServer * server = (SQServer *) _data;", "parent": 253, "children": [280, 281], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 43}}, {"id": 280, "type": "type_identifier", "text": "SQServer", "parent": 279, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 12}}, {"id": 281, "type": "init_declarator", "text": "* server = (SQServer *) _data", "parent": 279, "children": [282, 285, 286], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 42}}, {"id": 282, "type": "pointer_declarator", "text": "* server", "parent": 281, "children": [283, 284], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 21}}, {"id": 283, "type": "*", "text": "*", "parent": 282, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 284, "type": "identifier", "text": "server", "parent": 282, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 21}}, {"id": 285, "type": "=", "text": "=", "parent": 281, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 23}}, {"id": 286, "type": "cast_expression", "text": "(SQServer *) _data", "parent": 281, "children": [287, 291], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 42}}, {"id": 287, "type": "type_descriptor", "text": "SQServer *", "parent": 286, "children": [288, 289], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 35}}, {"id": 288, "type": "type_identifier", "text": "SQServer", "parent": 287, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 33}}, {"id": 289, "type": "abstract_pointer_declarator", "text": "*", "parent": 287, "children": [290], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 290, "type": "*", "text": "*", "parent": 289, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 291, "type": "identifier", "text": "_data", "parent": 286, "children": [], "start_point": {"row": 99, "column": 37}, "end_point": {"row": 99, "column": 42}}, {"id": 292, "type": "call_expression", "text": "SQ_UNUSED_PARAMETER(_stream)", "parent": 253, "children": [293, 294], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 32}}, {"id": 293, "type": "identifier", "text": "SQ_UNUSED_PARAMETER", "parent": 292, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 23}}, {"id": 294, "type": "argument_list", "text": "(_stream)", "parent": 292, "children": [295], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 32}}, {"id": 295, "type": "identifier", "text": "_stream", "parent": 294, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 31}}, {"id": 296, "type": "for_statement", "text": "for ( i= 0; i < _length; i++ )\r\n {\r\n sq_server_internal_handle_byte ( server, _buffer[i] );\r\n }", "parent": 253, "children": [297, 301, 305], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 106, "column": 5}}, {"id": 297, "type": "assignment_expression", "text": "i= 0", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 14}}, {"id": 298, "type": "identifier", "text": "i", "parent": 297, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 11}}, {"id": 299, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 12}}, {"id": 300, "type": "number_literal", "text": "0", "parent": 297, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 14}}, {"id": 301, "type": "binary_expression", "text": "i < _length", "parent": 296, "children": [302, 303, 304], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 27}}, {"id": 302, "type": "identifier", "text": "i", "parent": 301, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 17}}, {"id": 303, "type": "<", "text": "<", "parent": 301, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 19}}, {"id": 304, "type": "identifier", "text": "_length", "parent": 301, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 27}}, {"id": 305, "type": "update_expression", "text": "i++", "parent": 296, "children": [306, 307], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 32}}, {"id": 306, "type": "identifier", "text": "i", "parent": 305, "children": [], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 30}}, {"id": 307, "type": "++", "text": "++", "parent": 305, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 32}}, {"id": 308, "type": "call_expression", "text": "sq_server_internal_handle_byte ( server, _buffer[i] )", "parent": 296, "children": [309, 310], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 61}}, {"id": 309, "type": "identifier", "text": "sq_server_internal_handle_byte", "parent": 308, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 38}}, {"id": 310, "type": "argument_list", "text": "( server, _buffer[i] )", "parent": 308, "children": [311, 312], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 61}}, {"id": 311, "type": "identifier", "text": "server", "parent": 310, "children": [], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 47}}, {"id": 312, "type": "subscript_expression", "text": "_buffer[i]", "parent": 310, "children": [313, 314], "start_point": {"row": 105, "column": 49}, "end_point": {"row": 105, "column": 59}}, {"id": 313, "type": "identifier", "text": "_buffer", "parent": 312, "children": [], "start_point": {"row": 105, "column": 49}, "end_point": {"row": 105, "column": 56}}, {"id": 314, "type": "identifier", "text": "i", "parent": 312, "children": [], "start_point": {"row": 105, "column": 57}, "end_point": {"row": 105, "column": 58}}, {"id": 315, "type": "function_definition", "text": "void sq_server_join ( SQServer * _server )\r\n{\r\n sq_stream_join ( _server->m_stream );\r\n}", "parent": null, "children": [316, 317], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 316, "type": "primitive_type", "text": "void", "parent": 315, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 317, "type": "function_declarator", "text": "sq_server_join ( SQServer * _server )", "parent": 315, "children": [318, 319], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 42}}, {"id": 318, "type": "identifier", "text": "sq_server_join", "parent": 317, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 19}}, {"id": 319, "type": "parameter_list", "text": "( SQServer * _server )", "parent": 317, "children": [320], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 42}}, {"id": 320, "type": "parameter_declaration", "text": "SQServer * _server", "parent": 319, "children": [321, 322], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 40}}, {"id": 321, "type": "type_identifier", "text": "SQServer", "parent": 320, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 30}}, {"id": 322, "type": "pointer_declarator", "text": "* _server", "parent": 320, "children": [323, 324], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 40}}, {"id": 323, "type": "*", "text": "*", "parent": 322, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 32}}, {"id": 324, "type": "identifier", "text": "_server", "parent": 322, "children": [], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 40}}, {"id": 325, "type": "call_expression", "text": "sq_stream_join ( _server->m_stream )", "parent": 315, "children": [326, 327], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 40}}, {"id": 326, "type": "identifier", "text": "sq_stream_join", "parent": 325, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 18}}, {"id": 327, "type": "argument_list", "text": "( _server->m_stream )", "parent": 325, "children": [328], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 40}}, {"id": 328, "type": "field_expression", "text": "_server->m_stream", "parent": 327, "children": [329, 330], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 38}}, {"id": 329, "type": "identifier", "text": "_server", "parent": 328, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 28}}, {"id": 330, "type": "field_identifier", "text": "m_stream", "parent": 328, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 38}}]}, "node_categories": {"declarations": {"functions": [35, 37, 90, 92, 126, 130, 137, 139, 176, 182, 184, 253, 255, 315, 317], "variables": [30, 40, 45, 95, 133, 142, 147, 172, 179, 187, 192, 258, 263, 268, 273, 276, 279, 320], "classes": [173], "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": [48, 51, 57, 63, 67, 71, 74, 83, 86, 87, 100, 103, 108, 111, 115, 150, 153, 158, 161, 162, 165, 195, 198, 206, 210, 213, 217, 218, 220, 224, 225, 226, 229, 235, 236, 237, 240, 243, 248, 286, 292, 301, 305, 308, 312, 325, 328], "assignments": [56, 62, 79, 114, 121, 297], "loops": [223, 296], "conditionals": [31, 34, 38, 41, 44, 47, 49, 52, 58, 59, 64, 65, 68, 70, 72, 75, 76, 77, 78, 80, 82, 84, 88, 89, 93, 96, 99, 101, 104, 109, 112, 113, 116, 117, 122, 127, 131, 136, 140, 143, 146, 148, 149, 151, 154, 159, 163, 164, 166, 167, 168, 169, 170, 171, 177, 181, 185, 188, 191, 193, 194, 196, 199, 203, 204, 205, 207, 209, 211, 214, 215, 216, 221, 227, 230, 231, 234, 238, 241, 242, 244, 246, 249, 251, 252, 256, 259, 262, 267, 269, 272, 275, 278, 280, 284, 288, 291, 293, 295, 298, 302, 304, 306, 309, 311, 313, 314, 318, 321, 324, 326, 329, 330], "returns": [135, 247], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 61, 233, 300], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 35, "universal_type": "function", "name": "sq_server_init", "text_snippet": "void sq_server_init ( SQServer * _server, int _portNumber )\r\n{\r\n assert ( _server != NULL );\r\n\r\n "}, {"node_id": 37, "universal_type": "function", "name": "_portNumber", "text_snippet": "sq_server_init ( SQServer * _server, int _portNumber )"}, {"node_id": 90, "universal_type": "function", "name": "sq_server_destroy", "text_snippet": "void sq_server_destroy ( SQServer * _server )\r\n{\r\n assert ( _server != NULL );\r\n\r\n sq_stream_c"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "sq_server_destroy ( SQServer * _server )"}, {"node_id": 126, "universal_type": "function", "name": ")", "text_snippet": "SQServer * sq_server_get_instance ( void )\r\n{\r\n return server_instance;\r\n}"}, {"node_id": 130, "universal_type": "function", "name": ")", "text_snippet": "sq_server_get_instance ( void )"}, {"node_id": 137, "universal_type": "function", "name": "sq_server_internal_handle_byte", "text_snippet": "void sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )\r\n{\r\n assert ( _server !="}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )"}, {"node_id": 176, "universal_type": "function", "name": ")", "text_snippet": "windows_init_if_not_already ( void )"}, {"node_id": 182, "universal_type": "function", "name": "sq_server_poll", "text_snippet": "void sq_server_poll ( SQServer * _server )\r\n{\r\n SQByte byte;\r\n\r\n assert ( _server != NULL );\r\n"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "sq_server_poll ( SQServer * _server )"}, {"node_id": 253, "universal_type": "function", "name": "sq_server_handle_stream_data_received", "text_snippet": "void sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, siz"}, {"node_id": 255, "universal_type": "function", "name": "*", "text_snippet": "sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _"}, {"node_id": 315, "universal_type": "function", "name": "sq_server_join", "text_snippet": "void sq_server_join ( SQServer * _server )\r\n{\r\n sq_stream_join ( _server->m_stream );\r\n}"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "sq_server_join ( SQServer * _server )"}], "class_declarations": [{"node_id": 173, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 0, "text": "#include \"config.h\"\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"sequanto/server.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"sequanto/stream.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"sequanto/protocol.h\"\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"sequanto/value.h\"\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"sequanto/types.h\"\r\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"sequanto/thread.h\"\r\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <string.h>\r\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <stdio.h>\r\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <assert.h>\r\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*\r\n * Copyright 2010 <NAME> <<EMAIL>>\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you\r\n * may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r\n * implied. See the License for the specific language governing\r\n * permissions and limitations under the License.\r\n */\r\n\r\n#include \"config.h\"\r\n\r\n#include \"sequanto/server.h\"\r\n#include \"sequanto/stream.h\"\r\n#include \"sequanto/protocol.h\"\r\n#include \"sequanto/value.h\"\r\n#include \"sequanto/types.h\"\r\n#include \"sequanto/thread.h\"\r\n\r\n#include <string.h>\r\n#include <stdio.h>\r\n#include <assert.h>\r\n\r\nstatic SQServer * server_instance;\r\n\r\nvoid sq_server_init ( SQServer * _server, int _portNumber )\r\n{\r\n assert ( _server != NULL );\r\n\r\n _server->m_clientsHandled = 0;\r\n _server->m_stream = sq_stream_open ( _portNumber );\r\n sq_stream_set_data_received_handler ( _server->m_stream, sq_server_handle_stream_data_received, _server );\r\n\r\n server_instance = _server;\r\n\r\n sq_parser_init ( &_server->m_parser );\r\n}\r\n\r\nvoid sq_server_destroy ( SQServer * _server )\r\n{\r\n assert ( _server != NULL );\r\n\r\n sq_stream_close ( _server->m_stream );\r\n _server->m_stream = NULL;\r\n\r\n server_instance = NULL;\r\n}\r\n\r\nSQServer * sq_server_get_instance ( void )\r\n{\r\n return server_instance;\r\n}\r\n\r\nvoid sq_server_internal_handle_byte ( SQServer * _server, SQByte _byte )\r\n{\r\n assert ( _server != NULL );\r\n\r\n sq_parser_input_byte ( &_server->m_parser, _server->m_stream, _byte );\r\n}\r\n\r\n#ifdef SQ_QT_MACHINE_AUTOMATION\r\nextern void windows_init_if_not_already ( void );\r\n#endif\r\n\r\nvoid sq_server_poll ( SQServer * _server )\r\n{\r\n SQByte byte;\r\n\r\n assert ( _server != NULL );\r\n\r\n#ifdef SQ_QT_MACHINE_AUTOMATION\r\n windows_init_if_not_already ();\r\n#endif\r\n\r\n sq_stream_poll ( _server->m_stream );\r\n\r\n if ( !sq_thread_is_supported() )\r\n {\r\n while ( sq_stream_data_available(_server->m_stream) > 0 )\r\n {\r\n if ( sq_stream_read_byte ( _server->m_stream, &byte ) == SQ_FALSE )\r\n {\r\n /* sq_protocol_write_failure_with_text ( _server->m_stream, sq_get_constant_string(SQ_STRING_CONSTANT(\"sq_server_poll: read_byte returned FALSE\\r\\n\")) ); */\r\n return;\r\n }\r\n sq_server_internal_handle_byte ( _server, byte );\r\n }\r\n }\r\n}\r\n\r\nvoid sq_server_handle_stream_data_received ( SQStream * _stream, void * _data, SQByte * _buffer, size_t _length )\r\n{\r\n size_t i ;\r\n SQServer * server = (SQServer *) _data;\r\n\r\n SQ_UNUSED_PARAMETER(_stream);\r\n\r\n for ( i= 0; i < _length; i++ )\r\n {\r\n sq_server_internal_handle_byte ( server, _buffer[i] );\r\n }\r\n}\r\n\r\nvoid sq_server_join ( SQServer * _server )\r\n{\r\n sq_stream_join ( _server->m_stream );\r\n}\r\n\r\n/*\r\n void sq_server_start( SQServer * _server)\r\n {\r\n SQStream * client;\r\n\r\n while ( _server->m_keepListening == SQ_TRUE )\r\n {\r\n client = sq_stream_accept ( _server->m_listener );\r\n\r\n _server->m_clientsHandled ++;\r\n\r\n sq_server_handle_client ( _server, client );\r\n\r\n sq_stream_close ( client );\r\n }\r\n }\r\n*/\r\n"}
155
c
/* rcvstore.c - incorporate new mail asynchronously originally from <NAME> */ #ifndef lint static char ident[] = "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $"; #endif /* lint */ #include "../h/mh.h" #include <errno.h> #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #ifdef LOCALE #include <locale.h> #endif /* */ static struct swit switches[] = { #define CRETSW 0 "create", 0, #define NCRETSW 1 "nocreate", 0, #define PUBSW 2 "public", 0, #define NPUBSW 3 "nopublic", 0, #define SEQSW 4 "sequence name", 0, #define ZEROSW 5 "zero", 0, #define NZEROSW 6 "nozero", 0, #define HELPSW 7 "help", 4, NULL, 0 }; /* */ extern int errno; static char *tmpfilenam = NULLCP; /* */ /* ARGSUSED */ main (argc, argv) int argc; char *argv[]; { int publicsw = -1, zerosw = 0, msgnum, create = 1, fd, seqp = 0; char *cp, *maildir, *folder = NULL, buf[100], **ap, **argp, *arguments[MAXARGS], *seqs[NATTRS+1]; struct msgs *mp; struct stat st; #ifdef LOCALE setlocale(LC_ALL, ""); #endif invo_name = r1bindex (argv[0], '/'); mts_init (invo_name); if ((cp = m_find (invo_name)) != NULL) { ap = brkstring (cp = getcpy (cp), " ", "\n"); ap = copyip (ap, arguments); } else ap = arguments; (void) copyip (argv + 1, ap); argp = arguments; /* */ while (cp = *argp++) { if (*cp == '-') switch (smatch (++cp, switches)) { case AMBIGSW: ambigsw (cp, switches); done (1); case UNKWNSW: adios (NULLCP, "-%s unknown", cp); case HELPSW: (void) sprintf (buf, "%s [+folder] [switches]", invo_name); help (buf, switches); done (1); case SEQSW: if (!(cp = *argp++) || *cp == '-') adios (NULLCP, "missing argument name to %s", argp[-2]); if (seqp < NATTRS) seqs[seqp++] = cp; else adios (NULLCP, "only %d sequences allowed!", NATTRS); continue; case PUBSW: publicsw = 1; continue; case NPUBSW: publicsw = 0; continue; case ZEROSW: zerosw++; continue; case NZEROSW: zerosw = 0; continue; case CRETSW: create++; continue; case NCRETSW: create = 0; continue; } if (*cp == '+' || *cp == '@') { if (folder) adios (NULLCP, "only one folder at a time!"); else folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF); } else adios (NULLCP, "usage: %s [+folder] [switches]", invo_name); } /* */ if (!m_find ("path")) free (path ("./", TFOLDER)); if (!folder && !(folder = m_find (inbox))) folder = defalt; maildir = m_maildir (folder); if (stat (maildir, &st) == NOTOK) { if (errno != ENOENT) adios (maildir, "error on folder"); if (!create) adios (NULLCP, "folder %s doesn't exist", maildir); if (!makedir (maildir)) adios (NULLCP, "unable to create folder %s", maildir); } if (chdir (maildir) == NOTOK) adios (maildir, "unable to change directory to"); if (!(mp = m_gmsg (folder))) adios (NULLCP, "unable to read folder %s", folder); (void) signal (SIGHUP, SIG_IGN); (void) signal (SIGINT, SIG_IGN); (void) signal (SIGQUIT, SIG_IGN); (void) signal (SIGTERM, SIG_IGN); /* */ if ((fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ())) == NOTOK) adios (tmpfilenam, "unable to create"); (void) chmod (tmpfilenam, m_gmprot ()); cpydata (fileno (stdin), fd, "standard input", tmpfilenam); if (fstat (fd, &st) == NOTOK) { (void) unlink (tmpfilenam); adios (tmpfilenam, "unable to fstat"); } if (close (fd) == NOTOK) adios (tmpfilenam, "error closing"); if (st.st_size == 0) { (void) unlink (tmpfilenam); advise (NULLCP, "empty file"); done (0); } msgnum = mp -> hghmsg; do { msgnum++, mp -> hghmsg++; if (msgnum > mp -> hghoff) if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL) adios (NULLCP, "unable to allocate folder storage"); mp -> msgstats[msgnum] |= EXISTS | UNSEEN; errno = 0; } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST); (void) unlink (tmpfilenam); tmpfilenam = NULLCP; if (errno != 0) adios (NULLCP, "can't file message %d", msgnum); if (mp -> lowmsg == 0) mp -> lowmsg = msgnum; mp -> msgflags |= SEQMOD; seqs[seqp] = NULL; for (seqp = 0; seqs[seqp]; seqp++) { if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw)) done (1); if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw)) done (1); } m_setvis (mp, 0); m_sync (mp); m_update (); done (0); } void done (status) register int status; { if (tmpfilenam && *tmpfilenam) (void) unlink (tmpfilenam); exit (status); }
23.96
196
(translation_unit) "/* rcvstore.c - incorporate new mail asynchronously\n originally from <NAME> */\n#ifndef lint\nstatic char ident[] = "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $";\n#endif /* lint */\n\n#include "../h/mh.h"\n#include <errno.h>\n#include <signal.h>\n#include <stdio.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#ifdef LOCALE\n#include <locale.h>\n#endif\n\n/* */\n\nstatic struct swit switches[] = {\n#define CRETSW 0\n "create", 0,\n#define NCRETSW 1\n "nocreate", 0,\n\n#define PUBSW 2\n "public", 0,\n#define NPUBSW 3\n "nopublic", 0,\n\n#define SEQSW 4\n "sequence name", 0,\n\n#define ZEROSW 5\n "zero", 0,\n#define NZEROSW 6\n "nozero", 0,\n\n#define HELPSW 7\n "help", 4,\n\n NULL, 0\n};\n\n/* */\n\nextern int errno;\n\nstatic char *tmpfilenam = NULLCP;\n/* */\n\n/* ARGSUSED */\n\nmain (argc, argv)\nint argc;\nchar *argv[];\n{\n int publicsw = -1,\n zerosw = 0,\n msgnum,\n create = 1,\n fd,\n seqp = 0;\n char *cp,\n *maildir,\n *folder = NULL,\n buf[100],\n **ap,\n **argp,\n *arguments[MAXARGS],\n *seqs[NATTRS+1];\n struct msgs *mp;\n struct stat st;\n\n#ifdef LOCALE\n setlocale(LC_ALL, "");\n#endif\n invo_name = r1bindex (argv[0], '/');\n mts_init (invo_name);\n if ((cp = m_find (invo_name)) != NULL) {\n ap = brkstring (cp = getcpy (cp), " ", "\n");\n ap = copyip (ap, arguments);\n }\n else\n ap = arguments;\n (void) copyip (argv + 1, ap);\n argp = arguments;\n\n/* */\n\n while (cp = *argp++) {\n if (*cp == '-')\n switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }\n if (*cp == '+' || *cp == '@') {\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }\n else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);\n }\n\n/* */\n\n if (!m_find ("path"))\n free (path ("./", TFOLDER));\n if (!folder && !(folder = m_find (inbox)))\n folder = defalt;\n maildir = m_maildir (folder);\n\n if (stat (maildir, &st) == NOTOK) {\n if (errno != ENOENT)\n adios (maildir, "error on folder");\n if (!create)\n adios (NULLCP, "folder %s doesn't exist", maildir);\n if (!makedir (maildir))\n adios (NULLCP, "unable to create folder %s", maildir);\n }\n\n if (chdir (maildir) == NOTOK)\n adios (maildir, "unable to change directory to");\n if (!(mp = m_gmsg (folder)))\n adios (NULLCP, "unable to read folder %s", folder);\n\n (void) signal (SIGHUP, SIG_IGN);\n (void) signal (SIGINT, SIG_IGN);\n (void) signal (SIGQUIT, SIG_IGN);\n (void) signal (SIGTERM, SIG_IGN);\n\n/* */\n\n if ((fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))\n == NOTOK)\n adios (tmpfilenam, "unable to create");\n (void) chmod (tmpfilenam, m_gmprot ());\n\n cpydata (fileno (stdin), fd, "standard input", tmpfilenam);\n\n if (fstat (fd, &st) == NOTOK) {\n (void) unlink (tmpfilenam);\n adios (tmpfilenam, "unable to fstat");\n }\n if (close (fd) == NOTOK)\n adios (tmpfilenam, "error closing");\n if (st.st_size == 0) {\n (void) unlink (tmpfilenam);\n advise (NULLCP, "empty file");\n done (0);\n }\n\n msgnum = mp -> hghmsg;\n do {\n msgnum++, mp -> hghmsg++;\n if (msgnum > mp -> hghoff)\n if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");\n\n mp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n errno = 0;\n } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST);\n\n (void) unlink (tmpfilenam);\n tmpfilenam = NULLCP;\n if (errno != 0)\n adios (NULLCP, "can't file message %d", msgnum);\n\n if (mp -> lowmsg == 0)\n mp -> lowmsg = msgnum;\n mp -> msgflags |= SEQMOD;\n\n seqs[seqp] = NULL;\n for (seqp = 0; seqs[seqp]; seqp++) {\n if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n done (1);\n if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n done (1);\n }\n\n m_setvis (mp, 0);\n m_sync (mp);\n m_update ();\n\n done (0);\n}\n\nvoid done (status)\nregister int status;\n{\n if (tmpfilenam && *tmpfilenam)\n (void) unlink (tmpfilenam);\n exit (status);\n}\n" (comment) "/* rcvstore.c - incorporate new mail asynchronously\n originally from <NAME> */" (preproc_ifdef) "#ifndef lint\nstatic char ident[] = "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $";\n#endif" (#ifndef) "#ifndef" (identifier) "lint" (declaration) "static char ident[] = "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "ident[] = "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $"" (array_declarator) "ident[]" (identifier) "ident" ([) "[" (]) "]" (=) "=" (string_literal) ""@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $"" (") """ (string_content) "@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $" (") """ (;) ";" (#endif) "#endif" (comment) "/* lint */" (preproc_include) "#include "../h/mh.h"\n" (#include) "#include" (string_literal) ""../h/mh.h"" (") """ (string_content) "../h/mh.h" (") """ (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_lib_string) "<signal.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_ifdef) "#ifdef LOCALE\n#include <locale.h>\n#endif" (#ifdef) "#ifdef" (identifier) "LOCALE" (preproc_include) "#include <locale.h>\n" (#include) "#include" (system_lib_string) "<locale.h>" (#endif) "#endif" (comment) "/* */" (declaration) "static struct swit switches[] = {\n#define CRETSW 0\n "create", 0,\n#define NCRETSW 1\n "nocreate", 0,\n\n#define PUBSW 2\n "public", 0,\n#define NPUBSW 3\n "nopublic", 0,\n\n#define SEQSW 4\n "sequence name", 0,\n\n#define ZEROSW 5\n "zero", 0,\n#define NZEROSW 6\n "nozero", 0,\n\n#define HELPSW 7\n "help", 4,\n\n NULL, 0\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct swit" (struct) "struct" (type_identifier) "swit" (init_declarator) "switches[] = {\n#define CRETSW 0\n "create", 0,\n#define NCRETSW 1\n "nocreate", 0,\n\n#define PUBSW 2\n "public", 0,\n#define NPUBSW 3\n "nopublic", 0,\n\n#define SEQSW 4\n "sequence name", 0,\n\n#define ZEROSW 5\n "zero", 0,\n#define NZEROSW 6\n "nozero", 0,\n\n#define HELPSW 7\n "help", 4,\n\n NULL, 0\n}" (array_declarator) "switches[]" (identifier) "switches" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n#define CRETSW 0\n "create", 0,\n#define NCRETSW 1\n "nocreate", 0,\n\n#define PUBSW 2\n "public", 0,\n#define NPUBSW 3\n "nopublic", 0,\n\n#define SEQSW 4\n "sequence name", 0,\n\n#define ZEROSW 5\n "zero", 0,\n#define NZEROSW 6\n "nozero", 0,\n\n#define HELPSW 7\n "help", 4,\n\n NULL, 0\n}" ({) "{" (ERROR) "#define" (#define) "#define" (concatenated_string) "CRETSW 0\n "create"" (identifier) "CRETSW" (ERROR) "0" (number_literal) "0" (string_literal) ""create"" (") """ (string_content) "create" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "NCRETSW 1\n "nocreate"" (identifier) "NCRETSW" (ERROR) "1" (number_literal) "1" (string_literal) ""nocreate"" (") """ (string_content) "nocreate" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "PUBSW 2\n "public"" (identifier) "PUBSW" (ERROR) "2" (number_literal) "2" (string_literal) ""public"" (") """ (string_content) "public" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "NPUBSW 3\n "nopublic"" (identifier) "NPUBSW" (ERROR) "3" (number_literal) "3" (string_literal) ""nopublic"" (") """ (string_content) "nopublic" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "SEQSW 4\n "sequence name"" (identifier) "SEQSW" (ERROR) "4" (number_literal) "4" (string_literal) ""sequence name"" (") """ (string_content) "sequence name" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "ZEROSW 5\n "zero"" (identifier) "ZEROSW" (ERROR) "5" (number_literal) "5" (string_literal) ""zero"" (") """ (string_content) "zero" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "NZEROSW 6\n "nozero"" (identifier) "NZEROSW" (ERROR) "6" (number_literal) "6" (string_literal) ""nozero"" (") """ (string_content) "nozero" (") """ (,) "," (number_literal) "0" (,) "," (ERROR) "#define" (#define) "#define" (concatenated_string) "HELPSW 7\n "help"" (identifier) "HELPSW" (ERROR) "7" (number_literal) "7" (string_literal) ""help"" (") """ (string_content) "help" (") """ (,) "," (number_literal) "4" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (}) "}" (;) ";" (comment) "/* */" (declaration) "extern int errno;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "errno" (;) ";" (declaration) "static char *tmpfilenam = NULLCP;" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "*tmpfilenam = NULLCP" (pointer_declarator) "*tmpfilenam" (*) "*" (identifier) "tmpfilenam" (=) "=" (identifier) "NULLCP" (;) ";" (comment) "/* */" (comment) "/* ARGSUSED */" (expression_statement) "main (argc, argv)" (call_expression) "main (argc, argv)" (identifier) "main" (argument_list) "(argc, argv)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" ()) ")" (;) "" (declaration) "int argc;" (primitive_type) "int" (identifier) "argc" (;) ";" (declaration) "char *argv[];" (primitive_type) "char" (pointer_declarator) "*argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" (;) ";" (compound_statement) "{\n int publicsw = -1,\n zerosw = 0,\n msgnum,\n create = 1,\n fd,\n seqp = 0;\n char *cp,\n *maildir,\n *folder = NULL,\n buf[100],\n **ap,\n **argp,\n *arguments[MAXARGS],\n *seqs[NATTRS+1];\n struct msgs *mp;\n struct stat st;\n\n#ifdef LOCALE\n setlocale(LC_ALL, "");\n#endif\n invo_name = r1bindex (argv[0], '/');\n mts_init (invo_name);\n if ((cp = m_find (invo_name)) != NULL) {\n ap = brkstring (cp = getcpy (cp), " ", "\n");\n ap = copyip (ap, arguments);\n }\n else\n ap = arguments;\n (void) copyip (argv + 1, ap);\n argp = arguments;\n\n/* */\n\n while (cp = *argp++) {\n if (*cp == '-')\n switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }\n if (*cp == '+' || *cp == '@') {\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }\n else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);\n }\n\n/* */\n\n if (!m_find ("path"))\n free (path ("./", TFOLDER));\n if (!folder && !(folder = m_find (inbox)))\n folder = defalt;\n maildir = m_maildir (folder);\n\n if (stat (maildir, &st) == NOTOK) {\n if (errno != ENOENT)\n adios (maildir, "error on folder");\n if (!create)\n adios (NULLCP, "folder %s doesn't exist", maildir);\n if (!makedir (maildir))\n adios (NULLCP, "unable to create folder %s", maildir);\n }\n\n if (chdir (maildir) == NOTOK)\n adios (maildir, "unable to change directory to");\n if (!(mp = m_gmsg (folder)))\n adios (NULLCP, "unable to read folder %s", folder);\n\n (void) signal (SIGHUP, SIG_IGN);\n (void) signal (SIGINT, SIG_IGN);\n (void) signal (SIGQUIT, SIG_IGN);\n (void) signal (SIGTERM, SIG_IGN);\n\n/* */\n\n if ((fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))\n == NOTOK)\n adios (tmpfilenam, "unable to create");\n (void) chmod (tmpfilenam, m_gmprot ());\n\n cpydata (fileno (stdin), fd, "standard input", tmpfilenam);\n\n if (fstat (fd, &st) == NOTOK) {\n (void) unlink (tmpfilenam);\n adios (tmpfilenam, "unable to fstat");\n }\n if (close (fd) == NOTOK)\n adios (tmpfilenam, "error closing");\n if (st.st_size == 0) {\n (void) unlink (tmpfilenam);\n advise (NULLCP, "empty file");\n done (0);\n }\n\n msgnum = mp -> hghmsg;\n do {\n msgnum++, mp -> hghmsg++;\n if (msgnum > mp -> hghoff)\n if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");\n\n mp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n errno = 0;\n } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST);\n\n (void) unlink (tmpfilenam);\n tmpfilenam = NULLCP;\n if (errno != 0)\n adios (NULLCP, "can't file message %d", msgnum);\n\n if (mp -> lowmsg == 0)\n mp -> lowmsg = msgnum;\n mp -> msgflags |= SEQMOD;\n\n seqs[seqp] = NULL;\n for (seqp = 0; seqs[seqp]; seqp++) {\n if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n done (1);\n if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n done (1);\n }\n\n m_setvis (mp, 0);\n m_sync (mp);\n m_update ();\n\n done (0);\n}" ({) "{" (declaration) "int publicsw = -1,\n zerosw = 0,\n msgnum,\n create = 1,\n fd,\n seqp = 0;" (primitive_type) "int" (init_declarator) "publicsw = -1" (identifier) "publicsw" (=) "=" (number_literal) "-1" (,) "," (init_declarator) "zerosw = 0" (identifier) "zerosw" (=) "=" (number_literal) "0" (,) "," (identifier) "msgnum" (,) "," (init_declarator) "create = 1" (identifier) "create" (=) "=" (number_literal) "1" (,) "," (identifier) "fd" (,) "," (init_declarator) "seqp = 0" (identifier) "seqp" (=) "=" (number_literal) "0" (;) ";" (declaration) "char *cp,\n *maildir,\n *folder = NULL,\n buf[100],\n **ap,\n **argp,\n *arguments[MAXARGS],\n *seqs[NATTRS+1];" (primitive_type) "char" (pointer_declarator) "*cp" (*) "*" (identifier) "cp" (,) "," (pointer_declarator) "*maildir" (*) "*" (identifier) "maildir" (,) "," (init_declarator) "*folder = NULL" (pointer_declarator) "*folder" (*) "*" (identifier) "folder" (=) "=" (null) "NULL" (NULL) "NULL" (,) "," (array_declarator) "buf[100]" (identifier) "buf" ([) "[" (number_literal) "100" (]) "]" (,) "," (pointer_declarator) "**ap" (*) "*" (pointer_declarator) "*ap" (*) "*" (identifier) "ap" (,) "," (pointer_declarator) "**argp" (*) "*" (pointer_declarator) "*argp" (*) "*" (identifier) "argp" (,) "," (pointer_declarator) "*arguments[MAXARGS]" (*) "*" (array_declarator) "arguments[MAXARGS]" (identifier) "arguments" ([) "[" (identifier) "MAXARGS" (]) "]" (,) "," (pointer_declarator) "*seqs[NATTRS+1]" (*) "*" (array_declarator) "seqs[NATTRS+1]" (identifier) "seqs" ([) "[" (binary_expression) "NATTRS+1" (identifier) "NATTRS" (+) "+" (number_literal) "1" (]) "]" (;) ";" (declaration) "struct msgs *mp;" (struct_specifier) "struct msgs" (struct) "struct" (type_identifier) "msgs" (pointer_declarator) "*mp" (*) "*" (identifier) "mp" (;) ";" (declaration) "struct stat st;" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (identifier) "st" (;) ";" (preproc_ifdef) "#ifdef LOCALE\n setlocale(LC_ALL, "");\n#endif" (#ifdef) "#ifdef" (identifier) "LOCALE" (expression_statement) "setlocale(LC_ALL, "");" (call_expression) "setlocale(LC_ALL, "")" (identifier) "setlocale" (argument_list) "(LC_ALL, "")" (() "(" (identifier) "LC_ALL" (,) "," (string_literal) """" (") """ (") """ ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "invo_name = r1bindex (argv[0], '/');" (assignment_expression) "invo_name = r1bindex (argv[0], '/')" (identifier) "invo_name" (=) "=" (call_expression) "r1bindex (argv[0], '/')" (identifier) "r1bindex" (argument_list) "(argv[0], '/')" (() "(" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (;) ";" (expression_statement) "mts_init (invo_name);" (call_expression) "mts_init (invo_name)" (identifier) "mts_init" (argument_list) "(invo_name)" (() "(" (identifier) "invo_name" ()) ")" (;) ";" (if_statement) "if ((cp = m_find (invo_name)) != NULL) {\n ap = brkstring (cp = getcpy (cp), " ", "\n");\n ap = copyip (ap, arguments);\n }\n else\n ap = arguments;" (if) "if" (parenthesized_expression) "((cp = m_find (invo_name)) != NULL)" (() "(" (binary_expression) "(cp = m_find (invo_name)) != NULL" (parenthesized_expression) "(cp = m_find (invo_name))" (() "(" (assignment_expression) "cp = m_find (invo_name)" (identifier) "cp" (=) "=" (call_expression) "m_find (invo_name)" (identifier) "m_find" (argument_list) "(invo_name)" (() "(" (identifier) "invo_name" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n ap = brkstring (cp = getcpy (cp), " ", "\n");\n ap = copyip (ap, arguments);\n }" ({) "{" (expression_statement) "ap = brkstring (cp = getcpy (cp), " ", "\n");" (assignment_expression) "ap = brkstring (cp = getcpy (cp), " ", "\n")" (identifier) "ap" (=) "=" (call_expression) "brkstring (cp = getcpy (cp), " ", "\n")" (identifier) "brkstring" (argument_list) "(cp = getcpy (cp), " ", "\n")" (() "(" (assignment_expression) "cp = getcpy (cp)" (identifier) "cp" (=) "=" (call_expression) "getcpy (cp)" (identifier) "getcpy" (argument_list) "(cp)" (() "(" (identifier) "cp" ()) ")" (,) "," (string_literal) "" "" (") """ (string_content) " " (") """ (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "ap = copyip (ap, arguments);" (assignment_expression) "ap = copyip (ap, arguments)" (identifier) "ap" (=) "=" (call_expression) "copyip (ap, arguments)" (identifier) "copyip" (argument_list) "(ap, arguments)" (() "(" (identifier) "ap" (,) "," (identifier) "arguments" ()) ")" (;) ";" (}) "}" (else_clause) "else\n ap = arguments;" (else) "else" (expression_statement) "ap = arguments;" (assignment_expression) "ap = arguments" (identifier) "ap" (=) "=" (identifier) "arguments" (;) ";" (expression_statement) "(void) copyip (argv + 1, ap);" (cast_expression) "(void) copyip (argv + 1, ap)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "copyip (argv + 1, ap)" (identifier) "copyip" (argument_list) "(argv + 1, ap)" (() "(" (binary_expression) "argv + 1" (identifier) "argv" (+) "+" (number_literal) "1" (,) "," (identifier) "ap" ()) ")" (;) ";" (expression_statement) "argp = arguments;" (assignment_expression) "argp = arguments" (identifier) "argp" (=) "=" (identifier) "arguments" (;) ";" (comment) "/* */" (while_statement) "while (cp = *argp++) {\n if (*cp == '-')\n switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }\n if (*cp == '+' || *cp == '@') {\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }\n else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);\n }" (while) "while" (parenthesized_expression) "(cp = *argp++)" (() "(" (assignment_expression) "cp = *argp++" (identifier) "cp" (=) "=" (pointer_expression) "*argp++" (*) "*" (update_expression) "argp++" (identifier) "argp" (++) "++" ()) ")" (compound_statement) "{\n if (*cp == '-')\n switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }\n if (*cp == '+' || *cp == '@') {\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }\n else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);\n }" ({) "{" (if_statement) "if (*cp == '-')\n switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }" (if) "if" (parenthesized_expression) "(*cp == '-')" (() "(" (binary_expression) "*cp == '-'" (pointer_expression) "*cp" (*) "*" (identifier) "cp" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" (switch_statement) "switch (smatch (++cp, switches)) {\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }" (switch) "switch" (parenthesized_expression) "(smatch (++cp, switches))" (() "(" (call_expression) "smatch (++cp, switches)" (identifier) "smatch" (argument_list) "(++cp, switches)" (() "(" (update_expression) "++cp" (++) "++" (identifier) "cp" (,) "," (identifier) "switches" ()) ")" ()) ")" (compound_statement) "{\n case AMBIGSW: \n ambigsw (cp, switches);\n done (1);\n case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);\n case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);\n\n case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;\n case PUBSW: \n publicsw = 1;\n continue;\n case NPUBSW: \n publicsw = 0;\n continue;\n case ZEROSW: \n zerosw++;\n continue;\n case NZEROSW: \n zerosw = 0;\n continue;\n\n case CRETSW: \n create++;\n continue;\n case NCRETSW: \n create = 0;\n continue;\n }" ({) "{" (case_statement) "case AMBIGSW: \n ambigsw (cp, switches);\n done (1);" (case) "case" (identifier) "AMBIGSW" (:) ":" (expression_statement) "ambigsw (cp, switches);" (call_expression) "ambigsw (cp, switches)" (identifier) "ambigsw" (argument_list) "(cp, switches)" (() "(" (identifier) "cp" (,) "," (identifier) "switches" ()) ")" (;) ";" (expression_statement) "done (1);" (call_expression) "done (1)" (identifier) "done" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (case_statement) "case UNKWNSW: \n adios (NULLCP, "-%s unknown", cp);" (case) "case" (identifier) "UNKWNSW" (:) ":" (expression_statement) "adios (NULLCP, "-%s unknown", cp);" (call_expression) "adios (NULLCP, "-%s unknown", cp)" (identifier) "adios" (argument_list) "(NULLCP, "-%s unknown", cp)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""-%s unknown"" (") """ (string_content) "-%s unknown" (") """ (,) "," (identifier) "cp" ()) ")" (;) ";" (case_statement) "case HELPSW: \n (void) sprintf (buf, "%s [+folder] [switches]", invo_name);\n help (buf, switches);\n done (1);" (case) "case" (identifier) "HELPSW" (:) ":" (expression_statement) "(void) sprintf (buf, "%s [+folder] [switches]", invo_name);" (cast_expression) "(void) sprintf (buf, "%s [+folder] [switches]", invo_name)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "sprintf (buf, "%s [+folder] [switches]", invo_name)" (identifier) "sprintf" (argument_list) "(buf, "%s [+folder] [switches]", invo_name)" (() "(" (identifier) "buf" (,) "," (string_literal) ""%s [+folder] [switches]"" (") """ (string_content) "%s [+folder] [switches]" (") """ (,) "," (identifier) "invo_name" ()) ")" (;) ";" (expression_statement) "help (buf, switches);" (call_expression) "help (buf, switches)" (identifier) "help" (argument_list) "(buf, switches)" (() "(" (identifier) "buf" (,) "," (identifier) "switches" ()) ")" (;) ";" (expression_statement) "done (1);" (call_expression) "done (1)" (identifier) "done" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (case_statement) "case SEQSW: \n if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);\n if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);\n continue;" (case) "case" (identifier) "SEQSW" (:) ":" (if_statement) "if (!(cp = *argp++) || *cp == '-')\n adios (NULLCP, "missing argument name to %s",\n argp[-2]);" (if) "if" (parenthesized_expression) "(!(cp = *argp++) || *cp == '-')" (() "(" (binary_expression) "!(cp = *argp++) || *cp == '-'" (unary_expression) "!(cp = *argp++)" (!) "!" (parenthesized_expression) "(cp = *argp++)" (() "(" (assignment_expression) "cp = *argp++" (identifier) "cp" (=) "=" (pointer_expression) "*argp++" (*) "*" (update_expression) "argp++" (identifier) "argp" (++) "++" ()) ")" (||) "||" (binary_expression) "*cp == '-'" (pointer_expression) "*cp" (*) "*" (identifier) "cp" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" (expression_statement) "adios (NULLCP, "missing argument name to %s",\n argp[-2]);" (call_expression) "adios (NULLCP, "missing argument name to %s",\n argp[-2])" (identifier) "adios" (argument_list) "(NULLCP, "missing argument name to %s",\n argp[-2])" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""missing argument name to %s"" (") """ (string_content) "missing argument name to %s" (") """ (,) "," (subscript_expression) "argp[-2]" (identifier) "argp" ([) "[" (number_literal) "-2" (]) "]" ()) ")" (;) ";" (if_statement) "if (seqp < NATTRS)\n seqs[seqp++] = cp;\n else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);" (if) "if" (parenthesized_expression) "(seqp < NATTRS)" (() "(" (binary_expression) "seqp < NATTRS" (identifier) "seqp" (<) "<" (identifier) "NATTRS" ()) ")" (expression_statement) "seqs[seqp++] = cp;" (assignment_expression) "seqs[seqp++] = cp" (subscript_expression) "seqs[seqp++]" (identifier) "seqs" ([) "[" (update_expression) "seqp++" (identifier) "seqp" (++) "++" (]) "]" (=) "=" (identifier) "cp" (;) ";" (else_clause) "else\n adios (NULLCP, "only %d sequences allowed!", NATTRS);" (else) "else" (expression_statement) "adios (NULLCP, "only %d sequences allowed!", NATTRS);" (call_expression) "adios (NULLCP, "only %d sequences allowed!", NATTRS)" (identifier) "adios" (argument_list) "(NULLCP, "only %d sequences allowed!", NATTRS)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""only %d sequences allowed!"" (") """ (string_content) "only %d sequences allowed!" (") """ (,) "," (identifier) "NATTRS" ()) ")" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case PUBSW: \n publicsw = 1;\n continue;" (case) "case" (identifier) "PUBSW" (:) ":" (expression_statement) "publicsw = 1;" (assignment_expression) "publicsw = 1" (identifier) "publicsw" (=) "=" (number_literal) "1" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case NPUBSW: \n publicsw = 0;\n continue;" (case) "case" (identifier) "NPUBSW" (:) ":" (expression_statement) "publicsw = 0;" (assignment_expression) "publicsw = 0" (identifier) "publicsw" (=) "=" (number_literal) "0" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case ZEROSW: \n zerosw++;\n continue;" (case) "case" (identifier) "ZEROSW" (:) ":" (expression_statement) "zerosw++;" (update_expression) "zerosw++" (identifier) "zerosw" (++) "++" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case NZEROSW: \n zerosw = 0;\n continue;" (case) "case" (identifier) "NZEROSW" (:) ":" (expression_statement) "zerosw = 0;" (assignment_expression) "zerosw = 0" (identifier) "zerosw" (=) "=" (number_literal) "0" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case CRETSW: \n create++;\n continue;" (case) "case" (identifier) "CRETSW" (:) ":" (expression_statement) "create++;" (update_expression) "create++" (identifier) "create" (++) "++" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (case_statement) "case NCRETSW: \n create = 0;\n continue;" (case) "case" (identifier) "NCRETSW" (:) ":" (expression_statement) "create = 0;" (assignment_expression) "create = 0" (identifier) "create" (=) "=" (number_literal) "0" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if (*cp == '+' || *cp == '@') {\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }\n else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);" (if) "if" (parenthesized_expression) "(*cp == '+' || *cp == '@')" (() "(" (binary_expression) "*cp == '+' || *cp == '@'" (binary_expression) "*cp == '+'" (pointer_expression) "*cp" (*) "*" (identifier) "cp" (==) "==" (char_literal) "'+'" (') "'" (character) "+" (') "'" (||) "||" (binary_expression) "*cp == '@'" (pointer_expression) "*cp" (*) "*" (identifier) "cp" (==) "==" (char_literal) "'@'" (') "'" (character) "@" (') "'" ()) ")" (compound_statement) "{\n if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n }" ({) "{" (if_statement) "if (folder)\n adios (NULLCP, "only one folder at a time!");\n else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);" (if) "if" (parenthesized_expression) "(folder)" (() "(" (identifier) "folder" ()) ")" (expression_statement) "adios (NULLCP, "only one folder at a time!");" (call_expression) "adios (NULLCP, "only one folder at a time!")" (identifier) "adios" (argument_list) "(NULLCP, "only one folder at a time!")" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""only one folder at a time!"" (") """ (string_content) "only one folder at a time!" (") """ ()) ")" (;) ";" (else_clause) "else\n folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);" (else) "else" (expression_statement) "folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);" (assignment_expression) "folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)" (identifier) "folder" (=) "=" (call_expression) "path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)" (identifier) "path" (argument_list) "(cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)" (() "(" (binary_expression) "cp + 1" (identifier) "cp" (+) "+" (number_literal) "1" (,) "," (conditional_expression) "*cp == '+' ? TFOLDER : TSUBCWF" (binary_expression) "*cp == '+'" (pointer_expression) "*cp" (*) "*" (identifier) "cp" (==) "==" (char_literal) "'+'" (') "'" (character) "+" (') "'" (?) "?" (identifier) "TFOLDER" (:) ":" (identifier) "TSUBCWF" ()) ")" (;) ";" (}) "}" (else_clause) "else\n adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);" (else) "else" (expression_statement) "adios (NULLCP, "usage: %s [+folder] [switches]", invo_name);" (call_expression) "adios (NULLCP, "usage: %s [+folder] [switches]", invo_name)" (identifier) "adios" (argument_list) "(NULLCP, "usage: %s [+folder] [switches]", invo_name)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""usage: %s [+folder] [switches]"" (") """ (string_content) "usage: %s [+folder] [switches]" (") """ (,) "," (identifier) "invo_name" ()) ")" (;) ";" (}) "}" (comment) "/* */" (if_statement) "if (!m_find ("path"))\n free (path ("./", TFOLDER));" (if) "if" (parenthesized_expression) "(!m_find ("path"))" (() "(" (unary_expression) "!m_find ("path")" (!) "!" (call_expression) "m_find ("path")" (identifier) "m_find" (argument_list) "("path")" (() "(" (string_literal) ""path"" (") """ (string_content) "path" (") """ ()) ")" ()) ")" (expression_statement) "free (path ("./", TFOLDER));" (call_expression) "free (path ("./", TFOLDER))" (identifier) "free" (argument_list) "(path ("./", TFOLDER))" (() "(" (call_expression) "path ("./", TFOLDER)" (identifier) "path" (argument_list) "("./", TFOLDER)" (() "(" (string_literal) ""./"" (") """ (string_content) "./" (") """ (,) "," (identifier) "TFOLDER" ()) ")" ()) ")" (;) ";" (if_statement) "if (!folder && !(folder = m_find (inbox)))\n folder = defalt;" (if) "if" (parenthesized_expression) "(!folder && !(folder = m_find (inbox)))" (() "(" (binary_expression) "!folder && !(folder = m_find (inbox))" (unary_expression) "!folder" (!) "!" (identifier) "folder" (&&) "&&" (unary_expression) "!(folder = m_find (inbox))" (!) "!" (parenthesized_expression) "(folder = m_find (inbox))" (() "(" (assignment_expression) "folder = m_find (inbox)" (identifier) "folder" (=) "=" (call_expression) "m_find (inbox)" (identifier) "m_find" (argument_list) "(inbox)" (() "(" (identifier) "inbox" ()) ")" ()) ")" ()) ")" (expression_statement) "folder = defalt;" (assignment_expression) "folder = defalt" (identifier) "folder" (=) "=" (identifier) "defalt" (;) ";" (expression_statement) "maildir = m_maildir (folder);" (assignment_expression) "maildir = m_maildir (folder)" (identifier) "maildir" (=) "=" (call_expression) "m_maildir (folder)" (identifier) "m_maildir" (argument_list) "(folder)" (() "(" (identifier) "folder" ()) ")" (;) ";" (if_statement) "if (stat (maildir, &st) == NOTOK) {\n if (errno != ENOENT)\n adios (maildir, "error on folder");\n if (!create)\n adios (NULLCP, "folder %s doesn't exist", maildir);\n if (!makedir (maildir))\n adios (NULLCP, "unable to create folder %s", maildir);\n }" (if) "if" (parenthesized_expression) "(stat (maildir, &st) == NOTOK)" (() "(" (binary_expression) "stat (maildir, &st) == NOTOK" (call_expression) "stat (maildir, &st)" (identifier) "stat" (argument_list) "(maildir, &st)" (() "(" (identifier) "maildir" (,) "," (pointer_expression) "&st" (&) "&" (identifier) "st" ()) ")" (==) "==" (identifier) "NOTOK" ()) ")" (compound_statement) "{\n if (errno != ENOENT)\n adios (maildir, "error on folder");\n if (!create)\n adios (NULLCP, "folder %s doesn't exist", maildir);\n if (!makedir (maildir))\n adios (NULLCP, "unable to create folder %s", maildir);\n }" ({) "{" (if_statement) "if (errno != ENOENT)\n adios (maildir, "error on folder");" (if) "if" (parenthesized_expression) "(errno != ENOENT)" (() "(" (binary_expression) "errno != ENOENT" (identifier) "errno" (!=) "!=" (identifier) "ENOENT" ()) ")" (expression_statement) "adios (maildir, "error on folder");" (call_expression) "adios (maildir, "error on folder")" (identifier) "adios" (argument_list) "(maildir, "error on folder")" (() "(" (identifier) "maildir" (,) "," (string_literal) ""error on folder"" (") """ (string_content) "error on folder" (") """ ()) ")" (;) ";" (if_statement) "if (!create)\n adios (NULLCP, "folder %s doesn't exist", maildir);" (if) "if" (parenthesized_expression) "(!create)" (() "(" (unary_expression) "!create" (!) "!" (identifier) "create" ()) ")" (expression_statement) "adios (NULLCP, "folder %s doesn't exist", maildir);" (call_expression) "adios (NULLCP, "folder %s doesn't exist", maildir)" (identifier) "adios" (argument_list) "(NULLCP, "folder %s doesn't exist", maildir)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""folder %s doesn't exist"" (") """ (string_content) "folder %s doesn't exist" (") """ (,) "," (identifier) "maildir" ()) ")" (;) ";" (if_statement) "if (!makedir (maildir))\n adios (NULLCP, "unable to create folder %s", maildir);" (if) "if" (parenthesized_expression) "(!makedir (maildir))" (() "(" (unary_expression) "!makedir (maildir)" (!) "!" (call_expression) "makedir (maildir)" (identifier) "makedir" (argument_list) "(maildir)" (() "(" (identifier) "maildir" ()) ")" ()) ")" (expression_statement) "adios (NULLCP, "unable to create folder %s", maildir);" (call_expression) "adios (NULLCP, "unable to create folder %s", maildir)" (identifier) "adios" (argument_list) "(NULLCP, "unable to create folder %s", maildir)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""unable to create folder %s"" (") """ (string_content) "unable to create folder %s" (") """ (,) "," (identifier) "maildir" ()) ")" (;) ";" (}) "}" (if_statement) "if (chdir (maildir) == NOTOK)\n adios (maildir, "unable to change directory to");" (if) "if" (parenthesized_expression) "(chdir (maildir) == NOTOK)" (() "(" (binary_expression) "chdir (maildir) == NOTOK" (call_expression) "chdir (maildir)" (identifier) "chdir" (argument_list) "(maildir)" (() "(" (identifier) "maildir" ()) ")" (==) "==" (identifier) "NOTOK" ()) ")" (expression_statement) "adios (maildir, "unable to change directory to");" (call_expression) "adios (maildir, "unable to change directory to")" (identifier) "adios" (argument_list) "(maildir, "unable to change directory to")" (() "(" (identifier) "maildir" (,) "," (string_literal) ""unable to change directory to"" (") """ (string_content) "unable to change directory to" (") """ ()) ")" (;) ";" (if_statement) "if (!(mp = m_gmsg (folder)))\n adios (NULLCP, "unable to read folder %s", folder);" (if) "if" (parenthesized_expression) "(!(mp = m_gmsg (folder)))" (() "(" (unary_expression) "!(mp = m_gmsg (folder))" (!) "!" (parenthesized_expression) "(mp = m_gmsg (folder))" (() "(" (assignment_expression) "mp = m_gmsg (folder)" (identifier) "mp" (=) "=" (call_expression) "m_gmsg (folder)" (identifier) "m_gmsg" (argument_list) "(folder)" (() "(" (identifier) "folder" ()) ")" ()) ")" ()) ")" (expression_statement) "adios (NULLCP, "unable to read folder %s", folder);" (call_expression) "adios (NULLCP, "unable to read folder %s", folder)" (identifier) "adios" (argument_list) "(NULLCP, "unable to read folder %s", folder)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""unable to read folder %s"" (") """ (string_content) "unable to read folder %s" (") """ (,) "," (identifier) "folder" ()) ")" (;) ";" (expression_statement) "(void) signal (SIGHUP, SIG_IGN);" (cast_expression) "(void) signal (SIGHUP, SIG_IGN)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "signal (SIGHUP, SIG_IGN)" (identifier) "signal" (argument_list) "(SIGHUP, SIG_IGN)" (() "(" (identifier) "SIGHUP" (,) "," (identifier) "SIG_IGN" ()) ")" (;) ";" (expression_statement) "(void) signal (SIGINT, SIG_IGN);" (cast_expression) "(void) signal (SIGINT, SIG_IGN)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "signal (SIGINT, SIG_IGN)" (identifier) "signal" (argument_list) "(SIGINT, SIG_IGN)" (() "(" (identifier) "SIGINT" (,) "," (identifier) "SIG_IGN" ()) ")" (;) ";" (expression_statement) "(void) signal (SIGQUIT, SIG_IGN);" (cast_expression) "(void) signal (SIGQUIT, SIG_IGN)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "signal (SIGQUIT, SIG_IGN)" (identifier) "signal" (argument_list) "(SIGQUIT, SIG_IGN)" (() "(" (identifier) "SIGQUIT" (,) "," (identifier) "SIG_IGN" ()) ")" (;) ";" (expression_statement) "(void) signal (SIGTERM, SIG_IGN);" (cast_expression) "(void) signal (SIGTERM, SIG_IGN)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "signal (SIGTERM, SIG_IGN)" (identifier) "signal" (argument_list) "(SIGTERM, SIG_IGN)" (() "(" (identifier) "SIGTERM" (,) "," (identifier) "SIG_IGN" ()) ")" (;) ";" (comment) "/* */" (if_statement) "if ((fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))\n == NOTOK)\n adios (tmpfilenam, "unable to create");" (if) "if" (parenthesized_expression) "((fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))\n == NOTOK)" (() "(" (binary_expression) "(fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))\n == NOTOK" (parenthesized_expression) "(fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ()))" (() "(" (assignment_expression) "fd = creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ())" (identifier) "fd" (=) "=" (call_expression) "creat (tmpfilenam = m_scratch ("", invo_name), m_gmprot ())" (identifier) "creat" (argument_list) "(tmpfilenam = m_scratch ("", invo_name), m_gmprot ())" (() "(" (assignment_expression) "tmpfilenam = m_scratch ("", invo_name)" (identifier) "tmpfilenam" (=) "=" (call_expression) "m_scratch ("", invo_name)" (identifier) "m_scratch" (argument_list) "("", invo_name)" (() "(" (string_literal) """" (") """ (") """ (,) "," (identifier) "invo_name" ()) ")" (,) "," (call_expression) "m_gmprot ()" (identifier) "m_gmprot" (argument_list) "()" (() "(" ()) ")" ()) ")" ()) ")" (==) "==" (identifier) "NOTOK" ()) ")" (expression_statement) "adios (tmpfilenam, "unable to create");" (call_expression) "adios (tmpfilenam, "unable to create")" (identifier) "adios" (argument_list) "(tmpfilenam, "unable to create")" (() "(" (identifier) "tmpfilenam" (,) "," (string_literal) ""unable to create"" (") """ (string_content) "unable to create" (") """ ()) ")" (;) ";" (expression_statement) "(void) chmod (tmpfilenam, m_gmprot ());" (cast_expression) "(void) chmod (tmpfilenam, m_gmprot ())" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "chmod (tmpfilenam, m_gmprot ())" (identifier) "chmod" (argument_list) "(tmpfilenam, m_gmprot ())" (() "(" (identifier) "tmpfilenam" (,) "," (call_expression) "m_gmprot ()" (identifier) "m_gmprot" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "cpydata (fileno (stdin), fd, "standard input", tmpfilenam);" (call_expression) "cpydata (fileno (stdin), fd, "standard input", tmpfilenam)" (identifier) "cpydata" (argument_list) "(fileno (stdin), fd, "standard input", tmpfilenam)" (() "(" (call_expression) "fileno (stdin)" (identifier) "fileno" (argument_list) "(stdin)" (() "(" (identifier) "stdin" ()) ")" (,) "," (identifier) "fd" (,) "," (string_literal) ""standard input"" (") """ (string_content) "standard input" (") """ (,) "," (identifier) "tmpfilenam" ()) ")" (;) ";" (if_statement) "if (fstat (fd, &st) == NOTOK) {\n (void) unlink (tmpfilenam);\n adios (tmpfilenam, "unable to fstat");\n }" (if) "if" (parenthesized_expression) "(fstat (fd, &st) == NOTOK)" (() "(" (binary_expression) "fstat (fd, &st) == NOTOK" (call_expression) "fstat (fd, &st)" (identifier) "fstat" (argument_list) "(fd, &st)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&st" (&) "&" (identifier) "st" ()) ")" (==) "==" (identifier) "NOTOK" ()) ")" (compound_statement) "{\n (void) unlink (tmpfilenam);\n adios (tmpfilenam, "unable to fstat");\n }" ({) "{" (expression_statement) "(void) unlink (tmpfilenam);" (cast_expression) "(void) unlink (tmpfilenam)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "unlink (tmpfilenam)" (identifier) "unlink" (argument_list) "(tmpfilenam)" (() "(" (identifier) "tmpfilenam" ()) ")" (;) ";" (expression_statement) "adios (tmpfilenam, "unable to fstat");" (call_expression) "adios (tmpfilenam, "unable to fstat")" (identifier) "adios" (argument_list) "(tmpfilenam, "unable to fstat")" (() "(" (identifier) "tmpfilenam" (,) "," (string_literal) ""unable to fstat"" (") """ (string_content) "unable to fstat" (") """ ()) ")" (;) ";" (}) "}" (if_statement) "if (close (fd) == NOTOK)\n adios (tmpfilenam, "error closing");" (if) "if" (parenthesized_expression) "(close (fd) == NOTOK)" (() "(" (binary_expression) "close (fd) == NOTOK" (call_expression) "close (fd)" (identifier) "close" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (==) "==" (identifier) "NOTOK" ()) ")" (expression_statement) "adios (tmpfilenam, "error closing");" (call_expression) "adios (tmpfilenam, "error closing")" (identifier) "adios" (argument_list) "(tmpfilenam, "error closing")" (() "(" (identifier) "tmpfilenam" (,) "," (string_literal) ""error closing"" (") """ (string_content) "error closing" (") """ ()) ")" (;) ";" (if_statement) "if (st.st_size == 0) {\n (void) unlink (tmpfilenam);\n advise (NULLCP, "empty file");\n done (0);\n }" (if) "if" (parenthesized_expression) "(st.st_size == 0)" (() "(" (binary_expression) "st.st_size == 0" (field_expression) "st.st_size" (identifier) "st" (.) "." (field_identifier) "st_size" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n (void) unlink (tmpfilenam);\n advise (NULLCP, "empty file");\n done (0);\n }" ({) "{" (expression_statement) "(void) unlink (tmpfilenam);" (cast_expression) "(void) unlink (tmpfilenam)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "unlink (tmpfilenam)" (identifier) "unlink" (argument_list) "(tmpfilenam)" (() "(" (identifier) "tmpfilenam" ()) ")" (;) ";" (expression_statement) "advise (NULLCP, "empty file");" (call_expression) "advise (NULLCP, "empty file")" (identifier) "advise" (argument_list) "(NULLCP, "empty file")" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""empty file"" (") """ (string_content) "empty file" (") """ ()) ")" (;) ";" (expression_statement) "done (0);" (call_expression) "done (0)" (identifier) "done" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (expression_statement) "msgnum = mp -> hghmsg;" (assignment_expression) "msgnum = mp -> hghmsg" (identifier) "msgnum" (=) "=" (field_expression) "mp -> hghmsg" (identifier) "mp" (->) "->" (field_identifier) "hghmsg" (;) ";" (do_statement) "do {\n msgnum++, mp -> hghmsg++;\n if (msgnum > mp -> hghoff)\n if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");\n\n mp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n errno = 0;\n } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST);" (do) "do" (compound_statement) "{\n msgnum++, mp -> hghmsg++;\n if (msgnum > mp -> hghoff)\n if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");\n\n mp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n errno = 0;\n }" ({) "{" (expression_statement) "msgnum++, mp -> hghmsg++;" (comma_expression) "msgnum++, mp -> hghmsg++" (update_expression) "msgnum++" (identifier) "msgnum" (++) "++" (,) "," (update_expression) "mp -> hghmsg++" (field_expression) "mp -> hghmsg" (identifier) "mp" (->) "->" (field_identifier) "hghmsg" (++) "++" (;) ";" (if_statement) "if (msgnum > mp -> hghoff)\n if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");" (if) "if" (parenthesized_expression) "(msgnum > mp -> hghoff)" (() "(" (binary_expression) "msgnum > mp -> hghoff" (identifier) "msgnum" (>) ">" (field_expression) "mp -> hghoff" (identifier) "mp" (->) "->" (field_identifier) "hghoff" ()) ")" (if_statement) "if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n adios (NULLCP, "unable to allocate folder storage");" (if) "if" (parenthesized_expression) "((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)" (() "(" (binary_expression) "(mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL" (parenthesized_expression) "(mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER))" (() "(" (assignment_expression) "mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)" (identifier) "mp" (=) "=" (call_expression) "m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)" (identifier) "m_remsg" (argument_list) "(mp, 0, mp -> hghoff + MAXFOLDER)" (() "(" (identifier) "mp" (,) "," (number_literal) "0" (,) "," (binary_expression) "mp -> hghoff + MAXFOLDER" (field_expression) "mp -> hghoff" (identifier) "mp" (->) "->" (field_identifier) "hghoff" (+) "+" (identifier) "MAXFOLDER" ()) ")" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "adios (NULLCP, "unable to allocate folder storage");" (call_expression) "adios (NULLCP, "unable to allocate folder storage")" (identifier) "adios" (argument_list) "(NULLCP, "unable to allocate folder storage")" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""unable to allocate folder storage"" (") """ (string_content) "unable to allocate folder storage" (") """ ()) ")" (;) ";" (expression_statement) "mp -> msgstats[msgnum] |= EXISTS | UNSEEN;" (assignment_expression) "mp -> msgstats[msgnum] |= EXISTS | UNSEEN" (subscript_expression) "mp -> msgstats[msgnum]" (field_expression) "mp -> msgstats" (identifier) "mp" (->) "->" (field_identifier) "msgstats" ([) "[" (identifier) "msgnum" (]) "]" (|=) "|=" (binary_expression) "EXISTS | UNSEEN" (identifier) "EXISTS" (|) "|" (identifier) "UNSEEN" (;) ";" (expression_statement) "errno = 0;" (assignment_expression) "errno = 0" (identifier) "errno" (=) "=" (number_literal) "0" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST)" (() "(" (binary_expression) "link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST" (binary_expression) "link (tmpfilenam, m_name (msgnum)) == NOTOK" (call_expression) "link (tmpfilenam, m_name (msgnum))" (identifier) "link" (argument_list) "(tmpfilenam, m_name (msgnum))" (() "(" (identifier) "tmpfilenam" (,) "," (call_expression) "m_name (msgnum)" (identifier) "m_name" (argument_list) "(msgnum)" (() "(" (identifier) "msgnum" ()) ")" ()) ")" (==) "==" (identifier) "NOTOK" (&&) "&&" (binary_expression) "errno == EEXIST" (identifier) "errno" (==) "==" (identifier) "EEXIST" ()) ")" (;) ";" (expression_statement) "(void) unlink (tmpfilenam);" (cast_expression) "(void) unlink (tmpfilenam)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "unlink (tmpfilenam)" (identifier) "unlink" (argument_list) "(tmpfilenam)" (() "(" (identifier) "tmpfilenam" ()) ")" (;) ";" (expression_statement) "tmpfilenam = NULLCP;" (assignment_expression) "tmpfilenam = NULLCP" (identifier) "tmpfilenam" (=) "=" (identifier) "NULLCP" (;) ";" (if_statement) "if (errno != 0)\n adios (NULLCP, "can't file message %d", msgnum);" (if) "if" (parenthesized_expression) "(errno != 0)" (() "(" (binary_expression) "errno != 0" (identifier) "errno" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "adios (NULLCP, "can't file message %d", msgnum);" (call_expression) "adios (NULLCP, "can't file message %d", msgnum)" (identifier) "adios" (argument_list) "(NULLCP, "can't file message %d", msgnum)" (() "(" (identifier) "NULLCP" (,) "," (string_literal) ""can't file message %d"" (") """ (string_content) "can't file message %d" (") """ (,) "," (identifier) "msgnum" ()) ")" (;) ";" (if_statement) "if (mp -> lowmsg == 0)\n mp -> lowmsg = msgnum;" (if) "if" (parenthesized_expression) "(mp -> lowmsg == 0)" (() "(" (binary_expression) "mp -> lowmsg == 0" (field_expression) "mp -> lowmsg" (identifier) "mp" (->) "->" (field_identifier) "lowmsg" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "mp -> lowmsg = msgnum;" (assignment_expression) "mp -> lowmsg = msgnum" (field_expression) "mp -> lowmsg" (identifier) "mp" (->) "->" (field_identifier) "lowmsg" (=) "=" (identifier) "msgnum" (;) ";" (expression_statement) "mp -> msgflags |= SEQMOD;" (assignment_expression) "mp -> msgflags |= SEQMOD" (field_expression) "mp -> msgflags" (identifier) "mp" (->) "->" (field_identifier) "msgflags" (|=) "|=" (identifier) "SEQMOD" (;) ";" (expression_statement) "seqs[seqp] = NULL;" (assignment_expression) "seqs[seqp] = NULL" (subscript_expression) "seqs[seqp]" (identifier) "seqs" ([) "[" (identifier) "seqp" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (for_statement) "for (seqp = 0; seqs[seqp]; seqp++) {\n if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n done (1);\n if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n done (1);\n }" (for) "for" (() "(" (assignment_expression) "seqp = 0" (identifier) "seqp" (=) "=" (number_literal) "0" (;) ";" (subscript_expression) "seqs[seqp]" (identifier) "seqs" ([) "[" (identifier) "seqp" (]) "]" (;) ";" (update_expression) "seqp++" (identifier) "seqp" (++) "++" ()) ")" (compound_statement) "{\n if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n done (1);\n if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n done (1);\n }" ({) "{" (if_statement) "if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n done (1);" (if) "if" (parenthesized_expression) "(zerosw && !m_seqnew (mp, seqs[seqp], publicsw))" (() "(" (binary_expression) "zerosw && !m_seqnew (mp, seqs[seqp], publicsw)" (identifier) "zerosw" (&&) "&&" (unary_expression) "!m_seqnew (mp, seqs[seqp], publicsw)" (!) "!" (call_expression) "m_seqnew (mp, seqs[seqp], publicsw)" (identifier) "m_seqnew" (argument_list) "(mp, seqs[seqp], publicsw)" (() "(" (identifier) "mp" (,) "," (subscript_expression) "seqs[seqp]" (identifier) "seqs" ([) "[" (identifier) "seqp" (]) "]" (,) "," (identifier) "publicsw" ()) ")" ()) ")" (expression_statement) "done (1);" (call_expression) "done (1)" (identifier) "done" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (if_statement) "if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n done (1);" (if) "if" (parenthesized_expression) "(!m_seqadd (mp, seqs[seqp], msgnum, publicsw))" (() "(" (unary_expression) "!m_seqadd (mp, seqs[seqp], msgnum, publicsw)" (!) "!" (call_expression) "m_seqadd (mp, seqs[seqp], msgnum, publicsw)" (identifier) "m_seqadd" (argument_list) "(mp, seqs[seqp], msgnum, publicsw)" (() "(" (identifier) "mp" (,) "," (subscript_expression) "seqs[seqp]" (identifier) "seqs" ([) "[" (identifier) "seqp" (]) "]" (,) "," (identifier) "msgnum" (,) "," (identifier) "publicsw" ()) ")" ()) ")" (expression_statement) "done (1);" (call_expression) "done (1)" (identifier) "done" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "m_setvis (mp, 0);" (call_expression) "m_setvis (mp, 0)" (identifier) "m_setvis" (argument_list) "(mp, 0)" (() "(" (identifier) "mp" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "m_sync (mp);" (call_expression) "m_sync (mp)" (identifier) "m_sync" (argument_list) "(mp)" (() "(" (identifier) "mp" ()) ")" (;) ";" (expression_statement) "m_update ();" (call_expression) "m_update ()" (identifier) "m_update" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "done (0);" (call_expression) "done (0)" (identifier) "done" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "void done (status)\nregister int status;\n{\n if (tmpfilenam && *tmpfilenam)\n (void) unlink (tmpfilenam);\n exit (status);\n}" (primitive_type) "void" (function_declarator) "done (status)" (identifier) "done" (parameter_list) "(status)" (() "(" (identifier) "status" ()) ")" (declaration) "register int status;" (storage_class_specifier) "register" (register) "register" (primitive_type) "int" (identifier) "status" (;) ";" (compound_statement) "{\n if (tmpfilenam && *tmpfilenam)\n (void) unlink (tmpfilenam);\n exit (status);\n}" ({) "{" (if_statement) "if (tmpfilenam && *tmpfilenam)\n (void) unlink (tmpfilenam);" (if) "if" (parenthesized_expression) "(tmpfilenam && *tmpfilenam)" (() "(" (binary_expression) "tmpfilenam && *tmpfilenam" (identifier) "tmpfilenam" (&&) "&&" (pointer_expression) "*tmpfilenam" (*) "*" (identifier) "tmpfilenam" ()) ")" (expression_statement) "(void) unlink (tmpfilenam);" (cast_expression) "(void) unlink (tmpfilenam)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "unlink (tmpfilenam)" (identifier) "unlink" (argument_list) "(tmpfilenam)" (() "(" (identifier) "tmpfilenam" ()) ")" (;) ";" (expression_statement) "exit (status);" (call_expression) "exit (status)" (identifier) "exit" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" (;) ";" (}) "}"
1,743
16
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 23.96, "nodes": 1029, "errors": 0, "source_hash": "dc0f946e4538f316366fa8b7d75c93119ffb51a4c3f5123da18fe874f6e61c1b", "categorized_nodes": 718}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\tlint\nstatic char ident[] = \"@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $\";\n#endif", "parent": null, "children": [1, 2, 3, 10], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 4, "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": "lint", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 3, "type": "declaration", "text": "static char ident[] = \"@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $\";", "parent": 0, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 84}}, {"id": 4, "type": "primitive_type", "text": "char", "parent": 3, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 11}}, {"id": 5, "type": "init_declarator", "text": "ident[] = \"@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $\"", "parent": 3, "children": [6, 8, 9], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 83}}, {"id": 6, "type": "array_declarator", "text": "ident[]", "parent": 5, "children": [7], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 19}}, {"id": 7, "type": "identifier", "text": "ident", "parent": 6, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 17}}, {"id": 8, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "string_literal", "text": "\"@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $\"", "parent": 5, "children": [], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 83}}, {"id": 10, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "preproc_include", "text": "#include \"../h/mh.h\"\n", "parent": null, "children": [12, 13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 13, "type": "string_literal", "text": "\"../h/mh.h\"", "parent": 11, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 20}}, {"id": 14, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [15, 16], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 16, "type": "system_lib_string", "text": "<errno.h>", "parent": 14, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 17, "type": "preproc_include", "text": "#include <signal.h>\n", "parent": null, "children": [18, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 19, "type": "system_lib_string", "text": "<signal.h>", "parent": 17, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 20, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [21, 22], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 22, "type": "system_lib_string", "text": "<stdio.h>", "parent": 20, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 23, "type": "preproc_include", "text": "#include <sys/types.h>\n", "parent": null, "children": [24, 25], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 25, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 23, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 22}}, {"id": 26, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "children": [27, 28], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 28, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 26, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 29, "type": "preproc_ifdef", "text": "#ifdef LOCALE\n#include\t<locale.h>\n#endif", "parent": null, "children": [30, 31, 32, 35], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 30, "type": "#ifdef", "text": "#ifdef", "parent": 29, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 31, "type": "identifier", "text": "LOCALE", "parent": 29, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 13}}, {"id": 32, "type": "preproc_include", "text": "#include\t<locale.h>\n", "parent": 29, "children": [33, 34], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 33, "type": "#include", "text": "#include", "parent": 32, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 34, "type": "system_lib_string", "text": "<locale.h>", "parent": 32, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 35, "type": "#endif", "text": "#endif", "parent": 29, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 36, "type": "declaration", "text": "static struct swit switches[] = {\n#define CRETSW\t0\n \"create\",\t0,\n#define NCRETSW\t1\n \"nocreate\", 0,\n\n#define PUBSW\t2\n \"public\",\t0,\n#define NPUBSW\t3\n \"nopublic\", 0,\n\n#define SEQSW\t4\n \"sequence name\", 0,\n\n#define ZEROSW 5\n \"zero\",\t0,\n#define NZEROSW 6\n \"nozero\",\t0,\n\n#define HELPSW 7\n \"help\", 4,\n\n NULL, 0\n};", "parent": null, "children": [37, 40], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 41, "column": 2}}, {"id": 37, "type": "struct_specifier", "text": "struct swit", "parent": 36, "children": [38, 39], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 18}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 13}}, {"id": 39, "type": "type_identifier", "text": "swit", "parent": 37, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 18}}, {"id": 40, "type": "init_declarator", "text": "switches[] = {\n#define CRETSW\t0\n \"create\",\t0,\n#define NCRETSW\t1\n \"nocreate\", 0,\n\n#define PUBSW\t2\n \"public\",\t0,\n#define NPUBSW\t3\n \"nopublic\", 0,\n\n#define SEQSW\t4\n \"sequence name\", 0,\n\n#define ZEROSW 5\n \"zero\",\t0,\n#define NZEROSW 6\n \"nozero\",\t0,\n\n#define HELPSW 7\n \"help\", 4,\n\n NULL, 0\n}", "parent": 36, "children": [41, 43, 44], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 41, "column": 1}}, {"id": 41, "type": "array_declarator", "text": "switches[]", "parent": 40, "children": [42], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 29}}, {"id": 42, "type": "identifier", "text": "switches", "parent": 41, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 27}}, {"id": 43, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 31}}, {"id": 44, "type": "initializer_list", "text": "{\n#define CRETSW\t0\n \"create\",\t0,\n#define NCRETSW\t1\n \"nocreate\", 0,\n\n#define PUBSW\t2\n \"public\",\t0,\n#define NPUBSW\t3\n \"nopublic\", 0,\n\n#define SEQSW\t4\n \"sequence name\", 0,\n\n#define ZEROSW 5\n \"zero\",\t0,\n#define NZEROSW 6\n \"nozero\",\t0,\n\n#define HELPSW 7\n \"help\", 4,\n\n NULL, 0\n}", "parent": 40, "children": [45, 47, 52, 53, 55, 60, 61, 63, 68, 69, 71, 76, 77, 79, 84, 85, 87, 92, 93, 95, 100, 101, 103, 108, 109, 111], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 41, "column": 1}}, {"id": 45, "type": "ERROR", "text": "#define", "parent": 44, "children": [46], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 47, "type": "concatenated_string", "text": "CRETSW\t0\n \"create\"", "parent": 44, "children": [48, 49, 51], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 48, "type": "identifier", "text": "CRETSW", "parent": 47, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 49, "type": "ERROR", "text": "0", "parent": 47, "children": [50], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 50, "type": "number_literal", "text": "0", "parent": 49, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 51, "type": "string_literal", "text": "\"create\"", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 12}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 53, "type": "ERROR", "text": "#define", "parent": 44, "children": [54], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 54, "type": "#define", "text": "#define", "parent": 53, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 55, "type": "concatenated_string", "text": "NCRETSW\t1\n \"nocreate\"", "parent": 44, "children": [56, 57, 59], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 56, "type": "identifier", "text": "NCRETSW", "parent": 55, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 15}}, {"id": 57, "type": "ERROR", "text": "1", "parent": 55, "children": [58], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 58, "type": "number_literal", "text": "1", "parent": 57, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 59, "type": "string_literal", "text": "\"nocreate\"", "parent": 55, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 14}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 17}}, {"id": 61, "type": "ERROR", "text": "#define", "parent": 44, "children": [62], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 62, "type": "#define", "text": "#define", "parent": 61, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 63, "type": "concatenated_string", "text": "PUBSW\t2\n \"public\"", "parent": 44, "children": [64, 65, 67], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 64, "type": "identifier", "text": "PUBSW", "parent": 63, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 13}}, {"id": 65, "type": "ERROR", "text": "2", "parent": 63, "children": [66], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 66, "type": "number_literal", "text": "2", "parent": 65, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 67, "type": "string_literal", "text": "\"public\"", "parent": 63, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 68, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 69, "type": "ERROR", "text": "#define", "parent": 44, "children": [70], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 71, "type": "concatenated_string", "text": "NPUBSW\t3\n \"nopublic\"", "parent": 44, "children": [72, 73, 75], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 72, "type": "identifier", "text": "NPUBSW", "parent": 71, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 73, "type": "ERROR", "text": "3", "parent": 71, "children": [74], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 74, "type": "number_literal", "text": "3", "parent": 73, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 75, "type": "string_literal", "text": "\"nopublic\"", "parent": 71, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 14}}, {"id": 76, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 77, "type": "ERROR", "text": "#define", "parent": 44, "children": [78], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 78, "type": "#define", "text": "#define", "parent": 77, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 79, "type": "concatenated_string", "text": "SEQSW\t4\n \"sequence name\"", "parent": 44, "children": [80, 81, 83], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 30, "column": 19}}, {"id": 80, "type": "identifier", "text": "SEQSW", "parent": 79, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 13}}, {"id": 81, "type": "ERROR", "text": "4", "parent": 79, "children": [82], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 82, "type": "number_literal", "text": "4", "parent": 81, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 83, "type": "string_literal", "text": "\"sequence name\"", "parent": 79, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 19}}, {"id": 84, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 85, "type": "ERROR", "text": "#define", "parent": 44, "children": [86], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 86, "type": "#define", "text": "#define", "parent": 85, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 87, "type": "concatenated_string", "text": "ZEROSW 5\n \"zero\"", "parent": 44, "children": [88, 89, 91], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 33, "column": 10}}, {"id": 88, "type": "identifier", "text": "ZEROSW", "parent": 87, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 14}}, {"id": 89, "type": "ERROR", "text": "5", "parent": 87, "children": [90], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 90, "type": "number_literal", "text": "5", "parent": 89, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 91, "type": "string_literal", "text": "\"zero\"", "parent": 87, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 92, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 93, "type": "ERROR", "text": "#define", "parent": 44, "children": [94], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 94, "type": "#define", "text": "#define", "parent": 93, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 95, "type": "concatenated_string", "text": "NZEROSW 6\n \"nozero\"", "parent": 44, "children": [96, 97, 99], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 96, "type": "identifier", "text": "NZEROSW", "parent": 95, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 97, "type": "ERROR", "text": "6", "parent": 95, "children": [98], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 98, "type": "number_literal", "text": "6", "parent": 97, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 99, "type": "string_literal", "text": "\"nozero\"", "parent": 95, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 12}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 101, "type": "ERROR", "text": "#define", "parent": 44, "children": [102], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 103, "type": "concatenated_string", "text": "HELPSW 7\n \"help\"", "parent": 44, "children": [104, 105, 107], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 38, "column": 10}}, {"id": 104, "type": "identifier", "text": "HELPSW", "parent": 103, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 105, "type": "ERROR", "text": "7", "parent": 103, "children": [106], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 106, "type": "number_literal", "text": "7", "parent": 105, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 107, "type": "string_literal", "text": "\"help\"", "parent": 103, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 108, "type": "number_literal", "text": "4", "parent": 44, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 109, "type": "null", "text": "NULL", "parent": 44, "children": [110], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 110, "type": "NULL", "text": "NULL", "parent": 109, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 11}}, {"id": 112, "type": "declaration", "text": "extern int errno;", "parent": null, "children": [113, 115, 116], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 18}}, {"id": 113, "type": "storage_class_specifier", "text": "extern", "parent": 112, "children": [114], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 114, "type": "extern", "text": "extern", "parent": 113, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 10}}, {"id": 116, "type": "identifier", "text": "errno", "parent": 112, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 17}}, {"id": 117, "type": "declaration", "text": "static char *tmpfilenam = NULLCP;", "parent": null, "children": [118, 119], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 33}}, {"id": 118, "type": "primitive_type", "text": "char", "parent": 117, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 11}}, {"id": 119, "type": "init_declarator", "text": "*tmpfilenam = NULLCP", "parent": 117, "children": [120, 123, 124], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 32}}, {"id": 120, "type": "pointer_declarator", "text": "*tmpfilenam", "parent": 119, "children": [121, 122], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 23}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 122, "type": "identifier", "text": "tmpfilenam", "parent": 120, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 23}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 25}}, {"id": 124, "type": "identifier", "text": "NULLCP", "parent": 119, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 32}}, {"id": 125, "type": "call_expression", "text": "main (argc, argv)", "parent": null, "children": [126, 127], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 17}}, {"id": 126, "type": "identifier", "text": "main", "parent": 125, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 127, "type": "argument_list", "text": "(argc, argv)", "parent": 125, "children": [128, 129], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 17}}, {"id": 128, "type": "identifier", "text": "argc", "parent": 127, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 10}}, {"id": 129, "type": "identifier", "text": "argv", "parent": 127, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 130, "type": "declaration", "text": "int\targc;", "parent": null, "children": [131, 132], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 9}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 132, "type": "identifier", "text": "argc", "parent": 130, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 133, "type": "declaration", "text": "char *argv[];", "parent": null, "children": [134, 135], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 15}}, {"id": 134, "type": "primitive_type", "text": "char", "parent": 133, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 135, "type": "pointer_declarator", "text": "*argv[]", "parent": 133, "children": [136, 137], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 8}}, {"id": 137, "type": "array_declarator", "text": "argv[]", "parent": 135, "children": [138], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 138, "type": "identifier", "text": "argv", "parent": 137, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 139, "type": "declaration", "text": "int publicsw = -1,\n zerosw = 0,\n msgnum,\n create = 1,\n fd,\n seqp = 0;", "parent": null, "children": [140, 141, 145, 149, 150, 154, 155], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 61, "column": 21}}, {"id": 140, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 141, "type": "init_declarator", "text": "publicsw = -1", "parent": 139, "children": [142, 143, 144], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 25}}, {"id": 142, "type": "identifier", "text": "publicsw", "parent": 141, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 20}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 22}}, {"id": 144, "type": "number_literal", "text": "-1", "parent": 141, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 25}}, {"id": 145, "type": "init_declarator", "text": "zerosw = 0", "parent": 139, "children": [146, 147, 148], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 146, "type": "identifier", "text": "zerosw", "parent": 145, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 18}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 20}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 145, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 149, "type": "identifier", "text": "msgnum", "parent": 139, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 18}}, {"id": 150, "type": "init_declarator", "text": "create = 1", "parent": 139, "children": [151, 152, 153], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 22}}, {"id": 151, "type": "identifier", "text": "create", "parent": 150, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 18}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 153, "type": "number_literal", "text": "1", "parent": 150, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 22}}, {"id": 154, "type": "identifier", "text": "fd", "parent": 139, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 14}}, {"id": 155, "type": "init_declarator", "text": "seqp = 0", "parent": 139, "children": [156, 157, 158], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 20}}, {"id": 156, "type": "identifier", "text": "seqp", "parent": 155, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 16}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 18}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 155, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 159, "type": "declaration", "text": "char *cp,\n *maildir,\n *folder = NULL,\n buf[100],\n **ap,\n **argp,\n *arguments[MAXARGS],\n *seqs[NATTRS+1];", "parent": null, "children": [160, 161, 164, 167, 174, 177, 182, 187, 192], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 69, "column": 27}}, {"id": 160, "type": "primitive_type", "text": "char", "parent": 159, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 161, "type": "pointer_declarator", "text": "*cp", "parent": 159, "children": [162, 163], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 14}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 163, "type": "identifier", "text": "cp", "parent": 161, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 14}}, {"id": 164, "type": "pointer_declarator", "text": "*maildir", "parent": 159, "children": [165, 166], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 19}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 166, "type": "identifier", "text": "maildir", "parent": 164, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 19}}, {"id": 167, "type": "init_declarator", "text": "*folder = NULL", "parent": 159, "children": [168, 171, 172], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 25}}, {"id": 168, "type": "pointer_declarator", "text": "*folder", "parent": 167, "children": [169, 170], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 18}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 12}}, {"id": 170, "type": "identifier", "text": "folder", "parent": 168, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 18}}, {"id": 171, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 20}}, {"id": 172, "type": "null", "text": "NULL", "parent": 167, "children": [173], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 25}}, {"id": 173, "type": "NULL", "text": "NULL", "parent": 172, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 25}}, {"id": 174, "type": "array_declarator", "text": "buf[100]", "parent": 159, "children": [175, 176], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 20}}, {"id": 175, "type": "identifier", "text": "buf", "parent": 174, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 15}}, {"id": 176, "type": "number_literal", "text": "100", "parent": 174, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 19}}, {"id": 177, "type": "pointer_declarator", "text": "**ap", "parent": 159, "children": [178, 179], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 14}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 179, "type": "pointer_declarator", "text": "*ap", "parent": 177, "children": [180, 181], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 14}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 12}}, {"id": 181, "type": "identifier", "text": "ap", "parent": 179, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 14}}, {"id": 182, "type": "pointer_declarator", "text": "**argp", "parent": 159, "children": [183, 184], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 16}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 11}}, {"id": 184, "type": "pointer_declarator", "text": "*argp", "parent": 182, "children": [185, 186], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 16}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 186, "type": "identifier", "text": "argp", "parent": 184, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 16}}, {"id": 187, "type": "pointer_declarator", "text": "*arguments[MAXARGS]", "parent": 159, "children": [188, 189], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 30}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 12}}, {"id": 189, "type": "array_declarator", "text": "arguments[MAXARGS]", "parent": 187, "children": [190, 191], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 30}}, {"id": 190, "type": "identifier", "text": "arguments", "parent": 189, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 21}}, {"id": 191, "type": "identifier", "text": "MAXARGS", "parent": 189, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 29}}, {"id": 192, "type": "pointer_declarator", "text": "*seqs[NATTRS+1]", "parent": 159, "children": [193, 194], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 26}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 12}}, {"id": 194, "type": "array_declarator", "text": "seqs[NATTRS+1]", "parent": 192, "children": [195, 196], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 26}}, {"id": 195, "type": "identifier", "text": "seqs", "parent": 194, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 16}}, {"id": 196, "type": "binary_expression", "text": "NATTRS+1", "parent": 194, "children": [197, 198, 199], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 25}}, {"id": 197, "type": "identifier", "text": "NATTRS", "parent": 196, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 23}}, {"id": 198, "type": "+", "text": "+", "parent": 196, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 24}}, {"id": 199, "type": "number_literal", "text": "1", "parent": 196, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 25}}, {"id": 200, "type": "declaration", "text": "struct msgs *mp;", "parent": null, "children": [201, 204], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 20}}, {"id": 201, "type": "struct_specifier", "text": "struct msgs", "parent": 200, "children": [202, 203], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 15}}, {"id": 202, "type": "struct", "text": "struct", "parent": 201, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 203, "type": "type_identifier", "text": "msgs", "parent": 201, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 15}}, {"id": 204, "type": "pointer_declarator", "text": "*mp", "parent": 200, "children": [205, 206], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 19}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 17}}, {"id": 206, "type": "identifier", "text": "mp", "parent": 204, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 19}}, {"id": 207, "type": "declaration", "text": "struct stat st;", "parent": null, "children": [208, 211], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 19}}, {"id": 208, "type": "struct_specifier", "text": "struct stat", "parent": 207, "children": [209, 210], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 15}}, {"id": 209, "type": "struct", "text": "struct", "parent": 208, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 10}}, {"id": 210, "type": "type_identifier", "text": "stat", "parent": 208, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 15}}, {"id": 211, "type": "identifier", "text": "st", "parent": 207, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 18}}, {"id": 212, "type": "preproc_ifdef", "text": "#ifdef LOCALE\n\tsetlocale(LC_ALL, \"\");\n#endif", "parent": null, "children": [213, 214, 220], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 213, "type": "#ifdef", "text": "#ifdef", "parent": 212, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 6}}, {"id": 214, "type": "identifier", "text": "LOCALE", "parent": 212, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 13}}, {"id": 215, "type": "call_expression", "text": "setlocale(LC_ALL, \"\")", "parent": 212, "children": [216, 217], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 22}}, {"id": 216, "type": "identifier", "text": "setlocale", "parent": 215, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 10}}, {"id": 217, "type": "argument_list", "text": "(LC_ALL, \"\")", "parent": 215, "children": [218, 219], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 22}}, {"id": 218, "type": "identifier", "text": "LC_ALL", "parent": 217, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 17}}, {"id": 219, "type": "string_literal", "text": "\"\"", "parent": 217, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 21}}, {"id": 220, "type": "#endif", "text": "#endif", "parent": 212, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 221, "type": "assignment_expression", "text": "invo_name = r1bindex (argv[0], '/')", "parent": null, "children": [222, 223, 224], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 39}}, {"id": 222, "type": "identifier", "text": "invo_name", "parent": 221, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 13}}, {"id": 223, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 15}}, {"id": 224, "type": "call_expression", "text": "r1bindex (argv[0], '/')", "parent": 221, "children": [225, 226], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 39}}, {"id": 225, "type": "identifier", "text": "r1bindex", "parent": 224, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 24}}, {"id": 226, "type": "argument_list", "text": "(argv[0], '/')", "parent": 224, "children": [227, 230], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 39}}, {"id": 227, "type": "subscript_expression", "text": "argv[0]", "parent": 226, "children": [228, 229], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 33}}, {"id": 228, "type": "identifier", "text": "argv", "parent": 227, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 30}}, {"id": 229, "type": "number_literal", "text": "0", "parent": 227, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 32}}, {"id": 230, "type": "char_literal", "text": "'/'", "parent": 226, "children": [231, 232, 233], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 38}}, {"id": 231, "type": "'", "text": "'", "parent": 230, "children": [], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 36}}, {"id": 232, "type": "character", "text": "/", "parent": 230, "children": [], "start_point": {"row": 76, "column": 36}, "end_point": {"row": 76, "column": 37}}, {"id": 233, "type": "'", "text": "'", "parent": 230, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 38}}, {"id": 234, "type": "call_expression", "text": "mts_init (invo_name)", "parent": null, "children": [235, 236], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 24}}, {"id": 235, "type": "identifier", "text": "mts_init", "parent": 234, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 12}}, {"id": 236, "type": "argument_list", "text": "(invo_name)", "parent": 234, "children": [237], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 24}}, {"id": 237, "type": "identifier", "text": "invo_name", "parent": 236, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 23}}, {"id": 238, "type": "if_statement", "text": "if ((cp = m_find (invo_name)) != NULL) {\n\tap = brkstring (cp = getcpy (cp), \" \", \"\\n\");\n\tap = copyip (ap, arguments);\n }\n else\n\tap = arguments;", "parent": null, "children": [239, 276], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 83, "column": 16}}, {"id": 239, "type": "parenthesized_expression", "text": "((cp = m_find (invo_name)) != NULL)", "parent": 238, "children": [240], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 42}}, {"id": 240, "type": "binary_expression", "text": "(cp = m_find (invo_name)) != NULL", "parent": 239, "children": [241, 249, 250], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 41}}, {"id": 241, "type": "parenthesized_expression", "text": "(cp = m_find (invo_name))", "parent": 240, "children": [242], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 33}}, {"id": 242, "type": "assignment_expression", "text": "cp = m_find (invo_name)", "parent": 241, "children": [243, 244, 245], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 32}}, {"id": 243, "type": "identifier", "text": "cp", "parent": 242, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 11}}, {"id": 244, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 245, "type": "call_expression", "text": "m_find (invo_name)", "parent": 242, "children": [246, 247], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 32}}, {"id": 246, "type": "identifier", "text": "m_find", "parent": 245, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 20}}, {"id": 247, "type": "argument_list", "text": "(invo_name)", "parent": 245, "children": [248], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 32}}, {"id": 248, "type": "identifier", "text": "invo_name", "parent": 247, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 31}}, {"id": 249, "type": "!=", "text": "!=", "parent": 240, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 36}}, {"id": 250, "type": "null", "text": "NULL", "parent": 240, "children": [251], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 41}}, {"id": 251, "type": "NULL", "text": "NULL", "parent": 250, "children": [], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 41}}, {"id": 252, "type": "assignment_expression", "text": "ap = brkstring (cp = getcpy (cp), \" \", \"\\n\")", "parent": 238, "children": [253, 254, 255], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 45}}, {"id": 253, "type": "identifier", "text": "ap", "parent": 252, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 3}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 5}}, {"id": 255, "type": "call_expression", "text": "brkstring (cp = getcpy (cp), \" \", \"\\n\")", "parent": 252, "children": [256, 257], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 45}}, {"id": 256, "type": "identifier", "text": "brkstring", "parent": 255, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 15}}, {"id": 257, "type": "argument_list", "text": "(cp = getcpy (cp), \" \", \"\\n\")", "parent": 255, "children": [258, 265, 266], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 45}}, {"id": 258, "type": "assignment_expression", "text": "cp = getcpy (cp)", "parent": 257, "children": [259, 260, 261], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 33}}, {"id": 259, "type": "identifier", "text": "cp", "parent": 258, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 19}}, {"id": 260, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 21}}, {"id": 261, "type": "call_expression", "text": "getcpy (cp)", "parent": 258, "children": [262, 263], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 33}}, {"id": 262, "type": "identifier", "text": "getcpy", "parent": 261, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 28}}, {"id": 263, "type": "argument_list", "text": "(cp)", "parent": 261, "children": [264], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 33}}, {"id": 264, "type": "identifier", "text": "cp", "parent": 263, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 265, "type": "string_literal", "text": "\" \"", "parent": 257, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 38}}, {"id": 266, "type": "string_literal", "text": "\"\\n\"", "parent": 257, "children": [267], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 44}}, {"id": 267, "type": "escape_sequence", "text": "\\n", "parent": 266, "children": [], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 43}}, {"id": 268, "type": "assignment_expression", "text": "ap = copyip (ap, arguments)", "parent": 238, "children": [269, 270, 271], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 28}}, {"id": 269, "type": "identifier", "text": "ap", "parent": 268, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 3}}, {"id": 270, "type": "=", "text": "=", "parent": 268, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 5}}, {"id": 271, "type": "call_expression", "text": "copyip (ap, arguments)", "parent": 268, "children": [272, 273], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 28}}, {"id": 272, "type": "identifier", "text": "copyip", "parent": 271, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 12}}, {"id": 273, "type": "argument_list", "text": "(ap, arguments)", "parent": 271, "children": [274, 275], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 28}}, {"id": 274, "type": "identifier", "text": "ap", "parent": 273, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 16}}, {"id": 275, "type": "identifier", "text": "arguments", "parent": 273, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 27}}, {"id": 276, "type": "else_clause", "text": "else\n\tap = arguments;", "parent": 238, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 83, "column": 16}}, {"id": 277, "type": "assignment_expression", "text": "ap = arguments", "parent": 276, "children": [278, 279, 280], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 15}}, {"id": 278, "type": "identifier", "text": "ap", "parent": 277, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 3}}, {"id": 279, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 5}}, {"id": 280, "type": "identifier", "text": "arguments", "parent": 277, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 15}}, {"id": 281, "type": "cast_expression", "text": "(void) copyip (argv + 1, ap)", "parent": null, "children": [282, 284], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 32}}, {"id": 282, "type": "type_descriptor", "text": "void", "parent": 281, "children": [283], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 9}}, {"id": 283, "type": "primitive_type", "text": "void", "parent": 282, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 9}}, {"id": 284, "type": "call_expression", "text": "copyip (argv + 1, ap)", "parent": 281, "children": [285, 286], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 32}}, {"id": 285, "type": "identifier", "text": "copyip", "parent": 284, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 17}}, {"id": 286, "type": "argument_list", "text": "(argv + 1, ap)", "parent": 284, "children": [287, 291], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 32}}, {"id": 287, "type": "binary_expression", "text": "argv + 1", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 27}}, {"id": 288, "type": "identifier", "text": "argv", "parent": 287, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 23}}, {"id": 289, "type": "+", "text": "+", "parent": 287, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 25}}, {"id": 290, "type": "number_literal", "text": "1", "parent": 287, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 27}}, {"id": 291, "type": "identifier", "text": "ap", "parent": 286, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 31}}, {"id": 292, "type": "assignment_expression", "text": "argp = arguments", "parent": null, "children": [293, 294, 295], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 20}}, {"id": 293, "type": "identifier", "text": "argp", "parent": 292, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 8}}, {"id": 294, "type": "=", "text": "=", "parent": 292, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 295, "type": "identifier", "text": "arguments", "parent": 292, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 20}}, {"id": 296, "type": "while_statement", "text": "while (cp = *argp++) {\n\tif (*cp == '-')\n\t switch (smatch (++cp, switches)) {\n\t\tcase AMBIGSW: \n\t\t ambigsw (cp, switches);\n\t\t done (1);\n\t\tcase UNKWNSW: \n\t\t adios (NULLCP, \"-%s unknown\", cp);\n\t\tcase HELPSW: \n\t\t (void) sprintf (buf, \"%s [+folder] [switches]\", invo_name);\n\t\t help (buf, switches);\n\t\t done (1);\n\n\t\tcase SEQSW: \n\t\t if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);\n\t\t if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);\n\t\t continue;\n\t\tcase PUBSW: \n\t\t publicsw = 1;\n\t\t continue;\n\t\tcase NPUBSW: \n\t\t publicsw = 0;\n\t\t continue;\n\t\tcase ZEROSW: \n\t\t zerosw++;\n\t\t continue;\n\t\tcase NZEROSW: \n\t\t zerosw = 0;\n\t\t continue;\n\n\t\tcase CRETSW: \n\t\t create++;\n\t\t continue;\n\t\tcase NCRETSW: \n\t\t create = 0;\n\t\t continue;\n\t }\n\tif (*cp == '+' || *cp == '@') {\n\t if (folder)\n\t\tadios (NULLCP, \"only one folder at a time!\");\n\t else\n\t\tfolder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n\t}\n\telse\n\t adios (NULLCP, \"usage: %s [+folder] [switches]\", invo_name);\n }", "parent": null, "children": [297], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 139, "column": 5}}, {"id": 297, "type": "parenthesized_expression", "text": "(cp = *argp++)", "parent": 296, "children": [298], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 24}}, {"id": 298, "type": "assignment_expression", "text": "cp = *argp++", "parent": 297, "children": [299, 300, 301], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 23}}, {"id": 299, "type": "identifier", "text": "cp", "parent": 298, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 13}}, {"id": 300, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 301, "type": "pointer_expression", "text": "*argp++", "parent": 298, "children": [302, 303], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 23}}, {"id": 302, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 17}}, {"id": 303, "type": "update_expression", "text": "argp++", "parent": 301, "children": [304, 305], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 23}}, {"id": 304, "type": "identifier", "text": "argp", "parent": 303, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 21}}, {"id": 305, "type": "++", "text": "++", "parent": 303, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 23}}, {"id": 306, "type": "if_statement", "text": "if (*cp == '-')\n\t switch (smatch (++cp, switches)) {\n\t\tcase AMBIGSW: \n\t\t ambigsw (cp, switches);\n\t\t done (1);\n\t\tcase UNKWNSW: \n\t\t adios (NULLCP, \"-%s unknown\", cp);\n\t\tcase HELPSW: \n\t\t (void) sprintf (buf, \"%s [+folder] [switches]\", invo_name);\n\t\t help (buf, switches);\n\t\t done (1);\n\n\t\tcase SEQSW: \n\t\t if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);\n\t\t if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);\n\t\t continue;\n\t\tcase PUBSW: \n\t\t publicsw = 1;\n\t\t continue;\n\t\tcase NPUBSW: \n\t\t publicsw = 0;\n\t\t continue;\n\t\tcase ZEROSW: \n\t\t zerosw++;\n\t\t continue;\n\t\tcase NZEROSW: \n\t\t zerosw = 0;\n\t\t continue;\n\n\t\tcase CRETSW: \n\t\t create++;\n\t\t continue;\n\t\tcase NCRETSW: \n\t\t create = 0;\n\t\t continue;\n\t }", "parent": 296, "children": [307, 317], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 130, "column": 6}}, {"id": 307, "type": "parenthesized_expression", "text": "(*cp == '-')", "parent": 306, "children": [308], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 16}}, {"id": 308, "type": "binary_expression", "text": "*cp == '-'", "parent": 307, "children": [309, 312, 313], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 15}}, {"id": 309, "type": "pointer_expression", "text": "*cp", "parent": 308, "children": [310, 311], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 8}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 6}}, {"id": 311, "type": "identifier", "text": "cp", "parent": 309, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 8}}, {"id": 312, "type": "==", "text": "==", "parent": 308, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 11}}, {"id": 313, "type": "char_literal", "text": "'-'", "parent": 308, "children": [314, 315, 316], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 15}}, {"id": 314, "type": "'", "text": "'", "parent": 313, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 13}}, {"id": 315, "type": "character", "text": "-", "parent": 313, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 316, "type": "'", "text": "'", "parent": 313, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 15}}, {"id": 317, "type": "switch_statement", "text": "switch (smatch (++cp, switches)) {\n\t\tcase AMBIGSW: \n\t\t ambigsw (cp, switches);\n\t\t done (1);\n\t\tcase UNKWNSW: \n\t\t adios (NULLCP, \"-%s unknown\", cp);\n\t\tcase HELPSW: \n\t\t (void) sprintf (buf, \"%s [+folder] [switches]\", invo_name);\n\t\t help (buf, switches);\n\t\t done (1);\n\n\t\tcase SEQSW: \n\t\t if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);\n\t\t if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);\n\t\t continue;\n\t\tcase PUBSW: \n\t\t publicsw = 1;\n\t\t continue;\n\t\tcase NPUBSW: \n\t\t publicsw = 0;\n\t\t continue;\n\t\tcase ZEROSW: \n\t\t zerosw++;\n\t\t continue;\n\t\tcase NZEROSW: \n\t\t zerosw = 0;\n\t\t continue;\n\n\t\tcase CRETSW: \n\t\t create++;\n\t\t continue;\n\t\tcase NCRETSW: \n\t\t create = 0;\n\t\t continue;\n\t }", "parent": 306, "children": [318, 319], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 130, "column": 6}}, {"id": 318, "type": "switch", "text": "switch", "parent": 317, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 11}}, {"id": 319, "type": "parenthesized_expression", "text": "(smatch (++cp, switches))", "parent": 317, "children": [320], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 37}}, {"id": 320, "type": "call_expression", "text": "smatch (++cp, switches)", "parent": 319, "children": [321, 322], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 36}}, {"id": 321, "type": "identifier", "text": "smatch", "parent": 320, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 19}}, {"id": 322, "type": "argument_list", "text": "(++cp, switches)", "parent": 320, "children": [323, 326], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 36}}, {"id": 323, "type": "update_expression", "text": "++cp", "parent": 322, "children": [324, 325], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 25}}, {"id": 324, "type": "++", "text": "++", "parent": 323, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 23}}, {"id": 325, "type": "identifier", "text": "cp", "parent": 323, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 25}}, {"id": 326, "type": "identifier", "text": "switches", "parent": 322, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 35}}, {"id": 327, "type": "case_statement", "text": "case AMBIGSW: \n\t\t ambigsw (cp, switches);\n\t\t done (1);", "parent": 317, "children": [328, 329], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 94, "column": 15}}, {"id": 328, "type": "case", "text": "case", "parent": 327, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 6}}, {"id": 329, "type": "identifier", "text": "AMBIGSW", "parent": 327, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 14}}, {"id": 330, "type": "call_expression", "text": "ambigsw (cp, switches)", "parent": 327, "children": [331, 332], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 28}}, {"id": 331, "type": "identifier", "text": "ambigsw", "parent": 330, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 13}}, {"id": 332, "type": "argument_list", "text": "(cp, switches)", "parent": 330, "children": [333, 334], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 28}}, {"id": 333, "type": "identifier", "text": "cp", "parent": 332, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 17}}, {"id": 334, "type": "identifier", "text": "switches", "parent": 332, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 27}}, {"id": 335, "type": "call_expression", "text": "done (1)", "parent": 327, "children": [336, 337], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 14}}, {"id": 336, "type": "identifier", "text": "done", "parent": 335, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 10}}, {"id": 337, "type": "argument_list", "text": "(1)", "parent": 335, "children": [338], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 14}}, {"id": 338, "type": "number_literal", "text": "1", "parent": 337, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 339, "type": "case_statement", "text": "case UNKWNSW: \n\t\t adios (NULLCP, \"-%s unknown\", cp);", "parent": 317, "children": [340, 341], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 96, "column": 40}}, {"id": 340, "type": "case", "text": "case", "parent": 339, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 341, "type": "identifier", "text": "UNKWNSW", "parent": 339, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 14}}, {"id": 342, "type": "call_expression", "text": "adios (NULLCP, \"-%s unknown\", cp)", "parent": 339, "children": [343, 344], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 39}}, {"id": 343, "type": "identifier", "text": "adios", "parent": 342, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 11}}, {"id": 344, "type": "argument_list", "text": "(NULLCP, \"-%s unknown\", cp)", "parent": 342, "children": [345, 346, 347], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 39}}, {"id": 345, "type": "identifier", "text": "NULLCP", "parent": 344, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 19}}, {"id": 346, "type": "string_literal", "text": "\"-%s unknown\"", "parent": 344, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 34}}, {"id": 347, "type": "identifier", "text": "cp", "parent": 344, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 38}}, {"id": 348, "type": "case_statement", "text": "case HELPSW: \n\t\t (void) sprintf (buf, \"%s [+folder] [switches]\", invo_name);\n\t\t help (buf, switches);\n\t\t done (1);", "parent": 317, "children": [349, 350], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 100, "column": 15}}, {"id": 349, "type": "case", "text": "case", "parent": 348, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 6}}, {"id": 350, "type": "identifier", "text": "HELPSW", "parent": 348, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 13}}, {"id": 351, "type": "cast_expression", "text": "(void) sprintf (buf, \"%s [+folder] [switches]\", invo_name)", "parent": 348, "children": [352, 354], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 64}}, {"id": 352, "type": "type_descriptor", "text": "void", "parent": 351, "children": [353], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 11}}, {"id": 353, "type": "primitive_type", "text": "void", "parent": 352, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 11}}, {"id": 354, "type": "call_expression", "text": "sprintf (buf, \"%s [+folder] [switches]\", invo_name)", "parent": 351, "children": [355, 356], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 64}}, {"id": 355, "type": "identifier", "text": "sprintf", "parent": 354, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 20}}, {"id": 356, "type": "argument_list", "text": "(buf, \"%s [+folder] [switches]\", invo_name)", "parent": 354, "children": [357, 358, 359], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 64}}, {"id": 357, "type": "identifier", "text": "buf", "parent": 356, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 25}}, {"id": 358, "type": "string_literal", "text": "\"%s [+folder] [switches]\"", "parent": 356, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 52}}, {"id": 359, "type": "identifier", "text": "invo_name", "parent": 356, "children": [], "start_point": {"row": 98, "column": 54}, "end_point": {"row": 98, "column": 63}}, {"id": 360, "type": "call_expression", "text": "help (buf, switches)", "parent": 348, "children": [361, 362], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 26}}, {"id": 361, "type": "identifier", "text": "help", "parent": 360, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 10}}, {"id": 362, "type": "argument_list", "text": "(buf, switches)", "parent": 360, "children": [363, 364], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 26}}, {"id": 363, "type": "identifier", "text": "buf", "parent": 362, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 15}}, {"id": 364, "type": "identifier", "text": "switches", "parent": 362, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 25}}, {"id": 365, "type": "call_expression", "text": "done (1)", "parent": 348, "children": [366, 367], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 14}}, {"id": 366, "type": "identifier", "text": "done", "parent": 365, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 10}}, {"id": 367, "type": "argument_list", "text": "(1)", "parent": 365, "children": [368], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 14}}, {"id": 368, "type": "number_literal", "text": "1", "parent": 367, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 13}}, {"id": 369, "type": "case_statement", "text": "case SEQSW: \n\t\t if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);\n\t\t if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);\n\t\t continue;", "parent": 317, "children": [370, 371, 372, 404, 425], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 110, "column": 15}}, {"id": 370, "type": "case", "text": "case", "parent": 369, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 6}}, {"id": 371, "type": "identifier", "text": "SEQSW", "parent": 369, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 12}}, {"id": 372, "type": "if_statement", "text": "if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);", "parent": 369, "children": [373], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 105, "column": 14}}, {"id": 373, "type": "parenthesized_expression", "text": "(!(cp = *argp++) || *cp == '-')", "parent": 372, "children": [374], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 40}}, {"id": 374, "type": "binary_expression", "text": "!(cp = *argp++) || *cp == '-'", "parent": 373, "children": [375, 386, 387], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 39}}, {"id": 375, "type": "unary_expression", "text": "!(cp = *argp++)", "parent": 374, "children": [376, 377], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 25}}, {"id": 376, "type": "!", "text": "!", "parent": 375, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 11}}, {"id": 377, "type": "parenthesized_expression", "text": "(cp = *argp++)", "parent": 375, "children": [378], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 25}}, {"id": 378, "type": "assignment_expression", "text": "cp = *argp++", "parent": 377, "children": [379, 380, 381], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 24}}, {"id": 379, "type": "identifier", "text": "cp", "parent": 378, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 14}}, {"id": 380, "type": "=", "text": "=", "parent": 378, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 381, "type": "pointer_expression", "text": "*argp++", "parent": 378, "children": [382, 383], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 24}}, {"id": 382, "type": "*", "text": "*", "parent": 381, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 383, "type": "update_expression", "text": "argp++", "parent": 381, "children": [384, 385], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 24}}, {"id": 384, "type": "identifier", "text": "argp", "parent": 383, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 22}}, {"id": 385, "type": "++", "text": "++", "parent": 383, "children": [], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 24}}, {"id": 386, "type": "||", "text": "||", "parent": 374, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 28}}, {"id": 387, "type": "binary_expression", "text": "*cp == '-'", "parent": 374, "children": [388, 391, 392], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 39}}, {"id": 388, "type": "pointer_expression", "text": "*cp", "parent": 387, "children": [389, 390], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 32}}, {"id": 389, "type": "*", "text": "*", "parent": 388, "children": [], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 30}}, {"id": 390, "type": "identifier", "text": "cp", "parent": 388, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 32}}, {"id": 391, "type": "==", "text": "==", "parent": 387, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 35}}, {"id": 392, "type": "char_literal", "text": "'-'", "parent": 387, "children": [393, 394, 395], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 39}}, {"id": 393, "type": "'", "text": "'", "parent": 392, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 37}}, {"id": 394, "type": "character", "text": "-", "parent": 392, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 38}}, {"id": 395, "type": "'", "text": "'", "parent": 392, "children": [], "start_point": {"row": 103, "column": 38}, "end_point": {"row": 103, "column": 39}}, {"id": 396, "type": "call_expression", "text": "adios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2])", "parent": 372, "children": [397, 398], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 105, "column": 13}}, {"id": 397, "type": "identifier", "text": "adios", "parent": 396, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 8}}, {"id": 398, "type": "argument_list", "text": "(NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2])", "parent": 396, "children": [399, 400, 401], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 105, "column": 13}}, {"id": 399, "type": "identifier", "text": "NULLCP", "parent": 398, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 16}}, {"id": 400, "type": "string_literal", "text": "\"missing argument name to %s\"", "parent": 398, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 47}}, {"id": 401, "type": "subscript_expression", "text": "argp[-2]", "parent": 398, "children": [402, 403], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 12}}, {"id": 402, "type": "identifier", "text": "argp", "parent": 401, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 8}}, {"id": 403, "type": "number_literal", "text": "-2", "parent": 401, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 404, "type": "if_statement", "text": "if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);", "parent": 369, "children": [405, 418], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 109, "column": 56}}, {"id": 405, "type": "parenthesized_expression", "text": "(seqp < NATTRS)", "parent": 404, "children": [406], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 24}}, {"id": 406, "type": "binary_expression", "text": "seqp < NATTRS", "parent": 405, "children": [407, 408, 409], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 23}}, {"id": 407, "type": "identifier", "text": "seqp", "parent": 406, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 14}}, {"id": 408, "type": "<", "text": "<", "parent": 406, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 16}}, {"id": 409, "type": "identifier", "text": "NATTRS", "parent": 406, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 23}}, {"id": 410, "type": "assignment_expression", "text": "seqs[seqp++] = cp", "parent": 404, "children": [411, 416, 417], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 20}}, {"id": 411, "type": "subscript_expression", "text": "seqs[seqp++]", "parent": 410, "children": [412, 413], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 15}}, {"id": 412, "type": "identifier", "text": "seqs", "parent": 411, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 7}}, {"id": 413, "type": "update_expression", "text": "seqp++", "parent": 411, "children": [414, 415], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 14}}, {"id": 414, "type": "identifier", "text": "seqp", "parent": 413, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 12}}, {"id": 415, "type": "++", "text": "++", "parent": 413, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 14}}, {"id": 416, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 17}}, {"id": 417, "type": "identifier", "text": "cp", "parent": 410, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 20}}, {"id": 418, "type": "else_clause", "text": "else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);", "parent": 404, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 109, "column": 56}}, {"id": 419, "type": "call_expression", "text": "adios (NULLCP, \"only %d sequences allowed!\", NATTRS)", "parent": 418, "children": [420, 421], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 55}}, {"id": 420, "type": "identifier", "text": "adios", "parent": 419, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 8}}, {"id": 421, "type": "argument_list", "text": "(NULLCP, \"only %d sequences allowed!\", NATTRS)", "parent": 419, "children": [422, 423, 424], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 55}}, {"id": 422, "type": "identifier", "text": "NULLCP", "parent": 421, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 16}}, {"id": 423, "type": "string_literal", "text": "\"only %d sequences allowed!\"", "parent": 421, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 46}}, {"id": 424, "type": "identifier", "text": "NATTRS", "parent": 421, "children": [], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 54}}, {"id": 425, "type": "continue_statement", "text": "continue;", "parent": 369, "children": [426], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 15}}, {"id": 426, "type": "continue", "text": "continue", "parent": 425, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 14}}, {"id": 427, "type": "case_statement", "text": "case PUBSW: \n\t\t publicsw = 1;\n\t\t continue;", "parent": 317, "children": [428, 429, 434], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 113, "column": 15}}, {"id": 428, "type": "case", "text": "case", "parent": 427, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 6}}, {"id": 429, "type": "identifier", "text": "PUBSW", "parent": 427, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 12}}, {"id": 430, "type": "assignment_expression", "text": "publicsw = 1", "parent": 427, "children": [431, 432, 433], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 18}}, {"id": 431, "type": "identifier", "text": "publicsw", "parent": 430, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 14}}, {"id": 432, "type": "=", "text": "=", "parent": 430, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 16}}, {"id": 433, "type": "number_literal", "text": "1", "parent": 430, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 18}}, {"id": 434, "type": "continue_statement", "text": "continue;", "parent": 427, "children": [435], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 15}}, {"id": 435, "type": "continue", "text": "continue", "parent": 434, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 14}}, {"id": 436, "type": "case_statement", "text": "case NPUBSW: \n\t\t publicsw = 0;\n\t\t continue;", "parent": 317, "children": [437, 438, 443], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 116, "column": 15}}, {"id": 437, "type": "case", "text": "case", "parent": 436, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 6}}, {"id": 438, "type": "identifier", "text": "NPUBSW", "parent": 436, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 13}}, {"id": 439, "type": "assignment_expression", "text": "publicsw = 0", "parent": 436, "children": [440, 441, 442], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 18}}, {"id": 440, "type": "identifier", "text": "publicsw", "parent": 439, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 14}}, {"id": 441, "type": "=", "text": "=", "parent": 439, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 16}}, {"id": 442, "type": "number_literal", "text": "0", "parent": 439, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 18}}, {"id": 443, "type": "continue_statement", "text": "continue;", "parent": 436, "children": [444], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 15}}, {"id": 444, "type": "continue", "text": "continue", "parent": 443, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 14}}, {"id": 445, "type": "case_statement", "text": "case ZEROSW: \n\t\t zerosw++;\n\t\t continue;", "parent": 317, "children": [446, 447, 451], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 119, "column": 15}}, {"id": 446, "type": "case", "text": "case", "parent": 445, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 6}}, {"id": 447, "type": "identifier", "text": "ZEROSW", "parent": 445, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 13}}, {"id": 448, "type": "update_expression", "text": "zerosw++", "parent": 445, "children": [449, 450], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 14}}, {"id": 449, "type": "identifier", "text": "zerosw", "parent": 448, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 12}}, {"id": 450, "type": "++", "text": "++", "parent": 448, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 14}}, {"id": 451, "type": "continue_statement", "text": "continue;", "parent": 445, "children": [452], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 15}}, {"id": 452, "type": "continue", "text": "continue", "parent": 451, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 14}}, {"id": 453, "type": "case_statement", "text": "case NZEROSW: \n\t\t zerosw = 0;\n\t\t continue;", "parent": 317, "children": [454, 455, 460], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 122, "column": 15}}, {"id": 454, "type": "case", "text": "case", "parent": 453, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 6}}, {"id": 455, "type": "identifier", "text": "NZEROSW", "parent": 453, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 14}}, {"id": 456, "type": "assignment_expression", "text": "zerosw = 0", "parent": 453, "children": [457, 458, 459], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 16}}, {"id": 457, "type": "identifier", "text": "zerosw", "parent": 456, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 12}}, {"id": 458, "type": "=", "text": "=", "parent": 456, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 14}}, {"id": 459, "type": "number_literal", "text": "0", "parent": 456, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 16}}, {"id": 460, "type": "continue_statement", "text": "continue;", "parent": 453, "children": [461], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 15}}, {"id": 461, "type": "continue", "text": "continue", "parent": 460, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 14}}, {"id": 462, "type": "case_statement", "text": "case CRETSW: \n\t\t create++;\n\t\t continue;", "parent": 317, "children": [463, 464, 468], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 126, "column": 15}}, {"id": 463, "type": "case", "text": "case", "parent": 462, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 6}}, {"id": 464, "type": "identifier", "text": "CRETSW", "parent": 462, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 13}}, {"id": 465, "type": "update_expression", "text": "create++", "parent": 462, "children": [466, 467], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 14}}, {"id": 466, "type": "identifier", "text": "create", "parent": 465, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 12}}, {"id": 467, "type": "++", "text": "++", "parent": 465, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 14}}, {"id": 468, "type": "continue_statement", "text": "continue;", "parent": 462, "children": [469], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 15}}, {"id": 469, "type": "continue", "text": "continue", "parent": 468, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 14}}, {"id": 470, "type": "case_statement", "text": "case NCRETSW: \n\t\t create = 0;\n\t\t continue;", "parent": 317, "children": [471, 472, 477], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 129, "column": 15}}, {"id": 471, "type": "case", "text": "case", "parent": 470, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 6}}, {"id": 472, "type": "identifier", "text": "NCRETSW", "parent": 470, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 14}}, {"id": 473, "type": "assignment_expression", "text": "create = 0", "parent": 470, "children": [474, 475, 476], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 16}}, {"id": 474, "type": "identifier", "text": "create", "parent": 473, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 12}}, {"id": 475, "type": "=", "text": "=", "parent": 473, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 14}}, {"id": 476, "type": "number_literal", "text": "0", "parent": 473, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 16}}, {"id": 477, "type": "continue_statement", "text": "continue;", "parent": 470, "children": [478], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 15}}, {"id": 478, "type": "continue", "text": "continue", "parent": 477, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 14}}, {"id": 479, "type": "if_statement", "text": "if (*cp == '+' || *cp == '@') {\n\t if (folder)\n\t\tadios (NULLCP, \"only one folder at a time!\");\n\t else\n\t\tfolder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n\t}\n\telse\n\t adios (NULLCP, \"usage: %s [+folder] [switches]\", invo_name);", "parent": 296, "children": [480, 533], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 138, "column": 65}}, {"id": 480, "type": "parenthesized_expression", "text": "(*cp == '+' || *cp == '@')", "parent": 479, "children": [481], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 30}}, {"id": 481, "type": "binary_expression", "text": "*cp == '+' || *cp == '@'", "parent": 480, "children": [482, 491, 492], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 29}}, {"id": 482, "type": "binary_expression", "text": "*cp == '+'", "parent": 481, "children": [483, 486, 487], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 15}}, {"id": 483, "type": "pointer_expression", "text": "*cp", "parent": 482, "children": [484, 485], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 8}}, {"id": 484, "type": "*", "text": "*", "parent": 483, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 6}}, {"id": 485, "type": "identifier", "text": "cp", "parent": 483, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 8}}, {"id": 486, "type": "==", "text": "==", "parent": 482, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 11}}, {"id": 487, "type": "char_literal", "text": "'+'", "parent": 482, "children": [488, 489, 490], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 15}}, {"id": 488, "type": "'", "text": "'", "parent": 487, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 13}}, {"id": 489, "type": "character", "text": "+", "parent": 487, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 14}}, {"id": 490, "type": "'", "text": "'", "parent": 487, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 15}}, {"id": 491, "type": "||", "text": "||", "parent": 481, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 18}}, {"id": 492, "type": "binary_expression", "text": "*cp == '@'", "parent": 481, "children": [493, 496, 497], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 29}}, {"id": 493, "type": "pointer_expression", "text": "*cp", "parent": 492, "children": [494, 495], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 22}}, {"id": 494, "type": "*", "text": "*", "parent": 493, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 20}}, {"id": 495, "type": "identifier", "text": "cp", "parent": 493, "children": [], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 22}}, {"id": 496, "type": "==", "text": "==", "parent": 492, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 25}}, {"id": 497, "type": "char_literal", "text": "'@'", "parent": 492, "children": [498, 499, 500], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 29}}, {"id": 498, "type": "'", "text": "'", "parent": 497, "children": [], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 27}}, {"id": 499, "type": "character", "text": "@", "parent": 497, "children": [], "start_point": {"row": 131, "column": 27}, "end_point": {"row": 131, "column": 28}}, {"id": 500, "type": "'", "text": "'", "parent": 497, "children": [], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 29}}, {"id": 501, "type": "if_statement", "text": "if (folder)\n\t\tadios (NULLCP, \"only one folder at a time!\");\n\t else\n\t\tfolder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);", "parent": 479, "children": [502, 509], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 135, "column": 57}}, {"id": 502, "type": "parenthesized_expression", "text": "(folder)", "parent": 501, "children": [503], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 16}}, {"id": 503, "type": "identifier", "text": "folder", "parent": 502, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 15}}, {"id": 504, "type": "call_expression", "text": "adios (NULLCP, \"only one folder at a time!\")", "parent": 501, "children": [505, 506], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 46}}, {"id": 505, "type": "identifier", "text": "adios", "parent": 504, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 7}}, {"id": 506, "type": "argument_list", "text": "(NULLCP, \"only one folder at a time!\")", "parent": 504, "children": [507, 508], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 46}}, {"id": 507, "type": "identifier", "text": "NULLCP", "parent": 506, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 15}}, {"id": 508, "type": "string_literal", "text": "\"only one folder at a time!\"", "parent": 506, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 45}}, {"id": 509, "type": "else_clause", "text": "else\n\t\tfolder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);", "parent": 501, "children": [], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 135, "column": 57}}, {"id": 510, "type": "assignment_expression", "text": "folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)", "parent": 509, "children": [511, 512, 513], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 56}}, {"id": 511, "type": "identifier", "text": "folder", "parent": 510, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 8}}, {"id": 512, "type": "=", "text": "=", "parent": 510, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 10}}, {"id": 513, "type": "call_expression", "text": "path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)", "parent": 510, "children": [514, 515], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 56}}, {"id": 514, "type": "identifier", "text": "path", "parent": 513, "children": [], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 15}}, {"id": 515, "type": "argument_list", "text": "(cp + 1, *cp == '+' ? TFOLDER : TSUBCWF)", "parent": 513, "children": [516, 520], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 56}}, {"id": 516, "type": "binary_expression", "text": "cp + 1", "parent": 515, "children": [517, 518, 519], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 23}}, {"id": 517, "type": "identifier", "text": "cp", "parent": 516, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 19}}, {"id": 518, "type": "+", "text": "+", "parent": 516, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 21}}, {"id": 519, "type": "number_literal", "text": "1", "parent": 516, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 23}}, {"id": 520, "type": "conditional_expression", "text": "*cp == '+' ? TFOLDER : TSUBCWF", "parent": 515, "children": [521, 530, 531, 532], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 55}}, {"id": 521, "type": "binary_expression", "text": "*cp == '+'", "parent": 520, "children": [522, 525, 526], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 35}}, {"id": 522, "type": "pointer_expression", "text": "*cp", "parent": 521, "children": [523, 524], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 28}}, {"id": 523, "type": "*", "text": "*", "parent": 522, "children": [], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 26}}, {"id": 524, "type": "identifier", "text": "cp", "parent": 522, "children": [], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 28}}, {"id": 525, "type": "==", "text": "==", "parent": 521, "children": [], "start_point": {"row": 135, "column": 29}, "end_point": {"row": 135, "column": 31}}, {"id": 526, "type": "char_literal", "text": "'+'", "parent": 521, "children": [527, 528, 529], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 35}}, {"id": 527, "type": "'", "text": "'", "parent": 526, "children": [], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 33}}, {"id": 528, "type": "character", "text": "+", "parent": 526, "children": [], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 34}}, {"id": 529, "type": "'", "text": "'", "parent": 526, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 35}}, {"id": 530, "type": "?", "text": "?", "parent": 520, "children": [], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 37}}, {"id": 531, "type": "identifier", "text": "TFOLDER", "parent": 520, "children": [], "start_point": {"row": 135, "column": 38}, "end_point": {"row": 135, "column": 45}}, {"id": 532, "type": "identifier", "text": "TSUBCWF", "parent": 520, "children": [], "start_point": {"row": 135, "column": 48}, "end_point": {"row": 135, "column": 55}}, {"id": 533, "type": "else_clause", "text": "else\n\t adios (NULLCP, \"usage: %s [+folder] [switches]\", invo_name);", "parent": 479, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 138, "column": 65}}, {"id": 534, "type": "call_expression", "text": "adios (NULLCP, \"usage: %s [+folder] [switches]\", invo_name)", "parent": 533, "children": [535, 536], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 64}}, {"id": 535, "type": "identifier", "text": "adios", "parent": 534, "children": [], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 10}}, {"id": 536, "type": "argument_list", "text": "(NULLCP, \"usage: %s [+folder] [switches]\", invo_name)", "parent": 534, "children": [537, 538, 539], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 64}}, {"id": 537, "type": "identifier", "text": "NULLCP", "parent": 536, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 18}}, {"id": 538, "type": "string_literal", "text": "\"usage: %s [+folder] [switches]\"", "parent": 536, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 52}}, {"id": 539, "type": "identifier", "text": "invo_name", "parent": 536, "children": [], "start_point": {"row": 138, "column": 54}, "end_point": {"row": 138, "column": 63}}, {"id": 540, "type": "if_statement", "text": "if (!m_find (\"path\"))\n\tfree (path (\"./\", TFOLDER));", "parent": null, "children": [541], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 144, "column": 29}}, {"id": 541, "type": "parenthesized_expression", "text": "(!m_find (\"path\"))", "parent": 540, "children": [542], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 25}}, {"id": 542, "type": "unary_expression", "text": "!m_find (\"path\")", "parent": 541, "children": [543, 544], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 24}}, {"id": 543, "type": "!", "text": "!", "parent": 542, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 9}}, {"id": 544, "type": "call_expression", "text": "m_find (\"path\")", "parent": 542, "children": [545, 546], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 24}}, {"id": 545, "type": "identifier", "text": "m_find", "parent": 544, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 15}}, {"id": 546, "type": "argument_list", "text": "(\"path\")", "parent": 544, "children": [547], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 24}}, {"id": 547, "type": "string_literal", "text": "\"path\"", "parent": 546, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 23}}, {"id": 548, "type": "call_expression", "text": "free (path (\"./\", TFOLDER))", "parent": 540, "children": [549, 550], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 28}}, {"id": 549, "type": "identifier", "text": "free", "parent": 548, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 5}}, {"id": 550, "type": "argument_list", "text": "(path (\"./\", TFOLDER))", "parent": 548, "children": [551], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 28}}, {"id": 551, "type": "call_expression", "text": "path (\"./\", TFOLDER)", "parent": 550, "children": [552, 553], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 27}}, {"id": 552, "type": "identifier", "text": "path", "parent": 551, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 11}}, {"id": 553, "type": "argument_list", "text": "(\"./\", TFOLDER)", "parent": 551, "children": [554, 555], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 27}}, {"id": 554, "type": "string_literal", "text": "\"./\"", "parent": 553, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 17}}, {"id": 555, "type": "identifier", "text": "TFOLDER", "parent": 553, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 26}}, {"id": 556, "type": "if_statement", "text": "if (!folder && !(folder = m_find (inbox)))\n\tfolder = defalt;", "parent": null, "children": [557], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 146, "column": 17}}, {"id": 557, "type": "parenthesized_expression", "text": "(!folder && !(folder = m_find (inbox)))", "parent": 556, "children": [558], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 46}}, {"id": 558, "type": "binary_expression", "text": "!folder && !(folder = m_find (inbox))", "parent": 557, "children": [559, 562, 563], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 45}}, {"id": 559, "type": "unary_expression", "text": "!folder", "parent": 558, "children": [560, 561], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 15}}, {"id": 560, "type": "!", "text": "!", "parent": 559, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 9}}, {"id": 561, "type": "identifier", "text": "folder", "parent": 559, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 15}}, {"id": 562, "type": "&&", "text": "&&", "parent": 558, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 18}}, {"id": 563, "type": "unary_expression", "text": "!(folder = m_find (inbox))", "parent": 558, "children": [564, 565], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 45}}, {"id": 564, "type": "!", "text": "!", "parent": 563, "children": [], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 20}}, {"id": 565, "type": "parenthesized_expression", "text": "(folder = m_find (inbox))", "parent": 563, "children": [566], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 45}}, {"id": 566, "type": "assignment_expression", "text": "folder = m_find (inbox)", "parent": 565, "children": [567, 568, 569], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 44}}, {"id": 567, "type": "identifier", "text": "folder", "parent": 566, "children": [], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 27}}, {"id": 568, "type": "=", "text": "=", "parent": 566, "children": [], "start_point": {"row": 145, "column": 28}, "end_point": {"row": 145, "column": 29}}, {"id": 569, "type": "call_expression", "text": "m_find (inbox)", "parent": 566, "children": [570, 571], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 145, "column": 44}}, {"id": 570, "type": "identifier", "text": "m_find", "parent": 569, "children": [], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 145, "column": 36}}, {"id": 571, "type": "argument_list", "text": "(inbox)", "parent": 569, "children": [572], "start_point": {"row": 145, "column": 37}, "end_point": {"row": 145, "column": 44}}, {"id": 572, "type": "identifier", "text": "inbox", "parent": 571, "children": [], "start_point": {"row": 145, "column": 38}, "end_point": {"row": 145, "column": 43}}, {"id": 573, "type": "assignment_expression", "text": "folder = defalt", "parent": 556, "children": [574, 575, 576], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 16}}, {"id": 574, "type": "identifier", "text": "folder", "parent": 573, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 7}}, {"id": 575, "type": "=", "text": "=", "parent": 573, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 9}}, {"id": 576, "type": "identifier", "text": "defalt", "parent": 573, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 16}}, {"id": 577, "type": "assignment_expression", "text": "maildir = m_maildir (folder)", "parent": null, "children": [578, 579, 580], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 32}}, {"id": 578, "type": "identifier", "text": "maildir", "parent": 577, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 11}}, {"id": 579, "type": "=", "text": "=", "parent": 577, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 13}}, {"id": 580, "type": "call_expression", "text": "m_maildir (folder)", "parent": 577, "children": [581, 582], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 32}}, {"id": 581, "type": "identifier", "text": "m_maildir", "parent": 580, "children": [], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 23}}, {"id": 582, "type": "argument_list", "text": "(folder)", "parent": 580, "children": [583], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 32}}, {"id": 583, "type": "identifier", "text": "folder", "parent": 582, "children": [], "start_point": {"row": 147, "column": 25}, "end_point": {"row": 147, "column": 31}}, {"id": 584, "type": "if_statement", "text": "if (stat (maildir, &st) == NOTOK) {\n\tif (errno != ENOENT)\n\t adios (maildir, \"error on folder\");\n\tif (!create)\n\t adios (NULLCP, \"folder %s doesn't exist\", maildir);\n\tif (!makedir (maildir))\n\t adios (NULLCP, \"unable to create folder %s\", maildir);\n }", "parent": null, "children": [585], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 156, "column": 5}}, {"id": 585, "type": "parenthesized_expression", "text": "(stat (maildir, &st) == NOTOK)", "parent": 584, "children": [586], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 37}}, {"id": 586, "type": "binary_expression", "text": "stat (maildir, &st) == NOTOK", "parent": 585, "children": [587, 593, 594], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 36}}, {"id": 587, "type": "call_expression", "text": "stat (maildir, &st)", "parent": 586, "children": [588, 589], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 27}}, {"id": 588, "type": "identifier", "text": "stat", "parent": 587, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 12}}, {"id": 589, "type": "argument_list", "text": "(maildir, &st)", "parent": 587, "children": [590, 591], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 27}}, {"id": 590, "type": "identifier", "text": "maildir", "parent": 589, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 21}}, {"id": 591, "type": "pointer_expression", "text": "&st", "parent": 589, "children": [592], "start_point": {"row": 149, "column": 23}, "end_point": {"row": 149, "column": 26}}, {"id": 592, "type": "identifier", "text": "st", "parent": 591, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 26}}, {"id": 593, "type": "==", "text": "==", "parent": 586, "children": [], "start_point": {"row": 149, "column": 28}, "end_point": {"row": 149, "column": 30}}, {"id": 594, "type": "identifier", "text": "NOTOK", "parent": 586, "children": [], "start_point": {"row": 149, "column": 31}, "end_point": {"row": 149, "column": 36}}, {"id": 595, "type": "if_statement", "text": "if (errno != ENOENT)\n\t adios (maildir, \"error on folder\");", "parent": 584, "children": [596], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 151, "column": 40}}, {"id": 596, "type": "parenthesized_expression", "text": "(errno != ENOENT)", "parent": 595, "children": [597], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 21}}, {"id": 597, "type": "binary_expression", "text": "errno != ENOENT", "parent": 596, "children": [598, 599, 600], "start_point": {"row": 150, "column": 5}, "end_point": {"row": 150, "column": 20}}, {"id": 598, "type": "identifier", "text": "errno", "parent": 597, "children": [], "start_point": {"row": 150, "column": 5}, "end_point": {"row": 150, "column": 10}}, {"id": 599, "type": "!=", "text": "!=", "parent": 597, "children": [], "start_point": {"row": 150, "column": 11}, "end_point": {"row": 150, "column": 13}}, {"id": 600, "type": "identifier", "text": "ENOENT", "parent": 597, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 20}}, {"id": 601, "type": "call_expression", "text": "adios (maildir, \"error on folder\")", "parent": 595, "children": [602, 603], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 39}}, {"id": 602, "type": "identifier", "text": "adios", "parent": 601, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 10}}, {"id": 603, "type": "argument_list", "text": "(maildir, \"error on folder\")", "parent": 601, "children": [604, 605], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 39}}, {"id": 604, "type": "identifier", "text": "maildir", "parent": 603, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 19}}, {"id": 605, "type": "string_literal", "text": "\"error on folder\"", "parent": 603, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 38}}, {"id": 606, "type": "if_statement", "text": "if (!create)\n\t adios (NULLCP, \"folder %s doesn't exist\", maildir);", "parent": 584, "children": [607], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 153, "column": 56}}, {"id": 607, "type": "parenthesized_expression", "text": "(!create)", "parent": 606, "children": [608], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 13}}, {"id": 608, "type": "unary_expression", "text": "!create", "parent": 607, "children": [609, 610], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 12}}, {"id": 609, "type": "!", "text": "!", "parent": 608, "children": [], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 6}}, {"id": 610, "type": "identifier", "text": "create", "parent": 608, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 12}}, {"id": 611, "type": "call_expression", "text": "adios (NULLCP, \"folder %s doesn't exist\", maildir)", "parent": 606, "children": [612, 613], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 55}}, {"id": 612, "type": "identifier", "text": "adios", "parent": 611, "children": [], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 10}}, {"id": 613, "type": "argument_list", "text": "(NULLCP, \"folder %s doesn't exist\", maildir)", "parent": 611, "children": [614, 615, 616], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 55}}, {"id": 614, "type": "identifier", "text": "NULLCP", "parent": 613, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 18}}, {"id": 615, "type": "string_literal", "text": "\"folder %s doesn't exist\"", "parent": 613, "children": [], "start_point": {"row": 153, "column": 20}, "end_point": {"row": 153, "column": 45}}, {"id": 616, "type": "identifier", "text": "maildir", "parent": 613, "children": [], "start_point": {"row": 153, "column": 47}, "end_point": {"row": 153, "column": 54}}, {"id": 617, "type": "if_statement", "text": "if (!makedir (maildir))\n\t adios (NULLCP, \"unable to create folder %s\", maildir);", "parent": 584, "children": [618], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 155, "column": 59}}, {"id": 618, "type": "parenthesized_expression", "text": "(!makedir (maildir))", "parent": 617, "children": [619], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 24}}, {"id": 619, "type": "unary_expression", "text": "!makedir (maildir)", "parent": 618, "children": [620, 621], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 23}}, {"id": 620, "type": "!", "text": "!", "parent": 619, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 6}}, {"id": 621, "type": "call_expression", "text": "makedir (maildir)", "parent": 619, "children": [622, 623], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 23}}, {"id": 622, "type": "identifier", "text": "makedir", "parent": 621, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 13}}, {"id": 623, "type": "argument_list", "text": "(maildir)", "parent": 621, "children": [624], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 23}}, {"id": 624, "type": "identifier", "text": "maildir", "parent": 623, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 22}}, {"id": 625, "type": "call_expression", "text": "adios (NULLCP, \"unable to create folder %s\", maildir)", "parent": 617, "children": [626, 627], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 58}}, {"id": 626, "type": "identifier", "text": "adios", "parent": 625, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 10}}, {"id": 627, "type": "argument_list", "text": "(NULLCP, \"unable to create folder %s\", maildir)", "parent": 625, "children": [628, 629, 630], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 58}}, {"id": 628, "type": "identifier", "text": "NULLCP", "parent": 627, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 18}}, {"id": 629, "type": "string_literal", "text": "\"unable to create folder %s\"", "parent": 627, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 48}}, {"id": 630, "type": "identifier", "text": "maildir", "parent": 627, "children": [], "start_point": {"row": 155, "column": 50}, "end_point": {"row": 155, "column": 57}}, {"id": 631, "type": "if_statement", "text": "if (chdir (maildir) == NOTOK)\n\tadios (maildir, \"unable to change directory to\");", "parent": null, "children": [632], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 159, "column": 50}}, {"id": 632, "type": "parenthesized_expression", "text": "(chdir (maildir) == NOTOK)", "parent": 631, "children": [633], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 33}}, {"id": 633, "type": "binary_expression", "text": "chdir (maildir) == NOTOK", "parent": 632, "children": [634, 638, 639], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 32}}, {"id": 634, "type": "call_expression", "text": "chdir (maildir)", "parent": 633, "children": [635, 636], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 23}}, {"id": 635, "type": "identifier", "text": "chdir", "parent": 634, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 13}}, {"id": 636, "type": "argument_list", "text": "(maildir)", "parent": 634, "children": [637], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 23}}, {"id": 637, "type": "identifier", "text": "maildir", "parent": 636, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 22}}, {"id": 638, "type": "==", "text": "==", "parent": 633, "children": [], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 26}}, {"id": 639, "type": "identifier", "text": "NOTOK", "parent": 633, "children": [], "start_point": {"row": 158, "column": 27}, "end_point": {"row": 158, "column": 32}}, {"id": 640, "type": "call_expression", "text": "adios (maildir, \"unable to change directory to\")", "parent": 631, "children": [641, 642], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 49}}, {"id": 641, "type": "identifier", "text": "adios", "parent": 640, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 6}}, {"id": 642, "type": "argument_list", "text": "(maildir, \"unable to change directory to\")", "parent": 640, "children": [643, 644], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 49}}, {"id": 643, "type": "identifier", "text": "maildir", "parent": 642, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 15}}, {"id": 644, "type": "string_literal", "text": "\"unable to change directory to\"", "parent": 642, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 48}}, {"id": 645, "type": "if_statement", "text": "if (!(mp = m_gmsg (folder)))\n\tadios (NULLCP, \"unable to read folder %s\", folder);", "parent": null, "children": [646], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 161, "column": 52}}, {"id": 646, "type": "parenthesized_expression", "text": "(!(mp = m_gmsg (folder)))", "parent": 645, "children": [647], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 32}}, {"id": 647, "type": "unary_expression", "text": "!(mp = m_gmsg (folder))", "parent": 646, "children": [648, 649], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 31}}, {"id": 648, "type": "!", "text": "!", "parent": 647, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 9}}, {"id": 649, "type": "parenthesized_expression", "text": "(mp = m_gmsg (folder))", "parent": 647, "children": [650], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 31}}, {"id": 650, "type": "assignment_expression", "text": "mp = m_gmsg (folder)", "parent": 649, "children": [651, 652, 653], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 30}}, {"id": 651, "type": "identifier", "text": "mp", "parent": 650, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 12}}, {"id": 652, "type": "=", "text": "=", "parent": 650, "children": [], "start_point": {"row": 160, "column": 13}, "end_point": {"row": 160, "column": 14}}, {"id": 653, "type": "call_expression", "text": "m_gmsg (folder)", "parent": 650, "children": [654, 655], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 30}}, {"id": 654, "type": "identifier", "text": "m_gmsg", "parent": 653, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 21}}, {"id": 655, "type": "argument_list", "text": "(folder)", "parent": 653, "children": [656], "start_point": {"row": 160, "column": 22}, "end_point": {"row": 160, "column": 30}}, {"id": 656, "type": "identifier", "text": "folder", "parent": 655, "children": [], "start_point": {"row": 160, "column": 23}, "end_point": {"row": 160, "column": 29}}, {"id": 657, "type": "call_expression", "text": "adios (NULLCP, \"unable to read folder %s\", folder)", "parent": 645, "children": [658, 659], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 51}}, {"id": 658, "type": "identifier", "text": "adios", "parent": 657, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 6}}, {"id": 659, "type": "argument_list", "text": "(NULLCP, \"unable to read folder %s\", folder)", "parent": 657, "children": [660, 661, 662], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 51}}, {"id": 660, "type": "identifier", "text": "NULLCP", "parent": 659, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 14}}, {"id": 661, "type": "string_literal", "text": "\"unable to read folder %s\"", "parent": 659, "children": [], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 42}}, {"id": 662, "type": "identifier", "text": "folder", "parent": 659, "children": [], "start_point": {"row": 161, "column": 44}, "end_point": {"row": 161, "column": 50}}, {"id": 663, "type": "cast_expression", "text": "(void) signal (SIGHUP, SIG_IGN)", "parent": null, "children": [664, 666], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 35}}, {"id": 664, "type": "type_descriptor", "text": "void", "parent": 663, "children": [665], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 9}}, {"id": 665, "type": "primitive_type", "text": "void", "parent": 664, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 9}}, {"id": 666, "type": "call_expression", "text": "signal (SIGHUP, SIG_IGN)", "parent": 663, "children": [667, 668], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 35}}, {"id": 667, "type": "identifier", "text": "signal", "parent": 666, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 17}}, {"id": 668, "type": "argument_list", "text": "(SIGHUP, SIG_IGN)", "parent": 666, "children": [669, 670], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 35}}, {"id": 669, "type": "identifier", "text": "SIGHUP", "parent": 668, "children": [], "start_point": {"row": 163, "column": 19}, "end_point": {"row": 163, "column": 25}}, {"id": 670, "type": "identifier", "text": "SIG_IGN", "parent": 668, "children": [], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 34}}, {"id": 671, "type": "cast_expression", "text": "(void) signal (SIGINT, SIG_IGN)", "parent": null, "children": [672, 674], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 35}}, {"id": 672, "type": "type_descriptor", "text": "void", "parent": 671, "children": [673], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 9}}, {"id": 673, "type": "primitive_type", "text": "void", "parent": 672, "children": [], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 9}}, {"id": 674, "type": "call_expression", "text": "signal (SIGINT, SIG_IGN)", "parent": 671, "children": [675, 676], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 35}}, {"id": 675, "type": "identifier", "text": "signal", "parent": 674, "children": [], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 17}}, {"id": 676, "type": "argument_list", "text": "(SIGINT, SIG_IGN)", "parent": 674, "children": [677, 678], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 35}}, {"id": 677, "type": "identifier", "text": "SIGINT", "parent": 676, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 25}}, {"id": 678, "type": "identifier", "text": "SIG_IGN", "parent": 676, "children": [], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 34}}, {"id": 679, "type": "cast_expression", "text": "(void) signal (SIGQUIT, SIG_IGN)", "parent": null, "children": [680, 682], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 36}}, {"id": 680, "type": "type_descriptor", "text": "void", "parent": 679, "children": [681], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 9}}, {"id": 681, "type": "primitive_type", "text": "void", "parent": 680, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 9}}, {"id": 682, "type": "call_expression", "text": "signal (SIGQUIT, SIG_IGN)", "parent": 679, "children": [683, 684], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 36}}, {"id": 683, "type": "identifier", "text": "signal", "parent": 682, "children": [], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 17}}, {"id": 684, "type": "argument_list", "text": "(SIGQUIT, SIG_IGN)", "parent": 682, "children": [685, 686], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 36}}, {"id": 685, "type": "identifier", "text": "SIGQUIT", "parent": 684, "children": [], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 26}}, {"id": 686, "type": "identifier", "text": "SIG_IGN", "parent": 684, "children": [], "start_point": {"row": 165, "column": 28}, "end_point": {"row": 165, "column": 35}}, {"id": 687, "type": "cast_expression", "text": "(void) signal (SIGTERM, SIG_IGN)", "parent": null, "children": [688, 690], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 36}}, {"id": 688, "type": "type_descriptor", "text": "void", "parent": 687, "children": [689], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 9}}, {"id": 689, "type": "primitive_type", "text": "void", "parent": 688, "children": [], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 9}}, {"id": 690, "type": "call_expression", "text": "signal (SIGTERM, SIG_IGN)", "parent": 687, "children": [691, 692], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 36}}, {"id": 691, "type": "identifier", "text": "signal", "parent": 690, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 17}}, {"id": 692, "type": "argument_list", "text": "(SIGTERM, SIG_IGN)", "parent": 690, "children": [693, 694], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 36}}, {"id": 693, "type": "identifier", "text": "SIGTERM", "parent": 692, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 26}}, {"id": 694, "type": "identifier", "text": "SIG_IGN", "parent": 692, "children": [], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 35}}, {"id": 695, "type": "if_statement", "text": "if ((fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ()))\n\t == NOTOK)\n\tadios (tmpfilenam, \"unable to create\");", "parent": null, "children": [696], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 172, "column": 40}}, {"id": 696, "type": "parenthesized_expression", "text": "((fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ()))\n\t == NOTOK)", "parent": 695, "children": [697], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 171, "column": 14}}, {"id": 697, "type": "binary_expression", "text": "(fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ()))\n\t == NOTOK", "parent": 696, "children": [698, 716, 717], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 171, "column": 13}}, {"id": 698, "type": "parenthesized_expression", "text": "(fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ()))", "parent": 697, "children": [699], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 74}}, {"id": 699, "type": "assignment_expression", "text": "fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ())", "parent": 698, "children": [700, 701, 702], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 73}}, {"id": 700, "type": "identifier", "text": "fd", "parent": 699, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 11}}, {"id": 701, "type": "=", "text": "=", "parent": 699, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 13}}, {"id": 702, "type": "call_expression", "text": "creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ())", "parent": 699, "children": [703, 704], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 73}}, {"id": 703, "type": "identifier", "text": "creat", "parent": 702, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 19}}, {"id": 704, "type": "argument_list", "text": "(tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ())", "parent": 702, "children": [705, 713], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 73}}, {"id": 705, "type": "assignment_expression", "text": "tmpfilenam = m_scratch (\"\", invo_name)", "parent": 704, "children": [706, 707, 708], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 59}}, {"id": 706, "type": "identifier", "text": "tmpfilenam", "parent": 705, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 31}}, {"id": 707, "type": "=", "text": "=", "parent": 705, "children": [], "start_point": {"row": 170, "column": 32}, "end_point": {"row": 170, "column": 33}}, {"id": 708, "type": "call_expression", "text": "m_scratch (\"\", invo_name)", "parent": 705, "children": [709, 710], "start_point": {"row": 170, "column": 34}, "end_point": {"row": 170, "column": 59}}, {"id": 709, "type": "identifier", "text": "m_scratch", "parent": 708, "children": [], "start_point": {"row": 170, "column": 34}, "end_point": {"row": 170, "column": 43}}, {"id": 710, "type": "argument_list", "text": "(\"\", invo_name)", "parent": 708, "children": [711, 712], "start_point": {"row": 170, "column": 44}, "end_point": {"row": 170, "column": 59}}, {"id": 711, "type": "string_literal", "text": "\"\"", "parent": 710, "children": [], "start_point": {"row": 170, "column": 45}, "end_point": {"row": 170, "column": 47}}, {"id": 712, "type": "identifier", "text": "invo_name", "parent": 710, "children": [], "start_point": {"row": 170, "column": 49}, "end_point": {"row": 170, "column": 58}}, {"id": 713, "type": "call_expression", "text": "m_gmprot ()", "parent": 704, "children": [714, 715], "start_point": {"row": 170, "column": 61}, "end_point": {"row": 170, "column": 72}}, {"id": 714, "type": "identifier", "text": "m_gmprot", "parent": 713, "children": [], "start_point": {"row": 170, "column": 61}, "end_point": {"row": 170, "column": 69}}, {"id": 715, "type": "argument_list", "text": "()", "parent": 713, "children": [], "start_point": {"row": 170, "column": 70}, "end_point": {"row": 170, "column": 72}}, {"id": 716, "type": "==", "text": "==", "parent": 697, "children": [], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 7}}, {"id": 717, "type": "identifier", "text": "NOTOK", "parent": 697, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 13}}, {"id": 718, "type": "call_expression", "text": "adios (tmpfilenam, \"unable to create\")", "parent": 695, "children": [719, 720], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 39}}, {"id": 719, "type": "identifier", "text": "adios", "parent": 718, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 6}}, {"id": 720, "type": "argument_list", "text": "(tmpfilenam, \"unable to create\")", "parent": 718, "children": [721, 722], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 39}}, {"id": 721, "type": "identifier", "text": "tmpfilenam", "parent": 720, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 18}}, {"id": 722, "type": "string_literal", "text": "\"unable to create\"", "parent": 720, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 38}}, {"id": 723, "type": "cast_expression", "text": "(void) chmod (tmpfilenam, m_gmprot ())", "parent": null, "children": [724, 726], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 42}}, {"id": 724, "type": "type_descriptor", "text": "void", "parent": 723, "children": [725], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 9}}, {"id": 725, "type": "primitive_type", "text": "void", "parent": 724, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 9}}, {"id": 726, "type": "call_expression", "text": "chmod (tmpfilenam, m_gmprot ())", "parent": 723, "children": [727, 728], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 42}}, {"id": 727, "type": "identifier", "text": "chmod", "parent": 726, "children": [], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 16}}, {"id": 728, "type": "argument_list", "text": "(tmpfilenam, m_gmprot ())", "parent": 726, "children": [729, 730], "start_point": {"row": 173, "column": 17}, "end_point": {"row": 173, "column": 42}}, {"id": 729, "type": "identifier", "text": "tmpfilenam", "parent": 728, "children": [], "start_point": {"row": 173, "column": 18}, "end_point": {"row": 173, "column": 28}}, {"id": 730, "type": "call_expression", "text": "m_gmprot ()", "parent": 728, "children": [731, 732], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 41}}, {"id": 731, "type": "identifier", "text": "m_gmprot", "parent": 730, "children": [], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 38}}, {"id": 732, "type": "argument_list", "text": "()", "parent": 730, "children": [], "start_point": {"row": 173, "column": 39}, "end_point": {"row": 173, "column": 41}}, {"id": 733, "type": "call_expression", "text": "cpydata (fileno (stdin), fd, \"standard input\", tmpfilenam)", "parent": null, "children": [734, 735], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 62}}, {"id": 734, "type": "identifier", "text": "cpydata", "parent": 733, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 11}}, {"id": 735, "type": "argument_list", "text": "(fileno (stdin), fd, \"standard input\", tmpfilenam)", "parent": 733, "children": [736, 740, 741, 742], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 62}}, {"id": 736, "type": "call_expression", "text": "fileno (stdin)", "parent": 735, "children": [737, 738], "start_point": {"row": 175, "column": 13}, "end_point": {"row": 175, "column": 27}}, {"id": 737, "type": "identifier", "text": "fileno", "parent": 736, "children": [], "start_point": {"row": 175, "column": 13}, "end_point": {"row": 175, "column": 19}}, {"id": 738, "type": "argument_list", "text": "(stdin)", "parent": 736, "children": [739], "start_point": {"row": 175, "column": 20}, "end_point": {"row": 175, "column": 27}}, {"id": 739, "type": "identifier", "text": "stdin", "parent": 738, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 26}}, {"id": 740, "type": "identifier", "text": "fd", "parent": 735, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 31}}, {"id": 741, "type": "string_literal", "text": "\"standard input\"", "parent": 735, "children": [], "start_point": {"row": 175, "column": 33}, "end_point": {"row": 175, "column": 49}}, {"id": 742, "type": "identifier", "text": "tmpfilenam", "parent": 735, "children": [], "start_point": {"row": 175, "column": 51}, "end_point": {"row": 175, "column": 61}}, {"id": 743, "type": "if_statement", "text": "if (fstat (fd, &st) == NOTOK) {\n\t(void) unlink (tmpfilenam);\n\tadios (tmpfilenam, \"unable to fstat\");\n }", "parent": null, "children": [744], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 180, "column": 5}}, {"id": 744, "type": "parenthesized_expression", "text": "(fstat (fd, &st) == NOTOK)", "parent": 743, "children": [745], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 33}}, {"id": 745, "type": "binary_expression", "text": "fstat (fd, &st) == NOTOK", "parent": 744, "children": [746, 752, 753], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 32}}, {"id": 746, "type": "call_expression", "text": "fstat (fd, &st)", "parent": 745, "children": [747, 748], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 23}}, {"id": 747, "type": "identifier", "text": "fstat", "parent": 746, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 13}}, {"id": 748, "type": "argument_list", "text": "(fd, &st)", "parent": 746, "children": [749, 750], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 23}}, {"id": 749, "type": "identifier", "text": "fd", "parent": 748, "children": [], "start_point": {"row": 177, "column": 15}, "end_point": {"row": 177, "column": 17}}, {"id": 750, "type": "pointer_expression", "text": "&st", "parent": 748, "children": [751], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 22}}, {"id": 751, "type": "identifier", "text": "st", "parent": 750, "children": [], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 22}}, {"id": 752, "type": "==", "text": "==", "parent": 745, "children": [], "start_point": {"row": 177, "column": 24}, "end_point": {"row": 177, "column": 26}}, {"id": 753, "type": "identifier", "text": "NOTOK", "parent": 745, "children": [], "start_point": {"row": 177, "column": 27}, "end_point": {"row": 177, "column": 32}}, {"id": 754, "type": "cast_expression", "text": "(void) unlink (tmpfilenam)", "parent": 743, "children": [755, 757], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 27}}, {"id": 755, "type": "type_descriptor", "text": "void", "parent": 754, "children": [756], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 6}}, {"id": 756, "type": "primitive_type", "text": "void", "parent": 755, "children": [], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 6}}, {"id": 757, "type": "call_expression", "text": "unlink (tmpfilenam)", "parent": 754, "children": [758, 759], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 27}}, {"id": 758, "type": "identifier", "text": "unlink", "parent": 757, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 14}}, {"id": 759, "type": "argument_list", "text": "(tmpfilenam)", "parent": 757, "children": [760], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 27}}, {"id": 760, "type": "identifier", "text": "tmpfilenam", "parent": 759, "children": [], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 26}}, {"id": 761, "type": "call_expression", "text": "adios (tmpfilenam, \"unable to fstat\")", "parent": 743, "children": [762, 763], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 38}}, {"id": 762, "type": "identifier", "text": "adios", "parent": 761, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 6}}, {"id": 763, "type": "argument_list", "text": "(tmpfilenam, \"unable to fstat\")", "parent": 761, "children": [764, 765], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 38}}, {"id": 764, "type": "identifier", "text": "tmpfilenam", "parent": 763, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 18}}, {"id": 765, "type": "string_literal", "text": "\"unable to fstat\"", "parent": 763, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 37}}, {"id": 766, "type": "if_statement", "text": "if (close (fd) == NOTOK)\n\tadios (tmpfilenam, \"error closing\");", "parent": null, "children": [767], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 182, "column": 37}}, {"id": 767, "type": "parenthesized_expression", "text": "(close (fd) == NOTOK)", "parent": 766, "children": [768], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 28}}, {"id": 768, "type": "binary_expression", "text": "close (fd) == NOTOK", "parent": 767, "children": [769, 773, 774], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 27}}, {"id": 769, "type": "call_expression", "text": "close (fd)", "parent": 768, "children": [770, 771], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 18}}, {"id": 770, "type": "identifier", "text": "close", "parent": 769, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 13}}, {"id": 771, "type": "argument_list", "text": "(fd)", "parent": 769, "children": [772], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 18}}, {"id": 772, "type": "identifier", "text": "fd", "parent": 771, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 17}}, {"id": 773, "type": "==", "text": "==", "parent": 768, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 21}}, {"id": 774, "type": "identifier", "text": "NOTOK", "parent": 768, "children": [], "start_point": {"row": 181, "column": 22}, "end_point": {"row": 181, "column": 27}}, {"id": 775, "type": "call_expression", "text": "adios (tmpfilenam, \"error closing\")", "parent": 766, "children": [776, 777], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 36}}, {"id": 776, "type": "identifier", "text": "adios", "parent": 775, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 6}}, {"id": 777, "type": "argument_list", "text": "(tmpfilenam, \"error closing\")", "parent": 775, "children": [778, 779], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 36}}, {"id": 778, "type": "identifier", "text": "tmpfilenam", "parent": 777, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 18}}, {"id": 779, "type": "string_literal", "text": "\"error closing\"", "parent": 777, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 35}}, {"id": 780, "type": "if_statement", "text": "if (st.st_size == 0) {\n\t(void) unlink (tmpfilenam);\n\tadvise (NULLCP, \"empty file\");\n\tdone (0);\n }", "parent": null, "children": [781], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 187, "column": 5}}, {"id": 781, "type": "parenthesized_expression", "text": "(st.st_size == 0)", "parent": 780, "children": [782], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 24}}, {"id": 782, "type": "binary_expression", "text": "st.st_size == 0", "parent": 781, "children": [783, 786, 787], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 23}}, {"id": 783, "type": "field_expression", "text": "st.st_size", "parent": 782, "children": [784, 785], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 18}}, {"id": 784, "type": "identifier", "text": "st", "parent": 783, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 10}}, {"id": 785, "type": "field_identifier", "text": "st_size", "parent": 783, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 18}}, {"id": 786, "type": "==", "text": "==", "parent": 782, "children": [], "start_point": {"row": 183, "column": 19}, "end_point": {"row": 183, "column": 21}}, {"id": 787, "type": "number_literal", "text": "0", "parent": 782, "children": [], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 23}}, {"id": 788, "type": "cast_expression", "text": "(void) unlink (tmpfilenam)", "parent": 780, "children": [789, 791], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 27}}, {"id": 789, "type": "type_descriptor", "text": "void", "parent": 788, "children": [790], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 6}}, {"id": 790, "type": "primitive_type", "text": "void", "parent": 789, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 6}}, {"id": 791, "type": "call_expression", "text": "unlink (tmpfilenam)", "parent": 788, "children": [792, 793], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 27}}, {"id": 792, "type": "identifier", "text": "unlink", "parent": 791, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 14}}, {"id": 793, "type": "argument_list", "text": "(tmpfilenam)", "parent": 791, "children": [794], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 27}}, {"id": 794, "type": "identifier", "text": "tmpfilenam", "parent": 793, "children": [], "start_point": {"row": 184, "column": 16}, "end_point": {"row": 184, "column": 26}}, {"id": 795, "type": "call_expression", "text": "advise (NULLCP, \"empty file\")", "parent": 780, "children": [796, 797], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 30}}, {"id": 796, "type": "identifier", "text": "advise", "parent": 795, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 7}}, {"id": 797, "type": "argument_list", "text": "(NULLCP, \"empty file\")", "parent": 795, "children": [798, 799], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 30}}, {"id": 798, "type": "identifier", "text": "NULLCP", "parent": 797, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 15}}, {"id": 799, "type": "string_literal", "text": "\"empty file\"", "parent": 797, "children": [], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 29}}, {"id": 800, "type": "call_expression", "text": "done (0)", "parent": 780, "children": [801, 802], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 9}}, {"id": 801, "type": "identifier", "text": "done", "parent": 800, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 5}}, {"id": 802, "type": "argument_list", "text": "(0)", "parent": 800, "children": [803], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 186, "column": 9}}, {"id": 803, "type": "number_literal", "text": "0", "parent": 802, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 8}}, {"id": 804, "type": "assignment_expression", "text": "msgnum = mp -> hghmsg", "parent": null, "children": [805, 806, 807], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 25}}, {"id": 805, "type": "identifier", "text": "msgnum", "parent": 804, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 10}}, {"id": 806, "type": "=", "text": "=", "parent": 804, "children": [], "start_point": {"row": 189, "column": 11}, "end_point": {"row": 189, "column": 12}}, {"id": 807, "type": "field_expression", "text": "mp -> hghmsg", "parent": 804, "children": [808, 809], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 25}}, {"id": 808, "type": "identifier", "text": "mp", "parent": 807, "children": [], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 15}}, {"id": 809, "type": "field_identifier", "text": "hghmsg", "parent": 807, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 25}}, {"id": 810, "type": "do_statement", "text": "do {\n\tmsgnum++, mp -> hghmsg++;\n\tif (msgnum > mp -> hghoff)\n\t if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n\t\tadios (NULLCP, \"unable to allocate folder storage\");\n\n\tmp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n\terrno = 0;\n } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST);", "parent": null, "children": [868], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 198, "column": 77}}, {"id": 811, "type": "comma_expression", "text": "msgnum++, mp -> hghmsg++", "parent": 810, "children": [812, 815], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 25}}, {"id": 812, "type": "update_expression", "text": "msgnum++", "parent": 811, "children": [813, 814], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 9}}, {"id": 813, "type": "identifier", "text": "msgnum", "parent": 812, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 7}}, {"id": 814, "type": "++", "text": "++", "parent": 812, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 9}}, {"id": 815, "type": "update_expression", "text": "mp -> hghmsg++", "parent": 811, "children": [816, 819], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 25}}, {"id": 816, "type": "field_expression", "text": "mp -> hghmsg", "parent": 815, "children": [817, 818], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 23}}, {"id": 817, "type": "identifier", "text": "mp", "parent": 816, "children": [], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 13}}, {"id": 818, "type": "field_identifier", "text": "hghmsg", "parent": 816, "children": [], "start_point": {"row": 191, "column": 17}, "end_point": {"row": 191, "column": 23}}, {"id": 819, "type": "++", "text": "++", "parent": 815, "children": [], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 25}}, {"id": 820, "type": "if_statement", "text": "if (msgnum > mp -> hghoff)\n\t if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n\t\tadios (NULLCP, \"unable to allocate folder storage\");", "parent": 810, "children": [821, 828], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 194, "column": 54}}, {"id": 821, "type": "parenthesized_expression", "text": "(msgnum > mp -> hghoff)", "parent": 820, "children": [822], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 27}}, {"id": 822, "type": "binary_expression", "text": "msgnum > mp -> hghoff", "parent": 821, "children": [823, 824, 825], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 26}}, {"id": 823, "type": "identifier", "text": "msgnum", "parent": 822, "children": [], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 11}}, {"id": 824, "type": ">", "text": ">", "parent": 822, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 13}}, {"id": 825, "type": "field_expression", "text": "mp -> hghoff", "parent": 822, "children": [826, 827], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 26}}, {"id": 826, "type": "identifier", "text": "mp", "parent": 825, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 16}}, {"id": 827, "type": "field_identifier", "text": "hghoff", "parent": 825, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 26}}, {"id": 828, "type": "if_statement", "text": "if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n\t\tadios (NULLCP, \"unable to allocate folder storage\");", "parent": 820, "children": [829], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 194, "column": 54}}, {"id": 829, "type": "parenthesized_expression", "text": "((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)", "parent": 828, "children": [830], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 66}}, {"id": 830, "type": "binary_expression", "text": "(mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL", "parent": 829, "children": [831, 846, 847], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 65}}, {"id": 831, "type": "parenthesized_expression", "text": "(mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER))", "parent": 830, "children": [832], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 57}}, {"id": 832, "type": "assignment_expression", "text": "mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)", "parent": 831, "children": [833, 834, 835], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 56}}, {"id": 833, "type": "identifier", "text": "mp", "parent": 832, "children": [], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 12}}, {"id": 834, "type": "=", "text": "=", "parent": 832, "children": [], "start_point": {"row": 193, "column": 13}, "end_point": {"row": 193, "column": 14}}, {"id": 835, "type": "call_expression", "text": "m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)", "parent": 832, "children": [836, 837], "start_point": {"row": 193, "column": 15}, "end_point": {"row": 193, "column": 56}}, {"id": 836, "type": "identifier", "text": "m_remsg", "parent": 835, "children": [], "start_point": {"row": 193, "column": 15}, "end_point": {"row": 193, "column": 22}}, {"id": 837, "type": "argument_list", "text": "(mp, 0, mp -> hghoff + MAXFOLDER)", "parent": 835, "children": [838, 839, 840], "start_point": {"row": 193, "column": 23}, "end_point": {"row": 193, "column": 56}}, {"id": 838, "type": "identifier", "text": "mp", "parent": 837, "children": [], "start_point": {"row": 193, "column": 24}, "end_point": {"row": 193, "column": 26}}, {"id": 839, "type": "number_literal", "text": "0", "parent": 837, "children": [], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 29}}, {"id": 840, "type": "binary_expression", "text": "mp -> hghoff + MAXFOLDER", "parent": 837, "children": [841, 844, 845], "start_point": {"row": 193, "column": 31}, "end_point": {"row": 193, "column": 55}}, {"id": 841, "type": "field_expression", "text": "mp -> hghoff", "parent": 840, "children": [842, 843], "start_point": {"row": 193, "column": 31}, "end_point": {"row": 193, "column": 43}}, {"id": 842, "type": "identifier", "text": "mp", "parent": 841, "children": [], "start_point": {"row": 193, "column": 31}, "end_point": {"row": 193, "column": 33}}, {"id": 843, "type": "field_identifier", "text": "hghoff", "parent": 841, "children": [], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 43}}, {"id": 844, "type": "+", "text": "+", "parent": 840, "children": [], "start_point": {"row": 193, "column": 44}, "end_point": {"row": 193, "column": 45}}, {"id": 845, "type": "identifier", "text": "MAXFOLDER", "parent": 840, "children": [], "start_point": {"row": 193, "column": 46}, "end_point": {"row": 193, "column": 55}}, {"id": 846, "type": "==", "text": "==", "parent": 830, "children": [], "start_point": {"row": 193, "column": 58}, "end_point": {"row": 193, "column": 60}}, {"id": 847, "type": "null", "text": "NULL", "parent": 830, "children": [848], "start_point": {"row": 193, "column": 61}, "end_point": {"row": 193, "column": 65}}, {"id": 848, "type": "NULL", "text": "NULL", "parent": 847, "children": [], "start_point": {"row": 193, "column": 61}, "end_point": {"row": 193, "column": 65}}, {"id": 849, "type": "call_expression", "text": "adios (NULLCP, \"unable to allocate folder storage\")", "parent": 828, "children": [850, 851], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 53}}, {"id": 850, "type": "identifier", "text": "adios", "parent": 849, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 7}}, {"id": 851, "type": "argument_list", "text": "(NULLCP, \"unable to allocate folder storage\")", "parent": 849, "children": [852, 853], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 53}}, {"id": 852, "type": "identifier", "text": "NULLCP", "parent": 851, "children": [], "start_point": {"row": 194, "column": 9}, "end_point": {"row": 194, "column": 15}}, {"id": 853, "type": "string_literal", "text": "\"unable to allocate folder storage\"", "parent": 851, "children": [], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 52}}, {"id": 854, "type": "assignment_expression", "text": "mp -> msgstats[msgnum] |= EXISTS | UNSEEN", "parent": 810, "children": [855, 860, 861], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 42}}, {"id": 855, "type": "subscript_expression", "text": "mp -> msgstats[msgnum]", "parent": 854, "children": [856, 859], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 23}}, {"id": 856, "type": "field_expression", "text": "mp -> msgstats", "parent": 855, "children": [857, 858], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 15}}, {"id": 857, "type": "identifier", "text": "mp", "parent": 856, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 3}}, {"id": 858, "type": "field_identifier", "text": "msgstats", "parent": 856, "children": [], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 15}}, {"id": 859, "type": "identifier", "text": "msgnum", "parent": 855, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 22}}, {"id": 860, "type": "|=", "text": "|=", "parent": 854, "children": [], "start_point": {"row": 196, "column": 24}, "end_point": {"row": 196, "column": 26}}, {"id": 861, "type": "binary_expression", "text": "EXISTS | UNSEEN", "parent": 854, "children": [862, 863], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 42}}, {"id": 862, "type": "identifier", "text": "EXISTS", "parent": 861, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 33}}, {"id": 863, "type": "identifier", "text": "UNSEEN", "parent": 861, "children": [], "start_point": {"row": 196, "column": 36}, "end_point": {"row": 196, "column": 42}}, {"id": 864, "type": "assignment_expression", "text": "errno = 0", "parent": 810, "children": [865, 866, 867], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 10}}, {"id": 865, "type": "identifier", "text": "errno", "parent": 864, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 6}}, {"id": 866, "type": "=", "text": "=", "parent": 864, "children": [], "start_point": {"row": 197, "column": 7}, "end_point": {"row": 197, "column": 8}}, {"id": 867, "type": "number_literal", "text": "0", "parent": 864, "children": [], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 10}}, {"id": 868, "type": "parenthesized_expression", "text": "(link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST)", "parent": 810, "children": [869], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 76}}, {"id": 869, "type": "binary_expression", "text": "link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST", "parent": 868, "children": [870, 881, 882], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 75}}, {"id": 870, "type": "binary_expression", "text": "link (tmpfilenam, m_name (msgnum)) == NOTOK", "parent": 869, "children": [871, 879, 880], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 56}}, {"id": 871, "type": "call_expression", "text": "link (tmpfilenam, m_name (msgnum))", "parent": 870, "children": [872, 873], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 47}}, {"id": 872, "type": "identifier", "text": "link", "parent": 871, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 17}}, {"id": 873, "type": "argument_list", "text": "(tmpfilenam, m_name (msgnum))", "parent": 871, "children": [874, 875], "start_point": {"row": 198, "column": 18}, "end_point": {"row": 198, "column": 47}}, {"id": 874, "type": "identifier", "text": "tmpfilenam", "parent": 873, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 29}}, {"id": 875, "type": "call_expression", "text": "m_name (msgnum)", "parent": 873, "children": [876, 877], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 46}}, {"id": 876, "type": "identifier", "text": "m_name", "parent": 875, "children": [], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 37}}, {"id": 877, "type": "argument_list", "text": "(msgnum)", "parent": 875, "children": [878], "start_point": {"row": 198, "column": 38}, "end_point": {"row": 198, "column": 46}}, {"id": 878, "type": "identifier", "text": "msgnum", "parent": 877, "children": [], "start_point": {"row": 198, "column": 39}, "end_point": {"row": 198, "column": 45}}, {"id": 879, "type": "==", "text": "==", "parent": 870, "children": [], "start_point": {"row": 198, "column": 48}, "end_point": {"row": 198, "column": 50}}, {"id": 880, "type": "identifier", "text": "NOTOK", "parent": 870, "children": [], "start_point": {"row": 198, "column": 51}, "end_point": {"row": 198, "column": 56}}, {"id": 881, "type": "&&", "text": "&&", "parent": 869, "children": [], "start_point": {"row": 198, "column": 57}, "end_point": {"row": 198, "column": 59}}, {"id": 882, "type": "binary_expression", "text": "errno == EEXIST", "parent": 869, "children": [883, 884, 885], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 75}}, {"id": 883, "type": "identifier", "text": "errno", "parent": 882, "children": [], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 65}}, {"id": 884, "type": "==", "text": "==", "parent": 882, "children": [], "start_point": {"row": 198, "column": 66}, "end_point": {"row": 198, "column": 68}}, {"id": 885, "type": "identifier", "text": "EEXIST", "parent": 882, "children": [], "start_point": {"row": 198, "column": 69}, "end_point": {"row": 198, "column": 75}}, {"id": 886, "type": "cast_expression", "text": "(void) unlink (tmpfilenam)", "parent": null, "children": [887, 889], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 30}}, {"id": 887, "type": "type_descriptor", "text": "void", "parent": 886, "children": [888], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 9}}, {"id": 888, "type": "primitive_type", "text": "void", "parent": 887, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 9}}, {"id": 889, "type": "call_expression", "text": "unlink (tmpfilenam)", "parent": 886, "children": [890, 891], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 30}}, {"id": 890, "type": "identifier", "text": "unlink", "parent": 889, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 17}}, {"id": 891, "type": "argument_list", "text": "(tmpfilenam)", "parent": 889, "children": [892], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 30}}, {"id": 892, "type": "identifier", "text": "tmpfilenam", "parent": 891, "children": [], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 29}}, {"id": 893, "type": "assignment_expression", "text": "tmpfilenam = NULLCP", "parent": null, "children": [894, 895, 896], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 23}}, {"id": 894, "type": "identifier", "text": "tmpfilenam", "parent": 893, "children": [], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 14}}, {"id": 895, "type": "=", "text": "=", "parent": 893, "children": [], "start_point": {"row": 201, "column": 15}, "end_point": {"row": 201, "column": 16}}, {"id": 896, "type": "identifier", "text": "NULLCP", "parent": 893, "children": [], "start_point": {"row": 201, "column": 17}, "end_point": {"row": 201, "column": 23}}, {"id": 897, "type": "if_statement", "text": "if (errno != 0)\n\tadios (NULLCP, \"can't file message %d\", msgnum);", "parent": null, "children": [898], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 203, "column": 49}}, {"id": 898, "type": "parenthesized_expression", "text": "(errno != 0)", "parent": 897, "children": [899], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 19}}, {"id": 899, "type": "binary_expression", "text": "errno != 0", "parent": 898, "children": [900, 901, 902], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 18}}, {"id": 900, "type": "identifier", "text": "errno", "parent": 899, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 13}}, {"id": 901, "type": "!=", "text": "!=", "parent": 899, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 16}}, {"id": 902, "type": "number_literal", "text": "0", "parent": 899, "children": [], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 18}}, {"id": 903, "type": "call_expression", "text": "adios (NULLCP, \"can't file message %d\", msgnum)", "parent": 897, "children": [904, 905], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 48}}, {"id": 904, "type": "identifier", "text": "adios", "parent": 903, "children": [], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 6}}, {"id": 905, "type": "argument_list", "text": "(NULLCP, \"can't file message %d\", msgnum)", "parent": 903, "children": [906, 907, 908], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 48}}, {"id": 906, "type": "identifier", "text": "NULLCP", "parent": 905, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 14}}, {"id": 907, "type": "string_literal", "text": "\"can't file message %d\"", "parent": 905, "children": [], "start_point": {"row": 203, "column": 16}, "end_point": {"row": 203, "column": 39}}, {"id": 908, "type": "identifier", "text": "msgnum", "parent": 905, "children": [], "start_point": {"row": 203, "column": 41}, "end_point": {"row": 203, "column": 47}}, {"id": 909, "type": "if_statement", "text": "if (mp -> lowmsg == 0)\n\tmp -> lowmsg = msgnum;", "parent": null, "children": [910], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 206, "column": 23}}, {"id": 910, "type": "parenthesized_expression", "text": "(mp -> lowmsg == 0)", "parent": 909, "children": [911], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 26}}, {"id": 911, "type": "binary_expression", "text": "mp -> lowmsg == 0", "parent": 910, "children": [912, 915, 916], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 25}}, {"id": 912, "type": "field_expression", "text": "mp -> lowmsg", "parent": 911, "children": [913, 914], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 20}}, {"id": 913, "type": "identifier", "text": "mp", "parent": 912, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 10}}, {"id": 914, "type": "field_identifier", "text": "lowmsg", "parent": 912, "children": [], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 20}}, {"id": 915, "type": "==", "text": "==", "parent": 911, "children": [], "start_point": {"row": 205, "column": 21}, "end_point": {"row": 205, "column": 23}}, {"id": 916, "type": "number_literal", "text": "0", "parent": 911, "children": [], "start_point": {"row": 205, "column": 24}, "end_point": {"row": 205, "column": 25}}, {"id": 917, "type": "assignment_expression", "text": "mp -> lowmsg = msgnum", "parent": 909, "children": [918, 921, 922], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 22}}, {"id": 918, "type": "field_expression", "text": "mp -> lowmsg", "parent": 917, "children": [919, 920], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 13}}, {"id": 919, "type": "identifier", "text": "mp", "parent": 918, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 3}}, {"id": 920, "type": "field_identifier", "text": "lowmsg", "parent": 918, "children": [], "start_point": {"row": 206, "column": 7}, "end_point": {"row": 206, "column": 13}}, {"id": 921, "type": "=", "text": "=", "parent": 917, "children": [], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 15}}, {"id": 922, "type": "identifier", "text": "msgnum", "parent": 917, "children": [], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 22}}, {"id": 923, "type": "assignment_expression", "text": "mp -> msgflags |= SEQMOD", "parent": null, "children": [924, 927, 928], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 28}}, {"id": 924, "type": "field_expression", "text": "mp -> msgflags", "parent": 923, "children": [925, 926], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 18}}, {"id": 925, "type": "identifier", "text": "mp", "parent": 924, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 6}}, {"id": 926, "type": "field_identifier", "text": "msgflags", "parent": 924, "children": [], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 18}}, {"id": 927, "type": "|=", "text": "|=", "parent": 923, "children": [], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 21}}, {"id": 928, "type": "identifier", "text": "SEQMOD", "parent": 923, "children": [], "start_point": {"row": 207, "column": 22}, "end_point": {"row": 207, "column": 28}}, {"id": 929, "type": "assignment_expression", "text": "seqs[seqp] = NULL", "parent": null, "children": [930, 933, 934], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 21}}, {"id": 930, "type": "subscript_expression", "text": "seqs[seqp]", "parent": 929, "children": [931, 932], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 14}}, {"id": 931, "type": "identifier", "text": "seqs", "parent": 930, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 8}}, {"id": 932, "type": "identifier", "text": "seqp", "parent": 930, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 13}}, {"id": 933, "type": "=", "text": "=", "parent": 929, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 16}}, {"id": 934, "type": "null", "text": "NULL", "parent": 929, "children": [935], "start_point": {"row": 209, "column": 17}, "end_point": {"row": 209, "column": 21}}, {"id": 935, "type": "NULL", "text": "NULL", "parent": 934, "children": [], "start_point": {"row": 209, "column": 17}, "end_point": {"row": 209, "column": 21}}, {"id": 936, "type": "for_statement", "text": "for (seqp = 0; seqs[seqp]; seqp++) {\n\tif (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n\t done (1);\n\tif (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n\t done (1);\n }", "parent": null, "children": [937, 941, 944], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 215, "column": 5}}, {"id": 937, "type": "assignment_expression", "text": "seqp = 0", "parent": 936, "children": [938, 939, 940], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 17}}, {"id": 938, "type": "identifier", "text": "seqp", "parent": 937, "children": [], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 13}}, {"id": 939, "type": "=", "text": "=", "parent": 937, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 15}}, {"id": 940, "type": "number_literal", "text": "0", "parent": 937, "children": [], "start_point": {"row": 210, "column": 16}, "end_point": {"row": 210, "column": 17}}, {"id": 941, "type": "subscript_expression", "text": "seqs[seqp]", "parent": 936, "children": [942, 943], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 29}}, {"id": 942, "type": "identifier", "text": "seqs", "parent": 941, "children": [], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 23}}, {"id": 943, "type": "identifier", "text": "seqp", "parent": 941, "children": [], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 28}}, {"id": 944, "type": "update_expression", "text": "seqp++", "parent": 936, "children": [945, 946], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 37}}, {"id": 945, "type": "identifier", "text": "seqp", "parent": 944, "children": [], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 35}}, {"id": 946, "type": "++", "text": "++", "parent": 944, "children": [], "start_point": {"row": 210, "column": 35}, "end_point": {"row": 210, "column": 37}}, {"id": 947, "type": "if_statement", "text": "if (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n\t done (1);", "parent": 936, "children": [948], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 212, "column": 14}}, {"id": 948, "type": "parenthesized_expression", "text": "(zerosw && !m_seqnew (mp, seqs[seqp], publicsw))", "parent": 947, "children": [949], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 52}}, {"id": 949, "type": "binary_expression", "text": "zerosw && !m_seqnew (mp, seqs[seqp], publicsw)", "parent": 948, "children": [950, 951, 952], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 51}}, {"id": 950, "type": "identifier", "text": "zerosw", "parent": 949, "children": [], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 11}}, {"id": 951, "type": "&&", "text": "&&", "parent": 949, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 14}}, {"id": 952, "type": "unary_expression", "text": "!m_seqnew (mp, seqs[seqp], publicsw)", "parent": 949, "children": [953, 954], "start_point": {"row": 211, "column": 15}, "end_point": {"row": 211, "column": 51}}, {"id": 953, "type": "!", "text": "!", "parent": 952, "children": [], "start_point": {"row": 211, "column": 15}, "end_point": {"row": 211, "column": 16}}, {"id": 954, "type": "call_expression", "text": "m_seqnew (mp, seqs[seqp], publicsw)", "parent": 952, "children": [955, 956], "start_point": {"row": 211, "column": 16}, "end_point": {"row": 211, "column": 51}}, {"id": 955, "type": "identifier", "text": "m_seqnew", "parent": 954, "children": [], "start_point": {"row": 211, "column": 16}, "end_point": {"row": 211, "column": 24}}, {"id": 956, "type": "argument_list", "text": "(mp, seqs[seqp], publicsw)", "parent": 954, "children": [957, 958, 961], "start_point": {"row": 211, "column": 25}, "end_point": {"row": 211, "column": 51}}, {"id": 957, "type": "identifier", "text": "mp", "parent": 956, "children": [], "start_point": {"row": 211, "column": 26}, "end_point": {"row": 211, "column": 28}}, {"id": 958, "type": "subscript_expression", "text": "seqs[seqp]", "parent": 956, "children": [959, 960], "start_point": {"row": 211, "column": 30}, "end_point": {"row": 211, "column": 40}}, {"id": 959, "type": "identifier", "text": "seqs", "parent": 958, "children": [], "start_point": {"row": 211, "column": 30}, "end_point": {"row": 211, "column": 34}}, {"id": 960, "type": "identifier", "text": "seqp", "parent": 958, "children": [], "start_point": {"row": 211, "column": 35}, "end_point": {"row": 211, "column": 39}}, {"id": 961, "type": "identifier", "text": "publicsw", "parent": 956, "children": [], "start_point": {"row": 211, "column": 42}, "end_point": {"row": 211, "column": 50}}, {"id": 962, "type": "call_expression", "text": "done (1)", "parent": 947, "children": [963, 964], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 13}}, {"id": 963, "type": "identifier", "text": "done", "parent": 962, "children": [], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 9}}, {"id": 964, "type": "argument_list", "text": "(1)", "parent": 962, "children": [965], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 13}}, {"id": 965, "type": "number_literal", "text": "1", "parent": 964, "children": [], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 12}}, {"id": 966, "type": "if_statement", "text": "if (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n\t done (1);", "parent": 936, "children": [967], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 214, "column": 14}}, {"id": 967, "type": "parenthesized_expression", "text": "(!m_seqadd (mp, seqs[seqp], msgnum, publicsw))", "parent": 966, "children": [968], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 50}}, {"id": 968, "type": "unary_expression", "text": "!m_seqadd (mp, seqs[seqp], msgnum, publicsw)", "parent": 967, "children": [969, 970], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 49}}, {"id": 969, "type": "!", "text": "!", "parent": 968, "children": [], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 6}}, {"id": 970, "type": "call_expression", "text": "m_seqadd (mp, seqs[seqp], msgnum, publicsw)", "parent": 968, "children": [971, 972], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 49}}, {"id": 971, "type": "identifier", "text": "m_seqadd", "parent": 970, "children": [], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 14}}, {"id": 972, "type": "argument_list", "text": "(mp, seqs[seqp], msgnum, publicsw)", "parent": 970, "children": [973, 974, 977, 978], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 49}}, {"id": 973, "type": "identifier", "text": "mp", "parent": 972, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 18}}, {"id": 974, "type": "subscript_expression", "text": "seqs[seqp]", "parent": 972, "children": [975, 976], "start_point": {"row": 213, "column": 20}, "end_point": {"row": 213, "column": 30}}, {"id": 975, "type": "identifier", "text": "seqs", "parent": 974, "children": [], "start_point": {"row": 213, "column": 20}, "end_point": {"row": 213, "column": 24}}, {"id": 976, "type": "identifier", "text": "seqp", "parent": 974, "children": [], "start_point": {"row": 213, "column": 25}, "end_point": {"row": 213, "column": 29}}, {"id": 977, "type": "identifier", "text": "msgnum", "parent": 972, "children": [], "start_point": {"row": 213, "column": 32}, "end_point": {"row": 213, "column": 38}}, {"id": 978, "type": "identifier", "text": "publicsw", "parent": 972, "children": [], "start_point": {"row": 213, "column": 40}, "end_point": {"row": 213, "column": 48}}, {"id": 979, "type": "call_expression", "text": "done (1)", "parent": 966, "children": [980, 981], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 13}}, {"id": 980, "type": "identifier", "text": "done", "parent": 979, "children": [], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 9}}, {"id": 981, "type": "argument_list", "text": "(1)", "parent": 979, "children": [982], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 13}}, {"id": 982, "type": "number_literal", "text": "1", "parent": 981, "children": [], "start_point": {"row": 214, "column": 11}, "end_point": {"row": 214, "column": 12}}, {"id": 983, "type": "call_expression", "text": "m_setvis (mp, 0)", "parent": null, "children": [984, 985], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 20}}, {"id": 984, "type": "identifier", "text": "m_setvis", "parent": 983, "children": [], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 12}}, {"id": 985, "type": "argument_list", "text": "(mp, 0)", "parent": 983, "children": [986, 987], "start_point": {"row": 217, "column": 13}, "end_point": {"row": 217, "column": 20}}, {"id": 986, "type": "identifier", "text": "mp", "parent": 985, "children": [], "start_point": {"row": 217, "column": 14}, "end_point": {"row": 217, "column": 16}}, {"id": 987, "type": "number_literal", "text": "0", "parent": 985, "children": [], "start_point": {"row": 217, "column": 18}, "end_point": {"row": 217, "column": 19}}, {"id": 988, "type": "call_expression", "text": "m_sync (mp)", "parent": null, "children": [989, 990], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 218, "column": 15}}, {"id": 989, "type": "identifier", "text": "m_sync", "parent": 988, "children": [], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 218, "column": 10}}, {"id": 990, "type": "argument_list", "text": "(mp)", "parent": 988, "children": [991], "start_point": {"row": 218, "column": 11}, "end_point": {"row": 218, "column": 15}}, {"id": 991, "type": "identifier", "text": "mp", "parent": 990, "children": [], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 14}}, {"id": 992, "type": "call_expression", "text": "m_update ()", "parent": null, "children": [993, 994], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 15}}, {"id": 993, "type": "identifier", "text": "m_update", "parent": 992, "children": [], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 12}}, {"id": 994, "type": "argument_list", "text": "()", "parent": 992, "children": [], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 15}}, {"id": 995, "type": "call_expression", "text": "done (0)", "parent": null, "children": [996, 997], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 12}}, {"id": 996, "type": "identifier", "text": "done", "parent": 995, "children": [], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 8}}, {"id": 997, "type": "argument_list", "text": "(0)", "parent": 995, "children": [998], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 12}}, {"id": 998, "type": "number_literal", "text": "0", "parent": 997, "children": [], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 11}}, {"id": 999, "type": "function_definition", "text": "void done (status)\nregister int status;\n{\n if (tmpfilenam && *tmpfilenam)\n\t(void) unlink (tmpfilenam);\n exit (status);\n}", "parent": null, "children": [1000, 1001, 1005], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 230, "column": 1}}, {"id": 1000, "type": "primitive_type", "text": "void", "parent": 999, "children": [], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 4}}, {"id": 1001, "type": "function_declarator", "text": "done (status)", "parent": 999, "children": [1002, 1003], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 18}}, {"id": 1002, "type": "identifier", "text": "done", "parent": 1001, "children": [], "start_point": {"row": 224, "column": 5}, "end_point": {"row": 224, "column": 9}}, {"id": 1003, "type": "parameter_list", "text": "(status)", "parent": 1001, "children": [1004], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 18}}, {"id": 1004, "type": "identifier", "text": "status", "parent": 1003, "children": [], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 17}}, {"id": 1005, "type": "declaration", "text": "register int status;", "parent": 999, "children": [1006, 1008, 1009], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 24}}, {"id": 1006, "type": "storage_class_specifier", "text": "register", "parent": 1005, "children": [1007], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 8}}, {"id": 1007, "type": "register", "text": "register", "parent": 1006, "children": [], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 8}}, {"id": 1008, "type": "primitive_type", "text": "int", "parent": 1005, "children": [], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 12}}, {"id": 1009, "type": "identifier", "text": "status", "parent": 1005, "children": [], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 23}}, {"id": 1010, "type": "if_statement", "text": "if (tmpfilenam && *tmpfilenam)\n\t(void) unlink (tmpfilenam);", "parent": 999, "children": [1011], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 228, "column": 28}}, {"id": 1011, "type": "parenthesized_expression", "text": "(tmpfilenam && *tmpfilenam)", "parent": 1010, "children": [1012], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 34}}, {"id": 1012, "type": "binary_expression", "text": "tmpfilenam && *tmpfilenam", "parent": 1011, "children": [1013, 1014, 1015], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 33}}, {"id": 1013, "type": "identifier", "text": "tmpfilenam", "parent": 1012, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 18}}, {"id": 1014, "type": "&&", "text": "&&", "parent": 1012, "children": [], "start_point": {"row": 227, "column": 19}, "end_point": {"row": 227, "column": 21}}, {"id": 1015, "type": "pointer_expression", "text": "*tmpfilenam", "parent": 1012, "children": [1016, 1017], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 33}}, {"id": 1016, "type": "*", "text": "*", "parent": 1015, "children": [], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 23}}, {"id": 1017, "type": "identifier", "text": "tmpfilenam", "parent": 1015, "children": [], "start_point": {"row": 227, "column": 23}, "end_point": {"row": 227, "column": 33}}, {"id": 1018, "type": "cast_expression", "text": "(void) unlink (tmpfilenam)", "parent": 1010, "children": [1019, 1021], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 27}}, {"id": 1019, "type": "type_descriptor", "text": "void", "parent": 1018, "children": [1020], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 6}}, {"id": 1020, "type": "primitive_type", "text": "void", "parent": 1019, "children": [], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 6}}, {"id": 1021, "type": "call_expression", "text": "unlink (tmpfilenam)", "parent": 1018, "children": [1022, 1023], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 27}}, {"id": 1022, "type": "identifier", "text": "unlink", "parent": 1021, "children": [], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 14}}, {"id": 1023, "type": "argument_list", "text": "(tmpfilenam)", "parent": 1021, "children": [1024], "start_point": {"row": 228, "column": 15}, "end_point": {"row": 228, "column": 27}}, {"id": 1024, "type": "identifier", "text": "tmpfilenam", "parent": 1023, "children": [], "start_point": {"row": 228, "column": 16}, "end_point": {"row": 228, "column": 26}}, {"id": 1025, "type": "call_expression", "text": "exit (status)", "parent": 999, "children": [1026, 1027], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 17}}, {"id": 1026, "type": "identifier", "text": "exit", "parent": 1025, "children": [], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 8}}, {"id": 1027, "type": "argument_list", "text": "(status)", "parent": 1025, "children": [1028], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 17}}, {"id": 1028, "type": "identifier", "text": "status", "parent": 1027, "children": [], "start_point": {"row": 229, "column": 10}, "end_point": {"row": 229, "column": 16}}]}, "node_categories": {"declarations": {"functions": [999, 1001], "variables": [3, 36, 112, 117, 130, 133, 139, 159, 200, 207, 1005], "classes": [37, 38, 113, 201, 202, 208, 209, 1006], "imports": [11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 32, 33], "modules": [], "enums": []}, "statements": {"expressions": [125, 196, 215, 224, 227, 234, 239, 240, 241, 245, 255, 261, 271, 281, 284, 287, 297, 301, 303, 307, 308, 309, 319, 320, 323, 330, 335, 342, 351, 354, 360, 365, 373, 374, 375, 377, 381, 383, 387, 388, 396, 401, 405, 406, 411, 413, 419, 448, 465, 480, 481, 482, 483, 492, 493, 502, 504, 513, 516, 521, 522, 534, 541, 542, 544, 548, 551, 557, 558, 559, 563, 565, 569, 580, 585, 586, 587, 591, 596, 597, 601, 607, 608, 611, 618, 619, 621, 625, 632, 633, 634, 640, 646, 647, 649, 653, 657, 663, 666, 671, 674, 679, 682, 687, 690, 696, 697, 698, 702, 708, 713, 718, 723, 726, 730, 733, 736, 744, 745, 746, 750, 754, 757, 761, 767, 768, 769, 775, 781, 782, 783, 788, 791, 795, 800, 807, 811, 812, 815, 816, 821, 822, 825, 829, 830, 831, 835, 840, 841, 849, 855, 856, 861, 868, 869, 870, 871, 875, 882, 886, 889, 898, 899, 903, 910, 911, 912, 918, 924, 930, 941, 944, 948, 949, 952, 954, 958, 962, 967, 968, 970, 974, 979, 983, 988, 992, 995, 1011, 1012, 1015, 1018, 1021, 1025], "assignments": [221, 242, 252, 258, 268, 277, 292, 298, 378, 410, 430, 439, 456, 473, 510, 566, 573, 577, 650, 699, 705, 804, 832, 854, 864, 893, 917, 923, 929, 937], "loops": [296, 936], "conditionals": [0, 1, 2, 7, 10, 29, 30, 31, 35, 39, 42, 48, 56, 64, 72, 80, 88, 96, 104, 116, 122, 124, 126, 128, 129, 132, 138, 142, 146, 149, 151, 154, 156, 163, 166, 170, 175, 181, 186, 190, 191, 195, 197, 203, 206, 210, 211, 212, 213, 214, 216, 218, 220, 222, 225, 228, 235, 237, 238, 243, 246, 248, 253, 256, 259, 262, 264, 269, 272, 274, 275, 278, 280, 285, 288, 291, 293, 295, 299, 304, 306, 311, 317, 318, 321, 325, 326, 327, 328, 329, 331, 333, 334, 336, 339, 340, 341, 343, 345, 347, 348, 349, 350, 355, 357, 359, 361, 363, 364, 366, 369, 370, 371, 372, 379, 384, 390, 397, 399, 402, 404, 407, 409, 412, 414, 417, 420, 422, 424, 427, 428, 429, 431, 436, 437, 438, 440, 445, 446, 447, 449, 453, 454, 455, 457, 462, 463, 464, 466, 470, 471, 472, 474, 479, 485, 495, 501, 503, 505, 507, 511, 514, 517, 520, 524, 531, 532, 535, 537, 539, 540, 545, 549, 552, 555, 556, 561, 567, 570, 572, 574, 576, 578, 581, 583, 584, 588, 590, 592, 594, 595, 598, 600, 602, 604, 606, 610, 612, 614, 616, 617, 622, 624, 626, 628, 630, 631, 635, 637, 639, 641, 643, 645, 651, 654, 656, 658, 660, 662, 667, 669, 670, 675, 677, 678, 683, 685, 686, 691, 693, 694, 695, 700, 703, 706, 709, 712, 714, 717, 719, 721, 727, 729, 731, 734, 737, 739, 740, 742, 743, 747, 749, 751, 753, 758, 760, 762, 764, 766, 770, 772, 774, 776, 778, 780, 784, 785, 792, 794, 796, 798, 801, 805, 808, 809, 813, 817, 818, 820, 823, 826, 827, 828, 833, 836, 838, 842, 843, 845, 850, 852, 857, 858, 859, 862, 863, 865, 872, 874, 876, 878, 880, 883, 885, 890, 892, 894, 896, 897, 900, 904, 906, 908, 909, 913, 914, 919, 920, 922, 925, 926, 928, 931, 932, 938, 942, 943, 945, 947, 950, 955, 957, 959, 960, 961, 963, 966, 971, 973, 975, 976, 977, 978, 980, 984, 986, 989, 991, 993, 996, 1002, 1004, 1009, 1010, 1013, 1017, 1022, 1024, 1026, 1028], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [9, 13, 16, 19, 22, 25, 28, 34, 47, 50, 51, 52, 55, 58, 59, 60, 63, 66, 67, 68, 71, 74, 75, 76, 79, 82, 83, 84, 87, 90, 91, 92, 95, 98, 99, 100, 103, 106, 107, 108, 111, 144, 148, 153, 158, 176, 199, 219, 229, 230, 265, 266, 290, 313, 338, 346, 358, 368, 392, 400, 403, 423, 433, 442, 459, 476, 487, 497, 508, 519, 526, 538, 547, 554, 605, 615, 629, 644, 661, 711, 722, 741, 765, 779, 787, 799, 803, 839, 853, 867, 902, 907, 916, 940, 965, 982, 987, 998], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 999, "universal_type": "function", "name": "done", "text_snippet": "void done (status)\nregister int status;\n{\n if (tmpfilenam && *tmpfilenam)\n\t(void) unlink (tmp"}, {"node_id": 1001, "universal_type": "function", "name": "unknown", "text_snippet": "done (status)"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "swit", "text_snippet": "struct swit"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 201, "universal_type": "class", "name": "msgs", "text_snippet": "struct msgs"}, {"node_id": 202, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 208, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 209, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1006, "universal_type": "class", "name": "unknown", "text_snippet": "register"}], "import_statements": [{"node_id": 11, "text": "#include \"../h/mh.h\"\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include <errno.h>\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include <signal.h>\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include <stdio.h>\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include <sys/types.h>\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include <sys/stat.h>\n"}, {"node_id": 27, "text": "#include"}, {"node_id": 32, "text": "#include\t<locale.h>\n"}, {"node_id": 33, "text": "#include"}]}, "original_source_code": "/* rcvstore.c - incorporate new mail asynchronously\n\t\toriginally from <NAME> */\n#ifndef\tlint\nstatic char ident[] = \"@(#)$Id: rcvstore.c,v 1.9 1992/12/15 00:20:22 jromine Exp $\";\n#endif\t/* lint */\n\n#include \"../h/mh.h\"\n#include <errno.h>\n#include <signal.h>\n#include <stdio.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#ifdef LOCALE\n#include\t<locale.h>\n#endif\n\n/* \f */\n\nstatic struct swit switches[] = {\n#define CRETSW\t0\n \"create\",\t0,\n#define NCRETSW\t1\n \"nocreate\", 0,\n\n#define PUBSW\t2\n \"public\",\t0,\n#define NPUBSW\t3\n \"nopublic\", 0,\n\n#define SEQSW\t4\n \"sequence name\", 0,\n\n#define ZEROSW 5\n \"zero\",\t0,\n#define NZEROSW 6\n \"nozero\",\t0,\n\n#define HELPSW 7\n \"help\", 4,\n\n NULL, 0\n};\n\n/* \f */\n\nextern int errno;\n\nstatic char *tmpfilenam = NULLCP;\n/* \f */\n\n/* ARGSUSED */\n\nmain (argc, argv)\nint\targc;\nchar *argv[];\n{\n int publicsw = -1,\n zerosw = 0,\n msgnum,\n create = 1,\n fd,\n seqp = 0;\n char *cp,\n *maildir,\n *folder = NULL,\n buf[100],\n **ap,\n **argp,\n *arguments[MAXARGS],\n *seqs[NATTRS+1];\n struct msgs *mp;\n struct stat st;\n\n#ifdef LOCALE\n\tsetlocale(LC_ALL, \"\");\n#endif\n invo_name = r1bindex (argv[0], '/');\n mts_init (invo_name);\n if ((cp = m_find (invo_name)) != NULL) {\n\tap = brkstring (cp = getcpy (cp), \" \", \"\\n\");\n\tap = copyip (ap, arguments);\n }\n else\n\tap = arguments;\n (void) copyip (argv + 1, ap);\n argp = arguments;\n\n/* \f */\n\n while (cp = *argp++) {\n\tif (*cp == '-')\n\t switch (smatch (++cp, switches)) {\n\t\tcase AMBIGSW: \n\t\t ambigsw (cp, switches);\n\t\t done (1);\n\t\tcase UNKWNSW: \n\t\t adios (NULLCP, \"-%s unknown\", cp);\n\t\tcase HELPSW: \n\t\t (void) sprintf (buf, \"%s [+folder] [switches]\", invo_name);\n\t\t help (buf, switches);\n\t\t done (1);\n\n\t\tcase SEQSW: \n\t\t if (!(cp = *argp++) || *cp == '-')\n\t\t\tadios (NULLCP, \"missing argument name to %s\",\n\t\t\t\targp[-2]);\n\t\t if (seqp < NATTRS)\n\t\t\tseqs[seqp++] = cp;\n\t\t else\n\t\t\tadios (NULLCP, \"only %d sequences allowed!\", NATTRS);\n\t\t continue;\n\t\tcase PUBSW: \n\t\t publicsw = 1;\n\t\t continue;\n\t\tcase NPUBSW: \n\t\t publicsw = 0;\n\t\t continue;\n\t\tcase ZEROSW: \n\t\t zerosw++;\n\t\t continue;\n\t\tcase NZEROSW: \n\t\t zerosw = 0;\n\t\t continue;\n\n\t\tcase CRETSW: \n\t\t create++;\n\t\t continue;\n\t\tcase NCRETSW: \n\t\t create = 0;\n\t\t continue;\n\t }\n\tif (*cp == '+' || *cp == '@') {\n\t if (folder)\n\t\tadios (NULLCP, \"only one folder at a time!\");\n\t else\n\t\tfolder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);\n\t}\n\telse\n\t adios (NULLCP, \"usage: %s [+folder] [switches]\", invo_name);\n }\n\n/* \f */\n\n if (!m_find (\"path\"))\n\tfree (path (\"./\", TFOLDER));\n if (!folder && !(folder = m_find (inbox)))\n\tfolder = defalt;\n maildir = m_maildir (folder);\n\n if (stat (maildir, &st) == NOTOK) {\n\tif (errno != ENOENT)\n\t adios (maildir, \"error on folder\");\n\tif (!create)\n\t adios (NULLCP, \"folder %s doesn't exist\", maildir);\n\tif (!makedir (maildir))\n\t adios (NULLCP, \"unable to create folder %s\", maildir);\n }\n\n if (chdir (maildir) == NOTOK)\n\tadios (maildir, \"unable to change directory to\");\n if (!(mp = m_gmsg (folder)))\n\tadios (NULLCP, \"unable to read folder %s\", folder);\n\n (void) signal (SIGHUP, SIG_IGN);\n (void) signal (SIGINT, SIG_IGN);\n (void) signal (SIGQUIT, SIG_IGN);\n (void) signal (SIGTERM, SIG_IGN);\n\n/* \f */\n\n if ((fd = creat (tmpfilenam = m_scratch (\"\", invo_name), m_gmprot ()))\n\t == NOTOK)\n\tadios (tmpfilenam, \"unable to create\");\n (void) chmod (tmpfilenam, m_gmprot ());\n\n cpydata (fileno (stdin), fd, \"standard input\", tmpfilenam);\n\n if (fstat (fd, &st) == NOTOK) {\n\t(void) unlink (tmpfilenam);\n\tadios (tmpfilenam, \"unable to fstat\");\n }\n if (close (fd) == NOTOK)\n\tadios (tmpfilenam, \"error closing\");\n if (st.st_size == 0) {\n\t(void) unlink (tmpfilenam);\n\tadvise (NULLCP, \"empty file\");\n\tdone (0);\n }\n\n msgnum = mp -> hghmsg;\n do {\n\tmsgnum++, mp -> hghmsg++;\n\tif (msgnum > mp -> hghoff)\n\t if ((mp = m_remsg (mp, 0, mp -> hghoff + MAXFOLDER)) == NULL)\n\t\tadios (NULLCP, \"unable to allocate folder storage\");\n\n\tmp -> msgstats[msgnum] |= EXISTS | UNSEEN;\n\terrno = 0;\n } while (link (tmpfilenam, m_name (msgnum)) == NOTOK && errno == EEXIST);\n\n (void) unlink (tmpfilenam);\n tmpfilenam = NULLCP;\n if (errno != 0)\n\tadios (NULLCP, \"can't file message %d\", msgnum);\n\n if (mp -> lowmsg == 0)\n\tmp -> lowmsg = msgnum;\n mp -> msgflags |= SEQMOD;\n\n seqs[seqp] = NULL;\n for (seqp = 0; seqs[seqp]; seqp++) {\n\tif (zerosw && !m_seqnew (mp, seqs[seqp], publicsw))\n\t done (1);\n\tif (!m_seqadd (mp, seqs[seqp], msgnum, publicsw))\n\t done (1);\n }\n\n m_setvis (mp, 0);\n m_sync (mp);\n m_update ();\n\n done (0);\n}\n\nvoid done (status)\nregister int status;\n{\n if (tmpfilenam && *tmpfilenam)\n\t(void) unlink (tmpfilenam);\n exit (status);\n}\n"}
156
c
/* This file is automatically generated. DO NOT EDIT! */ /* Generated from: NetBSD: mknative-gcc,v 1.92 2018/02/06 07:04:01 mrg Exp */ /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ #ifndef GCC_CONFIG_H #define GCC_CONFIG_H #ifdef GENERATOR_FILE #error config.h is for the host, not build, machine. #endif #include "auto-host.h" #ifdef IN_GCC # include "ansidecl.h" #endif #endif /* GCC_CONFIG_H */
32.92
13
(translation_unit) "/* This file is automatically generated. DO NOT EDIT! */\n/* Generated from: NetBSD: mknative-gcc,v 1.92 2018/02/06 07:04:01 mrg Exp */\n/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */\n\n#ifndef GCC_CONFIG_H\n#define GCC_CONFIG_H\n#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif\n#include "auto-host.h"\n#ifdef IN_GCC\n# include "ansidecl.h"\n#endif\n#endif /* GCC_CONFIG_H */\n" (comment) "/* This file is automatically generated. DO NOT EDIT! */" (comment) "/* Generated from: NetBSD: mknative-gcc,v 1.92 2018/02/06 07:04:01 mrg Exp */" (comment) "/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */" (preproc_ifdef) "#ifndef GCC_CONFIG_H\n#define GCC_CONFIG_H\n#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif\n#include "auto-host.h"\n#ifdef IN_GCC\n# include "ansidecl.h"\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "GCC_CONFIG_H" (preproc_def) "#define GCC_CONFIG_H\n" (#define) "#define" (identifier) "GCC_CONFIG_H" (preproc_ifdef) "#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif" (#ifdef) "#ifdef" (identifier) "GENERATOR_FILE" (preproc_call) "#error config.h is for the host, not build, machine.\n" (preproc_directive) "#error" (preproc_arg) "config.h is for the host, not build, machine." (#endif) "#endif" (preproc_include) "#include "auto-host.h"\n" (#include) "#include" (string_literal) ""auto-host.h"" (") """ (string_content) "auto-host.h" (") """ (preproc_ifdef) "#ifdef IN_GCC\n# include "ansidecl.h"\n#endif" (#ifdef) "#ifdef" (identifier) "IN_GCC" (preproc_include) "# include "ansidecl.h"\n" (#include) "# include" (string_literal) ""ansidecl.h"" (") """ (string_content) "ansidecl.h" (") """ (#endif) "#endif" (#endif) "#endif" (comment) "/* GCC_CONFIG_H */"
35
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.92, "nodes": 24, "errors": 0, "source_hash": "819f0bc07720d3f9cfee73a0178b54a7683808ebc927f6a3b48bac7f94d18887", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GCC_CONFIG_H\n#define GCC_CONFIG_H\n#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif\n#include \"auto-host.h\"\n#ifdef IN_GCC\n# include \"ansidecl.h\"\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 6, 13, 16, 23], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 13, "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": "GCC_CONFIG_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define GCC_CONFIG_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": "GCC_CONFIG_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 20}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif", "parent": 0, "children": [7, 8, 9, 12], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 8, "type": "identifier", "text": "GENERATOR_FILE", "parent": 6, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 21}}, {"id": 9, "type": "preproc_call", "text": "#error config.h is for the host, not build, machine.\n", "parent": 6, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#error", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 11, "type": "preproc_arg", "text": "config.h is for the host, not build, machine.", "parent": 9, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 52}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 13, "type": "preproc_include", "text": "#include \"auto-host.h\"\n", "parent": 0, "children": [14, 15], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 15, "type": "string_literal", "text": "\"auto-host.h\"", "parent": 13, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 22}}, {"id": 16, "type": "preproc_ifdef", "text": "#ifdef IN_GCC\n# include \"ansidecl.h\"\n#endif", "parent": 0, "children": [17, 18, 19, 22], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 17, "type": "#ifdef", "text": "#ifdef", "parent": 16, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 18, "type": "identifier", "text": "IN_GCC", "parent": 16, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 13}}, {"id": 19, "type": "preproc_include", "text": "# include \"ansidecl.h\"\n", "parent": 16, "children": [20, 21], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 20, "type": "#include", "text": "# include", "parent": 19, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 21, "type": "string_literal", "text": "\"ansidecl.h\"", "parent": 19, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 22}}, {"id": 22, "type": "#endif", "text": "#endif", "parent": 16, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 23, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [13, 14, 19, 20], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 12, 16, 17, 18, 22, 23], "returns": [], "exceptions": []}, "expressions": {"calls": [9], "literals": [15, 21], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 13, "text": "#include \"auto-host.h\"\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 19, "text": "# include \"ansidecl.h\"\n"}, {"node_id": 20, "text": "# include"}]}, "original_source_code": "/* This file is automatically generated. DO NOT EDIT! */\n/* Generated from: NetBSD: mknative-gcc,v 1.92 2018/02/06 07:04:01 mrg Exp */\n/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */\n\n#ifndef GCC_CONFIG_H\n#define GCC_CONFIG_H\n#ifdef GENERATOR_FILE\n#error config.h is for the host, not build, machine.\n#endif\n#include \"auto-host.h\"\n#ifdef IN_GCC\n# include \"ansidecl.h\"\n#endif\n#endif /* GCC_CONFIG_H */\n"}
157
c
#pragma once #include "ITypeLoader.h" #include <iostream> #include <memory> #include <string> #include <typeindex> #include <unordered_map> class IAsset; class AssetLoader { public: // Update the registered loaders. void update(float deltaTime); // Load an asset through its specific TypeLoader, given its type as // the template. template<typename T> std::shared_ptr<T> load(const std::string &fileName, int flag = 0, bool isAbsPath = false); template<typename T> std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, int flag = 0, bool isAbsPath = false); // Register a TypeLoader to use for loading assets of a specific asset // type. The asset type is specified in the template. template<typename T> void registerLoader(ITypeLoader *loader); private: // Map asset type to registered TypeLoaders. std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders; }; template<typename T> inline std::shared_ptr<T> AssetLoader::load(const std::string &fileName, int flag, bool isAbsPath) { return load<T>({ fileName }, flag, isAbsPath); } template<typename T> inline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, int flag, bool isAbsPath) { const std::string fileName{ *fileNames.begin() }; // Get the TypeLoader for this asset type. std::type_index type{ std::type_index(typeid(T)) }; auto loaderIt{ m_loaders.find(type) }; if (loaderIt == m_loaders.end()) { std::cout << "AssetLoader::load: Could not find TypeLoader for '" << fileName << "'" << std::endl; return nullptr; } // Use the TypeLoader to load the asset. std::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, isAbsPath) }; if (asset == nullptr) { std::cout << "AssetLoader::load: Could not load '" << fileName << "'" << std::endl; return nullptr; } return std::dynamic_pointer_cast<T>(asset); } template<typename T> inline void AssetLoader::registerLoader(ITypeLoader *loader) { std::type_index type{ std::type_index(typeid(T)) }; m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) }); }
31.09
66
(ERROR) "#pragma once\n\n#include "ITypeLoader.h"\n\n#include <iostream>\n#include <memory>\n#include <string>\n#include <typeindex>\n#include <unordered_map>\n\nclass IAsset;\n\nclass AssetLoader\n{\npublic:\n // Update the registered loaders.\n void update(float deltaTime);\n\n // Load an asset through its specific TypeLoader, given its type as \n // the template.\n template<typename T>\n std::shared_ptr<T> load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false);\n template<typename T>\n std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false);\n\n // Register a TypeLoader to use for loading assets of a specific asset \n // type. The asset type is specified in the template.\n template<typename T>\n void registerLoader(ITypeLoader *loader);\n\nprivate:\n // Map asset type to registered TypeLoaders.\n std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n};\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::string &fileName, \n int flag, bool isAbsPath)\n{\n return load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n int flag, bool isAbsPath)\n{\n const std::string fileName{ *fileNames.begin() };\n\n // Get the TypeLoader for this asset type.\n std::type_index type{ std::type_index(typeid(T)) };\n auto loaderIt{ m_loaders.find(type) };\n if (loaderIt == m_loaders.end())\n {\n std::cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std::endl;\n return nullptr;\n }\n\n // Use the TypeLoader to load the asset.\n std::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, \n isAbsPath) };\n if (asset == nullptr)\n {\n std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;\n return nullptr;\n }\n\n return std::dynamic_pointer_cast<T>(asset);\n}\n\ntemplate<typename T>\ninline void AssetLoader::registerLoader(ITypeLoader *loader)\n{\n std::type_index type{ std::type_index(typeid(T)) };\n m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ITypeLoader.h"\n" (#include) "#include" (string_literal) ""ITypeLoader.h"" (") """ (string_content) "ITypeLoader.h" (") """ (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <typeindex>\n" (#include) "#include" (system_lib_string) "<typeindex>" (preproc_include) "#include <unordered_map>\n" (#include) "#include" (system_lib_string) "<unordered_map>" (declaration) "class IAsset;" (type_identifier) "class" (identifier) "IAsset" (;) ";" (function_definition) "class AssetLoader\n{\npublic:\n // Update the registered loaders.\n void update(float deltaTime);\n\n // Load an asset through its specific TypeLoader, given its type as \n // the template.\n template<typename T>\n std::shared_ptr<T> load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false);\n template<typename T>\n std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false);\n\n // Register a TypeLoader to use for loading assets of a specific asset \n // type. The asset type is specified in the template.\n template<typename T>\n void registerLoader(ITypeLoader *loader);\n\nprivate:\n // Map asset type to registered TypeLoaders.\n std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n}" (type_identifier) "class" (identifier) "AssetLoader" (compound_statement) "{\npublic:\n // Update the registered loaders.\n void update(float deltaTime);\n\n // Load an asset through its specific TypeLoader, given its type as \n // the template.\n template<typename T>\n std::shared_ptr<T> load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false);\n template<typename T>\n std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false);\n\n // Register a TypeLoader to use for loading assets of a specific asset \n // type. The asset type is specified in the template.\n template<typename T>\n void registerLoader(ITypeLoader *loader);\n\nprivate:\n // Map asset type to registered TypeLoaders.\n std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n}" ({) "{" (labeled_statement) "public:\n // Update the registered loaders.\n void update(float deltaTime);" (statement_identifier) "public" (:) ":" (comment) "// Update the registered loaders." (declaration) "void update(float deltaTime);" (primitive_type) "void" (function_declarator) "update(float deltaTime)" (identifier) "update" (parameter_list) "(float deltaTime)" (() "(" (parameter_declaration) "float deltaTime" (primitive_type) "float" (identifier) "deltaTime" ()) ")" (;) ";" (comment) "// Load an asset through its specific TypeLoader, given its type as " (comment) "// the template." (expression_statement) "template<typename T>\n std::shared_ptr<T> load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false);" (binary_expression) "template<typename T>\n std::shared_ptr<T> load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false)" (binary_expression) "template<typename T>\n std::shared_ptr<T" (binary_expression) "template<typename T>\n std" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "std" (ERROR) "::shared_ptr" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "T" (>) ">" (call_expression) "load(const std::string &fileName, \n int flag = 0, bool isAbsPath = false)" (identifier) "load" (argument_list) "(const std::string &fileName, \n int flag = 0, bool isAbsPath = false)" (() "(" (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string &fileName" (identifier) "string" (&) "&" (identifier) "fileName" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "flag = 0" (identifier) "flag" (=) "=" (number_literal) "0" (,) "," (ERROR) "bool" (identifier) "bool" (assignment_expression) "isAbsPath = false" (identifier) "isAbsPath" (=) "=" (false) "false" ()) ")" (;) ";" (expression_statement) "template<typename T>\n std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false);" (binary_expression) "template<typename T>\n std::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false)" (binary_expression) "template<typename T>\n std::shared_ptr<T" (binary_expression) "template<typename T>\n std" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "std" (ERROR) "::shared_ptr" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "T" (>) ">" (call_expression) "load(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false)" (identifier) "load" (argument_list) "(const std::initializer_list<std::string> &fileNames, \n int flag = 0, bool isAbsPath = false)" (() "(" (ERROR) "const std::initializer_list<std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "initializer_list<std" (identifier) "initializer_list" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string> &fileNames" (identifier) "string" (>) ">" (pointer_expression) "&fileNames" (&) "&" (identifier) "fileNames" (,) "," (ERROR) "int" (identifier) "int" (assignment_expression) "flag = 0" (identifier) "flag" (=) "=" (number_literal) "0" (,) "," (ERROR) "bool" (identifier) "bool" (assignment_expression) "isAbsPath = false" (identifier) "isAbsPath" (=) "=" (false) "false" ()) ")" (;) ";" (comment) "// Register a TypeLoader to use for loading assets of a specific asset " (comment) "// type. The asset type is specified in the template." (expression_statement) "template<typename T>\n void registerLoader(ITypeLoader *loader);" (binary_expression) "template<typename T>\n void registerLoader(ITypeLoader *loader)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "void" (identifier) "void" (call_expression) "registerLoader(ITypeLoader *loader)" (identifier) "registerLoader" (argument_list) "(ITypeLoader *loader)" (() "(" (binary_expression) "ITypeLoader *loader" (identifier) "ITypeLoader" (*) "*" (identifier) "loader" ()) ")" (;) ";" (labeled_statement) "private:\n // Map asset type to registered TypeLoaders.\n std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;" (statement_identifier) "private" (:) ":" (comment) "// Map asset type to registered TypeLoaders." (labeled_statement) "std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;" (statement_identifier) "std" (ERROR) "::unordered_map<std::type_index, std:" (:) ":" (:) ":" (binary_expression) "unordered_map<std" (identifier) "unordered_map" (<) "<" (identifier) "std" (:) ":" (:) ":" (comma_expression) "type_index, std" (identifier) "type_index" (,) "," (identifier) "std" (:) ":" (:) ":" (expression_statement) "unique_ptr<ITypeLoader>> m_loaders;" (binary_expression) "unique_ptr<ITypeLoader>> m_loaders" (identifier) "unique_ptr" (<) "<" (binary_expression) "ITypeLoader>> m_loaders" (identifier) "ITypeLoader" (>>) ">>" (identifier) "m_loaders" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template<typename T>\ninline std::shared_ptr<T> AssetLoader::" (binary_expression) "template<typename T>\ninline std::shared_ptr<T> AssetLoader" (binary_expression) "template<typename T>\ninline std::shared_ptr<T" (binary_expression) "template<typename T>\ninline std::shared_ptr" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "inline std::" (identifier) "inline" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "T" (>) ">" (identifier) "AssetLoader" (:) ":" (:) ":" (identifier) "load" (ERROR) "(const std:" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (ERROR) "string &fileName, \n int flag, bool isAbsPath)" (comma_expression) "string &fileName, \n int flag, bool" (binary_expression) "string &fileName" (identifier) "string" (&) "&" (identifier) "fileName" (,) "," (ERROR) "int" (identifier) "int" (comma_expression) "flag, bool" (identifier) "flag" (,) "," (identifier) "bool" (identifier) "isAbsPath" ()) ")" ({) "{" (return_statement) "return load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n int flag, bool isAbsPath)" (return) "return" (binary_expression) "load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n int flag, bool isAbsPath)" (binary_expression) "load<T" (identifier) "load" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n int flag, bool isAbsPath)" (() "(" (ERROR) "{ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::" (compound_statement) "{ fileName }, flag, isAbsPath);\n}" ({) "{" (expression_statement) "fileName }, flag, isAbsPath);" (comma_expression) "fileName }, flag, isAbsPath" (identifier) "fileName" (ERROR) "}" (}) "}" (,) "," (comma_expression) "flag, isAbsPath" (identifier) "flag" (,) "," (identifier) "isAbsPath" (ERROR) ")" ()) ")" (;) ";" (}) "}" (binary_expression) "template<typename T>\ninline std::shared_ptr<T> AssetLoader" (binary_expression) "template<typename T>\ninline std::shared_ptr<T" (binary_expression) "template<typename T>\ninline std::shared_ptr" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "inline std::" (identifier) "inline" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "T" (>) ">" (identifier) "AssetLoader" (:) ":" (:) ":" (comma_expression) "load(const std::initializer_list<std::string> &fileNames, \n int flag, bool isAbsPath" (binary_expression) "load(const std::initializer_list<std::string> &fileNames" (identifier) "load" (ERROR) "(const std::initializer_list<std::string" (() "(" (ERROR) "const std::" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (identifier) "initializer_list" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (pointer_expression) "&fileNames" (&) "&" (identifier) "fileNames" (,) "," (ERROR) "int" (identifier) "int" (comma_expression) "flag, bool isAbsPath" (identifier) "flag" (,) "," (ERROR) "bool" (identifier) "bool" (identifier) "isAbsPath" ()) ")" (;) "" ({) "{" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "fileName" ({) "{" (expression_statement) "*fileNames.begin() };" (pointer_expression) "*fileNames.begin()" (*) "*" (call_expression) "fileNames.begin()" (field_expression) "fileNames.begin" (identifier) "fileNames" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (comment) "// Get the TypeLoader for this asset type." (identifier) "std" (:) ":" (ERROR) ":type_index type" (:) ":" (type_identifier) "type_index" (identifier) "type" ({) "{" (labeled_statement) "std::type_index(typeid(T)) };" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "type_index(typeid(T)) };" (call_expression) "type_index(typeid(T))" (identifier) "type_index" (argument_list) "(typeid(T))" (() "(" (call_expression) "typeid(T)" (identifier) "typeid" (argument_list) "(T)" (() "(" (identifier) "T" ()) ")" ()) ")" (ERROR) "}" (}) "}" (;) ";" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "loaderIt" (identifier) "" ({) "{" (expression_statement) "m_loaders.find(type) };" (call_expression) "m_loaders.find(type)" (field_expression) "m_loaders.find" (identifier) "m_loaders" (.) "." (field_identifier) "find" (argument_list) "(type)" (() "(" (identifier) "type" ()) ")" (ERROR) "}" (}) "}" (;) ";" (if_statement) "if (loaderIt == m_loaders.end())\n {\n std::cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std::endl;\n return nullptr;\n }" (if) "if" (parenthesized_expression) "(loaderIt == m_loaders.end())" (() "(" (binary_expression) "loaderIt == m_loaders.end()" (identifier) "loaderIt" (==) "==" (call_expression) "m_loaders.end()" (field_expression) "m_loaders.end" (identifier) "m_loaders" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n std::cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std::endl;\n return nullptr;\n }" ({) "{" (labeled_statement) "std::cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std::endl;" (statement_identifier) "std" (ERROR) "::cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std:" (:) ":" (:) ":" (binary_expression) "cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'" << std" (binary_expression) "cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName << "'"" (binary_expression) "cout << "AssetLoader::load: Could not find TypeLoader for '" \n << fileName" (binary_expression) "cout << "AssetLoader::load: Could not find TypeLoader for '"" (identifier) "cout" (<<) "<<" (string_literal) ""AssetLoader::load: Could not find TypeLoader for '"" (") """ (string_content) "AssetLoader::load: Could not find TypeLoader for '" (") """ (<<) "<<" (identifier) "fileName" (<<) "<<" (string_literal) ""'"" (") """ (string_content) "'" (") """ (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "endl;" (identifier) "endl" (;) ";" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (comment) "// Use the TypeLoader to load the asset." (labeled_statement) "std::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, \n isAbsPath) };\n if (asset == nullptr)\n {\n std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;\n return nullptr;\n }\n\n return std::dynamic_pointer_cast<T>(asset);\n}" (statement_identifier) "std" (:) ":" (ERROR) ":shared_ptr<IAsset> asset" (:) ":" (binary_expression) "shared_ptr<IAsset> asset" (binary_expression) "shared_ptr<IAsset" (identifier) "shared_ptr" (<) "<" (identifier) "IAsset" (>) ">" (identifier) "asset" (compound_statement) "{ loaderIt->second->load(fileNames, flag, \n isAbsPath) };\n if (asset == nullptr)\n {\n std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;\n return nullptr;\n }\n\n return std::dynamic_pointer_cast<T>(asset);\n}" ({) "{" (expression_statement) "loaderIt->second->load(fileNames, flag, \n isAbsPath) };" (call_expression) "loaderIt->second->load(fileNames, flag, \n isAbsPath)" (field_expression) "loaderIt->second->load" (field_expression) "loaderIt->second" (identifier) "loaderIt" (->) "->" (field_identifier) "second" (->) "->" (field_identifier) "load" (argument_list) "(fileNames, flag, \n isAbsPath)" (() "(" (identifier) "fileNames" (,) "," (identifier) "flag" (,) "," (identifier) "isAbsPath" ()) ")" (ERROR) "}" (}) "}" (;) ";" (if_statement) "if (asset == nullptr)\n {\n std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;\n return nullptr;\n }" (if) "if" (parenthesized_expression) "(asset == nullptr)" (() "(" (binary_expression) "asset == nullptr" (identifier) "asset" (==) "==" (null) "nullptr" (nullptr) "nullptr" ()) ")" (compound_statement) "{\n std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;\n return nullptr;\n }" ({) "{" (labeled_statement) "std::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std::endl;" (statement_identifier) "std" (ERROR) "::cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std:" (:) ":" (:) ":" (binary_expression) "cout << "AssetLoader::load: Could not load '"\n << fileName << "'" << std" (binary_expression) "cout << "AssetLoader::load: Could not load '"\n << fileName << "'"" (binary_expression) "cout << "AssetLoader::load: Could not load '"\n << fileName" (binary_expression) "cout << "AssetLoader::load: Could not load '"" (identifier) "cout" (<<) "<<" (string_literal) ""AssetLoader::load: Could not load '"" (") """ (string_content) "AssetLoader::load: Could not load '" (") """ (<<) "<<" (identifier) "fileName" (<<) "<<" (string_literal) ""'"" (") """ (string_content) "'" (") """ (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "endl;" (identifier) "endl" (;) ";" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (return_statement) "return std::dynamic_pointer_cast<T>(asset);" (return) "return" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "dynamic_pointer_cast<T>(asset)" (binary_expression) "dynamic_pointer_cast<T" (identifier) "dynamic_pointer_cast" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(asset)" (() "(" (identifier) "asset" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename T>\ninline" (binary_expression) "template<typename T>\ninline" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "inline" (;) "" (primitive_type) "void" (ERROR) "AssetLoader::" (identifier) "AssetLoader" (:) ":" (:) ":" (function_declarator) "registerLoader(ITypeLoader *loader)" (identifier) "registerLoader" (parameter_list) "(ITypeLoader *loader)" (() "(" (parameter_declaration) "ITypeLoader *loader" (type_identifier) "ITypeLoader" (pointer_declarator) "*loader" (*) "*" (identifier) "loader" ()) ")" ({) "{" (labeled_statement) "std::type_index type{ std::type_index(typeid(T)) };\n m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}" (statement_identifier) "std" (:) ":" (ERROR) ":type_index type" (:) ":" (type_identifier) "type_index" (identifier) "type" (compound_statement) "{ std::type_index(typeid(T)) };\n m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}" ({) "{" (labeled_statement) "std::type_index(typeid(T)) };" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "type_index(typeid(T)) };" (call_expression) "type_index(typeid(T))" (identifier) "type_index" (argument_list) "(typeid(T))" (() "(" (call_expression) "typeid(T)" (identifier) "typeid" (argument_list) "(T)" (() "(" (identifier) "T" ()) ")" ()) ")" (ERROR) "}" (}) "}" (;) ";" (expression_statement) "m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });" (call_expression) "m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) })" (field_expression) "m_loaders.insert" (identifier) "m_loaders" (.) "." (field_identifier) "insert" (argument_list) "({ type, std::unique_ptr<ITypeLoader>(loader) })" (() "(" (compound_statement) "{ type, std::unique_ptr<ITypeLoader>(loader) }" ({) "{" (ERROR) "type, std::unique_ptr<ITypeLoader>(loader)" (comma_expression) "type, std" (identifier) "type" (,) "," (identifier) "std" (:) ":" (:) ":" (binary_expression) "unique_ptr<ITypeLoader>(loader)" (binary_expression) "unique_ptr<ITypeLoader" (identifier) "unique_ptr" (<) "<" (identifier) "ITypeLoader" (>) ">" (parenthesized_expression) "(loader)" (() "(" (identifier) "loader" ()) ")" (}) "}" ()) ")" (;) ";" (}) "}"
651
46
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 31.09, "nodes": 406, "errors": 0, "source_hash": "18114aca2e1ab895a5836a29a02d9041a31aa801aeac9527611cb92ed3a1073e", "categorized_nodes": 277}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include \"ITypeLoader.h\"\n\n#include <iostream>\n#include <memory>\n#include <string>\n#include <typeindex>\n#include <unordered_map>\n\nclass IAsset;\n\nclass AssetLoader\n{\npublic:\n\t// Update the registered loaders.\n\tvoid update(float deltaTime);\n\n\t// Load an asset through its specific TypeLoader, given its type as \n\t// the template.\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false);\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false);\n\n\t// Register a TypeLoader to use for loading assets of a specific asset \n\t// type. The asset type is specified in the template.\n\ttemplate<typename T>\n\tvoid registerLoader(ITypeLoader *loader);\n\nprivate:\n\t// Map asset type to registered TypeLoaders.\n\tstd::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n};\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::string &fileName, \n\tint flag, bool isAbsPath)\n{\n\treturn load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath)\n{\n\tconst std::string fileName{ *fileNames.begin() };\n\n\t// Get the TypeLoader for this asset type.\n\tstd::type_index type{ std::type_index(typeid(T)) };\n\tauto loaderIt{ m_loaders.find(type) };\n\tif (loaderIt == m_loaders.end())\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}\n\n\t// Use the TypeLoader to load the asset.\n\tstd::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, \n\t\tisAbsPath) };\n\tif (asset == nullptr)\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}\n\n\treturn std::dynamic_pointer_cast<T>(asset);\n}\n\ntemplate<typename T>\ninline void AssetLoader::registerLoader(ITypeLoader *loader)\n{\n\tstd::type_index type{ std::type_index(typeid(T)) };\n\tm_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}\n", "parent": null, "children": [1, 4, 7, 10, 13, 16, 19, 22, 24, 148, 167, 168, 171, 182, 235, 236, 238, 245, 246, 249, 258, 260, 261, 268, 297, 364, 365, 367, 375], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 79, "column": 0}}, {"id": 1, "type": "preproc_call", "text": "#pragma once\n", "parent": 0, "children": [2, 3], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 2, "type": "preproc_directive", "text": "#pragma", "parent": 1, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 3, "type": "preproc_arg", "text": "once", "parent": 1, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 4, "type": "preproc_include", "text": "#include \"ITypeLoader.h\"\n", "parent": 0, "children": [5, 6], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 5, "type": "#include", "text": "#include", "parent": 4, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 6, "type": "string_literal", "text": "\"ITypeLoader.h\"", "parent": 4, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}, {"id": 7, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [8, 9], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<iostream>", "parent": 7, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 10, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 12, "type": "system_lib_string", "text": "<memory>", "parent": 10, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 13, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [14, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 15, "type": "system_lib_string", "text": "<string>", "parent": 13, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "preproc_include", "text": "#include <typeindex>\n", "parent": 0, "children": [17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 18, "type": "system_lib_string", "text": "<typeindex>", "parent": 16, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 19, "type": "preproc_include", "text": "#include <unordered_map>\n", "parent": 0, "children": [20, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 21, "type": "system_lib_string", "text": "<unordered_map>", "parent": 19, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 24}}, {"id": 22, "type": "declaration", "text": "class IAsset;", "parent": 0, "children": [23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 13}}, {"id": 23, "type": "identifier", "text": "IAsset", "parent": 22, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 24, "type": "function_definition", "text": "class AssetLoader\n{\npublic:\n\t// Update the registered loaders.\n\tvoid update(float deltaTime);\n\n\t// Load an asset through its specific TypeLoader, given its type as \n\t// the template.\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false);\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false);\n\n\t// Register a TypeLoader to use for loading assets of a specific asset \n\t// type. The asset type is specified in the template.\n\ttemplate<typename T>\n\tvoid registerLoader(ITypeLoader *loader);\n\nprivate:\n\t// Map asset type to registered TypeLoaders.\n\tstd::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n}", "parent": 0, "children": [25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 25, "type": "identifier", "text": "AssetLoader", "parent": 24, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 17}}, {"id": 26, "type": "labeled_statement", "text": "public:\n\t// Update the registered loaders.\n\tvoid update(float deltaTime);", "parent": 24, "children": [27], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 16, "column": 30}}, {"id": 27, "type": "declaration", "text": "void update(float deltaTime);", "parent": 26, "children": [28, 29], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 30}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 29, "type": "function_declarator", "text": "update(float deltaTime)", "parent": 27, "children": [30, 31], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 29}}, {"id": 30, "type": "identifier", "text": "update", "parent": 29, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 12}}, {"id": 31, "type": "parameter_list", "text": "(float deltaTime)", "parent": 29, "children": [32], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 29}}, {"id": 32, "type": "parameter_declaration", "text": "float deltaTime", "parent": 31, "children": [33, 34], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 28}}, {"id": 33, "type": "primitive_type", "text": "float", "parent": 32, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 18}}, {"id": 34, "type": "identifier", "text": "deltaTime", "parent": 32, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 28}}, {"id": 35, "type": "binary_expression", "text": "template<typename T>\n\tstd::shared_ptr<T> load(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 24, "children": [36, 50, 51], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 22, "column": 39}}, {"id": 36, "type": "binary_expression", "text": "template<typename T>\n\tstd::shared_ptr<T", "parent": 35, "children": [37, 46, 48, 49], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 18}}, {"id": 37, "type": "binary_expression", "text": "template<typename T>\n\tstd", "parent": 36, "children": [38, 42, 44, 45], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 38, "type": "binary_expression", "text": "template<typename", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 18}}, {"id": 39, "type": "identifier", "text": "template", "parent": 38, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 40, "type": "<", "text": "<", "parent": 38, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 41, "type": "identifier", "text": "typename", "parent": 38, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 18}}, {"id": 42, "type": "ERROR", "text": "T", "parent": 37, "children": [43], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 43, "type": "identifier", "text": "T", "parent": 42, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 44, "type": ">", "text": ">", "parent": 37, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 45, "type": "identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 46, "type": "ERROR", "text": "::shared_ptr", "parent": 36, "children": [47], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 16}}, {"id": 47, "type": "identifier", "text": "shared_ptr", "parent": 46, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 16}}, {"id": 48, "type": "<", "text": "<", "parent": 36, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 49, "type": "identifier", "text": "T", "parent": 36, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 18}}, {"id": 50, "type": ">", "text": ">", "parent": 35, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 51, "type": "call_expression", "text": "load(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 35, "children": [52, 53], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 22, "column": 39}}, {"id": 52, "type": "identifier", "text": "load", "parent": 51, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 24}}, {"id": 53, "type": "argument_list", "text": "(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 51, "children": [54, 56, 59, 61, 65, 67], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 22, "column": 39}}, {"id": 54, "type": "ERROR", "text": "const std::", "parent": 53, "children": [55], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 36}}, {"id": 55, "type": "identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 34}}, {"id": 56, "type": "binary_expression", "text": "string &fileName", "parent": 53, "children": [57, 58], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 52}}, {"id": 57, "type": "identifier", "text": "string", "parent": 56, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 42}}, {"id": 58, "type": "identifier", "text": "fileName", "parent": 56, "children": [], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 21, "column": 52}}, {"id": 59, "type": "ERROR", "text": "int", "parent": 53, "children": [60], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 5}}, {"id": 60, "type": "identifier", "text": "int", "parent": 59, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 5}}, {"id": 61, "type": "assignment_expression", "text": "flag = 0", "parent": 53, "children": [62, 63, 64], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 62, "type": "identifier", "text": "flag", "parent": 61, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 10}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 12}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 14}}, {"id": 65, "type": "ERROR", "text": "bool", "parent": 53, "children": [66], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 20}}, {"id": 66, "type": "identifier", "text": "bool", "parent": 65, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 20}}, {"id": 67, "type": "assignment_expression", "text": "isAbsPath = false", "parent": 53, "children": [68, 69, 70], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 38}}, {"id": 68, "type": "identifier", "text": "isAbsPath", "parent": 67, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 30}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 70, "type": "false", "text": "false", "parent": 67, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 38}}, {"id": 71, "type": "binary_expression", "text": "template<typename T>\n\tstd::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 24, "children": [72, 86, 87], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 25, "column": 39}}, {"id": 72, "type": "binary_expression", "text": "template<typename T>\n\tstd::shared_ptr<T", "parent": 71, "children": [73, 82, 84, 85], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 24, "column": 18}}, {"id": 73, "type": "binary_expression", "text": "template<typename T>\n\tstd", "parent": 72, "children": [74, 78, 80, 81], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 24, "column": 4}}, {"id": 74, "type": "binary_expression", "text": "template<typename", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 18}}, {"id": 75, "type": "identifier", "text": "template", "parent": 74, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 76, "type": "<", "text": "<", "parent": 74, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 77, "type": "identifier", "text": "typename", "parent": 74, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 18}}, {"id": 78, "type": "ERROR", "text": "T", "parent": 73, "children": [79], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 79, "type": "identifier", "text": "T", "parent": 78, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 80, "type": ">", "text": ">", "parent": 73, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 21}}, {"id": 81, "type": "identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 4}}, {"id": 82, "type": "ERROR", "text": "::shared_ptr", "parent": 72, "children": [83], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 16}}, {"id": 83, "type": "identifier", "text": "shared_ptr", "parent": 82, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 16}}, {"id": 84, "type": "<", "text": "<", "parent": 72, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 85, "type": "identifier", "text": "T", "parent": 72, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 86, "type": ">", "text": ">", "parent": 71, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 87, "type": "call_expression", "text": "load(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 71, "children": [88, 89], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 25, "column": 39}}, {"id": 88, "type": "identifier", "text": "load", "parent": 87, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 24}}, {"id": 89, "type": "argument_list", "text": "(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false)", "parent": 87, "children": [90, 96, 101, 103, 107, 109], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 25, "column": 39}}, {"id": 90, "type": "ERROR", "text": "const std::initializer_list<std::", "parent": 89, "children": [91, 92], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 58}}, {"id": 91, "type": "identifier", "text": "std", "parent": 90, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 34}}, {"id": 92, "type": "binary_expression", "text": "initializer_list<std", "parent": 90, "children": [93, 94, 95], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 56}}, {"id": 93, "type": "identifier", "text": "initializer_list", "parent": 92, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 52}}, {"id": 94, "type": "<", "text": "<", "parent": 92, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 53}}, {"id": 95, "type": "identifier", "text": "std", "parent": 92, "children": [], "start_point": {"row": 24, "column": 53}, "end_point": {"row": 24, "column": 56}}, {"id": 96, "type": "binary_expression", "text": "string> &fileNames", "parent": 89, "children": [97, 98, 99], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 76}}, {"id": 97, "type": "identifier", "text": "string", "parent": 96, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 64}}, {"id": 98, "type": ">", "text": ">", "parent": 96, "children": [], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 65}}, {"id": 99, "type": "pointer_expression", "text": "&fileNames", "parent": 96, "children": [100], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 76}}, {"id": 100, "type": "identifier", "text": "fileNames", "parent": 99, "children": [], "start_point": {"row": 24, "column": 67}, "end_point": {"row": 24, "column": 76}}, {"id": 101, "type": "ERROR", "text": "int", "parent": 89, "children": [102], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 102, "type": "identifier", "text": "int", "parent": 101, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 103, "type": "assignment_expression", "text": "flag = 0", "parent": 89, "children": [104, 105, 106], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 14}}, {"id": 104, "type": "identifier", "text": "flag", "parent": 103, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 105, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 106, "type": "number_literal", "text": "0", "parent": 103, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 107, "type": "ERROR", "text": "bool", "parent": 89, "children": [108], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 108, "type": "identifier", "text": "bool", "parent": 107, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 109, "type": "assignment_expression", "text": "isAbsPath = false", "parent": 89, "children": [110, 111, 112], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 38}}, {"id": 110, "type": "identifier", "text": "isAbsPath", "parent": 109, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 30}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 32}}, {"id": 112, "type": "false", "text": "false", "parent": 109, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 38}}, {"id": 113, "type": "binary_expression", "text": "template<typename T>\n\tvoid registerLoader(ITypeLoader *loader)", "parent": 24, "children": [114, 118, 120, 121, 123], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 30, "column": 41}}, {"id": 114, "type": "binary_expression", "text": "template<typename", "parent": 113, "children": [115, 116, 117], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 18}}, {"id": 115, "type": "identifier", "text": "template", "parent": 114, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 116, "type": "<", "text": "<", "parent": 114, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 10}}, {"id": 117, "type": "identifier", "text": "typename", "parent": 114, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 18}}, {"id": 118, "type": "ERROR", "text": "T", "parent": 113, "children": [119], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 119, "type": "identifier", "text": "T", "parent": 118, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 120, "type": ">", "text": ">", "parent": 113, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 21}}, {"id": 121, "type": "ERROR", "text": "void", "parent": 113, "children": [122], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 122, "type": "identifier", "text": "void", "parent": 121, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 123, "type": "call_expression", "text": "registerLoader(ITypeLoader *loader)", "parent": 113, "children": [124, 125], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 41}}, {"id": 124, "type": "identifier", "text": "registerLoader", "parent": 123, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 20}}, {"id": 125, "type": "argument_list", "text": "(ITypeLoader *loader)", "parent": 123, "children": [126], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 41}}, {"id": 126, "type": "binary_expression", "text": "ITypeLoader *loader", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 40}}, {"id": 127, "type": "identifier", "text": "ITypeLoader", "parent": 126, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 32}}, {"id": 128, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 34}}, {"id": 129, "type": "identifier", "text": "loader", "parent": 126, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 40}}, {"id": 130, "type": "labeled_statement", "text": "private:\n\t// Map asset type to registered TypeLoaders.\n\tstd::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;", "parent": 24, "children": [131], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 77}}, {"id": 131, "type": "labeled_statement", "text": "std::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;", "parent": 130, "children": [132, 133], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 77}}, {"id": 132, "type": "statement_identifier", "text": "std", "parent": 131, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 4}}, {"id": 133, "type": "ERROR", "text": "::unordered_map<std::type_index, std:", "parent": 131, "children": [134, 138], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 41}}, {"id": 134, "type": "binary_expression", "text": "unordered_map<std", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 23}}, {"id": 135, "type": "identifier", "text": "unordered_map", "parent": 134, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 19}}, {"id": 136, "type": "<", "text": "<", "parent": 134, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 137, "type": "identifier", "text": "std", "parent": 134, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 23}}, {"id": 138, "type": "comma_expression", "text": "type_index, std", "parent": 133, "children": [139, 140], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 40}}, {"id": 139, "type": "identifier", "text": "type_index", "parent": 138, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 35}}, {"id": 140, "type": "identifier", "text": "std", "parent": 138, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 40}}, {"id": 141, "type": "binary_expression", "text": "unique_ptr<ITypeLoader>> m_loaders", "parent": 131, "children": [142, 143, 144], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 76}}, {"id": 142, "type": "identifier", "text": "unique_ptr", "parent": 141, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 52}}, {"id": 143, "type": "<", "text": "<", "parent": 141, "children": [], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 53}}, {"id": 144, "type": "binary_expression", "text": "ITypeLoader>> m_loaders", "parent": 141, "children": [145, 146, 147], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 76}}, {"id": 145, "type": "identifier", "text": "ITypeLoader", "parent": 144, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 64}}, {"id": 146, "type": ">>", "text": ">>", "parent": 144, "children": [], "start_point": {"row": 34, "column": 64}, "end_point": {"row": 34, "column": 66}}, {"id": 147, "type": "identifier", "text": "m_loaders", "parent": 144, "children": [], "start_point": {"row": 34, "column": 67}, "end_point": {"row": 34, "column": 76}}, {"id": 148, "type": "ERROR", "text": "template<typename T>\ninline std::shared_ptr<T> AssetLoader::", "parent": 0, "children": [149], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 39}}, {"id": 149, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr<T> AssetLoader", "parent": 148, "children": [150, 165, 166], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 37}}, {"id": 150, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr<T", "parent": 149, "children": [151, 163, 164], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 24}}, {"id": 151, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr", "parent": 150, "children": [152, 156, 158, 159, 162], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 22}}, {"id": 152, "type": "binary_expression", "text": "template<typename", "parent": 151, "children": [153, 154, 155], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 17}}, {"id": 153, "type": "identifier", "text": "template", "parent": 152, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 154, "type": "<", "text": "<", "parent": 152, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 155, "type": "identifier", "text": "typename", "parent": 152, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 156, "type": "ERROR", "text": "T", "parent": 151, "children": [157], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 157, "type": "identifier", "text": "T", "parent": 156, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 158, "type": ">", "text": ">", "parent": 151, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 159, "type": "ERROR", "text": "inline std::", "parent": 151, "children": [160, 161], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 12}}, {"id": 160, "type": "identifier", "text": "inline", "parent": 159, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 161, "type": "identifier", "text": "std", "parent": 159, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 10}}, {"id": 162, "type": "identifier", "text": "shared_ptr", "parent": 151, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 22}}, {"id": 163, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 164, "type": "identifier", "text": "T", "parent": 150, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 165, "type": ">", "text": ">", "parent": 149, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 166, "type": "identifier", "text": "AssetLoader", "parent": 149, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 37}}, {"id": 167, "type": "identifier", "text": "load", "parent": 0, "children": [], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 43}}, {"id": 168, "type": "ERROR", "text": "(const std:", "parent": 0, "children": [169], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 54}}, {"id": 169, "type": "type_descriptor", "text": "const std", "parent": 168, "children": [170], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 53}}, {"id": 170, "type": "type_identifier", "text": "std", "parent": 169, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 53}}, {"id": 171, "type": "ERROR", "text": "string &fileName, \n\tint flag, bool isAbsPath)", "parent": 0, "children": [172, 181], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 39, "column": 26}}, {"id": 172, "type": "comma_expression", "text": "string &fileName, \n\tint flag, bool", "parent": 171, "children": [173, 176, 178], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 39, "column": 15}}, {"id": 173, "type": "binary_expression", "text": "string &fileName", "parent": 172, "children": [174, 175], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 38, "column": 71}}, {"id": 174, "type": "identifier", "text": "string", "parent": 173, "children": [], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 38, "column": 61}}, {"id": 175, "type": "identifier", "text": "fileName", "parent": 173, "children": [], "start_point": {"row": 38, "column": 63}, "end_point": {"row": 38, "column": 71}}, {"id": 176, "type": "ERROR", "text": "int", "parent": 172, "children": [177], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 177, "type": "identifier", "text": "int", "parent": 176, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 178, "type": "comma_expression", "text": "flag, bool", "parent": 172, "children": [179, 180], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 15}}, {"id": 179, "type": "identifier", "text": "flag", "parent": 178, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 9}}, {"id": 180, "type": "identifier", "text": "bool", "parent": 178, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 181, "type": "identifier", "text": "isAbsPath", "parent": 171, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 25}}, {"id": 182, "type": "return_statement", "text": "return load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath)", "parent": 0, "children": [183], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 46, "column": 26}}, {"id": 183, "type": "binary_expression", "text": "load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath)", "parent": 182, "children": [184, 188, 189], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 46, "column": 26}}, {"id": 184, "type": "binary_expression", "text": "load<T", "parent": 183, "children": [185, 186, 187], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 185, "type": "identifier", "text": "load", "parent": 184, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 186, "type": "<", "text": "<", "parent": 184, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 187, "type": "identifier", "text": "T", "parent": 184, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 14}}, {"id": 188, "type": ">", "text": ">", "parent": 183, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 189, "type": "parenthesized_expression", "text": "({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath)", "parent": 183, "children": [190, 214], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 46, "column": 26}}, {"id": 190, "type": "ERROR", "text": "{ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::", "parent": 189, "children": [196], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 45, "column": 39}}, {"id": 191, "type": "comma_expression", "text": "fileName }, flag, isAbsPath", "parent": 190, "children": [192, 193], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 45}}, {"id": 192, "type": "identifier", "text": "fileName", "parent": 191, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 26}}, {"id": 193, "type": "comma_expression", "text": "flag, isAbsPath", "parent": 191, "children": [194, 195], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 45}}, {"id": 194, "type": "identifier", "text": "flag", "parent": 193, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 34}}, {"id": 195, "type": "identifier", "text": "isAbsPath", "parent": 193, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 45}}, {"id": 196, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr<T> AssetLoader", "parent": 190, "children": [197, 212, 213], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 37}}, {"id": 197, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr<T", "parent": 196, "children": [198, 210, 211], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 24}}, {"id": 198, "type": "binary_expression", "text": "template<typename T>\ninline std::shared_ptr", "parent": 197, "children": [199, 203, 205, 206, 209], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 22}}, {"id": 199, "type": "binary_expression", "text": "template<typename", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 17}}, {"id": 200, "type": "identifier", "text": "template", "parent": 199, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 201, "type": "<", "text": "<", "parent": 199, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 202, "type": "identifier", "text": "typename", "parent": 199, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 17}}, {"id": 203, "type": "ERROR", "text": "T", "parent": 198, "children": [204], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 204, "type": "identifier", "text": "T", "parent": 203, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 205, "type": ">", "text": ">", "parent": 198, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 20}}, {"id": 206, "type": "ERROR", "text": "inline std::", "parent": 198, "children": [207, 208], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 12}}, {"id": 207, "type": "identifier", "text": "inline", "parent": 206, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 208, "type": "identifier", "text": "std", "parent": 206, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 10}}, {"id": 209, "type": "identifier", "text": "shared_ptr", "parent": 198, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 22}}, {"id": 210, "type": "<", "text": "<", "parent": 197, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 211, "type": "identifier", "text": "T", "parent": 197, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 24}}, {"id": 212, "type": ">", "text": ">", "parent": 196, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 25}}, {"id": 213, "type": "identifier", "text": "AssetLoader", "parent": 196, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 37}}, {"id": 214, "type": "comma_expression", "text": "load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath", "parent": 189, "children": [215, 228, 230], "start_point": {"row": 45, "column": 39}, "end_point": {"row": 46, "column": 25}}, {"id": 215, "type": "binary_expression", "text": "load(const std::initializer_list<std::string> &fileNames", "parent": 214, "children": [216, 217, 225, 226], "start_point": {"row": 45, "column": 39}, "end_point": {"row": 45, "column": 95}}, {"id": 216, "type": "identifier", "text": "load", "parent": 215, "children": [], "start_point": {"row": 45, "column": 39}, "end_point": {"row": 45, "column": 43}}, {"id": 217, "type": "ERROR", "text": "(const std::initializer_list<std::string", "parent": 215, "children": [218, 221, 222, 223, 224], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 83}}, {"id": 218, "type": "ERROR", "text": "const std::", "parent": 217, "children": [219], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 55}}, {"id": 219, "type": "type_descriptor", "text": "const std", "parent": 218, "children": [220], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 53}}, {"id": 220, "type": "type_identifier", "text": "std", "parent": 219, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 53}}, {"id": 221, "type": "identifier", "text": "initializer_list", "parent": 217, "children": [], "start_point": {"row": 45, "column": 55}, "end_point": {"row": 45, "column": 71}}, {"id": 222, "type": "<", "text": "<", "parent": 217, "children": [], "start_point": {"row": 45, "column": 71}, "end_point": {"row": 45, "column": 72}}, {"id": 223, "type": "identifier", "text": "std", "parent": 217, "children": [], "start_point": {"row": 45, "column": 72}, "end_point": {"row": 45, "column": 75}}, {"id": 224, "type": "identifier", "text": "string", "parent": 217, "children": [], "start_point": {"row": 45, "column": 77}, "end_point": {"row": 45, "column": 83}}, {"id": 225, "type": ">", "text": ">", "parent": 215, "children": [], "start_point": {"row": 45, "column": 83}, "end_point": {"row": 45, "column": 84}}, {"id": 226, "type": "pointer_expression", "text": "&fileNames", "parent": 215, "children": [227], "start_point": {"row": 45, "column": 85}, "end_point": {"row": 45, "column": 95}}, {"id": 227, "type": "identifier", "text": "fileNames", "parent": 226, "children": [], "start_point": {"row": 45, "column": 86}, "end_point": {"row": 45, "column": 95}}, {"id": 228, "type": "ERROR", "text": "int", "parent": 214, "children": [229], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 4}}, {"id": 229, "type": "identifier", "text": "int", "parent": 228, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 4}}, {"id": 230, "type": "comma_expression", "text": "flag, bool isAbsPath", "parent": 214, "children": [231, 232, 234], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 25}}, {"id": 231, "type": "identifier", "text": "flag", "parent": 230, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 9}}, {"id": 232, "type": "ERROR", "text": "bool", "parent": 230, "children": [233], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 15}}, {"id": 233, "type": "identifier", "text": "bool", "parent": 232, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 15}}, {"id": 234, "type": "identifier", "text": "isAbsPath", "parent": 230, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 25}}, {"id": 235, "type": "type_identifier", "text": "std", "parent": 0, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 10}}, {"id": 236, "type": "ERROR", "text": "::string", "parent": 0, "children": [237], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 18}}, {"id": 237, "type": "identifier", "text": "string", "parent": 236, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 238, "type": "identifier", "text": "fileName", "parent": 0, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 27}}, {"id": 239, "type": "pointer_expression", "text": "*fileNames.begin()", "parent": 0, "children": [240, 241], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 47}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 30}}, {"id": 241, "type": "call_expression", "text": "fileNames.begin()", "parent": 239, "children": [242, 244], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 47}}, {"id": 242, "type": "field_expression", "text": "fileNames.begin", "parent": 241, "children": [243], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 45}}, {"id": 243, "type": "identifier", "text": "fileNames", "parent": 242, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 39}}, {"id": 244, "type": "argument_list", "text": "()", "parent": 241, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 47}}, {"id": 245, "type": "identifier", "text": "std", "parent": 0, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 4}}, {"id": 246, "type": "ERROR", "text": ":type_index type", "parent": 0, "children": [247, 248], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 21}}, {"id": 247, "type": "type_identifier", "text": "type_index", "parent": 246, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 16}}, {"id": 248, "type": "identifier", "text": "type", "parent": 246, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 21}}, {"id": 249, "type": "labeled_statement", "text": "std::type_index(typeid(T)) };", "parent": 0, "children": [250], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 52}}, {"id": 250, "type": "statement_identifier", "text": "std", "parent": 249, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 26}}, {"id": 251, "type": "call_expression", "text": "type_index(typeid(T))", "parent": 249, "children": [252, 253], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 49}}, {"id": 252, "type": "identifier", "text": "type_index", "parent": 251, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 38}}, {"id": 253, "type": "argument_list", "text": "(typeid(T))", "parent": 251, "children": [254], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 49}}, {"id": 254, "type": "call_expression", "text": "typeid(T)", "parent": 253, "children": [255, 256], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 48}}, {"id": 255, "type": "identifier", "text": "typeid", "parent": 254, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 45}}, {"id": 256, "type": "argument_list", "text": "(T)", "parent": 254, "children": [257], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 48}}, {"id": 257, "type": "identifier", "text": "T", "parent": 256, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 258, "type": "storage_class_specifier", "text": "auto", "parent": 0, "children": [259], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 259, "type": "auto", "text": "auto", "parent": 258, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 260, "type": "type_identifier", "text": "loaderIt", "parent": 0, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 14}}, {"id": 261, "type": "identifier", "text": "", "parent": 0, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 14}}, {"id": 262, "type": "call_expression", "text": "m_loaders.find(type)", "parent": 0, "children": [263, 266], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 36}}, {"id": 263, "type": "field_expression", "text": "m_loaders.find", "parent": 262, "children": [264, 265], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 30}}, {"id": 264, "type": "identifier", "text": "m_loaders", "parent": 263, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 25}}, {"id": 265, "type": "field_identifier", "text": "find", "parent": 263, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 30}}, {"id": 266, "type": "argument_list", "text": "(type)", "parent": 262, "children": [267], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 36}}, {"id": 267, "type": "identifier", "text": "type", "parent": 266, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 35}}, {"id": 268, "type": "if_statement", "text": "if (loaderIt == m_loaders.end())\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}", "parent": 0, "children": [269], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 58, "column": 2}}, {"id": 269, "type": "parenthesized_expression", "text": "(loaderIt == m_loaders.end())", "parent": 268, "children": [270], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 33}}, {"id": 270, "type": "binary_expression", "text": "loaderIt == m_loaders.end()", "parent": 269, "children": [271, 272, 273], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 32}}, {"id": 271, "type": "identifier", "text": "loaderIt", "parent": 270, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 13}}, {"id": 272, "type": "==", "text": "==", "parent": 270, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 273, "type": "call_expression", "text": "m_loaders.end()", "parent": 270, "children": [274, 276], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 32}}, {"id": 274, "type": "field_expression", "text": "m_loaders.end", "parent": 273, "children": [275], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 30}}, {"id": 275, "type": "identifier", "text": "m_loaders", "parent": 274, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 26}}, {"id": 276, "type": "argument_list", "text": "()", "parent": 273, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 32}}, {"id": 277, "type": "labeled_statement", "text": "std::cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std::endl;", "parent": 268, "children": [278, 279], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 56, "column": 35}}, {"id": 278, "type": "statement_identifier", "text": "std", "parent": 277, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 5}}, {"id": 279, "type": "ERROR", "text": "::cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std:", "parent": 277, "children": [280], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 56, "column": 29}}, {"id": 280, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std", "parent": 279, "children": [281, 291, 292], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 56, "column": 28}}, {"id": 281, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\"", "parent": 280, "children": [282, 289, 290], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 56, "column": 21}}, {"id": 282, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName", "parent": 281, "children": [283, 287, 288], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 56, "column": 14}}, {"id": 283, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not find TypeLoader for '\"", "parent": 282, "children": [284, 285, 286], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 67}}, {"id": 284, "type": "identifier", "text": "cout", "parent": 283, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 11}}, {"id": 285, "type": "<<", "text": "<<", "parent": 283, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 14}}, {"id": 286, "type": "string_literal", "text": "\"AssetLoader::load: Could not find TypeLoader for '\"", "parent": 283, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 67}}, {"id": 287, "type": "<<", "text": "<<", "parent": 282, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 5}}, {"id": 288, "type": "identifier", "text": "fileName", "parent": 282, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 14}}, {"id": 289, "type": "<<", "text": "<<", "parent": 281, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 17}}, {"id": 290, "type": "string_literal", "text": "\"'\"", "parent": 281, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 21}}, {"id": 291, "type": "<<", "text": "<<", "parent": 280, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 24}}, {"id": 292, "type": "identifier", "text": "std", "parent": 280, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 28}}, {"id": 293, "type": "identifier", "text": "endl", "parent": 277, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 34}}, {"id": 294, "type": "return_statement", "text": "return nullptr;", "parent": 268, "children": [295], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 17}}, {"id": 295, "type": "null", "text": "nullptr", "parent": 294, "children": [296], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 16}}, {"id": 296, "type": "nullptr", "text": "nullptr", "parent": 295, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 16}}, {"id": 297, "type": "labeled_statement", "text": "std::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, \n\t\tisAbsPath) };\n\tif (asset == nullptr)\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}\n\n\treturn std::dynamic_pointer_cast<T>(asset);\n}", "parent": 0, "children": [298, 299], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 71, "column": 1}}, {"id": 298, "type": "statement_identifier", "text": "std", "parent": 297, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 299, "type": "ERROR", "text": ":shared_ptr<IAsset> asset", "parent": 297, "children": [300], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 30}}, {"id": 300, "type": "binary_expression", "text": "shared_ptr<IAsset> asset", "parent": 299, "children": [301, 305, 306], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 30}}, {"id": 301, "type": "binary_expression", "text": "shared_ptr<IAsset", "parent": 300, "children": [302, 303, 304], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 23}}, {"id": 302, "type": "identifier", "text": "shared_ptr", "parent": 301, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 16}}, {"id": 303, "type": "<", "text": "<", "parent": 301, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 304, "type": "identifier", "text": "IAsset", "parent": 301, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 23}}, {"id": 305, "type": ">", "text": ">", "parent": 300, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 306, "type": "identifier", "text": "asset", "parent": 300, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 30}}, {"id": 307, "type": "call_expression", "text": "loaderIt->second->load(fileNames, flag, \n\t\tisAbsPath)", "parent": 297, "children": [308, 313], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 62, "column": 12}}, {"id": 308, "type": "field_expression", "text": "loaderIt->second->load", "parent": 307, "children": [309, 312], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 54}}, {"id": 309, "type": "field_expression", "text": "loaderIt->second", "parent": 308, "children": [310, 311], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 48}}, {"id": 310, "type": "identifier", "text": "loaderIt", "parent": 309, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 40}}, {"id": 311, "type": "field_identifier", "text": "second", "parent": 309, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 48}}, {"id": 312, "type": "field_identifier", "text": "load", "parent": 308, "children": [], "start_point": {"row": 61, "column": 50}, "end_point": {"row": 61, "column": 54}}, {"id": 313, "type": "argument_list", "text": "(fileNames, flag, \n\t\tisAbsPath)", "parent": 307, "children": [314, 315, 316], "start_point": {"row": 61, "column": 54}, "end_point": {"row": 62, "column": 12}}, {"id": 314, "type": "identifier", "text": "fileNames", "parent": 313, "children": [], "start_point": {"row": 61, "column": 55}, "end_point": {"row": 61, "column": 64}}, {"id": 315, "type": "identifier", "text": "flag", "parent": 313, "children": [], "start_point": {"row": 61, "column": 66}, "end_point": {"row": 61, "column": 70}}, {"id": 316, "type": "identifier", "text": "isAbsPath", "parent": 313, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 11}}, {"id": 317, "type": "if_statement", "text": "if (asset == nullptr)\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}", "parent": 297, "children": [318], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 68, "column": 2}}, {"id": 318, "type": "parenthesized_expression", "text": "(asset == nullptr)", "parent": 317, "children": [319], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 22}}, {"id": 319, "type": "binary_expression", "text": "asset == nullptr", "parent": 318, "children": [320, 321, 322], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 21}}, {"id": 320, "type": "identifier", "text": "asset", "parent": 319, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 10}}, {"id": 321, "type": "==", "text": "==", "parent": 319, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 13}}, {"id": 322, "type": "null", "text": "nullptr", "parent": 319, "children": [323], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 21}}, {"id": 323, "type": "nullptr", "text": "nullptr", "parent": 322, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 21}}, {"id": 324, "type": "labeled_statement", "text": "std::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std::endl;", "parent": 317, "children": [325, 326], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 66, "column": 35}}, {"id": 325, "type": "statement_identifier", "text": "std", "parent": 324, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 5}}, {"id": 326, "type": "ERROR", "text": "::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std:", "parent": 324, "children": [327], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 66, "column": 29}}, {"id": 327, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std", "parent": 326, "children": [328, 338, 339], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 66, "column": 28}}, {"id": 328, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\"", "parent": 327, "children": [329, 336, 337], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 66, "column": 21}}, {"id": 329, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName", "parent": 328, "children": [330, 334, 335], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 66, "column": 14}}, {"id": 330, "type": "binary_expression", "text": "cout << \"AssetLoader::load: Could not load '\"", "parent": 329, "children": [331, 332, 333], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 52}}, {"id": 331, "type": "identifier", "text": "cout", "parent": 330, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 11}}, {"id": 332, "type": "<<", "text": "<<", "parent": 330, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 14}}, {"id": 333, "type": "string_literal", "text": "\"AssetLoader::load: Could not load '\"", "parent": 330, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 52}}, {"id": 334, "type": "<<", "text": "<<", "parent": 329, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 5}}, {"id": 335, "type": "identifier", "text": "fileName", "parent": 329, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 14}}, {"id": 336, "type": "<<", "text": "<<", "parent": 328, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 17}}, {"id": 337, "type": "string_literal", "text": "\"'\"", "parent": 328, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 21}}, {"id": 338, "type": "<<", "text": "<<", "parent": 327, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 24}}, {"id": 339, "type": "identifier", "text": "std", "parent": 327, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 28}}, {"id": 340, "type": "identifier", "text": "endl", "parent": 324, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 34}}, {"id": 341, "type": "return_statement", "text": "return nullptr;", "parent": 317, "children": [342], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 17}}, {"id": 342, "type": "null", "text": "nullptr", "parent": 341, "children": [343], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 16}}, {"id": 343, "type": "nullptr", "text": "nullptr", "parent": 342, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 16}}, {"id": 344, "type": "return_statement", "text": "return std::dynamic_pointer_cast<T>(asset);", "parent": 297, "children": [345, 347], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 44}}, {"id": 345, "type": "ERROR", "text": "std::", "parent": 344, "children": [346], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 13}}, {"id": 346, "type": "identifier", "text": "std", "parent": 345, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 11}}, {"id": 347, "type": "binary_expression", "text": "dynamic_pointer_cast<T>(asset)", "parent": 344, "children": [348, 352, 353], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 43}}, {"id": 348, "type": "binary_expression", "text": "dynamic_pointer_cast<T", "parent": 347, "children": [349, 350, 351], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 35}}, {"id": 349, "type": "identifier", "text": "dynamic_pointer_cast", "parent": 348, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 33}}, {"id": 350, "type": "<", "text": "<", "parent": 348, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 34}}, {"id": 351, "type": "identifier", "text": "T", "parent": 348, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 352, "type": ">", "text": ">", "parent": 347, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 36}}, {"id": 353, "type": "parenthesized_expression", "text": "(asset)", "parent": 347, "children": [354], "start_point": {"row": 70, "column": 36}, "end_point": {"row": 70, "column": 43}}, {"id": 354, "type": "identifier", "text": "asset", "parent": 353, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 42}}, {"id": 355, "type": "binary_expression", "text": "template<typename T>\ninline", "parent": 0, "children": [356, 360, 362, 363], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 356, "type": "binary_expression", "text": "template<typename", "parent": 355, "children": [357, 358, 359], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 17}}, {"id": 357, "type": "identifier", "text": "template", "parent": 356, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 358, "type": "<", "text": "<", "parent": 356, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 359, "type": "identifier", "text": "typename", "parent": 356, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 17}}, {"id": 360, "type": "ERROR", "text": "T", "parent": 355, "children": [361], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 19}}, {"id": 361, "type": "identifier", "text": "T", "parent": 360, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 19}}, {"id": 362, "type": ">", "text": ">", "parent": 355, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 20}}, {"id": 363, "type": "identifier", "text": "inline", "parent": 355, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 364, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 11}}, {"id": 365, "type": "ERROR", "text": "AssetLoader::", "parent": 0, "children": [366], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 25}}, {"id": 366, "type": "identifier", "text": "AssetLoader", "parent": 365, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 23}}, {"id": 367, "type": "function_declarator", "text": "registerLoader(ITypeLoader *loader)", "parent": 0, "children": [368, 369], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 60}}, {"id": 368, "type": "identifier", "text": "registerLoader", "parent": 367, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 39}}, {"id": 369, "type": "parameter_list", "text": "(ITypeLoader *loader)", "parent": 367, "children": [370], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 60}}, {"id": 370, "type": "parameter_declaration", "text": "ITypeLoader *loader", "parent": 369, "children": [371, 372], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 59}}, {"id": 371, "type": "type_identifier", "text": "ITypeLoader", "parent": 370, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 51}}, {"id": 372, "type": "pointer_declarator", "text": "*loader", "parent": 370, "children": [373, 374], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 59}}, {"id": 373, "type": "*", "text": "*", "parent": 372, "children": [], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 53}}, {"id": 374, "type": "identifier", "text": "loader", "parent": 372, "children": [], "start_point": {"row": 74, "column": 53}, "end_point": {"row": 74, "column": 59}}, {"id": 375, "type": "labeled_statement", "text": "std::type_index type{ std::type_index(typeid(T)) };\n\tm_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}", "parent": 0, "children": [376, 377], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 78, "column": 1}}, {"id": 376, "type": "statement_identifier", "text": "std", "parent": 375, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 4}}, {"id": 377, "type": "ERROR", "text": ":type_index type", "parent": 375, "children": [378, 379], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 21}}, {"id": 378, "type": "type_identifier", "text": "type_index", "parent": 377, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 16}}, {"id": 379, "type": "identifier", "text": "type", "parent": 377, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 21}}, {"id": 380, "type": "labeled_statement", "text": "std::type_index(typeid(T)) };", "parent": 375, "children": [381], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 52}}, {"id": 381, "type": "statement_identifier", "text": "std", "parent": 380, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 26}}, {"id": 382, "type": "call_expression", "text": "type_index(typeid(T))", "parent": 380, "children": [383, 384], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 49}}, {"id": 383, "type": "identifier", "text": "type_index", "parent": 382, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 38}}, {"id": 384, "type": "argument_list", "text": "(typeid(T))", "parent": 382, "children": [385], "start_point": {"row": 76, "column": 38}, "end_point": {"row": 76, "column": 49}}, {"id": 385, "type": "call_expression", "text": "typeid(T)", "parent": 384, "children": [386, 387], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 48}}, {"id": 386, "type": "identifier", "text": "typeid", "parent": 385, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 45}}, {"id": 387, "type": "argument_list", "text": "(T)", "parent": 385, "children": [388], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 48}}, {"id": 388, "type": "identifier", "text": "T", "parent": 387, "children": [], "start_point": {"row": 76, "column": 46}, "end_point": {"row": 76, "column": 47}}, {"id": 389, "type": "call_expression", "text": "m_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) })", "parent": 375, "children": [390, 393], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 65}}, {"id": 390, "type": "field_expression", "text": "m_loaders.insert", "parent": 389, "children": [391, 392], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 17}}, {"id": 391, "type": "identifier", "text": "m_loaders", "parent": 390, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 392, "type": "field_identifier", "text": "insert", "parent": 390, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 17}}, {"id": 393, "type": "argument_list", "text": "({ type, std::unique_ptr<ITypeLoader>(loader) })", "parent": 389, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 65}}, {"id": 394, "type": "ERROR", "text": "type, std::unique_ptr<ITypeLoader>(loader)", "parent": 393, "children": [395, 398], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 62}}, {"id": 395, "type": "comma_expression", "text": "type, std", "parent": 394, "children": [396, 397], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 29}}, {"id": 396, "type": "identifier", "text": "type", "parent": 395, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 24}}, {"id": 397, "type": "identifier", "text": "std", "parent": 395, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 29}}, {"id": 398, "type": "binary_expression", "text": "unique_ptr<ITypeLoader>(loader)", "parent": 394, "children": [399, 403, 404], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 62}}, {"id": 399, "type": "binary_expression", "text": "unique_ptr<ITypeLoader", "parent": 398, "children": [400, 401, 402], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 53}}, {"id": 400, "type": "identifier", "text": "unique_ptr", "parent": 399, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 41}}, {"id": 401, "type": "<", "text": "<", "parent": 399, "children": [], "start_point": {"row": 77, "column": 41}, "end_point": {"row": 77, "column": 42}}, {"id": 402, "type": "identifier", "text": "ITypeLoader", "parent": 399, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 53}}, {"id": 403, "type": ">", "text": ">", "parent": 398, "children": [], "start_point": {"row": 77, "column": 53}, "end_point": {"row": 77, "column": 54}}, {"id": 404, "type": "parenthesized_expression", "text": "(loader)", "parent": 398, "children": [405], "start_point": {"row": 77, "column": 54}, "end_point": {"row": 77, "column": 62}}, {"id": 405, "type": "identifier", "text": "loader", "parent": 404, "children": [], "start_point": {"row": 77, "column": 55}, "end_point": {"row": 77, "column": 61}}]}, "node_categories": {"declarations": {"functions": [24, 29, 367], "variables": [22, 27, 32, 370], "classes": [258], "imports": [4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20], "modules": [], "enums": []}, "statements": {"expressions": [35, 36, 37, 38, 51, 56, 71, 72, 73, 74, 87, 92, 96, 99, 113, 114, 123, 126, 134, 138, 141, 144, 149, 150, 151, 152, 172, 173, 178, 183, 184, 189, 191, 193, 196, 197, 198, 199, 214, 215, 226, 230, 239, 241, 242, 251, 254, 262, 263, 269, 270, 273, 274, 280, 281, 282, 283, 300, 301, 307, 308, 309, 318, 319, 327, 328, 329, 330, 347, 348, 353, 355, 356, 382, 385, 389, 390, 395, 398, 399, 404], "assignments": [61, 67, 103, 109], "loops": [], "conditionals": [23, 25, 30, 34, 39, 41, 43, 45, 47, 49, 52, 55, 57, 58, 60, 62, 66, 68, 75, 77, 79, 81, 83, 85, 88, 91, 93, 95, 97, 100, 102, 104, 108, 110, 115, 117, 119, 122, 124, 127, 129, 132, 135, 137, 139, 140, 142, 145, 147, 153, 155, 157, 160, 161, 162, 164, 166, 167, 170, 174, 175, 177, 179, 180, 181, 185, 187, 192, 194, 195, 200, 202, 204, 207, 208, 209, 211, 213, 216, 220, 221, 223, 224, 227, 229, 231, 233, 234, 235, 237, 238, 243, 245, 247, 248, 250, 252, 255, 257, 260, 261, 264, 265, 267, 268, 271, 275, 278, 284, 288, 292, 293, 298, 302, 304, 306, 310, 311, 312, 314, 315, 316, 317, 320, 325, 331, 335, 339, 340, 346, 349, 351, 354, 357, 359, 361, 363, 366, 368, 371, 374, 376, 378, 379, 381, 383, 386, 388, 391, 392, 396, 397, 400, 402, 405], "returns": [182, 294, 341, 344], "exceptions": []}, "expressions": {"calls": [1], "literals": [6, 9, 12, 15, 18, 21, 64, 106, 286, 290, 333, 337], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "AssetLoader", "text_snippet": "class AssetLoader\n{\npublic:\n\t// Update the registered loaders.\n\tvoid update(float deltaTime);\n\n\t// L"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "update(float deltaTime)"}, {"node_id": 367, "universal_type": "function", "name": "unknown", "text_snippet": "registerLoader(ITypeLoader *loader)"}], "class_declarations": [{"node_id": 258, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 4, "text": "#include \"ITypeLoader.h\"\n"}, {"node_id": 5, "text": "#include"}, {"node_id": 7, "text": "#include <iostream>\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 10, "text": "#include <memory>\n"}, {"node_id": 11, "text": "#include"}, {"node_id": 13, "text": "#include <string>\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include <typeindex>\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include <unordered_map>\n"}, {"node_id": 20, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"ITypeLoader.h\"\n\n#include <iostream>\n#include <memory>\n#include <string>\n#include <typeindex>\n#include <unordered_map>\n\nclass IAsset;\n\nclass AssetLoader\n{\npublic:\n\t// Update the registered loaders.\n\tvoid update(float deltaTime);\n\n\t// Load an asset through its specific TypeLoader, given its type as \n\t// the template.\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::string &fileName, \n\t\tint flag = 0, bool isAbsPath = false);\n\ttemplate<typename T>\n\tstd::shared_ptr<T> load(const std::initializer_list<std::string> &fileNames, \n\t\tint flag = 0, bool isAbsPath = false);\n\n\t// Register a TypeLoader to use for loading assets of a specific asset \n\t// type. The asset type is specified in the template.\n\ttemplate<typename T>\n\tvoid registerLoader(ITypeLoader *loader);\n\nprivate:\n\t// Map asset type to registered TypeLoaders.\n\tstd::unordered_map<std::type_index, std::unique_ptr<ITypeLoader>> m_loaders;\n};\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::string &fileName, \n\tint flag, bool isAbsPath)\n{\n\treturn load<T>({ fileName }, flag, isAbsPath);\n}\n\ntemplate<typename T>\ninline std::shared_ptr<T> AssetLoader::load(const std::initializer_list<std::string> &fileNames, \n\tint flag, bool isAbsPath)\n{\n\tconst std::string fileName{ *fileNames.begin() };\n\n\t// Get the TypeLoader for this asset type.\n\tstd::type_index type{ std::type_index(typeid(T)) };\n\tauto loaderIt{ m_loaders.find(type) };\n\tif (loaderIt == m_loaders.end())\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not find TypeLoader for '\" \n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}\n\n\t// Use the TypeLoader to load the asset.\n\tstd::shared_ptr<IAsset> asset{ loaderIt->second->load(fileNames, flag, \n\t\tisAbsPath) };\n\tif (asset == nullptr)\n\t{\n\t\tstd::cout << \"AssetLoader::load: Could not load '\"\n\t\t\t<< fileName << \"'\" << std::endl;\n\t\treturn nullptr;\n\t}\n\n\treturn std::dynamic_pointer_cast<T>(asset);\n}\n\ntemplate<typename T>\ninline void AssetLoader::registerLoader(ITypeLoader *loader)\n{\n\tstd::type_index type{ std::type_index(typeid(T)) };\n\tm_loaders.insert({ type, std::unique_ptr<ITypeLoader>(loader) });\n}\n"}
158
c
// // BNRDrawViewController.h // TouchTracker // // Created by <NAME> on 1/9/14. // Copyright (c) 2014 Big Nerd Ranch. All rights reserved. // #import <Foundation/Foundation.h> @interface BNRDrawViewController : UIViewController - (void)saveState; - (void)loadState; @end
22
12
(translation_unit) "//\n// BNRDrawViewController.h\n// TouchTracker\n//\n// Created by <NAME> on 1/9/14.\n// Copyright (c) 2014 Big Nerd Ranch. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BNRDrawViewController : UIViewController\n\n- (void)saveState;\n- (void)loadState;\n\n@end\n" (comment) "//" (comment) "// BNRDrawViewController.h" (comment) "// TouchTracker" (comment) "//" (comment) "// Created by <NAME> on 1/9/14." (comment) "// Copyright (c) 2014 Big Nerd Ranch. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "@interface BNRDrawViewController : UIViewController" (ERROR) "@" (type_identifier) "interface" (identifier) "BNRDrawViewController" (:) ":" (identifier) "UIViewController" (expression_statement) "- (void)saveState;" (unary_expression) "- (void)saveState" (-) "-" (cast_expression) "(void)saveState" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "saveState" (;) ";" (expression_statement) "- (void)loadState;" (unary_expression) "- (void)loadState" (-) "-" (cast_expression) "(void)loadState" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "loadState" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
42
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.0, "nodes": 22, "errors": 0, "source_hash": "c865bc5d1b0d6f50772bffe791fff445dcb61db7bea4cb49d2c1977e55a6d3bf", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "@interface BNRDrawViewController : UIViewController", "parent": null, "children": [4, 5, 6, 7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 51}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "BNRDrawViewController", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 32}}, {"id": 7, "type": "identifier", "text": "UIViewController", "parent": 3, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 51}}, {"id": 8, "type": "unary_expression", "text": "- (void)saveState", "parent": null, "children": [9, 10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 17}}, {"id": 9, "type": "-", "text": "-", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "cast_expression", "text": "(void)saveState", "parent": 8, "children": [11, 13], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 17}}, {"id": 11, "type": "type_descriptor", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 13, "type": "identifier", "text": "saveState", "parent": 10, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 14, "type": "unary_expression", "text": "- (void)loadState", "parent": null, "children": [15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 17}}, {"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": "(void)loadState", "parent": 14, "children": [17, 19], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 17}}, {"id": 17, "type": "type_descriptor", "text": "void", "parent": 16, "children": [18], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 19, "type": "identifier", "text": "loadState", "parent": 16, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 17}}, {"id": 20, "type": "ERROR", "text": "@", "parent": null, "children": [21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 21, "type": "ERROR", "text": "@", "parent": 20, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [8, 10, 14, 16], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 13, 19], "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// BNRDrawViewController.h\n// TouchTracker\n//\n// Created by <NAME> on 1/9/14.\n// Copyright (c) 2014 Big Nerd Ranch. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BNRDrawViewController : UIViewController\n\n- (void)saveState;\n- (void)loadState;\n\n@end\n"}
159
c
/** * @File : darknet_shortcut.h * @Author : damone (<EMAIL>) * @Link : * @Date : 10/31/2018, 3:21:34 PM */ #ifndef _DARKNET_SHORTCUT_H #define _DARKNET_SHORTCUT_H #include "layer.h" namespace ncnn { ::ncnn::Layer *DarknetShortcut_layer_creator(); class DarknetShortcut : public Layer { public: DarknetShortcut(); virtual int load_param(const ParamDict &pd); virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const; public: float alpha; float beta; }; } // namespace ncnn #endif
22.17
24
(translation_unit) "/**\n * @File : darknet_shortcut.h\n * @Author : damone (<EMAIL>)\n * @Link :\n * @Date : 10/31/2018, 3:21:34 PM\n */\n\n#ifndef _DARKNET_SHORTCUT_H\n#define _DARKNET_SHORTCUT_H\n\n#include "layer.h"\n\nnamespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n} // namespace ncnn\n\n#endif" (comment) "/**\n * @File : darknet_shortcut.h\n * @Author : damone (<EMAIL>)\n * @Link :\n * @Date : 10/31/2018, 3:21:34 PM\n */" (preproc_ifdef) "#ifndef _DARKNET_SHORTCUT_H\n#define _DARKNET_SHORTCUT_H\n\n#include "layer.h"\n\nnamespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n} // namespace ncnn\n\n#endif" (#ifndef) "#ifndef" (identifier) "_DARKNET_SHORTCUT_H" (preproc_def) "#define _DARKNET_SHORTCUT_H\n" (#define) "#define" (identifier) "_DARKNET_SHORTCUT_H" (preproc_include) "#include "layer.h"\n" (#include) "#include" (string_literal) ""layer.h"" (") """ (string_content) "layer.h" (") """ (function_definition) "namespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n}" (type_identifier) "namespace" (identifier) "ncnn" (compound_statement) "{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n}" ({) "{" (ERROR) "::" (:) ":" (:) ":" (labeled_statement) "ncnn::Layer *DarknetShortcut_layer_creator();" (statement_identifier) "ncnn" (:) ":" (ERROR) ":" (:) ":" (declaration) "Layer *DarknetShortcut_layer_creator();" (type_identifier) "Layer" (pointer_declarator) "*DarknetShortcut_layer_creator()" (*) "*" (function_declarator) "DarknetShortcut_layer_creator()" (identifier) "DarknetShortcut_layer_creator" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "class DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n}" (type_identifier) "class" (identifier) "DarknetShortcut" (ERROR) ": public Layer" (:) ":" (identifier) "public" (identifier) "Layer" (compound_statement) "{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n}" ({) "{" (labeled_statement) "public:\n DarknetShortcut();" (statement_identifier) "public" (:) ":" (expression_statement) "DarknetShortcut();" (call_expression) "DarknetShortcut()" (identifier) "DarknetShortcut" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual int load_param(const ParamDict &pd);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "load_param(const ParamDict &pd)" (identifier) "load_param" (parameter_list) "(const ParamDict &pd)" (() "(" (parameter_declaration) "const ParamDict &pd" (type_qualifier) "const" (const) "const" (type_identifier) "ParamDict" (ERROR) "&" (&) "&" (identifier) "pd" ()) ")" (;) ";" (ERROR) "virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const" (identifier) "forward" (parameter_list) "(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt)" (() "(" (parameter_declaration) "const std::vector<Mat> &bottom_blobs" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<Mat> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Mat" (>) ">" (&) "&" (identifier) "bottom_blobs" (,) "," (parameter_declaration) "std::vector<Mat> &top_blobs" (type_identifier) "std" (ERROR) "::vector<Mat> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Mat" (>) ">" (&) "&" (identifier) "top_blobs" (,) "," (parameter_declaration) "const Option &opt" (type_qualifier) "const" (const) "const" (type_identifier) "Option" (ERROR) "&" (&) "&" (identifier) "opt" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "public:\n float alpha;" (statement_identifier) "public" (:) ":" (declaration) "float alpha;" (primitive_type) "float" (identifier) "alpha" (;) ";" (declaration) "float beta;" (primitive_type) "float" (identifier) "beta" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace ncnn" (#endif) "#endif"
135
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.17, "nodes": 73, "errors": 0, "source_hash": "cd863bea15c4402afefe217c80ac1b74a94adb76582ca8efbfa8ca2d1d095dd1", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _DARKNET_SHORTCUT_H\n#define _DARKNET_SHORTCUT_H\n\n#include \"layer.h\"\n\nnamespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n} // namespace ncnn\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 72], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 30, "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": "_DARKNET_SHORTCUT_H", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define _DARKNET_SHORTCUT_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "_DARKNET_SHORTCUT_H", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"layer.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": "\"layer.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 18}}, {"id": 9, "type": "function_definition", "text": "namespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 11, "type": "identifier", "text": "ncnn", "parent": 9, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 12, "type": "labeled_statement", "text": "ncnn::Layer *DarknetShortcut_layer_creator();", "parent": 9, "children": [13, 14], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 47}}, {"id": 13, "type": "statement_identifier", "text": "ncnn", "parent": 12, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 14, "type": "declaration", "text": "Layer *DarknetShortcut_layer_creator();", "parent": 12, "children": [15, 16], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 47}}, {"id": 15, "type": "type_identifier", "text": "Layer", "parent": 14, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 13}}, {"id": 16, "type": "pointer_declarator", "text": "*DarknetShortcut_layer_creator()", "parent": 14, "children": [17, 18], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 46}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 18, "type": "function_declarator", "text": "DarknetShortcut_layer_creator()", "parent": 16, "children": [19, 20], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 46}}, {"id": 19, "type": "identifier", "text": "DarknetShortcut_layer_creator", "parent": 18, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 44}}, {"id": 20, "type": "parameter_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 46}}, {"id": 21, "type": "function_definition", "text": "class DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n}", "parent": 9, "children": [22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 22, "type": "identifier", "text": "DarknetShortcut", "parent": 21, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 21}}, {"id": 23, "type": "ERROR", "text": ": public Layer", "parent": 21, "children": [24], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 36}}, {"id": 24, "type": "identifier", "text": "Layer", "parent": 23, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 36}}, {"id": 25, "type": "labeled_statement", "text": "public:\n DarknetShortcut();", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 20}}, {"id": 26, "type": "call_expression", "text": "DarknetShortcut()", "parent": 25, "children": [27, 28], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 19}}, {"id": 27, "type": "identifier", "text": "DarknetShortcut", "parent": 26, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 17}}, {"id": 28, "type": "argument_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 19}}, {"id": 29, "type": "declaration", "text": "virtual int load_param(const ParamDict &pd);", "parent": 21, "children": [30, 31, 33], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 46}}, {"id": 30, "type": "type_identifier", "text": "virtual", "parent": 29, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 9}}, {"id": 31, "type": "ERROR", "text": "int", "parent": 29, "children": [32], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 32, "type": "identifier", "text": "int", "parent": 31, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 33, "type": "function_declarator", "text": "load_param(const ParamDict &pd)", "parent": 29, "children": [34, 35], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 45}}, {"id": 34, "type": "identifier", "text": "load_param", "parent": 33, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 24}}, {"id": 35, "type": "parameter_list", "text": "(const ParamDict &pd)", "parent": 33, "children": [36], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 45}}, {"id": 36, "type": "parameter_declaration", "text": "const ParamDict &pd", "parent": 35, "children": [37, 38], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 44}}, {"id": 37, "type": "type_identifier", "text": "ParamDict", "parent": 36, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 40}}, {"id": 38, "type": "identifier", "text": "pd", "parent": 36, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 44}}, {"id": 39, "type": "ERROR", "text": "virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const", "parent": 21, "children": [40, 41, 43], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 113}}, {"id": 40, "type": "type_identifier", "text": "virtual", "parent": 39, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 41, "type": "ERROR", "text": "int", "parent": 39, "children": [42], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 42, "type": "identifier", "text": "int", "parent": 41, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 43, "type": "function_declarator", "text": "forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const", "parent": 39, "children": [44, 45], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 113}}, {"id": 44, "type": "identifier", "text": "forward", "parent": 43, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 21}}, {"id": 45, "type": "parameter_list", "text": "(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt)", "parent": 43, "children": [46, 54, 62], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 107}}, {"id": 46, "type": "parameter_declaration", "text": "const std::vector<Mat> &bottom_blobs", "parent": 45, "children": [47, 48, 53], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 58}}, {"id": 47, "type": "type_identifier", "text": "std", "parent": 46, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 31}}, {"id": 48, "type": "ERROR", "text": "::vector<Mat> &", "parent": 46, "children": [49, 50, 51, 52], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 46}}, {"id": 49, "type": "identifier", "text": "vector", "parent": 48, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 39}}, {"id": 50, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 51, "type": "identifier", "text": "Mat", "parent": 48, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 43}}, {"id": 52, "type": ">", "text": ">", "parent": 48, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 44}}, {"id": 53, "type": "identifier", "text": "bottom_blobs", "parent": 46, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 58}}, {"id": 54, "type": "parameter_declaration", "text": "std::vector<Mat> &top_blobs", "parent": 45, "children": [55, 56, 61], "start_point": {"row": 21, "column": 60}, "end_point": {"row": 21, "column": 87}}, {"id": 55, "type": "type_identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 21, "column": 60}, "end_point": {"row": 21, "column": 63}}, {"id": 56, "type": "ERROR", "text": "::vector<Mat> &", "parent": 54, "children": [57, 58, 59, 60], "start_point": {"row": 21, "column": 63}, "end_point": {"row": 21, "column": 78}}, {"id": 57, "type": "identifier", "text": "vector", "parent": 56, "children": [], "start_point": {"row": 21, "column": 65}, "end_point": {"row": 21, "column": 71}}, {"id": 58, "type": "<", "text": "<", "parent": 56, "children": [], "start_point": {"row": 21, "column": 71}, "end_point": {"row": 21, "column": 72}}, {"id": 59, "type": "identifier", "text": "Mat", "parent": 56, "children": [], "start_point": {"row": 21, "column": 72}, "end_point": {"row": 21, "column": 75}}, {"id": 60, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 21, "column": 75}, "end_point": {"row": 21, "column": 76}}, {"id": 61, "type": "identifier", "text": "top_blobs", "parent": 54, "children": [], "start_point": {"row": 21, "column": 78}, "end_point": {"row": 21, "column": 87}}, {"id": 62, "type": "parameter_declaration", "text": "const Option &opt", "parent": 45, "children": [63, 64], "start_point": {"row": 21, "column": 89}, "end_point": {"row": 21, "column": 106}}, {"id": 63, "type": "type_identifier", "text": "Option", "parent": 62, "children": [], "start_point": {"row": 21, "column": 95}, "end_point": {"row": 21, "column": 101}}, {"id": 64, "type": "identifier", "text": "opt", "parent": 62, "children": [], "start_point": {"row": 21, "column": 103}, "end_point": {"row": 21, "column": 106}}, {"id": 65, "type": "labeled_statement", "text": "public:\n float alpha;", "parent": 21, "children": [66], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 14}}, {"id": 66, "type": "declaration", "text": "float alpha;", "parent": 65, "children": [67, 68], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 14}}, {"id": 67, "type": "primitive_type", "text": "float", "parent": 66, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 7}}, {"id": 68, "type": "identifier", "text": "alpha", "parent": 66, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 13}}, {"id": 69, "type": "declaration", "text": "float beta;", "parent": 21, "children": [70, 71], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 70, "type": "primitive_type", "text": "float", "parent": 69, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 7}}, {"id": 71, "type": "identifier", "text": "beta", "parent": 69, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 72, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 18, 21, 33, 43], "variables": [14, 29, 36, 46, 54, 62, 66, 69], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [26], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 15, 19, 22, 24, 27, 30, 32, 34, 37, 38, 40, 42, 44, 47, 49, 51, 53, 55, 57, 59, 61, 63, 64, 68, 71, 72], "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": "DarknetShortcut", "text_snippet": "namespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Lay"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "DarknetShortcut_layer_creator()"}, {"node_id": 21, "universal_type": "function", "name": "DarknetShortcut", "text_snippet": "class DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const P"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "load_param(const ParamDict &pd)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"layer.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/**\n * @File : darknet_shortcut.h\n * @Author : damone (<EMAIL>)\n * @Link :\n * @Date : 10/31/2018, 3:21:34 PM\n */\n\n#ifndef _DARKNET_SHORTCUT_H\n#define _DARKNET_SHORTCUT_H\n\n#include \"layer.h\"\n\nnamespace ncnn\n{\n\n::ncnn::Layer *DarknetShortcut_layer_creator();\nclass DarknetShortcut : public Layer\n{\npublic:\n DarknetShortcut();\n virtual int load_param(const ParamDict &pd);\n virtual int forward(const std::vector<Mat> &bottom_blobs, std::vector<Mat> &top_blobs, const Option &opt) const;\n\npublic:\n float alpha;\n float beta;\n};\n\n} // namespace ncnn\n\n#endif"}
160
c
// // ExtraResponderTableViewCell.h // Ripple // // Created by <NAME> on 21/03/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "Responder.h" @protocol ResponderChange <NSObject> // Responder change // @param responder responder item that has changed -(void) responderChanged:(Responder * _Nullable) responder; @end @interface ExtraResponderTableViewCell : UITableViewCell { // Description label IBOutlet UILabel * _lblDescription; // Title label IBOutlet UILabel * _lblTitle; }; @property (weak, nonatomic) id<ResponderChange> delegate; // UI switch @property IBOutlet UISwitch * _Nonnull swtchEnabled; /** set the responder that we're presenting @param responder that we're showing */ -(void) setResponder:(Responder * _Nonnull) responder; /** Get the cell height @return cell height */ +(NSInteger) getHeight; @end
22.68
38
(translation_unit) "//\n// ExtraResponderTableViewCell.h\n// Ripple\n//\n// Created by <NAME> on 21/03/2016.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Responder.h"\n\n@protocol ResponderChange <NSObject>\n\n// Responder change\n// @param responder responder item that has changed\n-(void) responderChanged:(Responder * _Nullable) responder;\n\n@end\n\n@interface ExtraResponderTableViewCell : UITableViewCell {\n // Description label\n IBOutlet UILabel * _lblDescription;\n \n // Title label\n IBOutlet UILabel * _lblTitle;\n \n\n};\n\n@property (weak, nonatomic) id<ResponderChange> delegate;\n\n// UI switch\n@property IBOutlet UISwitch * _Nonnull swtchEnabled;\n\n/** set the responder that we're presenting\n \n @param responder that we're showing\n */\n-(void) setResponder:(Responder * _Nonnull) responder;\n\n/**\n Get the cell height\n \n @return cell height\n */\n+(NSInteger) getHeight;\n\n\n@end\n" (comment) "//" (comment) "// ExtraResponderTableViewCell.h" (comment) "// Ripple" (comment) "//" (comment) "// Created by <NAME> on 21/03/2016." (comment) "// Copyright © 2016 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n#" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (preproc_call) "import "Responder.h"\n\n" (preproc_directive) "import " (preproc_arg) "Responder.h"\n" (ERROR) "protocol ResponderChange <NSObject>\n" (ERROR) "p" (type_identifier) "rotocol " (identifier) "esponderChange " (<) "N" (identifier) "SObject>" (>) "\n" (comment) "/ Responder change\n" (comment) "/ @param responder responder item that has changed\n" (ERROR) "(void) responderChanged:(Responder * _Nullable) " (binary_expression) "(void) responderChanged:(Responder * _Nullable)" (unary_expression) "(void) responderChanged:" (-) "(" (cast_expression) "void) responderChanged:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) " " (identifier) "esponderChanged:" (ERROR) "(Responder " (:) "(" (() "R" (identifier) "esponder " (*) " " (identifier) "Nullable)" ()) " " (expression_statement) "esponder;\n" (identifier) "esponder;" (;) "\n" (ERROR) "e" (ERROR) "e" (declaration) "nd\n\n@interface " (type_identifier) "nd\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "xtraResponderTableViewCell : UITableViewCell " (statement_identifier) "xtraResponderTableViewCell " (:) " " (expression_statement) "ITableViewCell " (identifier) "ITableViewCell " (;) "" (compound_statement) "\n // Description label\n IBOutlet UILabel * _lblDescription;\n \n // Title label\n IBOutlet UILabel * _lblTitle;\n \n\n};" ({) "\n" (comment) "/ Description label\n" (declaration) "BOutlet UILabel * _lblDescription;\n" (type_identifier) "BOutlet " (ERROR) "ILabel " (identifier) "ILabel " (pointer_declarator) " _lblDescription;" (*) " " (identifier) "lblDescription;" (;) "\n" (comment) "/ Title label\n" (declaration) "BOutlet UILabel * _lblTitle;\n" (type_identifier) "BOutlet " (ERROR) "ILabel " (identifier) "ILabel " (pointer_declarator) " _lblTitle;" (*) " " (identifier) "lblTitle;" (;) "\n" (}) ";" (expression_statement) "\n" (;) "\n" (ERROR) "property (weak, nonatomic) id<ResponderChange> delegate;" (ERROR) "p" (binary_expression) "roperty (weak, nonatomic) id<ResponderChange> delegate;" (binary_expression) "roperty (weak, nonatomic) id<ResponderChange>" (call_expression) "roperty (weak, nonatomic) " (identifier) "roperty " (argument_list) "weak, nonatomic) " (() "w" (identifier) "eak," (,) " " (identifier) "onatomic)" ()) " " (ERROR) "d<" (identifier) "d<" (<) "R" (identifier) "esponderChange>" (>) " " (identifier) "elegate;" (expression_statement) "\n" (;) "\n" (comment) "/ UI switch\n" (ERROR) "p" (ERROR) "p" (declaration) "roperty IBOutlet " (type_identifier) "roperty " (identifier) "BOutlet " (;) "" (declaration) "ISwitch * _Nonnull swtchEnabled;\n" (type_identifier) "ISwitch " (pointer_declarator) " _Nonnull swtchEnabled;" (*) " " (type_qualifier) "Nonnull " (_Nonnull) "Nonnull " (identifier) "wtchEnabled;" (;) "\n" (comment) "** set the responder that we're presenting\n \n @param responder that we're showing\n */\n" (ERROR) "(void) setResponder:(Responder * _Nonnull) " (binary_expression) "(void) setResponder:(Responder * _Nonnull)" (unary_expression) "(void) setResponder:" (-) "(" (cast_expression) "void) setResponder:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) " " (identifier) "etResponder:" (ERROR) "(Responder " (:) "(" (() "R" (identifier) "esponder " (*) " " (identifier) "Nonnull)" ()) " " (expression_statement) "esponder;\n" (identifier) "esponder;" (;) "\n" (comment) "**\n Get the cell height\n \n @return cell height\n */\n" (expression_statement) "(NSInteger) getHeight;\n" (unary_expression) "(NSInteger) getHeight;" (+) "(" (cast_expression) "NSInteger) getHeight;" (() "N" (type_descriptor) "SInteger)" (type_identifier) "SInteger)" ()) " " (identifier) "etHeight;" (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
152
19
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.68, "nodes": 94, "errors": 0, "source_hash": "0f4827680eebe82f66d007275f7bc0592a04cfee96cc3b060f4d27c05de312f8", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "preproc_call", "text": "import \"Responder.h\"\n\n", "parent": null, "children": [3], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "Responder.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 21}}, {"id": 4, "type": "ERROR", "text": "protocol ResponderChange <NSObject>\n", "parent": null, "children": [5, 6, 7, 8, 9, 10], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 36}}, {"id": 5, "type": "ERROR", "text": "p", "parent": 4, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "rotocol ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 7, "type": "identifier", "text": "esponderChange ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 25}}, {"id": 8, "type": "<", "text": "N", "parent": 4, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 27}}, {"id": 9, "type": "identifier", "text": "SObject>", "parent": 4, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 35}}, {"id": 10, "type": ">", "text": "\n", "parent": 4, "children": [], "start_point": {"row": 11, "column": 35}, "end_point": {"row": 11, "column": 36}}, {"id": 11, "type": "ERROR", "text": "(void) responderChanged:(Responder * _Nullable) ", "parent": null, "children": [12], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 48}}, {"id": 12, "type": "binary_expression", "text": "(void) responderChanged:(Responder * _Nullable)", "parent": 11, "children": [13, 18, 20, 21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 47}}, {"id": 13, "type": "unary_expression", "text": "(void) responderChanged:", "parent": 12, "children": [14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 24}}, {"id": 14, "type": "cast_expression", "text": "void) responderChanged:", "parent": 13, "children": [15, 17], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 24}}, {"id": 15, "type": "type_descriptor", "text": "oid)", "parent": 14, "children": [16], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 16, "type": "primitive_type", "text": "oid)", "parent": 15, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 17, "type": "identifier", "text": "esponderChanged:", "parent": 14, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 24}}, {"id": 18, "type": "ERROR", "text": "(Responder ", "parent": 12, "children": [19], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 35}}, {"id": 19, "type": "identifier", "text": "esponder ", "parent": 18, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 35}}, {"id": 20, "type": "*", "text": " ", "parent": 12, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 37}}, {"id": 21, "type": "identifier", "text": "Nullable)", "parent": 12, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 47}}, {"id": 22, "type": "identifier", "text": "esponder;", "parent": null, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 58}}, {"id": 23, "type": "ERROR", "text": "e", "parent": null, "children": [24], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 24, "type": "ERROR", "text": "e", "parent": 23, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 25, "type": "declaration", "text": "nd\n\n@interface ", "parent": null, "children": [26, 27, 29], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 19, "column": 10}}, {"id": 26, "type": "type_identifier", "text": "nd\n", "parent": 25, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 27, "type": "ERROR", "text": "i", "parent": 25, "children": [28], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 28, "type": "ERROR", "text": "i", "parent": 27, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 29, "type": "identifier", "text": "nterface ", "parent": 25, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 10}}, {"id": 30, "type": "labeled_statement", "text": "xtraResponderTableViewCell : UITableViewCell ", "parent": null, "children": [31], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 56}}, {"id": 31, "type": "statement_identifier", "text": "xtraResponderTableViewCell ", "parent": 30, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 38}}, {"id": 32, "type": "identifier", "text": "ITableViewCell ", "parent": 30, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 56}}, {"id": 33, "type": "declaration", "text": "BOutlet UILabel * _lblDescription;\n", "parent": null, "children": [34, 35, 37], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 39}}, {"id": 34, "type": "type_identifier", "text": "BOutlet ", "parent": 33, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 35, "type": "ERROR", "text": "ILabel ", "parent": 33, "children": [36], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 20}}, {"id": 36, "type": "identifier", "text": "ILabel ", "parent": 35, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 20}}, {"id": 37, "type": "pointer_declarator", "text": " _lblDescription;", "parent": 33, "children": [38, 39], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 38}}, {"id": 38, "type": "*", "text": " ", "parent": 37, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 22}}, {"id": 39, "type": "identifier", "text": "lblDescription;", "parent": 37, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 38}}, {"id": 40, "type": "declaration", "text": "BOutlet UILabel * _lblTitle;\n", "parent": null, "children": [41, 42, 44], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 33}}, {"id": 41, "type": "type_identifier", "text": "BOutlet ", "parent": 40, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 42, "type": "ERROR", "text": "ILabel ", "parent": 40, "children": [43], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 20}}, {"id": 43, "type": "identifier", "text": "ILabel ", "parent": 42, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 20}}, {"id": 44, "type": "pointer_declarator", "text": " _lblTitle;", "parent": 40, "children": [45, 46], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 32}}, {"id": 45, "type": "*", "text": " ", "parent": 44, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 22}}, {"id": 46, "type": "identifier", "text": "lblTitle;", "parent": 44, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 32}}, {"id": 47, "type": "ERROR", "text": "property (weak, nonatomic) id<ResponderChange> delegate;", "parent": null, "children": [48, 49], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 56}}, {"id": 48, "type": "ERROR", "text": "p", "parent": 47, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 49, "type": "binary_expression", "text": "roperty (weak, nonatomic) id<ResponderChange> delegate;", "parent": 47, "children": [50, 60, 61], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 56}}, {"id": 50, "type": "binary_expression", "text": "roperty (weak, nonatomic) id<ResponderChange>", "parent": 49, "children": [51, 56, 58, 59], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 46}}, {"id": 51, "type": "call_expression", "text": "roperty (weak, nonatomic) ", "parent": 50, "children": [52, 53], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 27}}, {"id": 52, "type": "identifier", "text": "roperty ", "parent": 51, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 53, "type": "argument_list", "text": "weak, nonatomic) ", "parent": 51, "children": [54, 55], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 27}}, {"id": 54, "type": "identifier", "text": "eak,", "parent": 53, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 15}}, {"id": 55, "type": "identifier", "text": "onatomic)", "parent": 53, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 26}}, {"id": 56, "type": "ERROR", "text": "d<", "parent": 50, "children": [57], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 30}}, {"id": 57, "type": "identifier", "text": "d<", "parent": 56, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 30}}, {"id": 58, "type": "<", "text": "R", "parent": 50, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 31}}, {"id": 59, "type": "identifier", "text": "esponderChange>", "parent": 50, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 46}}, {"id": 60, "type": ">", "text": " ", "parent": 49, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 47}}, {"id": 61, "type": "identifier", "text": "elegate;", "parent": 49, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 56}}, {"id": 62, "type": "ERROR", "text": "p", "parent": null, "children": [63], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 63, "type": "ERROR", "text": "p", "parent": 62, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 64, "type": "declaration", "text": "roperty IBOutlet ", "parent": null, "children": [65, 66], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 18}}, {"id": 65, "type": "type_identifier", "text": "roperty ", "parent": 64, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 9}}, {"id": 66, "type": "identifier", "text": "BOutlet ", "parent": 64, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 18}}, {"id": 67, "type": "declaration", "text": "ISwitch * _Nonnull swtchEnabled;\n", "parent": null, "children": [68, 69], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 52}}, {"id": 68, "type": "type_identifier", "text": "ISwitch ", "parent": 67, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 27}}, {"id": 69, "type": "pointer_declarator", "text": " _Nonnull swtchEnabled;", "parent": 67, "children": [70, 71, 73], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 51}}, {"id": 70, "type": "*", "text": " ", "parent": 69, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 29}}, {"id": 71, "type": "type_qualifier", "text": "Nonnull ", "parent": 69, "children": [72], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 38}}, {"id": 72, "type": "_Nonnull", "text": "Nonnull ", "parent": 71, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 38}}, {"id": 73, "type": "identifier", "text": "wtchEnabled;", "parent": 69, "children": [], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 51}}, {"id": 74, "type": "ERROR", "text": "(void) setResponder:(Responder * _Nonnull) ", "parent": null, "children": [75], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 43}}, {"id": 75, "type": "binary_expression", "text": "(void) setResponder:(Responder * _Nonnull)", "parent": 74, "children": [76, 81, 83, 84], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 42}}, {"id": 76, "type": "unary_expression", "text": "(void) setResponder:", "parent": 75, "children": [77], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 20}}, {"id": 77, "type": "cast_expression", "text": "void) setResponder:", "parent": 76, "children": [78, 80], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 20}}, {"id": 78, "type": "type_descriptor", "text": "oid)", "parent": 77, "children": [79], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 79, "type": "primitive_type", "text": "oid)", "parent": 78, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 80, "type": "identifier", "text": "etResponder:", "parent": 77, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 20}}, {"id": 81, "type": "ERROR", "text": "(Responder ", "parent": 75, "children": [82], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 31}}, {"id": 82, "type": "identifier", "text": "esponder ", "parent": 81, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 31}}, {"id": 83, "type": "*", "text": " ", "parent": 75, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 33}}, {"id": 84, "type": "identifier", "text": "Nonnull)", "parent": 75, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 42}}, {"id": 85, "type": "identifier", "text": "esponder;", "parent": null, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 53}}, {"id": 86, "type": "unary_expression", "text": "(NSInteger) getHeight;", "parent": null, "children": [87], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 22}}, {"id": 87, "type": "cast_expression", "text": "NSInteger) getHeight;", "parent": 86, "children": [88, 90], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 22}}, {"id": 88, "type": "type_descriptor", "text": "SInteger)", "parent": 87, "children": [89], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 11}}, {"id": 89, "type": "type_identifier", "text": "SInteger)", "parent": 88, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 11}}, {"id": 90, "type": "identifier", "text": "etHeight;", "parent": 87, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 22}}, {"id": 91, "type": "ERROR", "text": "e", "parent": null, "children": [92], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 92, "type": "ERROR", "text": "e", "parent": 91, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 93, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [25, 33, 40, 64, 67], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [12, 13, 14, 49, 50, 51, 75, 76, 77, 86, 87], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 17, 19, 21, 22, 26, 29, 31, 32, 34, 36, 39, 41, 43, 46, 52, 54, 55, 57, 59, 61, 65, 66, 68, 71, 73, 80, 82, 84, 85, 89, 90, 93], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ExtraResponderTableViewCell.h\n// Ripple\n//\n// Created by <NAME> on 21/03/2016.\n// Copyright \u00a9 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"Responder.h\"\n\n@protocol ResponderChange <NSObject>\n\n// Responder change\n// @param responder responder item that has changed\n-(void) responderChanged:(Responder * _Nullable) responder;\n\n@end\n\n@interface ExtraResponderTableViewCell : UITableViewCell {\n // Description label\n IBOutlet UILabel * _lblDescription;\n \n // Title label\n IBOutlet UILabel * _lblTitle;\n \n\n};\n\n@property (weak, nonatomic) id<ResponderChange> delegate;\n\n// UI switch\n@property IBOutlet UISwitch * _Nonnull swtchEnabled;\n\n/** set the responder that we're presenting\n \n @param responder that we're showing\n */\n-(void) setResponder:(Responder * _Nonnull) responder;\n\n/**\n Get the cell height\n \n @return cell height\n */\n+(NSInteger) getHeight;\n\n\n@end\n"}
161
c
#include <phpcpp.h> #include "../include/aspose.h" #include "../include/aspose_php.h" using namespace System::Drawing; #ifndef SIZEF_H #define SIZEF_H namespace AsposePhp { class SizeF : public Php::Base { private: System::Drawing::SizeF _asposeObj; public: SizeF() = default; SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {}; virtual ~SizeF() {}; void __construct(Php::Parameters &params); Php::Value get_Width(); Php::Value get_Height(); }; } #endif
26.09
22
(translation_unit) "#include <phpcpp.h>\n#include "../include/aspose.h"\n#include "../include/aspose_php.h"\n\nusing namespace System::Drawing;\n\n#ifndef SIZEF_H\n#define SIZEF_H\n\nnamespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}\n\n#endif\n" (preproc_include) "#include <phpcpp.h>\n" (#include) "#include" (system_lib_string) "<phpcpp.h>" (preproc_include) "#include "../include/aspose.h"\n" (#include) "#include" (string_literal) ""../include/aspose.h"" (") """ (string_content) "../include/aspose.h" (") """ (preproc_include) "#include "../include/aspose_php.h"\n" (#include) "#include" (string_literal) ""../include/aspose_php.h"" (") """ (string_content) "../include/aspose_php.h" (") """ (declaration) "using namespace" (type_identifier) "using" (identifier) "namespace" (;) "" (labeled_statement) "System::Drawing;" (statement_identifier) "System" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "Drawing;" (identifier) "Drawing" (;) ";" (preproc_ifdef) "#ifndef SIZEF_H\n#define SIZEF_H\n\nnamespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "SIZEF_H" (preproc_def) "#define SIZEF_H\n" (#define) "#define" (identifier) "SIZEF_H" (function_definition) "namespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}" (type_identifier) "namespace" (identifier) "AsposePhp" (compound_statement) "{\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}" ({) "{" (declaration) "class SizeF : public" (type_identifier) "class" (ERROR) "SizeF :" (identifier) "SizeF" (:) ":" (identifier) "public" (;) "" (labeled_statement) "Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n }" (statement_identifier) "Php" (:) ":" (ERROR) ":Base" (:) ":" (identifier) "Base" (compound_statement) "{\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n }" ({) "{" (labeled_statement) "private: \n System::Drawing::SizeF _asposeObj;" (statement_identifier) "private" (:) ":" (labeled_statement) "System::Drawing::SizeF _asposeObj;" (statement_identifier) "System" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "Drawing::SizeF _asposeObj;" (statement_identifier) "Drawing" (:) ":" (ERROR) ":" (:) ":" (declaration) "SizeF _asposeObj;" (type_identifier) "SizeF" (identifier) "_asposeObj" (;) ";" (labeled_statement) "public:\n SizeF() = default;" (statement_identifier) "public" (:) ":" (expression_statement) "SizeF() = default;" (assignment_expression) "SizeF() = default" (call_expression) "SizeF()" (identifier) "SizeF" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (labeled_statement) "SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {}" (statement_identifier) "SizeF" (ERROR) "(System:" (() "(" (type_descriptor) "System" (type_identifier) "System" (:) ":" (:) ":" (labeled_statement) "Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {}" (statement_identifier) "Drawing" (ERROR) "::SizeF asposeObj)" (:) ":" (:) ":" (type_identifier) "SizeF" (identifier) "asposeObj" ()) ")" (:) ":" (ERROR) "_asposeObj(asposeObj)" (macro_type_specifier) "_asposeObj(asposeObj)" (identifier) "_asposeObj" (() "(" (type_descriptor) "asposeObj" (type_identifier) "asposeObj" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual ~SizeF() {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "SizeF()" (identifier) "SizeF" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (declaration) "void __construct(Php::Parameters &params);" (primitive_type) "void" (function_declarator) "__construct(Php::Parameters &params)" (identifier) "__construct" (parameter_list) "(Php::Parameters &params)" (() "(" (parameter_declaration) "Php::Parameters &params" (type_identifier) "Php" (ERROR) "::Parameters &" (:) ":" (:) ":" (identifier) "Parameters" (&) "&" (identifier) "params" ()) ")" (;) ";" (labeled_statement) "Php::Value get_Width();" (statement_identifier) "Php" (:) ":" (ERROR) ":" (:) ":" (declaration) "Value get_Width();" (type_identifier) "Value" (function_declarator) "get_Width()" (identifier) "get_Width" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "Php::Value get_Height();" (statement_identifier) "Php" (:) ":" (ERROR) ":" (:) ":" (declaration) "Value get_Height();" (type_identifier) "Value" (function_declarator) "get_Height()" (identifier) "get_Height" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
174
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.09, "nodes": 93, "errors": 0, "source_hash": "dc9434b4a8a01316e0db171ea47e021d65e9c87e2791724facc1340d7039bed1", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <phpcpp.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": "<phpcpp.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"../include/aspose.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": "\"../include/aspose.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"../include/aspose_php.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": "\"../include/aspose_php.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 34}}, {"id": 9, "type": "declaration", "text": "using namespace", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 15}}, {"id": 10, "type": "type_identifier", "text": "using", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 5}}, {"id": 11, "type": "identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 15}}, {"id": 12, "type": "labeled_statement", "text": "System::Drawing;", "parent": null, "children": [13], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 32}}, {"id": 13, "type": "statement_identifier", "text": "System", "parent": 12, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 22}}, {"id": 14, "type": "identifier", "text": "Drawing", "parent": 12, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 31}}, {"id": 15, "type": "preproc_ifdef", "text": "#ifndef SIZEF_H\n#define SIZEF_H\n\nnamespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}\n\n#endif", "parent": null, "children": [16, 17, 18, 21, 92], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 16, "type": "#ifndef", "text": "#ifndef", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 17, "type": "identifier", "text": "SIZEF_H", "parent": 15, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 18, "type": "preproc_def", "text": "#define SIZEF_H\n", "parent": 15, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "identifier", "text": "SIZEF_H", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 15}}, {"id": 21, "type": "function_definition", "text": "namespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}", "parent": 15, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 23, "type": "identifier", "text": "AsposePhp", "parent": 21, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 19}}, {"id": 24, "type": "declaration", "text": "class SizeF : public", "parent": 21, "children": [25], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 24}}, {"id": 25, "type": "ERROR", "text": "SizeF :", "parent": 24, "children": [26], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 17}}, {"id": 26, "type": "identifier", "text": "SizeF", "parent": 25, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 15}}, {"id": 27, "type": "labeled_statement", "text": "Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n }", "parent": 21, "children": [28, 29], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 24, "column": 5}}, {"id": 28, "type": "statement_identifier", "text": "Php", "parent": 27, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 28}}, {"id": 29, "type": "ERROR", "text": ":Base", "parent": 27, "children": [30], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 34}}, {"id": 30, "type": "identifier", "text": "Base", "parent": 29, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 34}}, {"id": 31, "type": "labeled_statement", "text": "private: \n System::Drawing::SizeF _asposeObj;", "parent": 27, "children": [32], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 14, "column": 46}}, {"id": 32, "type": "labeled_statement", "text": "System::Drawing::SizeF _asposeObj;", "parent": 31, "children": [33, 34], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 46}}, {"id": 33, "type": "statement_identifier", "text": "System", "parent": 32, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 18}}, {"id": 34, "type": "labeled_statement", "text": "Drawing::SizeF _asposeObj;", "parent": 32, "children": [35, 36], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 46}}, {"id": 35, "type": "statement_identifier", "text": "Drawing", "parent": 34, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 27}}, {"id": 36, "type": "declaration", "text": "SizeF _asposeObj;", "parent": 34, "children": [37, 38], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 46}}, {"id": 37, "type": "type_identifier", "text": "SizeF", "parent": 36, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 34}}, {"id": 38, "type": "identifier", "text": "_asposeObj", "parent": 36, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 45}}, {"id": 39, "type": "labeled_statement", "text": "public:\n SizeF() = default;", "parent": 27, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 16, "column": 30}}, {"id": 40, "type": "assignment_expression", "text": "SizeF() = default", "parent": 39, "children": [41, 44, 45], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 29}}, {"id": 41, "type": "call_expression", "text": "SizeF()", "parent": 40, "children": [42, 43], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 19}}, {"id": 42, "type": "identifier", "text": "SizeF", "parent": 41, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 17}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 19}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 45, "type": "identifier", "text": "default", "parent": 40, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 29}}, {"id": 46, "type": "labeled_statement", "text": "SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {}", "parent": 27, "children": [47, 48, 51], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 78}}, {"id": 47, "type": "statement_identifier", "text": "SizeF", "parent": 46, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 17}}, {"id": 48, "type": "ERROR", "text": "(System:", "parent": 46, "children": [49], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 25}}, {"id": 49, "type": "type_descriptor", "text": "System", "parent": 48, "children": [50], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 24}}, {"id": 50, "type": "type_identifier", "text": "System", "parent": 49, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 24}}, {"id": 51, "type": "labeled_statement", "text": "Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {}", "parent": 46, "children": [52, 53, 56], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 78}}, {"id": 52, "type": "statement_identifier", "text": "Drawing", "parent": 51, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 33}}, {"id": 53, "type": "ERROR", "text": "::SizeF asposeObj)", "parent": 51, "children": [54, 55], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 51}}, {"id": 54, "type": "type_identifier", "text": "SizeF", "parent": 53, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 40}}, {"id": 55, "type": "identifier", "text": "asposeObj", "parent": 53, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 50}}, {"id": 56, "type": "ERROR", "text": "_asposeObj(asposeObj)", "parent": 51, "children": [57], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 75}}, {"id": 57, "type": "macro_type_specifier", "text": "_asposeObj(asposeObj)", "parent": 56, "children": [58, 59], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 75}}, {"id": 58, "type": "identifier", "text": "_asposeObj", "parent": 57, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 64}}, {"id": 59, "type": "type_descriptor", "text": "asposeObj", "parent": 57, "children": [60], "start_point": {"row": 17, "column": 65}, "end_point": {"row": 17, "column": 74}}, {"id": 60, "type": "type_identifier", "text": "asposeObj", "parent": 59, "children": [], "start_point": {"row": 17, "column": 65}, "end_point": {"row": 17, "column": 74}}, {"id": 61, "type": "function_definition", "text": "virtual ~SizeF() {}", "parent": 27, "children": [62, 63, 65], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 31}}, {"id": 62, "type": "type_identifier", "text": "virtual", "parent": 61, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 19}}, {"id": 63, "type": "ERROR", "text": "~", "parent": 61, "children": [64], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 64, "type": "~", "text": "~", "parent": 63, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 65, "type": "function_declarator", "text": "SizeF()", "parent": 61, "children": [66, 67], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 28}}, {"id": 66, "type": "identifier", "text": "SizeF", "parent": 65, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 26}}, {"id": 67, "type": "parameter_list", "text": "()", "parent": 65, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 28}}, {"id": 68, "type": "declaration", "text": "void __construct(Php::Parameters &params);", "parent": 27, "children": [69, 70], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 54}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 70, "type": "function_declarator", "text": "__construct(Php::Parameters &params)", "parent": 68, "children": [71, 72], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 53}}, {"id": 71, "type": "identifier", "text": "__construct", "parent": 70, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 28}}, {"id": 72, "type": "parameter_list", "text": "(Php::Parameters &params)", "parent": 70, "children": [73], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 53}}, {"id": 73, "type": "parameter_declaration", "text": "Php::Parameters &params", "parent": 72, "children": [74, 75, 77], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 52}}, {"id": 74, "type": "type_identifier", "text": "Php", "parent": 73, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 32}}, {"id": 75, "type": "ERROR", "text": "::Parameters &", "parent": 73, "children": [76], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 46}}, {"id": 76, "type": "identifier", "text": "Parameters", "parent": 75, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 44}}, {"id": 77, "type": "identifier", "text": "params", "parent": 73, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 52}}, {"id": 78, "type": "labeled_statement", "text": "Php::Value get_Width();", "parent": 27, "children": [79, 80], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 35}}, {"id": 79, "type": "statement_identifier", "text": "Php", "parent": 78, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 15}}, {"id": 80, "type": "declaration", "text": "Value get_Width();", "parent": 78, "children": [81, 82], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 35}}, {"id": 81, "type": "type_identifier", "text": "Value", "parent": 80, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 22}}, {"id": 82, "type": "function_declarator", "text": "get_Width()", "parent": 80, "children": [83, 84], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 34}}, {"id": 83, "type": "identifier", "text": "get_Width", "parent": 82, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 32}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 34}}, {"id": 85, "type": "labeled_statement", "text": "Php::Value get_Height();", "parent": 27, "children": [86, 87], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 36}}, {"id": 86, "type": "statement_identifier", "text": "Php", "parent": 85, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 87, "type": "declaration", "text": "Value get_Height();", "parent": 85, "children": [88, 89], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 36}}, {"id": 88, "type": "type_identifier", "text": "Value", "parent": 87, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 22}}, {"id": 89, "type": "function_declarator", "text": "get_Height()", "parent": 87, "children": [90, 91], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 35}}, {"id": 90, "type": "identifier", "text": "get_Height", "parent": 89, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 33}}, {"id": 91, "type": "parameter_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 35}}, {"id": 92, "type": "#endif", "text": "#endif", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 61, 65, 70, 82, 89], "variables": [9, 24, 36, 68, 73, 80, 87], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [41], "assignments": [40], "loops": [], "conditionals": [10, 11, 13, 14, 15, 16, 17, 20, 22, 23, 26, 28, 30, 33, 35, 37, 38, 42, 45, 47, 50, 52, 54, 55, 57, 58, 60, 62, 66, 71, 74, 76, 77, 79, 81, 83, 86, 88, 90, 92], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "SizeF", "text_snippet": "namespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~SizeF() {}"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "SizeF()"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "__construct(Php::Parameters &params)"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "get_Width()"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "get_Height()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <phpcpp.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"../include/aspose.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"../include/aspose_php.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <phpcpp.h>\n#include \"../include/aspose.h\"\n#include \"../include/aspose_php.h\"\n\nusing namespace System::Drawing;\n\n#ifndef SIZEF_H\n#define SIZEF_H\n\nnamespace AsposePhp {\n\n class SizeF : public Php::Base\n {\n private: \n System::Drawing::SizeF _asposeObj;\n public:\n SizeF() = default;\n SizeF(System::Drawing::SizeF asposeObj) : _asposeObj(asposeObj) {};\n virtual ~SizeF() {};\n \n void __construct(Php::Parameters &params);\n Php::Value get_Width();\n Php::Value get_Height();\n\n };\n\n}\n\n#endif\n"}
162
c
#pragma once #include "Graphics/API/Pipeline.h" namespace Lumos { namespace Graphics { class GLRenderPass; class CommandBuffer; class GLPipeline : public Pipeline { public: GLPipeline(const PipelineInfo& pipelineCI); ~GLPipeline(); bool Init(const PipelineInfo& pipelineCI); void Bind(Graphics::CommandBuffer* cmdBuffer) override; void BindVertexArray(); DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; } Shader* GetShader() const override { return m_Shader; } size_t GetStride() const override { return m_StrideSize; } static void MakeDefault(); protected: static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI); private: DescriptorSet* m_DescriptorSet = nullptr; Shader* m_Shader = nullptr; GLRenderPass* m_RenderPass; std::string pipelineName; bool m_TransparencyEnabled = false; u32 m_VertexArray = -1; std::vector<VertexInputDescription> m_VertexDescriptions; u32 m_StrideSize = 0; }; } }
29.9
41
(translation_unit) "#pragma once\n\n#include "Graphics/API/Pipeline.h"\n\nnamespace Lumos\n{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }\n}\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Graphics/API/Pipeline.h"\n" (#include) "#include" (string_literal) ""Graphics/API/Pipeline.h"" (") """ (string_content) "Graphics/API/Pipeline.h" (") """ (function_definition) "namespace Lumos\n{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }\n}" (type_identifier) "namespace" (identifier) "Lumos" (compound_statement) "{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }\n}" ({) "{" (function_definition) "namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }" (type_identifier) "namespace" (identifier) "Graphics" (compound_statement) "{\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }" ({) "{" (declaration) "class GLRenderPass;" (type_identifier) "class" (identifier) "GLRenderPass" (;) ";" (declaration) "class CommandBuffer;" (type_identifier) "class" (identifier) "CommandBuffer" (;) ";" (function_definition) "class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n }" (type_identifier) "class" (identifier) "GLPipeline" (ERROR) ": public Pipeline" (:) ":" (identifier) "public" (identifier) "Pipeline" (compound_statement) "{\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n \n DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n Shader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n DescriptorSet* m_DescriptorSet = nullptr;\n Shader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n }" ({) "{" (labeled_statement) "public:\n GLPipeline(const PipelineInfo& pipelineCI);" (statement_identifier) "public" (:) ":" (declaration) "GLPipeline(const PipelineInfo& pipelineCI);" (macro_type_specifier) "GLPipeline(const PipelineInfo& pipelineCI)" (identifier) "GLPipeline" (() "(" (type_descriptor) "const PipelineInfo" (type_qualifier) "const" (const) "const" (type_identifier) "PipelineInfo" (ERROR) "& pipelineCI" (&) "&" (identifier) "pipelineCI" ()) ")" (identifier) "" (;) ";" (expression_statement) "~GLPipeline();" (unary_expression) "~GLPipeline()" (~) "~" (call_expression) "GLPipeline()" (identifier) "GLPipeline" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool Init(const PipelineInfo& pipelineCI);" (primitive_type) "bool" (function_declarator) "Init(const PipelineInfo& pipelineCI)" (identifier) "Init" (parameter_list) "(const PipelineInfo& pipelineCI)" (() "(" (parameter_declaration) "const PipelineInfo& pipelineCI" (type_qualifier) "const" (const) "const" (type_identifier) "PipelineInfo" (ERROR) "&" (&) "&" (identifier) "pipelineCI" ()) ")" (;) ";" (ERROR) "void Bind(Graphics::CommandBuffer* cmdBuffer) override" (primitive_type) "void" (function_declarator) "Bind(Graphics::CommandBuffer* cmdBuffer) override" (identifier) "Bind" (parameter_list) "(Graphics::CommandBuffer* cmdBuffer)" (() "(" (parameter_declaration) "Graphics::CommandBuffer* cmdBuffer" (type_identifier) "Graphics" (ERROR) "::CommandBuffer" (:) ":" (:) ":" (identifier) "CommandBuffer" (pointer_declarator) "* cmdBuffer" (*) "*" (identifier) "cmdBuffer" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (declaration) "void BindVertexArray();" (primitive_type) "void" (function_declarator) "BindVertexArray()" (identifier) "BindVertexArray" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }" (type_identifier) "DescriptorSet" (pointer_declarator) "* GetDescriptorSet() const override" (*) "*" (function_declarator) "GetDescriptorSet() const override" (identifier) "GetDescriptorSet" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (compound_statement) "{ return m_DescriptorSet; }" ({) "{" (return_statement) "return m_DescriptorSet;" (return) "return" (identifier) "m_DescriptorSet" (;) ";" (}) "}" (function_definition) "Shader* GetShader() const override { return m_Shader; }" (type_identifier) "Shader" (pointer_declarator) "* GetShader() const override" (*) "*" (function_declarator) "GetShader() const override" (identifier) "GetShader" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (compound_statement) "{ return m_Shader; }" ({) "{" (return_statement) "return m_Shader;" (return) "return" (identifier) "m_Shader" (;) ";" (}) "}" (ERROR) "size_t GetStride() const override" (primitive_type) "size_t" (function_declarator) "GetStride()" (identifier) "GetStride" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "override" (compound_statement) "{\n return m_StrideSize;\n }" ({) "{" (return_statement) "return m_StrideSize;" (return) "return" (identifier) "m_StrideSize" (;) ";" (}) "}" (declaration) "static void MakeDefault();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "MakeDefault()" (identifier) "MakeDefault" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);" (statement_identifier) "protected" (:) ":" (declaration) "static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Pipeline" (pointer_declarator) "* CreateFuncGL(const PipelineInfo& pipelineCI)" (*) "*" (function_declarator) "CreateFuncGL(const PipelineInfo& pipelineCI)" (identifier) "CreateFuncGL" (parameter_list) "(const PipelineInfo& pipelineCI)" (() "(" (parameter_declaration) "const PipelineInfo& pipelineCI" (type_qualifier) "const" (const) "const" (type_identifier) "PipelineInfo" (ERROR) "&" (&) "&" (identifier) "pipelineCI" ()) ")" (;) ";" (labeled_statement) "private:\n DescriptorSet* m_DescriptorSet = nullptr;" (statement_identifier) "private" (:) ":" (declaration) "DescriptorSet* m_DescriptorSet = nullptr;" (type_identifier) "DescriptorSet" (init_declarator) "* m_DescriptorSet = nullptr" (pointer_declarator) "* m_DescriptorSet" (*) "*" (identifier) "m_DescriptorSet" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Shader* m_Shader = nullptr;" (type_identifier) "Shader" (init_declarator) "* m_Shader = nullptr" (pointer_declarator) "* m_Shader" (*) "*" (identifier) "m_Shader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "GLRenderPass* m_RenderPass;" (type_identifier) "GLRenderPass" (pointer_declarator) "* m_RenderPass" (*) "*" (identifier) "m_RenderPass" (;) ";" (labeled_statement) "std::string pipelineName;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string pipelineName;" (type_identifier) "string" (identifier) "pipelineName" (;) ";" (declaration) "bool m_TransparencyEnabled = false;" (primitive_type) "bool" (init_declarator) "m_TransparencyEnabled = false" (identifier) "m_TransparencyEnabled" (=) "=" (false) "false" (;) ";" (declaration) "u32 m_VertexArray = -1;" (type_identifier) "u32" (init_declarator) "m_VertexArray = -1" (identifier) "m_VertexArray" (=) "=" (number_literal) "-1" (;) ";" (labeled_statement) "std::vector<VertexInputDescription> m_VertexDescriptions;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VertexInputDescription> m_VertexDescriptions;" (binary_expression) "vector<VertexInputDescription> m_VertexDescriptions" (binary_expression) "vector<VertexInputDescription" (identifier) "vector" (<) "<" (identifier) "VertexInputDescription" (>) ">" (identifier) "m_VertexDescriptions" (;) ";" (declaration) "u32 m_StrideSize = 0;" (type_identifier) "u32" (init_declarator) "m_StrideSize = 0" (identifier) "m_StrideSize" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}"
268
9
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.9, "nodes": 160, "errors": 0, "source_hash": "164b97e5192613214c9246bd15ea058f4a9ccf96c4bd149e8d4b71de074805a8", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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 \"Graphics/API/Pipeline.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": "\"Graphics/API/Pipeline.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 34}}, {"id": 6, "type": "function_definition", "text": "namespace Lumos\n{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n\t\t\t\n\t\t\tDescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n\t\t\tShader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n\t\t\tDescriptorSet* m_DescriptorSet = nullptr;\n\t\t\tShader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 8, "type": "identifier", "text": "Lumos", "parent": 6, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 15}}, {"id": 9, "type": "function_definition", "text": "namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n\t\t\t\n\t\t\tDescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n\t\t\tShader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n\t\t\tDescriptorSet* m_DescriptorSet = nullptr;\n\t\t\tShader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }", "parent": 6, "children": [10, 11], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 13}}, {"id": 11, "type": "identifier", "text": "Graphics", "parent": 9, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 22}}, {"id": 12, "type": "declaration", "text": "class GLRenderPass;", "parent": 9, "children": [13], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 13, "type": "identifier", "text": "GLRenderPass", "parent": 12, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 26}}, {"id": 14, "type": "declaration", "text": "class CommandBuffer;", "parent": 9, "children": [15], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 28}}, {"id": 15, "type": "identifier", "text": "CommandBuffer", "parent": 14, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 27}}, {"id": 16, "type": "function_definition", "text": "class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n\t\t\t\n\t\t\tDescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n\t\t\tShader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n\t\t\tDescriptorSet* m_DescriptorSet = nullptr;\n\t\t\tShader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n }", "parent": 9, "children": [17, 18], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 43, "column": 9}}, {"id": 17, "type": "identifier", "text": "GLPipeline", "parent": 16, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 24}}, {"id": 18, "type": "ERROR", "text": ": public Pipeline", "parent": 16, "children": [19], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 42}}, {"id": 19, "type": "identifier", "text": "Pipeline", "parent": 18, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 42}}, {"id": 20, "type": "labeled_statement", "text": "public:\n GLPipeline(const PipelineInfo& pipelineCI);", "parent": 16, "children": [21], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 14, "column": 55}}, {"id": 21, "type": "declaration", "text": "GLPipeline(const PipelineInfo& pipelineCI);", "parent": 20, "children": [22, 28], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 55}}, {"id": 22, "type": "macro_type_specifier", "text": "GLPipeline(const PipelineInfo& pipelineCI)", "parent": 21, "children": [23, 24, 26], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 54}}, {"id": 23, "type": "identifier", "text": "GLPipeline", "parent": 22, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 22}}, {"id": 24, "type": "type_descriptor", "text": "const PipelineInfo", "parent": 22, "children": [25], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 41}}, {"id": 25, "type": "type_identifier", "text": "PipelineInfo", "parent": 24, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 41}}, {"id": 26, "type": "ERROR", "text": "& pipelineCI", "parent": 22, "children": [27], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 53}}, {"id": 27, "type": "identifier", "text": "pipelineCI", "parent": 26, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 53}}, {"id": 28, "type": "identifier", "text": "", "parent": 21, "children": [], "start_point": {"row": 14, "column": 54}, "end_point": {"row": 14, "column": 54}}, {"id": 29, "type": "unary_expression", "text": "~GLPipeline()", "parent": 16, "children": [30, 31], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 25}}, {"id": 30, "type": "~", "text": "~", "parent": 29, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 31, "type": "call_expression", "text": "GLPipeline()", "parent": 29, "children": [32, 33], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 25}}, {"id": 32, "type": "identifier", "text": "GLPipeline", "parent": 31, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 23}}, {"id": 33, "type": "argument_list", "text": "()", "parent": 31, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 25}}, {"id": 34, "type": "declaration", "text": "bool Init(const PipelineInfo& pipelineCI);", "parent": 16, "children": [35, 36], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 54}}, {"id": 35, "type": "primitive_type", "text": "bool", "parent": 34, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 16}}, {"id": 36, "type": "function_declarator", "text": "Init(const PipelineInfo& pipelineCI)", "parent": 34, "children": [37, 38], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 53}}, {"id": 37, "type": "identifier", "text": "Init", "parent": 36, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 21}}, {"id": 38, "type": "parameter_list", "text": "(const PipelineInfo& pipelineCI)", "parent": 36, "children": [39], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 53}}, {"id": 39, "type": "parameter_declaration", "text": "const PipelineInfo& pipelineCI", "parent": 38, "children": [40, 41], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 52}}, {"id": 40, "type": "type_identifier", "text": "PipelineInfo", "parent": 39, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 40}}, {"id": 41, "type": "identifier", "text": "pipelineCI", "parent": 39, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 52}}, {"id": 42, "type": "ERROR", "text": "void Bind(Graphics::CommandBuffer* cmdBuffer) override", "parent": 16, "children": [43, 44], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 66}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 44, "type": "function_declarator", "text": "Bind(Graphics::CommandBuffer* cmdBuffer) override", "parent": 42, "children": [45, 46, 54], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 66}}, {"id": 45, "type": "identifier", "text": "Bind", "parent": 44, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 21}}, {"id": 46, "type": "parameter_list", "text": "(Graphics::CommandBuffer* cmdBuffer)", "parent": 44, "children": [47], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 57}}, {"id": 47, "type": "parameter_declaration", "text": "Graphics::CommandBuffer* cmdBuffer", "parent": 46, "children": [48, 49, 51], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 56}}, {"id": 48, "type": "type_identifier", "text": "Graphics", "parent": 47, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 30}}, {"id": 49, "type": "ERROR", "text": "::CommandBuffer", "parent": 47, "children": [50], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 45}}, {"id": 50, "type": "identifier", "text": "CommandBuffer", "parent": 49, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 45}}, {"id": 51, "type": "pointer_declarator", "text": "* cmdBuffer", "parent": 47, "children": [52, 53], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 56}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 46}}, {"id": 53, "type": "identifier", "text": "cmdBuffer", "parent": 51, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 56}}, {"id": 54, "type": "identifier", "text": "override", "parent": 44, "children": [], "start_point": {"row": 19, "column": 58}, "end_point": {"row": 19, "column": 66}}, {"id": 55, "type": "declaration", "text": "void BindVertexArray();", "parent": 16, "children": [56, 57], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 35}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 57, "type": "function_declarator", "text": "BindVertexArray()", "parent": 55, "children": [58, 59], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 34}}, {"id": 58, "type": "identifier", "text": "BindVertexArray", "parent": 57, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 32}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 34}}, {"id": 60, "type": "function_definition", "text": "DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }", "parent": 16, "children": [61, 62], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 79}}, {"id": 61, "type": "type_identifier", "text": "DescriptorSet", "parent": 60, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 16}}, {"id": 62, "type": "pointer_declarator", "text": "* GetDescriptorSet() const override", "parent": 60, "children": [63, 64], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 51}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 17}}, {"id": 64, "type": "function_declarator", "text": "GetDescriptorSet() const override", "parent": 62, "children": [65, 66, 67], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 51}}, {"id": 65, "type": "identifier", "text": "GetDescriptorSet", "parent": 64, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 34}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 36}}, {"id": 67, "type": "identifier", "text": "override", "parent": 64, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 51}}, {"id": 68, "type": "return_statement", "text": "return m_DescriptorSet;", "parent": 60, "children": [69], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 77}}, {"id": 69, "type": "identifier", "text": "m_DescriptorSet", "parent": 68, "children": [], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 76}}, {"id": 70, "type": "function_definition", "text": "Shader* GetShader() const override { return m_Shader; }", "parent": 16, "children": [71, 72], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 58}}, {"id": 71, "type": "type_identifier", "text": "Shader", "parent": 70, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 9}}, {"id": 72, "type": "pointer_declarator", "text": "* GetShader() const override", "parent": 70, "children": [73, 74], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 37}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 74, "type": "function_declarator", "text": "GetShader() const override", "parent": 72, "children": [75, 76, 77], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 37}}, {"id": 75, "type": "identifier", "text": "GetShader", "parent": 74, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 20}}, {"id": 76, "type": "parameter_list", "text": "()", "parent": 74, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 22}}, {"id": 77, "type": "identifier", "text": "override", "parent": 74, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 37}}, {"id": 78, "type": "return_statement", "text": "return m_Shader;", "parent": 70, "children": [79], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 56}}, {"id": 79, "type": "identifier", "text": "m_Shader", "parent": 78, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 55}}, {"id": 80, "type": "ERROR", "text": "size_t GetStride() const override", "parent": 16, "children": [81, 82, 85], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 45}}, {"id": 81, "type": "primitive_type", "text": "size_t", "parent": 80, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 18}}, {"id": 82, "type": "function_declarator", "text": "GetStride()", "parent": 80, "children": [83, 84], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 30}}, {"id": 83, "type": "identifier", "text": "GetStride", "parent": 82, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 28}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 30}}, {"id": 85, "type": "type_identifier", "text": "override", "parent": 80, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 45}}, {"id": 86, "type": "return_statement", "text": "return m_StrideSize;", "parent": 16, "children": [87], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 36}}, {"id": 87, "type": "identifier", "text": "m_StrideSize", "parent": 86, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 35}}, {"id": 88, "type": "declaration", "text": "static void MakeDefault();", "parent": 16, "children": [89, 90], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 38}}, {"id": 89, "type": "primitive_type", "text": "void", "parent": 88, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 23}}, {"id": 90, "type": "function_declarator", "text": "MakeDefault()", "parent": 88, "children": [91, 92], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 37}}, {"id": 91, "type": "identifier", "text": "MakeDefault", "parent": 90, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 35}}, {"id": 92, "type": "parameter_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 37}}, {"id": 93, "type": "labeled_statement", "text": "protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);", "parent": 16, "children": [94], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 33, "column": 74}}, {"id": 94, "type": "declaration", "text": "static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);", "parent": 93, "children": [95, 96], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 74}}, {"id": 95, "type": "type_identifier", "text": "Pipeline", "parent": 94, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 27}}, {"id": 96, "type": "pointer_declarator", "text": "* CreateFuncGL(const PipelineInfo& pipelineCI)", "parent": 94, "children": [97, 98], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 73}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 28}}, {"id": 98, "type": "function_declarator", "text": "CreateFuncGL(const PipelineInfo& pipelineCI)", "parent": 96, "children": [99, 100], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 73}}, {"id": 99, "type": "identifier", "text": "CreateFuncGL", "parent": 98, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 41}}, {"id": 100, "type": "parameter_list", "text": "(const PipelineInfo& pipelineCI)", "parent": 98, "children": [101], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 73}}, {"id": 101, "type": "parameter_declaration", "text": "const PipelineInfo& pipelineCI", "parent": 100, "children": [102, 103], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 72}}, {"id": 102, "type": "type_identifier", "text": "PipelineInfo", "parent": 101, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 60}}, {"id": 103, "type": "identifier", "text": "pipelineCI", "parent": 101, "children": [], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 72}}, {"id": 104, "type": "labeled_statement", "text": "private:\n\t\t\tDescriptorSet* m_DescriptorSet = nullptr;", "parent": 16, "children": [105], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 35, "column": 44}}, {"id": 105, "type": "declaration", "text": "DescriptorSet* m_DescriptorSet = nullptr;", "parent": 104, "children": [106, 107], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 44}}, {"id": 106, "type": "type_identifier", "text": "DescriptorSet", "parent": 105, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 16}}, {"id": 107, "type": "init_declarator", "text": "* m_DescriptorSet = nullptr", "parent": 105, "children": [108, 111, 112], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 43}}, {"id": 108, "type": "pointer_declarator", "text": "* m_DescriptorSet", "parent": 107, "children": [109, 110], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 33}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 110, "type": "identifier", "text": "m_DescriptorSet", "parent": 108, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 33}}, {"id": 111, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 35}}, {"id": 112, "type": "null", "text": "nullptr", "parent": 107, "children": [113], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 43}}, {"id": 113, "type": "nullptr", "text": "nullptr", "parent": 112, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 43}}, {"id": 114, "type": "declaration", "text": "Shader* m_Shader = nullptr;", "parent": 16, "children": [115, 116], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 30}}, {"id": 115, "type": "type_identifier", "text": "Shader", "parent": 114, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 9}}, {"id": 116, "type": "init_declarator", "text": "* m_Shader = nullptr", "parent": 114, "children": [117, 120, 121], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 29}}, {"id": 117, "type": "pointer_declarator", "text": "* m_Shader", "parent": 116, "children": [118, 119], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 19}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 10}}, {"id": 119, "type": "identifier", "text": "m_Shader", "parent": 117, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 19}}, {"id": 120, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 121, "type": "null", "text": "nullptr", "parent": 116, "children": [122], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 29}}, {"id": 122, "type": "nullptr", "text": "nullptr", "parent": 121, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 29}}, {"id": 123, "type": "declaration", "text": "GLRenderPass* m_RenderPass;", "parent": 16, "children": [124, 125], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 39}}, {"id": 124, "type": "type_identifier", "text": "GLRenderPass", "parent": 123, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 24}}, {"id": 125, "type": "pointer_declarator", "text": "* m_RenderPass", "parent": 123, "children": [126, 127], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 38}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 25}}, {"id": 127, "type": "identifier", "text": "m_RenderPass", "parent": 125, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 38}}, {"id": 128, "type": "labeled_statement", "text": "std::string pipelineName;", "parent": 16, "children": [129, 130], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 37}}, {"id": 129, "type": "statement_identifier", "text": "std", "parent": 128, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 15}}, {"id": 130, "type": "declaration", "text": "string pipelineName;", "parent": 128, "children": [131, 132], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 37}}, {"id": 131, "type": "type_identifier", "text": "string", "parent": 130, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 23}}, {"id": 132, "type": "identifier", "text": "pipelineName", "parent": 130, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 36}}, {"id": 133, "type": "declaration", "text": "bool m_TransparencyEnabled = false;", "parent": 16, "children": [134, 135], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 47}}, {"id": 134, "type": "primitive_type", "text": "bool", "parent": 133, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 16}}, {"id": 135, "type": "init_declarator", "text": "m_TransparencyEnabled = false", "parent": 133, "children": [136, 137, 138], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 46}}, {"id": 136, "type": "identifier", "text": "m_TransparencyEnabled", "parent": 135, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 38}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 40}}, {"id": 138, "type": "false", "text": "false", "parent": 135, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 46}}, {"id": 139, "type": "declaration", "text": "u32 m_VertexArray = -1;", "parent": 16, "children": [140, 141], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 35}}, {"id": 140, "type": "type_identifier", "text": "u32", "parent": 139, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 15}}, {"id": 141, "type": "init_declarator", "text": "m_VertexArray = -1", "parent": 139, "children": [142, 143, 144], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 34}}, {"id": 142, "type": "identifier", "text": "m_VertexArray", "parent": 141, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 29}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 144, "type": "number_literal", "text": "-1", "parent": 141, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 34}}, {"id": 145, "type": "labeled_statement", "text": "std::vector<VertexInputDescription> m_VertexDescriptions;", "parent": 16, "children": [146], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 69}}, {"id": 146, "type": "statement_identifier", "text": "std", "parent": 145, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 147, "type": "binary_expression", "text": "vector<VertexInputDescription> m_VertexDescriptions", "parent": 145, "children": [148, 152, 153], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 68}}, {"id": 148, "type": "binary_expression", "text": "vector<VertexInputDescription", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 46}}, {"id": 149, "type": "identifier", "text": "vector", "parent": 148, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 23}}, {"id": 150, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 151, "type": "identifier", "text": "VertexInputDescription", "parent": 148, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 46}}, {"id": 152, "type": ">", "text": ">", "parent": 147, "children": [], "start_point": {"row": 41, "column": 46}, "end_point": {"row": 41, "column": 47}}, {"id": 153, "type": "identifier", "text": "m_VertexDescriptions", "parent": 147, "children": [], "start_point": {"row": 41, "column": 48}, "end_point": {"row": 41, "column": 68}}, {"id": 154, "type": "declaration", "text": "u32 m_StrideSize = 0;", "parent": 16, "children": [155, 156], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 33}}, {"id": 155, "type": "type_identifier", "text": "u32", "parent": 154, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 15}}, {"id": 156, "type": "init_declarator", "text": "m_StrideSize = 0", "parent": 154, "children": [157, 158, 159], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 32}}, {"id": 157, "type": "identifier", "text": "m_StrideSize", "parent": 156, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 28}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 30}}, {"id": 159, "type": "number_literal", "text": "0", "parent": 156, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 32}}]}, "node_categories": {"declarations": {"functions": [6, 9, 16, 36, 44, 57, 60, 64, 70, 74, 82, 90, 98], "variables": [12, 14, 21, 34, 39, 47, 55, 88, 94, 101, 105, 114, 123, 130, 133, 139, 154], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [29, 31, 147, 148], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 11, 13, 15, 17, 19, 22, 23, 25, 27, 28, 32, 37, 40, 41, 45, 48, 50, 53, 54, 58, 61, 65, 67, 69, 71, 75, 77, 79, 83, 85, 87, 91, 95, 99, 102, 103, 106, 110, 115, 119, 124, 127, 129, 131, 132, 136, 140, 142, 146, 149, 151, 153, 155, 157], "returns": [68, 78, 86], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 144, 159], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "GLRenderPass;", "text_snippet": "namespace Lumos\n{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuff"}, {"node_id": 9, "universal_type": "function", "name": "GLRenderPass;", "text_snippet": "namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLP"}, {"node_id": 16, "universal_type": "function", "name": "GLPipeline", "text_snippet": "class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineIn"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "Init(const PipelineInfo& pipelineCI)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "Bind(Graphics::CommandBuffer* cmdBuffer) override"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "BindVertexArray()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "DescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "GetDescriptorSet() const override"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "Shader* GetShader() const override { return m_Shader; }"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "GetShader() const override"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "GetStride()"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "MakeDefault()"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "CreateFuncGL(const PipelineInfo& pipelineCI)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"Graphics/API/Pipeline.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"Graphics/API/Pipeline.h\"\n\nnamespace Lumos\n{\n namespace Graphics\n {\n class GLRenderPass;\n class CommandBuffer;\n\n class GLPipeline : public Pipeline\n {\n public:\n GLPipeline(const PipelineInfo& pipelineCI);\n ~GLPipeline();\n\n bool Init(const PipelineInfo& pipelineCI);\n\n void Bind(Graphics::CommandBuffer* cmdBuffer) override;\n \n void BindVertexArray();\n\t\t\t\n\t\t\tDescriptorSet* GetDescriptorSet() const override { return m_DescriptorSet; }\n\t\t\tShader* GetShader() const override { return m_Shader; }\n \n size_t GetStride() const override\n {\n return m_StrideSize;\n }\n \n static void MakeDefault();\n protected:\n static Pipeline* CreateFuncGL(const PipelineInfo& pipelineCI);\n private:\n\t\t\tDescriptorSet* m_DescriptorSet = nullptr;\n\t\t\tShader* m_Shader = nullptr;\n GLRenderPass* m_RenderPass;\n std::string pipelineName;\n bool m_TransparencyEnabled = false;\n u32 m_VertexArray = -1;\n std::vector<VertexInputDescription> m_VertexDescriptions;\n u32 m_StrideSize = 0;\n };\n }\n}\n\n"}
163
c
#ifndef _STA013_DOT_H #define _STA013_DOT_H #include <xc.h> #define DATA_REQ PORTAbits.RA1 /* Prototypes */ void STA013_Init(void); void STA013_Config(void); void STA013_Run(void); void STA013_Patch(void); #endif
15.43
14
(translation_unit) "#ifndef _STA013_DOT_H \n#define _STA013_DOT_H \n \n#include <xc.h> \n \n#define DATA_REQ PORTAbits.RA1 \n \n/* Prototypes */ \nvoid STA013_Init(void); \nvoid STA013_Config(void); \nvoid STA013_Run(void); \nvoid STA013_Patch(void); \n \n#endif" (preproc_ifdef) "#ifndef _STA013_DOT_H \n#define _STA013_DOT_H \n \n#include <xc.h> \n \n#define DATA_REQ PORTAbits.RA1 \n \n/* Prototypes */ \nvoid STA013_Init(void); \nvoid STA013_Config(void); \nvoid STA013_Run(void); \nvoid STA013_Patch(void); \n \n#endif" (#ifndef) "#ifndef" (identifier) "_STA013_DOT_H" (preproc_def) "#define _STA013_DOT_H \n" (#define) "#define" (identifier) "_STA013_DOT_H" (preproc_include) "#include <xc.h> \n" (#include) "#include" (system_lib_string) "<xc.h>" (preproc_def) "#define DATA_REQ PORTAbits.RA1 \n" (#define) "#define" (identifier) "DATA_REQ" (preproc_arg) "PORTAbits.RA1 " (comment) "/* Prototypes */" (declaration) "void STA013_Init(void);" (primitive_type) "void" (function_declarator) "STA013_Init(void)" (identifier) "STA013_Init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void STA013_Config(void);" (primitive_type) "void" (function_declarator) "STA013_Config(void)" (identifier) "STA013_Config" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void STA013_Run(void);" (primitive_type) "void" (function_declarator) "STA013_Run(void)" (identifier) "STA013_Run" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void STA013_Patch(void);" (primitive_type) "void" (function_declarator) "STA013_Patch(void)" (identifier) "STA013_Patch" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif"
56
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.43, "nodes": 42, "errors": 0, "source_hash": "48be005b0bfd1010a4ab91be5d3607161fb2cd5a8072e1b9cbb7cb68af6ce7f3", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _STA013_DOT_H\r\n#define _STA013_DOT_H\r\n\r\n#include <xc.h>\r\n\r\n#define DATA_REQ PORTAbits.RA1\r\n\r\n/* Prototypes */\r\nvoid STA013_Init(void);\r\nvoid STA013_Config(void);\r\nvoid STA013_Run(void);\r\nvoid STA013_Patch(void);\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 20, 27, 34, 41], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 13, "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": "_STA013_DOT_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define _STA013_DOT_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": "_STA013_DOT_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <xc.h>\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<xc.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 15}}, {"id": 9, "type": "preproc_def", "text": "#define DATA_REQ PORTAbits.RA1\r\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "DATA_REQ", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 16}}, {"id": 12, "type": "preproc_arg", "text": "PORTAbits.RA1\r", "parent": 9, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 31}}, {"id": 13, "type": "declaration", "text": "void STA013_Init(void);", "parent": 0, "children": [14, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 23}}, {"id": 14, "type": "primitive_type", "text": "void", "parent": 13, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 15, "type": "function_declarator", "text": "STA013_Init(void)", "parent": 13, "children": [16, 17], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 22}}, {"id": 16, "type": "identifier", "text": "STA013_Init", "parent": 15, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 16}}, {"id": 17, "type": "parameter_list", "text": "(void)", "parent": 15, "children": [18], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 22}}, {"id": 18, "type": "parameter_declaration", "text": "void", "parent": 17, "children": [19], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 21}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 21}}, {"id": 20, "type": "declaration", "text": "void STA013_Config(void);", "parent": 0, "children": [21, 22], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 25}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 22, "type": "function_declarator", "text": "STA013_Config(void)", "parent": 20, "children": [23, 24], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 24}}, {"id": 23, "type": "identifier", "text": "STA013_Config", "parent": 22, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 18}}, {"id": 24, "type": "parameter_list", "text": "(void)", "parent": 22, "children": [25], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 24}}, {"id": 25, "type": "parameter_declaration", "text": "void", "parent": 24, "children": [26], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 23}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 23}}, {"id": 27, "type": "declaration", "text": "void STA013_Run(void);", "parent": 0, "children": [28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 22}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 29, "type": "function_declarator", "text": "STA013_Run(void)", "parent": 27, "children": [30, 31], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 21}}, {"id": 30, "type": "identifier", "text": "STA013_Run", "parent": 29, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 15}}, {"id": 31, "type": "parameter_list", "text": "(void)", "parent": 29, "children": [32], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 21}}, {"id": 32, "type": "parameter_declaration", "text": "void", "parent": 31, "children": [33], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 20}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 20}}, {"id": 34, "type": "declaration", "text": "void STA013_Patch(void);", "parent": 0, "children": [35, 36], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 24}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 36, "type": "function_declarator", "text": "STA013_Patch(void)", "parent": 34, "children": [37, 38], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 23}}, {"id": 37, "type": "identifier", "text": "STA013_Patch", "parent": 36, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 17}}, {"id": 38, "type": "parameter_list", "text": "(void)", "parent": 36, "children": [39], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 23}}, {"id": 39, "type": "parameter_declaration", "text": "void", "parent": 38, "children": [40], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 22}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 22}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 22, 29, 36], "variables": [13, 18, 20, 25, 27, 32, 34, 39], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 16, 23, 30, 37, 41], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "STA013_Init(void)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "STA013_Config(void)"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "STA013_Run(void)"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "STA013_Patch(void)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <xc.h>\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _STA013_DOT_H\r\n#define _STA013_DOT_H\r\n\r\n#include <xc.h>\r\n\r\n#define DATA_REQ PORTAbits.RA1\r\n\r\n/* Prototypes */\r\nvoid STA013_Init(void);\r\nvoid STA013_Config(void);\r\nvoid STA013_Run(void);\r\nvoid STA013_Patch(void);\r\n\r\n#endif"}
164
c
// ----------------------------------------------------------------------------- // Fern © Geoneric // // This file is part of Geoneric Fern which is available under the terms of // the GNU General Public License (GPL), version 2. If you do not want to // be bound by the terms of the GPL, you may purchase a proprietary license // from Geoneric (http://www.geoneric.eu/contact). // ----------------------------------------------------------------------------- #pragma once #include "fern/core/data_type_traits.h" #include "fern/feature/core/point.h" namespace fern { template< typename T, size_t nr_dimensions, typename CoordinateSystem> struct DataTypeTraits< Point<T, nr_dimensions, CoordinateSystem>> { using value_type = T; static size_t const rank = nr_dimensions; }; } // namespace fern
33.12
24
(translation_unit) "// -----------------------------------------------------------------------------\n// Fern © Geoneric\n//\n// This file is part of Geoneric Fern which is available under the terms of\n// the GNU General Public License (GPL), version 2. If you do not want to\n// be bound by the terms of the GPL, you may purchase a proprietary license\n// from Geoneric (http://www.geoneric.eu/contact).\n// -----------------------------------------------------------------------------\n#pragma once\n#include "fern/core/data_type_traits.h"\n#include "fern/feature/core/point.h"\n\n\nnamespace fern {\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n\n static size_t const rank = nr_dimensions;\n\n};\n\n} // namespace fern\n" (comment) "// -----------------------------------------------------------------------------" (comment) "// Fern © Geoneric\n" (comment) "/\n" (comment) "/ This file is part of Geoneric Fern which is available under the terms of\n" (comment) "/ the GNU General Public License (GPL), version 2. If you do not want to\n" (comment) "/ be bound by the terms of the GPL, you may purchase a proprietary license\n" (comment) "/ from Geoneric (http://www.geoneric.eu/contact).\n" (comment) "/ -----------------------------------------------------------------------------\n" (preproc_call) "pragma once\n#" (preproc_directive) "pragma " (preproc_arg) "nce\n" (preproc_include) "include "fern/core/data_type_traits.h"\n#" (#include) "include " (string_literal) "fern/core/data_type_traits.h"\n" (") "f" (string_content) "ern/core/data_type_traits.h"" (") "\n" (preproc_include) "include "fern/feature/core/point.h"\n\n" (#include) "include " (string_literal) "fern/feature/core/point.h"\n" (") "f" (string_content) "ern/feature/core/point.h"" (") "\n" (function_definition) "amespace fern {\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n\n static size_t const rank = nr_dimensions;\n\n};" (type_identifier) "amespace " (identifier) "ern " (compound_statement) "\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n\n static size_t const rank = nr_dimensions;\n\n};" ({) "\n" (expression_statement) "emplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n" (comma_expression) "emplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;" (binary_expression) "emplate<\n typename " (identifier) "emplate<" (<) "\n" (identifier) "ypename " (ERROR) "," (identifier) "," (,) "\n" (ERROR) "ize_t " (identifier) "ize_t " (comma_expression) "r_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;" (identifier) "r_dimensions," (,) "\n" (ERROR) "ypename " (identifier) "ypename " (comma_expression) "oordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;" (binary_expression) "oordinateSystem>\nstruct DataTypeTraits<\n Point<T," (binary_expression) "oordinateSystem>\nstruct DataTypeTraits<\n Point<" (binary_expression) "oordinateSystem>\nstruct DataTypeTraits<" (identifier) "oordinateSystem>" (>) "\n" (ERROR) "truct " (identifier) "truct " (identifier) "ataTypeTraits<" (<) "\n" (identifier) "oint<" (<) "T" (identifier) "," (,) " " (comma_expression) "r_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;" (identifier) "r_dimensions," (,) " " (binary_expression) "oordinateSystem>>\n{\n\n using value_type = T;" (identifier) "oordinateSystem>" (>>) ">\n" (ERROR) "\n\n using " ({) "\n" (identifier) "sing " (assignment_expression) "alue_type = T;" (identifier) "alue_type " (=) " " (identifier) ";" (;) "\n" (declaration) "tatic size_t const rank = nr_dimensions;\n" (storage_class_specifier) "tatic " (static) "tatic " (primitive_type) "ize_t " (type_qualifier) "onst " (const) "onst " (init_declarator) "ank = nr_dimensions;" (identifier) "ank " (=) " " (identifier) "r_dimensions;" (;) "\n" (}) ";" (expression_statement) "\n" (;) "\n" (ERROR) " " (}) " " (comment) "/ namespace fern\n"
90
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.12, "nodes": 54, "errors": 0, "source_hash": "1db1bd869fc3edf5332b588665cc1f62e9c525ceb9060704ea968f9e4e19a1ea", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma once\n#", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "pragma ", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "nce\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "include \"fern/core/data_type_traits.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": "string_literal", "text": "fern/core/data_type_traits.h\"\n", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 39}}, {"id": 6, "type": "preproc_include", "text": "include \"fern/feature/core/point.h\"\n\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": "fern/feature/core/point.h\"\n", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 36}}, {"id": 9, "type": "function_definition", "text": "amespace fern {\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n\n static size_t const rank = nr_dimensions;\n\n};", "parent": null, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "amespace ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 11, "type": "identifier", "text": "ern ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 12, "type": "comma_expression", "text": "emplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;", "parent": 9, "children": [13, 17, 19], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 23, "column": 24}}, {"id": 13, "type": "binary_expression", "text": "emplate<\n typename ", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 12}}, {"id": 14, "type": "identifier", "text": "emplate<", "parent": 13, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 15, "type": "<", "text": "\n", "parent": 13, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 16, "type": "identifier", "text": "ypename ", "parent": 13, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 12}}, {"id": 17, "type": "ERROR", "text": "ize_t ", "parent": 12, "children": [18], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 18, "type": "identifier", "text": "ize_t ", "parent": 17, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 19, "type": "comma_expression", "text": "r_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;", "parent": 12, "children": [20, 21, 23], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 23, "column": 24}}, {"id": 20, "type": "identifier", "text": "r_dimensions,", "parent": 19, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 24}}, {"id": 21, "type": "ERROR", "text": "ypename ", "parent": 19, "children": [22], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 22, "type": "identifier", "text": "ypename ", "parent": 21, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 23, "type": "comma_expression", "text": "oordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;", "parent": 19, "children": [24, 35], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 23, "column": 24}}, {"id": 24, "type": "binary_expression", "text": "oordinateSystem>\nstruct DataTypeTraits<\n Point<T,", "parent": 23, "children": [25, 34], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 20, "column": 11}}, {"id": 25, "type": "binary_expression", "text": "oordinateSystem>\nstruct DataTypeTraits<\n Point<", "parent": 24, "children": [26, 32, 33], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 20, "column": 9}}, {"id": 26, "type": "binary_expression", "text": "oordinateSystem>\nstruct DataTypeTraits<", "parent": 25, "children": [27, 28, 29, 31], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 19, "column": 21}}, {"id": 27, "type": "identifier", "text": "oordinateSystem>", "parent": 26, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 29}}, {"id": 28, "type": ">", "text": "\n", "parent": 26, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 30}}, {"id": 29, "type": "ERROR", "text": "truct ", "parent": 26, "children": [30], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 30, "type": "identifier", "text": "truct ", "parent": 29, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 31, "type": "identifier", "text": "ataTypeTraits<", "parent": 26, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 21}}, {"id": 32, "type": "<", "text": "\n", "parent": 25, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 33, "type": "identifier", "text": "oint<", "parent": 25, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 9}}, {"id": 34, "type": "<", "text": "T", "parent": 24, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 35, "type": "comma_expression", "text": "r_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;", "parent": 23, "children": [36, 37], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 23, "column": 24}}, {"id": 36, "type": "identifier", "text": "r_dimensions,", "parent": 35, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 26}}, {"id": 37, "type": "binary_expression", "text": "oordinateSystem>>\n{\n\n using value_type = T;", "parent": 35, "children": [38, 39, 40, 42], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 23, "column": 24}}, {"id": 38, "type": "identifier", "text": "oordinateSystem>", "parent": 37, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 44}}, {"id": 39, "type": ">>", "text": ">\n", "parent": 37, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 46}}, {"id": 40, "type": "ERROR", "text": "\n\n using ", "parent": 37, "children": [41], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 9}}, {"id": 41, "type": "identifier", "text": "sing ", "parent": 40, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 9}}, {"id": 42, "type": "assignment_expression", "text": "alue_type = T;", "parent": 37, "children": [43, 44], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 24}}, {"id": 43, "type": "identifier", "text": "alue_type ", "parent": 42, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 20}}, {"id": 44, "type": "=", "text": " ", "parent": 42, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 22}}, {"id": 45, "type": "declaration", "text": "tatic size_t const rank = nr_dimensions;\n", "parent": 9, "children": [46, 47, 48, 49], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 45}}, {"id": 46, "type": "storage_class_specifier", "text": "tatic ", "parent": 45, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 47, "type": "primitive_type", "text": "ize_t ", "parent": 45, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 48, "type": "type_qualifier", "text": "onst ", "parent": 45, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 23}}, {"id": 49, "type": "init_declarator", "text": "ank = nr_dimensions;", "parent": 45, "children": [50, 51, 52], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 44}}, {"id": 50, "type": "identifier", "text": "ank ", "parent": 49, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 28}}, {"id": 51, "type": "=", "text": " ", "parent": 49, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 52, "type": "identifier", "text": "r_dimensions;", "parent": 49, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 44}}, {"id": 53, "type": "ERROR", "text": " ", "parent": null, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}]}, "node_categories": {"declarations": {"functions": [9], "variables": [45], "classes": [46], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [12, 13, 19, 23, 24, 25, 26, 35, 37], "assignments": [42], "loops": [], "conditionals": [10, 11, 14, 16, 18, 20, 22, 27, 30, 31, 33, 36, 38, 41, 43, 48, 50, 52], "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": "DataTypeTraits<", "text_snippet": "amespace fern {\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\n"}], "class_declarations": [{"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "tatic "}], "import_statements": [{"node_id": 3, "text": "include \"fern/core/data_type_traits.h\"\n#"}, {"node_id": 4, "text": "include "}, {"node_id": 6, "text": "include \"fern/feature/core/point.h\"\n\n"}, {"node_id": 7, "text": "include "}]}, "original_source_code": "// -----------------------------------------------------------------------------\n// Fern \u00a9 Geoneric\n//\n// This file is part of Geoneric Fern which is available under the terms of\n// the GNU General Public License (GPL), version 2. If you do not want to\n// be bound by the terms of the GPL, you may purchase a proprietary license\n// from Geoneric (http://www.geoneric.eu/contact).\n// -----------------------------------------------------------------------------\n#pragma once\n#include \"fern/core/data_type_traits.h\"\n#include \"fern/feature/core/point.h\"\n\n\nnamespace fern {\n\ntemplate<\n typename T,\n size_t nr_dimensions,\n typename CoordinateSystem>\nstruct DataTypeTraits<\n Point<T, nr_dimensions, CoordinateSystem>>\n{\n\n using value_type = T;\n\n static size_t const rank = nr_dimensions;\n\n};\n\n} // namespace fern\n"}
165
c
#include <stdio.h> #define DIM 20 int main(int argc, char * argv[]) { int seq1[DIM]; int seq2[DIM]; int i, j, pivot, min; int tmp; int min1, min2, prev; for(i=0; i<DIM; i++) { scanf("%d", &seq1[i]); } for(i=0; i<DIM; i++) { scanf("%d", &seq2[i]); } for(pivot=0; pivot<(DIM-1); pivot++) { min = pivot; for(i=(pivot+1); i<DIM; i++) { if(seq1[i] < seq1[min]) min = i; } tmp = seq1[pivot]; seq1[pivot] = seq1[min]; seq1[min] = tmp; } for(pivot=0; pivot<(DIM-1); pivot++) { min = pivot; for(i=(pivot+1); i<DIM; i++) { if(seq2[i] < seq2[min]) min = i; } tmp = seq2[pivot]; seq2[pivot] = seq2[min]; seq2[min] = tmp; } i=0; j=0; min1 = seq1[i]; min2 = seq2[j]; if(min1 < min2) { printf("%d", min1); prev = min1; i++; } else { printf("%d", min2); prev = min2; j++; } while(i<DIM || j<DIM) { if(seq1[i] < seq2[j]) { if(prev < seq1[i]) { printf("%3d", seq1[i]); prev = seq1[i]; } i++; } else { if(prev < seq1[j]) { printf("%3d", seq1[j]); prev = seq1[j]; } j++; } } printf("\n"); return 0; }
16.75
73
(translation_unit) "#include <stdio.h> \n#define DIM 20 \n \nint main(int argc, char * argv[]) { \n int seq1[DIM]; \n int seq2[DIM]; \n int i, j, pivot, min; \n int tmp; \n int min1, min2, prev; \n \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq1[i]); \n } \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq2[i]); \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n } \n tmp = seq1[pivot]; \n seq1[pivot] = seq1[min]; \n seq1[min] = tmp; \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n } \n tmp = seq2[pivot]; \n seq2[pivot] = seq2[min]; \n seq2[min] = tmp; \n } \n \n \n i=0; j=0; \n min1 = seq1[i]; \n min2 = seq2[j]; \n if(min1 < min2) { \n printf("%d", min1); \n prev = min1; \n i++; \n } else { \n printf("%d", min2); \n prev = min2; \n j++; \n } \n \n while(i<DIM || j<DIM) { \n if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n } \n } \n \n printf("\n"); \n \n return 0; \n} \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_def) "#define DIM 20 \n" (#define) "#define" (identifier) "DIM" (preproc_arg) "20 " (function_definition) "int main(int argc, char * argv[]) { \n int seq1[DIM]; \n int seq2[DIM]; \n int i, j, pivot, min; \n int tmp; \n int min1, min2, prev; \n \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq1[i]); \n } \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq2[i]); \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n } \n tmp = seq1[pivot]; \n seq1[pivot] = seq1[min]; \n seq1[min] = tmp; \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n } \n tmp = seq2[pivot]; \n seq2[pivot] = seq2[min]; \n seq2[min] = tmp; \n } \n \n \n i=0; j=0; \n min1 = seq1[i]; \n min2 = seq2[j]; \n if(min1 < min2) { \n printf("%d", min1); \n prev = min1; \n i++; \n } else { \n printf("%d", min2); \n prev = min2; \n j++; \n } \n \n while(i<DIM || j<DIM) { \n if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n } \n } \n \n printf("\n"); \n \n return 0; \n}" (primitive_type) "int" (function_declarator) "main(int argc, char * argv[])" (identifier) "main" (parameter_list) "(int argc, char * argv[])" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char * argv[]" (primitive_type) "char" (pointer_declarator) "* argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{ \n int seq1[DIM]; \n int seq2[DIM]; \n int i, j, pivot, min; \n int tmp; \n int min1, min2, prev; \n \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq1[i]); \n } \n for(i=0; i<DIM; i++) { \n scanf("%d", &seq2[i]); \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n } \n tmp = seq1[pivot]; \n seq1[pivot] = seq1[min]; \n seq1[min] = tmp; \n } \n \n for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n } \n tmp = seq2[pivot]; \n seq2[pivot] = seq2[min]; \n seq2[min] = tmp; \n } \n \n \n i=0; j=0; \n min1 = seq1[i]; \n min2 = seq2[j]; \n if(min1 < min2) { \n printf("%d", min1); \n prev = min1; \n i++; \n } else { \n printf("%d", min2); \n prev = min2; \n j++; \n } \n \n while(i<DIM || j<DIM) { \n if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n } \n } \n \n printf("\n"); \n \n return 0; \n}" ({) "{" (declaration) "int seq1[DIM];" (primitive_type) "int" (array_declarator) "seq1[DIM]" (identifier) "seq1" ([) "[" (identifier) "DIM" (]) "]" (;) ";" (declaration) "int seq2[DIM];" (primitive_type) "int" (array_declarator) "seq2[DIM]" (identifier) "seq2" ([) "[" (identifier) "DIM" (]) "]" (;) ";" (declaration) "int i, j, pivot, min;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (,) "," (identifier) "pivot" (,) "," (identifier) "min" (;) ";" (declaration) "int tmp;" (primitive_type) "int" (identifier) "tmp" (;) ";" (declaration) "int min1, min2, prev;" (primitive_type) "int" (identifier) "min1" (,) "," (identifier) "min2" (,) "," (identifier) "prev" (;) ";" (for_statement) "for(i=0; i<DIM; i++) { \n scanf("%d", &seq1[i]); \n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<DIM" (identifier) "i" (<) "<" (identifier) "DIM" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n scanf("%d", &seq1[i]); \n }" ({) "{" (expression_statement) "scanf("%d", &seq1[i]);" (call_expression) "scanf("%d", &seq1[i])" (identifier) "scanf" (argument_list) "("%d", &seq1[i])" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&seq1[i]" (&) "&" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (for_statement) "for(i=0; i<DIM; i++) { \n scanf("%d", &seq2[i]); \n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<DIM" (identifier) "i" (<) "<" (identifier) "DIM" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n scanf("%d", &seq2[i]); \n }" ({) "{" (expression_statement) "scanf("%d", &seq2[i]);" (call_expression) "scanf("%d", &seq2[i])" (identifier) "scanf" (argument_list) "("%d", &seq2[i])" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&seq2[i]" (&) "&" (subscript_expression) "seq2[i]" (identifier) "seq2" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (for_statement) "for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n } \n tmp = seq1[pivot]; \n seq1[pivot] = seq1[min]; \n seq1[min] = tmp; \n }" (for) "for" (() "(" (assignment_expression) "pivot=0" (identifier) "pivot" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "pivot<(DIM-1)" (identifier) "pivot" (<) "<" (parenthesized_expression) "(DIM-1)" (() "(" (binary_expression) "DIM-1" (identifier) "DIM" (-) "-" (number_literal) "1" ()) ")" (;) ";" (update_expression) "pivot++" (identifier) "pivot" (++) "++" ()) ")" (compound_statement) "{ \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n } \n tmp = seq1[pivot]; \n seq1[pivot] = seq1[min]; \n seq1[min] = tmp; \n }" ({) "{" (expression_statement) "min = pivot;" (assignment_expression) "min = pivot" (identifier) "min" (=) "=" (identifier) "pivot" (;) ";" (for_statement) "for(i=(pivot+1); i<DIM; i++) { \n if(seq1[i] < seq1[min]) \n min = i; \n }" (for) "for" (() "(" (assignment_expression) "i=(pivot+1)" (identifier) "i" (=) "=" (parenthesized_expression) "(pivot+1)" (() "(" (binary_expression) "pivot+1" (identifier) "pivot" (+) "+" (number_literal) "1" ()) ")" (;) ";" (binary_expression) "i<DIM" (identifier) "i" (<) "<" (identifier) "DIM" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n if(seq1[i] < seq1[min]) \n min = i; \n }" ({) "{" (if_statement) "if(seq1[i] < seq1[min]) \n min = i;" (if) "if" (parenthesized_expression) "(seq1[i] < seq1[min])" (() "(" (binary_expression) "seq1[i] < seq1[min]" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" (<) "<" (subscript_expression) "seq1[min]" (identifier) "seq1" ([) "[" (identifier) "min" (]) "]" ()) ")" (expression_statement) "min = i;" (assignment_expression) "min = i" (identifier) "min" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) "tmp = seq1[pivot];" (assignment_expression) "tmp = seq1[pivot]" (identifier) "tmp" (=) "=" (subscript_expression) "seq1[pivot]" (identifier) "seq1" ([) "[" (identifier) "pivot" (]) "]" (;) ";" (expression_statement) "seq1[pivot] = seq1[min];" (assignment_expression) "seq1[pivot] = seq1[min]" (subscript_expression) "seq1[pivot]" (identifier) "seq1" ([) "[" (identifier) "pivot" (]) "]" (=) "=" (subscript_expression) "seq1[min]" (identifier) "seq1" ([) "[" (identifier) "min" (]) "]" (;) ";" (expression_statement) "seq1[min] = tmp;" (assignment_expression) "seq1[min] = tmp" (subscript_expression) "seq1[min]" (identifier) "seq1" ([) "[" (identifier) "min" (]) "]" (=) "=" (identifier) "tmp" (;) ";" (}) "}" (for_statement) "for(pivot=0; pivot<(DIM-1); pivot++) { \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n } \n tmp = seq2[pivot]; \n seq2[pivot] = seq2[min]; \n seq2[min] = tmp; \n }" (for) "for" (() "(" (assignment_expression) "pivot=0" (identifier) "pivot" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "pivot<(DIM-1)" (identifier) "pivot" (<) "<" (parenthesized_expression) "(DIM-1)" (() "(" (binary_expression) "DIM-1" (identifier) "DIM" (-) "-" (number_literal) "1" ()) ")" (;) ";" (update_expression) "pivot++" (identifier) "pivot" (++) "++" ()) ")" (compound_statement) "{ \n min = pivot; \n for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n } \n tmp = seq2[pivot]; \n seq2[pivot] = seq2[min]; \n seq2[min] = tmp; \n }" ({) "{" (expression_statement) "min = pivot;" (assignment_expression) "min = pivot" (identifier) "min" (=) "=" (identifier) "pivot" (;) ";" (for_statement) "for(i=(pivot+1); i<DIM; i++) { \n if(seq2[i] < seq2[min]) \n min = i; \n }" (for) "for" (() "(" (assignment_expression) "i=(pivot+1)" (identifier) "i" (=) "=" (parenthesized_expression) "(pivot+1)" (() "(" (binary_expression) "pivot+1" (identifier) "pivot" (+) "+" (number_literal) "1" ()) ")" (;) ";" (binary_expression) "i<DIM" (identifier) "i" (<) "<" (identifier) "DIM" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n if(seq2[i] < seq2[min]) \n min = i; \n }" ({) "{" (if_statement) "if(seq2[i] < seq2[min]) \n min = i;" (if) "if" (parenthesized_expression) "(seq2[i] < seq2[min])" (() "(" (binary_expression) "seq2[i] < seq2[min]" (subscript_expression) "seq2[i]" (identifier) "seq2" ([) "[" (identifier) "i" (]) "]" (<) "<" (subscript_expression) "seq2[min]" (identifier) "seq2" ([) "[" (identifier) "min" (]) "]" ()) ")" (expression_statement) "min = i;" (assignment_expression) "min = i" (identifier) "min" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) "tmp = seq2[pivot];" (assignment_expression) "tmp = seq2[pivot]" (identifier) "tmp" (=) "=" (subscript_expression) "seq2[pivot]" (identifier) "seq2" ([) "[" (identifier) "pivot" (]) "]" (;) ";" (expression_statement) "seq2[pivot] = seq2[min];" (assignment_expression) "seq2[pivot] = seq2[min]" (subscript_expression) "seq2[pivot]" (identifier) "seq2" ([) "[" (identifier) "pivot" (]) "]" (=) "=" (subscript_expression) "seq2[min]" (identifier) "seq2" ([) "[" (identifier) "min" (]) "]" (;) ";" (expression_statement) "seq2[min] = tmp;" (assignment_expression) "seq2[min] = tmp" (subscript_expression) "seq2[min]" (identifier) "seq2" ([) "[" (identifier) "min" (]) "]" (=) "=" (identifier) "tmp" (;) ";" (}) "}" (expression_statement) "i=0;" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "j=0;" (assignment_expression) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "min1 = seq1[i];" (assignment_expression) "min1 = seq1[i]" (identifier) "min1" (=) "=" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "min2 = seq2[j];" (assignment_expression) "min2 = seq2[j]" (identifier) "min2" (=) "=" (subscript_expression) "seq2[j]" (identifier) "seq2" ([) "[" (identifier) "j" (]) "]" (;) ";" (if_statement) "if(min1 < min2) { \n printf("%d", min1); \n prev = min1; \n i++; \n } else { \n printf("%d", min2); \n prev = min2; \n j++; \n }" (if) "if" (parenthesized_expression) "(min1 < min2)" (() "(" (binary_expression) "min1 < min2" (identifier) "min1" (<) "<" (identifier) "min2" ()) ")" (compound_statement) "{ \n printf("%d", min1); \n prev = min1; \n i++; \n }" ({) "{" (expression_statement) "printf("%d", min1);" (call_expression) "printf("%d", min1)" (identifier) "printf" (argument_list) "("%d", min1)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (identifier) "min1" ()) ")" (;) ";" (expression_statement) "prev = min1;" (assignment_expression) "prev = min1" (identifier) "prev" (=) "=" (identifier) "min1" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (else_clause) "else { \n printf("%d", min2); \n prev = min2; \n j++; \n }" (else) "else" (compound_statement) "{ \n printf("%d", min2); \n prev = min2; \n j++; \n }" ({) "{" (expression_statement) "printf("%d", min2);" (call_expression) "printf("%d", min2)" (identifier) "printf" (argument_list) "("%d", min2)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (identifier) "min2" ()) ")" (;) ";" (expression_statement) "prev = min2;" (assignment_expression) "prev = min2" (identifier) "prev" (=) "=" (identifier) "min2" (;) ";" (expression_statement) "j++;" (update_expression) "j++" (identifier) "j" (++) "++" (;) ";" (}) "}" (while_statement) "while(i<DIM || j<DIM) { \n if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n } \n }" (while) "while" (parenthesized_expression) "(i<DIM || j<DIM)" (() "(" (binary_expression) "i<DIM || j<DIM" (binary_expression) "i<DIM" (identifier) "i" (<) "<" (identifier) "DIM" (||) "||" (binary_expression) "j<DIM" (identifier) "j" (<) "<" (identifier) "DIM" ()) ")" (compound_statement) "{ \n if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n } \n }" ({) "{" (if_statement) "if(seq1[i] < seq2[j]) { \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n } else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n }" (if) "if" (parenthesized_expression) "(seq1[i] < seq2[j])" (() "(" (binary_expression) "seq1[i] < seq2[j]" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" (<) "<" (subscript_expression) "seq2[j]" (identifier) "seq2" ([) "[" (identifier) "j" (]) "]" ()) ")" (compound_statement) "{ \n if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n } \n i++; \n }" ({) "{" (if_statement) "if(prev < seq1[i]) { \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n }" (if) "if" (parenthesized_expression) "(prev < seq1[i])" (() "(" (binary_expression) "prev < seq1[i]" (identifier) "prev" (<) "<" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" ()) ")" (compound_statement) "{ \n printf("%3d", seq1[i]); \n prev = seq1[i]; \n }" ({) "{" (expression_statement) "printf("%3d", seq1[i]);" (call_expression) "printf("%3d", seq1[i])" (identifier) "printf" (argument_list) "("%3d", seq1[i])" (() "(" (string_literal) ""%3d"" (") """ (string_content) "%3d" (") """ (,) "," (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "prev = seq1[i];" (assignment_expression) "prev = seq1[i]" (identifier) "prev" (=) "=" (subscript_expression) "seq1[i]" (identifier) "seq1" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (else_clause) "else { \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n }" (else) "else" (compound_statement) "{ \n if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n } \n j++; \n }" ({) "{" (if_statement) "if(prev < seq1[j]) { \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n }" (if) "if" (parenthesized_expression) "(prev < seq1[j])" (() "(" (binary_expression) "prev < seq1[j]" (identifier) "prev" (<) "<" (subscript_expression) "seq1[j]" (identifier) "seq1" ([) "[" (identifier) "j" (]) "]" ()) ")" (compound_statement) "{ \n printf("%3d", seq1[j]); \n prev = seq1[j]; \n }" ({) "{" (expression_statement) "printf("%3d", seq1[j]);" (call_expression) "printf("%3d", seq1[j])" (identifier) "printf" (argument_list) "("%3d", seq1[j])" (() "(" (string_literal) ""%3d"" (") """ (string_content) "%3d" (") """ (,) "," (subscript_expression) "seq1[j]" (identifier) "seq1" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "prev = seq1[j];" (assignment_expression) "prev = seq1[j]" (identifier) "prev" (=) "=" (subscript_expression) "seq1[j]" (identifier) "seq1" ([) "[" (identifier) "j" (]) "]" (;) ";" (}) "}" (expression_statement) "j++;" (update_expression) "j++" (identifier) "j" (++) "++" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
627
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 16.75, "nodes": 354, "errors": 0, "source_hash": "0443297a61783f56e954a8a024d8014e22b26499e75bce72c038e71ab902c3d4", "categorized_nodes": 274}, "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_def", "text": "#define DIM 20\r\n", "parent": null, "children": [4, 5, 6], "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": "DIM", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 11}}, {"id": 6, "type": "preproc_arg", "text": "20\r", "parent": 3, "children": [], "start_point": {"row": 1, "column": 12}, "end_point": {"row": 1, "column": 15}}, {"id": 7, "type": "function_definition", "text": "int main(int argc, char * argv[]) {\r\n int seq1[DIM];\r\n int seq2[DIM];\r\n int i, j, pivot, min;\r\n int tmp;\r\n int min1, min2, prev;\r\n\r\n for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq1[i]);\r\n }\r\n for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq2[i]);\r\n }\r\n\r\n for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq1[i] < seq1[min])\r\n min = i;\r\n }\r\n tmp = seq1[pivot];\r\n seq1[pivot] = seq1[min];\r\n seq1[min] = tmp;\r\n }\r\n\r\n for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq2[i] < seq2[min])\r\n min = i;\r\n }\r\n tmp = seq2[pivot];\r\n seq2[pivot] = seq2[min];\r\n seq2[min] = tmp;\r\n }\r\n\r\n\r\n i=0; j=0;\r\n min1 = seq1[i];\r\n min2 = seq2[j];\r\n if(min1 < min2) {\r\n printf(\"%d\", min1);\r\n prev = min1;\r\n i++;\r\n } else {\r\n printf(\"%d\", min2);\r\n prev = min2;\r\n j++;\r\n }\r\n\r\n while(i<DIM || j<DIM) {\r\n if(seq1[i] < seq2[j]) {\r\n if(prev < seq1[i]) {\r\n printf(\"%3d\", seq1[i]);\r\n prev = seq1[i];\r\n }\r\n i++;\r\n } else {\r\n if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }\r\n j++;\r\n }\r\n }\r\n\r\n printf(\"\\n\");\r\n\r\n return 0;\r\n}", "parent": null, "children": [8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 8, "type": "primitive_type", "text": "int", "parent": 7, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 9, "type": "function_declarator", "text": "main(int argc, char * argv[])", "parent": 7, "children": [10, 11], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 33}}, {"id": 10, "type": "identifier", "text": "main", "parent": 9, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "parameter_list", "text": "(int argc, char * argv[])", "parent": 9, "children": [12, 15], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 33}}, {"id": 12, "type": "parameter_declaration", "text": "int argc", "parent": 11, "children": [13, 14], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 12}}, {"id": 14, "type": "identifier", "text": "argc", "parent": 12, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 17}}, {"id": 15, "type": "parameter_declaration", "text": "char * argv[]", "parent": 11, "children": [16, 17], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 32}}, {"id": 16, "type": "primitive_type", "text": "char", "parent": 15, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 23}}, {"id": 17, "type": "pointer_declarator", "text": "* argv[]", "parent": 15, "children": [18, 19], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 32}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 19, "type": "array_declarator", "text": "argv[]", "parent": 17, "children": [20], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 32}}, {"id": 20, "type": "identifier", "text": "argv", "parent": 19, "children": [], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 30}}, {"id": 21, "type": "declaration", "text": "int seq1[DIM];", "parent": 7, "children": [22, 23], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 16}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 5}}, {"id": 23, "type": "array_declarator", "text": "seq1[DIM]", "parent": 21, "children": [24, 25], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 15}}, {"id": 24, "type": "identifier", "text": "seq1", "parent": 23, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 10}}, {"id": 25, "type": "identifier", "text": "DIM", "parent": 23, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 14}}, {"id": 26, "type": "declaration", "text": "int seq2[DIM];", "parent": 7, "children": [27, 28], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 16}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 5}}, {"id": 28, "type": "array_declarator", "text": "seq2[DIM]", "parent": 26, "children": [29, 30], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 15}}, {"id": 29, "type": "identifier", "text": "seq2", "parent": 28, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 10}}, {"id": 30, "type": "identifier", "text": "DIM", "parent": 28, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 14}}, {"id": 31, "type": "declaration", "text": "int i, j, pivot, min;", "parent": 7, "children": [32, 33, 34, 35, 36], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 23}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 5}}, {"id": 33, "type": "identifier", "text": "i", "parent": 31, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 7}}, {"id": 34, "type": "identifier", "text": "j", "parent": 31, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 35, "type": "identifier", "text": "pivot", "parent": 31, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 17}}, {"id": 36, "type": "identifier", "text": "min", "parent": 31, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 22}}, {"id": 37, "type": "declaration", "text": "int tmp;", "parent": 7, "children": [38, 39], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 10}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 5}}, {"id": 39, "type": "identifier", "text": "tmp", "parent": 37, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 9}}, {"id": 40, "type": "declaration", "text": "int min1, min2, prev;", "parent": 7, "children": [41, 42, 43, 44], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 23}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 5}}, {"id": 42, "type": "identifier", "text": "min1", "parent": 40, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 10}}, {"id": 43, "type": "identifier", "text": "min2", "parent": 40, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 16}}, {"id": 44, "type": "identifier", "text": "prev", "parent": 40, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 22}}, {"id": 45, "type": "for_statement", "text": "for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq1[i]);\r\n }", "parent": 7, "children": [46, 50, 54], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 46, "type": "assignment_expression", "text": "i=0", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 9}}, {"id": 47, "type": "identifier", "text": "i", "parent": 46, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 7}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 49, "type": "number_literal", "text": "0", "parent": 46, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 50, "type": "binary_expression", "text": "i<DIM", "parent": 45, "children": [51, 52, 53], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 16}}, {"id": 51, "type": "identifier", "text": "i", "parent": 50, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 53, "type": "identifier", "text": "DIM", "parent": 50, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 16}}, {"id": 54, "type": "update_expression", "text": "i++", "parent": 45, "children": [55, 56], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 21}}, {"id": 55, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 19}}, {"id": 56, "type": "++", "text": "++", "parent": 54, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 21}}, {"id": 57, "type": "call_expression", "text": "scanf(\"%d\", &seq1[i])", "parent": 45, "children": [58, 59], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 25}}, {"id": 58, "type": "identifier", "text": "scanf", "parent": 57, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 9}}, {"id": 59, "type": "argument_list", "text": "(\"%d\", &seq1[i])", "parent": 57, "children": [60, 61], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 25}}, {"id": 60, "type": "string_literal", "text": "\"%d\"", "parent": 59, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 61, "type": "pointer_expression", "text": "&seq1[i]", "parent": 59, "children": [62], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 24}}, {"id": 62, "type": "subscript_expression", "text": "seq1[i]", "parent": 61, "children": [63, 64], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 24}}, {"id": 63, "type": "identifier", "text": "seq1", "parent": 62, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 21}}, {"id": 64, "type": "identifier", "text": "i", "parent": 62, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 23}}, {"id": 65, "type": "for_statement", "text": "for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq2[i]);\r\n }", "parent": 7, "children": [66, 70, 74], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 66, "type": "assignment_expression", "text": "i=0", "parent": 65, "children": [67, 68, 69], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 9}}, {"id": 67, "type": "identifier", "text": "i", "parent": 66, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 66, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 70, "type": "binary_expression", "text": "i<DIM", "parent": 65, "children": [71, 72, 73], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 71, "type": "identifier", "text": "i", "parent": 70, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 72, "type": "<", "text": "<", "parent": 70, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 73, "type": "identifier", "text": "DIM", "parent": 70, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 16}}, {"id": 74, "type": "update_expression", "text": "i++", "parent": 65, "children": [75, 76], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 21}}, {"id": 75, "type": "identifier", "text": "i", "parent": 74, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 19}}, {"id": 76, "type": "++", "text": "++", "parent": 74, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 77, "type": "call_expression", "text": "scanf(\"%d\", &seq2[i])", "parent": 65, "children": [78, 79], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 25}}, {"id": 78, "type": "identifier", "text": "scanf", "parent": 77, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 9}}, {"id": 79, "type": "argument_list", "text": "(\"%d\", &seq2[i])", "parent": 77, "children": [80, 81], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 25}}, {"id": 80, "type": "string_literal", "text": "\"%d\"", "parent": 79, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 81, "type": "pointer_expression", "text": "&seq2[i]", "parent": 79, "children": [82], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 24}}, {"id": 82, "type": "subscript_expression", "text": "seq2[i]", "parent": 81, "children": [83, 84], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 24}}, {"id": 83, "type": "identifier", "text": "seq2", "parent": 82, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 21}}, {"id": 84, "type": "identifier", "text": "i", "parent": 82, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 85, "type": "for_statement", "text": "for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq1[i] < seq1[min])\r\n min = i;\r\n }\r\n tmp = seq1[pivot];\r\n seq1[pivot] = seq1[min];\r\n seq1[min] = tmp;\r\n }", "parent": 7, "children": [86, 90, 98], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 26, "column": 3}}, {"id": 86, "type": "assignment_expression", "text": "pivot=0", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 13}}, {"id": 87, "type": "identifier", "text": "pivot", "parent": 86, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 11}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 12}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 13}}, {"id": 90, "type": "binary_expression", "text": "pivot<(DIM-1)", "parent": 85, "children": [91, 92, 93], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 28}}, {"id": 91, "type": "identifier", "text": "pivot", "parent": 90, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 20}}, {"id": 92, "type": "<", "text": "<", "parent": 90, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 93, "type": "parenthesized_expression", "text": "(DIM-1)", "parent": 90, "children": [94], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 28}}, {"id": 94, "type": "binary_expression", "text": "DIM-1", "parent": 93, "children": [95, 96, 97], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 27}}, {"id": 95, "type": "identifier", "text": "DIM", "parent": 94, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 25}}, {"id": 96, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 26}}, {"id": 97, "type": "number_literal", "text": "1", "parent": 94, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 27}}, {"id": 98, "type": "update_expression", "text": "pivot++", "parent": 85, "children": [99, 100], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 37}}, {"id": 99, "type": "identifier", "text": "pivot", "parent": 98, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 35}}, {"id": 100, "type": "++", "text": "++", "parent": 98, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 37}}, {"id": 101, "type": "assignment_expression", "text": "min = pivot", "parent": 85, "children": [102, 103, 104], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 15}}, {"id": 102, "type": "identifier", "text": "min", "parent": 101, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 104, "type": "identifier", "text": "pivot", "parent": 101, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 15}}, {"id": 105, "type": "for_statement", "text": "for(i=(pivot+1); i<DIM; i++) {\r\n if(seq1[i] < seq1[min])\r\n min = i;\r\n }", "parent": 85, "children": [106, 114, 118], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 106, "type": "assignment_expression", "text": "i=(pivot+1)", "parent": 105, "children": [107, 108, 109], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 19}}, {"id": 107, "type": "identifier", "text": "i", "parent": 106, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 108, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 109, "type": "parenthesized_expression", "text": "(pivot+1)", "parent": 106, "children": [110], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 19}}, {"id": 110, "type": "binary_expression", "text": "pivot+1", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 18}}, {"id": 111, "type": "identifier", "text": "pivot", "parent": 110, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 16}}, {"id": 112, "type": "+", "text": "+", "parent": 110, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 17}}, {"id": 113, "type": "number_literal", "text": "1", "parent": 110, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 114, "type": "binary_expression", "text": "i<DIM", "parent": 105, "children": [115, 116, 117], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 26}}, {"id": 115, "type": "identifier", "text": "i", "parent": 114, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 116, "type": "<", "text": "<", "parent": 114, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 117, "type": "identifier", "text": "DIM", "parent": 114, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 26}}, {"id": 118, "type": "update_expression", "text": "i++", "parent": 105, "children": [119, 120], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 31}}, {"id": 119, "type": "identifier", "text": "i", "parent": 118, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 29}}, {"id": 120, "type": "++", "text": "++", "parent": 118, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 31}}, {"id": 121, "type": "if_statement", "text": "if(seq1[i] < seq1[min])\r\n min = i;", "parent": 105, "children": [122], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 21, "column": 16}}, {"id": 122, "type": "parenthesized_expression", "text": "(seq1[i] < seq1[min])", "parent": 121, "children": [123], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 29}}, {"id": 123, "type": "binary_expression", "text": "seq1[i] < seq1[min]", "parent": 122, "children": [124, 127, 128], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 124, "type": "subscript_expression", "text": "seq1[i]", "parent": 123, "children": [125, 126], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 125, "type": "identifier", "text": "seq1", "parent": 124, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 126, "type": "identifier", "text": "i", "parent": 124, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 127, "type": "<", "text": "<", "parent": 123, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 128, "type": "subscript_expression", "text": "seq1[min]", "parent": 123, "children": [129, 130], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 28}}, {"id": 129, "type": "identifier", "text": "seq1", "parent": 128, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 23}}, {"id": 130, "type": "identifier", "text": "min", "parent": 128, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 27}}, {"id": 131, "type": "assignment_expression", "text": "min = i", "parent": 121, "children": [132, 133, 134], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 15}}, {"id": 132, "type": "identifier", "text": "min", "parent": 131, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 11}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 134, "type": "identifier", "text": "i", "parent": 131, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 135, "type": "assignment_expression", "text": "tmp = seq1[pivot]", "parent": 85, "children": [136, 137, 138], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 21}}, {"id": 136, "type": "identifier", "text": "tmp", "parent": 135, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 138, "type": "subscript_expression", "text": "seq1[pivot]", "parent": 135, "children": [139, 140], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 21}}, {"id": 139, "type": "identifier", "text": "seq1", "parent": 138, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 14}}, {"id": 140, "type": "identifier", "text": "pivot", "parent": 138, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 20}}, {"id": 141, "type": "assignment_expression", "text": "seq1[pivot] = seq1[min]", "parent": 85, "children": [142, 145, 146], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 27}}, {"id": 142, "type": "subscript_expression", "text": "seq1[pivot]", "parent": 141, "children": [143, 144], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 143, "type": "identifier", "text": "seq1", "parent": 142, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 144, "type": "identifier", "text": "pivot", "parent": 142, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 14}}, {"id": 145, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 146, "type": "subscript_expression", "text": "seq1[min]", "parent": 141, "children": [147, 148], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 27}}, {"id": 147, "type": "identifier", "text": "seq1", "parent": 146, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 22}}, {"id": 148, "type": "identifier", "text": "min", "parent": 146, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 26}}, {"id": 149, "type": "assignment_expression", "text": "seq1[min] = tmp", "parent": 85, "children": [150, 153, 154], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 19}}, {"id": 150, "type": "subscript_expression", "text": "seq1[min]", "parent": 149, "children": [151, 152], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 13}}, {"id": 151, "type": "identifier", "text": "seq1", "parent": 150, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 152, "type": "identifier", "text": "min", "parent": 150, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 12}}, {"id": 153, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 154, "type": "identifier", "text": "tmp", "parent": 149, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 19}}, {"id": 155, "type": "for_statement", "text": "for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq2[i] < seq2[min])\r\n min = i;\r\n }\r\n tmp = seq2[pivot];\r\n seq2[pivot] = seq2[min];\r\n seq2[min] = tmp;\r\n }", "parent": 7, "children": [156, 160, 168], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 37, "column": 3}}, {"id": 156, "type": "assignment_expression", "text": "pivot=0", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 157, "type": "identifier", "text": "pivot", "parent": 156, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 11}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 159, "type": "number_literal", "text": "0", "parent": 156, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 160, "type": "binary_expression", "text": "pivot<(DIM-1)", "parent": 155, "children": [161, 162, 163], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 28}}, {"id": 161, "type": "identifier", "text": "pivot", "parent": 160, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 20}}, {"id": 162, "type": "<", "text": "<", "parent": 160, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 163, "type": "parenthesized_expression", "text": "(DIM-1)", "parent": 160, "children": [164], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 28}}, {"id": 164, "type": "binary_expression", "text": "DIM-1", "parent": 163, "children": [165, 166, 167], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 27}}, {"id": 165, "type": "identifier", "text": "DIM", "parent": 164, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 25}}, {"id": 166, "type": "-", "text": "-", "parent": 164, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 26}}, {"id": 167, "type": "number_literal", "text": "1", "parent": 164, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 27}}, {"id": 168, "type": "update_expression", "text": "pivot++", "parent": 155, "children": [169, 170], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 37}}, {"id": 169, "type": "identifier", "text": "pivot", "parent": 168, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 35}}, {"id": 170, "type": "++", "text": "++", "parent": 168, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 37}}, {"id": 171, "type": "assignment_expression", "text": "min = pivot", "parent": 155, "children": [172, 173, 174], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 15}}, {"id": 172, "type": "identifier", "text": "min", "parent": 171, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 7}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 9}}, {"id": 174, "type": "identifier", "text": "pivot", "parent": 171, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 175, "type": "for_statement", "text": "for(i=(pivot+1); i<DIM; i++) {\r\n if(seq2[i] < seq2[min])\r\n min = i;\r\n }", "parent": 155, "children": [176, 184, 188], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 176, "type": "assignment_expression", "text": "i=(pivot+1)", "parent": 175, "children": [177, 178, 179], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 19}}, {"id": 177, "type": "identifier", "text": "i", "parent": 176, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 179, "type": "parenthesized_expression", "text": "(pivot+1)", "parent": 176, "children": [180], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 19}}, {"id": 180, "type": "binary_expression", "text": "pivot+1", "parent": 179, "children": [181, 182, 183], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 18}}, {"id": 181, "type": "identifier", "text": "pivot", "parent": 180, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 16}}, {"id": 182, "type": "+", "text": "+", "parent": 180, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 17}}, {"id": 183, "type": "number_literal", "text": "1", "parent": 180, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 184, "type": "binary_expression", "text": "i<DIM", "parent": 175, "children": [185, 186, 187], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 26}}, {"id": 185, "type": "identifier", "text": "i", "parent": 184, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 186, "type": "<", "text": "<", "parent": 184, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 187, "type": "identifier", "text": "DIM", "parent": 184, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 26}}, {"id": 188, "type": "update_expression", "text": "i++", "parent": 175, "children": [189, 190], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 31}}, {"id": 189, "type": "identifier", "text": "i", "parent": 188, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 29}}, {"id": 190, "type": "++", "text": "++", "parent": 188, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 31}}, {"id": 191, "type": "if_statement", "text": "if(seq2[i] < seq2[min])\r\n min = i;", "parent": 175, "children": [192], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 32, "column": 16}}, {"id": 192, "type": "parenthesized_expression", "text": "(seq2[i] < seq2[min])", "parent": 191, "children": [193], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 29}}, {"id": 193, "type": "binary_expression", "text": "seq2[i] < seq2[min]", "parent": 192, "children": [194, 197, 198], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 28}}, {"id": 194, "type": "subscript_expression", "text": "seq2[i]", "parent": 193, "children": [195, 196], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 16}}, {"id": 195, "type": "identifier", "text": "seq2", "parent": 194, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 13}}, {"id": 196, "type": "identifier", "text": "i", "parent": 194, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 15}}, {"id": 197, "type": "<", "text": "<", "parent": 193, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 18}}, {"id": 198, "type": "subscript_expression", "text": "seq2[min]", "parent": 193, "children": [199, 200], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 28}}, {"id": 199, "type": "identifier", "text": "seq2", "parent": 198, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 23}}, {"id": 200, "type": "identifier", "text": "min", "parent": 198, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 27}}, {"id": 201, "type": "assignment_expression", "text": "min = i", "parent": 191, "children": [202, 203, 204], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 15}}, {"id": 202, "type": "identifier", "text": "min", "parent": 201, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 203, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 204, "type": "identifier", "text": "i", "parent": 201, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 205, "type": "assignment_expression", "text": "tmp = seq2[pivot]", "parent": 155, "children": [206, 207, 208], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 21}}, {"id": 206, "type": "identifier", "text": "tmp", "parent": 205, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 7}}, {"id": 207, "type": "=", "text": "=", "parent": 205, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 208, "type": "subscript_expression", "text": "seq2[pivot]", "parent": 205, "children": [209, 210], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 21}}, {"id": 209, "type": "identifier", "text": "seq2", "parent": 208, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 210, "type": "identifier", "text": "pivot", "parent": 208, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 20}}, {"id": 211, "type": "assignment_expression", "text": "seq2[pivot] = seq2[min]", "parent": 155, "children": [212, 215, 216], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 27}}, {"id": 212, "type": "subscript_expression", "text": "seq2[pivot]", "parent": 211, "children": [213, 214], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 15}}, {"id": 213, "type": "identifier", "text": "seq2", "parent": 212, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 214, "type": "identifier", "text": "pivot", "parent": 212, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 14}}, {"id": 215, "type": "=", "text": "=", "parent": 211, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 216, "type": "subscript_expression", "text": "seq2[min]", "parent": 211, "children": [217, 218], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 27}}, {"id": 217, "type": "identifier", "text": "seq2", "parent": 216, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 22}}, {"id": 218, "type": "identifier", "text": "min", "parent": 216, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 26}}, {"id": 219, "type": "assignment_expression", "text": "seq2[min] = tmp", "parent": 155, "children": [220, 223, 224], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 220, "type": "subscript_expression", "text": "seq2[min]", "parent": 219, "children": [221, 222], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 221, "type": "identifier", "text": "seq2", "parent": 220, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 222, "type": "identifier", "text": "min", "parent": 220, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 12}}, {"id": 223, "type": "=", "text": "=", "parent": 219, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 224, "type": "identifier", "text": "tmp", "parent": 219, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 19}}, {"id": 225, "type": "assignment_expression", "text": "i=0", "parent": 7, "children": [226, 227, 228], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 5}}, {"id": 226, "type": "identifier", "text": "i", "parent": 225, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 227, "type": "=", "text": "=", "parent": 225, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 4}}, {"id": 228, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 229, "type": "assignment_expression", "text": "j=0", "parent": 7, "children": [230, 231, 232], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 10}}, {"id": 230, "type": "identifier", "text": "j", "parent": 229, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 8}}, {"id": 231, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 232, "type": "number_literal", "text": "0", "parent": 229, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 10}}, {"id": 233, "type": "assignment_expression", "text": "min1 = seq1[i]", "parent": 7, "children": [234, 235, 236], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 16}}, {"id": 234, "type": "identifier", "text": "min1", "parent": 233, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 235, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 8}}, {"id": 236, "type": "subscript_expression", "text": "seq1[i]", "parent": 233, "children": [237, 238], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 16}}, {"id": 237, "type": "identifier", "text": "seq1", "parent": 236, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 13}}, {"id": 238, "type": "identifier", "text": "i", "parent": 236, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 239, "type": "assignment_expression", "text": "min2 = seq2[j]", "parent": 7, "children": [240, 241, 242], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 16}}, {"id": 240, "type": "identifier", "text": "min2", "parent": 239, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 241, "type": "=", "text": "=", "parent": 239, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 8}}, {"id": 242, "type": "subscript_expression", "text": "seq2[j]", "parent": 239, "children": [243, 244], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 16}}, {"id": 243, "type": "identifier", "text": "seq2", "parent": 242, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 13}}, {"id": 244, "type": "identifier", "text": "j", "parent": 242, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 245, "type": "if_statement", "text": "if(min1 < min2) {\r\n printf(\"%d\", min1);\r\n prev = min1;\r\n i++;\r\n } else {\r\n printf(\"%d\", min2);\r\n prev = min2;\r\n j++;\r\n }", "parent": 7, "children": [246, 263], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 51, "column": 3}}, {"id": 246, "type": "parenthesized_expression", "text": "(min1 < min2)", "parent": 245, "children": [247], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 17}}, {"id": 247, "type": "binary_expression", "text": "min1 < min2", "parent": 246, "children": [248, 249, 250], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 16}}, {"id": 248, "type": "identifier", "text": "min1", "parent": 247, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 9}}, {"id": 249, "type": "<", "text": "<", "parent": 247, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 11}}, {"id": 250, "type": "identifier", "text": "min2", "parent": 247, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 16}}, {"id": 251, "type": "call_expression", "text": "printf(\"%d\", min1)", "parent": 245, "children": [252, 253], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 22}}, {"id": 252, "type": "identifier", "text": "printf", "parent": 251, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 253, "type": "argument_list", "text": "(\"%d\", min1)", "parent": 251, "children": [254, 255], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 22}}, {"id": 254, "type": "string_literal", "text": "\"%d\"", "parent": 253, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 15}}, {"id": 255, "type": "identifier", "text": "min1", "parent": 253, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 21}}, {"id": 256, "type": "assignment_expression", "text": "prev = min1", "parent": 245, "children": [257, 258, 259], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 15}}, {"id": 257, "type": "identifier", "text": "prev", "parent": 256, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 258, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 10}}, {"id": 259, "type": "identifier", "text": "min1", "parent": 256, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 15}}, {"id": 260, "type": "update_expression", "text": "i++", "parent": 245, "children": [261, 262], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 7}}, {"id": 261, "type": "identifier", "text": "i", "parent": 260, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 262, "type": "++", "text": "++", "parent": 260, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 7}}, {"id": 263, "type": "else_clause", "text": "else {\r\n printf(\"%d\", min2);\r\n prev = min2;\r\n j++;\r\n }", "parent": 245, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 51, "column": 3}}, {"id": 264, "type": "call_expression", "text": "printf(\"%d\", min2)", "parent": 263, "children": [265, 266], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 22}}, {"id": 265, "type": "identifier", "text": "printf", "parent": 264, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 266, "type": "argument_list", "text": "(\"%d\", min2)", "parent": 264, "children": [267, 268], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 22}}, {"id": 267, "type": "string_literal", "text": "\"%d\"", "parent": 266, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 268, "type": "identifier", "text": "min2", "parent": 266, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 21}}, {"id": 269, "type": "assignment_expression", "text": "prev = min2", "parent": 263, "children": [270, 271, 272], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 15}}, {"id": 270, "type": "identifier", "text": "prev", "parent": 269, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 271, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 272, "type": "identifier", "text": "min2", "parent": 269, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 15}}, {"id": 273, "type": "update_expression", "text": "j++", "parent": 263, "children": [274, 275], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 7}}, {"id": 274, "type": "identifier", "text": "j", "parent": 273, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 5}}, {"id": 275, "type": "++", "text": "++", "parent": 273, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 7}}, {"id": 276, "type": "while_statement", "text": "while(i<DIM || j<DIM) {\r\n if(seq1[i] < seq2[j]) {\r\n if(prev < seq1[i]) {\r\n printf(\"%3d\", seq1[i]);\r\n prev = seq1[i];\r\n }\r\n i++;\r\n } else {\r\n if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }\r\n j++;\r\n }\r\n }", "parent": 7, "children": [277], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 67, "column": 3}}, {"id": 277, "type": "parenthesized_expression", "text": "(i<DIM || j<DIM)", "parent": 276, "children": [278], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 23}}, {"id": 278, "type": "binary_expression", "text": "i<DIM || j<DIM", "parent": 277, "children": [279, 283, 284], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 22}}, {"id": 279, "type": "binary_expression", "text": "i<DIM", "parent": 278, "children": [280, 281, 282], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 13}}, {"id": 280, "type": "identifier", "text": "i", "parent": 279, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 9}}, {"id": 281, "type": "<", "text": "<", "parent": 279, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 282, "type": "identifier", "text": "DIM", "parent": 279, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 13}}, {"id": 283, "type": "||", "text": "||", "parent": 278, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 284, "type": "binary_expression", "text": "j<DIM", "parent": 278, "children": [285, 286, 287], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 22}}, {"id": 285, "type": "identifier", "text": "j", "parent": 284, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 286, "type": "<", "text": "<", "parent": 284, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 287, "type": "identifier", "text": "DIM", "parent": 284, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 22}}, {"id": 288, "type": "if_statement", "text": "if(seq1[i] < seq2[j]) {\r\n if(prev < seq1[i]) {\r\n printf(\"%3d\", seq1[i]);\r\n prev = seq1[i];\r\n }\r\n i++;\r\n } else {\r\n if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }\r\n j++;\r\n }", "parent": 276, "children": [289, 322], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 289, "type": "parenthesized_expression", "text": "(seq1[i] < seq2[j])", "parent": 288, "children": [290], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 25}}, {"id": 290, "type": "binary_expression", "text": "seq1[i] < seq2[j]", "parent": 289, "children": [291, 294, 295], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 24}}, {"id": 291, "type": "subscript_expression", "text": "seq1[i]", "parent": 290, "children": [292, 293], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 292, "type": "identifier", "text": "seq1", "parent": 291, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 11}}, {"id": 293, "type": "identifier", "text": "i", "parent": 291, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 294, "type": "<", "text": "<", "parent": 290, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 16}}, {"id": 295, "type": "subscript_expression", "text": "seq2[j]", "parent": 290, "children": [296, 297], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 24}}, {"id": 296, "type": "identifier", "text": "seq2", "parent": 295, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 21}}, {"id": 297, "type": "identifier", "text": "j", "parent": 295, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 23}}, {"id": 298, "type": "if_statement", "text": "if(prev < seq1[i]) {\r\n printf(\"%3d\", seq1[i]);\r\n prev = seq1[i];\r\n }", "parent": 288, "children": [299], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 58, "column": 7}}, {"id": 299, "type": "parenthesized_expression", "text": "(prev < seq1[i])", "parent": 298, "children": [300], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 24}}, {"id": 300, "type": "binary_expression", "text": "prev < seq1[i]", "parent": 299, "children": [301, 302, 303], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 23}}, {"id": 301, "type": "identifier", "text": "prev", "parent": 300, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 13}}, {"id": 302, "type": "<", "text": "<", "parent": 300, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 303, "type": "subscript_expression", "text": "seq1[i]", "parent": 300, "children": [304, 305], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 23}}, {"id": 304, "type": "identifier", "text": "seq1", "parent": 303, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 20}}, {"id": 305, "type": "identifier", "text": "i", "parent": 303, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 306, "type": "call_expression", "text": "printf(\"%3d\", seq1[i])", "parent": 298, "children": [307, 308], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 30}}, {"id": 307, "type": "identifier", "text": "printf", "parent": 306, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 308, "type": "argument_list", "text": "(\"%3d\", seq1[i])", "parent": 306, "children": [309, 310], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 30}}, {"id": 309, "type": "string_literal", "text": "\"%3d\"", "parent": 308, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 20}}, {"id": 310, "type": "subscript_expression", "text": "seq1[i]", "parent": 308, "children": [311, 312], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 29}}, {"id": 311, "type": "identifier", "text": "seq1", "parent": 310, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 26}}, {"id": 312, "type": "identifier", "text": "i", "parent": 310, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 28}}, {"id": 313, "type": "assignment_expression", "text": "prev = seq1[i]", "parent": 298, "children": [314, 315, 316], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 22}}, {"id": 314, "type": "identifier", "text": "prev", "parent": 313, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 12}}, {"id": 315, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 316, "type": "subscript_expression", "text": "seq1[i]", "parent": 313, "children": [317, 318], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 22}}, {"id": 317, "type": "identifier", "text": "seq1", "parent": 316, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 19}}, {"id": 318, "type": "identifier", "text": "i", "parent": 316, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 319, "type": "update_expression", "text": "i++", "parent": 288, "children": [320, 321], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 9}}, {"id": 320, "type": "identifier", "text": "i", "parent": 319, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 321, "type": "++", "text": "++", "parent": 319, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 322, "type": "else_clause", "text": "else {\r\n if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }\r\n j++;\r\n }", "parent": 288, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 66, "column": 5}}, {"id": 323, "type": "if_statement", "text": "if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }", "parent": 322, "children": [324], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 64, "column": 7}}, {"id": 324, "type": "parenthesized_expression", "text": "(prev < seq1[j])", "parent": 323, "children": [325], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 24}}, {"id": 325, "type": "binary_expression", "text": "prev < seq1[j]", "parent": 324, "children": [326, 327, 328], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 23}}, {"id": 326, "type": "identifier", "text": "prev", "parent": 325, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 13}}, {"id": 327, "type": "<", "text": "<", "parent": 325, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 328, "type": "subscript_expression", "text": "seq1[j]", "parent": 325, "children": [329, 330], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 23}}, {"id": 329, "type": "identifier", "text": "seq1", "parent": 328, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 20}}, {"id": 330, "type": "identifier", "text": "j", "parent": 328, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 331, "type": "call_expression", "text": "printf(\"%3d\", seq1[j])", "parent": 323, "children": [332, 333], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 30}}, {"id": 332, "type": "identifier", "text": "printf", "parent": 331, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 14}}, {"id": 333, "type": "argument_list", "text": "(\"%3d\", seq1[j])", "parent": 331, "children": [334, 335], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 30}}, {"id": 334, "type": "string_literal", "text": "\"%3d\"", "parent": 333, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 20}}, {"id": 335, "type": "subscript_expression", "text": "seq1[j]", "parent": 333, "children": [336, 337], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 29}}, {"id": 336, "type": "identifier", "text": "seq1", "parent": 335, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 26}}, {"id": 337, "type": "identifier", "text": "j", "parent": 335, "children": [], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 28}}, {"id": 338, "type": "assignment_expression", "text": "prev = seq1[j]", "parent": 323, "children": [339, 340, 341], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 22}}, {"id": 339, "type": "identifier", "text": "prev", "parent": 338, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 12}}, {"id": 340, "type": "=", "text": "=", "parent": 338, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 14}}, {"id": 341, "type": "subscript_expression", "text": "seq1[j]", "parent": 338, "children": [342, 343], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 22}}, {"id": 342, "type": "identifier", "text": "seq1", "parent": 341, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 19}}, {"id": 343, "type": "identifier", "text": "j", "parent": 341, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 344, "type": "update_expression", "text": "j++", "parent": 322, "children": [345, 346], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 9}}, {"id": 345, "type": "identifier", "text": "j", "parent": 344, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 7}}, {"id": 346, "type": "++", "text": "++", "parent": 344, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 9}}, {"id": 347, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 7, "children": [348, 349], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 14}}, {"id": 348, "type": "identifier", "text": "printf", "parent": 347, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 8}}, {"id": 349, "type": "argument_list", "text": "(\"\\n\")", "parent": 347, "children": [350], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 14}}, {"id": 350, "type": "string_literal", "text": "\"\\n\"", "parent": 349, "children": [351], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 13}}, {"id": 351, "type": "escape_sequence", "text": "\\n", "parent": 350, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 12}}, {"id": 352, "type": "return_statement", "text": "return 0;", "parent": 7, "children": [353], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 11}}, {"id": 353, "type": "number_literal", "text": "0", "parent": 352, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}]}, "node_categories": {"declarations": {"functions": [7, 9], "variables": [12, 15, 21, 26, 31, 37, 40], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [50, 54, 57, 61, 62, 70, 74, 77, 81, 82, 90, 93, 94, 98, 109, 110, 114, 118, 122, 123, 124, 128, 138, 142, 146, 150, 160, 163, 164, 168, 179, 180, 184, 188, 192, 193, 194, 198, 208, 212, 216, 220, 236, 242, 246, 247, 251, 260, 264, 273, 277, 278, 279, 284, 289, 290, 291, 295, 299, 300, 303, 306, 310, 316, 319, 324, 325, 328, 331, 335, 341, 344, 347], "assignments": [46, 66, 86, 101, 106, 131, 135, 141, 149, 156, 171, 176, 201, 205, 211, 219, 225, 229, 233, 239, 256, 269, 313, 338], "loops": [45, 65, 85, 105, 155, 175, 276], "conditionals": [5, 10, 14, 20, 24, 25, 29, 30, 33, 34, 35, 36, 39, 42, 43, 44, 47, 51, 53, 55, 58, 63, 64, 67, 71, 73, 75, 78, 83, 84, 87, 91, 95, 99, 102, 104, 107, 111, 115, 117, 119, 121, 125, 126, 129, 130, 132, 134, 136, 139, 140, 143, 144, 147, 148, 151, 152, 154, 157, 161, 165, 169, 172, 174, 177, 181, 185, 187, 189, 191, 195, 196, 199, 200, 202, 204, 206, 209, 210, 213, 214, 217, 218, 221, 222, 224, 226, 230, 234, 237, 238, 240, 243, 244, 245, 248, 250, 252, 255, 257, 259, 261, 265, 268, 270, 272, 274, 280, 282, 285, 287, 288, 292, 293, 296, 297, 298, 301, 304, 305, 307, 311, 312, 314, 317, 318, 320, 323, 326, 329, 330, 332, 336, 337, 339, 342, 343, 345, 348], "returns": [352], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 49, 60, 69, 80, 89, 97, 113, 159, 167, 183, 228, 232, 254, 267, 309, 334, 350, 353], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char * argv[]) {\r\n int seq1[DIM];\r\n int seq2[DIM];\r\n int i, j, pivot, min;\r\n "}, {"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char * argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\r\n#define DIM 20\r\n\r\nint main(int argc, char * argv[]) {\r\n int seq1[DIM];\r\n int seq2[DIM];\r\n int i, j, pivot, min;\r\n int tmp;\r\n int min1, min2, prev;\r\n\r\n for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq1[i]);\r\n }\r\n for(i=0; i<DIM; i++) {\r\n scanf(\"%d\", &seq2[i]);\r\n }\r\n\r\n for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq1[i] < seq1[min])\r\n min = i;\r\n }\r\n tmp = seq1[pivot];\r\n seq1[pivot] = seq1[min];\r\n seq1[min] = tmp;\r\n }\r\n\r\n for(pivot=0; pivot<(DIM-1); pivot++) {\r\n min = pivot;\r\n for(i=(pivot+1); i<DIM; i++) {\r\n if(seq2[i] < seq2[min])\r\n min = i;\r\n }\r\n tmp = seq2[pivot];\r\n seq2[pivot] = seq2[min];\r\n seq2[min] = tmp;\r\n }\r\n\r\n\r\n i=0; j=0;\r\n min1 = seq1[i];\r\n min2 = seq2[j];\r\n if(min1 < min2) {\r\n printf(\"%d\", min1);\r\n prev = min1;\r\n i++;\r\n } else {\r\n printf(\"%d\", min2);\r\n prev = min2;\r\n j++;\r\n }\r\n\r\n while(i<DIM || j<DIM) {\r\n if(seq1[i] < seq2[j]) {\r\n if(prev < seq1[i]) {\r\n printf(\"%3d\", seq1[i]);\r\n prev = seq1[i];\r\n }\r\n i++;\r\n } else {\r\n if(prev < seq1[j]) {\r\n printf(\"%3d\", seq1[j]);\r\n prev = seq1[j];\r\n }\r\n j++;\r\n }\r\n }\r\n\r\n printf(\"\\n\");\r\n\r\n return 0;\r\n}\r\n"}
166
c
#ifndef REPLY_H #define REPLY_H #include <iostream> #include "Message.h" using namespace std; class Reply : public Message { public: Reply(); Reply(const string &athr, const string &sbjct, const string &body, unsigned id); virtual bool is_reply() const; // return true virtual string to_formatted_string() const; }; #endif
19.47
17
(translation_unit) "#ifndef REPLY_H\n#define REPLY_H\n#include <iostream>\n#include "Message.h"\nusing namespace std;\n\nclass Reply : public Message\n{\n public: \n Reply();\n Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned id);\n virtual bool is_reply() const; // return true\n virtual string to_formatted_string() const;\n};\n#endif\n\n" (preproc_ifdef) "#ifndef REPLY_H\n#define REPLY_H\n#include <iostream>\n#include "Message.h"\nusing namespace std;\n\nclass Reply : public Message\n{\n public: \n Reply();\n Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned id);\n virtual bool is_reply() const; // return true\n virtual string to_formatted_string() const;\n};\n#endif" (#ifndef) "#ifndef" (identifier) "REPLY_H" (preproc_def) "#define REPLY_H\n" (#define) "#define" (identifier) "REPLY_H" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include "Message.h"\n" (#include) "#include" (string_literal) ""Message.h"" (") """ (string_content) "Message.h" (") """ (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (function_definition) "class Reply : public Message\n{\n public: \n Reply();\n Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned id);\n virtual bool is_reply() const; // return true\n virtual string to_formatted_string() const;\n}" (type_identifier) "class" (ERROR) "Reply : public" (identifier) "Reply" (:) ":" (identifier) "public" (identifier) "Message" (compound_statement) "{\n public: \n Reply();\n Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned id);\n virtual bool is_reply() const; // return true\n virtual string to_formatted_string() const;\n}" ({) "{" (labeled_statement) "public: \n Reply();" (statement_identifier) "public" (:) ":" (expression_statement) "Reply();" (call_expression) "Reply()" (identifier) "Reply" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned id);" (comma_expression) "Reply(const string &athr,\n const string &sbjct,\n const string &body,\n unsigned" (binary_expression) "Reply(const string &athr" (identifier) "Reply" (ERROR) "(const string" (() "(" (type_descriptor) "const string" (type_qualifier) "const" (const) "const" (type_identifier) "string" (&) "&" (identifier) "athr" (,) "," (ERROR) "const" (identifier) "const" (comma_expression) "string &sbjct,\n const string &body,\n unsigned" (binary_expression) "string &sbjct" (identifier) "string" (&) "&" (identifier) "sbjct" (,) "," (ERROR) "const" (identifier) "const" (comma_expression) "string &body,\n unsigned" (binary_expression) "string &body" (identifier) "string" (&) "&" (identifier) "body" (,) "," (identifier) "unsigned" (ERROR) "id)" (identifier) "id" ()) ")" (;) ";" (ERROR) "virtual bool is_reply() const; // return true\n virtual string to_formatted_string() const" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "is_reply()" (identifier) "is_reply" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "// return true" (type_identifier) "virtual" (ERROR) "string" (identifier) "string" (function_declarator) "to_formatted_string() const" (identifier) "to_formatted_string" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
104
10
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.47, "nodes": 57, "errors": 0, "source_hash": "be00ca2ec0511f8bc289ac69c00098e87d29522d85366bf2155d85f60643cf12", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef REPLY_H\n#define REPLY_H\n#include <iostream>\n#include \"Message.h\"\nusing namespace std;\n\nclass Reply : public Message\n{\n\tpublic:\t\n\t\tReply();\n\t\tReply(const string &athr,\n\t\t\t const string &sbjct,\n\t\t\t const string &body,\n\t\t\t unsigned id);\n\t\tvirtual bool is_reply() const; // return true\n\t\tvirtual string to_formatted_string() const;\n};\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 56], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "REPLY_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define REPLY_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": "REPLY_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include <iostream>\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": "<iostream>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"Message.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": "\"Message.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 12, "type": "declaration", "text": "using namespace std;", "parent": 0, "children": [13, 14, 15], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 20}}, {"id": 13, "type": "type_identifier", "text": "using", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 5}}, {"id": 14, "type": "identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 15}}, {"id": 15, "type": "ERROR", "text": "std", "parent": 12, "children": [16], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 19}}, {"id": 16, "type": "identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 19}}, {"id": 17, "type": "function_definition", "text": "class Reply : public Message\n{\n\tpublic:\t\n\t\tReply();\n\t\tReply(const string &athr,\n\t\t\t const string &sbjct,\n\t\t\t const string &body,\n\t\t\t unsigned id);\n\t\tvirtual bool is_reply() const; // return true\n\t\tvirtual string to_formatted_string() const;\n}", "parent": 0, "children": [18, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 18, "type": "ERROR", "text": "Reply : public", "parent": 17, "children": [19], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 20}}, {"id": 19, "type": "identifier", "text": "Reply", "parent": 18, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 11}}, {"id": 20, "type": "identifier", "text": "Message", "parent": 17, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 28}}, {"id": 21, "type": "labeled_statement", "text": "public:\t\n\t\tReply();", "parent": 17, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 22, "type": "call_expression", "text": "Reply()", "parent": 21, "children": [23, 24], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 9}}, {"id": 23, "type": "identifier", "text": "Reply", "parent": 22, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 7}}, {"id": 24, "type": "argument_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 9}}, {"id": 25, "type": "comma_expression", "text": "Reply(const string &athr,\n\t\t\t const string &sbjct,\n\t\t\t const string &body,\n\t\t\t unsigned", "parent": 17, "children": [26, 32], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 13, "column": 13}}, {"id": 26, "type": "binary_expression", "text": "Reply(const string &athr", "parent": 25, "children": [27, 28, 31], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 26}}, {"id": 27, "type": "identifier", "text": "Reply", "parent": 26, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 7}}, {"id": 28, "type": "ERROR", "text": "(const string", "parent": 26, "children": [29], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 20}}, {"id": 29, "type": "type_descriptor", "text": "const string", "parent": 28, "children": [30], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 30, "type": "type_identifier", "text": "string", "parent": 29, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 20}}, {"id": 31, "type": "identifier", "text": "athr", "parent": 26, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 26}}, {"id": 32, "type": "comma_expression", "text": "string &sbjct,\n\t\t\t const string &body,\n\t\t\t unsigned", "parent": 25, "children": [33, 36], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 13, "column": 13}}, {"id": 33, "type": "binary_expression", "text": "string &sbjct", "parent": 32, "children": [34, 35], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 24}}, {"id": 34, "type": "identifier", "text": "string", "parent": 33, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 17}}, {"id": 35, "type": "identifier", "text": "sbjct", "parent": 33, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 24}}, {"id": 36, "type": "comma_expression", "text": "string &body,\n\t\t\t unsigned", "parent": 32, "children": [37, 40], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 13, "column": 13}}, {"id": 37, "type": "binary_expression", "text": "string &body", "parent": 36, "children": [38, 39], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 23}}, {"id": 38, "type": "identifier", "text": "string", "parent": 37, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 17}}, {"id": 39, "type": "identifier", "text": "body", "parent": 37, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 23}}, {"id": 40, "type": "identifier", "text": "unsigned", "parent": 36, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 13}}, {"id": 41, "type": "ERROR", "text": "id)", "parent": 17, "children": [42], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 17}}, {"id": 42, "type": "identifier", "text": "id", "parent": 41, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 43, "type": "ERROR", "text": "virtual bool is_reply() const; // return true\n\t\tvirtual string to_formatted_string() const", "parent": 17, "children": [44, 45, 47, 50, 51, 53], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 15, "column": 44}}, {"id": 44, "type": "type_identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 9}}, {"id": 45, "type": "ERROR", "text": "bool", "parent": 43, "children": [46], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 46, "type": "identifier", "text": "bool", "parent": 45, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 47, "type": "function_declarator", "text": "is_reply()", "parent": 43, "children": [48, 49], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 25}}, {"id": 48, "type": "identifier", "text": "is_reply", "parent": 47, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 23}}, {"id": 49, "type": "parameter_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 25}}, {"id": 50, "type": "type_identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 51, "type": "ERROR", "text": "string", "parent": 43, "children": [52], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 52, "type": "identifier", "text": "string", "parent": 51, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 53, "type": "function_declarator", "text": "to_formatted_string() const", "parent": 43, "children": [54, 55], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 44}}, {"id": 54, "type": "identifier", "text": "to_formatted_string", "parent": 53, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 36}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 38}}, {"id": 56, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 47, 53], "variables": [12], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [22, 25, 26, 32, 33, 36, 37], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 19, 20, 23, 27, 30, 31, 34, 35, 38, 39, 40, 42, 44, 46, 48, 50, 52, 54, 56], "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": "Reply", "text_snippet": "class Reply : public Message\n{\n\tpublic:\t\n\t\tReply();\n\t\tReply(const string &athr,\n\t\t\t const string &s"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "is_reply()"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "to_formatted_string() const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <iostream>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Message.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef REPLY_H\n#define REPLY_H\n#include <iostream>\n#include \"Message.h\"\nusing namespace std;\n\nclass Reply : public Message\n{\n\tpublic:\t\n\t\tReply();\n\t\tReply(const string &athr,\n\t\t\t const string &sbjct,\n\t\t\t const string &body,\n\t\t\t unsigned id);\n\t\tvirtual bool is_reply() const; // return true\n\t\tvirtual string to_formatted_string() const;\n};\n#endif\n\n"}
167
c
// // ActiveSQLite.h // ActiveSQLite // // Created by <NAME> on 27/06/2017. // Copyright © 2017 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for ActiveSQLite. FOUNDATION_EXPORT double ActiveSQLiteVersionNumber; //! Project version string for ActiveSQLite. FOUNDATION_EXPORT const unsigned char ActiveSQLiteVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <ActiveSQLite/PublicHeader.h>
37.77
13
(translation_unit) "//\n// ActiveSQLite.h\n// ActiveSQLite\n//\n// Created by <NAME> on 27/06/2017.\n// Copyright © 2017 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for ActiveSQLite.\nFOUNDATION_EXPORT double ActiveSQLiteVersionNumber;\n\n//! Project version string for ActiveSQLite.\nFOUNDATION_EXPORT const unsigned char ActiveSQLiteVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <ActiveSQLite/PublicHeader.h>\n\n\n" (comment) "//" (comment) "// ActiveSQLite.h" (comment) "// ActiveSQLite" (comment) "//" (comment) "// Created by <NAME> on 27/06/2017." (comment) "// Copyright © 2017 <EMAIL>. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (comment) "/! Project version number for ActiveSQLite.\n" (declaration) "OUNDATION_EXPORT double ActiveSQLiteVersionNumber;\n" (type_identifier) "OUNDATION_EXPORT " (ERROR) "ouble " (identifier) "ouble " (identifier) "ctiveSQLiteVersionNumber;" (;) "\n" (comment) "/! Project version string for ActiveSQLite.\n" (declaration) "OUNDATION_EXPORT const unsigned " (type_identifier) "OUNDATION_EXPORT " (type_qualifier) "onst " (const) "onst " (identifier) "nsigned " (;) "" (declaration) "har ActiveSQLiteVersionString[];\n" (primitive_type) "har " (array_declarator) "ctiveSQLiteVersionString[];" (identifier) "ctiveSQLiteVersionString[" ([) "]" (]) ";" (;) "\n" (comment) "/ In this header, you should import all the public headers of your framework using statements like #import <ActiveSQLite/PublicHeader.h>\n"
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 37.77, "nodes": 15, "errors": 0, "source_hash": "dadbbd4f4d994b1bf85b47ba3a883b00fe85a1acdb4539cb6e02191fee5ad7ee", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "declaration", "text": "OUNDATION_EXPORT double ActiveSQLiteVersionNumber;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 51}}, {"id": 3, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 2, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 4, "type": "ERROR", "text": "ouble ", "parent": 2, "children": [5], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 5, "type": "identifier", "text": "ouble ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "ctiveSQLiteVersionNumber;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 50}}, {"id": 7, "type": "declaration", "text": "OUNDATION_EXPORT const unsigned ", "parent": null, "children": [8, 9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 8, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "type_qualifier", "text": "onst ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 10, "type": "identifier", "text": "nsigned ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "har ActiveSQLiteVersionString[];\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 66}}, {"id": 12, "type": "primitive_type", "text": "har ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "ctiveSQLiteVersionString[];", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 65}}, {"id": 14, "type": "identifier", "text": "ctiveSQLiteVersionString[", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 63}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 7, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ActiveSQLite.h\n// ActiveSQLite\n//\n// Created by <NAME> on 27/06/2017.\n// Copyright \u00a9 2017 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for ActiveSQLite.\nFOUNDATION_EXPORT double ActiveSQLiteVersionNumber;\n\n//! Project version string for ActiveSQLite.\nFOUNDATION_EXPORT const unsigned char ActiveSQLiteVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <ActiveSQLite/PublicHeader.h>\n\n\n"}
168
c
#pragma once #include <atomic> #include <chrono> #include <map> #include <memory> #include <mutex> #include <string> #include <tuple> #include <cpprest/json.h> #include "../TimerHandler.h" #include "AppBehavior.h" #include "AppUtils.h" class AppTimer; class User; class CounterMetric; class GaugeMetric; class PrometheusRest; class AppProcess; class DailyLimitation; class ResourceLimitation; ////////////////////////////////////////////////////////////////////////// /// An Application is used to define and manage a process job. ////////////////////////////////////////////////////////////////////////// class Application : public TimerHandler, public AppBehavior { public: Application(); virtual ~Application(); virtual bool operator==(const std::shared_ptr<Application> &app); const std::string &getName() const; pid_t getpid() const; void health(bool health); int health() const; const std::string &healthCheckCmd() const; const std::shared_ptr<User> &getOwner() const; int getOwnerPermission() const; bool isCloudApp() const; STATUS getStatus() const; bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now()); bool isEnabled() const; bool attach(int pid); static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false); virtual web::json::value AsJson(bool returnRuntimeInfo); virtual void dump(); // operate void execute(void *ptree = nullptr); void enable(); void disable(); void destroy(); // behavior std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now()); void regSuicideTimer(int timeoutSeconds); void onSuicide(int timerId = 0); void onExit(int code); std::string runAsyncrize(int timeoutSeconds) noexcept(false); std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false); std::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = "", int index = 0); // prometheus void initMetrics(std::shared_ptr<PrometheusRest> prom); protected: // error void setLastError(const std::string &error) noexcept(false); const std::string getLastError() const noexcept(false); void setInvalidError() noexcept(false); // process std::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName); void spawn(int timerId); std::shared_ptr<int> refresh(void *ptree = nullptr); void healthCheck(); std::string runApp(int timeoutSeconds) noexcept(false); const std::string getExecUser() const; const std::string &getCmdLine() const; std::map<std::string, std::string> getMergedEnvMap() const; protected: mutable std::recursive_mutex m_appMutex; std::shared_ptr<AppTimer> m_timer; static ACE_Time_Value m_waitTimeout; STATUS m_status; std::string m_name; std::string m_commandLine; std::string m_description; /// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail std::shared_ptr<User> m_owner; int m_ownerPermission; std::string m_workdir; std::string m_stdoutFile; web::json::value m_metadata; bool m_shellApp; int m_stdoutCacheNum; std::shared_ptr<ShellAppFileGen> m_shellAppFile; std::shared_ptr<LogFileQueue> m_stdoutFileQueue; //the exit code of last instance std::shared_ptr<int> m_return; std::string m_posixTimeZone; std::string m_startTime; std::string m_endTime; std::chrono::system_clock::time_point m_startTimeValue; std::chrono::system_clock::time_point m_endTimeValue; // short running std::string m_startIntervalValue; int m_startInterval; std::string m_bufferTimeValue; int m_bufferTime; bool m_startIntervalValueIsCronExpr; std::shared_ptr<AppProcess> m_bufferProcess; std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime; int m_nextStartTimerId; std::chrono::system_clock::time_point m_regTime; bool m_health; std::string m_healthCheckCmd; const std::string m_appId; unsigned int m_version; std::shared_ptr<AppProcess> m_process; pid_t m_pid; int m_suicideTimerId; std::shared_ptr<DailyLimitation> m_dailyLimit; std::shared_ptr<ResourceLimitation> m_resourceLimit; std::map<std::string, std::string> m_envMap; std::map<std::string, std::string> m_secEnvMap; std::string m_dockerImage; std::chrono::system_clock::time_point m_procStartTime; std::chrono::system_clock::time_point m_procExitTime; // Prometheus std::shared_ptr<CounterMetric> m_metricStartCount; std::shared_ptr<GaugeMetric> m_metricMemory; std::shared_ptr<GaugeMetric> m_metricCpu; std::shared_ptr<GaugeMetric> m_metricAppPid; std::shared_ptr<GaugeMetric> m_metricFileDesc; std::atomic<int> m_continueFails; std::atomic<int> m_starts; // error mutable std::recursive_mutex m_errorMutex; std::string m_lastError; };
35.29
134
(translation_unit) "#pragma once\n#include <atomic>\n#include <chrono>\n#include <map>\n#include <memory>\n#include <mutex>\n#include <string>\n#include <tuple>\n\n#include <cpprest/json.h>\n\n#include "../TimerHandler.h"\n#include "AppBehavior.h"\n#include "AppUtils.h"\n\nclass AppTimer;\nclass User;\nclass CounterMetric;\nclass GaugeMetric;\nclass PrometheusRest;\nclass AppProcess;\nclass DailyLimitation;\nclass ResourceLimitation;\n//////////////////////////////////////////////////////////////////////////\n/// An Application is used to define and manage a process job.\n//////////////////////////////////////////////////////////////////////////\nclass Application : public TimerHandler, public AppBehavior\n{\npublic:\n Application();\n virtual ~Application();\n virtual bool operator==(const std::shared_ptr<Application> &app);\n\n const std::string &getName() const;\n pid_t getpid() const;\n void health(bool health);\n int health() const;\n const std::string &healthCheckCmd() const;\n const std::shared_ptr<User> &getOwner() const;\n int getOwnerPermission() const;\n bool isCloudApp() const;\n STATUS getStatus() const;\n\n bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());\n bool isEnabled() const;\n bool attach(int pid);\n\n static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n virtual web::json::value AsJson(bool returnRuntimeInfo);\n virtual void dump();\n\n // operate\n void execute(void *ptree = nullptr);\n void enable();\n void disable();\n void destroy();\n\n // behavior\n std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());\n void regSuicideTimer(int timeoutSeconds);\n void onSuicide(int timerId = 0);\n void onExit(int code);\n\n std::string runAsyncrize(int timeoutSeconds) noexcept(false);\n std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n std::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = "", int index = 0);\n\n // prometheus\n void initMetrics(std::shared_ptr<PrometheusRest> prom);\n\nprotected:\n // error\n void setLastError(const std::string &error) noexcept(false);\n const std::string getLastError() const noexcept(false);\n void setInvalidError() noexcept(false);\n\n // process\n std::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);\n void spawn(int timerId);\n std::shared_ptr<int> refresh(void *ptree = nullptr);\n void healthCheck();\n\n std::string runApp(int timeoutSeconds) noexcept(false);\n const std::string getExecUser() const;\n const std::string &getCmdLine() const;\n std::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n mutable std::recursive_mutex m_appMutex;\n std::shared_ptr<AppTimer> m_timer;\n static ACE_Time_Value m_waitTimeout;\n\n STATUS m_status;\n std::string m_name;\n std::string m_commandLine;\n std::string m_description;\n /// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail\n std::shared_ptr<User> m_owner;\n int m_ownerPermission;\n std::string m_workdir;\n std::string m_stdoutFile;\n web::json::value m_metadata;\n bool m_shellApp;\n int m_stdoutCacheNum;\n std::shared_ptr<ShellAppFileGen> m_shellAppFile;\n std::shared_ptr<LogFileQueue> m_stdoutFileQueue;\n //the exit code of last instance\n std::shared_ptr<int> m_return;\n std::string m_posixTimeZone;\n std::string m_startTime;\n std::string m_endTime;\n std::chrono::system_clock::time_point m_startTimeValue;\n std::chrono::system_clock::time_point m_endTimeValue;\n\n // short running\n std::string m_startIntervalValue;\n int m_startInterval;\n std::string m_bufferTimeValue;\n int m_bufferTime;\n bool m_startIntervalValueIsCronExpr;\n std::shared_ptr<AppProcess> m_bufferProcess;\n std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;\n int m_nextStartTimerId;\n\n std::chrono::system_clock::time_point m_regTime;\n bool m_health;\n std::string m_healthCheckCmd;\n const std::string m_appId;\n unsigned int m_version;\n std::shared_ptr<AppProcess> m_process;\n pid_t m_pid;\n int m_suicideTimerId;\n std::shared_ptr<DailyLimitation> m_dailyLimit;\n std::shared_ptr<ResourceLimitation> m_resourceLimit;\n std::map<std::string, std::string> m_envMap;\n std::map<std::string, std::string> m_secEnvMap;\n std::string m_dockerImage;\n std::chrono::system_clock::time_point m_procStartTime;\n std::chrono::system_clock::time_point m_procExitTime;\n\n // Prometheus\n std::shared_ptr<CounterMetric> m_metricStartCount;\n std::shared_ptr<GaugeMetric> m_metricMemory;\n std::shared_ptr<GaugeMetric> m_metricCpu;\n std::shared_ptr<GaugeMetric> m_metricAppPid;\n std::shared_ptr<GaugeMetric> m_metricFileDesc;\n std::atomic<int> m_continueFails;\n std::atomic<int> m_starts;\n\n // error\n mutable std::recursive_mutex m_errorMutex;\n std::string m_lastError;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <atomic>\n" (#include) "#include" (system_lib_string) "<atomic>" (preproc_include) "#include <chrono>\n" (#include) "#include" (system_lib_string) "<chrono>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <mutex>\n" (#include) "#include" (system_lib_string) "<mutex>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <tuple>\n" (#include) "#include" (system_lib_string) "<tuple>" (preproc_include) "#include <cpprest/json.h>\n" (#include) "#include" (system_lib_string) "<cpprest/json.h>" (preproc_include) "#include "../TimerHandler.h"\n" (#include) "#include" (string_literal) ""../TimerHandler.h"" (") """ (string_content) "../TimerHandler.h" (") """ (preproc_include) "#include "AppBehavior.h"\n" (#include) "#include" (string_literal) ""AppBehavior.h"" (") """ (string_content) "AppBehavior.h" (") """ (preproc_include) "#include "AppUtils.h"\n" (#include) "#include" (string_literal) ""AppUtils.h"" (") """ (string_content) "AppUtils.h" (") """ (declaration) "class AppTimer;" (type_identifier) "class" (identifier) "AppTimer" (;) ";" (declaration) "class User;" (type_identifier) "class" (identifier) "User" (;) ";" (declaration) "class CounterMetric;" (type_identifier) "class" (identifier) "CounterMetric" (;) ";" (declaration) "class GaugeMetric;" (type_identifier) "class" (identifier) "GaugeMetric" (;) ";" (declaration) "class PrometheusRest;" (type_identifier) "class" (identifier) "PrometheusRest" (;) ";" (declaration) "class AppProcess;" (type_identifier) "class" (identifier) "AppProcess" (;) ";" (declaration) "class DailyLimitation;" (type_identifier) "class" (identifier) "DailyLimitation" (;) ";" (declaration) "class ResourceLimitation;" (type_identifier) "class" (identifier) "ResourceLimitation" (;) ";" (comment) "//////////////////////////////////////////////////////////////////////////" (comment) "/// An Application is used to define and manage a process job." (comment) "//////////////////////////////////////////////////////////////////////////" (ERROR) "class Application : public TimerHandler, public AppBehavior" (type_identifier) "class" (ERROR) "Application : public" (identifier) "Application" (:) ":" (identifier) "public" (identifier) "TimerHandler" (,) "," (identifier) "public" (identifier) "AppBehavior" (compound_statement) "{\npublic:\n Application();\n virtual ~Application();\n virtual bool operator==(const std::shared_ptr<Application> &app);\n\n const std::string &getName() const;\n pid_t getpid() const;\n void health(bool health);\n int health() const;\n const std::string &healthCheckCmd() const;\n const std::shared_ptr<User> &getOwner() const;\n int getOwnerPermission() const;\n bool isCloudApp() const;\n STATUS getStatus() const;\n\n bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());\n bool isEnabled() const;\n bool attach(int pid);\n\n static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n virtual web::json::value AsJson(bool returnRuntimeInfo);\n virtual void dump();\n\n // operate\n void execute(void *ptree = nullptr);\n void enable();\n void disable();\n void destroy();\n\n // behavior\n std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());\n void regSuicideTimer(int timeoutSeconds);\n void onSuicide(int timerId = 0);\n void onExit(int code);\n\n std::string runAsyncrize(int timeoutSeconds) noexcept(false);\n std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n std::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = "", int index = 0);\n\n // prometheus\n void initMetrics(std::shared_ptr<PrometheusRest> prom);\n\nprotected:\n // error\n void setLastError(const std::string &error) noexcept(false);\n const std::string getLastError() const noexcept(false);\n void setInvalidError() noexcept(false);\n\n // process\n std::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);\n void spawn(int timerId);\n std::shared_ptr<int> refresh(void *ptree = nullptr);\n void healthCheck();\n\n std::string runApp(int timeoutSeconds) noexcept(false);\n const std::string getExecUser() const;\n const std::string &getCmdLine() const;\n std::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n mutable std::recursive_mutex m_appMutex;\n std::shared_ptr<AppTimer> m_timer;\n static ACE_Time_Value m_waitTimeout;\n\n STATUS m_status;\n std::string m_name;\n std::string m_commandLine;\n std::string m_description;\n /// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail\n std::shared_ptr<User> m_owner;\n int m_ownerPermission;\n std::string m_workdir;\n std::string m_stdoutFile;\n web::json::value m_metadata;\n bool m_shellApp;\n int m_stdoutCacheNum;\n std::shared_ptr<ShellAppFileGen> m_shellAppFile;\n std::shared_ptr<LogFileQueue> m_stdoutFileQueue;\n //the exit code of last instance\n std::shared_ptr<int> m_return;\n std::string m_posixTimeZone;\n std::string m_startTime;\n std::string m_endTime;\n std::chrono::system_clock::time_point m_startTimeValue;\n std::chrono::system_clock::time_point m_endTimeValue;\n\n // short running\n std::string m_startIntervalValue;\n int m_startInterval;\n std::string m_bufferTimeValue;\n int m_bufferTime;\n bool m_startIntervalValueIsCronExpr;\n std::shared_ptr<AppProcess> m_bufferProcess;\n std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;\n int m_nextStartTimerId;\n\n std::chrono::system_clock::time_point m_regTime;\n bool m_health;\n std::string m_healthCheckCmd;\n const std::string m_appId;\n unsigned int m_version;\n std::shared_ptr<AppProcess> m_process;\n pid_t m_pid;\n int m_suicideTimerId;\n std::shared_ptr<DailyLimitation> m_dailyLimit;\n std::shared_ptr<ResourceLimitation> m_resourceLimit;\n std::map<std::string, std::string> m_envMap;\n std::map<std::string, std::string> m_secEnvMap;\n std::string m_dockerImage;\n std::chrono::system_clock::time_point m_procStartTime;\n std::chrono::system_clock::time_point m_procExitTime;\n\n // Prometheus\n std::shared_ptr<CounterMetric> m_metricStartCount;\n std::shared_ptr<GaugeMetric> m_metricMemory;\n std::shared_ptr<GaugeMetric> m_metricCpu;\n std::shared_ptr<GaugeMetric> m_metricAppPid;\n std::shared_ptr<GaugeMetric> m_metricFileDesc;\n std::atomic<int> m_continueFails;\n std::atomic<int> m_starts;\n\n // error\n mutable std::recursive_mutex m_errorMutex;\n std::string m_lastError;\n}" ({) "{" (labeled_statement) "public:\n Application();" (statement_identifier) "public" (:) ":" (expression_statement) "Application();" (call_expression) "Application()" (identifier) "Application" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~Application();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Application()" (identifier) "Application" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool" (type_identifier) "virtual" (identifier) "bool" (;) "" (expression_statement) "operator==(const std::shared_ptr<Application> &app);" (binary_expression) "operator==(const std::shared_ptr<Application> &app)" (identifier) "operator" (==) "==" (parenthesized_expression) "(const std::shared_ptr<Application> &app)" (() "(" (ERROR) "const std::" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "shared_ptr<Application> &app" (binary_expression) "shared_ptr<Application" (identifier) "shared_ptr" (<) "<" (identifier) "Application" (>) ">" (pointer_expression) "&app" (&) "&" (identifier) "app" ()) ")" (;) ";" (ERROR) "const std::string &getName() const;\n pid_t getpid() const;\n void health(bool health);\n int health() const;\n const std::string &healthCheckCmd() const;\n const std::shared_ptr<User> &getOwner() const;\n int getOwnerPermission() const;\n bool isCloudApp() const;\n STATUS getStatus() const;\n\n bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());\n bool isEnabled() const;\n bool attach(int pid);\n\n static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n virtual web::json::value AsJson(bool returnRuntimeInfo);\n virtual void dump();\n\n // operate\n void execute(void *ptree = nullptr);\n void enable();\n void disable();\n void destroy();\n\n // behavior\n std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());\n void regSuicideTimer(int timeoutSeconds);\n void onSuicide(int timerId = 0);\n void onExit(int code);\n\n std::string runAsyncrize(int timeoutSeconds) noexcept(false);\n std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n std::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = "", int index = 0);\n\n // prometheus\n void initMetrics(std::shared_ptr<PrometheusRest> prom);\n\nprotected:\n // error\n void setLastError(const std::string &error) noexcept(false);\n const std::string getLastError() const noexcept(false);\n void setInvalidError() noexcept(false);\n\n // process\n std::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);\n void spawn(int timerId);\n std::shared_ptr<int> refresh(void *ptree = nullptr);\n void healthCheck();\n\n std::string runApp(int timeoutSeconds) noexcept(false);\n const std::string getExecUser() const;\n const std::string &getCmdLine() const;\n std::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n mutable std::recursive_mutex m_appMutex;\n std::shared_ptr<AppTimer> m_timer;\n static ACE_Time_Value m_waitTimeout;\n\n STATUS m_status;\n std::string m_name;\n std::string m_commandLine;\n std::string m_description;\n /// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail\n std::shared_ptr<User> m_owner;\n int m_ownerPermission;\n std::string m_workdir;\n std::string m_stdoutFile;\n web::json::value m_metadata;\n bool m_shellApp;\n int m_stdoutCacheNum;\n std::shared_ptr<ShellAppFileGen> m_shellAppFile;\n std::shared_ptr<LogFileQueue> m_stdoutFileQueue;\n //the exit code of last instance\n std::shared_ptr<int> m_return;\n std::string m_posixTimeZone;\n std::string m_startTime;\n std::string m_endTime;\n std::chrono::system_clock::time_point m_startTimeValue;\n std::chrono::system_clock::time_point m_endTimeValue;\n\n // short running\n std::string m_startIntervalValue;\n int m_startInterval;\n std::string m_bufferTimeValue;\n int m_bufferTime;\n bool m_startIntervalValueIsCronExpr;\n std::shared_ptr<AppProcess> m_bufferProcess;\n std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;\n int m_nextStartTimerId;\n\n std::chrono::system_clock::time_point m_regTime;\n bool m_health;\n std::string m_healthCheckCmd;\n const std::string m_appId;\n unsigned int m_version;\n std::shared_ptr<AppProcess> m_process;\n pid_t m_pid;\n int m_suicideTimerId;\n std::shared_ptr<DailyLimitation> m_dailyLimit;\n std::shared_ptr<ResourceLimitation> m_resourceLimit;\n std::map<std::string, std::string> m_envMap;\n std::map<std::string, std::string> m_secEnvMap;\n std::string m_dockerImage;\n std::chrono::system_clock::time_point m_procStartTime;\n std::chrono::system_clock::time_point m_procExitTime;\n\n // Prometheus\n std::shared_ptr<CounterMetric> m_metricStartCount;\n std::shared_ptr<GaugeMetric> m_metricMemory;\n std::shared_ptr<GaugeMetric> m_metricCpu;\n std::shared_ptr<GaugeMetric> m_metricAppPid;\n std::shared_ptr<GaugeMetric> m_metricFileDesc;\n std::atomic<int> m_continueFails;\n std::atomic<int> m_starts;\n\n // error\n mutable std::recursive_mutex m_errorMutex;\n std::string m_lastError;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "getName()" (identifier) "getName" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n pid_t getpid() const;\n void health(bool health);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "pid_t" (ERROR) "getpid() const;\n void" (function_declarator) "getpid() const" (identifier) "getpid" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "health(bool health)" (identifier) "health" (parameter_list) "(bool health)" (() "(" (parameter_declaration) "bool health" (primitive_type) "bool" (identifier) "health" ()) ")" (;) ";" (ERROR) "int health() const;\n const std::string &healthCheckCmd() const;\n const std::shared_ptr<User> &getOwner() const;\n int getOwnerPermission() const;\n bool isCloudApp() const;\n STATUS getStatus() const;" (primitive_type) "int" (function_declarator) "health() const" (identifier) "health" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "healthCheckCmd() const" (identifier) "healthCheckCmd" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::shared_ptr<User> &" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "User" (>) ">" (&) "&" (function_declarator) "getOwner() const" (identifier) "getOwner" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "int" (function_declarator) "getOwnerPermission() const" (identifier) "getOwnerPermission" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "bool" (ERROR) "isCloudApp() const;\n STATUS" (function_declarator) "isCloudApp() const" (identifier) "isCloudApp" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "STATUS" (function_declarator) "getStatus() const" (identifier) "getStatus" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());" (primitive_type) "bool" (function_declarator) "available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now())" (identifier) "available" (parameter_list) "(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now())" (() "(" (parameter_declaration) "const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now()" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point &now = std::chrono::system_clock::" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (&) "&" (identifier) "now" (=) "=" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (function_declarator) "now()" (identifier) "now" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (ERROR) "bool isEnabled() const;" (primitive_type) "bool" (function_declarator) "isEnabled() const" (identifier) "isEnabled" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "bool attach(int pid);" (primitive_type) "bool" (function_declarator) "attach(int pid)" (identifier) "attach" (parameter_list) "(int pid)" (() "(" (parameter_declaration) "int pid" (primitive_type) "int" (identifier) "pid" ()) ")" (;) ";" (declaration) "static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n virtual web::json::value AsJson(bool returnRuntimeInfo);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (ERROR) "FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n virtual web::json::value" (function_declarator) "FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false)" (identifier) "FromJson" (parameter_list) "(const std::shared_ptr<Application> &app, const web::json::value &obj)" (() "(" (parameter_declaration) "const std::shared_ptr<Application> &app" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::shared_ptr<Application> &" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Application" (>) ">" (&) "&" (identifier) "app" (,) "," (parameter_declaration) "const web::json::value &obj" (type_qualifier) "const" (const) "const" (type_identifier) "web" (ERROR) "::json::value &" (:) ":" (:) ":" (identifier) "json" (:) ":" (:) ":" (identifier) "value" (&) "&" (identifier) "obj" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (identifier) "virtual" (identifier) "web" (:) ":" (:) ":" (identifier) "json" (:) ":" (:) ":" (identifier) "value" (function_declarator) "AsJson(bool returnRuntimeInfo)" (identifier) "AsJson" (parameter_list) "(bool returnRuntimeInfo)" (() "(" (parameter_declaration) "bool returnRuntimeInfo" (primitive_type) "bool" (identifier) "returnRuntimeInfo" ()) ")" (;) ";" (declaration) "virtual void dump();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "dump()" (identifier) "dump" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// operate" (declaration) "void execute(void *ptree = nullptr);" (primitive_type) "void" (init_declarator) "execute(void *ptree = nullptr" (function_declarator) "execute(void *ptree" (identifier) "execute" (parameter_list) "(void *ptree" (() "(" (parameter_declaration) "void *ptree" (primitive_type) "void" (pointer_declarator) "*ptree" (*) "*" (identifier) "ptree" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "void enable();" (primitive_type) "void" (function_declarator) "enable()" (identifier) "enable" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void disable();" (primitive_type) "void" (function_declarator) "disable()" (identifier) "disable" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void destroy();" (primitive_type) "void" (function_declarator) "destroy()" (identifier) "destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// behavior" (declaration) "std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());" (type_identifier) "std" (ERROR) "::shared_ptr<std::chrono::system_clock::time_point>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (>) ">" (init_declarator) "scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now()" (function_declarator) "scheduleNext(std::chrono::system_clock::time_point now" (identifier) "scheduleNext" (parameter_list) "(std::chrono::system_clock::time_point" (() "(" (parameter_declaration) "std::chrono::system_clock::time_point" (type_identifier) "std" (ERROR) "::chrono::system_clock::" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" ()) "" (identifier) "now" (=) "=" (ERROR) "std::chrono::system_clock::" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (call_expression) "now()" (identifier) "now" (argument_list) "()" (() "(" ()) ")" (ERROR) ")" ()) ")" (;) ";" (declaration) "void regSuicideTimer(int timeoutSeconds);" (primitive_type) "void" (function_declarator) "regSuicideTimer(int timeoutSeconds)" (identifier) "regSuicideTimer" (parameter_list) "(int timeoutSeconds)" (() "(" (parameter_declaration) "int timeoutSeconds" (primitive_type) "int" (identifier) "timeoutSeconds" ()) ")" (;) ";" (declaration) "void onSuicide(int timerId = 0);" (primitive_type) "void" (init_declarator) "onSuicide(int timerId = 0" (function_declarator) "onSuicide(int timerId" (identifier) "onSuicide" (parameter_list) "(int timerId" (() "(" (parameter_declaration) "int timerId" (primitive_type) "int" (identifier) "timerId" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "void onExit(int code);" (primitive_type) "void" (function_declarator) "onExit(int code)" (identifier) "onExit" (parameter_list) "(int code)" (() "(" (parameter_declaration) "int code" (primitive_type) "int" (identifier) "code" ()) ")" (;) ";" (declaration) "std::string runAsyncrize(int timeoutSeconds) noexcept(false);\n std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n std::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = "", int index = 0);" (type_identifier) "std" (ERROR) "::string runAsyncrize(int timeoutSeconds) noexcept(false);\n std::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n std::tuple<std::" (:) ":" (:) ":" (identifier) "string" (function_declarator) "runAsyncrize(int timeoutSeconds) noexcept(false)" (identifier) "runAsyncrize" (parameter_list) "(int timeoutSeconds)" (() "(" (parameter_declaration) "int timeoutSeconds" (primitive_type) "int" (identifier) "timeoutSeconds" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false)" (identifier) "runSyncrize" (parameter_list) "(int timeoutSeconds, void *asyncHttpRequest)" (() "(" (parameter_declaration) "int timeoutSeconds" (primitive_type) "int" (identifier) "timeoutSeconds" (,) "," (parameter_declaration) "void *asyncHttpRequest" (primitive_type) "void" (pointer_declarator) "*asyncHttpRequest" (*) "*" (identifier) "asyncHttpRequest" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "tuple" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (identifier) "bool" (,) "," (ERROR) "int>" (identifier) "int" (>) ">" (init_declarator) "getOutput(long &position, long maxSize, const std::string &processUuid = """ (function_declarator) "getOutput(long &position, long maxSize, const std::string &processUuid" (identifier) "getOutput" (parameter_list) "(long &position, long maxSize, const std::string &processUuid" (() "(" (parameter_declaration) "long &position" (sized_type_specifier) "long" (long) "long" (ERROR) "&" (&) "&" (identifier) "position" (,) "," (parameter_declaration) "long maxSize" (sized_type_specifier) "long" (long) "long" (identifier) "maxSize" (,) "," (parameter_declaration) "const std::string &processUuid" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "processUuid" ()) "" (=) "=" (string_literal) """" (") """ (") """ (,) "," (ERROR) "int" (identifier) "int" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (comment) "// prometheus" (declaration) "void initMetrics(std::shared_ptr<PrometheusRest> prom);" (primitive_type) "void" (function_declarator) "initMetrics(std::shared_ptr<PrometheusRest> prom)" (identifier) "initMetrics" (parameter_list) "(std::shared_ptr<PrometheusRest> prom)" (() "(" (parameter_declaration) "std::shared_ptr<PrometheusRest> prom" (type_identifier) "std" (ERROR) "::shared_ptr<PrometheusRest>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "PrometheusRest" (>) ">" (identifier) "prom" ()) ")" (;) ";" (ERROR) "protected:" (type_identifier) "protected" (:) ":" (comment) "// error" (declaration) "void setLastError(const std::string &error) noexcept(false);\n const std::string getLastError() const noexcept(false);\n void setInvalidError() noexcept(false);\n\n // process\n std::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);" (primitive_type) "void" (ERROR) "setLastError(const std::string &error) noexcept(false);\n const std::string getLastError() const noexcept(false);\n void setInvalidError() noexcept(false);" (function_declarator) "setLastError(const std::string &error) noexcept(false)" (identifier) "setLastError" (parameter_list) "(const std::string &error)" (() "(" (parameter_declaration) "const std::string &error" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "error" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (const) "const" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getLastError() const noexcept(false)" (identifier) "getLastError" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (primitive_type) "void" (function_declarator) "setInvalidError() noexcept(false)" (identifier) "setInvalidError" (parameter_list) "()" (() "(" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (comment) "// process" (ERROR) "std::shared_ptr<AppProcess>" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "AppProcess" (>) ">" (function_declarator) "allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName)" (identifier) "allocProcess" (parameter_list) "(bool monitorProcess, const std::string &dockerImage, const std::string &appName)" (() "(" (parameter_declaration) "bool monitorProcess" (primitive_type) "bool" (identifier) "monitorProcess" (,) "," (parameter_declaration) "const std::string &dockerImage" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "dockerImage" (,) "," (parameter_declaration) "const std::string &appName" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "appName" ()) ")" (;) ";" (declaration) "void spawn(int timerId);" (primitive_type) "void" (function_declarator) "spawn(int timerId)" (identifier) "spawn" (parameter_list) "(int timerId)" (() "(" (parameter_declaration) "int timerId" (primitive_type) "int" (identifier) "timerId" ()) ")" (;) ";" (declaration) "std::shared_ptr<int> refresh(void *ptree = nullptr);" (type_identifier) "std" (ERROR) "::shared_ptr<int>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (primitive_type) "int" (>) ">" (init_declarator) "refresh(void *ptree = nullptr" (function_declarator) "refresh(void *ptree" (identifier) "refresh" (parameter_list) "(void *ptree" (() "(" (parameter_declaration) "void *ptree" (primitive_type) "void" (pointer_declarator) "*ptree" (*) "*" (identifier) "ptree" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "void healthCheck();" (primitive_type) "void" (function_declarator) "healthCheck()" (identifier) "healthCheck" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "std::string runApp(int timeoutSeconds) noexcept(false);\n const std::string getExecUser() const;\n const std::string &getCmdLine() const;\n std::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n mutable std::recursive_mutex m_appMutex;" (type_identifier) "std" (ERROR) "::string runApp(int timeoutSeconds) noexcept(false);\n const std::string getExecUser() const;\n const std::string &getCmdLine() const;\n std::map<std::" (:) ":" (:) ":" (identifier) "string" (function_declarator) "runApp(int timeoutSeconds) noexcept(false)" (identifier) "runApp" (parameter_list) "(int timeoutSeconds)" (() "(" (parameter_declaration) "int timeoutSeconds" (primitive_type) "int" (identifier) "timeoutSeconds" ()) ")" (call_expression) "noexcept(false)" (identifier) "noexcept" (argument_list) "(false)" (() "(" (identifier) "false" ()) ")" (;) ";" (const) "const" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getExecUser() const" (identifier) "getExecUser" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (const) "const" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "getCmdLine() const" (identifier) "getCmdLine" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (ERROR) "std::string> getMergedEnvMap() const;\n\nprotected:\n mutable std::recursive_mutex" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (function_declarator) "getMergedEnvMap() const" (identifier) "getMergedEnvMap" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "protected" (:) ":" (identifier) "mutable" (identifier) "std" (:) ":" (:) ":" (identifier) "recursive_mutex" (identifier) "m_appMutex" (;) ";" (declaration) "std::shared_ptr<AppTimer> m_timer;" (type_identifier) "std" (ERROR) "::shared_ptr<AppTimer>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "AppTimer" (>) ">" (identifier) "m_timer" (;) ";" (declaration) "static ACE_Time_Value m_waitTimeout;" (storage_class_specifier) "static" (static) "static" (type_identifier) "ACE_Time_Value" (identifier) "m_waitTimeout" (;) ";" (declaration) "STATUS m_status;" (type_identifier) "STATUS" (identifier) "m_status" (;) ";" (declaration) "std::string m_name;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_name" (;) ";" (declaration) "std::string m_commandLine;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_commandLine" (;) ";" (declaration) "std::string m_description;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_description" (;) ";" (comment) "/// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail" (declaration) "std::shared_ptr<User> m_owner;" (type_identifier) "std" (ERROR) "::shared_ptr<User>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "User" (>) ">" (identifier) "m_owner" (;) ";" (declaration) "int m_ownerPermission;" (primitive_type) "int" (identifier) "m_ownerPermission" (;) ";" (declaration) "std::string m_workdir;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_workdir" (;) ";" (declaration) "std::string m_stdoutFile;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_stdoutFile" (;) ";" (declaration) "web::json::value m_metadata;" (type_identifier) "web" (ERROR) "::json::value" (:) ":" (:) ":" (identifier) "json" (:) ":" (:) ":" (identifier) "value" (identifier) "m_metadata" (;) ";" (declaration) "bool m_shellApp;" (primitive_type) "bool" (identifier) "m_shellApp" (;) ";" (declaration) "int m_stdoutCacheNum;" (primitive_type) "int" (identifier) "m_stdoutCacheNum" (;) ";" (declaration) "std::shared_ptr<ShellAppFileGen> m_shellAppFile;" (type_identifier) "std" (ERROR) "::shared_ptr<ShellAppFileGen>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "ShellAppFileGen" (>) ">" (identifier) "m_shellAppFile" (;) ";" (declaration) "std::shared_ptr<LogFileQueue> m_stdoutFileQueue;" (type_identifier) "std" (ERROR) "::shared_ptr<LogFileQueue>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "LogFileQueue" (>) ">" (identifier) "m_stdoutFileQueue" (;) ";" (comment) "//the exit code of last instance" (declaration) "std::shared_ptr<int> m_return;" (type_identifier) "std" (ERROR) "::shared_ptr<int>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (primitive_type) "int" (>) ">" (identifier) "m_return" (;) ";" (declaration) "std::string m_posixTimeZone;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_posixTimeZone" (;) ";" (declaration) "std::string m_startTime;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_startTime" (;) ";" (declaration) "std::string m_endTime;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_endTime" (;) ";" (declaration) "std::chrono::system_clock::time_point m_startTimeValue;" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (identifier) "m_startTimeValue" (;) ";" (declaration) "std::chrono::system_clock::time_point m_endTimeValue;" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (identifier) "m_endTimeValue" (;) ";" (comment) "// short running" (declaration) "std::string m_startIntervalValue;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_startIntervalValue" (;) ";" (declaration) "int m_startInterval;" (primitive_type) "int" (identifier) "m_startInterval" (;) ";" (declaration) "std::string m_bufferTimeValue;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_bufferTimeValue" (;) ";" (declaration) "int m_bufferTime;" (primitive_type) "int" (identifier) "m_bufferTime" (;) ";" (declaration) "bool m_startIntervalValueIsCronExpr;" (primitive_type) "bool" (identifier) "m_startIntervalValueIsCronExpr" (;) ";" (declaration) "std::shared_ptr<AppProcess> m_bufferProcess;" (type_identifier) "std" (ERROR) "::shared_ptr<AppProcess>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "AppProcess" (>) ">" (identifier) "m_bufferProcess" (;) ";" (declaration) "std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;" (type_identifier) "std" (ERROR) "::shared_ptr<std::chrono::system_clock::time_point>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (>) ">" (identifier) "m_nextLaunchTime" (;) ";" (declaration) "int m_nextStartTimerId;" (primitive_type) "int" (identifier) "m_nextStartTimerId" (;) ";" (declaration) "std::chrono::system_clock::time_point m_regTime;" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (identifier) "m_regTime" (;) ";" (declaration) "bool m_health;" (primitive_type) "bool" (identifier) "m_health" (;) ";" (declaration) "std::string m_healthCheckCmd;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_healthCheckCmd" (;) ";" (declaration) "const std::string m_appId;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_appId" (;) ";" (declaration) "unsigned int m_version;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_version" (;) ";" (declaration) "std::shared_ptr<AppProcess> m_process;" (type_identifier) "std" (ERROR) "::shared_ptr<AppProcess>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "AppProcess" (>) ">" (identifier) "m_process" (;) ";" (declaration) "pid_t m_pid;" (type_identifier) "pid_t" (identifier) "m_pid" (;) ";" (declaration) "int m_suicideTimerId;" (primitive_type) "int" (identifier) "m_suicideTimerId" (;) ";" (declaration) "std::shared_ptr<DailyLimitation> m_dailyLimit;" (type_identifier) "std" (ERROR) "::shared_ptr<DailyLimitation>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "DailyLimitation" (>) ">" (identifier) "m_dailyLimit" (;) ";" (declaration) "std::shared_ptr<ResourceLimitation> m_resourceLimit;" (type_identifier) "std" (ERROR) "::shared_ptr<ResourceLimitation>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "ResourceLimitation" (>) ">" (identifier) "m_resourceLimit" (;) ";" (declaration) "std::map<std::string, std::string> m_envMap;" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (ERROR) "std::string>" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (identifier) "m_envMap" (;) ";" (declaration) "std::map<std::string, std::string> m_secEnvMap;" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (ERROR) "std::string>" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (identifier) "m_secEnvMap" (;) ";" (declaration) "std::string m_dockerImage;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_dockerImage" (;) ";" (declaration) "std::chrono::system_clock::time_point m_procStartTime;" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (identifier) "m_procStartTime" (;) ";" (declaration) "std::chrono::system_clock::time_point m_procExitTime;" (type_identifier) "std" (ERROR) "::chrono::system_clock::time_point" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "system_clock" (:) ":" (:) ":" (identifier) "time_point" (identifier) "m_procExitTime" (;) ";" (comment) "// Prometheus" (declaration) "std::shared_ptr<CounterMetric> m_metricStartCount;" (type_identifier) "std" (ERROR) "::shared_ptr<CounterMetric>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "CounterMetric" (>) ">" (identifier) "m_metricStartCount" (;) ";" (declaration) "std::shared_ptr<GaugeMetric> m_metricMemory;" (type_identifier) "std" (ERROR) "::shared_ptr<GaugeMetric>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "GaugeMetric" (>) ">" (identifier) "m_metricMemory" (;) ";" (declaration) "std::shared_ptr<GaugeMetric> m_metricCpu;" (type_identifier) "std" (ERROR) "::shared_ptr<GaugeMetric>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "GaugeMetric" (>) ">" (identifier) "m_metricCpu" (;) ";" (declaration) "std::shared_ptr<GaugeMetric> m_metricAppPid;" (type_identifier) "std" (ERROR) "::shared_ptr<GaugeMetric>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "GaugeMetric" (>) ">" (identifier) "m_metricAppPid" (;) ";" (declaration) "std::shared_ptr<GaugeMetric> m_metricFileDesc;" (type_identifier) "std" (ERROR) "::shared_ptr<GaugeMetric>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "GaugeMetric" (>) ">" (identifier) "m_metricFileDesc" (;) ";" (declaration) "std::atomic<int> m_continueFails;" (type_identifier) "std" (ERROR) "::atomic<int>" (:) ":" (:) ":" (identifier) "atomic" (<) "<" (primitive_type) "int" (>) ">" (identifier) "m_continueFails" (;) ";" (declaration) "std::atomic<int> m_starts;" (type_identifier) "std" (ERROR) "::atomic<int>" (:) ":" (:) ":" (identifier) "atomic" (<) "<" (primitive_type) "int" (>) ">" (identifier) "m_starts" (;) ";" (comment) "// error" (declaration) "mutable std::recursive_mutex m_errorMutex;" (type_identifier) "mutable" (ERROR) "std::recursive_mutex" (identifier) "std" (:) ":" (:) ":" (identifier) "recursive_mutex" (identifier) "m_errorMutex" (;) ";" (declaration) "std::string m_lastError;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "m_lastError" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
1,364
83
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 35.29, "nodes": 823, "errors": 0, "source_hash": "742d309e9cae64e207d7f8da720a81b5d078fc7da3a8e6dfacf566363fe685e5", "categorized_nodes": 562}, "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 <atomic>\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": "<atomic>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <chrono>\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": "<chrono>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <map>\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": "<map>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 14}}, {"id": 12, "type": "preproc_include", "text": "#include <memory>\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": "<memory>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <mutex>\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": "<mutex>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"id": 18, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include <tuple>\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": "<tuple>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 16}}, {"id": 24, "type": "preproc_include", "text": "#include <cpprest/json.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<cpprest/json.h>", "parent": 24, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 25}}, {"id": 27, "type": "preproc_include", "text": "#include \"../TimerHandler.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"../TimerHandler.h\"", "parent": 27, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 28}}, {"id": 30, "type": "preproc_include", "text": "#include \"AppBehavior.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"AppBehavior.h\"", "parent": 30, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 24}}, {"id": 33, "type": "preproc_include", "text": "#include \"AppUtils.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"AppUtils.h\"", "parent": 33, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 36, "type": "declaration", "text": "class AppTimer;", "parent": null, "children": [37], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 15}}, {"id": 37, "type": "identifier", "text": "AppTimer", "parent": 36, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 14}}, {"id": 38, "type": "declaration", "text": "class User;", "parent": null, "children": [39], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 11}}, {"id": 39, "type": "identifier", "text": "User", "parent": 38, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 10}}, {"id": 40, "type": "declaration", "text": "class CounterMetric;", "parent": null, "children": [41], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 20}}, {"id": 41, "type": "identifier", "text": "CounterMetric", "parent": 40, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 19}}, {"id": 42, "type": "declaration", "text": "class GaugeMetric;", "parent": null, "children": [43], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 18}}, {"id": 43, "type": "identifier", "text": "GaugeMetric", "parent": 42, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 17}}, {"id": 44, "type": "declaration", "text": "class PrometheusRest;", "parent": null, "children": [45], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 45, "type": "identifier", "text": "PrometheusRest", "parent": 44, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 20}}, {"id": 46, "type": "declaration", "text": "class AppProcess;", "parent": null, "children": [47], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 17}}, {"id": 47, "type": "identifier", "text": "AppProcess", "parent": 46, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 16}}, {"id": 48, "type": "declaration", "text": "class DailyLimitation;", "parent": null, "children": [49], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 49, "type": "identifier", "text": "DailyLimitation", "parent": 48, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 21}}, {"id": 50, "type": "declaration", "text": "class ResourceLimitation;", "parent": null, "children": [51], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 25}}, {"id": 51, "type": "identifier", "text": "ResourceLimitation", "parent": 50, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 24}}, {"id": 52, "type": "ERROR", "text": "class Application : public TimerHandler, public AppBehavior", "parent": null, "children": [53, 55, 56], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 59}}, {"id": 53, "type": "ERROR", "text": "Application : public", "parent": 52, "children": [54], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 26}}, {"id": 54, "type": "identifier", "text": "Application", "parent": 53, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 17}}, {"id": 55, "type": "identifier", "text": "TimerHandler", "parent": 52, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 39}}, {"id": 56, "type": "identifier", "text": "AppBehavior", "parent": 52, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 59}}, {"id": 57, "type": "labeled_statement", "text": "public:\n\tApplication();", "parent": null, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 15}}, {"id": 58, "type": "call_expression", "text": "Application()", "parent": 57, "children": [59, 60], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 14}}, {"id": 59, "type": "identifier", "text": "Application", "parent": 58, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 12}}, {"id": 60, "type": "argument_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 14}}, {"id": 61, "type": "declaration", "text": "virtual ~Application();", "parent": null, "children": [62, 63, 65], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 24}}, {"id": 62, "type": "type_identifier", "text": "virtual", "parent": 61, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 8}}, {"id": 63, "type": "ERROR", "text": "~", "parent": 61, "children": [64], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 64, "type": "~", "text": "~", "parent": 63, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 65, "type": "function_declarator", "text": "Application()", "parent": 61, "children": [66, 67], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 23}}, {"id": 66, "type": "identifier", "text": "Application", "parent": 65, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 21}}, {"id": 67, "type": "parameter_list", "text": "()", "parent": 65, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 23}}, {"id": 68, "type": "declaration", "text": "virtual bool", "parent": null, "children": [69, 70], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 13}}, {"id": 69, "type": "type_identifier", "text": "virtual", "parent": 68, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 8}}, {"id": 70, "type": "identifier", "text": "bool", "parent": 68, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 13}}, {"id": 71, "type": "binary_expression", "text": "operator==(const std::shared_ptr<Application> &app)", "parent": null, "children": [72, 73, 74], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 65}}, {"id": 72, "type": "identifier", "text": "operator", "parent": 71, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 22}}, {"id": 73, "type": "==", "text": "==", "parent": 71, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 24}}, {"id": 74, "type": "parenthesized_expression", "text": "(const std::shared_ptr<Application> &app)", "parent": 71, "children": [75, 78], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 65}}, {"id": 75, "type": "ERROR", "text": "const std::", "parent": 74, "children": [76], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 36}}, {"id": 76, "type": "type_descriptor", "text": "const std", "parent": 75, "children": [77], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 34}}, {"id": 77, "type": "type_identifier", "text": "std", "parent": 76, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 34}}, {"id": 78, "type": "binary_expression", "text": "shared_ptr<Application> &app", "parent": 74, "children": [79, 83, 84], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 64}}, {"id": 79, "type": "binary_expression", "text": "shared_ptr<Application", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 58}}, {"id": 80, "type": "identifier", "text": "shared_ptr", "parent": 79, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 46}}, {"id": 81, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 47}}, {"id": 82, "type": "identifier", "text": "Application", "parent": 79, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 58}}, {"id": 83, "type": ">", "text": ">", "parent": 78, "children": [], "start_point": {"row": 31, "column": 58}, "end_point": {"row": 31, "column": 59}}, {"id": 84, "type": "pointer_expression", "text": "&app", "parent": 78, "children": [85], "start_point": {"row": 31, "column": 60}, "end_point": {"row": 31, "column": 64}}, {"id": 85, "type": "identifier", "text": "app", "parent": 84, "children": [], "start_point": {"row": 31, "column": 61}, "end_point": {"row": 31, "column": 64}}, {"id": 86, "type": "ERROR", "text": "const std::string &getName() const;\n\tpid_t getpid() const;\n\tvoid health(bool health);\n\tint health() const;\n\tconst std::string &healthCheckCmd() const;\n\tconst std::shared_ptr<User> &getOwner() const;\n\tint getOwnerPermission() const;\n\tbool isCloudApp() const;\n\tSTATUS getStatus() const;\n\n\tbool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());\n\tbool isEnabled() const;\n\tbool attach(int pid);\n\n\tstatic void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n\tvirtual web::json::value AsJson(bool returnRuntimeInfo);\n\tvirtual void dump();\n\n\t// operate\n\tvoid execute(void *ptree = nullptr);\n\tvoid enable();\n\tvoid disable();\n\tvoid destroy();\n\n\t// behavior\n\tstd::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());\n\tvoid regSuicideTimer(int timeoutSeconds);\n\tvoid onSuicide(int timerId = 0);\n\tvoid onExit(int code);\n\n\tstd::string runAsyncrize(int timeoutSeconds) noexcept(false);\n\tstd::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n\tstd::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = \"\", int index = 0);\n\n\t// prometheus\n\tvoid initMetrics(std::shared_ptr<PrometheusRest> prom);\n\nprotected:\n\t// error\n\tvoid setLastError(const std::string &error) noexcept(false);\n\tconst std::string getLastError() const noexcept(false);\n\tvoid setInvalidError() noexcept(false);\n\n\t// process\n\tstd::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);\n\tvoid spawn(int timerId);\n\tstd::shared_ptr<int> refresh(void *ptree = nullptr);\n\tvoid healthCheck();\n\n\tstd::string runApp(int timeoutSeconds) noexcept(false);\n\tconst std::string getExecUser() const;\n\tconst std::string &getCmdLine() const;\n\tstd::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n\tmutable std::recursive_mutex m_appMutex;\n\tstd::shared_ptr<AppTimer> m_timer;\n\tstatic ACE_Time_Value m_waitTimeout;\n\n\tSTATUS m_status;\n\tstd::string m_name;\n\tstd::string m_commandLine;\n\tstd::string m_description;\n\t/// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail\n\tstd::shared_ptr<User> m_owner;\n\tint m_ownerPermission;\n\tstd::string m_workdir;\n\tstd::string m_stdoutFile;\n\tweb::json::value m_metadata;\n\tbool m_shellApp;\n\tint m_stdoutCacheNum;\n\tstd::shared_ptr<ShellAppFileGen> m_shellAppFile;\n\tstd::shared_ptr<LogFileQueue> m_stdoutFileQueue;\n\t//the exit code of last instance\n\tstd::shared_ptr<int> m_return;\n\tstd::string m_posixTimeZone;\n\tstd::string m_startTime;\n\tstd::string m_endTime;\n\tstd::chrono::system_clock::time_point m_startTimeValue;\n\tstd::chrono::system_clock::time_point m_endTimeValue;\n\n\t// short running\n\tstd::string m_startIntervalValue;\n\tint m_startInterval;\n\tstd::string m_bufferTimeValue;\n\tint m_bufferTime;\n\tbool m_startIntervalValueIsCronExpr;\n\tstd::shared_ptr<AppProcess> m_bufferProcess;\n\tstd::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;\n\tint m_nextStartTimerId;\n\n\tstd::chrono::system_clock::time_point m_regTime;\n\tbool m_health;\n\tstd::string m_healthCheckCmd;\n\tconst std::string m_appId;\n\tunsigned int m_version;\n\tstd::shared_ptr<AppProcess> m_process;\n\tpid_t m_pid;\n\tint m_suicideTimerId;\n\tstd::shared_ptr<DailyLimitation> m_dailyLimit;\n\tstd::shared_ptr<ResourceLimitation> m_resourceLimit;\n\tstd::map<std::string, std::string> m_envMap;\n\tstd::map<std::string, std::string> m_secEnvMap;\n\tstd::string m_dockerImage;\n\tstd::chrono::system_clock::time_point m_procStartTime;\n\tstd::chrono::system_clock::time_point m_procExitTime;\n\n\t// Prometheus\n\tstd::shared_ptr<CounterMetric> m_metricStartCount;\n\tstd::shared_ptr<GaugeMetric> m_metricMemory;\n\tstd::shared_ptr<GaugeMetric> m_metricCpu;\n\tstd::shared_ptr<GaugeMetric> m_metricAppPid;\n\tstd::shared_ptr<GaugeMetric> m_metricFileDesc;\n\tstd::atomic<int> m_continueFails;\n\tstd::atomic<int> m_starts;\n\n\t// error\n\tmutable std::recursive_mutex m_errorMutex;\n\tstd::string m_lastError;", "parent": null, "children": [87, 88, 90, 93, 106, 139, 158, 163, 171, 205, 212, 226, 231, 236, 241, 270, 278, 289, 297, 362, 375, 376, 430, 438, 457, 462, 502, 510, 513, 516, 521, 526, 531, 539, 542, 547, 552, 558, 561, 564, 572, 580, 588, 593, 598, 603, 610, 617, 622, 625, 630, 633, 636, 644, 655, 658, 665, 668, 673, 678, 683, 691, 694, 697, 705, 713, 725, 737, 742, 749, 756, 764, 772, 780, 788, 796, 804, 812, 818], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 151, "column": 25}}, {"id": 87, "type": "type_identifier", "text": "std", "parent": 86, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 10}}, {"id": 88, "type": "ERROR", "text": "::string &", "parent": 86, "children": [89], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 20}}, {"id": 89, "type": "identifier", "text": "string", "parent": 88, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 18}}, {"id": 90, "type": "function_declarator", "text": "getName()", "parent": 86, "children": [91, 92], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 29}}, {"id": 91, "type": "identifier", "text": "getName", "parent": 90, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 27}}, {"id": 92, "type": "parameter_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 29}}, {"id": 93, "type": "declaration", "text": "const;\n\tpid_t getpid() const;\n\tvoid health(bool health);", "parent": 86, "children": [94, 95, 100], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 35, "column": 26}}, {"id": 94, "type": "type_identifier", "text": "pid_t", "parent": 93, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 6}}, {"id": 95, "type": "ERROR", "text": "getpid() const;\n\tvoid", "parent": 93, "children": [96, 99], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 35, "column": 5}}, {"id": 96, "type": "function_declarator", "text": "getpid() const", "parent": 95, "children": [97, 98], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 21}}, {"id": 97, "type": "identifier", "text": "getpid", "parent": 96, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 13}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 15}}, {"id": 99, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 100, "type": "function_declarator", "text": "health(bool health)", "parent": 93, "children": [101, 102], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 25}}, {"id": 101, "type": "identifier", "text": "health", "parent": 100, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 12}}, {"id": 102, "type": "parameter_list", "text": "(bool health)", "parent": 100, "children": [103], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 25}}, {"id": 103, "type": "parameter_declaration", "text": "bool health", "parent": 102, "children": [104, 105], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 24}}, {"id": 104, "type": "primitive_type", "text": "bool", "parent": 103, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 17}}, {"id": 105, "type": "identifier", "text": "health", "parent": 103, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 24}}, {"id": 106, "type": "ERROR", "text": "int health() const;\n\tconst std::string &healthCheckCmd() const;\n\tconst std::shared_ptr<User> &getOwner() const;\n\tint getOwnerPermission() const;\n\tbool isCloudApp() const;\n\tSTATUS getStatus() const;", "parent": 86, "children": [107, 108, 111, 112, 114, 117, 118, 123, 126, 127, 130, 131, 136], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 41, "column": 26}}, {"id": 107, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 4}}, {"id": 108, "type": "function_declarator", "text": "health() const", "parent": 106, "children": [109, 110], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 19}}, {"id": 109, "type": "identifier", "text": "health", "parent": 108, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 11}}, {"id": 110, "type": "parameter_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 13}}, {"id": 111, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 10}}, {"id": 112, "type": "ERROR", "text": "::string &", "parent": 106, "children": [113], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 20}}, {"id": 113, "type": "identifier", "text": "string", "parent": 112, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 18}}, {"id": 114, "type": "function_declarator", "text": "healthCheckCmd() const", "parent": 106, "children": [115, 116], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 42}}, {"id": 115, "type": "identifier", "text": "healthCheckCmd", "parent": 114, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 34}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 36}}, {"id": 117, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 10}}, {"id": 118, "type": "ERROR", "text": "::shared_ptr<User> &", "parent": 106, "children": [119, 120, 121, 122], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 30}}, {"id": 119, "type": "identifier", "text": "shared_ptr", "parent": 118, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 22}}, {"id": 120, "type": "<", "text": "<", "parent": 118, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 121, "type": "identifier", "text": "User", "parent": 118, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 27}}, {"id": 122, "type": ">", "text": ">", "parent": 118, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 123, "type": "function_declarator", "text": "getOwner() const", "parent": 106, "children": [124, 125], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 46}}, {"id": 124, "type": "identifier", "text": "getOwner", "parent": 123, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 38}}, {"id": 125, "type": "parameter_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 40}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 127, "type": "function_declarator", "text": "getOwnerPermission() const", "parent": 106, "children": [128, 129], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 31}}, {"id": 128, "type": "identifier", "text": "getOwnerPermission", "parent": 127, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 23}}, {"id": 129, "type": "parameter_list", "text": "()", "parent": 127, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 25}}, {"id": 130, "type": "primitive_type", "text": "bool", "parent": 106, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 5}}, {"id": 131, "type": "ERROR", "text": "isCloudApp() const;\n\tSTATUS", "parent": 106, "children": [132, 135], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 41, "column": 7}}, {"id": 132, "type": "function_declarator", "text": "isCloudApp() const", "parent": 131, "children": [133, 134], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 24}}, {"id": 133, "type": "identifier", "text": "isCloudApp", "parent": 132, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 16}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 18}}, {"id": 135, "type": "identifier", "text": "STATUS", "parent": 131, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 136, "type": "function_declarator", "text": "getStatus() const", "parent": 106, "children": [137, 138], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 25}}, {"id": 137, "type": "identifier", "text": "getStatus", "parent": 136, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 17}}, {"id": 138, "type": "parameter_list", "text": "()", "parent": 136, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 139, "type": "declaration", "text": "bool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());", "parent": 86, "children": [140, 141], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 101}}, {"id": 140, "type": "primitive_type", "text": "bool", "parent": 139, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 141, "type": "function_declarator", "text": "available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now())", "parent": 139, "children": [142, 143], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 100}}, {"id": 142, "type": "identifier", "text": "available", "parent": 141, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 15}}, {"id": 143, "type": "parameter_list", "text": "(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now())", "parent": 141, "children": [144], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 100}}, {"id": 144, "type": "parameter_declaration", "text": "const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now()", "parent": 143, "children": [145, 146, 155], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 99}}, {"id": 145, "type": "type_identifier", "text": "std", "parent": 144, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 25}}, {"id": 146, "type": "ERROR", "text": "::chrono::system_clock::time_point &now = std::chrono::system_clock::", "parent": 144, "children": [147, 148, 149, 150, 151, 152, 153, 154], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 94}}, {"id": 147, "type": "identifier", "text": "chrono", "parent": 146, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 33}}, {"id": 148, "type": "identifier", "text": "system_clock", "parent": 146, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 47}}, {"id": 149, "type": "identifier", "text": "time_point", "parent": 146, "children": [], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 59}}, {"id": 150, "type": "identifier", "text": "now", "parent": 146, "children": [], "start_point": {"row": 43, "column": 61}, "end_point": {"row": 43, "column": 64}}, {"id": 151, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 43, "column": 65}, "end_point": {"row": 43, "column": 66}}, {"id": 152, "type": "identifier", "text": "std", "parent": 146, "children": [], "start_point": {"row": 43, "column": 67}, "end_point": {"row": 43, "column": 70}}, {"id": 153, "type": "identifier", "text": "chrono", "parent": 146, "children": [], "start_point": {"row": 43, "column": 72}, "end_point": {"row": 43, "column": 78}}, {"id": 154, "type": "identifier", "text": "system_clock", "parent": 146, "children": [], "start_point": {"row": 43, "column": 80}, "end_point": {"row": 43, "column": 92}}, {"id": 155, "type": "function_declarator", "text": "now()", "parent": 144, "children": [156, 157], "start_point": {"row": 43, "column": 94}, "end_point": {"row": 43, "column": 99}}, {"id": 156, "type": "identifier", "text": "now", "parent": 155, "children": [], "start_point": {"row": 43, "column": 94}, "end_point": {"row": 43, "column": 97}}, {"id": 157, "type": "parameter_list", "text": "()", "parent": 155, "children": [], "start_point": {"row": 43, "column": 97}, "end_point": {"row": 43, "column": 99}}, {"id": 158, "type": "ERROR", "text": "bool isEnabled() const;", "parent": 86, "children": [159, 160], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 24}}, {"id": 159, "type": "primitive_type", "text": "bool", "parent": 158, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 5}}, {"id": 160, "type": "function_declarator", "text": "isEnabled() const", "parent": 158, "children": [161, 162], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 23}}, {"id": 161, "type": "identifier", "text": "isEnabled", "parent": 160, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 15}}, {"id": 162, "type": "parameter_list", "text": "()", "parent": 160, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 17}}, {"id": 163, "type": "declaration", "text": "bool attach(int pid);", "parent": 86, "children": [164, 165], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 22}}, {"id": 164, "type": "primitive_type", "text": "bool", "parent": 163, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 5}}, {"id": 165, "type": "function_declarator", "text": "attach(int pid)", "parent": 163, "children": [166, 167], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 21}}, {"id": 166, "type": "identifier", "text": "attach", "parent": 165, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 12}}, {"id": 167, "type": "parameter_list", "text": "(int pid)", "parent": 165, "children": [168], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 21}}, {"id": 168, "type": "parameter_declaration", "text": "int pid", "parent": 167, "children": [169, 170], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 20}}, {"id": 169, "type": "primitive_type", "text": "int", "parent": 168, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 16}}, {"id": 170, "type": "identifier", "text": "pid", "parent": 168, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 20}}, {"id": 171, "type": "declaration", "text": "static void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n\tvirtual web::json::value AsJson(bool returnRuntimeInfo);", "parent": 86, "children": [172, 173, 199], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 48, "column": 57}}, {"id": 172, "type": "primitive_type", "text": "void", "parent": 171, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 12}}, {"id": 173, "type": "ERROR", "text": "FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n\tvirtual web::json::value", "parent": 171, "children": [174, 195, 196, 197, 198], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 48, "column": 25}}, {"id": 174, "type": "function_declarator", "text": "FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false)", "parent": 173, "children": [175, 176, 191], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 107}}, {"id": 175, "type": "identifier", "text": "FromJson", "parent": 174, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 21}}, {"id": 176, "type": "parameter_list", "text": "(const std::shared_ptr<Application> &app, const web::json::value &obj)", "parent": 174, "children": [177, 185], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 91}}, {"id": 177, "type": "parameter_declaration", "text": "const std::shared_ptr<Application> &app", "parent": 176, "children": [178, 179, 184], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 61}}, {"id": 178, "type": "type_identifier", "text": "std", "parent": 177, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 31}}, {"id": 179, "type": "ERROR", "text": "::shared_ptr<Application> &", "parent": 177, "children": [180, 181, 182, 183], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 58}}, {"id": 180, "type": "identifier", "text": "shared_ptr", "parent": 179, "children": [], "start_point": {"row": 47, "column": 33}, "end_point": {"row": 47, "column": 43}}, {"id": 181, "type": "<", "text": "<", "parent": 179, "children": [], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 44}}, {"id": 182, "type": "identifier", "text": "Application", "parent": 179, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 55}}, {"id": 183, "type": ">", "text": ">", "parent": 179, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 56}}, {"id": 184, "type": "identifier", "text": "app", "parent": 177, "children": [], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 61}}, {"id": 185, "type": "parameter_declaration", "text": "const web::json::value &obj", "parent": 176, "children": [186, 187, 190], "start_point": {"row": 47, "column": 63}, "end_point": {"row": 47, "column": 90}}, {"id": 186, "type": "type_identifier", "text": "web", "parent": 185, "children": [], "start_point": {"row": 47, "column": 69}, "end_point": {"row": 47, "column": 72}}, {"id": 187, "type": "ERROR", "text": "::json::value &", "parent": 185, "children": [188, 189], "start_point": {"row": 47, "column": 72}, "end_point": {"row": 47, "column": 87}}, {"id": 188, "type": "identifier", "text": "json", "parent": 187, "children": [], "start_point": {"row": 47, "column": 74}, "end_point": {"row": 47, "column": 78}}, {"id": 189, "type": "identifier", "text": "value", "parent": 187, "children": [], "start_point": {"row": 47, "column": 80}, "end_point": {"row": 47, "column": 85}}, {"id": 190, "type": "identifier", "text": "obj", "parent": 185, "children": [], "start_point": {"row": 47, "column": 87}, "end_point": {"row": 47, "column": 90}}, {"id": 191, "type": "call_expression", "text": "noexcept(false)", "parent": 174, "children": [192, 193], "start_point": {"row": 47, "column": 92}, "end_point": {"row": 47, "column": 107}}, {"id": 192, "type": "identifier", "text": "noexcept", "parent": 191, "children": [], "start_point": {"row": 47, "column": 92}, "end_point": {"row": 47, "column": 100}}, {"id": 193, "type": "argument_list", "text": "(false)", "parent": 191, "children": [194], "start_point": {"row": 47, "column": 100}, "end_point": {"row": 47, "column": 107}}, {"id": 194, "type": "identifier", "text": "false", "parent": 193, "children": [], "start_point": {"row": 47, "column": 101}, "end_point": {"row": 47, "column": 106}}, {"id": 195, "type": "identifier", "text": "virtual", "parent": 173, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 196, "type": "identifier", "text": "web", "parent": 173, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 12}}, {"id": 197, "type": "identifier", "text": "json", "parent": 173, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 18}}, {"id": 198, "type": "identifier", "text": "value", "parent": 173, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 25}}, {"id": 199, "type": "function_declarator", "text": "AsJson(bool returnRuntimeInfo)", "parent": 171, "children": [200, 201], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 56}}, {"id": 200, "type": "identifier", "text": "AsJson", "parent": 199, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 32}}, {"id": 201, "type": "parameter_list", "text": "(bool returnRuntimeInfo)", "parent": 199, "children": [202], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 56}}, {"id": 202, "type": "parameter_declaration", "text": "bool returnRuntimeInfo", "parent": 201, "children": [203, 204], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 55}}, {"id": 203, "type": "primitive_type", "text": "bool", "parent": 202, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 37}}, {"id": 204, "type": "identifier", "text": "returnRuntimeInfo", "parent": 202, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 55}}, {"id": 205, "type": "declaration", "text": "virtual void dump();", "parent": 86, "children": [206, 207, 209], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 21}}, {"id": 206, "type": "type_identifier", "text": "virtual", "parent": 205, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 8}}, {"id": 207, "type": "ERROR", "text": "void", "parent": 205, "children": [208], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 13}}, {"id": 208, "type": "identifier", "text": "void", "parent": 207, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 13}}, {"id": 209, "type": "function_declarator", "text": "dump()", "parent": 205, "children": [210, 211], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 210, "type": "identifier", "text": "dump", "parent": 209, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 211, "type": "parameter_list", "text": "()", "parent": 209, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 20}}, {"id": 212, "type": "declaration", "text": "void execute(void *ptree = nullptr);", "parent": 86, "children": [213, 214], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 37}}, {"id": 213, "type": "primitive_type", "text": "void", "parent": 212, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 214, "type": "init_declarator", "text": "execute(void *ptree = nullptr", "parent": 212, "children": [215, 223, 224], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 35}}, {"id": 215, "type": "function_declarator", "text": "execute(void *ptree", "parent": 214, "children": [216, 217], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 25}}, {"id": 216, "type": "identifier", "text": "execute", "parent": 215, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 13}}, {"id": 217, "type": "parameter_list", "text": "(void *ptree", "parent": 215, "children": [218], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 25}}, {"id": 218, "type": "parameter_declaration", "text": "void *ptree", "parent": 217, "children": [219, 220], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 25}}, {"id": 219, "type": "primitive_type", "text": "void", "parent": 218, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 18}}, {"id": 220, "type": "pointer_declarator", "text": "*ptree", "parent": 218, "children": [221, 222], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 25}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 20}}, {"id": 222, "type": "identifier", "text": "ptree", "parent": 220, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 25}}, {"id": 223, "type": "=", "text": "=", "parent": 214, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 27}}, {"id": 224, "type": "null", "text": "nullptr", "parent": 214, "children": [225], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 35}}, {"id": 225, "type": "nullptr", "text": "nullptr", "parent": 224, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 35}}, {"id": 226, "type": "declaration", "text": "void enable();", "parent": 86, "children": [227, 228], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 15}}, {"id": 227, "type": "primitive_type", "text": "void", "parent": 226, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 228, "type": "function_declarator", "text": "enable()", "parent": 226, "children": [229, 230], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 14}}, {"id": 229, "type": "identifier", "text": "enable", "parent": 228, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 12}}, {"id": 230, "type": "parameter_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 14}}, {"id": 231, "type": "declaration", "text": "void disable();", "parent": 86, "children": [232, 233], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 16}}, {"id": 232, "type": "primitive_type", "text": "void", "parent": 231, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 5}}, {"id": 233, "type": "function_declarator", "text": "disable()", "parent": 231, "children": [234, 235], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 15}}, {"id": 234, "type": "identifier", "text": "disable", "parent": 233, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 13}}, {"id": 235, "type": "parameter_list", "text": "()", "parent": 233, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 15}}, {"id": 236, "type": "declaration", "text": "void destroy();", "parent": 86, "children": [237, 238], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 16}}, {"id": 237, "type": "primitive_type", "text": "void", "parent": 236, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 5}}, {"id": 238, "type": "function_declarator", "text": "destroy()", "parent": 236, "children": [239, 240], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 15}}, {"id": 239, "type": "identifier", "text": "destroy", "parent": 238, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 13}}, {"id": 240, "type": "parameter_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 15}}, {"id": 241, "type": "declaration", "text": "std::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());", "parent": 86, "children": [242, 243, 251], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 147}}, {"id": 242, "type": "type_identifier", "text": "std", "parent": 241, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 243, "type": "ERROR", "text": "::shared_ptr<std::chrono::system_clock::time_point>", "parent": 241, "children": [244, 245, 246, 247, 248, 249, 250], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 55}}, {"id": 244, "type": "identifier", "text": "shared_ptr", "parent": 243, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 16}}, {"id": 245, "type": "<", "text": "<", "parent": 243, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 17}}, {"id": 246, "type": "identifier", "text": "std", "parent": 243, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 20}}, {"id": 247, "type": "identifier", "text": "chrono", "parent": 243, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 28}}, {"id": 248, "type": "identifier", "text": "system_clock", "parent": 243, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 42}}, {"id": 249, "type": "identifier", "text": "time_point", "parent": 243, "children": [], "start_point": {"row": 58, "column": 44}, "end_point": {"row": 58, "column": 54}}, {"id": 250, "type": ">", "text": ">", "parent": 243, "children": [], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 55}}, {"id": 251, "type": "init_declarator", "text": "scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now()", "parent": 241, "children": [252, 262, 263, 267], "start_point": {"row": 58, "column": 56}, "end_point": {"row": 58, "column": 145}}, {"id": 252, "type": "function_declarator", "text": "scheduleNext(std::chrono::system_clock::time_point now", "parent": 251, "children": [253, 254, 261], "start_point": {"row": 58, "column": 56}, "end_point": {"row": 58, "column": 110}}, {"id": 253, "type": "identifier", "text": "scheduleNext", "parent": 252, "children": [], "start_point": {"row": 58, "column": 56}, "end_point": {"row": 58, "column": 68}}, {"id": 254, "type": "parameter_list", "text": "(std::chrono::system_clock::time_point", "parent": 252, "children": [255], "start_point": {"row": 58, "column": 68}, "end_point": {"row": 58, "column": 106}}, {"id": 255, "type": "parameter_declaration", "text": "std::chrono::system_clock::time_point", "parent": 254, "children": [256, 257, 260], "start_point": {"row": 58, "column": 69}, "end_point": {"row": 58, "column": 106}}, {"id": 256, "type": "type_identifier", "text": "std", "parent": 255, "children": [], "start_point": {"row": 58, "column": 69}, "end_point": {"row": 58, "column": 72}}, {"id": 257, "type": "ERROR", "text": "::chrono::system_clock::", "parent": 255, "children": [258, 259], "start_point": {"row": 58, "column": 72}, "end_point": {"row": 58, "column": 96}}, {"id": 258, "type": "identifier", "text": "chrono", "parent": 257, "children": [], "start_point": {"row": 58, "column": 74}, "end_point": {"row": 58, "column": 80}}, {"id": 259, "type": "identifier", "text": "system_clock", "parent": 257, "children": [], "start_point": {"row": 58, "column": 82}, "end_point": {"row": 58, "column": 94}}, {"id": 260, "type": "identifier", "text": "time_point", "parent": 255, "children": [], "start_point": {"row": 58, "column": 96}, "end_point": {"row": 58, "column": 106}}, {"id": 261, "type": "identifier", "text": "now", "parent": 252, "children": [], "start_point": {"row": 58, "column": 107}, "end_point": {"row": 58, "column": 110}}, {"id": 262, "type": "=", "text": "=", "parent": 251, "children": [], "start_point": {"row": 58, "column": 111}, "end_point": {"row": 58, "column": 112}}, {"id": 263, "type": "ERROR", "text": "std::chrono::system_clock::", "parent": 251, "children": [264, 265, 266], "start_point": {"row": 58, "column": 113}, "end_point": {"row": 58, "column": 140}}, {"id": 264, "type": "identifier", "text": "std", "parent": 263, "children": [], "start_point": {"row": 58, "column": 113}, "end_point": {"row": 58, "column": 116}}, {"id": 265, "type": "identifier", "text": "chrono", "parent": 263, "children": [], "start_point": {"row": 58, "column": 118}, "end_point": {"row": 58, "column": 124}}, {"id": 266, "type": "identifier", "text": "system_clock", "parent": 263, "children": [], "start_point": {"row": 58, "column": 126}, "end_point": {"row": 58, "column": 138}}, {"id": 267, "type": "call_expression", "text": "now()", "parent": 251, "children": [268, 269], "start_point": {"row": 58, "column": 140}, "end_point": {"row": 58, "column": 145}}, {"id": 268, "type": "identifier", "text": "now", "parent": 267, "children": [], "start_point": {"row": 58, "column": 140}, "end_point": {"row": 58, "column": 143}}, {"id": 269, "type": "argument_list", "text": "()", "parent": 267, "children": [], "start_point": {"row": 58, "column": 143}, "end_point": {"row": 58, "column": 145}}, {"id": 270, "type": "declaration", "text": "void regSuicideTimer(int timeoutSeconds);", "parent": 86, "children": [271, 272], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 42}}, {"id": 271, "type": "primitive_type", "text": "void", "parent": 270, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 5}}, {"id": 272, "type": "function_declarator", "text": "regSuicideTimer(int timeoutSeconds)", "parent": 270, "children": [273, 274], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 41}}, {"id": 273, "type": "identifier", "text": "regSuicideTimer", "parent": 272, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 21}}, {"id": 274, "type": "parameter_list", "text": "(int timeoutSeconds)", "parent": 272, "children": [275], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 41}}, {"id": 275, "type": "parameter_declaration", "text": "int timeoutSeconds", "parent": 274, "children": [276, 277], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 40}}, {"id": 276, "type": "primitive_type", "text": "int", "parent": 275, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 25}}, {"id": 277, "type": "identifier", "text": "timeoutSeconds", "parent": 275, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 40}}, {"id": 278, "type": "declaration", "text": "void onSuicide(int timerId = 0);", "parent": 86, "children": [279, 280], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 33}}, {"id": 279, "type": "primitive_type", "text": "void", "parent": 278, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 5}}, {"id": 280, "type": "init_declarator", "text": "onSuicide(int timerId = 0", "parent": 278, "children": [281, 287, 288], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 31}}, {"id": 281, "type": "function_declarator", "text": "onSuicide(int timerId", "parent": 280, "children": [282, 283], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 27}}, {"id": 282, "type": "identifier", "text": "onSuicide", "parent": 281, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 15}}, {"id": 283, "type": "parameter_list", "text": "(int timerId", "parent": 281, "children": [284], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 27}}, {"id": 284, "type": "parameter_declaration", "text": "int timerId", "parent": 283, "children": [285, 286], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 27}}, {"id": 285, "type": "primitive_type", "text": "int", "parent": 284, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 19}}, {"id": 286, "type": "identifier", "text": "timerId", "parent": 284, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 27}}, {"id": 287, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 29}}, {"id": 288, "type": "number_literal", "text": "0", "parent": 280, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 31}}, {"id": 289, "type": "declaration", "text": "void onExit(int code);", "parent": 86, "children": [290, 291], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 23}}, {"id": 290, "type": "primitive_type", "text": "void", "parent": 289, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 5}}, {"id": 291, "type": "function_declarator", "text": "onExit(int code)", "parent": 289, "children": [292, 293], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 22}}, {"id": 292, "type": "identifier", "text": "onExit", "parent": 291, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 12}}, {"id": 293, "type": "parameter_list", "text": "(int code)", "parent": 291, "children": [294], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 22}}, {"id": 294, "type": "parameter_declaration", "text": "int code", "parent": 293, "children": [295, 296], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 21}}, {"id": 295, "type": "primitive_type", "text": "int", "parent": 294, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 16}}, {"id": 296, "type": "identifier", "text": "code", "parent": 294, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 21}}, {"id": 297, "type": "declaration", "text": "std::string runAsyncrize(int timeoutSeconds) noexcept(false);\n\tstd::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n\tstd::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = \"\", int index = 0);", "parent": 86, "children": [298, 299, 332, 333, 334, 337, 356, 358], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 65, "column": 128}}, {"id": 298, "type": "type_identifier", "text": "std", "parent": 297, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 4}}, {"id": 299, "type": "ERROR", "text": "::string runAsyncrize(int timeoutSeconds) noexcept(false);\n\tstd::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n\tstd::tuple<std::", "parent": 297, "children": [300, 301, 311, 312, 313, 328, 329, 330, 331], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 65, "column": 17}}, {"id": 300, "type": "identifier", "text": "string", "parent": 299, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 12}}, {"id": 301, "type": "function_declarator", "text": "runAsyncrize(int timeoutSeconds) noexcept(false)", "parent": 299, "children": [302, 303, 307], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 61}}, {"id": 302, "type": "identifier", "text": "runAsyncrize", "parent": 301, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 25}}, {"id": 303, "type": "parameter_list", "text": "(int timeoutSeconds)", "parent": 301, "children": [304], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 45}}, {"id": 304, "type": "parameter_declaration", "text": "int timeoutSeconds", "parent": 303, "children": [305, 306], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 44}}, {"id": 305, "type": "primitive_type", "text": "int", "parent": 304, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 29}}, {"id": 306, "type": "identifier", "text": "timeoutSeconds", "parent": 304, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 44}}, {"id": 307, "type": "call_expression", "text": "noexcept(false)", "parent": 301, "children": [308, 309], "start_point": {"row": 63, "column": 46}, "end_point": {"row": 63, "column": 61}}, {"id": 308, "type": "identifier", "text": "noexcept", "parent": 307, "children": [], "start_point": {"row": 63, "column": 46}, "end_point": {"row": 63, "column": 54}}, {"id": 309, "type": "argument_list", "text": "(false)", "parent": 307, "children": [310], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 61}}, {"id": 310, "type": "identifier", "text": "false", "parent": 309, "children": [], "start_point": {"row": 63, "column": 55}, "end_point": {"row": 63, "column": 60}}, {"id": 311, "type": "identifier", "text": "std", "parent": 299, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 4}}, {"id": 312, "type": "identifier", "text": "string", "parent": 299, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 12}}, {"id": 313, "type": "function_declarator", "text": "runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false)", "parent": 299, "children": [314, 315, 324], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 84}}, {"id": 314, "type": "identifier", "text": "runSyncrize", "parent": 313, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 24}}, {"id": 315, "type": "parameter_list", "text": "(int timeoutSeconds, void *asyncHttpRequest)", "parent": 313, "children": [316, 319], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 68}}, {"id": 316, "type": "parameter_declaration", "text": "int timeoutSeconds", "parent": 315, "children": [317, 318], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 43}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 28}}, {"id": 318, "type": "identifier", "text": "timeoutSeconds", "parent": 316, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 43}}, {"id": 319, "type": "parameter_declaration", "text": "void *asyncHttpRequest", "parent": 315, "children": [320, 321], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 67}}, {"id": 320, "type": "primitive_type", "text": "void", "parent": 319, "children": [], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 49}}, {"id": 321, "type": "pointer_declarator", "text": "*asyncHttpRequest", "parent": 319, "children": [322, 323], "start_point": {"row": 64, "column": 50}, "end_point": {"row": 64, "column": 67}}, {"id": 322, "type": "*", "text": "*", "parent": 321, "children": [], "start_point": {"row": 64, "column": 50}, "end_point": {"row": 64, "column": 51}}, {"id": 323, "type": "identifier", "text": "asyncHttpRequest", "parent": 321, "children": [], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 67}}, {"id": 324, "type": "call_expression", "text": "noexcept(false)", "parent": 313, "children": [325, 326], "start_point": {"row": 64, "column": 69}, "end_point": {"row": 64, "column": 84}}, {"id": 325, "type": "identifier", "text": "noexcept", "parent": 324, "children": [], "start_point": {"row": 64, "column": 69}, "end_point": {"row": 64, "column": 77}}, {"id": 326, "type": "argument_list", "text": "(false)", "parent": 324, "children": [327], "start_point": {"row": 64, "column": 77}, "end_point": {"row": 64, "column": 84}}, {"id": 327, "type": "identifier", "text": "false", "parent": 326, "children": [], "start_point": {"row": 64, "column": 78}, "end_point": {"row": 64, "column": 83}}, {"id": 328, "type": "identifier", "text": "std", "parent": 299, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 4}}, {"id": 329, "type": "identifier", "text": "tuple", "parent": 299, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 11}}, {"id": 330, "type": "<", "text": "<", "parent": 299, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 331, "type": "identifier", "text": "std", "parent": 299, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 15}}, {"id": 332, "type": "identifier", "text": "string", "parent": 297, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 23}}, {"id": 333, "type": "identifier", "text": "bool", "parent": 297, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 29}}, {"id": 334, "type": "ERROR", "text": "int>", "parent": 297, "children": [335, 336], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 35}}, {"id": 335, "type": "identifier", "text": "int", "parent": 334, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 34}}, {"id": 336, "type": ">", "text": ">", "parent": 334, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 35}}, {"id": 337, "type": "init_declarator", "text": "getOutput(long &position, long maxSize, const std::string &processUuid = \"\"", "parent": 297, "children": [338, 354, 355], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 111}}, {"id": 338, "type": "function_declarator", "text": "getOutput(long &position, long maxSize, const std::string &processUuid", "parent": 337, "children": [339, 340], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 106}}, {"id": 339, "type": "identifier", "text": "getOutput", "parent": 338, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 45}}, {"id": 340, "type": "parameter_list", "text": "(long &position, long maxSize, const std::string &processUuid", "parent": 338, "children": [341, 345, 349], "start_point": {"row": 65, "column": 45}, "end_point": {"row": 65, "column": 106}}, {"id": 341, "type": "parameter_declaration", "text": "long &position", "parent": 340, "children": [342, 344], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 60}}, {"id": 342, "type": "sized_type_specifier", "text": "long", "parent": 341, "children": [343], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 50}}, {"id": 343, "type": "long", "text": "long", "parent": 342, "children": [], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 50}}, {"id": 344, "type": "identifier", "text": "position", "parent": 341, "children": [], "start_point": {"row": 65, "column": 52}, "end_point": {"row": 65, "column": 60}}, {"id": 345, "type": "parameter_declaration", "text": "long maxSize", "parent": 340, "children": [346, 348], "start_point": {"row": 65, "column": 62}, "end_point": {"row": 65, "column": 74}}, {"id": 346, "type": "sized_type_specifier", "text": "long", "parent": 345, "children": [347], "start_point": {"row": 65, "column": 62}, "end_point": {"row": 65, "column": 66}}, {"id": 347, "type": "long", "text": "long", "parent": 346, "children": [], "start_point": {"row": 65, "column": 62}, "end_point": {"row": 65, "column": 66}}, {"id": 348, "type": "identifier", "text": "maxSize", "parent": 345, "children": [], "start_point": {"row": 65, "column": 67}, "end_point": {"row": 65, "column": 74}}, {"id": 349, "type": "parameter_declaration", "text": "const std::string &processUuid", "parent": 340, "children": [350, 351, 353], "start_point": {"row": 65, "column": 76}, "end_point": {"row": 65, "column": 106}}, {"id": 350, "type": "type_identifier", "text": "std", "parent": 349, "children": [], "start_point": {"row": 65, "column": 82}, "end_point": {"row": 65, "column": 85}}, {"id": 351, "type": "ERROR", "text": "::string &", "parent": 349, "children": [352], "start_point": {"row": 65, "column": 85}, "end_point": {"row": 65, "column": 95}}, {"id": 352, "type": "identifier", "text": "string", "parent": 351, "children": [], "start_point": {"row": 65, "column": 87}, "end_point": {"row": 65, "column": 93}}, {"id": 353, "type": "identifier", "text": "processUuid", "parent": 349, "children": [], "start_point": {"row": 65, "column": 95}, "end_point": {"row": 65, "column": 106}}, {"id": 354, "type": "=", "text": "=", "parent": 337, "children": [], "start_point": {"row": 65, "column": 107}, "end_point": {"row": 65, "column": 108}}, {"id": 355, "type": "string_literal", "text": "\"\"", "parent": 337, "children": [], "start_point": {"row": 65, "column": 109}, "end_point": {"row": 65, "column": 111}}, {"id": 356, "type": "ERROR", "text": "int", "parent": 297, "children": [357], "start_point": {"row": 65, "column": 113}, "end_point": {"row": 65, "column": 116}}, {"id": 357, "type": "identifier", "text": "int", "parent": 356, "children": [], "start_point": {"row": 65, "column": 113}, "end_point": {"row": 65, "column": 116}}, {"id": 358, "type": "init_declarator", "text": "index = 0", "parent": 297, "children": [359, 360, 361], "start_point": {"row": 65, "column": 117}, "end_point": {"row": 65, "column": 126}}, {"id": 359, "type": "identifier", "text": "index", "parent": 358, "children": [], "start_point": {"row": 65, "column": 117}, "end_point": {"row": 65, "column": 122}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 65, "column": 123}, "end_point": {"row": 65, "column": 124}}, {"id": 361, "type": "number_literal", "text": "0", "parent": 358, "children": [], "start_point": {"row": 65, "column": 125}, "end_point": {"row": 65, "column": 126}}, {"id": 362, "type": "declaration", "text": "void initMetrics(std::shared_ptr<PrometheusRest> prom);", "parent": 86, "children": [363, 364], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 56}}, {"id": 363, "type": "primitive_type", "text": "void", "parent": 362, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 5}}, {"id": 364, "type": "function_declarator", "text": "initMetrics(std::shared_ptr<PrometheusRest> prom)", "parent": 362, "children": [365, 366], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 55}}, {"id": 365, "type": "identifier", "text": "initMetrics", "parent": 364, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 17}}, {"id": 366, "type": "parameter_list", "text": "(std::shared_ptr<PrometheusRest> prom)", "parent": 364, "children": [367], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 55}}, {"id": 367, "type": "parameter_declaration", "text": "std::shared_ptr<PrometheusRest> prom", "parent": 366, "children": [368, 369, 374], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 54}}, {"id": 368, "type": "type_identifier", "text": "std", "parent": 367, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 21}}, {"id": 369, "type": "ERROR", "text": "::shared_ptr<PrometheusRest>", "parent": 367, "children": [370, 371, 372, 373], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 49}}, {"id": 370, "type": "identifier", "text": "shared_ptr", "parent": 369, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 33}}, {"id": 371, "type": "<", "text": "<", "parent": 369, "children": [], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 34}}, {"id": 372, "type": "identifier", "text": "PrometheusRest", "parent": 369, "children": [], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 48}}, {"id": 373, "type": ">", "text": ">", "parent": 369, "children": [], "start_point": {"row": 68, "column": 48}, "end_point": {"row": 68, "column": 49}}, {"id": 374, "type": "identifier", "text": "prom", "parent": 367, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 54}}, {"id": 375, "type": "ERROR", "text": "protected:", "parent": 86, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 10}}, {"id": 376, "type": "declaration", "text": "void setLastError(const std::string &error) noexcept(false);\n\tconst std::string getLastError() const noexcept(false);\n\tvoid setInvalidError() noexcept(false);\n\n\t// process\n\tstd::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);", "parent": 86, "children": [377, 378, 408, 414], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 77, "column": 123}}, {"id": 377, "type": "primitive_type", "text": "void", "parent": 376, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 378, "type": "ERROR", "text": "setLastError(const std::string &error) noexcept(false);\n\tconst std::string getLastError() const noexcept(false);\n\tvoid setInvalidError() noexcept(false);", "parent": 376, "children": [379, 391, 392, 393, 400, 401], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 74, "column": 40}}, {"id": 379, "type": "function_declarator", "text": "setLastError(const std::string &error) noexcept(false)", "parent": 378, "children": [380, 381, 387], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 60}}, {"id": 380, "type": "identifier", "text": "setLastError", "parent": 379, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 18}}, {"id": 381, "type": "parameter_list", "text": "(const std::string &error)", "parent": 379, "children": [382], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 44}}, {"id": 382, "type": "parameter_declaration", "text": "const std::string &error", "parent": 381, "children": [383, 384, 386], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 43}}, {"id": 383, "type": "type_identifier", "text": "std", "parent": 382, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 28}}, {"id": 384, "type": "ERROR", "text": "::string &", "parent": 382, "children": [385], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 38}}, {"id": 385, "type": "identifier", "text": "string", "parent": 384, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 36}}, {"id": 386, "type": "identifier", "text": "error", "parent": 382, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 43}}, {"id": 387, "type": "call_expression", "text": "noexcept(false)", "parent": 379, "children": [388, 389], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 60}}, {"id": 388, "type": "identifier", "text": "noexcept", "parent": 387, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 53}}, {"id": 389, "type": "argument_list", "text": "(false)", "parent": 387, "children": [390], "start_point": {"row": 72, "column": 53}, "end_point": {"row": 72, "column": 60}}, {"id": 390, "type": "identifier", "text": "false", "parent": 389, "children": [], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 72, "column": 59}}, {"id": 391, "type": "identifier", "text": "std", "parent": 378, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 10}}, {"id": 392, "type": "identifier", "text": "string", "parent": 378, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 18}}, {"id": 393, "type": "function_declarator", "text": "getLastError() const noexcept(false)", "parent": 378, "children": [394, 395, 396], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 55}}, {"id": 394, "type": "identifier", "text": "getLastError", "parent": 393, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 31}}, {"id": 395, "type": "parameter_list", "text": "()", "parent": 393, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 33}}, {"id": 396, "type": "call_expression", "text": "noexcept(false)", "parent": 393, "children": [397, 398], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 55}}, {"id": 397, "type": "identifier", "text": "noexcept", "parent": 396, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 48}}, {"id": 398, "type": "argument_list", "text": "(false)", "parent": 396, "children": [399], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 55}}, {"id": 399, "type": "identifier", "text": "false", "parent": 398, "children": [], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 54}}, {"id": 400, "type": "primitive_type", "text": "void", "parent": 378, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 5}}, {"id": 401, "type": "function_declarator", "text": "setInvalidError() noexcept(false)", "parent": 378, "children": [402, 403, 404], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 39}}, {"id": 402, "type": "identifier", "text": "setInvalidError", "parent": 401, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 21}}, {"id": 403, "type": "parameter_list", "text": "()", "parent": 401, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 23}}, {"id": 404, "type": "call_expression", "text": "noexcept(false)", "parent": 401, "children": [405, 406], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 39}}, {"id": 405, "type": "identifier", "text": "noexcept", "parent": 404, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 32}}, {"id": 406, "type": "argument_list", "text": "(false)", "parent": 404, "children": [407], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 39}}, {"id": 407, "type": "identifier", "text": "false", "parent": 406, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 38}}, {"id": 408, "type": "ERROR", "text": "std::shared_ptr<AppProcess>", "parent": 376, "children": [409, 410, 411, 412, 413], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 28}}, {"id": 409, "type": "identifier", "text": "std", "parent": 408, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 4}}, {"id": 410, "type": "identifier", "text": "shared_ptr", "parent": 408, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 16}}, {"id": 411, "type": "<", "text": "<", "parent": 408, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 17}}, {"id": 412, "type": "identifier", "text": "AppProcess", "parent": 408, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 27}}, {"id": 413, "type": ">", "text": ">", "parent": 408, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 28}}, {"id": 414, "type": "function_declarator", "text": "allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName)", "parent": 376, "children": [415, 416], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 122}}, {"id": 415, "type": "identifier", "text": "allocProcess", "parent": 414, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 41}}, {"id": 416, "type": "parameter_list", "text": "(bool monitorProcess, const std::string &dockerImage, const std::string &appName)", "parent": 414, "children": [417, 420, 425], "start_point": {"row": 77, "column": 41}, "end_point": {"row": 77, "column": 122}}, {"id": 417, "type": "parameter_declaration", "text": "bool monitorProcess", "parent": 416, "children": [418, 419], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 61}}, {"id": 418, "type": "primitive_type", "text": "bool", "parent": 417, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 46}}, {"id": 419, "type": "identifier", "text": "monitorProcess", "parent": 417, "children": [], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 61}}, {"id": 420, "type": "parameter_declaration", "text": "const std::string &dockerImage", "parent": 416, "children": [421, 422, 424], "start_point": {"row": 77, "column": 63}, "end_point": {"row": 77, "column": 93}}, {"id": 421, "type": "type_identifier", "text": "std", "parent": 420, "children": [], "start_point": {"row": 77, "column": 69}, "end_point": {"row": 77, "column": 72}}, {"id": 422, "type": "ERROR", "text": "::string &", "parent": 420, "children": [423], "start_point": {"row": 77, "column": 72}, "end_point": {"row": 77, "column": 82}}, {"id": 423, "type": "identifier", "text": "string", "parent": 422, "children": [], "start_point": {"row": 77, "column": 74}, "end_point": {"row": 77, "column": 80}}, {"id": 424, "type": "identifier", "text": "dockerImage", "parent": 420, "children": [], "start_point": {"row": 77, "column": 82}, "end_point": {"row": 77, "column": 93}}, {"id": 425, "type": "parameter_declaration", "text": "const std::string &appName", "parent": 416, "children": [426, 427, 429], "start_point": {"row": 77, "column": 95}, "end_point": {"row": 77, "column": 121}}, {"id": 426, "type": "type_identifier", "text": "std", "parent": 425, "children": [], "start_point": {"row": 77, "column": 101}, "end_point": {"row": 77, "column": 104}}, {"id": 427, "type": "ERROR", "text": "::string &", "parent": 425, "children": [428], "start_point": {"row": 77, "column": 104}, "end_point": {"row": 77, "column": 114}}, {"id": 428, "type": "identifier", "text": "string", "parent": 427, "children": [], "start_point": {"row": 77, "column": 106}, "end_point": {"row": 77, "column": 112}}, {"id": 429, "type": "identifier", "text": "appName", "parent": 425, "children": [], "start_point": {"row": 77, "column": 114}, "end_point": {"row": 77, "column": 121}}, {"id": 430, "type": "declaration", "text": "void spawn(int timerId);", "parent": 86, "children": [431, 432], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 25}}, {"id": 431, "type": "primitive_type", "text": "void", "parent": 430, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 5}}, {"id": 432, "type": "function_declarator", "text": "spawn(int timerId)", "parent": 430, "children": [433, 434], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 24}}, {"id": 433, "type": "identifier", "text": "spawn", "parent": 432, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 11}}, {"id": 434, "type": "parameter_list", "text": "(int timerId)", "parent": 432, "children": [435], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 24}}, {"id": 435, "type": "parameter_declaration", "text": "int timerId", "parent": 434, "children": [436, 437], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 23}}, {"id": 436, "type": "primitive_type", "text": "int", "parent": 435, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 15}}, {"id": 437, "type": "identifier", "text": "timerId", "parent": 435, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 23}}, {"id": 438, "type": "declaration", "text": "std::shared_ptr<int> refresh(void *ptree = nullptr);", "parent": 86, "children": [439, 440, 445], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 53}}, {"id": 439, "type": "type_identifier", "text": "std", "parent": 438, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 440, "type": "ERROR", "text": "::shared_ptr<int>", "parent": 438, "children": [441, 442, 443, 444], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 21}}, {"id": 441, "type": "identifier", "text": "shared_ptr", "parent": 440, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 16}}, {"id": 442, "type": "<", "text": "<", "parent": 440, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 17}}, {"id": 443, "type": "primitive_type", "text": "int", "parent": 440, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 20}}, {"id": 444, "type": ">", "text": ">", "parent": 440, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 21}}, {"id": 445, "type": "init_declarator", "text": "refresh(void *ptree = nullptr", "parent": 438, "children": [446, 454, 455], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 51}}, {"id": 446, "type": "function_declarator", "text": "refresh(void *ptree", "parent": 445, "children": [447, 448], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 41}}, {"id": 447, "type": "identifier", "text": "refresh", "parent": 446, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 29}}, {"id": 448, "type": "parameter_list", "text": "(void *ptree", "parent": 446, "children": [449], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 41}}, {"id": 449, "type": "parameter_declaration", "text": "void *ptree", "parent": 448, "children": [450, 451], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 41}}, {"id": 450, "type": "primitive_type", "text": "void", "parent": 449, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 34}}, {"id": 451, "type": "pointer_declarator", "text": "*ptree", "parent": 449, "children": [452, 453], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 41}}, {"id": 452, "type": "*", "text": "*", "parent": 451, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 36}}, {"id": 453, "type": "identifier", "text": "ptree", "parent": 451, "children": [], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 41}}, {"id": 454, "type": "=", "text": "=", "parent": 445, "children": [], "start_point": {"row": 79, "column": 42}, "end_point": {"row": 79, "column": 43}}, {"id": 455, "type": "null", "text": "nullptr", "parent": 445, "children": [456], "start_point": {"row": 79, "column": 44}, "end_point": {"row": 79, "column": 51}}, {"id": 456, "type": "nullptr", "text": "nullptr", "parent": 455, "children": [], "start_point": {"row": 79, "column": 44}, "end_point": {"row": 79, "column": 51}}, {"id": 457, "type": "declaration", "text": "void healthCheck();", "parent": 86, "children": [458, 459], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 20}}, {"id": 458, "type": "primitive_type", "text": "void", "parent": 457, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 459, "type": "function_declarator", "text": "healthCheck()", "parent": 457, "children": [460, 461], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 19}}, {"id": 460, "type": "identifier", "text": "healthCheck", "parent": 459, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 17}}, {"id": 461, "type": "parameter_list", "text": "()", "parent": 459, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 19}}, {"id": 462, "type": "declaration", "text": "std::string runApp(int timeoutSeconds) noexcept(false);\n\tconst std::string getExecUser() const;\n\tconst std::string &getCmdLine() const;\n\tstd::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n\tmutable std::recursive_mutex m_appMutex;", "parent": 86, "children": [463, 464, 490, 491, 501], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 88, "column": 41}}, {"id": 463, "type": "type_identifier", "text": "std", "parent": 462, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 4}}, {"id": 464, "type": "ERROR", "text": "::string runApp(int timeoutSeconds) noexcept(false);\n\tconst std::string getExecUser() const;\n\tconst std::string &getCmdLine() const;\n\tstd::map<std::", "parent": 462, "children": [465, 466, 476, 477, 478, 481, 482, 483, 486, 487, 488, 489], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 85, "column": 15}}, {"id": 465, "type": "identifier", "text": "string", "parent": 464, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 12}}, {"id": 466, "type": "function_declarator", "text": "runApp(int timeoutSeconds) noexcept(false)", "parent": 464, "children": [467, 468, 472], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 55}}, {"id": 467, "type": "identifier", "text": "runApp", "parent": 466, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 19}}, {"id": 468, "type": "parameter_list", "text": "(int timeoutSeconds)", "parent": 466, "children": [469], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 39}}, {"id": 469, "type": "parameter_declaration", "text": "int timeoutSeconds", "parent": 468, "children": [470, 471], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 38}}, {"id": 470, "type": "primitive_type", "text": "int", "parent": 469, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 23}}, {"id": 471, "type": "identifier", "text": "timeoutSeconds", "parent": 469, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 38}}, {"id": 472, "type": "call_expression", "text": "noexcept(false)", "parent": 466, "children": [473, 474], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 55}}, {"id": 473, "type": "identifier", "text": "noexcept", "parent": 472, "children": [], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 48}}, {"id": 474, "type": "argument_list", "text": "(false)", "parent": 472, "children": [475], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 55}}, {"id": 475, "type": "identifier", "text": "false", "parent": 474, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 54}}, {"id": 476, "type": "identifier", "text": "std", "parent": 464, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 10}}, {"id": 477, "type": "identifier", "text": "string", "parent": 464, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 18}}, {"id": 478, "type": "function_declarator", "text": "getExecUser() const", "parent": 464, "children": [479, 480], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 38}}, {"id": 479, "type": "identifier", "text": "getExecUser", "parent": 478, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 30}}, {"id": 480, "type": "parameter_list", "text": "()", "parent": 478, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 32}}, {"id": 481, "type": "identifier", "text": "std", "parent": 464, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 10}}, {"id": 482, "type": "identifier", "text": "string", "parent": 464, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 18}}, {"id": 483, "type": "function_declarator", "text": "getCmdLine() const", "parent": 464, "children": [484, 485], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 38}}, {"id": 484, "type": "identifier", "text": "getCmdLine", "parent": 483, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 30}}, {"id": 485, "type": "parameter_list", "text": "()", "parent": 483, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 32}}, {"id": 486, "type": "identifier", "text": "std", "parent": 464, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 4}}, {"id": 487, "type": "identifier", "text": "map", "parent": 464, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 9}}, {"id": 488, "type": "<", "text": "<", "parent": 464, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 489, "type": "identifier", "text": "std", "parent": 464, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 13}}, {"id": 490, "type": "identifier", "text": "string", "parent": 462, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 21}}, {"id": 491, "type": "ERROR", "text": "std::string> getMergedEnvMap() const;\n\nprotected:\n\tmutable std::recursive_mutex", "parent": 462, "children": [492, 493, 494, 495, 498, 499, 500], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 88, "column": 29}}, {"id": 492, "type": "identifier", "text": "std", "parent": 491, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 26}}, {"id": 493, "type": "identifier", "text": "string", "parent": 491, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 34}}, {"id": 494, "type": ">", "text": ">", "parent": 491, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 35}}, {"id": 495, "type": "function_declarator", "text": "getMergedEnvMap() const", "parent": 491, "children": [496, 497], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 59}}, {"id": 496, "type": "identifier", "text": "getMergedEnvMap", "parent": 495, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 51}}, {"id": 497, "type": "parameter_list", "text": "()", "parent": 495, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 53}}, {"id": 498, "type": "identifier", "text": "mutable", "parent": 491, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 8}}, {"id": 499, "type": "identifier", "text": "std", "parent": 491, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 12}}, {"id": 500, "type": "identifier", "text": "recursive_mutex", "parent": 491, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 29}}, {"id": 501, "type": "identifier", "text": "m_appMutex", "parent": 462, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 40}}, {"id": 502, "type": "declaration", "text": "std::shared_ptr<AppTimer> m_timer;", "parent": 86, "children": [503, 504, 509], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 35}}, {"id": 503, "type": "type_identifier", "text": "std", "parent": 502, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 4}}, {"id": 504, "type": "ERROR", "text": "::shared_ptr<AppTimer>", "parent": 502, "children": [505, 506, 507, 508], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 26}}, {"id": 505, "type": "identifier", "text": "shared_ptr", "parent": 504, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 16}}, {"id": 506, "type": "<", "text": "<", "parent": 504, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 17}}, {"id": 507, "type": "identifier", "text": "AppTimer", "parent": 504, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 25}}, {"id": 508, "type": ">", "text": ">", "parent": 504, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 26}}, {"id": 509, "type": "identifier", "text": "m_timer", "parent": 502, "children": [], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 34}}, {"id": 510, "type": "declaration", "text": "static ACE_Time_Value m_waitTimeout;", "parent": 86, "children": [511, 512], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 37}}, {"id": 511, "type": "type_identifier", "text": "ACE_Time_Value", "parent": 510, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 22}}, {"id": 512, "type": "identifier", "text": "m_waitTimeout", "parent": 510, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 36}}, {"id": 513, "type": "declaration", "text": "STATUS m_status;", "parent": 86, "children": [514, 515], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 17}}, {"id": 514, "type": "type_identifier", "text": "STATUS", "parent": 513, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 7}}, {"id": 515, "type": "identifier", "text": "m_status", "parent": 513, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 16}}, {"id": 516, "type": "declaration", "text": "std::string m_name;", "parent": 86, "children": [517, 518, 520], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 20}}, {"id": 517, "type": "type_identifier", "text": "std", "parent": 516, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 4}}, {"id": 518, "type": "ERROR", "text": "::string", "parent": 516, "children": [519], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 12}}, {"id": 519, "type": "identifier", "text": "string", "parent": 518, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 12}}, {"id": 520, "type": "identifier", "text": "m_name", "parent": 516, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 19}}, {"id": 521, "type": "declaration", "text": "std::string m_commandLine;", "parent": 86, "children": [522, 523, 525], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 27}}, {"id": 522, "type": "type_identifier", "text": "std", "parent": 521, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 4}}, {"id": 523, "type": "ERROR", "text": "::string", "parent": 521, "children": [524], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 12}}, {"id": 524, "type": "identifier", "text": "string", "parent": 523, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 12}}, {"id": 525, "type": "identifier", "text": "m_commandLine", "parent": 521, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 26}}, {"id": 526, "type": "declaration", "text": "std::string m_description;", "parent": 86, "children": [527, 528, 530], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 27}}, {"id": 527, "type": "type_identifier", "text": "std", "parent": 526, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 4}}, {"id": 528, "type": "ERROR", "text": "::string", "parent": 526, "children": [529], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 12}}, {"id": 529, "type": "identifier", "text": "string", "parent": 528, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 12}}, {"id": 530, "type": "identifier", "text": "m_description", "parent": 526, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 26}}, {"id": 531, "type": "declaration", "text": "std::shared_ptr<User> m_owner;", "parent": 86, "children": [532, 533, 538], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 31}}, {"id": 532, "type": "type_identifier", "text": "std", "parent": 531, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 4}}, {"id": 533, "type": "ERROR", "text": "::shared_ptr<User>", "parent": 531, "children": [534, 535, 536, 537], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 22}}, {"id": 534, "type": "identifier", "text": "shared_ptr", "parent": 533, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 16}}, {"id": 535, "type": "<", "text": "<", "parent": 533, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 17}}, {"id": 536, "type": "identifier", "text": "User", "parent": 533, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 21}}, {"id": 537, "type": ">", "text": ">", "parent": 533, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 22}}, {"id": 538, "type": "identifier", "text": "m_owner", "parent": 531, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 30}}, {"id": 539, "type": "declaration", "text": "int m_ownerPermission;", "parent": 86, "children": [540, 541], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 23}}, {"id": 540, "type": "primitive_type", "text": "int", "parent": 539, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 4}}, {"id": 541, "type": "identifier", "text": "m_ownerPermission", "parent": 539, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 22}}, {"id": 542, "type": "declaration", "text": "std::string m_workdir;", "parent": 86, "children": [543, 544, 546], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 23}}, {"id": 543, "type": "type_identifier", "text": "std", "parent": 542, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 4}}, {"id": 544, "type": "ERROR", "text": "::string", "parent": 542, "children": [545], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 12}}, {"id": 545, "type": "identifier", "text": "string", "parent": 544, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 12}}, {"id": 546, "type": "identifier", "text": "m_workdir", "parent": 542, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 22}}, {"id": 547, "type": "declaration", "text": "std::string m_stdoutFile;", "parent": 86, "children": [548, 549, 551], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 26}}, {"id": 548, "type": "type_identifier", "text": "std", "parent": 547, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 4}}, {"id": 549, "type": "ERROR", "text": "::string", "parent": 547, "children": [550], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 12}}, {"id": 550, "type": "identifier", "text": "string", "parent": 549, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 12}}, {"id": 551, "type": "identifier", "text": "m_stdoutFile", "parent": 547, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 25}}, {"id": 552, "type": "declaration", "text": "web::json::value m_metadata;", "parent": 86, "children": [553, 554, 557], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 29}}, {"id": 553, "type": "type_identifier", "text": "web", "parent": 552, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 4}}, {"id": 554, "type": "ERROR", "text": "::json::value", "parent": 552, "children": [555, 556], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 17}}, {"id": 555, "type": "identifier", "text": "json", "parent": 554, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 10}}, {"id": 556, "type": "identifier", "text": "value", "parent": 554, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 17}}, {"id": 557, "type": "identifier", "text": "m_metadata", "parent": 552, "children": [], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 28}}, {"id": 558, "type": "declaration", "text": "bool m_shellApp;", "parent": 86, "children": [559, 560], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 17}}, {"id": 559, "type": "primitive_type", "text": "bool", "parent": 558, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 5}}, {"id": 560, "type": "identifier", "text": "m_shellApp", "parent": 558, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 16}}, {"id": 561, "type": "declaration", "text": "int m_stdoutCacheNum;", "parent": 86, "children": [562, 563], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 22}}, {"id": 562, "type": "primitive_type", "text": "int", "parent": 561, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 4}}, {"id": 563, "type": "identifier", "text": "m_stdoutCacheNum", "parent": 561, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 21}}, {"id": 564, "type": "declaration", "text": "std::shared_ptr<ShellAppFileGen> m_shellAppFile;", "parent": 86, "children": [565, 566, 571], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 49}}, {"id": 565, "type": "type_identifier", "text": "std", "parent": 564, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 4}}, {"id": 566, "type": "ERROR", "text": "::shared_ptr<ShellAppFileGen>", "parent": 564, "children": [567, 568, 569, 570], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 33}}, {"id": 567, "type": "identifier", "text": "shared_ptr", "parent": 566, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 16}}, {"id": 568, "type": "<", "text": "<", "parent": 566, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 17}}, {"id": 569, "type": "identifier", "text": "ShellAppFileGen", "parent": 566, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 32}}, {"id": 570, "type": ">", "text": ">", "parent": 566, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 33}}, {"id": 571, "type": "identifier", "text": "m_shellAppFile", "parent": 564, "children": [], "start_point": {"row": 104, "column": 34}, "end_point": {"row": 104, "column": 48}}, {"id": 572, "type": "declaration", "text": "std::shared_ptr<LogFileQueue> m_stdoutFileQueue;", "parent": 86, "children": [573, 574, 579], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 49}}, {"id": 573, "type": "type_identifier", "text": "std", "parent": 572, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 4}}, {"id": 574, "type": "ERROR", "text": "::shared_ptr<LogFileQueue>", "parent": 572, "children": [575, 576, 577, 578], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 30}}, {"id": 575, "type": "identifier", "text": "shared_ptr", "parent": 574, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 16}}, {"id": 576, "type": "<", "text": "<", "parent": 574, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 17}}, {"id": 577, "type": "identifier", "text": "LogFileQueue", "parent": 574, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 29}}, {"id": 578, "type": ">", "text": ">", "parent": 574, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 30}}, {"id": 579, "type": "identifier", "text": "m_stdoutFileQueue", "parent": 572, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 48}}, {"id": 580, "type": "declaration", "text": "std::shared_ptr<int> m_return;", "parent": 86, "children": [581, 582, 587], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 31}}, {"id": 581, "type": "type_identifier", "text": "std", "parent": 580, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 4}}, {"id": 582, "type": "ERROR", "text": "::shared_ptr<int>", "parent": 580, "children": [583, 584, 585, 586], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 21}}, {"id": 583, "type": "identifier", "text": "shared_ptr", "parent": 582, "children": [], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 16}}, {"id": 584, "type": "<", "text": "<", "parent": 582, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 17}}, {"id": 585, "type": "primitive_type", "text": "int", "parent": 582, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 20}}, {"id": 586, "type": ">", "text": ">", "parent": 582, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 21}}, {"id": 587, "type": "identifier", "text": "m_return", "parent": 580, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 30}}, {"id": 588, "type": "declaration", "text": "std::string m_posixTimeZone;", "parent": 86, "children": [589, 590, 592], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 29}}, {"id": 589, "type": "type_identifier", "text": "std", "parent": 588, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 4}}, {"id": 590, "type": "ERROR", "text": "::string", "parent": 588, "children": [591], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 12}}, {"id": 591, "type": "identifier", "text": "string", "parent": 590, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 12}}, {"id": 592, "type": "identifier", "text": "m_posixTimeZone", "parent": 588, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 28}}, {"id": 593, "type": "declaration", "text": "std::string m_startTime;", "parent": 86, "children": [594, 595, 597], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 25}}, {"id": 594, "type": "type_identifier", "text": "std", "parent": 593, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 4}}, {"id": 595, "type": "ERROR", "text": "::string", "parent": 593, "children": [596], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 12}}, {"id": 596, "type": "identifier", "text": "string", "parent": 595, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 12}}, {"id": 597, "type": "identifier", "text": "m_startTime", "parent": 593, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 24}}, {"id": 598, "type": "declaration", "text": "std::string m_endTime;", "parent": 86, "children": [599, 600, 602], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 23}}, {"id": 599, "type": "type_identifier", "text": "std", "parent": 598, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 4}}, {"id": 600, "type": "ERROR", "text": "::string", "parent": 598, "children": [601], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 12}}, {"id": 601, "type": "identifier", "text": "string", "parent": 600, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 12}}, {"id": 602, "type": "identifier", "text": "m_endTime", "parent": 598, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 22}}, {"id": 603, "type": "declaration", "text": "std::chrono::system_clock::time_point m_startTimeValue;", "parent": 86, "children": [604, 605, 609], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 56}}, {"id": 604, "type": "type_identifier", "text": "std", "parent": 603, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 4}}, {"id": 605, "type": "ERROR", "text": "::chrono::system_clock::time_point", "parent": 603, "children": [606, 607, 608], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 38}}, {"id": 606, "type": "identifier", "text": "chrono", "parent": 605, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 12}}, {"id": 607, "type": "identifier", "text": "system_clock", "parent": 605, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 26}}, {"id": 608, "type": "identifier", "text": "time_point", "parent": 605, "children": [], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 38}}, {"id": 609, "type": "identifier", "text": "m_startTimeValue", "parent": 603, "children": [], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 55}}, {"id": 610, "type": "declaration", "text": "std::chrono::system_clock::time_point m_endTimeValue;", "parent": 86, "children": [611, 612, 616], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 54}}, {"id": 611, "type": "type_identifier", "text": "std", "parent": 610, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 4}}, {"id": 612, "type": "ERROR", "text": "::chrono::system_clock::time_point", "parent": 610, "children": [613, 614, 615], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 38}}, {"id": 613, "type": "identifier", "text": "chrono", "parent": 612, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 12}}, {"id": 614, "type": "identifier", "text": "system_clock", "parent": 612, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 26}}, {"id": 615, "type": "identifier", "text": "time_point", "parent": 612, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 38}}, {"id": 616, "type": "identifier", "text": "m_endTimeValue", "parent": 610, "children": [], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 53}}, {"id": 617, "type": "declaration", "text": "std::string m_startIntervalValue;", "parent": 86, "children": [618, 619, 621], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 34}}, {"id": 618, "type": "type_identifier", "text": "std", "parent": 617, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 4}}, {"id": 619, "type": "ERROR", "text": "::string", "parent": 617, "children": [620], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 12}}, {"id": 620, "type": "identifier", "text": "string", "parent": 619, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 12}}, {"id": 621, "type": "identifier", "text": "m_startIntervalValue", "parent": 617, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 33}}, {"id": 622, "type": "declaration", "text": "int m_startInterval;", "parent": 86, "children": [623, 624], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 21}}, {"id": 623, "type": "primitive_type", "text": "int", "parent": 622, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 4}}, {"id": 624, "type": "identifier", "text": "m_startInterval", "parent": 622, "children": [], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 20}}, {"id": 625, "type": "declaration", "text": "std::string m_bufferTimeValue;", "parent": 86, "children": [626, 627, 629], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 31}}, {"id": 626, "type": "type_identifier", "text": "std", "parent": 625, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 4}}, {"id": 627, "type": "ERROR", "text": "::string", "parent": 625, "children": [628], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 12}}, {"id": 628, "type": "identifier", "text": "string", "parent": 627, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 12}}, {"id": 629, "type": "identifier", "text": "m_bufferTimeValue", "parent": 625, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 30}}, {"id": 630, "type": "declaration", "text": "int m_bufferTime;", "parent": 86, "children": [631, 632], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 18}}, {"id": 631, "type": "primitive_type", "text": "int", "parent": 630, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 4}}, {"id": 632, "type": "identifier", "text": "m_bufferTime", "parent": 630, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 17}}, {"id": 633, "type": "declaration", "text": "bool m_startIntervalValueIsCronExpr;", "parent": 86, "children": [634, 635], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 37}}, {"id": 634, "type": "primitive_type", "text": "bool", "parent": 633, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 5}}, {"id": 635, "type": "identifier", "text": "m_startIntervalValueIsCronExpr", "parent": 633, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 36}}, {"id": 636, "type": "declaration", "text": "std::shared_ptr<AppProcess> m_bufferProcess;", "parent": 86, "children": [637, 638, 643], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 45}}, {"id": 637, "type": "type_identifier", "text": "std", "parent": 636, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 4}}, {"id": 638, "type": "ERROR", "text": "::shared_ptr<AppProcess>", "parent": 636, "children": [639, 640, 641, 642], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 28}}, {"id": 639, "type": "identifier", "text": "shared_ptr", "parent": 638, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 16}}, {"id": 640, "type": "<", "text": "<", "parent": 638, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 17}}, {"id": 641, "type": "identifier", "text": "AppProcess", "parent": 638, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 27}}, {"id": 642, "type": ">", "text": ">", "parent": 638, "children": [], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 28}}, {"id": 643, "type": "identifier", "text": "m_bufferProcess", "parent": 636, "children": [], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 44}}, {"id": 644, "type": "declaration", "text": "std::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;", "parent": 86, "children": [645, 646, 654], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 73}}, {"id": 645, "type": "type_identifier", "text": "std", "parent": 644, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 4}}, {"id": 646, "type": "ERROR", "text": "::shared_ptr<std::chrono::system_clock::time_point>", "parent": 644, "children": [647, 648, 649, 650, 651, 652, 653], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 55}}, {"id": 647, "type": "identifier", "text": "shared_ptr", "parent": 646, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 16}}, {"id": 648, "type": "<", "text": "<", "parent": 646, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 17}}, {"id": 649, "type": "identifier", "text": "std", "parent": 646, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 20}}, {"id": 650, "type": "identifier", "text": "chrono", "parent": 646, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 28}}, {"id": 651, "type": "identifier", "text": "system_clock", "parent": 646, "children": [], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 42}}, {"id": 652, "type": "identifier", "text": "time_point", "parent": 646, "children": [], "start_point": {"row": 121, "column": 44}, "end_point": {"row": 121, "column": 54}}, {"id": 653, "type": ">", "text": ">", "parent": 646, "children": [], "start_point": {"row": 121, "column": 54}, "end_point": {"row": 121, "column": 55}}, {"id": 654, "type": "identifier", "text": "m_nextLaunchTime", "parent": 644, "children": [], "start_point": {"row": 121, "column": 56}, "end_point": {"row": 121, "column": 72}}, {"id": 655, "type": "declaration", "text": "int m_nextStartTimerId;", "parent": 86, "children": [656, 657], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 24}}, {"id": 656, "type": "primitive_type", "text": "int", "parent": 655, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 4}}, {"id": 657, "type": "identifier", "text": "m_nextStartTimerId", "parent": 655, "children": [], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 23}}, {"id": 658, "type": "declaration", "text": "std::chrono::system_clock::time_point m_regTime;", "parent": 86, "children": [659, 660, 664], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 49}}, {"id": 659, "type": "type_identifier", "text": "std", "parent": 658, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 4}}, {"id": 660, "type": "ERROR", "text": "::chrono::system_clock::time_point", "parent": 658, "children": [661, 662, 663], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 38}}, {"id": 661, "type": "identifier", "text": "chrono", "parent": 660, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 12}}, {"id": 662, "type": "identifier", "text": "system_clock", "parent": 660, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 26}}, {"id": 663, "type": "identifier", "text": "time_point", "parent": 660, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 38}}, {"id": 664, "type": "identifier", "text": "m_regTime", "parent": 658, "children": [], "start_point": {"row": 124, "column": 39}, "end_point": {"row": 124, "column": 48}}, {"id": 665, "type": "declaration", "text": "bool m_health;", "parent": 86, "children": [666, 667], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 15}}, {"id": 666, "type": "primitive_type", "text": "bool", "parent": 665, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 5}}, {"id": 667, "type": "identifier", "text": "m_health", "parent": 665, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 14}}, {"id": 668, "type": "declaration", "text": "std::string m_healthCheckCmd;", "parent": 86, "children": [669, 670, 672], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 30}}, {"id": 669, "type": "type_identifier", "text": "std", "parent": 668, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 4}}, {"id": 670, "type": "ERROR", "text": "::string", "parent": 668, "children": [671], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 12}}, {"id": 671, "type": "identifier", "text": "string", "parent": 670, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 12}}, {"id": 672, "type": "identifier", "text": "m_healthCheckCmd", "parent": 668, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 29}}, {"id": 673, "type": "declaration", "text": "const std::string m_appId;", "parent": 86, "children": [674, 675, 677], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 27}}, {"id": 674, "type": "type_identifier", "text": "std", "parent": 673, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 10}}, {"id": 675, "type": "ERROR", "text": "::string", "parent": 673, "children": [676], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 18}}, {"id": 676, "type": "identifier", "text": "string", "parent": 675, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 18}}, {"id": 677, "type": "identifier", "text": "m_appId", "parent": 673, "children": [], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 26}}, {"id": 678, "type": "declaration", "text": "unsigned int m_version;", "parent": 86, "children": [679, 682], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 24}}, {"id": 679, "type": "sized_type_specifier", "text": "unsigned int", "parent": 678, "children": [680, 681], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 13}}, {"id": 680, "type": "unsigned", "text": "unsigned", "parent": 679, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 9}}, {"id": 681, "type": "primitive_type", "text": "int", "parent": 679, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 13}}, {"id": 682, "type": "identifier", "text": "m_version", "parent": 678, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 23}}, {"id": 683, "type": "declaration", "text": "std::shared_ptr<AppProcess> m_process;", "parent": 86, "children": [684, 685, 690], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 39}}, {"id": 684, "type": "type_identifier", "text": "std", "parent": 683, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 4}}, {"id": 685, "type": "ERROR", "text": "::shared_ptr<AppProcess>", "parent": 683, "children": [686, 687, 688, 689], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 28}}, {"id": 686, "type": "identifier", "text": "shared_ptr", "parent": 685, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 16}}, {"id": 687, "type": "<", "text": "<", "parent": 685, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 688, "type": "identifier", "text": "AppProcess", "parent": 685, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 27}}, {"id": 689, "type": ">", "text": ">", "parent": 685, "children": [], "start_point": {"row": 129, "column": 27}, "end_point": {"row": 129, "column": 28}}, {"id": 690, "type": "identifier", "text": "m_process", "parent": 683, "children": [], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 38}}, {"id": 691, "type": "declaration", "text": "pid_t m_pid;", "parent": 86, "children": [692, 693], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 13}}, {"id": 692, "type": "type_identifier", "text": "pid_t", "parent": 691, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 6}}, {"id": 693, "type": "identifier", "text": "m_pid", "parent": 691, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 12}}, {"id": 694, "type": "declaration", "text": "int m_suicideTimerId;", "parent": 86, "children": [695, 696], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 22}}, {"id": 695, "type": "primitive_type", "text": "int", "parent": 694, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 4}}, {"id": 696, "type": "identifier", "text": "m_suicideTimerId", "parent": 694, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 21}}, {"id": 697, "type": "declaration", "text": "std::shared_ptr<DailyLimitation> m_dailyLimit;", "parent": 86, "children": [698, 699, 704], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 47}}, {"id": 698, "type": "type_identifier", "text": "std", "parent": 697, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 4}}, {"id": 699, "type": "ERROR", "text": "::shared_ptr<DailyLimitation>", "parent": 697, "children": [700, 701, 702, 703], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 33}}, {"id": 700, "type": "identifier", "text": "shared_ptr", "parent": 699, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 16}}, {"id": 701, "type": "<", "text": "<", "parent": 699, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 17}}, {"id": 702, "type": "identifier", "text": "DailyLimitation", "parent": 699, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 32}}, {"id": 703, "type": ">", "text": ">", "parent": 699, "children": [], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 33}}, {"id": 704, "type": "identifier", "text": "m_dailyLimit", "parent": 697, "children": [], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 46}}, {"id": 705, "type": "declaration", "text": "std::shared_ptr<ResourceLimitation> m_resourceLimit;", "parent": 86, "children": [706, 707, 712], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 53}}, {"id": 706, "type": "type_identifier", "text": "std", "parent": 705, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 4}}, {"id": 707, "type": "ERROR", "text": "::shared_ptr<ResourceLimitation>", "parent": 705, "children": [708, 709, 710, 711], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 36}}, {"id": 708, "type": "identifier", "text": "shared_ptr", "parent": 707, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 16}}, {"id": 709, "type": "<", "text": "<", "parent": 707, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 710, "type": "identifier", "text": "ResourceLimitation", "parent": 707, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 35}}, {"id": 711, "type": ">", "text": ">", "parent": 707, "children": [], "start_point": {"row": 133, "column": 35}, "end_point": {"row": 133, "column": 36}}, {"id": 712, "type": "identifier", "text": "m_resourceLimit", "parent": 705, "children": [], "start_point": {"row": 133, "column": 37}, "end_point": {"row": 133, "column": 52}}, {"id": 713, "type": "declaration", "text": "std::map<std::string, std::string> m_envMap;", "parent": 86, "children": [714, 715, 719, 720, 724], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 45}}, {"id": 714, "type": "type_identifier", "text": "std", "parent": 713, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 4}}, {"id": 715, "type": "ERROR", "text": "::map<std::", "parent": 713, "children": [716, 717, 718], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 15}}, {"id": 716, "type": "identifier", "text": "map", "parent": 715, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 9}}, {"id": 717, "type": "<", "text": "<", "parent": 715, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 10}}, {"id": 718, "type": "identifier", "text": "std", "parent": 715, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 13}}, {"id": 719, "type": "identifier", "text": "string", "parent": 713, "children": [], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 21}}, {"id": 720, "type": "ERROR", "text": "std::string>", "parent": 713, "children": [721, 722, 723], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 35}}, {"id": 721, "type": "identifier", "text": "std", "parent": 720, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 26}}, {"id": 722, "type": "identifier", "text": "string", "parent": 720, "children": [], "start_point": {"row": 134, "column": 28}, "end_point": {"row": 134, "column": 34}}, {"id": 723, "type": ">", "text": ">", "parent": 720, "children": [], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 35}}, {"id": 724, "type": "identifier", "text": "m_envMap", "parent": 713, "children": [], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 44}}, {"id": 725, "type": "declaration", "text": "std::map<std::string, std::string> m_secEnvMap;", "parent": 86, "children": [726, 727, 731, 732, 736], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 48}}, {"id": 726, "type": "type_identifier", "text": "std", "parent": 725, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 4}}, {"id": 727, "type": "ERROR", "text": "::map<std::", "parent": 725, "children": [728, 729, 730], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 15}}, {"id": 728, "type": "identifier", "text": "map", "parent": 727, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 9}}, {"id": 729, "type": "<", "text": "<", "parent": 727, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 10}}, {"id": 730, "type": "identifier", "text": "std", "parent": 727, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 13}}, {"id": 731, "type": "identifier", "text": "string", "parent": 725, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 21}}, {"id": 732, "type": "ERROR", "text": "std::string>", "parent": 725, "children": [733, 734, 735], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 35}}, {"id": 733, "type": "identifier", "text": "std", "parent": 732, "children": [], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 26}}, {"id": 734, "type": "identifier", "text": "string", "parent": 732, "children": [], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 135, "column": 34}}, {"id": 735, "type": ">", "text": ">", "parent": 732, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 35}}, {"id": 736, "type": "identifier", "text": "m_secEnvMap", "parent": 725, "children": [], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 47}}, {"id": 737, "type": "declaration", "text": "std::string m_dockerImage;", "parent": 86, "children": [738, 739, 741], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 27}}, {"id": 738, "type": "type_identifier", "text": "std", "parent": 737, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 4}}, {"id": 739, "type": "ERROR", "text": "::string", "parent": 737, "children": [740], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 12}}, {"id": 740, "type": "identifier", "text": "string", "parent": 739, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 12}}, {"id": 741, "type": "identifier", "text": "m_dockerImage", "parent": 737, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 26}}, {"id": 742, "type": "declaration", "text": "std::chrono::system_clock::time_point m_procStartTime;", "parent": 86, "children": [743, 744, 748], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 55}}, {"id": 743, "type": "type_identifier", "text": "std", "parent": 742, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 4}}, {"id": 744, "type": "ERROR", "text": "::chrono::system_clock::time_point", "parent": 742, "children": [745, 746, 747], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 38}}, {"id": 745, "type": "identifier", "text": "chrono", "parent": 744, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 12}}, {"id": 746, "type": "identifier", "text": "system_clock", "parent": 744, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 26}}, {"id": 747, "type": "identifier", "text": "time_point", "parent": 744, "children": [], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 38}}, {"id": 748, "type": "identifier", "text": "m_procStartTime", "parent": 742, "children": [], "start_point": {"row": 137, "column": 39}, "end_point": {"row": 137, "column": 54}}, {"id": 749, "type": "declaration", "text": "std::chrono::system_clock::time_point m_procExitTime;", "parent": 86, "children": [750, 751, 755], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 54}}, {"id": 750, "type": "type_identifier", "text": "std", "parent": 749, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 4}}, {"id": 751, "type": "ERROR", "text": "::chrono::system_clock::time_point", "parent": 749, "children": [752, 753, 754], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 38}}, {"id": 752, "type": "identifier", "text": "chrono", "parent": 751, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 12}}, {"id": 753, "type": "identifier", "text": "system_clock", "parent": 751, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 26}}, {"id": 754, "type": "identifier", "text": "time_point", "parent": 751, "children": [], "start_point": {"row": 138, "column": 28}, "end_point": {"row": 138, "column": 38}}, {"id": 755, "type": "identifier", "text": "m_procExitTime", "parent": 749, "children": [], "start_point": {"row": 138, "column": 39}, "end_point": {"row": 138, "column": 53}}, {"id": 756, "type": "declaration", "text": "std::shared_ptr<CounterMetric> m_metricStartCount;", "parent": 86, "children": [757, 758, 763], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 51}}, {"id": 757, "type": "type_identifier", "text": "std", "parent": 756, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 4}}, {"id": 758, "type": "ERROR", "text": "::shared_ptr<CounterMetric>", "parent": 756, "children": [759, 760, 761, 762], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 31}}, {"id": 759, "type": "identifier", "text": "shared_ptr", "parent": 758, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 16}}, {"id": 760, "type": "<", "text": "<", "parent": 758, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 17}}, {"id": 761, "type": "identifier", "text": "CounterMetric", "parent": 758, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 30}}, {"id": 762, "type": ">", "text": ">", "parent": 758, "children": [], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 31}}, {"id": 763, "type": "identifier", "text": "m_metricStartCount", "parent": 756, "children": [], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 50}}, {"id": 764, "type": "declaration", "text": "std::shared_ptr<GaugeMetric> m_metricMemory;", "parent": 86, "children": [765, 766, 771], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 45}}, {"id": 765, "type": "type_identifier", "text": "std", "parent": 764, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 4}}, {"id": 766, "type": "ERROR", "text": "::shared_ptr<GaugeMetric>", "parent": 764, "children": [767, 768, 769, 770], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 29}}, {"id": 767, "type": "identifier", "text": "shared_ptr", "parent": 766, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 16}}, {"id": 768, "type": "<", "text": "<", "parent": 766, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 17}}, {"id": 769, "type": "identifier", "text": "GaugeMetric", "parent": 766, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 28}}, {"id": 770, "type": ">", "text": ">", "parent": 766, "children": [], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 29}}, {"id": 771, "type": "identifier", "text": "m_metricMemory", "parent": 764, "children": [], "start_point": {"row": 142, "column": 30}, "end_point": {"row": 142, "column": 44}}, {"id": 772, "type": "declaration", "text": "std::shared_ptr<GaugeMetric> m_metricCpu;", "parent": 86, "children": [773, 774, 779], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 42}}, {"id": 773, "type": "type_identifier", "text": "std", "parent": 772, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 4}}, {"id": 774, "type": "ERROR", "text": "::shared_ptr<GaugeMetric>", "parent": 772, "children": [775, 776, 777, 778], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 29}}, {"id": 775, "type": "identifier", "text": "shared_ptr", "parent": 774, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 16}}, {"id": 776, "type": "<", "text": "<", "parent": 774, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 17}}, {"id": 777, "type": "identifier", "text": "GaugeMetric", "parent": 774, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 28}}, {"id": 778, "type": ">", "text": ">", "parent": 774, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 29}}, {"id": 779, "type": "identifier", "text": "m_metricCpu", "parent": 772, "children": [], "start_point": {"row": 143, "column": 30}, "end_point": {"row": 143, "column": 41}}, {"id": 780, "type": "declaration", "text": "std::shared_ptr<GaugeMetric> m_metricAppPid;", "parent": 86, "children": [781, 782, 787], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 45}}, {"id": 781, "type": "type_identifier", "text": "std", "parent": 780, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 4}}, {"id": 782, "type": "ERROR", "text": "::shared_ptr<GaugeMetric>", "parent": 780, "children": [783, 784, 785, 786], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 29}}, {"id": 783, "type": "identifier", "text": "shared_ptr", "parent": 782, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 16}}, {"id": 784, "type": "<", "text": "<", "parent": 782, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 17}}, {"id": 785, "type": "identifier", "text": "GaugeMetric", "parent": 782, "children": [], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 28}}, {"id": 786, "type": ">", "text": ">", "parent": 782, "children": [], "start_point": {"row": 144, "column": 28}, "end_point": {"row": 144, "column": 29}}, {"id": 787, "type": "identifier", "text": "m_metricAppPid", "parent": 780, "children": [], "start_point": {"row": 144, "column": 30}, "end_point": {"row": 144, "column": 44}}, {"id": 788, "type": "declaration", "text": "std::shared_ptr<GaugeMetric> m_metricFileDesc;", "parent": 86, "children": [789, 790, 795], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 47}}, {"id": 789, "type": "type_identifier", "text": "std", "parent": 788, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 4}}, {"id": 790, "type": "ERROR", "text": "::shared_ptr<GaugeMetric>", "parent": 788, "children": [791, 792, 793, 794], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 29}}, {"id": 791, "type": "identifier", "text": "shared_ptr", "parent": 790, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 16}}, {"id": 792, "type": "<", "text": "<", "parent": 790, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 17}}, {"id": 793, "type": "identifier", "text": "GaugeMetric", "parent": 790, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 28}}, {"id": 794, "type": ">", "text": ">", "parent": 790, "children": [], "start_point": {"row": 145, "column": 28}, "end_point": {"row": 145, "column": 29}}, {"id": 795, "type": "identifier", "text": "m_metricFileDesc", "parent": 788, "children": [], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 145, "column": 46}}, {"id": 796, "type": "declaration", "text": "std::atomic<int> m_continueFails;", "parent": 86, "children": [797, 798, 803], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 34}}, {"id": 797, "type": "type_identifier", "text": "std", "parent": 796, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 4}}, {"id": 798, "type": "ERROR", "text": "::atomic<int>", "parent": 796, "children": [799, 800, 801, 802], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 17}}, {"id": 799, "type": "identifier", "text": "atomic", "parent": 798, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 12}}, {"id": 800, "type": "<", "text": "<", "parent": 798, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 13}}, {"id": 801, "type": "primitive_type", "text": "int", "parent": 798, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 16}}, {"id": 802, "type": ">", "text": ">", "parent": 798, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 17}}, {"id": 803, "type": "identifier", "text": "m_continueFails", "parent": 796, "children": [], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 33}}, {"id": 804, "type": "declaration", "text": "std::atomic<int> m_starts;", "parent": 86, "children": [805, 806, 811], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 27}}, {"id": 805, "type": "type_identifier", "text": "std", "parent": 804, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 4}}, {"id": 806, "type": "ERROR", "text": "::atomic<int>", "parent": 804, "children": [807, 808, 809, 810], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 17}}, {"id": 807, "type": "identifier", "text": "atomic", "parent": 806, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 12}}, {"id": 808, "type": "<", "text": "<", "parent": 806, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 13}}, {"id": 809, "type": "primitive_type", "text": "int", "parent": 806, "children": [], "start_point": {"row": 147, "column": 13}, "end_point": {"row": 147, "column": 16}}, {"id": 810, "type": ">", "text": ">", "parent": 806, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 17}}, {"id": 811, "type": "identifier", "text": "m_starts", "parent": 804, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 26}}, {"id": 812, "type": "declaration", "text": "mutable std::recursive_mutex m_errorMutex;", "parent": 86, "children": [813, 814, 817], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 43}}, {"id": 813, "type": "type_identifier", "text": "mutable", "parent": 812, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 8}}, {"id": 814, "type": "ERROR", "text": "std::recursive_mutex", "parent": 812, "children": [815, 816], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 29}}, {"id": 815, "type": "identifier", "text": "std", "parent": 814, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 12}}, {"id": 816, "type": "identifier", "text": "recursive_mutex", "parent": 814, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 29}}, {"id": 817, "type": "identifier", "text": "m_errorMutex", "parent": 812, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 42}}, {"id": 818, "type": "declaration", "text": "std::string m_lastError;", "parent": 86, "children": [819, 820, 822], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 25}}, {"id": 819, "type": "type_identifier", "text": "std", "parent": 818, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 4}}, {"id": 820, "type": "ERROR", "text": "::string", "parent": 818, "children": [821], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 12}}, {"id": 821, "type": "identifier", "text": "string", "parent": 820, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 12}}, {"id": 822, "type": "identifier", "text": "m_lastError", "parent": 818, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 24}}]}, "node_categories": {"declarations": {"functions": [65, 90, 96, 100, 108, 114, 123, 127, 132, 136, 141, 155, 160, 165, 174, 199, 209, 215, 228, 233, 238, 252, 272, 281, 291, 301, 313, 338, 364, 379, 393, 401, 414, 432, 446, 459, 466, 478, 483, 495], "variables": [36, 38, 40, 42, 44, 46, 48, 50, 61, 68, 93, 103, 139, 144, 163, 168, 171, 177, 185, 202, 205, 212, 218, 226, 231, 236, 241, 255, 270, 275, 278, 284, 289, 294, 297, 304, 316, 319, 341, 345, 349, 362, 367, 376, 382, 417, 420, 425, 430, 435, 438, 449, 457, 462, 469, 502, 510, 513, 516, 521, 526, 531, 539, 542, 547, 552, 558, 561, 564, 572, 580, 588, 593, 598, 603, 610, 617, 622, 625, 630, 633, 636, 644, 655, 658, 665, 668, 673, 678, 683, 691, 694, 697, 705, 713, 725, 737, 742, 749, 756, 764, 772, 780, 788, 796, 804, 812, 818], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": []}, "statements": {"expressions": [58, 71, 74, 78, 79, 84, 191, 267, 307, 324, 387, 396, 404, 472], "assignments": [], "loops": [], "conditionals": [37, 39, 41, 43, 45, 47, 49, 51, 54, 55, 56, 59, 62, 66, 69, 70, 72, 77, 80, 82, 85, 87, 89, 91, 94, 97, 101, 105, 109, 111, 113, 115, 117, 119, 121, 124, 128, 133, 135, 137, 142, 145, 147, 148, 149, 150, 152, 153, 154, 156, 161, 166, 170, 175, 178, 180, 182, 184, 186, 188, 189, 190, 192, 194, 195, 196, 197, 198, 200, 204, 206, 208, 210, 216, 222, 229, 234, 239, 242, 244, 246, 247, 248, 249, 253, 256, 258, 259, 260, 261, 264, 265, 266, 268, 273, 277, 282, 286, 292, 296, 298, 300, 302, 306, 308, 310, 311, 312, 314, 318, 323, 325, 327, 328, 329, 331, 332, 333, 335, 339, 342, 344, 346, 348, 350, 352, 353, 357, 359, 365, 368, 370, 372, 374, 380, 383, 385, 386, 388, 390, 391, 392, 394, 397, 399, 402, 405, 407, 409, 410, 412, 415, 419, 421, 423, 424, 426, 428, 429, 433, 437, 439, 441, 447, 453, 460, 463, 465, 467, 471, 473, 475, 476, 477, 479, 481, 482, 484, 486, 487, 489, 490, 492, 493, 496, 498, 499, 500, 501, 503, 505, 507, 509, 511, 512, 514, 515, 517, 519, 520, 522, 524, 525, 527, 529, 530, 532, 534, 536, 538, 541, 543, 545, 546, 548, 550, 551, 553, 555, 556, 557, 560, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 587, 589, 591, 592, 594, 596, 597, 599, 601, 602, 604, 606, 607, 608, 609, 611, 613, 614, 615, 616, 618, 620, 621, 624, 626, 628, 629, 632, 635, 637, 639, 641, 643, 645, 647, 649, 650, 651, 652, 654, 657, 659, 661, 662, 663, 664, 667, 669, 671, 672, 674, 676, 677, 679, 682, 684, 686, 688, 690, 692, 693, 696, 698, 700, 702, 704, 706, 708, 710, 712, 714, 716, 718, 719, 721, 722, 724, 726, 728, 730, 731, 733, 734, 736, 738, 740, 741, 743, 745, 746, 747, 748, 750, 752, 753, 754, 755, 757, 759, 761, 763, 765, 767, 769, 771, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 803, 805, 807, 811, 813, 815, 816, 817, 819, 821, 822], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 288, 355, 361], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "Application()"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "getName()"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "getpid() const"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "health(bool health)"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "health() const"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "healthCheckCmd() const"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "getOwner() const"}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "getOwnerPermission() const"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "isCloudApp() const"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "getStatus() const"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now())"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "now()"}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "isEnabled() const"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "attach(int pid)"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "AsJson(bool returnRuntimeInfo)"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "dump()"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "execute(void *ptree"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "enable()"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "disable()"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "destroy()"}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": "scheduleNext(std::chrono::system_clock::time_point now"}, {"node_id": 272, "universal_type": "function", "name": "unknown", "text_snippet": "regSuicideTimer(int timeoutSeconds)"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "onSuicide(int timerId"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "onExit(int code)"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "runAsyncrize(int timeoutSeconds) noexcept(false)"}, {"node_id": 313, "universal_type": "function", "name": "*asyncHttpRequest)", "text_snippet": "runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false)"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "getOutput(long &position, long maxSize, const std::string &processUuid"}, {"node_id": 364, "universal_type": "function", "name": "unknown", "text_snippet": "initMetrics(std::shared_ptr<PrometheusRest> prom)"}, {"node_id": 379, "universal_type": "function", "name": "unknown", "text_snippet": "setLastError(const std::string &error) noexcept(false)"}, {"node_id": 393, "universal_type": "function", "name": "unknown", "text_snippet": "getLastError() const noexcept(false)"}, {"node_id": 401, "universal_type": "function", "name": "unknown", "text_snippet": "setInvalidError() noexcept(false)"}, {"node_id": 414, "universal_type": "function", "name": "unknown", "text_snippet": "allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName)"}, {"node_id": 432, "universal_type": "function", "name": "unknown", "text_snippet": "spawn(int timerId)"}, {"node_id": 446, "universal_type": "function", "name": "unknown", "text_snippet": "refresh(void *ptree"}, {"node_id": 459, "universal_type": "function", "name": "unknown", "text_snippet": "healthCheck()"}, {"node_id": 466, "universal_type": "function", "name": "unknown", "text_snippet": "runApp(int timeoutSeconds) noexcept(false)"}, {"node_id": 478, "universal_type": "function", "name": "unknown", "text_snippet": "getExecUser() const"}, {"node_id": 483, "universal_type": "function", "name": "unknown", "text_snippet": "getCmdLine() const"}, {"node_id": 495, "universal_type": "function", "name": "unknown", "text_snippet": "getMergedEnvMap() const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <atomic>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <chrono>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <map>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <memory>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <mutex>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <string>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <tuple>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <cpprest/json.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"../TimerHandler.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"AppBehavior.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"AppUtils.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "#pragma once\n#include <atomic>\n#include <chrono>\n#include <map>\n#include <memory>\n#include <mutex>\n#include <string>\n#include <tuple>\n\n#include <cpprest/json.h>\n\n#include \"../TimerHandler.h\"\n#include \"AppBehavior.h\"\n#include \"AppUtils.h\"\n\nclass AppTimer;\nclass User;\nclass CounterMetric;\nclass GaugeMetric;\nclass PrometheusRest;\nclass AppProcess;\nclass DailyLimitation;\nclass ResourceLimitation;\n//////////////////////////////////////////////////////////////////////////\n/// An Application is used to define and manage a process job.\n//////////////////////////////////////////////////////////////////////////\nclass Application : public TimerHandler, public AppBehavior\n{\npublic:\n\tApplication();\n\tvirtual ~Application();\n\tvirtual bool operator==(const std::shared_ptr<Application> &app);\n\n\tconst std::string &getName() const;\n\tpid_t getpid() const;\n\tvoid health(bool health);\n\tint health() const;\n\tconst std::string &healthCheckCmd() const;\n\tconst std::shared_ptr<User> &getOwner() const;\n\tint getOwnerPermission() const;\n\tbool isCloudApp() const;\n\tSTATUS getStatus() const;\n\n\tbool available(const std::chrono::system_clock::time_point &now = std::chrono::system_clock::now());\n\tbool isEnabled() const;\n\tbool attach(int pid);\n\n\tstatic void FromJson(const std::shared_ptr<Application> &app, const web::json::value &obj) noexcept(false);\n\tvirtual web::json::value AsJson(bool returnRuntimeInfo);\n\tvirtual void dump();\n\n\t// operate\n\tvoid execute(void *ptree = nullptr);\n\tvoid enable();\n\tvoid disable();\n\tvoid destroy();\n\n\t// behavior\n\tstd::shared_ptr<std::chrono::system_clock::time_point> scheduleNext(std::chrono::system_clock::time_point now = std::chrono::system_clock::now());\n\tvoid regSuicideTimer(int timeoutSeconds);\n\tvoid onSuicide(int timerId = 0);\n\tvoid onExit(int code);\n\n\tstd::string runAsyncrize(int timeoutSeconds) noexcept(false);\n\tstd::string runSyncrize(int timeoutSeconds, void *asyncHttpRequest) noexcept(false);\n\tstd::tuple<std::string, bool, int> getOutput(long &position, long maxSize, const std::string &processUuid = \"\", int index = 0);\n\n\t// prometheus\n\tvoid initMetrics(std::shared_ptr<PrometheusRest> prom);\n\nprotected:\n\t// error\n\tvoid setLastError(const std::string &error) noexcept(false);\n\tconst std::string getLastError() const noexcept(false);\n\tvoid setInvalidError() noexcept(false);\n\n\t// process\n\tstd::shared_ptr<AppProcess> allocProcess(bool monitorProcess, const std::string &dockerImage, const std::string &appName);\n\tvoid spawn(int timerId);\n\tstd::shared_ptr<int> refresh(void *ptree = nullptr);\n\tvoid healthCheck();\n\n\tstd::string runApp(int timeoutSeconds) noexcept(false);\n\tconst std::string getExecUser() const;\n\tconst std::string &getCmdLine() const;\n\tstd::map<std::string, std::string> getMergedEnvMap() const;\n\nprotected:\n\tmutable std::recursive_mutex m_appMutex;\n\tstd::shared_ptr<AppTimer> m_timer;\n\tstatic ACE_Time_Value m_waitTimeout;\n\n\tSTATUS m_status;\n\tstd::string m_name;\n\tstd::string m_commandLine;\n\tstd::string m_description;\n\t/// @brief TODO: when user is removed, need remove associated app, otherwise, app invoke will fail\n\tstd::shared_ptr<User> m_owner;\n\tint m_ownerPermission;\n\tstd::string m_workdir;\n\tstd::string m_stdoutFile;\n\tweb::json::value m_metadata;\n\tbool m_shellApp;\n\tint m_stdoutCacheNum;\n\tstd::shared_ptr<ShellAppFileGen> m_shellAppFile;\n\tstd::shared_ptr<LogFileQueue> m_stdoutFileQueue;\n\t//the exit code of last instance\n\tstd::shared_ptr<int> m_return;\n\tstd::string m_posixTimeZone;\n\tstd::string m_startTime;\n\tstd::string m_endTime;\n\tstd::chrono::system_clock::time_point m_startTimeValue;\n\tstd::chrono::system_clock::time_point m_endTimeValue;\n\n\t// short running\n\tstd::string m_startIntervalValue;\n\tint m_startInterval;\n\tstd::string m_bufferTimeValue;\n\tint m_bufferTime;\n\tbool m_startIntervalValueIsCronExpr;\n\tstd::shared_ptr<AppProcess> m_bufferProcess;\n\tstd::shared_ptr<std::chrono::system_clock::time_point> m_nextLaunchTime;\n\tint m_nextStartTimerId;\n\n\tstd::chrono::system_clock::time_point m_regTime;\n\tbool m_health;\n\tstd::string m_healthCheckCmd;\n\tconst std::string m_appId;\n\tunsigned int m_version;\n\tstd::shared_ptr<AppProcess> m_process;\n\tpid_t m_pid;\n\tint m_suicideTimerId;\n\tstd::shared_ptr<DailyLimitation> m_dailyLimit;\n\tstd::shared_ptr<ResourceLimitation> m_resourceLimit;\n\tstd::map<std::string, std::string> m_envMap;\n\tstd::map<std::string, std::string> m_secEnvMap;\n\tstd::string m_dockerImage;\n\tstd::chrono::system_clock::time_point m_procStartTime;\n\tstd::chrono::system_clock::time_point m_procExitTime;\n\n\t// Prometheus\n\tstd::shared_ptr<CounterMetric> m_metricStartCount;\n\tstd::shared_ptr<GaugeMetric> m_metricMemory;\n\tstd::shared_ptr<GaugeMetric> m_metricCpu;\n\tstd::shared_ptr<GaugeMetric> m_metricAppPid;\n\tstd::shared_ptr<GaugeMetric> m_metricFileDesc;\n\tstd::atomic<int> m_continueFails;\n\tstd::atomic<int> m_starts;\n\n\t// error\n\tmutable std::recursive_mutex m_errorMutex;\n\tstd::string m_lastError;\n};\n"}
169
c
/* * * This file is part of the open-source SeetaFace engine, which includes three *modules: * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification. * * This file is part of the SeetaFace Detection module, containing codes *implementing the * face detection method described in the following paper: * * * Funnel-structured cascade for multi-view face detection with alignment *awareness, * <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. * In Neurocomputing (under review) * * * Copyright (C) 2016, Visual Information Processing and Learning (VIPL) group, * Institute of Computing Technology, Chinese Academy of Sciences, Beijing, *China. * * The codes are mainly developed by <NAME> (a Ph.D supervised by Prof. *<NAME>) * * As an open-source face recognition engine: you can redistribute SeetaFace *source codes * and/or modify it under the terms of the BSD 2-Clause License. * * You should have received a copy of the BSD 2-Clause License along with the *software. * If not, see < https://opensource.org/licenses/BSD-2-Clause>. * * Contact Info: you can send an email to <EMAIL> for any *problems. * * Note: the above information must be kept whenever or wherever the codes are *used. * */ #ifndef SEETA_FACE_DETECTION_H_ #define SEETA_FACE_DETECTION_H_ #include <cstdint> #include <vector> #include "common.h" namespace seeta { class FaceDetection { public: SEETA_API explicit FaceDetection(const char* model_path); SEETA_API ~FaceDetection(); /** * @brief Detect faces on input image. * * (1) The input image should be gray-scale, i.e. `num_channels` set to 1. * (2) Currently this function does not give the Euler angles, which are * left with invalid values. */ SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img); /** * @brief Set the minimum size of faces to detect. * * The minimum size is constrained as no smaller than 20. Invalid values *will * be ignored. */ SEETA_API void SetMinFaceSize(int32_t size); /** * @brief Set the maximum size of faces to detect. * * The maximum face size actually used is computed as the minimum among: *user * specified size, image width, image height. */ SEETA_API void SetMaxFaceSize(int32_t size); /** * @brief Set the factor between adjacent scales of image pyramid. * * The value of the factor lies in (0, 1). For example, when it is set as *0.5, * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x *0.25h, * 0.125w x 0.125h, etc. Invalid values will be ignored. */ SEETA_API void SetImagePyramidScaleFactor(float factor); /** * @brief Set the sliding window step in horizontal and vertical directions. * * The steps should take positive values, and invalid ones will be ignored. * Usually a step of 4 is a reasonable choice. */ SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y); /** * @brief Set the score thresh of detected faces. * * Detections with scores smaller than the threshold will not be returned. * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the * threshold based on his or her own test set. */ SEETA_API void SetScoreThresh(float thresh); DISABLE_COPY_AND_ASSIGN(FaceDetection); private: class Impl; Impl* impl_; }; } // namespace seeta #endif // SEETA_FACE_DETECTION_H_
32.57
105
(translation_unit) "/*\n *\n * This file is part of the open-source SeetaFace engine, which includes three\n *modules:\n * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.\n *\n * This file is part of the SeetaFace Detection module, containing codes\n *implementing the\n * face detection method described in the following paper:\n *\n *\n * Funnel-structured cascade for multi-view face detection with alignment\n *awareness,\n * <NAME>, <NAME>, <NAME>, <NAME>, <NAME>.\n * In Neurocomputing (under review)\n *\n *\n * Copyright (C) 2016, Visual Information Processing and Learning (VIPL) group,\n * Institute of Computing Technology, Chinese Academy of Sciences, Beijing,\n *China.\n *\n * The codes are mainly developed by <NAME> (a Ph.D supervised by Prof.\n *<NAME>)\n *\n * As an open-source face recognition engine: you can redistribute SeetaFace\n *source codes\n * and/or modify it under the terms of the BSD 2-Clause License.\n *\n * You should have received a copy of the BSD 2-Clause License along with the\n *software.\n * If not, see < https://opensource.org/licenses/BSD-2-Clause>.\n *\n * Contact Info: you can send an email to <EMAIL> for any\n *problems.\n *\n * Note: the above information must be kept whenever or wherever the codes are\n *used.\n *\n */\n\n#ifndef SEETA_FACE_DETECTION_H_\n#define SEETA_FACE_DETECTION_H_\n\n#include <cstdint>\n#include <vector>\n\n#include "common.h"\n\nnamespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n} // namespace seeta\n\n#endif // SEETA_FACE_DETECTION_H_\n" (comment) "/*\n *\n * This file is part of the open-source SeetaFace engine, which includes three\n *modules:\n * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.\n *\n * This file is part of the SeetaFace Detection module, containing codes\n *implementing the\n * face detection method described in the following paper:\n *\n *\n * Funnel-structured cascade for multi-view face detection with alignment\n *awareness,\n * <NAME>, <NAME>, <NAME>, <NAME>, <NAME>.\n * In Neurocomputing (under review)\n *\n *\n * Copyright (C) 2016, Visual Information Processing and Learning (VIPL) group,\n * Institute of Computing Technology, Chinese Academy of Sciences, Beijing,\n *China.\n *\n * The codes are mainly developed by <NAME> (a Ph.D supervised by Prof.\n *<NAME>)\n *\n * As an open-source face recognition engine: you can redistribute SeetaFace\n *source codes\n * and/or modify it under the terms of the BSD 2-Clause License.\n *\n * You should have received a copy of the BSD 2-Clause License along with the\n *software.\n * If not, see < https://opensource.org/licenses/BSD-2-Clause>.\n *\n * Contact Info: you can send an email to <EMAIL> for any\n *problems.\n *\n * Note: the above information must be kept whenever or wherever the codes are\n *used.\n *\n */" (preproc_ifdef) "#ifndef SEETA_FACE_DETECTION_H_\n#define SEETA_FACE_DETECTION_H_\n\n#include <cstdint>\n#include <vector>\n\n#include "common.h"\n\nnamespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n} // namespace seeta\n\n#endif" (#ifndef) "#ifndef" (identifier) "SEETA_FACE_DETECTION_H_" (preproc_def) "#define SEETA_FACE_DETECTION_H_\n" (#define) "#define" (identifier) "SEETA_FACE_DETECTION_H_" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (function_definition) "namespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n}" (type_identifier) "namespace" (identifier) "seeta" (compound_statement) "{\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n}" ({) "{" (function_definition) "class FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n}" (type_identifier) "class" (identifier) "FaceDetection" (compound_statement) "{\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n}" ({) "{" (labeled_statement) "public:\n SEETA_API explicit FaceDetection(const char* model_path);" (statement_identifier) "public" (:) ":" (declaration) "SEETA_API explicit FaceDetection(const char* model_path);" (type_identifier) "SEETA_API" (ERROR) "explicit" (identifier) "explicit" (function_declarator) "FaceDetection(const char* model_path)" (identifier) "FaceDetection" (parameter_list) "(const char* model_path)" (() "(" (parameter_declaration) "const char* model_path" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* model_path" (*) "*" (identifier) "model_path" ()) ")" (;) ";" (declaration) "SEETA_API ~FaceDetection();" (type_identifier) "SEETA_API" (ERROR) "~" (~) "~" (function_declarator) "FaceDetection()" (identifier) "FaceDetection" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */" (declaration) "SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);" (type_identifier) "SEETA_API" (ERROR) "std::vector<seeta::FaceInfo>" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "seeta" (:) ":" (:) ":" (identifier) "FaceInfo" (>) ">" (function_declarator) "Detect(const seeta::ImageData& img)" (identifier) "Detect" (parameter_list) "(const seeta::ImageData& img)" (() "(" (parameter_declaration) "const seeta::ImageData& img" (type_qualifier) "const" (const) "const" (type_identifier) "seeta" (ERROR) "::ImageData&" (:) ":" (:) ":" (identifier) "ImageData" (&) "&" (identifier) "img" ()) ")" (;) ";" (comment) "/**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */" (declaration) "SEETA_API void SetMinFaceSize(int32_t size);" (type_identifier) "SEETA_API" (ERROR) "void" (identifier) "void" (function_declarator) "SetMinFaceSize(int32_t size)" (identifier) "SetMinFaceSize" (parameter_list) "(int32_t size)" (() "(" (parameter_declaration) "int32_t size" (primitive_type) "int32_t" (identifier) "size" ()) ")" (;) ";" (comment) "/**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */" (declaration) "SEETA_API void SetMaxFaceSize(int32_t size);" (type_identifier) "SEETA_API" (ERROR) "void" (identifier) "void" (function_declarator) "SetMaxFaceSize(int32_t size)" (identifier) "SetMaxFaceSize" (parameter_list) "(int32_t size)" (() "(" (parameter_declaration) "int32_t size" (primitive_type) "int32_t" (identifier) "size" ()) ")" (;) ";" (comment) "/**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */" (declaration) "SEETA_API void SetImagePyramidScaleFactor(float factor);" (type_identifier) "SEETA_API" (ERROR) "void" (identifier) "void" (function_declarator) "SetImagePyramidScaleFactor(float factor)" (identifier) "SetImagePyramidScaleFactor" (parameter_list) "(float factor)" (() "(" (parameter_declaration) "float factor" (primitive_type) "float" (identifier) "factor" ()) ")" (;) ";" (comment) "/**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */" (declaration) "SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);" (type_identifier) "SEETA_API" (ERROR) "void" (identifier) "void" (function_declarator) "SetWindowStep(int32_t step_x, int32_t step_y)" (identifier) "SetWindowStep" (parameter_list) "(int32_t step_x, int32_t step_y)" (() "(" (parameter_declaration) "int32_t step_x" (primitive_type) "int32_t" (identifier) "step_x" (,) "," (parameter_declaration) "int32_t step_y" (primitive_type) "int32_t" (identifier) "step_y" ()) ")" (;) ";" (comment) "/**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */" (declaration) "SEETA_API void SetScoreThresh(float thresh);" (type_identifier) "SEETA_API" (ERROR) "void" (identifier) "void" (function_declarator) "SetScoreThresh(float thresh)" (identifier) "SetScoreThresh" (parameter_list) "(float thresh)" (() "(" (parameter_declaration) "float thresh" (primitive_type) "float" (identifier) "thresh" ()) ")" (;) ";" (expression_statement) "DISABLE_COPY_AND_ASSIGN(FaceDetection);" (call_expression) "DISABLE_COPY_AND_ASSIGN(FaceDetection)" (identifier) "DISABLE_COPY_AND_ASSIGN" (argument_list) "(FaceDetection)" (() "(" (identifier) "FaceDetection" ()) ")" (;) ";" (labeled_statement) "private:\n class Impl;" (statement_identifier) "private" (:) ":" (declaration) "class Impl;" (type_identifier) "class" (identifier) "Impl" (;) ";" (declaration) "Impl* impl_;" (type_identifier) "Impl" (pointer_declarator) "* impl_" (*) "*" (identifier) "impl_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace seeta" (#endif) "#endif" (comment) "// SEETA_FACE_DETECTION_H_"
192
9
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.57, "nodes": 123, "errors": 0, "source_hash": "f343f2bb45ce635b385f9239889a6803031e959c3cdcbd22fb62f428f77f9105", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SEETA_FACE_DETECTION_H_\n#define SEETA_FACE_DETECTION_H_\n\n#include <cstdint>\n#include <vector>\n\n#include \"common.h\"\n\nnamespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n} // namespace seeta\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 122], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 2, "type": "identifier", "text": "SEETA_FACE_DETECTION_H_", "parent": 0, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define SEETA_FACE_DETECTION_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 5, "type": "identifier", "text": "SEETA_FACE_DETECTION_H_", "parent": 3, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include <cstdint>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<cstdint>", "parent": 6, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"common.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"common.h\"", "parent": 12, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 19}}, {"id": 15, "type": "function_definition", "text": "namespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 117, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 9}}, {"id": 17, "type": "identifier", "text": "seeta", "parent": 15, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 15}}, {"id": 18, "type": "function_definition", "text": "class FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n}", "parent": 15, "children": [19], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 19, "type": "identifier", "text": "FaceDetection", "parent": 18, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 19}}, {"id": 20, "type": "labeled_statement", "text": "public:\n SEETA_API explicit FaceDetection(const char* model_path);", "parent": 18, "children": [21], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 52, "column": 61}}, {"id": 21, "type": "declaration", "text": "SEETA_API explicit FaceDetection(const char* model_path);", "parent": 20, "children": [22, 23, 25], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 61}}, {"id": 22, "type": "type_identifier", "text": "SEETA_API", "parent": 21, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 13}}, {"id": 23, "type": "ERROR", "text": "explicit", "parent": 21, "children": [24], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 22}}, {"id": 24, "type": "identifier", "text": "explicit", "parent": 23, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 22}}, {"id": 25, "type": "function_declarator", "text": "FaceDetection(const char* model_path)", "parent": 21, "children": [26, 27], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 60}}, {"id": 26, "type": "identifier", "text": "FaceDetection", "parent": 25, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 36}}, {"id": 27, "type": "parameter_list", "text": "(const char* model_path)", "parent": 25, "children": [28], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 60}}, {"id": 28, "type": "parameter_declaration", "text": "const char* model_path", "parent": 27, "children": [29, 30], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 59}}, {"id": 29, "type": "primitive_type", "text": "char", "parent": 28, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 47}}, {"id": 30, "type": "pointer_declarator", "text": "* model_path", "parent": 28, "children": [31, 32], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 59}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 48}}, {"id": 32, "type": "identifier", "text": "model_path", "parent": 30, "children": [], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 59}}, {"id": 33, "type": "declaration", "text": "SEETA_API ~FaceDetection();", "parent": 18, "children": [34, 35, 37], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 31}}, {"id": 34, "type": "type_identifier", "text": "SEETA_API", "parent": 33, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 13}}, {"id": 35, "type": "ERROR", "text": "~", "parent": 33, "children": [36], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 36, "type": "~", "text": "~", "parent": 35, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 37, "type": "function_declarator", "text": "FaceDetection()", "parent": 33, "children": [38, 39], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 30}}, {"id": 38, "type": "identifier", "text": "FaceDetection", "parent": 37, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 28}}, {"id": 39, "type": "parameter_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 30}}, {"id": 40, "type": "declaration", "text": "SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);", "parent": 18, "children": [41, 42, 49], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 79}}, {"id": 41, "type": "type_identifier", "text": "SEETA_API", "parent": 40, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 13}}, {"id": 42, "type": "ERROR", "text": "std::vector<seeta::FaceInfo>", "parent": 40, "children": [43, 44, 45, 46, 47, 48], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 42}}, {"id": 43, "type": "identifier", "text": "std", "parent": 42, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 17}}, {"id": 44, "type": "identifier", "text": "vector", "parent": 42, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 25}}, {"id": 45, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 26}}, {"id": 46, "type": "identifier", "text": "seeta", "parent": 42, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 31}}, {"id": 47, "type": "identifier", "text": "FaceInfo", "parent": 42, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 41}}, {"id": 48, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 62, "column": 41}, "end_point": {"row": 62, "column": 42}}, {"id": 49, "type": "function_declarator", "text": "Detect(const seeta::ImageData& img)", "parent": 40, "children": [50, 51], "start_point": {"row": 62, "column": 43}, "end_point": {"row": 62, "column": 78}}, {"id": 50, "type": "identifier", "text": "Detect", "parent": 49, "children": [], "start_point": {"row": 62, "column": 43}, "end_point": {"row": 62, "column": 49}}, {"id": 51, "type": "parameter_list", "text": "(const seeta::ImageData& img)", "parent": 49, "children": [52], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 78}}, {"id": 52, "type": "parameter_declaration", "text": "const seeta::ImageData& img", "parent": 51, "children": [53, 54, 56], "start_point": {"row": 62, "column": 50}, "end_point": {"row": 62, "column": 77}}, {"id": 53, "type": "type_identifier", "text": "seeta", "parent": 52, "children": [], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 61}}, {"id": 54, "type": "ERROR", "text": "::ImageData&", "parent": 52, "children": [55], "start_point": {"row": 62, "column": 61}, "end_point": {"row": 62, "column": 73}}, {"id": 55, "type": "identifier", "text": "ImageData", "parent": 54, "children": [], "start_point": {"row": 62, "column": 63}, "end_point": {"row": 62, "column": 72}}, {"id": 56, "type": "identifier", "text": "img", "parent": 52, "children": [], "start_point": {"row": 62, "column": 74}, "end_point": {"row": 62, "column": 77}}, {"id": 57, "type": "declaration", "text": "SEETA_API void SetMinFaceSize(int32_t size);", "parent": 18, "children": [58, 59, 61], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 48}}, {"id": 58, "type": "type_identifier", "text": "SEETA_API", "parent": 57, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 13}}, {"id": 59, "type": "ERROR", "text": "void", "parent": 57, "children": [60], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 18}}, {"id": 60, "type": "identifier", "text": "void", "parent": 59, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 18}}, {"id": 61, "type": "function_declarator", "text": "SetMinFaceSize(int32_t size)", "parent": 57, "children": [62, 63], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 47}}, {"id": 62, "type": "identifier", "text": "SetMinFaceSize", "parent": 61, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 33}}, {"id": 63, "type": "parameter_list", "text": "(int32_t size)", "parent": 61, "children": [64], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 47}}, {"id": 64, "type": "parameter_declaration", "text": "int32_t size", "parent": 63, "children": [65, 66], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 46}}, {"id": 65, "type": "primitive_type", "text": "int32_t", "parent": 64, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 41}}, {"id": 66, "type": "identifier", "text": "size", "parent": 64, "children": [], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 46}}, {"id": 67, "type": "declaration", "text": "SEETA_API void SetMaxFaceSize(int32_t size);", "parent": 18, "children": [68, 69, 71], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 48}}, {"id": 68, "type": "type_identifier", "text": "SEETA_API", "parent": 67, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 13}}, {"id": 69, "type": "ERROR", "text": "void", "parent": 67, "children": [70], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 18}}, {"id": 70, "type": "identifier", "text": "void", "parent": 69, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 18}}, {"id": 71, "type": "function_declarator", "text": "SetMaxFaceSize(int32_t size)", "parent": 67, "children": [72, 73], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 47}}, {"id": 72, "type": "identifier", "text": "SetMaxFaceSize", "parent": 71, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 33}}, {"id": 73, "type": "parameter_list", "text": "(int32_t size)", "parent": 71, "children": [74], "start_point": {"row": 80, "column": 33}, "end_point": {"row": 80, "column": 47}}, {"id": 74, "type": "parameter_declaration", "text": "int32_t size", "parent": 73, "children": [75, 76], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 46}}, {"id": 75, "type": "primitive_type", "text": "int32_t", "parent": 74, "children": [], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 41}}, {"id": 76, "type": "identifier", "text": "size", "parent": 74, "children": [], "start_point": {"row": 80, "column": 42}, "end_point": {"row": 80, "column": 46}}, {"id": 77, "type": "declaration", "text": "SEETA_API void SetImagePyramidScaleFactor(float factor);", "parent": 18, "children": [78, 79, 81], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 60}}, {"id": 78, "type": "type_identifier", "text": "SEETA_API", "parent": 77, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 13}}, {"id": 79, "type": "ERROR", "text": "void", "parent": 77, "children": [80], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 18}}, {"id": 80, "type": "identifier", "text": "void", "parent": 79, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 18}}, {"id": 81, "type": "function_declarator", "text": "SetImagePyramidScaleFactor(float factor)", "parent": 77, "children": [82, 83], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 59}}, {"id": 82, "type": "identifier", "text": "SetImagePyramidScaleFactor", "parent": 81, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 45}}, {"id": 83, "type": "parameter_list", "text": "(float factor)", "parent": 81, "children": [84], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 59}}, {"id": 84, "type": "parameter_declaration", "text": "float factor", "parent": 83, "children": [85, 86], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 58}}, {"id": 85, "type": "primitive_type", "text": "float", "parent": 84, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 51}}, {"id": 86, "type": "identifier", "text": "factor", "parent": 84, "children": [], "start_point": {"row": 91, "column": 52}, "end_point": {"row": 91, "column": 58}}, {"id": 87, "type": "declaration", "text": "SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);", "parent": 18, "children": [88, 89, 91], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 65}}, {"id": 88, "type": "type_identifier", "text": "SEETA_API", "parent": 87, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 13}}, {"id": 89, "type": "ERROR", "text": "void", "parent": 87, "children": [90], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 18}}, {"id": 90, "type": "identifier", "text": "void", "parent": 89, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 18}}, {"id": 91, "type": "function_declarator", "text": "SetWindowStep(int32_t step_x, int32_t step_y)", "parent": 87, "children": [92, 93], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 64}}, {"id": 92, "type": "identifier", "text": "SetWindowStep", "parent": 91, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 32}}, {"id": 93, "type": "parameter_list", "text": "(int32_t step_x, int32_t step_y)", "parent": 91, "children": [94, 97], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 64}}, {"id": 94, "type": "parameter_declaration", "text": "int32_t step_x", "parent": 93, "children": [95, 96], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 47}}, {"id": 95, "type": "primitive_type", "text": "int32_t", "parent": 94, "children": [], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 40}}, {"id": 96, "type": "identifier", "text": "step_x", "parent": 94, "children": [], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 47}}, {"id": 97, "type": "parameter_declaration", "text": "int32_t step_y", "parent": 93, "children": [98, 99], "start_point": {"row": 99, "column": 49}, "end_point": {"row": 99, "column": 63}}, {"id": 98, "type": "primitive_type", "text": "int32_t", "parent": 97, "children": [], "start_point": {"row": 99, "column": 49}, "end_point": {"row": 99, "column": 56}}, {"id": 99, "type": "identifier", "text": "step_y", "parent": 97, "children": [], "start_point": {"row": 99, "column": 57}, "end_point": {"row": 99, "column": 63}}, {"id": 100, "type": "declaration", "text": "SEETA_API void SetScoreThresh(float thresh);", "parent": 18, "children": [101, 102, 104], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 48}}, {"id": 101, "type": "type_identifier", "text": "SEETA_API", "parent": 100, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 13}}, {"id": 102, "type": "ERROR", "text": "void", "parent": 100, "children": [103], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 18}}, {"id": 103, "type": "identifier", "text": "void", "parent": 102, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 18}}, {"id": 104, "type": "function_declarator", "text": "SetScoreThresh(float thresh)", "parent": 100, "children": [105, 106], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 47}}, {"id": 105, "type": "identifier", "text": "SetScoreThresh", "parent": 104, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 33}}, {"id": 106, "type": "parameter_list", "text": "(float thresh)", "parent": 104, "children": [107], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 47}}, {"id": 107, "type": "parameter_declaration", "text": "float thresh", "parent": 106, "children": [108, 109], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 46}}, {"id": 108, "type": "primitive_type", "text": "float", "parent": 107, "children": [], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 39}}, {"id": 109, "type": "identifier", "text": "thresh", "parent": 107, "children": [], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 46}}, {"id": 110, "type": "call_expression", "text": "DISABLE_COPY_AND_ASSIGN(FaceDetection)", "parent": 18, "children": [111, 112], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 42}}, {"id": 111, "type": "identifier", "text": "DISABLE_COPY_AND_ASSIGN", "parent": 110, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 27}}, {"id": 112, "type": "argument_list", "text": "(FaceDetection)", "parent": 110, "children": [113], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 42}}, {"id": 113, "type": "identifier", "text": "FaceDetection", "parent": 112, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 41}}, {"id": 114, "type": "labeled_statement", "text": "private:\n class Impl;", "parent": 18, "children": [115], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 113, "column": 15}}, {"id": 115, "type": "declaration", "text": "class Impl;", "parent": 114, "children": [116], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 15}}, {"id": 116, "type": "identifier", "text": "Impl", "parent": 115, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 14}}, {"id": 117, "type": "declaration", "text": "Impl* impl_;", "parent": 18, "children": [118, 119], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 16}}, {"id": 118, "type": "type_identifier", "text": "Impl", "parent": 117, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 8}}, {"id": 119, "type": "pointer_declarator", "text": "* impl_", "parent": 117, "children": [120, 121], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 15}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 9}}, {"id": 121, "type": "identifier", "text": "impl_", "parent": 119, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 15}}, {"id": 122, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 25, 37, 49, 61, 71, 81, 91, 104], "variables": [21, 28, 33, 40, 52, 57, 64, 67, 74, 77, 84, 87, 94, 97, 100, 107, 115, 117], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [110], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 22, 24, 26, 32, 34, 38, 41, 43, 44, 46, 47, 50, 53, 55, 56, 58, 60, 62, 66, 68, 70, 72, 76, 78, 80, 82, 86, 88, 90, 92, 96, 99, 101, 103, 105, 109, 111, 113, 116, 118, 121, 122], "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": "FaceDetection", "text_snippet": "namespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char*"}, {"node_id": 18, "universal_type": "function", "name": "FaceDetection", "text_snippet": "class FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n S"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "FaceDetection(const char* model_path)"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "FaceDetection()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Detect(const seeta::ImageData& img)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "SetMinFaceSize(int32_t size)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "SetMaxFaceSize(int32_t size)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "SetImagePyramidScaleFactor(float factor)"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "SetWindowStep(int32_t step_x, int32_t step_y)"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "SetScoreThresh(float thresh)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <cstdint>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"common.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n *\n * This file is part of the open-source SeetaFace engine, which includes three\n *modules:\n * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.\n *\n * This file is part of the SeetaFace Detection module, containing codes\n *implementing the\n * face detection method described in the following paper:\n *\n *\n * Funnel-structured cascade for multi-view face detection with alignment\n *awareness,\n * <NAME>, <NAME>, <NAME>, <NAME>, <NAME>.\n * In Neurocomputing (under review)\n *\n *\n * Copyright (C) 2016, Visual Information Processing and Learning (VIPL) group,\n * Institute of Computing Technology, Chinese Academy of Sciences, Beijing,\n *China.\n *\n * The codes are mainly developed by <NAME> (a Ph.D supervised by Prof.\n *<NAME>)\n *\n * As an open-source face recognition engine: you can redistribute SeetaFace\n *source codes\n * and/or modify it under the terms of the BSD 2-Clause License.\n *\n * You should have received a copy of the BSD 2-Clause License along with the\n *software.\n * If not, see < https://opensource.org/licenses/BSD-2-Clause>.\n *\n * Contact Info: you can send an email to <EMAIL> for any\n *problems.\n *\n * Note: the above information must be kept whenever or wherever the codes are\n *used.\n *\n */\n\n#ifndef SEETA_FACE_DETECTION_H_\n#define SEETA_FACE_DETECTION_H_\n\n#include <cstdint>\n#include <vector>\n\n#include \"common.h\"\n\nnamespace seeta {\n\nclass FaceDetection {\n public:\n SEETA_API explicit FaceDetection(const char* model_path);\n SEETA_API ~FaceDetection();\n\n /**\n * @brief Detect faces on input image.\n *\n * (1) The input image should be gray-scale, i.e. `num_channels` set to 1.\n * (2) Currently this function does not give the Euler angles, which are\n * left with invalid values.\n */\n SEETA_API std::vector<seeta::FaceInfo> Detect(const seeta::ImageData& img);\n\n /**\n * @brief Set the minimum size of faces to detect.\n *\n * The minimum size is constrained as no smaller than 20. Invalid values\n *will\n * be ignored.\n */\n SEETA_API void SetMinFaceSize(int32_t size);\n\n /**\n * @brief Set the maximum size of faces to detect.\n *\n * The maximum face size actually used is computed as the minimum among:\n *user\n * specified size, image width, image height.\n */\n SEETA_API void SetMaxFaceSize(int32_t size);\n\n /**\n * @brief Set the factor between adjacent scales of image pyramid.\n *\n * The value of the factor lies in (0, 1). For example, when it is set as\n *0.5,\n * an input image of size w x h will be resized to 0.5w x 0.5h, 0.25w x\n *0.25h,\n * 0.125w x 0.125h, etc. Invalid values will be ignored.\n */\n SEETA_API void SetImagePyramidScaleFactor(float factor);\n\n /**\n * @brief Set the sliding window step in horizontal and vertical directions.\n *\n * The steps should take positive values, and invalid ones will be ignored.\n * Usually a step of 4 is a reasonable choice.\n */\n SEETA_API void SetWindowStep(int32_t step_x, int32_t step_y);\n\n /**\n * @brief Set the score thresh of detected faces.\n *\n * Detections with scores smaller than the threshold will not be returned.\n * Typical threshold values include 0.95, 2.8, 4.5. One can adjust the\n * threshold based on his or her own test set.\n */\n SEETA_API void SetScoreThresh(float thresh);\n\n DISABLE_COPY_AND_ASSIGN(FaceDetection);\n\n private:\n class Impl;\n Impl* impl_;\n};\n\n} // namespace seeta\n\n#endif // SEETA_FACE_DETECTION_H_\n"}
170
c
//Copyright (c) 2015 <NAME>(meson800) and <NAME>(jedidia) //The MIT License - See ../../LICENSE for more info #pragma once #include <irrlicht.h> class VesselSceneNode; using namespace irr; struct DockingIdentifier { unsigned int vesselUID, portID; }; struct DockingPortStatus { bool docked; DockingIdentifier dockedTo; }; struct OrbiterDockingPort { OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir) : position(pos), approachDirection(appDir), referenceDirection(refDir) {} VesselSceneNode* parent; DockingIdentifier dockedTo; DockingPortStatus returnStatus(); unsigned int portID; scene::IMeshSceneNode* portNode; scene::IMeshSceneNode* helperNode; int index; bool docked; core::vector3d<f32> position; core::vector3d<f32> approachDirection; core::vector3d<f32> referenceDirection; };
27.06
31
(translation_unit) "//Copyright (c) 2015 <NAME>(meson800) and <NAME>(jedidia)\n//The MIT License - See ../../LICENSE for more info\n#pragma once\n#include <irrlicht.h>\n\nclass VesselSceneNode;\n\nusing namespace irr;\n\nstruct DockingIdentifier\n{\n unsigned int vesselUID, portID;\n};\n\nstruct DockingPortStatus\n{\n bool docked;\n DockingIdentifier dockedTo;\n};\n\nstruct OrbiterDockingPort\n{\n OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n : position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n VesselSceneNode* parent;\n DockingIdentifier dockedTo;\n\n DockingPortStatus returnStatus();\n\n unsigned int portID;\n scene::IMeshSceneNode* portNode;\n scene::IMeshSceneNode* helperNode;\n int index;\n bool docked;\n core::vector3d<f32> position;\n core::vector3d<f32> approachDirection;\n core::vector3d<f32> referenceDirection;\n};\n" (comment) "//Copyright (c) 2015 <NAME>(meson800) and <NAME>(jedidia)" (comment) "//The MIT License - See ../../LICENSE for more info" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <irrlicht.h>\n" (#include) "#include" (system_lib_string) "<irrlicht.h>" (declaration) "class VesselSceneNode;" (type_identifier) "class" (identifier) "VesselSceneNode" (;) ";" (declaration) "using namespace irr;" (type_identifier) "using" (identifier) "namespace" (ERROR) "irr" (identifier) "irr" (;) ";" (struct_specifier) "struct DockingIdentifier\n{\n unsigned int vesselUID, portID;\n}" (struct) "struct" (type_identifier) "DockingIdentifier" (field_declaration_list) "{\n unsigned int vesselUID, portID;\n}" ({) "{" (field_declaration) "unsigned int vesselUID, portID;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "vesselUID" (,) "," (field_identifier) "portID" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct DockingPortStatus\n{\n bool docked;\n DockingIdentifier dockedTo;\n}" (struct) "struct" (type_identifier) "DockingPortStatus" (field_declaration_list) "{\n bool docked;\n DockingIdentifier dockedTo;\n}" ({) "{" (field_declaration) "bool docked;" (primitive_type) "bool" (field_identifier) "docked" (;) ";" (field_declaration) "DockingIdentifier dockedTo;" (type_identifier) "DockingIdentifier" (field_identifier) "dockedTo" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct OrbiterDockingPort\n{\n OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n : position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n VesselSceneNode* parent;\n DockingIdentifier dockedTo;\n\n DockingPortStatus returnStatus();\n\n unsigned int portID;\n scene::IMeshSceneNode* portNode;\n scene::IMeshSceneNode* helperNode;\n int index;\n bool docked;\n core::vector3d<f32> position;\n core::vector3d<f32> approachDirection;\n core::vector3d<f32> referenceDirection;\n}" (struct) "struct" (type_identifier) "OrbiterDockingPort" (field_declaration_list) "{\n OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n : position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n VesselSceneNode* parent;\n DockingIdentifier dockedTo;\n\n DockingPortStatus returnStatus();\n\n unsigned int portID;\n scene::IMeshSceneNode* portNode;\n scene::IMeshSceneNode* helperNode;\n int index;\n bool docked;\n core::vector3d<f32> position;\n core::vector3d<f32> approachDirection;\n core::vector3d<f32> referenceDirection;\n}" ({) "{" (field_declaration) "OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n : position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n VesselSceneNode* parent;" (type_identifier) "OrbiterDockingPort" (ERROR) "(core::vector3d<f32>" (() "(" (type_descriptor) "core" (type_identifier) "core" (:) ":" (:) ":" (field_identifier) "vector3d" (<) "<" (field_identifier) "f32" (>) ">" (field_identifier) "pos" (,) "," (field_identifier) "core" (ERROR) ":" (:) ":" (bitfield_clause) ":vector3d<f32> appDir" (:) ":" (binary_expression) "vector3d<f32> appDir" (binary_expression) "vector3d<f32" (identifier) "vector3d" (<) "<" (identifier) "f32" (>) ">" (identifier) "appDir" (,) "," (field_identifier) "core" (bitfield_clause) "::vector3d<f32> refDir)\n : position(pos)" (:) ":" (ERROR) ":vector3d<f32> refDir)\n :" (:) ":" (binary_expression) "vector3d<f32> refDir" (binary_expression) "vector3d<f32" (identifier) "vector3d" (<) "<" (identifier) "f32" (>) ">" (identifier) "refDir" ()) ")" (:) ":" (call_expression) "position(pos)" (identifier) "position" (argument_list) "(pos)" (() "(" (identifier) "pos" ()) ")" (,) "," (function_declarator) "approachDirection(appDir)" (field_identifier) "approachDirection" (parameter_list) "(appDir)" (() "(" (parameter_declaration) "appDir" (type_identifier) "appDir" ()) ")" (,) "," (ERROR) "referenceDirection(refDir) {}\n VesselSceneNode" (function_declarator) "referenceDirection(refDir)" (field_identifier) "referenceDirection" (parameter_list) "(refDir)" (() "(" (parameter_declaration) "refDir" (type_identifier) "refDir" ()) ")" ({) "{" (}) "}" (field_identifier) "VesselSceneNode" (pointer_declarator) "* parent" (*) "*" (field_identifier) "parent" (;) ";" (field_declaration) "DockingIdentifier dockedTo;" (type_identifier) "DockingIdentifier" (field_identifier) "dockedTo" (;) ";" (field_declaration) "DockingPortStatus returnStatus();" (type_identifier) "DockingPortStatus" (function_declarator) "returnStatus()" (field_identifier) "returnStatus" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "unsigned int portID;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "portID" (;) ";" (field_declaration) "scene::IMeshSceneNode* portNode;" (type_identifier) "scene" (ERROR) "::IMeshSceneNode" (:) ":" (:) ":" (field_identifier) "IMeshSceneNode" (pointer_declarator) "* portNode" (*) "*" (field_identifier) "portNode" (;) ";" (field_declaration) "scene::IMeshSceneNode* helperNode;" (type_identifier) "scene" (ERROR) "::IMeshSceneNode" (:) ":" (:) ":" (field_identifier) "IMeshSceneNode" (pointer_declarator) "* helperNode" (*) "*" (field_identifier) "helperNode" (;) ";" (field_declaration) "int index;" (primitive_type) "int" (field_identifier) "index" (;) ";" (field_declaration) "bool docked;" (primitive_type) "bool" (field_identifier) "docked" (;) ";" (field_declaration) "core::vector3d<f32> position;" (type_identifier) "core" (ERROR) "::vector3d<f32>" (:) ":" (:) ":" (field_identifier) "vector3d" (<) "<" (field_identifier) "f32" (>) ">" (field_identifier) "position" (;) ";" (field_declaration) "core::vector3d<f32> approachDirection;" (type_identifier) "core" (ERROR) "::vector3d<f32>" (:) ":" (:) ":" (field_identifier) "vector3d" (<) "<" (field_identifier) "f32" (>) ">" (field_identifier) "approachDirection" (;) ";" (field_declaration) "core::vector3d<f32> referenceDirection;" (type_identifier) "core" (ERROR) "::vector3d<f32>" (:) ":" (:) ":" (field_identifier) "vector3d" (<) "<" (field_identifier) "f32" (>) ">" (field_identifier) "referenceDirection" (;) ";" (}) "}" (;) ";"
206
10
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.06, "nodes": 139, "errors": 0, "source_hash": "c7de69aed96f11fffa231a1f84db0adde426f9fa82ab6b77f4d40539483938fb", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <irrlicht.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<irrlicht.h>", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 6, "type": "declaration", "text": "class VesselSceneNode;", "parent": null, "children": [7], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 22}}, {"id": 7, "type": "identifier", "text": "VesselSceneNode", "parent": 6, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 21}}, {"id": 8, "type": "declaration", "text": "using namespace irr;", "parent": null, "children": [9, 10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 20}}, {"id": 9, "type": "type_identifier", "text": "using", "parent": 8, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 5}}, {"id": 10, "type": "identifier", "text": "namespace", "parent": 8, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 15}}, {"id": 11, "type": "ERROR", "text": "irr", "parent": 8, "children": [12], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 19}}, {"id": 12, "type": "identifier", "text": "irr", "parent": 11, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 19}}, {"id": 13, "type": "struct_specifier", "text": "struct DockingIdentifier\n{\n unsigned int vesselUID, portID;\n}", "parent": null, "children": [14, 15], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "DockingIdentifier", "parent": 13, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 24}}, {"id": 16, "type": "field_declaration", "text": "unsigned int vesselUID, portID;", "parent": 13, "children": [17, 20, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 35}}, {"id": 17, "type": "sized_type_specifier", "text": "unsigned int", "parent": 16, "children": [18, 19], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 16}}, {"id": 18, "type": "unsigned", "text": "unsigned", "parent": 17, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 16}}, {"id": 20, "type": "field_identifier", "text": "vesselUID", "parent": 16, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 26}}, {"id": 21, "type": "field_identifier", "text": "portID", "parent": 16, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 34}}, {"id": 22, "type": "struct_specifier", "text": "struct DockingPortStatus\n{\n bool docked;\n DockingIdentifier dockedTo;\n}", "parent": null, "children": [23, 24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 23, "type": "struct", "text": "struct", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 24, "type": "type_identifier", "text": "DockingPortStatus", "parent": 22, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 24}}, {"id": 25, "type": "field_declaration", "text": "bool docked;", "parent": 22, "children": [26, 27], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 26, "type": "primitive_type", "text": "bool", "parent": 25, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 27, "type": "field_identifier", "text": "docked", "parent": 25, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 15}}, {"id": 28, "type": "field_declaration", "text": "DockingIdentifier dockedTo;", "parent": 22, "children": [29, 30], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 31}}, {"id": 29, "type": "type_identifier", "text": "DockingIdentifier", "parent": 28, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 30, "type": "field_identifier", "text": "dockedTo", "parent": 28, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 30}}, {"id": 31, "type": "struct_specifier", "text": "struct OrbiterDockingPort\n{\n\tOrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n\t: position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n\tVesselSceneNode* parent;\n DockingIdentifier dockedTo;\n\n DockingPortStatus returnStatus();\n\n unsigned int portID;\n\tscene::IMeshSceneNode* portNode;\n\tscene::IMeshSceneNode* helperNode;\n\tint index;\n\tbool docked;\n\tcore::vector3d<f32> position;\n\tcore::vector3d<f32> approachDirection;\n\tcore::vector3d<f32> referenceDirection;\n}", "parent": null, "children": [32, 33], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 32, "type": "struct", "text": "struct", "parent": 31, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 33, "type": "type_identifier", "text": "OrbiterDockingPort", "parent": 31, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 25}}, {"id": 34, "type": "field_declaration", "text": "OrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n\t: position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n\tVesselSceneNode* parent;", "parent": 31, "children": [35, 36, 43, 44, 45, 53, 54, 67, 72, 79], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 24, "column": 25}}, {"id": 35, "type": "type_identifier", "text": "OrbiterDockingPort", "parent": 34, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 19}}, {"id": 36, "type": "ERROR", "text": "(core::vector3d<f32>", "parent": 34, "children": [37, 39, 40, 41, 42], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 39}}, {"id": 37, "type": "type_descriptor", "text": "core", "parent": 36, "children": [38], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 24}}, {"id": 38, "type": "type_identifier", "text": "core", "parent": 37, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 24}}, {"id": 39, "type": "field_identifier", "text": "vector3d", "parent": 36, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 34}}, {"id": 40, "type": "<", "text": "<", "parent": 36, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 41, "type": "field_identifier", "text": "f32", "parent": 36, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 38}}, {"id": 42, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 43, "type": "field_identifier", "text": "pos", "parent": 34, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 43}}, {"id": 44, "type": "field_identifier", "text": "core", "parent": 34, "children": [], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 49}}, {"id": 45, "type": "bitfield_clause", "text": ":vector3d<f32> appDir", "parent": 34, "children": [46], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 71}}, {"id": 46, "type": "binary_expression", "text": "vector3d<f32> appDir", "parent": 45, "children": [47, 51, 52], "start_point": {"row": 22, "column": 51}, "end_point": {"row": 22, "column": 71}}, {"id": 47, "type": "binary_expression", "text": "vector3d<f32", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 22, "column": 51}, "end_point": {"row": 22, "column": 63}}, {"id": 48, "type": "identifier", "text": "vector3d", "parent": 47, "children": [], "start_point": {"row": 22, "column": 51}, "end_point": {"row": 22, "column": 59}}, {"id": 49, "type": "<", "text": "<", "parent": 47, "children": [], "start_point": {"row": 22, "column": 59}, "end_point": {"row": 22, "column": 60}}, {"id": 50, "type": "identifier", "text": "f32", "parent": 47, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 63}}, {"id": 51, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 22, "column": 63}, "end_point": {"row": 22, "column": 64}}, {"id": 52, "type": "identifier", "text": "appDir", "parent": 46, "children": [], "start_point": {"row": 22, "column": 65}, "end_point": {"row": 22, "column": 71}}, {"id": 53, "type": "field_identifier", "text": "core", "parent": 34, "children": [], "start_point": {"row": 22, "column": 73}, "end_point": {"row": 22, "column": 77}}, {"id": 54, "type": "bitfield_clause", "text": "::vector3d<f32> refDir)\n\t: position(pos)", "parent": 34, "children": [55, 63], "start_point": {"row": 22, "column": 77}, "end_point": {"row": 23, "column": 16}}, {"id": 55, "type": "ERROR", "text": ":vector3d<f32> refDir)\n\t:", "parent": 54, "children": [56], "start_point": {"row": 22, "column": 78}, "end_point": {"row": 23, "column": 2}}, {"id": 56, "type": "binary_expression", "text": "vector3d<f32> refDir", "parent": 55, "children": [57, 61, 62], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 99}}, {"id": 57, "type": "binary_expression", "text": "vector3d<f32", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 91}}, {"id": 58, "type": "identifier", "text": "vector3d", "parent": 57, "children": [], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 87}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 22, "column": 87}, "end_point": {"row": 22, "column": 88}}, {"id": 60, "type": "identifier", "text": "f32", "parent": 57, "children": [], "start_point": {"row": 22, "column": 88}, "end_point": {"row": 22, "column": 91}}, {"id": 61, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 22, "column": 91}, "end_point": {"row": 22, "column": 92}}, {"id": 62, "type": "identifier", "text": "refDir", "parent": 56, "children": [], "start_point": {"row": 22, "column": 93}, "end_point": {"row": 22, "column": 99}}, {"id": 63, "type": "call_expression", "text": "position(pos)", "parent": 54, "children": [64, 65], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 16}}, {"id": 64, "type": "identifier", "text": "position", "parent": 63, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 11}}, {"id": 65, "type": "argument_list", "text": "(pos)", "parent": 63, "children": [66], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 16}}, {"id": 66, "type": "identifier", "text": "pos", "parent": 65, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 67, "type": "function_declarator", "text": "approachDirection(appDir)", "parent": 34, "children": [68, 69], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 43}}, {"id": 68, "type": "field_identifier", "text": "approachDirection", "parent": 67, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 35}}, {"id": 69, "type": "parameter_list", "text": "(appDir)", "parent": 67, "children": [70], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 43}}, {"id": 70, "type": "parameter_declaration", "text": "appDir", "parent": 69, "children": [71], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 42}}, {"id": 71, "type": "type_identifier", "text": "appDir", "parent": 70, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 42}}, {"id": 72, "type": "ERROR", "text": "referenceDirection(refDir) {}\n\tVesselSceneNode", "parent": 34, "children": [73, 78], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 24, "column": 16}}, {"id": 73, "type": "function_declarator", "text": "referenceDirection(refDir)", "parent": 72, "children": [74, 75], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 71}}, {"id": 74, "type": "field_identifier", "text": "referenceDirection", "parent": 73, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 63}}, {"id": 75, "type": "parameter_list", "text": "(refDir)", "parent": 73, "children": [76], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 71}}, {"id": 76, "type": "parameter_declaration", "text": "refDir", "parent": 75, "children": [77], "start_point": {"row": 23, "column": 64}, "end_point": {"row": 23, "column": 70}}, {"id": 77, "type": "type_identifier", "text": "refDir", "parent": 76, "children": [], "start_point": {"row": 23, "column": 64}, "end_point": {"row": 23, "column": 70}}, {"id": 78, "type": "field_identifier", "text": "VesselSceneNode", "parent": 72, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 16}}, {"id": 79, "type": "pointer_declarator", "text": "* parent", "parent": 34, "children": [80, 81], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 24}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 81, "type": "field_identifier", "text": "parent", "parent": 79, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 24}}, {"id": 82, "type": "field_declaration", "text": "DockingIdentifier dockedTo;", "parent": 31, "children": [83, 84], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 31}}, {"id": 83, "type": "type_identifier", "text": "DockingIdentifier", "parent": 82, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 21}}, {"id": 84, "type": "field_identifier", "text": "dockedTo", "parent": 82, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 30}}, {"id": 85, "type": "field_declaration", "text": "DockingPortStatus returnStatus();", "parent": 31, "children": [86, 87], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 37}}, {"id": 86, "type": "type_identifier", "text": "DockingPortStatus", "parent": 85, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 21}}, {"id": 87, "type": "function_declarator", "text": "returnStatus()", "parent": 85, "children": [88, 89], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 36}}, {"id": 88, "type": "field_identifier", "text": "returnStatus", "parent": 87, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 34}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 36}}, {"id": 90, "type": "field_declaration", "text": "unsigned int portID;", "parent": 31, "children": [91, 94], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 24}}, {"id": 91, "type": "sized_type_specifier", "text": "unsigned int", "parent": 90, "children": [92, 93], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 16}}, {"id": 92, "type": "unsigned", "text": "unsigned", "parent": 91, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 16}}, {"id": 94, "type": "field_identifier", "text": "portID", "parent": 90, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 23}}, {"id": 95, "type": "field_declaration", "text": "scene::IMeshSceneNode* portNode;", "parent": 31, "children": [96, 97, 99], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 33}}, {"id": 96, "type": "type_identifier", "text": "scene", "parent": 95, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 6}}, {"id": 97, "type": "ERROR", "text": "::IMeshSceneNode", "parent": 95, "children": [98], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 22}}, {"id": 98, "type": "field_identifier", "text": "IMeshSceneNode", "parent": 97, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 22}}, {"id": 99, "type": "pointer_declarator", "text": "* portNode", "parent": 95, "children": [100, 101], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 32}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 101, "type": "field_identifier", "text": "portNode", "parent": 99, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 32}}, {"id": 102, "type": "field_declaration", "text": "scene::IMeshSceneNode* helperNode;", "parent": 31, "children": [103, 104, 106], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 35}}, {"id": 103, "type": "type_identifier", "text": "scene", "parent": 102, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 6}}, {"id": 104, "type": "ERROR", "text": "::IMeshSceneNode", "parent": 102, "children": [105], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 22}}, {"id": 105, "type": "field_identifier", "text": "IMeshSceneNode", "parent": 104, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 22}}, {"id": 106, "type": "pointer_declarator", "text": "* helperNode", "parent": 102, "children": [107, 108], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 34}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 108, "type": "field_identifier", "text": "helperNode", "parent": 106, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 34}}, {"id": 109, "type": "field_declaration", "text": "int index;", "parent": 31, "children": [110, 111], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 11}}, {"id": 110, "type": "primitive_type", "text": "int", "parent": 109, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 4}}, {"id": 111, "type": "field_identifier", "text": "index", "parent": 109, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 10}}, {"id": 112, "type": "field_declaration", "text": "bool docked;", "parent": 31, "children": [113, 114], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 13}}, {"id": 113, "type": "primitive_type", "text": "bool", "parent": 112, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 5}}, {"id": 114, "type": "field_identifier", "text": "docked", "parent": 112, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 12}}, {"id": 115, "type": "field_declaration", "text": "core::vector3d<f32> position;", "parent": 31, "children": [116, 117, 122], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 30}}, {"id": 116, "type": "type_identifier", "text": "core", "parent": 115, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 117, "type": "ERROR", "text": "::vector3d<f32>", "parent": 115, "children": [118, 119, 120, 121], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 20}}, {"id": 118, "type": "field_identifier", "text": "vector3d", "parent": 117, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 15}}, {"id": 119, "type": "<", "text": "<", "parent": 117, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 120, "type": "field_identifier", "text": "f32", "parent": 117, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 19}}, {"id": 121, "type": ">", "text": ">", "parent": 117, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 122, "type": "field_identifier", "text": "position", "parent": 115, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 29}}, {"id": 123, "type": "field_declaration", "text": "core::vector3d<f32> approachDirection;", "parent": 31, "children": [124, 125, 130], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 39}}, {"id": 124, "type": "type_identifier", "text": "core", "parent": 123, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 125, "type": "ERROR", "text": "::vector3d<f32>", "parent": 123, "children": [126, 127, 128, 129], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 20}}, {"id": 126, "type": "field_identifier", "text": "vector3d", "parent": 125, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 15}}, {"id": 127, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 16}}, {"id": 128, "type": "field_identifier", "text": "f32", "parent": 125, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 19}}, {"id": 129, "type": ">", "text": ">", "parent": 125, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 130, "type": "field_identifier", "text": "approachDirection", "parent": 123, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 38}}, {"id": 131, "type": "field_declaration", "text": "core::vector3d<f32> referenceDirection;", "parent": 31, "children": [132, 133, 138], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 40}}, {"id": 132, "type": "type_identifier", "text": "core", "parent": 131, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 133, "type": "ERROR", "text": "::vector3d<f32>", "parent": 131, "children": [134, 135, 136, 137], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 20}}, {"id": 134, "type": "field_identifier", "text": "vector3d", "parent": 133, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 15}}, {"id": 135, "type": "<", "text": "<", "parent": 133, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 136, "type": "field_identifier", "text": "f32", "parent": 133, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 19}}, {"id": 137, "type": ">", "text": ">", "parent": 133, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 20}}, {"id": 138, "type": "field_identifier", "text": "referenceDirection", "parent": 131, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 39}}]}, "node_categories": {"declarations": {"functions": [67, 73, 87], "variables": [6, 8, 16, 25, 28, 34, 70, 76, 82, 85, 90, 95, 102, 109, 112, 115, 123, 131], "classes": [13, 14, 22, 23, 31, 32], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [46, 47, 56, 57, 63], "assignments": [], "loops": [], "conditionals": [7, 9, 10, 12, 15, 17, 20, 21, 24, 27, 29, 30, 33, 35, 38, 39, 41, 43, 44, 48, 50, 52, 53, 58, 60, 62, 64, 66, 68, 71, 74, 77, 78, 81, 83, 84, 86, 88, 91, 94, 96, 98, 101, 103, 105, 108, 111, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [45, 54]}}, "cross_language_map": {"function_declarations": [{"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "approachDirection(appDir)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "referenceDirection(refDir)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "returnStatus()"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "DockingIdentifier", "text_snippet": "struct DockingIdentifier\n{\n unsigned int vesselUID, portID;\n}"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 22, "universal_type": "class", "name": "DockingPortStatus", "text_snippet": "struct DockingPortStatus\n{\n bool docked;\n DockingIdentifier dockedTo;\n}"}, {"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 31, "universal_type": "class", "name": "OrbiterDockingPort", "text_snippet": "struct OrbiterDockingPort\n{\n\tOrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir,"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <irrlicht.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "//Copyright (c) 2015 <NAME>(meson800) and <NAME>(jedidia)\n//The MIT License - See ../../LICENSE for more info\n#pragma once\n#include <irrlicht.h>\n\nclass VesselSceneNode;\n\nusing namespace irr;\n\nstruct DockingIdentifier\n{\n unsigned int vesselUID, portID;\n};\n\nstruct DockingPortStatus\n{\n bool docked;\n DockingIdentifier dockedTo;\n};\n\nstruct OrbiterDockingPort\n{\n\tOrbiterDockingPort(core::vector3d<f32> pos, core::vector3d<f32> appDir, core::vector3d<f32> refDir)\n\t: position(pos), approachDirection(appDir), referenceDirection(refDir) {}\n\tVesselSceneNode* parent;\n DockingIdentifier dockedTo;\n\n DockingPortStatus returnStatus();\n\n unsigned int portID;\n\tscene::IMeshSceneNode* portNode;\n\tscene::IMeshSceneNode* helperNode;\n\tint index;\n\tbool docked;\n\tcore::vector3d<f32> position;\n\tcore::vector3d<f32> approachDirection;\n\tcore::vector3d<f32> referenceDirection;\n};\n"}
171
c
/* ChibiOS - Copyright (C) 2006..2015 <NAME> Copyright (C) 2015 <NAME>, TISA, (dismirlian (at) google's mail) 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 "hal.h" #include "usbh.h" #include "usbh/internal.h" #if HAL_USBH_USE_HUB #if !HAL_USE_USBH #error "USBHHUB needs HAL_USE_USBH" #endif #include <string.h> #include "usbh/dev/hub.h" #if USBHHUB_DEBUG_ENABLE_TRACE #define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) #define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__) #else #define udbgf(f, ...) do {} while(0) #define udbg(f, ...) do {} while(0) #endif #if USBHHUB_DEBUG_ENABLE_INFO #define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) #define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__) #else #define uinfof(f, ...) do {} while(0) #define uinfo(f, ...) do {} while(0) #endif #if USBHHUB_DEBUG_ENABLE_WARNINGS #define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) #define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__) #else #define uwarnf(f, ...) do {} while(0) #define uwarn(f, ...) do {} while(0) #endif #if USBHHUB_DEBUG_ENABLE_ERRORS #define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) #define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__) #else #define uerrf(f, ...) do {} while(0) #define uerr(f, ...) do {} while(0) #endif USBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES]; usbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS]; static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem); static void hub_unload(usbh_baseclassdriver_t *drv); static const usbh_classdriver_vmt_t usbhhubClassDriverVMT = { hub_load, hub_unload }; const usbh_classdriverinfo_t usbhhubClassDriverInfo = { 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT }; void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, USBHHubDriver *hub, uint8_t number) { memset(port, 0, sizeof(*port)); port->number = number; port->device.host = usbh; port->hub = hub; } usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint16_t wLength, uint8_t *buf) { if (hub == NULL) return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf); return usbhControlRequest(hub->dev, bmRequestType, bRequest, wValue, wIndex, wLength, buf); } static void _urb_complete(usbh_urb_t *urb) { USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData; switch (urb->status) { case USBH_URBSTATUS_TIMEOUT: /* the device NAKed */ udbg("HUB: no info"); hubdp->statuschange = 0; break; case USBH_URBSTATUS_OK: { uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; if (urb->actualLength != len) { uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); } if (urb->actualLength < len) len = urb->actualLength; if (len > 4) len = 4; uint8_t *sc = (uint8_t *)&hubdp->statuschange; uint8_t *r = hubdp->scbuff; while (len--) *sc++ |= *r++; uinfof("HUB: change, %08x", hubdp->statuschange); } break; case USBH_URBSTATUS_DISCONNECTED: uwarn("HUB: URB disconnected, aborting poll"); return; default: uerrf("HUB: URB status unexpected = %d", urb->status); break; } usbhURBObjectResetI(urb); usbhURBSubmitI(urb); } static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem) { int i; USBHHubDriver *hubdp; if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) return NULL; if (dev->devDesc.bDeviceProtocol != 0) return NULL; generic_iterator_t iep, icfg; if_iterator_t iif; cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, dev->basicConfigDesc.wTotalLength); if_iter_init(&iif, &icfg); if (!iif.valid) return NULL; const usbh_interface_descriptor_t *const ifdesc = if_get(&iif); if ((ifdesc->bInterfaceClass != 0x09) || (ifdesc->bInterfaceSubClass != 0x00) || (ifdesc->bInterfaceProtocol != 0x00)) { return NULL; } ep_iter_init(&iep, &iif); if (!iep.valid) return NULL; const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep); if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { return NULL; } /* alloc driver */ for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { if (USBHHUBD[i].dev == NULL) { hubdp = &USBHHUBD[i]; goto alloc_ok; } } uwarn("Can't alloc HUB driver"); /* can't alloc */ return NULL; alloc_ok: /* initialize the driver's variables */ hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED; hubdp->dev = dev; hubdp->ports = 0; usbhEPSetName(&dev->ctrl, "HUB[CTRL]"); /* read Hub descriptor */ uinfo("Read Hub descriptor"); if (usbhhubControlRequest(dev->host, hubdp, USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, USBH_REQ_GET_DESCRIPTOR, (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { hubdp->dev = NULL; return NULL; } const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc; uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", hubdesc->bNbrPorts, hubdesc->wHubCharacteristics, hubdesc->bPwrOn2PwrGood, hubdesc->bHubContrCurrent); /* Alloc ports */ uint8_t ports = hubdesc->bNbrPorts; for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { if (USBHPorts[i].hub == NULL) { uinfof("Alloc port %d", ports); _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); USBHPorts[i].next = hubdp->ports; hubdp->ports = &USBHPorts[i]; --ports; } } if (ports) { uwarn("Could not alloc all ports"); } /* link hub to the host's list */ list_add_tail(&hubdp->node, &dev->host->hubs); /* enable power to ports */ usbh_port_t *port = hubdp->ports; while (port) { uinfof("Enable power for port %d", port->number); usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); port = port->next; } if (hubdesc->bPwrOn2PwrGood) osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood); /* initialize the status change endpoint and trigger the first transfer */ usbhEPObjectInit(&hubdp->epint, dev, epdesc); usbhEPSetName(&hubdp->epint, "HUB[INT ]"); usbhEPOpen(&hubdp->epint); usbhURBObjectInit(&hubdp->urb, &hubdp->epint, _urb_complete, hubdp, hubdp->scbuff, (hubdesc->bNbrPorts + 8) / 8); osalSysLock(); usbhURBSubmitI(&hubdp->urb); osalOsRescheduleS(); osalSysUnlock(); return (usbh_baseclassdriver_t *)hubdp; } static void hub_unload(usbh_baseclassdriver_t *drv) { osalDbgCheck(drv != NULL); USBHHubDriver *const hubdp = (USBHHubDriver *)drv; /* close the status change endpoint (this cancels ongoing URBs) */ osalSysLock(); usbhEPCloseS(&hubdp->epint); osalSysUnlock(); /* de-alloc ports and unload drivers */ usbh_port_t *port = hubdp->ports; while (port) { _usbh_port_disconnected(port); port->hub = NULL; port = port->next; } /* unlink the hub from the host's list */ list_del(&hubdp->node); } void usbhhubObjectInit(USBHHubDriver *hubdp) { osalDbgCheck(hubdp != NULL); memset(hubdp, 0, sizeof(*hubdp)); hubdp->info = &usbhhubClassDriverInfo; } #else #if HAL_USE_USBH void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { memset(port, 0, sizeof(*port)); port->number = number; port->device.host = usbh; } #endif #endif
26.18
302
(translation_unit) "/* \n ChibiOS - Copyright (C) 2006..2015 <NAME> \n Copyright (C) 2015 <NAME>, TISA, (dismirlian (at) google's mail) \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#include "hal.h" \n#include "usbh.h" \n#include "usbh/internal.h" \n \n#if HAL_USBH_USE_HUB \n \n#if !HAL_USE_USBH \n#error "USBHHUB needs HAL_USE_USBH" \n#endif \n \n#include <string.h> \n#include "usbh/dev/hub.h" \n \n#if USBHHUB_DEBUG_ENABLE_TRACE \n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define udbgf(f, ...) do {} while(0) \n#define udbg(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_INFO \n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uinfof(f, ...) do {} while(0) \n#define uinfo(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_WARNINGS \n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uwarnf(f, ...) do {} while(0) \n#define uwarn(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_ERRORS \n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uerrf(f, ...) do {} while(0) \n#define uerr(f, ...) do {} while(0) \n#endif \n \n \nUSBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES]; \nusbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS]; \n \nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem); \nstatic void hub_unload(usbh_baseclassdriver_t *drv); \nstatic const usbh_classdriver_vmt_t usbhhubClassDriverVMT = { \n hub_load, \n hub_unload \n}; \nconst usbh_classdriverinfo_t usbhhubClassDriverInfo = { \n 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT \n}; \n \n \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, \n USBHHubDriver *hub, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n port->hub = hub; \n} \n \nusbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub, \n uint8_t bmRequestType, \n uint8_t bRequest, \n uint16_t wValue, \n uint16_t wIndex, \n uint16_t wLength, \n uint8_t *buf) { \n if (hub == NULL) \n return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n \n return usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n} \n \n \nstatic void _urb_complete(usbh_urb_t *urb) { \n \n USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData; \n switch (urb->status) { \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n } \n \n usbhURBObjectResetI(urb); \n usbhURBSubmitI(urb); \n} \n \nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem) { \n int i; \n \n USBHHubDriver *hubdp; \n \n if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) \n return NULL; \n \n if (dev->devDesc.bDeviceProtocol != 0) \n return NULL; \n \n generic_iterator_t iep, icfg; \n if_iterator_t iif; \n \n cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength); \n \n if_iter_init(&iif, &icfg); \n if (!iif.valid) \n return NULL; \n const usbh_interface_descriptor_t *const ifdesc = if_get(&iif); \n if ((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)) { \n return NULL; \n } \n \n ep_iter_init(&iep, &iif); \n if (!iep.valid) \n return NULL; \n const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep); \n if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { \n return NULL; \n } \n \n \n /* alloc driver */ \n for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n } \n \n uwarn("Can't alloc HUB driver"); \n \n /* can't alloc */ \n return NULL; \n \nalloc_ok: \n /* initialize the driver's variables */ \n hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED; \n hubdp->dev = dev; \n hubdp->ports = 0; \n \n usbhEPSetName(&dev->ctrl, "HUB[CTRL]"); \n \n /* read Hub descriptor */ \n uinfo("Read Hub descriptor"); \n if (usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { \n hubdp->dev = NULL; \n return NULL; \n } \n \n const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc; \n \n uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent); \n \n /* Alloc ports */ \n uint8_t ports = hubdesc->bNbrPorts; \n for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n } \n \n if (ports) { \n uwarn("Could not alloc all ports"); \n } \n \n /* link hub to the host's list */ \n list_add_tail(&hubdp->node, &dev->host->hubs); \n \n /* enable power to ports */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n } \n \n if (hubdesc->bPwrOn2PwrGood) \n osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood); \n \n /* initialize the status change endpoint and trigger the first transfer */ \n usbhEPObjectInit(&hubdp->epint, dev, epdesc); \n usbhEPSetName(&hubdp->epint, "HUB[INT ]"); \n usbhEPOpen(&hubdp->epint); \n \n usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8); \n \n osalSysLock(); \n usbhURBSubmitI(&hubdp->urb); \n osalOsRescheduleS(); \n osalSysUnlock(); \n \n return (usbh_baseclassdriver_t *)hubdp; \n} \n \nstatic void hub_unload(usbh_baseclassdriver_t *drv) { \n osalDbgCheck(drv != NULL); \n USBHHubDriver *const hubdp = (USBHHubDriver *)drv; \n \n /* close the status change endpoint (this cancels ongoing URBs) */ \n osalSysLock(); \n usbhEPCloseS(&hubdp->epint); \n osalSysUnlock(); \n \n /* de-alloc ports and unload drivers */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n } \n \n /* unlink the hub from the host's list */ \n list_del(&hubdp->node); \n \n} \n \nvoid usbhhubObjectInit(USBHHubDriver *hubdp) { \n osalDbgCheck(hubdp != NULL); \n memset(hubdp, 0, sizeof(*hubdp)); \n hubdp->info = &usbhhubClassDriverInfo; \n} \n#else \n \n#if HAL_USE_USBH \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n} \n#endif \n \n#endif \n" (comment) "/* \n ChibiOS - Copyright (C) 2006..2015 <NAME> \n Copyright (C) 2015 <NAME>, TISA, (dismirlian (at) google's mail) \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_include) "#include "hal.h" \n" (#include) "#include" (string_literal) ""hal.h"" (") """ (string_content) "hal.h" (") """ (preproc_include) "#include "usbh.h" \n" (#include) "#include" (string_literal) ""usbh.h"" (") """ (string_content) "usbh.h" (") """ (preproc_include) "#include "usbh/internal.h" \n" (#include) "#include" (string_literal) ""usbh/internal.h"" (") """ (string_content) "usbh/internal.h" (") """ (preproc_if) "#if HAL_USBH_USE_HUB \n \n#if !HAL_USE_USBH \n#error "USBHHUB needs HAL_USE_USBH" \n#endif \n \n#include <string.h> \n#include "usbh/dev/hub.h" \n \n#if USBHHUB_DEBUG_ENABLE_TRACE \n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define udbgf(f, ...) do {} while(0) \n#define udbg(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_INFO \n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uinfof(f, ...) do {} while(0) \n#define uinfo(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_WARNINGS \n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uwarnf(f, ...) do {} while(0) \n#define uwarn(f, ...) do {} while(0) \n#endif \n \n#if USBHHUB_DEBUG_ENABLE_ERRORS \n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uerrf(f, ...) do {} while(0) \n#define uerr(f, ...) do {} while(0) \n#endif \n \n \nUSBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES]; \nusbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS]; \n \nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem); \nstatic void hub_unload(usbh_baseclassdriver_t *drv); \nstatic const usbh_classdriver_vmt_t usbhhubClassDriverVMT = { \n hub_load, \n hub_unload \n}; \nconst usbh_classdriverinfo_t usbhhubClassDriverInfo = { \n 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT \n}; \n \n \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, \n USBHHubDriver *hub, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n port->hub = hub; \n} \n \nusbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub, \n uint8_t bmRequestType, \n uint8_t bRequest, \n uint16_t wValue, \n uint16_t wIndex, \n uint16_t wLength, \n uint8_t *buf) { \n if (hub == NULL) \n return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n \n return usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n} \n \n \nstatic void _urb_complete(usbh_urb_t *urb) { \n \n USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData; \n switch (urb->status) { \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n } \n \n usbhURBObjectResetI(urb); \n usbhURBSubmitI(urb); \n} \n \nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem) { \n int i; \n \n USBHHubDriver *hubdp; \n \n if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) \n return NULL; \n \n if (dev->devDesc.bDeviceProtocol != 0) \n return NULL; \n \n generic_iterator_t iep, icfg; \n if_iterator_t iif; \n \n cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength); \n \n if_iter_init(&iif, &icfg); \n if (!iif.valid) \n return NULL; \n const usbh_interface_descriptor_t *const ifdesc = if_get(&iif); \n if ((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)) { \n return NULL; \n } \n \n ep_iter_init(&iep, &iif); \n if (!iep.valid) \n return NULL; \n const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep); \n if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { \n return NULL; \n } \n \n \n /* alloc driver */ \n for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n } \n \n uwarn("Can't alloc HUB driver"); \n \n /* can't alloc */ \n return NULL; \n \nalloc_ok: \n /* initialize the driver's variables */ \n hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED; \n hubdp->dev = dev; \n hubdp->ports = 0; \n \n usbhEPSetName(&dev->ctrl, "HUB[CTRL]"); \n \n /* read Hub descriptor */ \n uinfo("Read Hub descriptor"); \n if (usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { \n hubdp->dev = NULL; \n return NULL; \n } \n \n const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc; \n \n uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent); \n \n /* Alloc ports */ \n uint8_t ports = hubdesc->bNbrPorts; \n for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n } \n \n if (ports) { \n uwarn("Could not alloc all ports"); \n } \n \n /* link hub to the host's list */ \n list_add_tail(&hubdp->node, &dev->host->hubs); \n \n /* enable power to ports */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n } \n \n if (hubdesc->bPwrOn2PwrGood) \n osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood); \n \n /* initialize the status change endpoint and trigger the first transfer */ \n usbhEPObjectInit(&hubdp->epint, dev, epdesc); \n usbhEPSetName(&hubdp->epint, "HUB[INT ]"); \n usbhEPOpen(&hubdp->epint); \n \n usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8); \n \n osalSysLock(); \n usbhURBSubmitI(&hubdp->urb); \n osalOsRescheduleS(); \n osalSysUnlock(); \n \n return (usbh_baseclassdriver_t *)hubdp; \n} \n \nstatic void hub_unload(usbh_baseclassdriver_t *drv) { \n osalDbgCheck(drv != NULL); \n USBHHubDriver *const hubdp = (USBHHubDriver *)drv; \n \n /* close the status change endpoint (this cancels ongoing URBs) */ \n osalSysLock(); \n usbhEPCloseS(&hubdp->epint); \n osalSysUnlock(); \n \n /* de-alloc ports and unload drivers */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n } \n \n /* unlink the hub from the host's list */ \n list_del(&hubdp->node); \n \n} \n \nvoid usbhhubObjectInit(USBHHubDriver *hubdp) { \n osalDbgCheck(hubdp != NULL); \n memset(hubdp, 0, sizeof(*hubdp)); \n hubdp->info = &usbhhubClassDriverInfo; \n} \n#else \n \n#if HAL_USE_USBH \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n} \n#endif \n \n#endif" (#if) "#if" (identifier) "HAL_USBH_USE_HUB" ( ) "\n" (preproc_if) "#if !HAL_USE_USBH \n#error "USBHHUB needs HAL_USE_USBH" \n#endif" (#if) "#if" (unary_expression) "!HAL_USE_USBH" (!) "!" (identifier) "HAL_USE_USBH" ( ) "\n" (preproc_call) "#error "USBHHUB needs HAL_USE_USBH" \n" (preproc_directive) "#error" (preproc_arg) ""USBHHUB needs HAL_USE_USBH" " (#endif) "#endif" (preproc_include) "#include <string.h> \n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "usbh/dev/hub.h" \n" (#include) "#include" (string_literal) ""usbh/dev/hub.h"" (") """ (string_content) "usbh/dev/hub.h" (") """ (preproc_if) "#if USBHHUB_DEBUG_ENABLE_TRACE \n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define udbgf(f, ...) do {} while(0) \n#define udbg(f, ...) do {} while(0) \n#endif" (#if) "#if" (identifier) "USBHHUB_DEBUG_ENABLE_TRACE" ( ) "\n" (preproc_function_def) "#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "udbgf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPrintf(f, ##__VA_ARGS__) " (preproc_function_def) "#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "udbg" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPuts(f, ##__VA_ARGS__) " (preproc_else) "#else \n#define udbgf(f, ...) do {} while(0) \n#define udbg(f, ...) do {} while(0) \n" (#else) "#else" (preproc_function_def) "#define udbgf(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "udbgf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (preproc_function_def) "#define udbg(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "udbg" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (#endif) "#endif" (preproc_if) "#if USBHHUB_DEBUG_ENABLE_INFO \n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uinfof(f, ...) do {} while(0) \n#define uinfo(f, ...) do {} while(0) \n#endif" (#if) "#if" (identifier) "USBHHUB_DEBUG_ENABLE_INFO" ( ) "\n" (preproc_function_def) "#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uinfof" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPrintf(f, ##__VA_ARGS__) " (preproc_function_def) "#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uinfo" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPuts(f, ##__VA_ARGS__) " (preproc_else) "#else \n#define uinfof(f, ...) do {} while(0) \n#define uinfo(f, ...) do {} while(0) \n" (#else) "#else" (preproc_function_def) "#define uinfof(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uinfof" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (preproc_function_def) "#define uinfo(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uinfo" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (#endif) "#endif" (preproc_if) "#if USBHHUB_DEBUG_ENABLE_WARNINGS \n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uwarnf(f, ...) do {} while(0) \n#define uwarn(f, ...) do {} while(0) \n#endif" (#if) "#if" (identifier) "USBHHUB_DEBUG_ENABLE_WARNINGS" ( ) "\n" (preproc_function_def) "#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uwarnf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPrintf(f, ##__VA_ARGS__) " (preproc_function_def) "#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uwarn" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPuts(f, ##__VA_ARGS__) " (preproc_else) "#else \n#define uwarnf(f, ...) do {} while(0) \n#define uwarn(f, ...) do {} while(0) \n" (#else) "#else" (preproc_function_def) "#define uwarnf(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uwarnf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (preproc_function_def) "#define uwarn(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uwarn" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (#endif) "#endif" (preproc_if) "#if USBHHUB_DEBUG_ENABLE_ERRORS \n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n#else \n#define uerrf(f, ...) do {} while(0) \n#define uerr(f, ...) do {} while(0) \n#endif" (#if) "#if" (identifier) "USBHHUB_DEBUG_ENABLE_ERRORS" ( ) "\n" (preproc_function_def) "#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uerrf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPrintf(f, ##__VA_ARGS__) " (preproc_function_def) "#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__) \n" (#define) "#define" (identifier) "uerr" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "usbDbgPuts(f, ##__VA_ARGS__) " (preproc_else) "#else \n#define uerrf(f, ...) do {} while(0) \n#define uerr(f, ...) do {} while(0) \n" (#else) "#else" (preproc_function_def) "#define uerrf(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uerrf" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (preproc_function_def) "#define uerr(f, ...) do {} while(0) \n" (#define) "#define" (identifier) "uerr" (preproc_params) "(f, ...)" (() "(" (identifier) "f" (,) "," (...) "..." ()) ")" (preproc_arg) "do {} while(0) " (#endif) "#endif" (declaration) "USBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES];" (type_identifier) "USBHHubDriver" (array_declarator) "USBHHUBD[HAL_USBHHUB_MAX_INSTANCES]" (identifier) "USBHHUBD" ([) "[" (identifier) "HAL_USBHHUB_MAX_INSTANCES" (]) "]" (;) ";" (declaration) "usbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS];" (type_identifier) "usbh_port_t" (array_declarator) "USBHPorts[HAL_USBHHUB_MAX_PORTS]" (identifier) "USBHPorts" ([) "[" (identifier) "HAL_USBHHUB_MAX_PORTS" (]) "]" (;) ";" (declaration) "static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem);" (storage_class_specifier) "static" (static) "static" (type_identifier) "usbh_baseclassdriver_t" (pointer_declarator) "*hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)" (*) "*" (function_declarator) "hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)" (identifier) "hub_load" (parameter_list) "(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)" (() "(" (parameter_declaration) "usbh_device_t *dev" (type_identifier) "usbh_device_t" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "const uint8_t *descriptor" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "*descriptor" (*) "*" (identifier) "descriptor" (,) "," (parameter_declaration) "uint16_t rem" (primitive_type) "uint16_t" (identifier) "rem" ()) ")" (;) ";" (declaration) "static void hub_unload(usbh_baseclassdriver_t *drv);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "hub_unload(usbh_baseclassdriver_t *drv)" (identifier) "hub_unload" (parameter_list) "(usbh_baseclassdriver_t *drv)" (() "(" (parameter_declaration) "usbh_baseclassdriver_t *drv" (type_identifier) "usbh_baseclassdriver_t" (pointer_declarator) "*drv" (*) "*" (identifier) "drv" ()) ")" (;) ";" (declaration) "static const usbh_classdriver_vmt_t usbhhubClassDriverVMT = { \n hub_load, \n hub_unload \n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "usbh_classdriver_vmt_t" (init_declarator) "usbhhubClassDriverVMT = { \n hub_load, \n hub_unload \n}" (identifier) "usbhhubClassDriverVMT" (=) "=" (initializer_list) "{ \n hub_load, \n hub_unload \n}" ({) "{" (identifier) "hub_load" (,) "," (identifier) "hub_unload" (}) "}" (;) ";" (declaration) "const usbh_classdriverinfo_t usbhhubClassDriverInfo = { \n 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT \n};" (type_qualifier) "const" (const) "const" (type_identifier) "usbh_classdriverinfo_t" (init_declarator) "usbhhubClassDriverInfo = { \n 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT \n}" (identifier) "usbhhubClassDriverInfo" (=) "=" (initializer_list) "{ \n 0x09, 0x00, -1, "HUB", &usbhhubClassDriverVMT \n}" ({) "{" (number_literal) "0x09" (,) "," (number_literal) "0x00" (,) "," (number_literal) "-1" (,) "," (string_literal) ""HUB"" (") """ (string_content) "HUB" (") """ (,) "," (pointer_expression) "&usbhhubClassDriverVMT" (&) "&" (identifier) "usbhhubClassDriverVMT" (}) "}" (;) ";" (function_definition) "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, \n USBHHubDriver *hub, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n port->hub = hub; \n}" (primitive_type) "void" (function_declarator) "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, \n USBHHubDriver *hub, uint8_t number)" (identifier) "_usbhub_port_object_init" (parameter_list) "(usbh_port_t *port, USBHDriver *usbh, \n USBHHubDriver *hub, uint8_t number)" (() "(" (parameter_declaration) "usbh_port_t *port" (type_identifier) "usbh_port_t" (pointer_declarator) "*port" (*) "*" (identifier) "port" (,) "," (parameter_declaration) "USBHDriver *usbh" (type_identifier) "USBHDriver" (pointer_declarator) "*usbh" (*) "*" (identifier) "usbh" (,) "," (parameter_declaration) "USBHHubDriver *hub" (type_identifier) "USBHHubDriver" (pointer_declarator) "*hub" (*) "*" (identifier) "hub" (,) "," (parameter_declaration) "uint8_t number" (primitive_type) "uint8_t" (identifier) "number" ()) ")" (compound_statement) "{ \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n port->hub = hub; \n}" ({) "{" (expression_statement) "memset(port, 0, sizeof(*port));" (call_expression) "memset(port, 0, sizeof(*port))" (identifier) "memset" (argument_list) "(port, 0, sizeof(*port))" (() "(" (identifier) "port" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(*port)" (sizeof) "sizeof" (parenthesized_expression) "(*port)" (() "(" (pointer_expression) "*port" (*) "*" (identifier) "port" ()) ")" ()) ")" (;) ";" (expression_statement) "port->number = number;" (assignment_expression) "port->number = number" (field_expression) "port->number" (identifier) "port" (->) "->" (field_identifier) "number" (=) "=" (identifier) "number" (;) ";" (expression_statement) "port->device.host = usbh;" (assignment_expression) "port->device.host = usbh" (field_expression) "port->device.host" (field_expression) "port->device" (identifier) "port" (->) "->" (field_identifier) "device" (.) "." (field_identifier) "host" (=) "=" (identifier) "usbh" (;) ";" (expression_statement) "port->hub = hub;" (assignment_expression) "port->hub = hub" (field_expression) "port->hub" (identifier) "port" (->) "->" (field_identifier) "hub" (=) "=" (identifier) "hub" (;) ";" (}) "}" (function_definition) "usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub, \n uint8_t bmRequestType, \n uint8_t bRequest, \n uint16_t wValue, \n uint16_t wIndex, \n uint16_t wLength, \n uint8_t *buf) { \n if (hub == NULL) \n return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n \n return usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n}" (type_identifier) "usbh_urbstatus_t" (function_declarator) "usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub, \n uint8_t bmRequestType, \n uint8_t bRequest, \n uint16_t wValue, \n uint16_t wIndex, \n uint16_t wLength, \n uint8_t *buf)" (identifier) "usbhhubControlRequest" (parameter_list) "(USBHDriver *host, USBHHubDriver *hub, \n uint8_t bmRequestType, \n uint8_t bRequest, \n uint16_t wValue, \n uint16_t wIndex, \n uint16_t wLength, \n uint8_t *buf)" (() "(" (parameter_declaration) "USBHDriver *host" (type_identifier) "USBHDriver" (pointer_declarator) "*host" (*) "*" (identifier) "host" (,) "," (parameter_declaration) "USBHHubDriver *hub" (type_identifier) "USBHHubDriver" (pointer_declarator) "*hub" (*) "*" (identifier) "hub" (,) "," (parameter_declaration) "uint8_t bmRequestType" (primitive_type) "uint8_t" (identifier) "bmRequestType" (,) "," (parameter_declaration) "uint8_t bRequest" (primitive_type) "uint8_t" (identifier) "bRequest" (,) "," (parameter_declaration) "uint16_t wValue" (primitive_type) "uint16_t" (identifier) "wValue" (,) "," (parameter_declaration) "uint16_t wIndex" (primitive_type) "uint16_t" (identifier) "wIndex" (,) "," (parameter_declaration) "uint16_t wLength" (primitive_type) "uint16_t" (identifier) "wLength" (,) "," (parameter_declaration) "uint8_t *buf" (primitive_type) "uint8_t" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" ()) ")" (compound_statement) "{ \n if (hub == NULL) \n return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n \n return usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf); \n}" ({) "{" (if_statement) "if (hub == NULL) \n return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);" (if) "if" (parenthesized_expression) "(hub == NULL)" (() "(" (binary_expression) "hub == NULL" (identifier) "hub" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);" (return) "return" (call_expression) "usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf)" (identifier) "usbh_lld_root_hub_request" (argument_list) "(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf)" (() "(" (identifier) "host" (,) "," (identifier) "bmRequestType" (,) "," (identifier) "bRequest" (,) "," (identifier) "wValue" (,) "," (identifier) "wIndex" (,) "," (identifier) "wLength" (,) "," (identifier) "buf" ()) ")" (;) ";" (return_statement) "return usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf);" (return) "return" (call_expression) "usbhControlRequest(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf)" (identifier) "usbhControlRequest" (argument_list) "(hub->dev, \n bmRequestType, bRequest, wValue, wIndex, wLength, buf)" (() "(" (field_expression) "hub->dev" (identifier) "hub" (->) "->" (field_identifier) "dev" (,) "," (identifier) "bmRequestType" (,) "," (identifier) "bRequest" (,) "," (identifier) "wValue" (,) "," (identifier) "wIndex" (,) "," (identifier) "wLength" (,) "," (identifier) "buf" ()) ")" (;) ";" (}) "}" (function_definition) "static void _urb_complete(usbh_urb_t *urb) { \n \n USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData; \n switch (urb->status) { \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n } \n \n usbhURBObjectResetI(urb); \n usbhURBSubmitI(urb); \n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "_urb_complete(usbh_urb_t *urb)" (identifier) "_urb_complete" (parameter_list) "(usbh_urb_t *urb)" (() "(" (parameter_declaration) "usbh_urb_t *urb" (type_identifier) "usbh_urb_t" (pointer_declarator) "*urb" (*) "*" (identifier) "urb" ()) ")" (compound_statement) "{ \n \n USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData; \n switch (urb->status) { \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n } \n \n usbhURBObjectResetI(urb); \n usbhURBSubmitI(urb); \n}" ({) "{" (declaration) "USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData;" (type_identifier) "USBHHubDriver" (init_declarator) "*const hubdp = (USBHHubDriver *)urb->userData" (pointer_declarator) "*const hubdp" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "hubdp" (=) "=" (cast_expression) "(USBHHubDriver *)urb->userData" (() "(" (type_descriptor) "USBHHubDriver *" (type_identifier) "USBHHubDriver" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "urb->userData" (identifier) "urb" (->) "->" (field_identifier) "userData" (;) ";" (switch_statement) "switch (urb->status) { \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n }" (switch) "switch" (parenthesized_expression) "(urb->status)" (() "(" (field_expression) "urb->status" (identifier) "urb" (->) "->" (field_identifier) "status" ()) ")" (compound_statement) "{ \n case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break; \n case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break; \n case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return; \n default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break; \n }" ({) "{" (case_statement) "case USBH_URBSTATUS_TIMEOUT: \n /* the device NAKed */ \n udbg("HUB: no info"); \n hubdp->statuschange = 0; \n break;" (case) "case" (identifier) "USBH_URBSTATUS_TIMEOUT" (:) ":" (comment) "/* the device NAKed */" (expression_statement) "udbg("HUB: no info");" (call_expression) "udbg("HUB: no info")" (identifier) "udbg" (argument_list) "("HUB: no info")" (() "(" (string_literal) ""HUB: no info"" (") """ (string_content) "HUB: no info" (") """ ()) ")" (;) ";" (expression_statement) "hubdp->statuschange = 0;" (assignment_expression) "hubdp->statuschange = 0" (field_expression) "hubdp->statuschange" (identifier) "hubdp" (->) "->" (field_identifier) "statuschange" (=) "=" (number_literal) "0" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case USBH_URBSTATUS_OK: { \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n } break;" (case) "case" (identifier) "USBH_URBSTATUS_OK" (:) ":" (compound_statement) "{ \n uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; \n if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n } \n \n if (urb->actualLength < len) \n len = urb->actualLength; \n \n if (len > 4) \n len = 4; \n \n uint8_t *sc = (uint8_t *)&hubdp->statuschange; \n uint8_t *r = hubdp->scbuff; \n while (len--) \n *sc++ |= *r++; \n \n uinfof("HUB: change, %08x", hubdp->statuschange); \n }" ({) "{" (declaration) "uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;" (primitive_type) "uint8_t" (init_declarator) "len = hubdp->hubDesc.bNbrPorts / 8 + 1" (identifier) "len" (=) "=" (binary_expression) "hubdp->hubDesc.bNbrPorts / 8 + 1" (binary_expression) "hubdp->hubDesc.bNbrPorts / 8" (field_expression) "hubdp->hubDesc.bNbrPorts" (field_expression) "hubdp->hubDesc" (identifier) "hubdp" (->) "->" (field_identifier) "hubDesc" (.) "." (field_identifier) "bNbrPorts" (/) "/" (number_literal) "8" (+) "+" (number_literal) "1" (;) ";" (if_statement) "if (urb->actualLength != len) { \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n }" (if) "if" (parenthesized_expression) "(urb->actualLength != len)" (() "(" (binary_expression) "urb->actualLength != len" (field_expression) "urb->actualLength" (identifier) "urb" (->) "->" (field_identifier) "actualLength" (!=) "!=" (identifier) "len" ()) ")" (compound_statement) "{ \n uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength); \n }" ({) "{" (expression_statement) "uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength);" (call_expression) "uwarnf("Expected %d status change bytes but got %d", len, urb->actualLength)" (identifier) "uwarnf" (argument_list) "("Expected %d status change bytes but got %d", len, urb->actualLength)" (() "(" (string_literal) ""Expected %d status change bytes but got %d"" (") """ (string_content) "Expected %d status change bytes but got %d" (") """ (,) "," (identifier) "len" (,) "," (field_expression) "urb->actualLength" (identifier) "urb" (->) "->" (field_identifier) "actualLength" ()) ")" (;) ";" (}) "}" (if_statement) "if (urb->actualLength < len) \n len = urb->actualLength;" (if) "if" (parenthesized_expression) "(urb->actualLength < len)" (() "(" (binary_expression) "urb->actualLength < len" (field_expression) "urb->actualLength" (identifier) "urb" (->) "->" (field_identifier) "actualLength" (<) "<" (identifier) "len" ()) ")" (expression_statement) "len = urb->actualLength;" (assignment_expression) "len = urb->actualLength" (identifier) "len" (=) "=" (field_expression) "urb->actualLength" (identifier) "urb" (->) "->" (field_identifier) "actualLength" (;) ";" (if_statement) "if (len > 4) \n len = 4;" (if) "if" (parenthesized_expression) "(len > 4)" (() "(" (binary_expression) "len > 4" (identifier) "len" (>) ">" (number_literal) "4" ()) ")" (expression_statement) "len = 4;" (assignment_expression) "len = 4" (identifier) "len" (=) "=" (number_literal) "4" (;) ";" (declaration) "uint8_t *sc = (uint8_t *)&hubdp->statuschange;" (primitive_type) "uint8_t" (init_declarator) "*sc = (uint8_t *)&hubdp->statuschange" (pointer_declarator) "*sc" (*) "*" (identifier) "sc" (=) "=" (cast_expression) "(uint8_t *)&hubdp->statuschange" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&hubdp->statuschange" (&) "&" (field_expression) "hubdp->statuschange" (identifier) "hubdp" (->) "->" (field_identifier) "statuschange" (;) ";" (declaration) "uint8_t *r = hubdp->scbuff;" (primitive_type) "uint8_t" (init_declarator) "*r = hubdp->scbuff" (pointer_declarator) "*r" (*) "*" (identifier) "r" (=) "=" (field_expression) "hubdp->scbuff" (identifier) "hubdp" (->) "->" (field_identifier) "scbuff" (;) ";" (while_statement) "while (len--) \n *sc++ |= *r++;" (while) "while" (parenthesized_expression) "(len--)" (() "(" (update_expression) "len--" (identifier) "len" (--) "--" ()) ")" (expression_statement) "*sc++ |= *r++;" (assignment_expression) "*sc++ |= *r++" (pointer_expression) "*sc++" (*) "*" (update_expression) "sc++" (identifier) "sc" (++) "++" (|=) "|=" (pointer_expression) "*r++" (*) "*" (update_expression) "r++" (identifier) "r" (++) "++" (;) ";" (expression_statement) "uinfof("HUB: change, %08x", hubdp->statuschange);" (call_expression) "uinfof("HUB: change, %08x", hubdp->statuschange)" (identifier) "uinfof" (argument_list) "("HUB: change, %08x", hubdp->statuschange)" (() "(" (string_literal) ""HUB: change, %08x"" (") """ (string_content) "HUB: change, %08x" (") """ (,) "," (field_expression) "hubdp->statuschange" (identifier) "hubdp" (->) "->" (field_identifier) "statuschange" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case USBH_URBSTATUS_DISCONNECTED: \n uwarn("HUB: URB disconnected, aborting poll"); \n return;" (case) "case" (identifier) "USBH_URBSTATUS_DISCONNECTED" (:) ":" (expression_statement) "uwarn("HUB: URB disconnected, aborting poll");" (call_expression) "uwarn("HUB: URB disconnected, aborting poll")" (identifier) "uwarn" (argument_list) "("HUB: URB disconnected, aborting poll")" (() "(" (string_literal) ""HUB: URB disconnected, aborting poll"" (") """ (string_content) "HUB: URB disconnected, aborting poll" (") """ ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (case_statement) "default: \n uerrf("HUB: URB status unexpected = %d", urb->status); \n break;" (default) "default" (:) ":" (expression_statement) "uerrf("HUB: URB status unexpected = %d", urb->status);" (call_expression) "uerrf("HUB: URB status unexpected = %d", urb->status)" (identifier) "uerrf" (argument_list) "("HUB: URB status unexpected = %d", urb->status)" (() "(" (string_literal) ""HUB: URB status unexpected = %d"" (") """ (string_content) "HUB: URB status unexpected = %d" (") """ (,) "," (field_expression) "urb->status" (identifier) "urb" (->) "->" (field_identifier) "status" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "usbhURBObjectResetI(urb);" (call_expression) "usbhURBObjectResetI(urb)" (identifier) "usbhURBObjectResetI" (argument_list) "(urb)" (() "(" (identifier) "urb" ()) ")" (;) ";" (expression_statement) "usbhURBSubmitI(urb);" (call_expression) "usbhURBSubmitI(urb)" (identifier) "usbhURBSubmitI" (argument_list) "(urb)" (() "(" (identifier) "urb" ()) ")" (;) ";" (}) "}" (function_definition) "static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem) { \n int i; \n \n USBHHubDriver *hubdp; \n \n if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) \n return NULL; \n \n if (dev->devDesc.bDeviceProtocol != 0) \n return NULL; \n \n generic_iterator_t iep, icfg; \n if_iterator_t iif; \n \n cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength); \n \n if_iter_init(&iif, &icfg); \n if (!iif.valid) \n return NULL; \n const usbh_interface_descriptor_t *const ifdesc = if_get(&iif); \n if ((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)) { \n return NULL; \n } \n \n ep_iter_init(&iep, &iif); \n if (!iep.valid) \n return NULL; \n const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep); \n if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { \n return NULL; \n } \n \n \n /* alloc driver */ \n for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n } \n \n uwarn("Can't alloc HUB driver"); \n \n /* can't alloc */ \n return NULL; \n \nalloc_ok: \n /* initialize the driver's variables */ \n hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED; \n hubdp->dev = dev; \n hubdp->ports = 0; \n \n usbhEPSetName(&dev->ctrl, "HUB[CTRL]"); \n \n /* read Hub descriptor */ \n uinfo("Read Hub descriptor"); \n if (usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { \n hubdp->dev = NULL; \n return NULL; \n } \n \n const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc; \n \n uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent); \n \n /* Alloc ports */ \n uint8_t ports = hubdesc->bNbrPorts; \n for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n } \n \n if (ports) { \n uwarn("Could not alloc all ports"); \n } \n \n /* link hub to the host's list */ \n list_add_tail(&hubdp->node, &dev->host->hubs); \n \n /* enable power to ports */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n } \n \n if (hubdesc->bPwrOn2PwrGood) \n osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood); \n \n /* initialize the status change endpoint and trigger the first transfer */ \n usbhEPObjectInit(&hubdp->epint, dev, epdesc); \n usbhEPSetName(&hubdp->epint, "HUB[INT ]"); \n usbhEPOpen(&hubdp->epint); \n \n usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8); \n \n osalSysLock(); \n usbhURBSubmitI(&hubdp->urb); \n osalOsRescheduleS(); \n osalSysUnlock(); \n \n return (usbh_baseclassdriver_t *)hubdp; \n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "usbh_baseclassdriver_t" (pointer_declarator) "*hub_load(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem)" (*) "*" (function_declarator) "hub_load(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem)" (identifier) "hub_load" (parameter_list) "(usbh_device_t *dev, \n const uint8_t *descriptor, uint16_t rem)" (() "(" (parameter_declaration) "usbh_device_t *dev" (type_identifier) "usbh_device_t" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "const uint8_t *descriptor" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "*descriptor" (*) "*" (identifier) "descriptor" (,) "," (parameter_declaration) "uint16_t rem" (primitive_type) "uint16_t" (identifier) "rem" ()) ")" (compound_statement) "{ \n int i; \n \n USBHHubDriver *hubdp; \n \n if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) \n return NULL; \n \n if (dev->devDesc.bDeviceProtocol != 0) \n return NULL; \n \n generic_iterator_t iep, icfg; \n if_iterator_t iif; \n \n cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength); \n \n if_iter_init(&iif, &icfg); \n if (!iif.valid) \n return NULL; \n const usbh_interface_descriptor_t *const ifdesc = if_get(&iif); \n if ((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)) { \n return NULL; \n } \n \n ep_iter_init(&iep, &iif); \n if (!iep.valid) \n return NULL; \n const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep); \n if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { \n return NULL; \n } \n \n \n /* alloc driver */ \n for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n } \n \n uwarn("Can't alloc HUB driver"); \n \n /* can't alloc */ \n return NULL; \n \nalloc_ok: \n /* initialize the driver's variables */ \n hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED; \n hubdp->dev = dev; \n hubdp->ports = 0; \n \n usbhEPSetName(&dev->ctrl, "HUB[CTRL]"); \n \n /* read Hub descriptor */ \n uinfo("Read Hub descriptor"); \n if (usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { \n hubdp->dev = NULL; \n return NULL; \n } \n \n const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc; \n \n uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent); \n \n /* Alloc ports */ \n uint8_t ports = hubdesc->bNbrPorts; \n for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n } \n \n if (ports) { \n uwarn("Could not alloc all ports"); \n } \n \n /* link hub to the host's list */ \n list_add_tail(&hubdp->node, &dev->host->hubs); \n \n /* enable power to ports */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n } \n \n if (hubdesc->bPwrOn2PwrGood) \n osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood); \n \n /* initialize the status change endpoint and trigger the first transfer */ \n usbhEPObjectInit(&hubdp->epint, dev, epdesc); \n usbhEPSetName(&hubdp->epint, "HUB[INT ]"); \n usbhEPOpen(&hubdp->epint); \n \n usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8); \n \n osalSysLock(); \n usbhURBSubmitI(&hubdp->urb); \n osalOsRescheduleS(); \n osalSysUnlock(); \n \n return (usbh_baseclassdriver_t *)hubdp; \n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "USBHHubDriver *hubdp;" (type_identifier) "USBHHubDriver" (pointer_declarator) "*hubdp" (*) "*" (identifier) "hubdp" (;) ";" (if_statement) "if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)) \n return NULL;" (if) "if" (parenthesized_expression) "((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))" (() "(" (binary_expression) "(rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)" (parenthesized_expression) "(rem < descriptor[0])" (() "(" (binary_expression) "rem < descriptor[0]" (identifier) "rem" (<) "<" (subscript_expression) "descriptor[0]" (identifier) "descriptor" ([) "[" (number_literal) "0" (]) "]" ()) ")" (||) "||" (parenthesized_expression) "(descriptor[1] != USBH_DT_DEVICE)" (() "(" (binary_expression) "descriptor[1] != USBH_DT_DEVICE" (subscript_expression) "descriptor[1]" (identifier) "descriptor" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (identifier) "USBH_DT_DEVICE" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if (dev->devDesc.bDeviceProtocol != 0) \n return NULL;" (if) "if" (parenthesized_expression) "(dev->devDesc.bDeviceProtocol != 0)" (() "(" (binary_expression) "dev->devDesc.bDeviceProtocol != 0" (field_expression) "dev->devDesc.bDeviceProtocol" (field_expression) "dev->devDesc" (identifier) "dev" (->) "->" (field_identifier) "devDesc" (.) "." (field_identifier) "bDeviceProtocol" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "generic_iterator_t iep, icfg;" (type_identifier) "generic_iterator_t" (identifier) "iep" (,) "," (identifier) "icfg" (;) ";" (declaration) "if_iterator_t iif;" (type_identifier) "if_iterator_t" (identifier) "iif" (;) ";" (expression_statement) "cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength);" (call_expression) "cfg_iter_init(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength)" (identifier) "cfg_iter_init" (argument_list) "(&icfg, dev->fullConfigurationDescriptor, \n dev->basicConfigDesc.wTotalLength)" (() "(" (pointer_expression) "&icfg" (&) "&" (identifier) "icfg" (,) "," (field_expression) "dev->fullConfigurationDescriptor" (identifier) "dev" (->) "->" (field_identifier) "fullConfigurationDescriptor" (,) "," (field_expression) "dev->basicConfigDesc.wTotalLength" (field_expression) "dev->basicConfigDesc" (identifier) "dev" (->) "->" (field_identifier) "basicConfigDesc" (.) "." (field_identifier) "wTotalLength" ()) ")" (;) ";" (expression_statement) "if_iter_init(&iif, &icfg);" (call_expression) "if_iter_init(&iif, &icfg)" (identifier) "if_iter_init" (argument_list) "(&iif, &icfg)" (() "(" (pointer_expression) "&iif" (&) "&" (identifier) "iif" (,) "," (pointer_expression) "&icfg" (&) "&" (identifier) "icfg" ()) ")" (;) ";" (if_statement) "if (!iif.valid) \n return NULL;" (if) "if" (parenthesized_expression) "(!iif.valid)" (() "(" (unary_expression) "!iif.valid" (!) "!" (field_expression) "iif.valid" (identifier) "iif" (.) "." (field_identifier) "valid" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "const usbh_interface_descriptor_t *const ifdesc = if_get(&iif);" (type_qualifier) "const" (const) "const" (type_identifier) "usbh_interface_descriptor_t" (init_declarator) "*const ifdesc = if_get(&iif)" (pointer_declarator) "*const ifdesc" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "ifdesc" (=) "=" (call_expression) "if_get(&iif)" (identifier) "if_get" (argument_list) "(&iif)" (() "(" (pointer_expression) "&iif" (&) "&" (identifier) "iif" ()) ")" (;) ";" (if_statement) "if ((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)) { \n return NULL; \n }" (if) "if" (parenthesized_expression) "((ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00))" (() "(" (binary_expression) "(ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00) \n || (ifdesc->bInterfaceProtocol != 0x00)" (binary_expression) "(ifdesc->bInterfaceClass != 0x09) \n || (ifdesc->bInterfaceSubClass != 0x00)" (parenthesized_expression) "(ifdesc->bInterfaceClass != 0x09)" (() "(" (binary_expression) "ifdesc->bInterfaceClass != 0x09" (field_expression) "ifdesc->bInterfaceClass" (identifier) "ifdesc" (->) "->" (field_identifier) "bInterfaceClass" (!=) "!=" (number_literal) "0x09" ()) ")" (||) "||" (parenthesized_expression) "(ifdesc->bInterfaceSubClass != 0x00)" (() "(" (binary_expression) "ifdesc->bInterfaceSubClass != 0x00" (field_expression) "ifdesc->bInterfaceSubClass" (identifier) "ifdesc" (->) "->" (field_identifier) "bInterfaceSubClass" (!=) "!=" (number_literal) "0x00" ()) ")" (||) "||" (parenthesized_expression) "(ifdesc->bInterfaceProtocol != 0x00)" (() "(" (binary_expression) "ifdesc->bInterfaceProtocol != 0x00" (field_expression) "ifdesc->bInterfaceProtocol" (identifier) "ifdesc" (->) "->" (field_identifier) "bInterfaceProtocol" (!=) "!=" (number_literal) "0x00" ()) ")" ()) ")" (compound_statement) "{ \n return NULL; \n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "ep_iter_init(&iep, &iif);" (call_expression) "ep_iter_init(&iep, &iif)" (identifier) "ep_iter_init" (argument_list) "(&iep, &iif)" (() "(" (pointer_expression) "&iep" (&) "&" (identifier) "iep" (,) "," (pointer_expression) "&iif" (&) "&" (identifier) "iif" ()) ")" (;) ";" (if_statement) "if (!iep.valid) \n return NULL;" (if) "if" (parenthesized_expression) "(!iep.valid)" (() "(" (unary_expression) "!iep.valid" (!) "!" (field_expression) "iep.valid" (identifier) "iep" (.) "." (field_identifier) "valid" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep);" (type_qualifier) "const" (const) "const" (type_identifier) "usbh_endpoint_descriptor_t" (init_declarator) "*const epdesc = ep_get(&iep)" (pointer_declarator) "*const epdesc" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "epdesc" (=) "=" (call_expression) "ep_get(&iep)" (identifier) "ep_get" (argument_list) "(&iep)" (() "(" (pointer_expression) "&iep" (&) "&" (identifier) "iep" ()) ")" (;) ";" (if_statement) "if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) { \n return NULL; \n }" (if) "if" (parenthesized_expression) "((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT)" (() "(" (binary_expression) "(epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT" (parenthesized_expression) "(epdesc->bmAttributes & 0x03)" (() "(" (binary_expression) "epdesc->bmAttributes & 0x03" (field_expression) "epdesc->bmAttributes" (identifier) "epdesc" (->) "->" (field_identifier) "bmAttributes" (&) "&" (number_literal) "0x03" ()) ")" (!=) "!=" (identifier) "USBH_EPTYPE_INT" ()) ")" (compound_statement) "{ \n return NULL; \n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (comment) "/* alloc driver */" (for_statement) "for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) { \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < HAL_USBHHUB_MAX_INSTANCES" (identifier) "i" (<) "<" (identifier) "HAL_USBHHUB_MAX_INSTANCES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n } \n }" ({) "{" (if_statement) "if (USBHHUBD[i].dev == NULL) { \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n }" (if) "if" (parenthesized_expression) "(USBHHUBD[i].dev == NULL)" (() "(" (binary_expression) "USBHHUBD[i].dev == NULL" (field_expression) "USBHHUBD[i].dev" (subscript_expression) "USBHHUBD[i]" (identifier) "USBHHUBD" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "dev" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n hubdp = &USBHHUBD[i]; \n goto alloc_ok; \n }" ({) "{" (expression_statement) "hubdp = &USBHHUBD[i];" (assignment_expression) "hubdp = &USBHHUBD[i]" (identifier) "hubdp" (=) "=" (pointer_expression) "&USBHHUBD[i]" (&) "&" (subscript_expression) "USBHHUBD[i]" (identifier) "USBHHUBD" ([) "[" (identifier) "i" (]) "]" (;) ";" (goto_statement) "goto alloc_ok;" (goto) "goto" (statement_identifier) "alloc_ok" (;) ";" (}) "}" (}) "}" (expression_statement) "uwarn("Can't alloc HUB driver");" (call_expression) "uwarn("Can't alloc HUB driver")" (identifier) "uwarn" (argument_list) "("Can't alloc HUB driver")" (() "(" (string_literal) ""Can't alloc HUB driver"" (") """ (string_content) "Can't alloc HUB driver" (") """ ()) ")" (;) ";" (comment) "/* can't alloc */" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (labeled_statement) "alloc_ok: \n /* initialize the driver's variables */ \n hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;" (statement_identifier) "alloc_ok" (:) ":" (comment) "/* initialize the driver's variables */" (expression_statement) "hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;" (assignment_expression) "hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED" (field_expression) "hubdp->epint.status" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" (.) "." (field_identifier) "status" (=) "=" (identifier) "USBH_EPSTATUS_UNINITIALIZED" (;) ";" (expression_statement) "hubdp->dev = dev;" (assignment_expression) "hubdp->dev = dev" (field_expression) "hubdp->dev" (identifier) "hubdp" (->) "->" (field_identifier) "dev" (=) "=" (identifier) "dev" (;) ";" (expression_statement) "hubdp->ports = 0;" (assignment_expression) "hubdp->ports = 0" (field_expression) "hubdp->ports" (identifier) "hubdp" (->) "->" (field_identifier) "ports" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "usbhEPSetName(&dev->ctrl, "HUB[CTRL]");" (call_expression) "usbhEPSetName(&dev->ctrl, "HUB[CTRL]")" (identifier) "usbhEPSetName" (argument_list) "(&dev->ctrl, "HUB[CTRL]")" (() "(" (pointer_expression) "&dev->ctrl" (&) "&" (field_expression) "dev->ctrl" (identifier) "dev" (->) "->" (field_identifier) "ctrl" (,) "," (string_literal) ""HUB[CTRL]"" (") """ (string_content) "HUB[CTRL]" (") """ ()) ")" (;) ";" (comment) "/* read Hub descriptor */" (expression_statement) "uinfo("Read Hub descriptor");" (call_expression) "uinfo("Read Hub descriptor")" (identifier) "uinfo" (argument_list) "("Read Hub descriptor")" (() "(" (string_literal) ""Read Hub descriptor"" (") """ (string_content) "Read Hub descriptor" (") """ ()) ")" (;) ";" (if_statement) "if (usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) { \n hubdp->dev = NULL; \n return NULL; \n }" (if) "if" (parenthesized_expression) "(usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK)" (() "(" (binary_expression) "usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK" (call_expression) "usbhhubControlRequest(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc)" (identifier) "usbhhubControlRequest" (argument_list) "(dev->host, hubdp, \n USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE, \n USBH_REQ_GET_DESCRIPTOR, \n (USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc), \n (uint8_t *)&hubdp->hubDesc)" (() "(" (field_expression) "dev->host" (identifier) "dev" (->) "->" (field_identifier) "host" (,) "," (identifier) "hubdp" (,) "," (binary_expression) "USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE" (binary_expression) "USBH_REQTYPE_IN | USBH_REQTYPE_CLASS" (identifier) "USBH_REQTYPE_IN" (|) "|" (identifier) "USBH_REQTYPE_CLASS" (|) "|" (identifier) "USBH_REQTYPE_DEVICE" (,) "," (identifier) "USBH_REQ_GET_DESCRIPTOR" (,) "," (parenthesized_expression) "(USBH_DT_HUB << 8)" (() "(" (binary_expression) "USBH_DT_HUB << 8" (identifier) "USBH_DT_HUB" (<<) "<<" (number_literal) "8" ()) ")" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(hubdp->hubDesc)" (sizeof) "sizeof" (parenthesized_expression) "(hubdp->hubDesc)" (() "(" (field_expression) "hubdp->hubDesc" (identifier) "hubdp" (->) "->" (field_identifier) "hubDesc" ()) ")" (,) "," (cast_expression) "(uint8_t *)&hubdp->hubDesc" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&hubdp->hubDesc" (&) "&" (field_expression) "hubdp->hubDesc" (identifier) "hubdp" (->) "->" (field_identifier) "hubDesc" ()) ")" (!=) "!=" (identifier) "USBH_URBSTATUS_OK" ()) ")" (compound_statement) "{ \n hubdp->dev = NULL; \n return NULL; \n }" ({) "{" (expression_statement) "hubdp->dev = NULL;" (assignment_expression) "hubdp->dev = NULL" (field_expression) "hubdp->dev" (identifier) "hubdp" (->) "->" (field_identifier) "dev" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc;" (type_qualifier) "const" (const) "const" (type_identifier) "usbh_hub_descriptor_t" (init_declarator) "*const hubdesc = &hubdp->hubDesc" (pointer_declarator) "*const hubdesc" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "hubdesc" (=) "=" (pointer_expression) "&hubdp->hubDesc" (&) "&" (field_expression) "hubdp->hubDesc" (identifier) "hubdp" (->) "->" (field_identifier) "hubDesc" (;) ";" (expression_statement) "uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent);" (call_expression) "uinfof("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent)" (identifier) "uinfof" (argument_list) "("Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d", \n hubdesc->bNbrPorts, \n hubdesc->wHubCharacteristics, \n hubdesc->bPwrOn2PwrGood, \n hubdesc->bHubContrCurrent)" (() "(" (string_literal) ""Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d"" (") """ (string_content) "Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d" (") """ (,) "," (field_expression) "hubdesc->bNbrPorts" (identifier) "hubdesc" (->) "->" (field_identifier) "bNbrPorts" (,) "," (field_expression) "hubdesc->wHubCharacteristics" (identifier) "hubdesc" (->) "->" (field_identifier) "wHubCharacteristics" (,) "," (field_expression) "hubdesc->bPwrOn2PwrGood" (identifier) "hubdesc" (->) "->" (field_identifier) "bPwrOn2PwrGood" (,) "," (field_expression) "hubdesc->bHubContrCurrent" (identifier) "hubdesc" (->) "->" (field_identifier) "bHubContrCurrent" ()) ")" (;) ";" (comment) "/* Alloc ports */" (declaration) "uint8_t ports = hubdesc->bNbrPorts;" (primitive_type) "uint8_t" (init_declarator) "ports = hubdesc->bNbrPorts" (identifier) "ports" (=) "=" (field_expression) "hubdesc->bNbrPorts" (identifier) "hubdesc" (->) "->" (field_identifier) "bNbrPorts" (;) ";" (for_statement) "for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) { \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "(ports > 0) && (i < HAL_USBHHUB_MAX_PORTS)" (parenthesized_expression) "(ports > 0)" (() "(" (binary_expression) "ports > 0" (identifier) "ports" (>) ">" (number_literal) "0" ()) ")" (&&) "&&" (parenthesized_expression) "(i < HAL_USBHHUB_MAX_PORTS)" (() "(" (binary_expression) "i < HAL_USBHHUB_MAX_PORTS" (identifier) "i" (<) "<" (identifier) "HAL_USBHHUB_MAX_PORTS" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n } \n }" ({) "{" (if_statement) "if (USBHPorts[i].hub == NULL) { \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n }" (if) "if" (parenthesized_expression) "(USBHPorts[i].hub == NULL)" (() "(" (binary_expression) "USBHPorts[i].hub == NULL" (field_expression) "USBHPorts[i].hub" (subscript_expression) "USBHPorts[i]" (identifier) "USBHPorts" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "hub" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n uinfof("Alloc port %d", ports); \n _usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports); \n USBHPorts[i].next = hubdp->ports; \n hubdp->ports = &USBHPorts[i]; \n --ports; \n }" ({) "{" (expression_statement) "uinfof("Alloc port %d", ports);" (call_expression) "uinfof("Alloc port %d", ports)" (identifier) "uinfof" (argument_list) "("Alloc port %d", ports)" (() "(" (string_literal) ""Alloc port %d"" (") """ (string_content) "Alloc port %d" (") """ (,) "," (identifier) "ports" ()) ")" (;) ";" (expression_statement) "_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);" (call_expression) "_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports)" (identifier) "_usbhub_port_object_init" (argument_list) "(&USBHPorts[i], dev->host, hubdp, ports)" (() "(" (pointer_expression) "&USBHPorts[i]" (&) "&" (subscript_expression) "USBHPorts[i]" (identifier) "USBHPorts" ([) "[" (identifier) "i" (]) "]" (,) "," (field_expression) "dev->host" (identifier) "dev" (->) "->" (field_identifier) "host" (,) "," (identifier) "hubdp" (,) "," (identifier) "ports" ()) ")" (;) ";" (expression_statement) "USBHPorts[i].next = hubdp->ports;" (assignment_expression) "USBHPorts[i].next = hubdp->ports" (field_expression) "USBHPorts[i].next" (subscript_expression) "USBHPorts[i]" (identifier) "USBHPorts" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "next" (=) "=" (field_expression) "hubdp->ports" (identifier) "hubdp" (->) "->" (field_identifier) "ports" (;) ";" (expression_statement) "hubdp->ports = &USBHPorts[i];" (assignment_expression) "hubdp->ports = &USBHPorts[i]" (field_expression) "hubdp->ports" (identifier) "hubdp" (->) "->" (field_identifier) "ports" (=) "=" (pointer_expression) "&USBHPorts[i]" (&) "&" (subscript_expression) "USBHPorts[i]" (identifier) "USBHPorts" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "--ports;" (update_expression) "--ports" (--) "--" (identifier) "ports" (;) ";" (}) "}" (}) "}" (if_statement) "if (ports) { \n uwarn("Could not alloc all ports"); \n }" (if) "if" (parenthesized_expression) "(ports)" (() "(" (identifier) "ports" ()) ")" (compound_statement) "{ \n uwarn("Could not alloc all ports"); \n }" ({) "{" (expression_statement) "uwarn("Could not alloc all ports");" (call_expression) "uwarn("Could not alloc all ports")" (identifier) "uwarn" (argument_list) "("Could not alloc all ports")" (() "(" (string_literal) ""Could not alloc all ports"" (") """ (string_content) "Could not alloc all ports" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* link hub to the host's list */" (expression_statement) "list_add_tail(&hubdp->node, &dev->host->hubs);" (call_expression) "list_add_tail(&hubdp->node, &dev->host->hubs)" (identifier) "list_add_tail" (argument_list) "(&hubdp->node, &dev->host->hubs)" (() "(" (pointer_expression) "&hubdp->node" (&) "&" (field_expression) "hubdp->node" (identifier) "hubdp" (->) "->" (field_identifier) "node" (,) "," (pointer_expression) "&dev->host->hubs" (&) "&" (field_expression) "dev->host->hubs" (field_expression) "dev->host" (identifier) "dev" (->) "->" (field_identifier) "host" (->) "->" (field_identifier) "hubs" ()) ")" (;) ";" (comment) "/* enable power to ports */" (declaration) "usbh_port_t *port = hubdp->ports;" (type_identifier) "usbh_port_t" (init_declarator) "*port = hubdp->ports" (pointer_declarator) "*port" (*) "*" (identifier) "port" (=) "=" (field_expression) "hubdp->ports" (identifier) "hubdp" (->) "->" (field_identifier) "ports" (;) ";" (while_statement) "while (port) { \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n }" (while) "while" (parenthesized_expression) "(port)" (() "(" (identifier) "port" ()) ")" (compound_statement) "{ \n uinfof("Enable power for port %d", port->number); \n usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER); \n port = port->next; \n }" ({) "{" (expression_statement) "uinfof("Enable power for port %d", port->number);" (call_expression) "uinfof("Enable power for port %d", port->number)" (identifier) "uinfof" (argument_list) "("Enable power for port %d", port->number)" (() "(" (string_literal) ""Enable power for port %d"" (") """ (string_content) "Enable power for port %d" (") """ (,) "," (field_expression) "port->number" (identifier) "port" (->) "->" (field_identifier) "number" ()) ")" (;) ";" (expression_statement) "usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER);" (call_expression) "usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER)" (identifier) "usbhhubSetFeaturePort" (argument_list) "(port, USBH_PORT_FEAT_POWER)" (() "(" (identifier) "port" (,) "," (identifier) "USBH_PORT_FEAT_POWER" ()) ")" (;) ";" (expression_statement) "port = port->next;" (assignment_expression) "port = port->next" (identifier) "port" (=) "=" (field_expression) "port->next" (identifier) "port" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (if_statement) "if (hubdesc->bPwrOn2PwrGood) \n osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);" (if) "if" (parenthesized_expression) "(hubdesc->bPwrOn2PwrGood)" (() "(" (field_expression) "hubdesc->bPwrOn2PwrGood" (identifier) "hubdesc" (->) "->" (field_identifier) "bPwrOn2PwrGood" ()) ")" (expression_statement) "osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);" (call_expression) "osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood)" (identifier) "osalThreadSleepMilliseconds" (argument_list) "(2 * hubdesc->bPwrOn2PwrGood)" (() "(" (binary_expression) "2 * hubdesc->bPwrOn2PwrGood" (number_literal) "2" (*) "*" (field_expression) "hubdesc->bPwrOn2PwrGood" (identifier) "hubdesc" (->) "->" (field_identifier) "bPwrOn2PwrGood" ()) ")" (;) ";" (comment) "/* initialize the status change endpoint and trigger the first transfer */" (expression_statement) "usbhEPObjectInit(&hubdp->epint, dev, epdesc);" (call_expression) "usbhEPObjectInit(&hubdp->epint, dev, epdesc)" (identifier) "usbhEPObjectInit" (argument_list) "(&hubdp->epint, dev, epdesc)" (() "(" (pointer_expression) "&hubdp->epint" (&) "&" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" (,) "," (identifier) "dev" (,) "," (identifier) "epdesc" ()) ")" (;) ";" (expression_statement) "usbhEPSetName(&hubdp->epint, "HUB[INT ]");" (call_expression) "usbhEPSetName(&hubdp->epint, "HUB[INT ]")" (identifier) "usbhEPSetName" (argument_list) "(&hubdp->epint, "HUB[INT ]")" (() "(" (pointer_expression) "&hubdp->epint" (&) "&" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" (,) "," (string_literal) ""HUB[INT ]"" (") """ (string_content) "HUB[INT ]" (") """ ()) ")" (;) ";" (expression_statement) "usbhEPOpen(&hubdp->epint);" (call_expression) "usbhEPOpen(&hubdp->epint)" (identifier) "usbhEPOpen" (argument_list) "(&hubdp->epint)" (() "(" (pointer_expression) "&hubdp->epint" (&) "&" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" ()) ")" (;) ";" (expression_statement) "usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8);" (call_expression) "usbhURBObjectInit(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8)" (identifier) "usbhURBObjectInit" (argument_list) "(&hubdp->urb, &hubdp->epint, \n _urb_complete, hubdp, hubdp->scbuff, \n (hubdesc->bNbrPorts + 8) / 8)" (() "(" (pointer_expression) "&hubdp->urb" (&) "&" (field_expression) "hubdp->urb" (identifier) "hubdp" (->) "->" (field_identifier) "urb" (,) "," (pointer_expression) "&hubdp->epint" (&) "&" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" (,) "," (identifier) "_urb_complete" (,) "," (identifier) "hubdp" (,) "," (field_expression) "hubdp->scbuff" (identifier) "hubdp" (->) "->" (field_identifier) "scbuff" (,) "," (binary_expression) "(hubdesc->bNbrPorts + 8) / 8" (parenthesized_expression) "(hubdesc->bNbrPorts + 8)" (() "(" (binary_expression) "hubdesc->bNbrPorts + 8" (field_expression) "hubdesc->bNbrPorts" (identifier) "hubdesc" (->) "->" (field_identifier) "bNbrPorts" (+) "+" (number_literal) "8" ()) ")" (/) "/" (number_literal) "8" ()) ")" (;) ";" (expression_statement) "osalSysLock();" (call_expression) "osalSysLock()" (identifier) "osalSysLock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "usbhURBSubmitI(&hubdp->urb);" (call_expression) "usbhURBSubmitI(&hubdp->urb)" (identifier) "usbhURBSubmitI" (argument_list) "(&hubdp->urb)" (() "(" (pointer_expression) "&hubdp->urb" (&) "&" (field_expression) "hubdp->urb" (identifier) "hubdp" (->) "->" (field_identifier) "urb" ()) ")" (;) ";" (expression_statement) "osalOsRescheduleS();" (call_expression) "osalOsRescheduleS()" (identifier) "osalOsRescheduleS" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "osalSysUnlock();" (call_expression) "osalSysUnlock()" (identifier) "osalSysUnlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return (usbh_baseclassdriver_t *)hubdp;" (return) "return" (cast_expression) "(usbh_baseclassdriver_t *)hubdp" (() "(" (type_descriptor) "usbh_baseclassdriver_t *" (type_identifier) "usbh_baseclassdriver_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "hubdp" (;) ";" (}) "}" (function_definition) "static void hub_unload(usbh_baseclassdriver_t *drv) { \n osalDbgCheck(drv != NULL); \n USBHHubDriver *const hubdp = (USBHHubDriver *)drv; \n \n /* close the status change endpoint (this cancels ongoing URBs) */ \n osalSysLock(); \n usbhEPCloseS(&hubdp->epint); \n osalSysUnlock(); \n \n /* de-alloc ports and unload drivers */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n } \n \n /* unlink the hub from the host's list */ \n list_del(&hubdp->node); \n \n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "hub_unload(usbh_baseclassdriver_t *drv)" (identifier) "hub_unload" (parameter_list) "(usbh_baseclassdriver_t *drv)" (() "(" (parameter_declaration) "usbh_baseclassdriver_t *drv" (type_identifier) "usbh_baseclassdriver_t" (pointer_declarator) "*drv" (*) "*" (identifier) "drv" ()) ")" (compound_statement) "{ \n osalDbgCheck(drv != NULL); \n USBHHubDriver *const hubdp = (USBHHubDriver *)drv; \n \n /* close the status change endpoint (this cancels ongoing URBs) */ \n osalSysLock(); \n usbhEPCloseS(&hubdp->epint); \n osalSysUnlock(); \n \n /* de-alloc ports and unload drivers */ \n usbh_port_t *port = hubdp->ports; \n while (port) { \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n } \n \n /* unlink the hub from the host's list */ \n list_del(&hubdp->node); \n \n}" ({) "{" (expression_statement) "osalDbgCheck(drv != NULL);" (call_expression) "osalDbgCheck(drv != NULL)" (identifier) "osalDbgCheck" (argument_list) "(drv != NULL)" (() "(" (binary_expression) "drv != NULL" (identifier) "drv" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "USBHHubDriver *const hubdp = (USBHHubDriver *)drv;" (type_identifier) "USBHHubDriver" (init_declarator) "*const hubdp = (USBHHubDriver *)drv" (pointer_declarator) "*const hubdp" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "hubdp" (=) "=" (cast_expression) "(USBHHubDriver *)drv" (() "(" (type_descriptor) "USBHHubDriver *" (type_identifier) "USBHHubDriver" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "drv" (;) ";" (comment) "/* close the status change endpoint (this cancels ongoing URBs) */" (expression_statement) "osalSysLock();" (call_expression) "osalSysLock()" (identifier) "osalSysLock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "usbhEPCloseS(&hubdp->epint);" (call_expression) "usbhEPCloseS(&hubdp->epint)" (identifier) "usbhEPCloseS" (argument_list) "(&hubdp->epint)" (() "(" (pointer_expression) "&hubdp->epint" (&) "&" (field_expression) "hubdp->epint" (identifier) "hubdp" (->) "->" (field_identifier) "epint" ()) ")" (;) ";" (expression_statement) "osalSysUnlock();" (call_expression) "osalSysUnlock()" (identifier) "osalSysUnlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* de-alloc ports and unload drivers */" (declaration) "usbh_port_t *port = hubdp->ports;" (type_identifier) "usbh_port_t" (init_declarator) "*port = hubdp->ports" (pointer_declarator) "*port" (*) "*" (identifier) "port" (=) "=" (field_expression) "hubdp->ports" (identifier) "hubdp" (->) "->" (field_identifier) "ports" (;) ";" (while_statement) "while (port) { \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n }" (while) "while" (parenthesized_expression) "(port)" (() "(" (identifier) "port" ()) ")" (compound_statement) "{ \n _usbh_port_disconnected(port); \n port->hub = NULL; \n port = port->next; \n }" ({) "{" (expression_statement) "_usbh_port_disconnected(port);" (call_expression) "_usbh_port_disconnected(port)" (identifier) "_usbh_port_disconnected" (argument_list) "(port)" (() "(" (identifier) "port" ()) ")" (;) ";" (expression_statement) "port->hub = NULL;" (assignment_expression) "port->hub = NULL" (field_expression) "port->hub" (identifier) "port" (->) "->" (field_identifier) "hub" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "port = port->next;" (assignment_expression) "port = port->next" (identifier) "port" (=) "=" (field_expression) "port->next" (identifier) "port" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (comment) "/* unlink the hub from the host's list */" (expression_statement) "list_del(&hubdp->node);" (call_expression) "list_del(&hubdp->node)" (identifier) "list_del" (argument_list) "(&hubdp->node)" (() "(" (pointer_expression) "&hubdp->node" (&) "&" (field_expression) "hubdp->node" (identifier) "hubdp" (->) "->" (field_identifier) "node" ()) ")" (;) ";" (}) "}" (function_definition) "void usbhhubObjectInit(USBHHubDriver *hubdp) { \n osalDbgCheck(hubdp != NULL); \n memset(hubdp, 0, sizeof(*hubdp)); \n hubdp->info = &usbhhubClassDriverInfo; \n}" (primitive_type) "void" (function_declarator) "usbhhubObjectInit(USBHHubDriver *hubdp)" (identifier) "usbhhubObjectInit" (parameter_list) "(USBHHubDriver *hubdp)" (() "(" (parameter_declaration) "USBHHubDriver *hubdp" (type_identifier) "USBHHubDriver" (pointer_declarator) "*hubdp" (*) "*" (identifier) "hubdp" ()) ")" (compound_statement) "{ \n osalDbgCheck(hubdp != NULL); \n memset(hubdp, 0, sizeof(*hubdp)); \n hubdp->info = &usbhhubClassDriverInfo; \n}" ({) "{" (expression_statement) "osalDbgCheck(hubdp != NULL);" (call_expression) "osalDbgCheck(hubdp != NULL)" (identifier) "osalDbgCheck" (argument_list) "(hubdp != NULL)" (() "(" (binary_expression) "hubdp != NULL" (identifier) "hubdp" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "memset(hubdp, 0, sizeof(*hubdp));" (call_expression) "memset(hubdp, 0, sizeof(*hubdp))" (identifier) "memset" (argument_list) "(hubdp, 0, sizeof(*hubdp))" (() "(" (identifier) "hubdp" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(*hubdp)" (sizeof) "sizeof" (parenthesized_expression) "(*hubdp)" (() "(" (pointer_expression) "*hubdp" (*) "*" (identifier) "hubdp" ()) ")" ()) ")" (;) ";" (expression_statement) "hubdp->info = &usbhhubClassDriverInfo;" (assignment_expression) "hubdp->info = &usbhhubClassDriverInfo" (field_expression) "hubdp->info" (identifier) "hubdp" (->) "->" (field_identifier) "info" (=) "=" (pointer_expression) "&usbhhubClassDriverInfo" (&) "&" (identifier) "usbhhubClassDriverInfo" (;) ";" (}) "}" (preproc_else) "#else \n \n#if HAL_USE_USBH \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n} \n#endif" (#else) "#else" (preproc_if) "#if HAL_USE_USBH \nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n} \n#endif" (#if) "#if" (identifier) "HAL_USE_USBH" ( ) "\n" (function_definition) "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) { \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n}" (primitive_type) "void" (function_declarator) "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number)" (identifier) "_usbhub_port_object_init" (parameter_list) "(usbh_port_t *port, USBHDriver *usbh, uint8_t number)" (() "(" (parameter_declaration) "usbh_port_t *port" (type_identifier) "usbh_port_t" (pointer_declarator) "*port" (*) "*" (identifier) "port" (,) "," (parameter_declaration) "USBHDriver *usbh" (type_identifier) "USBHDriver" (pointer_declarator) "*usbh" (*) "*" (identifier) "usbh" (,) "," (parameter_declaration) "uint8_t number" (primitive_type) "uint8_t" (identifier) "number" ()) ")" (compound_statement) "{ \n memset(port, 0, sizeof(*port)); \n port->number = number; \n port->device.host = usbh; \n}" ({) "{" (expression_statement) "memset(port, 0, sizeof(*port));" (call_expression) "memset(port, 0, sizeof(*port))" (identifier) "memset" (argument_list) "(port, 0, sizeof(*port))" (() "(" (identifier) "port" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(*port)" (sizeof) "sizeof" (parenthesized_expression) "(*port)" (() "(" (pointer_expression) "*port" (*) "*" (identifier) "port" ()) ")" ()) ")" (;) ";" (expression_statement) "port->number = number;" (assignment_expression) "port->number = number" (field_expression) "port->number" (identifier) "port" (->) "->" (field_identifier) "number" (=) "=" (identifier) "number" (;) ";" (expression_statement) "port->device.host = usbh;" (assignment_expression) "port->device.host = usbh" (field_expression) "port->device.host" (field_expression) "port->device" (identifier) "port" (->) "->" (field_identifier) "device" (.) "." (field_identifier) "host" (=) "=" (identifier) "usbh" (;) ";" (}) "}" (#endif) "#endif" (#endif) "#endif"
2,050
0
{"language": "c", "success": true, "metadata": {"lines": 302, "avg_line_length": 26.18, "nodes": 1231, "errors": 0, "source_hash": "14beaa000669f5813205adf8986e23409b9093e280ed8f73fdad8feb9f1df46c", "categorized_nodes": 880}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"hal.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"hal.h\"", "parent": 0, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 16}}, {"id": 3, "type": "preproc_include", "text": "#include \"usbh.h\"\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"usbh.h\"", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"usbh/internal.h\"\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"usbh/internal.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 9, "type": "preproc_if", "text": "#if HAL_USBH_USE_HUB\r\n\r\n#if !HAL_USE_USBH\r\n#error \"USBHHUB needs HAL_USE_USBH\"\r\n#endif\r\n\r\n#include <string.h>\r\n#include \"usbh/dev/hub.h\"\r\n\r\n#if USBHHUB_DEBUG_ENABLE_TRACE\r\n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define udbgf(f, ...) do {} while(0)\r\n#define udbg(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_INFO\r\n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uinfof(f, ...) do {} while(0)\r\n#define uinfo(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_WARNINGS\r\n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uwarnf(f, ...) do {} while(0)\r\n#define uwarn(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_ERRORS\r\n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uerrf(f, ...) do {} while(0)\r\n#define uerr(f, ...) do {} while(0)\r\n#endif\r\n\r\n\r\nUSBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES];\r\nusbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS];\r\n\r\nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem);\r\nstatic void hub_unload(usbh_baseclassdriver_t *drv);\r\nstatic const usbh_classdriver_vmt_t usbhhubClassDriverVMT = {\r\n\thub_load,\r\n\thub_unload\r\n};\r\nconst usbh_classdriverinfo_t usbhhubClassDriverInfo = {\r\n\t0x09, 0x00, -1, \"HUB\", &usbhhubClassDriverVMT\r\n};\r\n\r\n\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n\tport->hub = hub;\r\n}\r\n\r\nusbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bRequest,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wValue,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wLength,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t *buf) {\r\n\tif (hub == NULL)\r\n\t\treturn usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n\r\n\treturn usbhControlRequest(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n}\r\n\r\n\r\nstatic void _urb_complete(usbh_urb_t *urb) {\r\n\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData;\r\n\tswitch (urb->status) {\r\n\tcase USBH_URBSTATUS_TIMEOUT:\r\n\t\t/* the device NAKed */\r\n\t\tudbg(\"HUB: no info\");\r\n\t\thubdp->statuschange = 0;\r\n\t\tbreak;\r\n\tcase USBH_URBSTATUS_OK: {\r\n\t\tuint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;\r\n\t\tif (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}\r\n\r\n\t\tif (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;\r\n\r\n\t\tif (len > 4)\r\n\t\t\tlen = 4;\r\n\r\n\t\tuint8_t *sc = (uint8_t *)&hubdp->statuschange;\r\n\t\tuint8_t *r = hubdp->scbuff;\r\n\t\twhile (len--)\r\n\t\t\t*sc++ |= *r++;\r\n\r\n\t\tuinfof(\"HUB: change, %08x\", hubdp->statuschange);\r\n\t}\tbreak;\r\n\tcase USBH_URBSTATUS_DISCONNECTED:\r\n\t\tuwarn(\"HUB: URB disconnected, aborting poll\");\r\n\t\treturn;\r\n\tdefault:\r\n\t\tuerrf(\"HUB: URB status unexpected = %d\", urb->status);\r\n\t\tbreak;\r\n\t}\r\n\r\n\tusbhURBObjectResetI(urb);\r\n\tusbhURBSubmitI(urb);\r\n}\r\n\r\nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem) {\r\n\tint i;\r\n\r\n\tUSBHHubDriver *hubdp;\r\n\r\n\tif ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))\r\n\t\treturn NULL;\r\n\r\n\tif (dev->devDesc.bDeviceProtocol != 0)\r\n\t\treturn NULL;\r\n\r\n\tgeneric_iterator_t iep, icfg;\r\n\tif_iterator_t iif;\r\n\r\n\tcfg_iter_init(&icfg, dev->fullConfigurationDescriptor,\r\n\t\t\tdev->basicConfigDesc.wTotalLength);\r\n\r\n\tif_iter_init(&iif, &icfg);\r\n\tif (!iif.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_interface_descriptor_t *const ifdesc = if_get(&iif);\r\n\tif ((ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00)) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tep_iter_init(&iep, &iif);\r\n\tif (!iep.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep);\r\n\tif ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\r\n\t/* alloc driver */\r\n\tfor (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) {\r\n\t\tif (USBHHUBD[i].dev == NULL) {\r\n\t\t\thubdp = &USBHHUBD[i];\r\n\t\t\tgoto alloc_ok;\r\n\t\t}\r\n\t}\r\n\r\n\tuwarn(\"Can't alloc HUB driver\");\r\n\r\n\t/* can't alloc */\r\n\treturn NULL;\r\n\r\nalloc_ok:\r\n\t/* initialize the driver's variables */\r\n\thubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;\r\n\thubdp->dev = dev;\r\n\thubdp->ports = 0;\r\n\r\n\tusbhEPSetName(&dev->ctrl, \"HUB[CTRL]\");\r\n\r\n\t/* read Hub descriptor */\r\n\tuinfo(\"Read Hub descriptor\");\r\n\tif (usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) {\r\n\t\thubdp->dev = NULL;\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tconst usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc;\r\n\r\n\tuinfof(\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\",\r\n\t\t\thubdesc->bNbrPorts,\r\n\t\t\thubdesc->wHubCharacteristics,\r\n\t\t\thubdesc->bPwrOn2PwrGood,\r\n\t\t\thubdesc->bHubContrCurrent);\r\n\r\n\t/* Alloc ports */\r\n\tuint8_t ports = hubdesc->bNbrPorts;\r\n\tfor (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) {\r\n\t\tif (USBHPorts[i].hub == NULL) {\r\n\t\t\tuinfof(\"Alloc port %d\", ports);\r\n\t\t\t_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);\r\n\t\t\tUSBHPorts[i].next = hubdp->ports;\r\n\t\t\thubdp->ports = &USBHPorts[i];\r\n\t\t\t--ports;\r\n\t\t}\r\n\t}\r\n\r\n\tif (ports) {\r\n\t\tuwarn(\"Could not alloc all ports\");\r\n\t}\r\n\r\n\t/* link hub to the host's list */\r\n\tlist_add_tail(&hubdp->node, &dev->host->hubs);\r\n\r\n\t/* enable power to ports */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\tuinfof(\"Enable power for port %d\", port->number);\r\n\t\tusbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER);\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\tif (hubdesc->bPwrOn2PwrGood)\r\n\t\tosalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);\r\n\r\n\t/* initialize the status change endpoint and trigger the first transfer */\r\n\tusbhEPObjectInit(&hubdp->epint, dev, epdesc);\r\n\tusbhEPSetName(&hubdp->epint, \"HUB[INT ]\");\r\n\tusbhEPOpen(&hubdp->epint);\r\n\r\n\tusbhURBObjectInit(&hubdp->urb, &hubdp->epint,\r\n\t\t\t_urb_complete, hubdp, hubdp->scbuff,\r\n\t\t\t(hubdesc->bNbrPorts + 8) / 8);\r\n\r\n\tosalSysLock();\r\n\tusbhURBSubmitI(&hubdp->urb);\r\n\tosalOsRescheduleS();\r\n\tosalSysUnlock();\r\n\r\n\treturn (usbh_baseclassdriver_t *)hubdp;\r\n}\r\n\r\nstatic void hub_unload(usbh_baseclassdriver_t *drv) {\r\n\tosalDbgCheck(drv != NULL);\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)drv;\r\n\r\n\t/* close the status change endpoint (this cancels ongoing URBs) */\r\n\tosalSysLock();\r\n\tusbhEPCloseS(&hubdp->epint);\r\n\tosalSysUnlock();\r\n\r\n\t/* de-alloc ports and unload drivers */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\t_usbh_port_disconnected(port);\r\n\t\tport->hub = NULL;\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\t/* unlink the hub from the host's list */\r\n\tlist_del(&hubdp->node);\r\n\r\n}\r\n\r\nvoid usbhhubObjectInit(USBHHubDriver *hubdp) {\r\n\tosalDbgCheck(hubdp != NULL);\r\n\tmemset(hubdp, 0, sizeof(*hubdp));\r\n\thubdp->info = &usbhhubClassDriverInfo;\r\n}\r\n#else\r\n\r\n#if HAL_USE_USBH\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n}\r\n#endif\r\n\r\n#endif", "parent": null, "children": [10, 11, 12, 13, 23, 26, 29, 60, 91, 122, 153, 158, 163, 183, 193, 201, 213, 266, 332, 516, 1065, 1146, 1181, 1230], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 301, "column": 6}}, {"id": 10, "type": "#if", "text": "#if", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 11, "type": "identifier", "text": "HAL_USBH_USE_HUB", "parent": 9, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 20}}, {"id": 12, "type": "\n", "text": "\n", "parent": 9, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 22, "column": 0}}, {"id": 13, "type": "preproc_if", "text": "#if !HAL_USE_USBH\r\n#error \"USBHHUB needs HAL_USE_USBH\"\r\n#endif", "parent": 9, "children": [14, 15, 18, 19, 22], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 14, "type": "#if", "text": "#if", "parent": 13, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 15, "type": "unary_expression", "text": "!HAL_USE_USBH", "parent": 13, "children": [16, 17], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 17}}, {"id": 16, "type": "!", "text": "!", "parent": 15, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 17, "type": "identifier", "text": "HAL_USE_USBH", "parent": 15, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 17}}, {"id": 18, "type": "\n", "text": "\n", "parent": 13, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 24, "column": 0}}, {"id": 19, "type": "preproc_call", "text": "#error \"USBHHUB needs HAL_USE_USBH\"\r\n", "parent": 13, "children": [20, 21], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 20, "type": "preproc_directive", "text": "#error", "parent": 19, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 21, "type": "preproc_arg", "text": "\"USBHHUB needs HAL_USE_USBH\"\r", "parent": 19, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 36}}, {"id": 22, "type": "#endif", "text": "#endif", "parent": 13, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 23, "type": "preproc_include", "text": "#include <string.h>\r\n", "parent": 9, "children": [24, 25], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 25, "type": "system_lib_string", "text": "<string.h>", "parent": 23, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 19}}, {"id": 26, "type": "preproc_include", "text": "#include \"usbh/dev/hub.h\"\r\n", "parent": 9, "children": [27, 28], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 28, "type": "string_literal", "text": "\"usbh/dev/hub.h\"", "parent": 26, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 25}}, {"id": 29, "type": "preproc_if", "text": "#if USBHHUB_DEBUG_ENABLE_TRACE\r\n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define udbgf(f, ...) do {} while(0)\r\n#define udbg(f, ...) do {} while(0)\r\n#endif", "parent": 9, "children": [30, 31, 32, 33, 39, 45, 59], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 30, "type": "#if", "text": "#if", "parent": 29, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 31, "type": "identifier", "text": "USBHHUB_DEBUG_ENABLE_TRACE", "parent": 29, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 30}}, {"id": 32, "type": "\n", "text": "\n", "parent": 29, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 31, "column": 0}}, {"id": 33, "type": "preproc_function_def", "text": "#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n", "parent": 29, "children": [34, 35, 36, 38], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 35, "type": "identifier", "text": "udbgf", "parent": 33, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 13}}, {"id": 36, "type": "preproc_params", "text": "(f, ...)", "parent": 33, "children": [37], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 37, "type": "identifier", "text": "f", "parent": 36, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 15}}, {"id": 38, "type": "preproc_arg", "text": "usbDbgPrintf(f, ##__VA_ARGS__)\r", "parent": 33, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 54}}, {"id": 39, "type": "preproc_function_def", "text": "#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n", "parent": 29, "children": [40, 41, 42, 44], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 40, "type": "#define", "text": "#define", "parent": 39, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 41, "type": "identifier", "text": "udbg", "parent": 39, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 12}}, {"id": 42, "type": "preproc_params", "text": "(f, ...)", "parent": 39, "children": [43], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 20}}, {"id": 43, "type": "identifier", "text": "f", "parent": 42, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 14}}, {"id": 44, "type": "preproc_arg", "text": "usbDbgPuts(f, ##__VA_ARGS__)\r", "parent": 39, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 51}}, {"id": 45, "type": "preproc_else", "text": "#else\r\n#define udbgf(f, ...) do {} while(0)\r\n#define udbg(f, ...) do {} while(0)\r\n", "parent": 29, "children": [46, 47, 53], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 46, "type": "#else", "text": "#else", "parent": 45, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 5}}, {"id": 47, "type": "preproc_function_def", "text": "#define udbgf(f, ...) do {} while(0)\r\n", "parent": 45, "children": [48, 49, 50, 52], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 48, "type": "#define", "text": "#define", "parent": 47, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 49, "type": "identifier", "text": "udbgf", "parent": 47, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 13}}, {"id": 50, "type": "preproc_params", "text": "(f, ...)", "parent": 47, "children": [51], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 21}}, {"id": 51, "type": "identifier", "text": "f", "parent": 50, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 52, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 47, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 38}}, {"id": 53, "type": "preproc_function_def", "text": "#define udbg(f, ...) do {} while(0)\r\n", "parent": 45, "children": [54, 55, 56, 58], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 54, "type": "#define", "text": "#define", "parent": 53, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 55, "type": "identifier", "text": "udbg", "parent": 53, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 56, "type": "preproc_params", "text": "(f, ...)", "parent": 53, "children": [57], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 20}}, {"id": 57, "type": "identifier", "text": "f", "parent": 56, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 58, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 53, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 38}}, {"id": 59, "type": "#endif", "text": "#endif", "parent": 29, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 60, "type": "preproc_if", "text": "#if USBHHUB_DEBUG_ENABLE_INFO\r\n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uinfof(f, ...) do {} while(0)\r\n#define uinfo(f, ...) do {} while(0)\r\n#endif", "parent": 9, "children": [61, 62, 63, 64, 70, 76, 90], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 61, "type": "#if", "text": "#if", "parent": 60, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 3}}, {"id": 62, "type": "identifier", "text": "USBHHUB_DEBUG_ENABLE_INFO", "parent": 60, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 29}}, {"id": 63, "type": "\n", "text": "\n", "parent": 60, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 39, "column": 0}}, {"id": 64, "type": "preproc_function_def", "text": "#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n", "parent": 60, "children": [65, 66, 67, 69], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 66, "type": "identifier", "text": "uinfof", "parent": 64, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 67, "type": "preproc_params", "text": "(f, ...)", "parent": 64, "children": [68], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 22}}, {"id": 68, "type": "identifier", "text": "f", "parent": 67, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 69, "type": "preproc_arg", "text": "usbDbgPrintf(f, ##__VA_ARGS__)\r", "parent": 64, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 55}}, {"id": 70, "type": "preproc_function_def", "text": "#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n", "parent": 60, "children": [71, 72, 73, 75], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 72, "type": "identifier", "text": "uinfo", "parent": 70, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 13}}, {"id": 73, "type": "preproc_params", "text": "(f, ...)", "parent": 70, "children": [74], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 21}}, {"id": 74, "type": "identifier", "text": "f", "parent": 73, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 75, "type": "preproc_arg", "text": "usbDbgPuts(f, ##__VA_ARGS__)\r", "parent": 70, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 52}}, {"id": 76, "type": "preproc_else", "text": "#else\r\n#define uinfof(f, ...) do {} while(0)\r\n#define uinfo(f, ...) do {} while(0)\r\n", "parent": 60, "children": [77, 78, 84], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 77, "type": "#else", "text": "#else", "parent": 76, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 78, "type": "preproc_function_def", "text": "#define uinfof(f, ...) do {} while(0)\r\n", "parent": 76, "children": [79, 80, 81, 83], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 80, "type": "identifier", "text": "uinfof", "parent": 78, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 14}}, {"id": 81, "type": "preproc_params", "text": "(f, ...)", "parent": 78, "children": [82], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 22}}, {"id": 82, "type": "identifier", "text": "f", "parent": 81, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 16}}, {"id": 83, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 78, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 39}}, {"id": 84, "type": "preproc_function_def", "text": "#define uinfo(f, ...) do {} while(0)\r\n", "parent": 76, "children": [85, 86, 87, 89], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 86, "type": "identifier", "text": "uinfo", "parent": 84, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 87, "type": "preproc_params", "text": "(f, ...)", "parent": 84, "children": [88], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 21}}, {"id": 88, "type": "identifier", "text": "f", "parent": 87, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 89, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 84, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 39}}, {"id": 90, "type": "#endif", "text": "#endif", "parent": 60, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 91, "type": "preproc_if", "text": "#if USBHHUB_DEBUG_ENABLE_WARNINGS\r\n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uwarnf(f, ...) do {} while(0)\r\n#define uwarn(f, ...) do {} while(0)\r\n#endif", "parent": 9, "children": [92, 93, 94, 95, 101, 107, 121], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 92, "type": "#if", "text": "#if", "parent": 91, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 3}}, {"id": 93, "type": "identifier", "text": "USBHHUB_DEBUG_ENABLE_WARNINGS", "parent": 91, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 33}}, {"id": 94, "type": "\n", "text": "\n", "parent": 91, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 47, "column": 0}}, {"id": 95, "type": "preproc_function_def", "text": "#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n", "parent": 91, "children": [96, 97, 98, 100], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 96, "type": "#define", "text": "#define", "parent": 95, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 97, "type": "identifier", "text": "uwarnf", "parent": 95, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 98, "type": "preproc_params", "text": "(f, ...)", "parent": 95, "children": [99], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 22}}, {"id": 99, "type": "identifier", "text": "f", "parent": 98, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 100, "type": "preproc_arg", "text": "usbDbgPrintf(f, ##__VA_ARGS__)\r", "parent": 95, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 55}}, {"id": 101, "type": "preproc_function_def", "text": "#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n", "parent": 91, "children": [102, 103, 104, 106], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 103, "type": "identifier", "text": "uwarn", "parent": 101, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 13}}, {"id": 104, "type": "preproc_params", "text": "(f, ...)", "parent": 101, "children": [105], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 21}}, {"id": 105, "type": "identifier", "text": "f", "parent": 104, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 15}}, {"id": 106, "type": "preproc_arg", "text": "usbDbgPuts(f, ##__VA_ARGS__)\r", "parent": 101, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 52}}, {"id": 107, "type": "preproc_else", "text": "#else\r\n#define uwarnf(f, ...) do {} while(0)\r\n#define uwarn(f, ...) do {} while(0)\r\n", "parent": 91, "children": [108, 109, 115], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 108, "type": "#else", "text": "#else", "parent": 107, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 5}}, {"id": 109, "type": "preproc_function_def", "text": "#define uwarnf(f, ...) do {} while(0)\r\n", "parent": 107, "children": [110, 111, 112, 114], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 110, "type": "#define", "text": "#define", "parent": 109, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 111, "type": "identifier", "text": "uwarnf", "parent": 109, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 112, "type": "preproc_params", "text": "(f, ...)", "parent": 109, "children": [113], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 22}}, {"id": 113, "type": "identifier", "text": "f", "parent": 112, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 16}}, {"id": 114, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 109, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 39}}, {"id": 115, "type": "preproc_function_def", "text": "#define uwarn(f, ...) do {} while(0)\r\n", "parent": 107, "children": [116, 117, 118, 120], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 116, "type": "#define", "text": "#define", "parent": 115, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 117, "type": "identifier", "text": "uwarn", "parent": 115, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 13}}, {"id": 118, "type": "preproc_params", "text": "(f, ...)", "parent": 115, "children": [119], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 21}}, {"id": 119, "type": "identifier", "text": "f", "parent": 118, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 15}}, {"id": 120, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 115, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 39}}, {"id": 121, "type": "#endif", "text": "#endif", "parent": 91, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 122, "type": "preproc_if", "text": "#if USBHHUB_DEBUG_ENABLE_ERRORS\r\n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uerrf(f, ...) do {} while(0)\r\n#define uerr(f, ...) do {} while(0)\r\n#endif", "parent": 9, "children": [123, 124, 125, 126, 132, 138, 152], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 123, "type": "#if", "text": "#if", "parent": 122, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 3}}, {"id": 124, "type": "identifier", "text": "USBHHUB_DEBUG_ENABLE_ERRORS", "parent": 122, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 31}}, {"id": 125, "type": "\n", "text": "\n", "parent": 122, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 55, "column": 0}}, {"id": 126, "type": "preproc_function_def", "text": "#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n", "parent": 122, "children": [127, 128, 129, 131], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 127, "type": "#define", "text": "#define", "parent": 126, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 128, "type": "identifier", "text": "uerrf", "parent": 126, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 129, "type": "preproc_params", "text": "(f, ...)", "parent": 126, "children": [130], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 21}}, {"id": 130, "type": "identifier", "text": "f", "parent": 129, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 131, "type": "preproc_arg", "text": "usbDbgPrintf(f, ##__VA_ARGS__)\r", "parent": 126, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 54}}, {"id": 132, "type": "preproc_function_def", "text": "#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n", "parent": 122, "children": [133, 134, 135, 137], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 133, "type": "#define", "text": "#define", "parent": 132, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 134, "type": "identifier", "text": "uerr", "parent": 132, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 135, "type": "preproc_params", "text": "(f, ...)", "parent": 132, "children": [136], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 20}}, {"id": 136, "type": "identifier", "text": "f", "parent": 135, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 137, "type": "preproc_arg", "text": "usbDbgPuts(f, ##__VA_ARGS__)\r", "parent": 132, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 51}}, {"id": 138, "type": "preproc_else", "text": "#else\r\n#define uerrf(f, ...) do {} while(0)\r\n#define uerr(f, ...) do {} while(0)\r\n", "parent": 122, "children": [139, 140, 146], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 139, "type": "#else", "text": "#else", "parent": 138, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 5}}, {"id": 140, "type": "preproc_function_def", "text": "#define uerrf(f, ...) do {} while(0)\r\n", "parent": 138, "children": [141, 142, 143, 145], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 141, "type": "#define", "text": "#define", "parent": 140, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 142, "type": "identifier", "text": "uerrf", "parent": 140, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 13}}, {"id": 143, "type": "preproc_params", "text": "(f, ...)", "parent": 140, "children": [144], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 21}}, {"id": 144, "type": "identifier", "text": "f", "parent": 143, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 15}}, {"id": 145, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 140, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 38}}, {"id": 146, "type": "preproc_function_def", "text": "#define uerr(f, ...) do {} while(0)\r\n", "parent": 138, "children": [147, 148, 149, 151], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 147, "type": "#define", "text": "#define", "parent": 146, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 148, "type": "identifier", "text": "uerr", "parent": 146, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 12}}, {"id": 149, "type": "preproc_params", "text": "(f, ...)", "parent": 146, "children": [150], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 20}}, {"id": 150, "type": "identifier", "text": "f", "parent": 149, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 151, "type": "preproc_arg", "text": "do {} while(0)\r", "parent": 146, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 38}}, {"id": 152, "type": "#endif", "text": "#endif", "parent": 122, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 153, "type": "declaration", "text": "USBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES];", "parent": 9, "children": [154, 155], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 50}}, {"id": 154, "type": "type_identifier", "text": "USBHHubDriver", "parent": 153, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 13}}, {"id": 155, "type": "array_declarator", "text": "USBHHUBD[HAL_USBHHUB_MAX_INSTANCES]", "parent": 153, "children": [156, 157], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 49}}, {"id": 156, "type": "identifier", "text": "USBHHUBD", "parent": 155, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 22}}, {"id": 157, "type": "identifier", "text": "HAL_USBHHUB_MAX_INSTANCES", "parent": 155, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 48}}, {"id": 158, "type": "declaration", "text": "usbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS];", "parent": 9, "children": [159, 160], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 45}}, {"id": 159, "type": "type_identifier", "text": "usbh_port_t", "parent": 158, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 11}}, {"id": 160, "type": "array_declarator", "text": "USBHPorts[HAL_USBHHUB_MAX_PORTS]", "parent": 158, "children": [161, 162], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 44}}, {"id": 161, "type": "identifier", "text": "USBHPorts", "parent": 160, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 21}}, {"id": 162, "type": "identifier", "text": "HAL_USBHHUB_MAX_PORTS", "parent": 160, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 43}}, {"id": 163, "type": "declaration", "text": "static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem);", "parent": 9, "children": [164, 165], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 101}}, {"id": 164, "type": "type_identifier", "text": "usbh_baseclassdriver_t", "parent": 163, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 29}}, {"id": 165, "type": "pointer_declarator", "text": "*hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)", "parent": 163, "children": [166, 167], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 100}}, {"id": 166, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 31}}, {"id": 167, "type": "function_declarator", "text": "hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)", "parent": 165, "children": [168, 169], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 100}}, {"id": 168, "type": "identifier", "text": "hub_load", "parent": 167, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 39}}, {"id": 169, "type": "parameter_list", "text": "(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)", "parent": 167, "children": [170, 175, 180], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 100}}, {"id": 170, "type": "parameter_declaration", "text": "usbh_device_t *dev", "parent": 169, "children": [171, 172], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 58}}, {"id": 171, "type": "type_identifier", "text": "usbh_device_t", "parent": 170, "children": [], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 53}}, {"id": 172, "type": "pointer_declarator", "text": "*dev", "parent": 170, "children": [173, 174], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 58}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 55}}, {"id": 174, "type": "identifier", "text": "dev", "parent": 172, "children": [], "start_point": {"row": 66, "column": 55}, "end_point": {"row": 66, "column": 58}}, {"id": 175, "type": "parameter_declaration", "text": "const uint8_t *descriptor", "parent": 169, "children": [176, 177], "start_point": {"row": 66, "column": 60}, "end_point": {"row": 66, "column": 85}}, {"id": 176, "type": "primitive_type", "text": "uint8_t", "parent": 175, "children": [], "start_point": {"row": 66, "column": 66}, "end_point": {"row": 66, "column": 73}}, {"id": 177, "type": "pointer_declarator", "text": "*descriptor", "parent": 175, "children": [178, 179], "start_point": {"row": 66, "column": 74}, "end_point": {"row": 66, "column": 85}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 66, "column": 74}, "end_point": {"row": 66, "column": 75}}, {"id": 179, "type": "identifier", "text": "descriptor", "parent": 177, "children": [], "start_point": {"row": 66, "column": 75}, "end_point": {"row": 66, "column": 85}}, {"id": 180, "type": "parameter_declaration", "text": "uint16_t rem", "parent": 169, "children": [181, 182], "start_point": {"row": 66, "column": 87}, "end_point": {"row": 66, "column": 99}}, {"id": 181, "type": "primitive_type", "text": "uint16_t", "parent": 180, "children": [], "start_point": {"row": 66, "column": 87}, "end_point": {"row": 66, "column": 95}}, {"id": 182, "type": "identifier", "text": "rem", "parent": 180, "children": [], "start_point": {"row": 66, "column": 96}, "end_point": {"row": 66, "column": 99}}, {"id": 183, "type": "declaration", "text": "static void hub_unload(usbh_baseclassdriver_t *drv);", "parent": 9, "children": [184, 185], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 52}}, {"id": 184, "type": "primitive_type", "text": "void", "parent": 183, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 185, "type": "function_declarator", "text": "hub_unload(usbh_baseclassdriver_t *drv)", "parent": 183, "children": [186, 187], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 51}}, {"id": 186, "type": "identifier", "text": "hub_unload", "parent": 185, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 22}}, {"id": 187, "type": "parameter_list", "text": "(usbh_baseclassdriver_t *drv)", "parent": 185, "children": [188], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 51}}, {"id": 188, "type": "parameter_declaration", "text": "usbh_baseclassdriver_t *drv", "parent": 187, "children": [189, 190], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 50}}, {"id": 189, "type": "type_identifier", "text": "usbh_baseclassdriver_t", "parent": 188, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 45}}, {"id": 190, "type": "pointer_declarator", "text": "*drv", "parent": 188, "children": [191, 192], "start_point": {"row": 67, "column": 46}, "end_point": {"row": 67, "column": 50}}, {"id": 191, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 67, "column": 46}, "end_point": {"row": 67, "column": 47}}, {"id": 192, "type": "identifier", "text": "drv", "parent": 190, "children": [], "start_point": {"row": 67, "column": 47}, "end_point": {"row": 67, "column": 50}}, {"id": 193, "type": "declaration", "text": "static const usbh_classdriver_vmt_t usbhhubClassDriverVMT = {\r\n\thub_load,\r\n\thub_unload\r\n};", "parent": 9, "children": [194, 195], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 71, "column": 2}}, {"id": 194, "type": "type_identifier", "text": "usbh_classdriver_vmt_t", "parent": 193, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 35}}, {"id": 195, "type": "init_declarator", "text": "usbhhubClassDriverVMT = {\r\n\thub_load,\r\n\thub_unload\r\n}", "parent": 193, "children": [196, 197, 198], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 71, "column": 1}}, {"id": 196, "type": "identifier", "text": "usbhhubClassDriverVMT", "parent": 195, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 57}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 68, "column": 58}, "end_point": {"row": 68, "column": 59}}, {"id": 198, "type": "initializer_list", "text": "{\r\n\thub_load,\r\n\thub_unload\r\n}", "parent": 195, "children": [199, 200], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 71, "column": 1}}, {"id": 199, "type": "identifier", "text": "hub_load", "parent": 198, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 9}}, {"id": 200, "type": "identifier", "text": "hub_unload", "parent": 198, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 11}}, {"id": 201, "type": "declaration", "text": "const usbh_classdriverinfo_t usbhhubClassDriverInfo = {\r\n\t0x09, 0x00, -1, \"HUB\", &usbhhubClassDriverVMT\r\n};", "parent": 9, "children": [202, 203], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 74, "column": 2}}, {"id": 202, "type": "type_identifier", "text": "usbh_classdriverinfo_t", "parent": 201, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 28}}, {"id": 203, "type": "init_declarator", "text": "usbhhubClassDriverInfo = {\r\n\t0x09, 0x00, -1, \"HUB\", &usbhhubClassDriverVMT\r\n}", "parent": 201, "children": [204, 205, 206], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 74, "column": 1}}, {"id": 204, "type": "identifier", "text": "usbhhubClassDriverInfo", "parent": 203, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 51}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 72, "column": 52}, "end_point": {"row": 72, "column": 53}}, {"id": 206, "type": "initializer_list", "text": "{\r\n\t0x09, 0x00, -1, \"HUB\", &usbhhubClassDriverVMT\r\n}", "parent": 203, "children": [207, 208, 209, 210, 211], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 74, "column": 1}}, {"id": 207, "type": "number_literal", "text": "0x09", "parent": 206, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 5}}, {"id": 208, "type": "number_literal", "text": "0x00", "parent": 206, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 11}}, {"id": 209, "type": "number_literal", "text": "-1", "parent": 206, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 15}}, {"id": 210, "type": "string_literal", "text": "\"HUB\"", "parent": 206, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 22}}, {"id": 211, "type": "pointer_expression", "text": "&usbhhubClassDriverVMT", "parent": 206, "children": [212], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 46}}, {"id": 212, "type": "identifier", "text": "usbhhubClassDriverVMT", "parent": 211, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 46}}, {"id": 213, "type": "function_definition", "text": "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n\tport->hub = hub;\r\n}", "parent": 9, "children": [214, 215], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 214, "type": "primitive_type", "text": "void", "parent": 213, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 4}}, {"id": 215, "type": "function_declarator", "text": "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number)", "parent": 213, "children": [216, 217], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 78, "column": 37}}, {"id": 216, "type": "identifier", "text": "_usbhub_port_object_init", "parent": 215, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 29}}, {"id": 217, "type": "parameter_list", "text": "(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number)", "parent": 215, "children": [218, 223, 228, 233], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 78, "column": 37}}, {"id": 218, "type": "parameter_declaration", "text": "usbh_port_t *port", "parent": 217, "children": [219, 220], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 47}}, {"id": 219, "type": "type_identifier", "text": "usbh_port_t", "parent": 218, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 41}}, {"id": 220, "type": "pointer_declarator", "text": "*port", "parent": 218, "children": [221, 222], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 47}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 43}}, {"id": 222, "type": "identifier", "text": "port", "parent": 220, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 47}}, {"id": 223, "type": "parameter_declaration", "text": "USBHDriver *usbh", "parent": 217, "children": [224, 225], "start_point": {"row": 77, "column": 49}, "end_point": {"row": 77, "column": 65}}, {"id": 224, "type": "type_identifier", "text": "USBHDriver", "parent": 223, "children": [], "start_point": {"row": 77, "column": 49}, "end_point": {"row": 77, "column": 59}}, {"id": 225, "type": "pointer_declarator", "text": "*usbh", "parent": 223, "children": [226, 227], "start_point": {"row": 77, "column": 60}, "end_point": {"row": 77, "column": 65}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 77, "column": 60}, "end_point": {"row": 77, "column": 61}}, {"id": 227, "type": "identifier", "text": "usbh", "parent": 225, "children": [], "start_point": {"row": 77, "column": 61}, "end_point": {"row": 77, "column": 65}}, {"id": 228, "type": "parameter_declaration", "text": "USBHHubDriver *hub", "parent": 217, "children": [229, 230], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 20}}, {"id": 229, "type": "type_identifier", "text": "USBHHubDriver", "parent": 228, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 15}}, {"id": 230, "type": "pointer_declarator", "text": "*hub", "parent": 228, "children": [231, 232], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 20}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 232, "type": "identifier", "text": "hub", "parent": 230, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 20}}, {"id": 233, "type": "parameter_declaration", "text": "uint8_t number", "parent": 217, "children": [234, 235], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 36}}, {"id": 234, "type": "primitive_type", "text": "uint8_t", "parent": 233, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 29}}, {"id": 235, "type": "identifier", "text": "number", "parent": 233, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 36}}, {"id": 236, "type": "call_expression", "text": "memset(port, 0, sizeof(*port))", "parent": 213, "children": [237, 238], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 31}}, {"id": 237, "type": "identifier", "text": "memset", "parent": 236, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 7}}, {"id": 238, "type": "argument_list", "text": "(port, 0, sizeof(*port))", "parent": 236, "children": [239, 240, 241], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 31}}, {"id": 239, "type": "identifier", "text": "port", "parent": 238, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 238, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 15}}, {"id": 241, "type": "sizeof_expression", "text": "sizeof(*port)", "parent": 238, "children": [242], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 30}}, {"id": 242, "type": "parenthesized_expression", "text": "(*port)", "parent": 241, "children": [243], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 30}}, {"id": 243, "type": "pointer_expression", "text": "*port", "parent": 242, "children": [244, 245], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 29}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 25}}, {"id": 245, "type": "identifier", "text": "port", "parent": 243, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 29}}, {"id": 246, "type": "assignment_expression", "text": "port->number = number", "parent": 213, "children": [247, 250, 251], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 22}}, {"id": 247, "type": "field_expression", "text": "port->number", "parent": 246, "children": [248, 249], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 13}}, {"id": 248, "type": "identifier", "text": "port", "parent": 247, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 249, "type": "field_identifier", "text": "number", "parent": 247, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 250, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 15}}, {"id": 251, "type": "identifier", "text": "number", "parent": 246, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 22}}, {"id": 252, "type": "assignment_expression", "text": "port->device.host = usbh", "parent": 213, "children": [253, 258, 259], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 25}}, {"id": 253, "type": "field_expression", "text": "port->device.host", "parent": 252, "children": [254, 257], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 18}}, {"id": 254, "type": "field_expression", "text": "port->device", "parent": 253, "children": [255, 256], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 13}}, {"id": 255, "type": "identifier", "text": "port", "parent": 254, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 256, "type": "field_identifier", "text": "device", "parent": 254, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 13}}, {"id": 257, "type": "field_identifier", "text": "host", "parent": 253, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 18}}, {"id": 258, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 259, "type": "identifier", "text": "usbh", "parent": 252, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 25}}, {"id": 260, "type": "assignment_expression", "text": "port->hub = hub", "parent": 213, "children": [261, 264, 265], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 16}}, {"id": 261, "type": "field_expression", "text": "port->hub", "parent": 260, "children": [262, 263], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 10}}, {"id": 262, "type": "identifier", "text": "port", "parent": 261, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 5}}, {"id": 263, "type": "field_identifier", "text": "hub", "parent": 261, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 10}}, {"id": 264, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 265, "type": "identifier", "text": "hub", "parent": 260, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 16}}, {"id": 266, "type": "function_definition", "text": "usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bRequest,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wValue,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wLength,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t *buf) {\r\n\tif (hub == NULL)\r\n\t\treturn usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n\r\n\treturn usbhControlRequest(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n}", "parent": 9, "children": [267, 268], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 267, "type": "type_identifier", "text": "usbh_urbstatus_t", "parent": 266, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 16}}, {"id": 268, "type": "function_declarator", "text": "usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bRequest,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wValue,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wLength,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t *buf)", "parent": 266, "children": [269, 270], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 91, "column": 24}}, {"id": 269, "type": "identifier", "text": "usbhhubControlRequest", "parent": 268, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 38}}, {"id": 270, "type": "parameter_list", "text": "(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bRequest,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wValue,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wLength,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t *buf)", "parent": 268, "children": [271, 276, 281, 284, 287, 290, 293, 296], "start_point": {"row": 85, "column": 38}, "end_point": {"row": 91, "column": 24}}, {"id": 271, "type": "parameter_declaration", "text": "USBHDriver *host", "parent": 270, "children": [272, 273], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 55}}, {"id": 272, "type": "type_identifier", "text": "USBHDriver", "parent": 271, "children": [], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 49}}, {"id": 273, "type": "pointer_declarator", "text": "*host", "parent": 271, "children": [274, 275], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 55}}, {"id": 274, "type": "*", "text": "*", "parent": 273, "children": [], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 51}}, {"id": 275, "type": "identifier", "text": "host", "parent": 273, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 55}}, {"id": 276, "type": "parameter_declaration", "text": "USBHHubDriver *hub", "parent": 270, "children": [277, 278], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 75}}, {"id": 277, "type": "type_identifier", "text": "USBHHubDriver", "parent": 276, "children": [], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 70}}, {"id": 278, "type": "pointer_declarator", "text": "*hub", "parent": 276, "children": [279, 280], "start_point": {"row": 85, "column": 71}, "end_point": {"row": 85, "column": 75}}, {"id": 279, "type": "*", "text": "*", "parent": 278, "children": [], "start_point": {"row": 85, "column": 71}, "end_point": {"row": 85, "column": 72}}, {"id": 280, "type": "identifier", "text": "hub", "parent": 278, "children": [], "start_point": {"row": 85, "column": 72}, "end_point": {"row": 85, "column": 75}}, {"id": 281, "type": "parameter_declaration", "text": "uint8_t bmRequestType", "parent": 270, "children": [282, 283], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 32}}, {"id": 282, "type": "primitive_type", "text": "uint8_t", "parent": 281, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 18}}, {"id": 283, "type": "identifier", "text": "bmRequestType", "parent": 281, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 32}}, {"id": 284, "type": "parameter_declaration", "text": "uint8_t bRequest", "parent": 270, "children": [285, 286], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 27}}, {"id": 285, "type": "primitive_type", "text": "uint8_t", "parent": 284, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 18}}, {"id": 286, "type": "identifier", "text": "bRequest", "parent": 284, "children": [], "start_point": {"row": 87, "column": 19}, "end_point": {"row": 87, "column": 27}}, {"id": 287, "type": "parameter_declaration", "text": "uint16_t wValue", "parent": 270, "children": [288, 289], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 26}}, {"id": 288, "type": "primitive_type", "text": "uint16_t", "parent": 287, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 19}}, {"id": 289, "type": "identifier", "text": "wValue", "parent": 287, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 26}}, {"id": 290, "type": "parameter_declaration", "text": "uint16_t wIndex", "parent": 270, "children": [291, 292], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 26}}, {"id": 291, "type": "primitive_type", "text": "uint16_t", "parent": 290, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 19}}, {"id": 292, "type": "identifier", "text": "wIndex", "parent": 290, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 26}}, {"id": 293, "type": "parameter_declaration", "text": "uint16_t wLength", "parent": 270, "children": [294, 295], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 27}}, {"id": 294, "type": "primitive_type", "text": "uint16_t", "parent": 293, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 19}}, {"id": 295, "type": "identifier", "text": "wLength", "parent": 293, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 27}}, {"id": 296, "type": "parameter_declaration", "text": "uint8_t *buf", "parent": 270, "children": [297, 298], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 23}}, {"id": 297, "type": "primitive_type", "text": "uint8_t", "parent": 296, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 18}}, {"id": 298, "type": "pointer_declarator", "text": "*buf", "parent": 296, "children": [299, 300], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 23}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 20}}, {"id": 300, "type": "identifier", "text": "buf", "parent": 298, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 23}}, {"id": 301, "type": "if_statement", "text": "if (hub == NULL)\r\n\t\treturn usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);", "parent": 266, "children": [302, 308], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 93, "column": 96}}, {"id": 302, "type": "parenthesized_expression", "text": "(hub == NULL)", "parent": 301, "children": [303], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 17}}, {"id": 303, "type": "binary_expression", "text": "hub == NULL", "parent": 302, "children": [304, 305, 306], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 16}}, {"id": 304, "type": "identifier", "text": "hub", "parent": 303, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 8}}, {"id": 305, "type": "==", "text": "==", "parent": 303, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 11}}, {"id": 306, "type": "null", "text": "NULL", "parent": 303, "children": [307], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 307, "type": "NULL", "text": "NULL", "parent": 306, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 308, "type": "return_statement", "text": "return usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);", "parent": 301, "children": [309], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 96}}, {"id": 309, "type": "call_expression", "text": "usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf)", "parent": 308, "children": [310, 311], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 95}}, {"id": 310, "type": "identifier", "text": "usbh_lld_root_hub_request", "parent": 309, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 34}}, {"id": 311, "type": "argument_list", "text": "(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf)", "parent": 309, "children": [312, 313, 314, 315, 316, 317, 318], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 95}}, {"id": 312, "type": "identifier", "text": "host", "parent": 311, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 39}}, {"id": 313, "type": "identifier", "text": "bmRequestType", "parent": 311, "children": [], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 93, "column": 54}}, {"id": 314, "type": "identifier", "text": "bRequest", "parent": 311, "children": [], "start_point": {"row": 93, "column": 56}, "end_point": {"row": 93, "column": 64}}, {"id": 315, "type": "identifier", "text": "wValue", "parent": 311, "children": [], "start_point": {"row": 93, "column": 66}, "end_point": {"row": 93, "column": 72}}, {"id": 316, "type": "identifier", "text": "wIndex", "parent": 311, "children": [], "start_point": {"row": 93, "column": 74}, "end_point": {"row": 93, "column": 80}}, {"id": 317, "type": "identifier", "text": "wLength", "parent": 311, "children": [], "start_point": {"row": 93, "column": 82}, "end_point": {"row": 93, "column": 89}}, {"id": 318, "type": "identifier", "text": "buf", "parent": 311, "children": [], "start_point": {"row": 93, "column": 91}, "end_point": {"row": 93, "column": 94}}, {"id": 319, "type": "return_statement", "text": "return usbhControlRequest(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf);", "parent": 266, "children": [320], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 96, "column": 58}}, {"id": 320, "type": "call_expression", "text": "usbhControlRequest(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf)", "parent": 319, "children": [321, 322], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 96, "column": 57}}, {"id": 321, "type": "identifier", "text": "usbhControlRequest", "parent": 320, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 26}}, {"id": 322, "type": "argument_list", "text": "(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf)", "parent": 320, "children": [323, 326, 327, 328, 329, 330, 331], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 96, "column": 57}}, {"id": 323, "type": "field_expression", "text": "hub->dev", "parent": 322, "children": [324, 325], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 35}}, {"id": 324, "type": "identifier", "text": "hub", "parent": 323, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 30}}, {"id": 325, "type": "field_identifier", "text": "dev", "parent": 323, "children": [], "start_point": {"row": 95, "column": 32}, "end_point": {"row": 95, "column": 35}}, {"id": 326, "type": "identifier", "text": "bmRequestType", "parent": 322, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 16}}, {"id": 327, "type": "identifier", "text": "bRequest", "parent": 322, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 26}}, {"id": 328, "type": "identifier", "text": "wValue", "parent": 322, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 34}}, {"id": 329, "type": "identifier", "text": "wIndex", "parent": 322, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 42}}, {"id": 330, "type": "identifier", "text": "wLength", "parent": 322, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 51}}, {"id": 331, "type": "identifier", "text": "buf", "parent": 322, "children": [], "start_point": {"row": 96, "column": 53}, "end_point": {"row": 96, "column": 56}}, {"id": 332, "type": "function_definition", "text": "static void _urb_complete(usbh_urb_t *urb) {\r\n\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData;\r\n\tswitch (urb->status) {\r\n\tcase USBH_URBSTATUS_TIMEOUT:\r\n\t\t/* the device NAKed */\r\n\t\tudbg(\"HUB: no info\");\r\n\t\thubdp->statuschange = 0;\r\n\t\tbreak;\r\n\tcase USBH_URBSTATUS_OK: {\r\n\t\tuint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;\r\n\t\tif (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}\r\n\r\n\t\tif (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;\r\n\r\n\t\tif (len > 4)\r\n\t\t\tlen = 4;\r\n\r\n\t\tuint8_t *sc = (uint8_t *)&hubdp->statuschange;\r\n\t\tuint8_t *r = hubdp->scbuff;\r\n\t\twhile (len--)\r\n\t\t\t*sc++ |= *r++;\r\n\r\n\t\tuinfof(\"HUB: change, %08x\", hubdp->statuschange);\r\n\t}\tbreak;\r\n\tcase USBH_URBSTATUS_DISCONNECTED:\r\n\t\tuwarn(\"HUB: URB disconnected, aborting poll\");\r\n\t\treturn;\r\n\tdefault:\r\n\t\tuerrf(\"HUB: URB status unexpected = %d\", urb->status);\r\n\t\tbreak;\r\n\t}\r\n\r\n\tusbhURBObjectResetI(urb);\r\n\tusbhURBSubmitI(urb);\r\n}", "parent": 9, "children": [333, 334], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 333, "type": "primitive_type", "text": "void", "parent": 332, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 11}}, {"id": 334, "type": "function_declarator", "text": "_urb_complete(usbh_urb_t *urb)", "parent": 332, "children": [335, 336], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 42}}, {"id": 335, "type": "identifier", "text": "_urb_complete", "parent": 334, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 25}}, {"id": 336, "type": "parameter_list", "text": "(usbh_urb_t *urb)", "parent": 334, "children": [337], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 42}}, {"id": 337, "type": "parameter_declaration", "text": "usbh_urb_t *urb", "parent": 336, "children": [338, 339], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 41}}, {"id": 338, "type": "type_identifier", "text": "usbh_urb_t", "parent": 337, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 36}}, {"id": 339, "type": "pointer_declarator", "text": "*urb", "parent": 337, "children": [340, 341], "start_point": {"row": 100, "column": 37}, "end_point": {"row": 100, "column": 41}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 100, "column": 37}, "end_point": {"row": 100, "column": 38}}, {"id": 341, "type": "identifier", "text": "urb", "parent": 339, "children": [], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 41}}, {"id": 342, "type": "declaration", "text": "USBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData;", "parent": 332, "children": [343, 344], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 61}}, {"id": 343, "type": "type_identifier", "text": "USBHHubDriver", "parent": 342, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 14}}, {"id": 344, "type": "init_declarator", "text": "*const hubdp = (USBHHubDriver *)urb->userData", "parent": 342, "children": [345, 348, 349], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 60}}, {"id": 345, "type": "pointer_declarator", "text": "*const hubdp", "parent": 344, "children": [346, 347], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 27}}, {"id": 346, "type": "*", "text": "*", "parent": 345, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 16}}, {"id": 347, "type": "identifier", "text": "hubdp", "parent": 345, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 27}}, {"id": 348, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 29}}, {"id": 349, "type": "cast_expression", "text": "(USBHHubDriver *)urb->userData", "parent": 344, "children": [350, 354], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 60}}, {"id": 350, "type": "type_descriptor", "text": "USBHHubDriver *", "parent": 349, "children": [351, 352], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 46}}, {"id": 351, "type": "type_identifier", "text": "USBHHubDriver", "parent": 350, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 44}}, {"id": 352, "type": "abstract_pointer_declarator", "text": "*", "parent": 350, "children": [353], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 46}}, {"id": 353, "type": "*", "text": "*", "parent": 352, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 46}}, {"id": 354, "type": "field_expression", "text": "urb->userData", "parent": 349, "children": [355, 356], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 60}}, {"id": 355, "type": "identifier", "text": "urb", "parent": 354, "children": [], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 50}}, {"id": 356, "type": "field_identifier", "text": "userData", "parent": 354, "children": [], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 60}}, {"id": 357, "type": "switch_statement", "text": "switch (urb->status) {\r\n\tcase USBH_URBSTATUS_TIMEOUT:\r\n\t\t/* the device NAKed */\r\n\t\tudbg(\"HUB: no info\");\r\n\t\thubdp->statuschange = 0;\r\n\t\tbreak;\r\n\tcase USBH_URBSTATUS_OK: {\r\n\t\tuint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;\r\n\t\tif (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}\r\n\r\n\t\tif (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;\r\n\r\n\t\tif (len > 4)\r\n\t\t\tlen = 4;\r\n\r\n\t\tuint8_t *sc = (uint8_t *)&hubdp->statuschange;\r\n\t\tuint8_t *r = hubdp->scbuff;\r\n\t\twhile (len--)\r\n\t\t\t*sc++ |= *r++;\r\n\r\n\t\tuinfof(\"HUB: change, %08x\", hubdp->statuschange);\r\n\t}\tbreak;\r\n\tcase USBH_URBSTATUS_DISCONNECTED:\r\n\t\tuwarn(\"HUB: URB disconnected, aborting poll\");\r\n\t\treturn;\r\n\tdefault:\r\n\t\tuerrf(\"HUB: URB status unexpected = %d\", urb->status);\r\n\t\tbreak;\r\n\t}", "parent": 332, "children": [358, 359], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 134, "column": 2}}, {"id": 358, "type": "switch", "text": "switch", "parent": 357, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 7}}, {"id": 359, "type": "parenthesized_expression", "text": "(urb->status)", "parent": 357, "children": [360], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 21}}, {"id": 360, "type": "field_expression", "text": "urb->status", "parent": 359, "children": [361, 362], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 20}}, {"id": 361, "type": "identifier", "text": "urb", "parent": 360, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 12}}, {"id": 362, "type": "field_identifier", "text": "status", "parent": 360, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 20}}, {"id": 363, "type": "case_statement", "text": "case USBH_URBSTATUS_TIMEOUT:\r\n\t\t/* the device NAKed */\r\n\t\tudbg(\"HUB: no info\");\r\n\t\thubdp->statuschange = 0;\r\n\t\tbreak;", "parent": 357, "children": [364, 365, 376], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 108, "column": 8}}, {"id": 364, "type": "case", "text": "case", "parent": 363, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 5}}, {"id": 365, "type": "identifier", "text": "USBH_URBSTATUS_TIMEOUT", "parent": 363, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 28}}, {"id": 366, "type": "call_expression", "text": "udbg(\"HUB: no info\")", "parent": 363, "children": [367, 368], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 22}}, {"id": 367, "type": "identifier", "text": "udbg", "parent": 366, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 6}}, {"id": 368, "type": "argument_list", "text": "(\"HUB: no info\")", "parent": 366, "children": [369], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 22}}, {"id": 369, "type": "string_literal", "text": "\"HUB: no info\"", "parent": 368, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 21}}, {"id": 370, "type": "assignment_expression", "text": "hubdp->statuschange = 0", "parent": 363, "children": [371, 374, 375], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 25}}, {"id": 371, "type": "field_expression", "text": "hubdp->statuschange", "parent": 370, "children": [372, 373], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 21}}, {"id": 372, "type": "identifier", "text": "hubdp", "parent": 371, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 7}}, {"id": 373, "type": "field_identifier", "text": "statuschange", "parent": 371, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 21}}, {"id": 374, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 23}}, {"id": 375, "type": "number_literal", "text": "0", "parent": 370, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 25}}, {"id": 376, "type": "break_statement", "text": "break;", "parent": 363, "children": [377], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 8}}, {"id": 377, "type": "break", "text": "break", "parent": 376, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 7}}, {"id": 378, "type": "case_statement", "text": "case USBH_URBSTATUS_OK: {\r\n\t\tuint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;\r\n\t\tif (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}\r\n\r\n\t\tif (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;\r\n\r\n\t\tif (len > 4)\r\n\t\t\tlen = 4;\r\n\r\n\t\tuint8_t *sc = (uint8_t *)&hubdp->statuschange;\r\n\t\tuint8_t *r = hubdp->scbuff;\r\n\t\twhile (len--)\r\n\t\t\t*sc++ |= *r++;\r\n\r\n\t\tuinfof(\"HUB: change, %08x\", hubdp->statuschange);\r\n\t}\tbreak;", "parent": 357, "children": [379, 380, 487], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 379, "type": "case", "text": "case", "parent": 378, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 5}}, {"id": 380, "type": "identifier", "text": "USBH_URBSTATUS_OK", "parent": 378, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 23}}, {"id": 381, "type": "declaration", "text": "uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;", "parent": 378, "children": [382, 383], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 49}}, {"id": 382, "type": "primitive_type", "text": "uint8_t", "parent": 381, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 9}}, {"id": 383, "type": "init_declarator", "text": "len = hubdp->hubDesc.bNbrPorts / 8 + 1", "parent": 381, "children": [384, 385, 386], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 48}}, {"id": 384, "type": "identifier", "text": "len", "parent": 383, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 13}}, {"id": 385, "type": "=", "text": "=", "parent": 383, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 15}}, {"id": 386, "type": "binary_expression", "text": "hubdp->hubDesc.bNbrPorts / 8 + 1", "parent": 383, "children": [387, 395, 396], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 48}}, {"id": 387, "type": "binary_expression", "text": "hubdp->hubDesc.bNbrPorts / 8", "parent": 386, "children": [388, 393, 394], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 44}}, {"id": 388, "type": "field_expression", "text": "hubdp->hubDesc.bNbrPorts", "parent": 387, "children": [389, 392], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 40}}, {"id": 389, "type": "field_expression", "text": "hubdp->hubDesc", "parent": 388, "children": [390, 391], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 30}}, {"id": 390, "type": "identifier", "text": "hubdp", "parent": 389, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 21}}, {"id": 391, "type": "field_identifier", "text": "hubDesc", "parent": 389, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 30}}, {"id": 392, "type": "field_identifier", "text": "bNbrPorts", "parent": 388, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 40}}, {"id": 393, "type": "/", "text": "/", "parent": 387, "children": [], "start_point": {"row": 110, "column": 41}, "end_point": {"row": 110, "column": 42}}, {"id": 394, "type": "number_literal", "text": "8", "parent": 387, "children": [], "start_point": {"row": 110, "column": 43}, "end_point": {"row": 110, "column": 44}}, {"id": 395, "type": "+", "text": "+", "parent": 386, "children": [], "start_point": {"row": 110, "column": 45}, "end_point": {"row": 110, "column": 46}}, {"id": 396, "type": "number_literal", "text": "1", "parent": 386, "children": [], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 48}}, {"id": 397, "type": "if_statement", "text": "if (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}", "parent": 378, "children": [398], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 113, "column": 3}}, {"id": 398, "type": "parenthesized_expression", "text": "(urb->actualLength != len)", "parent": 397, "children": [399], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 31}}, {"id": 399, "type": "binary_expression", "text": "urb->actualLength != len", "parent": 398, "children": [400, 403, 404], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 30}}, {"id": 400, "type": "field_expression", "text": "urb->actualLength", "parent": 399, "children": [401, 402], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 23}}, {"id": 401, "type": "identifier", "text": "urb", "parent": 400, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 9}}, {"id": 402, "type": "field_identifier", "text": "actualLength", "parent": 400, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 23}}, {"id": 403, "type": "!=", "text": "!=", "parent": 399, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 26}}, {"id": 404, "type": "identifier", "text": "len", "parent": 399, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 30}}, {"id": 405, "type": "call_expression", "text": "uwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength)", "parent": 397, "children": [406, 407], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 79}}, {"id": 406, "type": "identifier", "text": "uwarnf", "parent": 405, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 9}}, {"id": 407, "type": "argument_list", "text": "(\"Expected %d status change bytes but got %d\", len, urb->actualLength)", "parent": 405, "children": [408, 409, 410], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 79}}, {"id": 408, "type": "string_literal", "text": "\"Expected %d status change bytes but got %d\"", "parent": 407, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 54}}, {"id": 409, "type": "identifier", "text": "len", "parent": 407, "children": [], "start_point": {"row": 112, "column": 56}, "end_point": {"row": 112, "column": 59}}, {"id": 410, "type": "field_expression", "text": "urb->actualLength", "parent": 407, "children": [411, 412], "start_point": {"row": 112, "column": 61}, "end_point": {"row": 112, "column": 78}}, {"id": 411, "type": "identifier", "text": "urb", "parent": 410, "children": [], "start_point": {"row": 112, "column": 61}, "end_point": {"row": 112, "column": 64}}, {"id": 412, "type": "field_identifier", "text": "actualLength", "parent": 410, "children": [], "start_point": {"row": 112, "column": 66}, "end_point": {"row": 112, "column": 78}}, {"id": 413, "type": "if_statement", "text": "if (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;", "parent": 378, "children": [414], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 116, "column": 27}}, {"id": 414, "type": "parenthesized_expression", "text": "(urb->actualLength < len)", "parent": 413, "children": [415], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 30}}, {"id": 415, "type": "binary_expression", "text": "urb->actualLength < len", "parent": 414, "children": [416, 419, 420], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 29}}, {"id": 416, "type": "field_expression", "text": "urb->actualLength", "parent": 415, "children": [417, 418], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 23}}, {"id": 417, "type": "identifier", "text": "urb", "parent": 416, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 9}}, {"id": 418, "type": "field_identifier", "text": "actualLength", "parent": 416, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 23}}, {"id": 419, "type": "<", "text": "<", "parent": 415, "children": [], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 25}}, {"id": 420, "type": "identifier", "text": "len", "parent": 415, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 29}}, {"id": 421, "type": "assignment_expression", "text": "len = urb->actualLength", "parent": 413, "children": [422, 423, 424], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 26}}, {"id": 422, "type": "identifier", "text": "len", "parent": 421, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 6}}, {"id": 423, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 8}}, {"id": 424, "type": "field_expression", "text": "urb->actualLength", "parent": 421, "children": [425, 426], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 26}}, {"id": 425, "type": "identifier", "text": "urb", "parent": 424, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 12}}, {"id": 426, "type": "field_identifier", "text": "actualLength", "parent": 424, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 26}}, {"id": 427, "type": "if_statement", "text": "if (len > 4)\r\n\t\t\tlen = 4;", "parent": 378, "children": [428], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 119, "column": 11}}, {"id": 428, "type": "parenthesized_expression", "text": "(len > 4)", "parent": 427, "children": [429], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 14}}, {"id": 429, "type": "binary_expression", "text": "len > 4", "parent": 428, "children": [430, 431, 432], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 13}}, {"id": 430, "type": "identifier", "text": "len", "parent": 429, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 9}}, {"id": 431, "type": ">", "text": ">", "parent": 429, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 11}}, {"id": 432, "type": "number_literal", "text": "4", "parent": 429, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 13}}, {"id": 433, "type": "assignment_expression", "text": "len = 4", "parent": 427, "children": [434, 435, 436], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 10}}, {"id": 434, "type": "identifier", "text": "len", "parent": 433, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 6}}, {"id": 435, "type": "=", "text": "=", "parent": 433, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 8}}, {"id": 436, "type": "number_literal", "text": "4", "parent": 433, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 437, "type": "declaration", "text": "uint8_t *sc = (uint8_t *)&hubdp->statuschange;", "parent": 378, "children": [438, 439], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 48}}, {"id": 438, "type": "primitive_type", "text": "uint8_t", "parent": 437, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 9}}, {"id": 439, "type": "init_declarator", "text": "*sc = (uint8_t *)&hubdp->statuschange", "parent": 437, "children": [440, 443, 444], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 47}}, {"id": 440, "type": "pointer_declarator", "text": "*sc", "parent": 439, "children": [441, 442], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 13}}, {"id": 441, "type": "*", "text": "*", "parent": 440, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 11}}, {"id": 442, "type": "identifier", "text": "sc", "parent": 440, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 13}}, {"id": 443, "type": "=", "text": "=", "parent": 439, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 15}}, {"id": 444, "type": "cast_expression", "text": "(uint8_t *)&hubdp->statuschange", "parent": 439, "children": [445, 449], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 47}}, {"id": 445, "type": "type_descriptor", "text": "uint8_t *", "parent": 444, "children": [446, 447], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 26}}, {"id": 446, "type": "primitive_type", "text": "uint8_t", "parent": 445, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 24}}, {"id": 447, "type": "abstract_pointer_declarator", "text": "*", "parent": 445, "children": [448], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 26}}, {"id": 448, "type": "*", "text": "*", "parent": 447, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 26}}, {"id": 449, "type": "pointer_expression", "text": "&hubdp->statuschange", "parent": 444, "children": [450], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 47}}, {"id": 450, "type": "field_expression", "text": "hubdp->statuschange", "parent": 449, "children": [451, 452], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 47}}, {"id": 451, "type": "identifier", "text": "hubdp", "parent": 450, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 33}}, {"id": 452, "type": "field_identifier", "text": "statuschange", "parent": 450, "children": [], "start_point": {"row": 121, "column": 35}, "end_point": {"row": 121, "column": 47}}, {"id": 453, "type": "declaration", "text": "uint8_t *r = hubdp->scbuff;", "parent": 378, "children": [454, 455], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 29}}, {"id": 454, "type": "primitive_type", "text": "uint8_t", "parent": 453, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 9}}, {"id": 455, "type": "init_declarator", "text": "*r = hubdp->scbuff", "parent": 453, "children": [456, 459, 460], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 28}}, {"id": 456, "type": "pointer_declarator", "text": "*r", "parent": 455, "children": [457, 458], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 12}}, {"id": 457, "type": "*", "text": "*", "parent": 456, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 458, "type": "identifier", "text": "r", "parent": 456, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 12}}, {"id": 459, "type": "=", "text": "=", "parent": 455, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 14}}, {"id": 460, "type": "field_expression", "text": "hubdp->scbuff", "parent": 455, "children": [461, 462], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 28}}, {"id": 461, "type": "identifier", "text": "hubdp", "parent": 460, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 20}}, {"id": 462, "type": "field_identifier", "text": "scbuff", "parent": 460, "children": [], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 28}}, {"id": 463, "type": "while_statement", "text": "while (len--)\r\n\t\t\t*sc++ |= *r++;", "parent": 378, "children": [464], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 124, "column": 17}}, {"id": 464, "type": "parenthesized_expression", "text": "(len--)", "parent": 463, "children": [465], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 15}}, {"id": 465, "type": "update_expression", "text": "len--", "parent": 464, "children": [466, 467], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 14}}, {"id": 466, "type": "identifier", "text": "len", "parent": 465, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 12}}, {"id": 467, "type": "--", "text": "--", "parent": 465, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 14}}, {"id": 468, "type": "assignment_expression", "text": "*sc++ |= *r++", "parent": 463, "children": [469, 474, 475], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 16}}, {"id": 469, "type": "pointer_expression", "text": "*sc++", "parent": 468, "children": [470, 471], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 8}}, {"id": 470, "type": "*", "text": "*", "parent": 469, "children": [], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 4}}, {"id": 471, "type": "update_expression", "text": "sc++", "parent": 469, "children": [472, 473], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 8}}, {"id": 472, "type": "identifier", "text": "sc", "parent": 471, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 6}}, {"id": 473, "type": "++", "text": "++", "parent": 471, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 8}}, {"id": 474, "type": "|=", "text": "|=", "parent": 468, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 11}}, {"id": 475, "type": "pointer_expression", "text": "*r++", "parent": 468, "children": [476, 477], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 16}}, {"id": 476, "type": "*", "text": "*", "parent": 475, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 13}}, {"id": 477, "type": "update_expression", "text": "r++", "parent": 475, "children": [478, 479], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 16}}, {"id": 478, "type": "identifier", "text": "r", "parent": 477, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 14}}, {"id": 479, "type": "++", "text": "++", "parent": 477, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 16}}, {"id": 480, "type": "call_expression", "text": "uinfof(\"HUB: change, %08x\", hubdp->statuschange)", "parent": 378, "children": [481, 482], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 50}}, {"id": 481, "type": "identifier", "text": "uinfof", "parent": 480, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 8}}, {"id": 482, "type": "argument_list", "text": "(\"HUB: change, %08x\", hubdp->statuschange)", "parent": 480, "children": [483, 484], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 50}}, {"id": 483, "type": "string_literal", "text": "\"HUB: change, %08x\"", "parent": 482, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 28}}, {"id": 484, "type": "field_expression", "text": "hubdp->statuschange", "parent": 482, "children": [485, 486], "start_point": {"row": 126, "column": 30}, "end_point": {"row": 126, "column": 49}}, {"id": 485, "type": "identifier", "text": "hubdp", "parent": 484, "children": [], "start_point": {"row": 126, "column": 30}, "end_point": {"row": 126, "column": 35}}, {"id": 486, "type": "field_identifier", "text": "statuschange", "parent": 484, "children": [], "start_point": {"row": 126, "column": 37}, "end_point": {"row": 126, "column": 49}}, {"id": 487, "type": "break_statement", "text": "break;", "parent": 378, "children": [488], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 9}}, {"id": 488, "type": "break", "text": "break", "parent": 487, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 8}}, {"id": 489, "type": "case_statement", "text": "case USBH_URBSTATUS_DISCONNECTED:\r\n\t\tuwarn(\"HUB: URB disconnected, aborting poll\");\r\n\t\treturn;", "parent": 357, "children": [490, 491, 496], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 130, "column": 9}}, {"id": 490, "type": "case", "text": "case", "parent": 489, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 5}}, {"id": 491, "type": "identifier", "text": "USBH_URBSTATUS_DISCONNECTED", "parent": 489, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 33}}, {"id": 492, "type": "call_expression", "text": "uwarn(\"HUB: URB disconnected, aborting poll\")", "parent": 489, "children": [493, 494], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 47}}, {"id": 493, "type": "identifier", "text": "uwarn", "parent": 492, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 7}}, {"id": 494, "type": "argument_list", "text": "(\"HUB: URB disconnected, aborting poll\")", "parent": 492, "children": [495], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 47}}, {"id": 495, "type": "string_literal", "text": "\"HUB: URB disconnected, aborting poll\"", "parent": 494, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 46}}, {"id": 496, "type": "return_statement", "text": "return;", "parent": 489, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 9}}, {"id": 497, "type": "case_statement", "text": "default:\r\n\t\tuerrf(\"HUB: URB status unexpected = %d\", urb->status);\r\n\t\tbreak;", "parent": 357, "children": [498, 506], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 133, "column": 8}}, {"id": 498, "type": "default", "text": "default", "parent": 497, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 8}}, {"id": 499, "type": "call_expression", "text": "uerrf(\"HUB: URB status unexpected = %d\", urb->status)", "parent": 497, "children": [500, 501], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 55}}, {"id": 500, "type": "identifier", "text": "uerrf", "parent": 499, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 7}}, {"id": 501, "type": "argument_list", "text": "(\"HUB: URB status unexpected = %d\", urb->status)", "parent": 499, "children": [502, 503], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 55}}, {"id": 502, "type": "string_literal", "text": "\"HUB: URB status unexpected = %d\"", "parent": 501, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 41}}, {"id": 503, "type": "field_expression", "text": "urb->status", "parent": 501, "children": [504, 505], "start_point": {"row": 132, "column": 43}, "end_point": {"row": 132, "column": 54}}, {"id": 504, "type": "identifier", "text": "urb", "parent": 503, "children": [], "start_point": {"row": 132, "column": 43}, "end_point": {"row": 132, "column": 46}}, {"id": 505, "type": "field_identifier", "text": "status", "parent": 503, "children": [], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 54}}, {"id": 506, "type": "break_statement", "text": "break;", "parent": 497, "children": [507], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 8}}, {"id": 507, "type": "break", "text": "break", "parent": 506, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 7}}, {"id": 508, "type": "call_expression", "text": "usbhURBObjectResetI(urb)", "parent": 332, "children": [509, 510], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 25}}, {"id": 509, "type": "identifier", "text": "usbhURBObjectResetI", "parent": 508, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 20}}, {"id": 510, "type": "argument_list", "text": "(urb)", "parent": 508, "children": [511], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 25}}, {"id": 511, "type": "identifier", "text": "urb", "parent": 510, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 24}}, {"id": 512, "type": "call_expression", "text": "usbhURBSubmitI(urb)", "parent": 332, "children": [513, 514], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 20}}, {"id": 513, "type": "identifier", "text": "usbhURBSubmitI", "parent": 512, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 15}}, {"id": 514, "type": "argument_list", "text": "(urb)", "parent": 512, "children": [515], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 20}}, {"id": 515, "type": "identifier", "text": "urb", "parent": 514, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 19}}, {"id": 516, "type": "function_definition", "text": "static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem) {\r\n\tint i;\r\n\r\n\tUSBHHubDriver *hubdp;\r\n\r\n\tif ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))\r\n\t\treturn NULL;\r\n\r\n\tif (dev->devDesc.bDeviceProtocol != 0)\r\n\t\treturn NULL;\r\n\r\n\tgeneric_iterator_t iep, icfg;\r\n\tif_iterator_t iif;\r\n\r\n\tcfg_iter_init(&icfg, dev->fullConfigurationDescriptor,\r\n\t\t\tdev->basicConfigDesc.wTotalLength);\r\n\r\n\tif_iter_init(&iif, &icfg);\r\n\tif (!iif.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_interface_descriptor_t *const ifdesc = if_get(&iif);\r\n\tif ((ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00)) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tep_iter_init(&iep, &iif);\r\n\tif (!iep.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep);\r\n\tif ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\r\n\t/* alloc driver */\r\n\tfor (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) {\r\n\t\tif (USBHHUBD[i].dev == NULL) {\r\n\t\t\thubdp = &USBHHUBD[i];\r\n\t\t\tgoto alloc_ok;\r\n\t\t}\r\n\t}\r\n\r\n\tuwarn(\"Can't alloc HUB driver\");\r\n\r\n\t/* can't alloc */\r\n\treturn NULL;\r\n\r\nalloc_ok:\r\n\t/* initialize the driver's variables */\r\n\thubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;\r\n\thubdp->dev = dev;\r\n\thubdp->ports = 0;\r\n\r\n\tusbhEPSetName(&dev->ctrl, \"HUB[CTRL]\");\r\n\r\n\t/* read Hub descriptor */\r\n\tuinfo(\"Read Hub descriptor\");\r\n\tif (usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) {\r\n\t\thubdp->dev = NULL;\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tconst usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc;\r\n\r\n\tuinfof(\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\",\r\n\t\t\thubdesc->bNbrPorts,\r\n\t\t\thubdesc->wHubCharacteristics,\r\n\t\t\thubdesc->bPwrOn2PwrGood,\r\n\t\t\thubdesc->bHubContrCurrent);\r\n\r\n\t/* Alloc ports */\r\n\tuint8_t ports = hubdesc->bNbrPorts;\r\n\tfor (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) {\r\n\t\tif (USBHPorts[i].hub == NULL) {\r\n\t\t\tuinfof(\"Alloc port %d\", ports);\r\n\t\t\t_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);\r\n\t\t\tUSBHPorts[i].next = hubdp->ports;\r\n\t\t\thubdp->ports = &USBHPorts[i];\r\n\t\t\t--ports;\r\n\t\t}\r\n\t}\r\n\r\n\tif (ports) {\r\n\t\tuwarn(\"Could not alloc all ports\");\r\n\t}\r\n\r\n\t/* link hub to the host's list */\r\n\tlist_add_tail(&hubdp->node, &dev->host->hubs);\r\n\r\n\t/* enable power to ports */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\tuinfof(\"Enable power for port %d\", port->number);\r\n\t\tusbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER);\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\tif (hubdesc->bPwrOn2PwrGood)\r\n\t\tosalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);\r\n\r\n\t/* initialize the status change endpoint and trigger the first transfer */\r\n\tusbhEPObjectInit(&hubdp->epint, dev, epdesc);\r\n\tusbhEPSetName(&hubdp->epint, \"HUB[INT ]\");\r\n\tusbhEPOpen(&hubdp->epint);\r\n\r\n\tusbhURBObjectInit(&hubdp->urb, &hubdp->epint,\r\n\t\t\t_urb_complete, hubdp, hubdp->scbuff,\r\n\t\t\t(hubdesc->bNbrPorts + 8) / 8);\r\n\r\n\tosalSysLock();\r\n\tusbhURBSubmitI(&hubdp->urb);\r\n\tosalOsRescheduleS();\r\n\tosalSysUnlock();\r\n\r\n\treturn (usbh_baseclassdriver_t *)hubdp;\r\n}", "parent": 9, "children": [517, 518], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 262, "column": 1}}, {"id": 517, "type": "type_identifier", "text": "usbh_baseclassdriver_t", "parent": 516, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 29}}, {"id": 518, "type": "pointer_declarator", "text": "*hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem)", "parent": 516, "children": [519, 520], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 141, "column": 42}}, {"id": 519, "type": "*", "text": "*", "parent": 518, "children": [], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 140, "column": 31}}, {"id": 520, "type": "function_declarator", "text": "hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem)", "parent": 518, "children": [521, 522], "start_point": {"row": 140, "column": 31}, "end_point": {"row": 141, "column": 42}}, {"id": 521, "type": "identifier", "text": "hub_load", "parent": 520, "children": [], "start_point": {"row": 140, "column": 31}, "end_point": {"row": 140, "column": 39}}, {"id": 522, "type": "parameter_list", "text": "(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem)", "parent": 520, "children": [523, 528, 533], "start_point": {"row": 140, "column": 39}, "end_point": {"row": 141, "column": 42}}, {"id": 523, "type": "parameter_declaration", "text": "usbh_device_t *dev", "parent": 522, "children": [524, 525], "start_point": {"row": 140, "column": 40}, "end_point": {"row": 140, "column": 58}}, {"id": 524, "type": "type_identifier", "text": "usbh_device_t", "parent": 523, "children": [], "start_point": {"row": 140, "column": 40}, "end_point": {"row": 140, "column": 53}}, {"id": 525, "type": "pointer_declarator", "text": "*dev", "parent": 523, "children": [526, 527], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 58}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 55}}, {"id": 527, "type": "identifier", "text": "dev", "parent": 525, "children": [], "start_point": {"row": 140, "column": 55}, "end_point": {"row": 140, "column": 58}}, {"id": 528, "type": "parameter_declaration", "text": "const uint8_t *descriptor", "parent": 522, "children": [529, 530], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 27}}, {"id": 529, "type": "primitive_type", "text": "uint8_t", "parent": 528, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 15}}, {"id": 530, "type": "pointer_declarator", "text": "*descriptor", "parent": 528, "children": [531, 532], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 27}}, {"id": 531, "type": "*", "text": "*", "parent": 530, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 17}}, {"id": 532, "type": "identifier", "text": "descriptor", "parent": 530, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 27}}, {"id": 533, "type": "parameter_declaration", "text": "uint16_t rem", "parent": 522, "children": [534, 535], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 41}}, {"id": 534, "type": "primitive_type", "text": "uint16_t", "parent": 533, "children": [], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 37}}, {"id": 535, "type": "identifier", "text": "rem", "parent": 533, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 41}}, {"id": 536, "type": "declaration", "text": "int i;", "parent": 516, "children": [537, 538], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 7}}, {"id": 537, "type": "primitive_type", "text": "int", "parent": 536, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 4}}, {"id": 538, "type": "identifier", "text": "i", "parent": 536, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 6}}, {"id": 539, "type": "declaration", "text": "USBHHubDriver *hubdp;", "parent": 516, "children": [540, 541], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 22}}, {"id": 540, "type": "type_identifier", "text": "USBHHubDriver", "parent": 539, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 14}}, {"id": 541, "type": "pointer_declarator", "text": "*hubdp", "parent": 539, "children": [542, 543], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 21}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 16}}, {"id": 543, "type": "identifier", "text": "hubdp", "parent": 541, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 21}}, {"id": 544, "type": "if_statement", "text": "if ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))\r\n\t\treturn NULL;", "parent": 516, "children": [545, 562], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 147, "column": 14}}, {"id": 545, "type": "parenthesized_expression", "text": "((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))", "parent": 544, "children": [546], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 64}}, {"id": 546, "type": "binary_expression", "text": "(rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE)", "parent": 545, "children": [547, 554, 555], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 63}}, {"id": 547, "type": "parenthesized_expression", "text": "(rem < descriptor[0])", "parent": 546, "children": [548], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 26}}, {"id": 548, "type": "binary_expression", "text": "rem < descriptor[0]", "parent": 547, "children": [549, 550, 551], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 25}}, {"id": 549, "type": "identifier", "text": "rem", "parent": 548, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 9}}, {"id": 550, "type": "<", "text": "<", "parent": 548, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 11}}, {"id": 551, "type": "subscript_expression", "text": "descriptor[0]", "parent": 548, "children": [552, 553], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 25}}, {"id": 552, "type": "identifier", "text": "descriptor", "parent": 551, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 22}}, {"id": 553, "type": "number_literal", "text": "0", "parent": 551, "children": [], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 24}}, {"id": 554, "type": "||", "text": "||", "parent": 546, "children": [], "start_point": {"row": 146, "column": 27}, "end_point": {"row": 146, "column": 29}}, {"id": 555, "type": "parenthesized_expression", "text": "(descriptor[1] != USBH_DT_DEVICE)", "parent": 546, "children": [556], "start_point": {"row": 146, "column": 30}, "end_point": {"row": 146, "column": 63}}, {"id": 556, "type": "binary_expression", "text": "descriptor[1] != USBH_DT_DEVICE", "parent": 555, "children": [557, 560, 561], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 62}}, {"id": 557, "type": "subscript_expression", "text": "descriptor[1]", "parent": 556, "children": [558, 559], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 44}}, {"id": 558, "type": "identifier", "text": "descriptor", "parent": 557, "children": [], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 41}}, {"id": 559, "type": "number_literal", "text": "1", "parent": 557, "children": [], "start_point": {"row": 146, "column": 42}, "end_point": {"row": 146, "column": 43}}, {"id": 560, "type": "!=", "text": "!=", "parent": 556, "children": [], "start_point": {"row": 146, "column": 45}, "end_point": {"row": 146, "column": 47}}, {"id": 561, "type": "identifier", "text": "USBH_DT_DEVICE", "parent": 556, "children": [], "start_point": {"row": 146, "column": 48}, "end_point": {"row": 146, "column": 62}}, {"id": 562, "type": "return_statement", "text": "return NULL;", "parent": 544, "children": [563], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 14}}, {"id": 563, "type": "null", "text": "NULL", "parent": 562, "children": [564], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 13}}, {"id": 564, "type": "NULL", "text": "NULL", "parent": 563, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 13}}, {"id": 565, "type": "if_statement", "text": "if (dev->devDesc.bDeviceProtocol != 0)\r\n\t\treturn NULL;", "parent": 516, "children": [566, 575], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 150, "column": 14}}, {"id": 566, "type": "parenthesized_expression", "text": "(dev->devDesc.bDeviceProtocol != 0)", "parent": 565, "children": [567], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 39}}, {"id": 567, "type": "binary_expression", "text": "dev->devDesc.bDeviceProtocol != 0", "parent": 566, "children": [568, 573, 574], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 38}}, {"id": 568, "type": "field_expression", "text": "dev->devDesc.bDeviceProtocol", "parent": 567, "children": [569, 572], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 33}}, {"id": 569, "type": "field_expression", "text": "dev->devDesc", "parent": 568, "children": [570, 571], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 17}}, {"id": 570, "type": "identifier", "text": "dev", "parent": 569, "children": [], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 8}}, {"id": 571, "type": "field_identifier", "text": "devDesc", "parent": 569, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 17}}, {"id": 572, "type": "field_identifier", "text": "bDeviceProtocol", "parent": 568, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 33}}, {"id": 573, "type": "!=", "text": "!=", "parent": 567, "children": [], "start_point": {"row": 149, "column": 34}, "end_point": {"row": 149, "column": 36}}, {"id": 574, "type": "number_literal", "text": "0", "parent": 567, "children": [], "start_point": {"row": 149, "column": 37}, "end_point": {"row": 149, "column": 38}}, {"id": 575, "type": "return_statement", "text": "return NULL;", "parent": 565, "children": [576], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 14}}, {"id": 576, "type": "null", "text": "NULL", "parent": 575, "children": [577], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 13}}, {"id": 577, "type": "NULL", "text": "NULL", "parent": 576, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 13}}, {"id": 578, "type": "declaration", "text": "generic_iterator_t iep, icfg;", "parent": 516, "children": [579, 580, 581], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 30}}, {"id": 579, "type": "type_identifier", "text": "generic_iterator_t", "parent": 578, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 19}}, {"id": 580, "type": "identifier", "text": "iep", "parent": 578, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 23}}, {"id": 581, "type": "identifier", "text": "icfg", "parent": 578, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 29}}, {"id": 582, "type": "declaration", "text": "if_iterator_t iif;", "parent": 516, "children": [583, 584], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 19}}, {"id": 583, "type": "type_identifier", "text": "if_iterator_t", "parent": 582, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 14}}, {"id": 584, "type": "identifier", "text": "iif", "parent": 582, "children": [], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 18}}, {"id": 585, "type": "call_expression", "text": "cfg_iter_init(&icfg, dev->fullConfigurationDescriptor,\r\n\t\t\tdev->basicConfigDesc.wTotalLength)", "parent": 516, "children": [586, 587], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 156, "column": 37}}, {"id": 586, "type": "identifier", "text": "cfg_iter_init", "parent": 585, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 14}}, {"id": 587, "type": "argument_list", "text": "(&icfg, dev->fullConfigurationDescriptor,\r\n\t\t\tdev->basicConfigDesc.wTotalLength)", "parent": 585, "children": [588, 590, 593], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 156, "column": 37}}, {"id": 588, "type": "pointer_expression", "text": "&icfg", "parent": 587, "children": [589], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 20}}, {"id": 589, "type": "identifier", "text": "icfg", "parent": 588, "children": [], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 20}}, {"id": 590, "type": "field_expression", "text": "dev->fullConfigurationDescriptor", "parent": 587, "children": [591, 592], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 54}}, {"id": 591, "type": "identifier", "text": "dev", "parent": 590, "children": [], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 25}}, {"id": 592, "type": "field_identifier", "text": "fullConfigurationDescriptor", "parent": 590, "children": [], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 54}}, {"id": 593, "type": "field_expression", "text": "dev->basicConfigDesc.wTotalLength", "parent": 587, "children": [594, 597], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 156, "column": 36}}, {"id": 594, "type": "field_expression", "text": "dev->basicConfigDesc", "parent": 593, "children": [595, 596], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 156, "column": 23}}, {"id": 595, "type": "identifier", "text": "dev", "parent": 594, "children": [], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 156, "column": 6}}, {"id": 596, "type": "field_identifier", "text": "basicConfigDesc", "parent": 594, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 23}}, {"id": 597, "type": "field_identifier", "text": "wTotalLength", "parent": 593, "children": [], "start_point": {"row": 156, "column": 24}, "end_point": {"row": 156, "column": 36}}, {"id": 598, "type": "call_expression", "text": "if_iter_init(&iif, &icfg)", "parent": 516, "children": [599, 600], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 26}}, {"id": 599, "type": "identifier", "text": "if_iter_init", "parent": 598, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 13}}, {"id": 600, "type": "argument_list", "text": "(&iif, &icfg)", "parent": 598, "children": [601, 603], "start_point": {"row": 158, "column": 13}, "end_point": {"row": 158, "column": 26}}, {"id": 601, "type": "pointer_expression", "text": "&iif", "parent": 600, "children": [602], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 18}}, {"id": 602, "type": "identifier", "text": "iif", "parent": 601, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 18}}, {"id": 603, "type": "pointer_expression", "text": "&icfg", "parent": 600, "children": [604], "start_point": {"row": 158, "column": 20}, "end_point": {"row": 158, "column": 25}}, {"id": 604, "type": "identifier", "text": "icfg", "parent": 603, "children": [], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 25}}, {"id": 605, "type": "if_statement", "text": "if (!iif.valid)\r\n\t\treturn NULL;", "parent": 516, "children": [606, 612], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 160, "column": 14}}, {"id": 606, "type": "parenthesized_expression", "text": "(!iif.valid)", "parent": 605, "children": [607], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 16}}, {"id": 607, "type": "unary_expression", "text": "!iif.valid", "parent": 606, "children": [608, 609], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 15}}, {"id": 608, "type": "!", "text": "!", "parent": 607, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 6}}, {"id": 609, "type": "field_expression", "text": "iif.valid", "parent": 607, "children": [610, 611], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 15}}, {"id": 610, "type": "identifier", "text": "iif", "parent": 609, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 9}}, {"id": 611, "type": "field_identifier", "text": "valid", "parent": 609, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 15}}, {"id": 612, "type": "return_statement", "text": "return NULL;", "parent": 605, "children": [613], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 14}}, {"id": 613, "type": "null", "text": "NULL", "parent": 612, "children": [614], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 13}}, {"id": 614, "type": "NULL", "text": "NULL", "parent": 613, "children": [], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 13}}, {"id": 615, "type": "declaration", "text": "const usbh_interface_descriptor_t *const ifdesc = if_get(&iif);", "parent": 516, "children": [616, 617], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 64}}, {"id": 616, "type": "type_identifier", "text": "usbh_interface_descriptor_t", "parent": 615, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 34}}, {"id": 617, "type": "init_declarator", "text": "*const ifdesc = if_get(&iif)", "parent": 615, "children": [618, 621, 622], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 63}}, {"id": 618, "type": "pointer_declarator", "text": "*const ifdesc", "parent": 617, "children": [619, 620], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 48}}, {"id": 619, "type": "*", "text": "*", "parent": 618, "children": [], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 36}}, {"id": 620, "type": "identifier", "text": "ifdesc", "parent": 618, "children": [], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 48}}, {"id": 621, "type": "=", "text": "=", "parent": 617, "children": [], "start_point": {"row": 161, "column": 49}, "end_point": {"row": 161, "column": 50}}, {"id": 622, "type": "call_expression", "text": "if_get(&iif)", "parent": 617, "children": [623, 624], "start_point": {"row": 161, "column": 51}, "end_point": {"row": 161, "column": 63}}, {"id": 623, "type": "identifier", "text": "if_get", "parent": 622, "children": [], "start_point": {"row": 161, "column": 51}, "end_point": {"row": 161, "column": 57}}, {"id": 624, "type": "argument_list", "text": "(&iif)", "parent": 622, "children": [625], "start_point": {"row": 161, "column": 57}, "end_point": {"row": 161, "column": 63}}, {"id": 625, "type": "pointer_expression", "text": "&iif", "parent": 624, "children": [626], "start_point": {"row": 161, "column": 58}, "end_point": {"row": 161, "column": 62}}, {"id": 626, "type": "identifier", "text": "iif", "parent": 625, "children": [], "start_point": {"row": 161, "column": 59}, "end_point": {"row": 161, "column": 62}}, {"id": 627, "type": "if_statement", "text": "if ((ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00)) {\r\n\t\treturn NULL;\r\n\t}", "parent": 516, "children": [628], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 628, "type": "parenthesized_expression", "text": "((ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00))", "parent": 627, "children": [629], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 164, "column": 42}}, {"id": 629, "type": "binary_expression", "text": "(ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00)", "parent": 628, "children": [630, 646, 647], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 164, "column": 41}}, {"id": 630, "type": "binary_expression", "text": "(ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)", "parent": 629, "children": [631, 638, 639], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 163, "column": 41}}, {"id": 631, "type": "parenthesized_expression", "text": "(ifdesc->bInterfaceClass != 0x09)", "parent": 630, "children": [632], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 38}}, {"id": 632, "type": "binary_expression", "text": "ifdesc->bInterfaceClass != 0x09", "parent": 631, "children": [633, 636, 637], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 37}}, {"id": 633, "type": "field_expression", "text": "ifdesc->bInterfaceClass", "parent": 632, "children": [634, 635], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 29}}, {"id": 634, "type": "identifier", "text": "ifdesc", "parent": 633, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 12}}, {"id": 635, "type": "field_identifier", "text": "bInterfaceClass", "parent": 633, "children": [], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 29}}, {"id": 636, "type": "!=", "text": "!=", "parent": 632, "children": [], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 32}}, {"id": 637, "type": "number_literal", "text": "0x09", "parent": 632, "children": [], "start_point": {"row": 162, "column": 33}, "end_point": {"row": 162, "column": 37}}, {"id": 638, "type": "||", "text": "||", "parent": 630, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 4}}, {"id": 639, "type": "parenthesized_expression", "text": "(ifdesc->bInterfaceSubClass != 0x00)", "parent": 630, "children": [640], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 41}}, {"id": 640, "type": "binary_expression", "text": "ifdesc->bInterfaceSubClass != 0x00", "parent": 639, "children": [641, 644, 645], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 40}}, {"id": 641, "type": "field_expression", "text": "ifdesc->bInterfaceSubClass", "parent": 640, "children": [642, 643], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 32}}, {"id": 642, "type": "identifier", "text": "ifdesc", "parent": 641, "children": [], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 12}}, {"id": 643, "type": "field_identifier", "text": "bInterfaceSubClass", "parent": 641, "children": [], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 32}}, {"id": 644, "type": "!=", "text": "!=", "parent": 640, "children": [], "start_point": {"row": 163, "column": 33}, "end_point": {"row": 163, "column": 35}}, {"id": 645, "type": "number_literal", "text": "0x00", "parent": 640, "children": [], "start_point": {"row": 163, "column": 36}, "end_point": {"row": 163, "column": 40}}, {"id": 646, "type": "||", "text": "||", "parent": 629, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 4}}, {"id": 647, "type": "parenthesized_expression", "text": "(ifdesc->bInterfaceProtocol != 0x00)", "parent": 629, "children": [648], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 41}}, {"id": 648, "type": "binary_expression", "text": "ifdesc->bInterfaceProtocol != 0x00", "parent": 647, "children": [649, 652, 653], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 40}}, {"id": 649, "type": "field_expression", "text": "ifdesc->bInterfaceProtocol", "parent": 648, "children": [650, 651], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 32}}, {"id": 650, "type": "identifier", "text": "ifdesc", "parent": 649, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 12}}, {"id": 651, "type": "field_identifier", "text": "bInterfaceProtocol", "parent": 649, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 32}}, {"id": 652, "type": "!=", "text": "!=", "parent": 648, "children": [], "start_point": {"row": 164, "column": 33}, "end_point": {"row": 164, "column": 35}}, {"id": 653, "type": "number_literal", "text": "0x00", "parent": 648, "children": [], "start_point": {"row": 164, "column": 36}, "end_point": {"row": 164, "column": 40}}, {"id": 654, "type": "return_statement", "text": "return NULL;", "parent": 627, "children": [655], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 14}}, {"id": 655, "type": "null", "text": "NULL", "parent": 654, "children": [656], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 13}}, {"id": 656, "type": "NULL", "text": "NULL", "parent": 655, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 13}}, {"id": 657, "type": "call_expression", "text": "ep_iter_init(&iep, &iif)", "parent": 516, "children": [658, 659], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 25}}, {"id": 658, "type": "identifier", "text": "ep_iter_init", "parent": 657, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 13}}, {"id": 659, "type": "argument_list", "text": "(&iep, &iif)", "parent": 657, "children": [660, 662], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 25}}, {"id": 660, "type": "pointer_expression", "text": "&iep", "parent": 659, "children": [661], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 18}}, {"id": 661, "type": "identifier", "text": "iep", "parent": 660, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 18}}, {"id": 662, "type": "pointer_expression", "text": "&iif", "parent": 659, "children": [663], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 24}}, {"id": 663, "type": "identifier", "text": "iif", "parent": 662, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 24}}, {"id": 664, "type": "if_statement", "text": "if (!iep.valid)\r\n\t\treturn NULL;", "parent": 516, "children": [665, 671], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 170, "column": 14}}, {"id": 665, "type": "parenthesized_expression", "text": "(!iep.valid)", "parent": 664, "children": [666], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 16}}, {"id": 666, "type": "unary_expression", "text": "!iep.valid", "parent": 665, "children": [667, 668], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 15}}, {"id": 667, "type": "!", "text": "!", "parent": 666, "children": [], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 6}}, {"id": 668, "type": "field_expression", "text": "iep.valid", "parent": 666, "children": [669, 670], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 15}}, {"id": 669, "type": "identifier", "text": "iep", "parent": 668, "children": [], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 9}}, {"id": 670, "type": "field_identifier", "text": "valid", "parent": 668, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 15}}, {"id": 671, "type": "return_statement", "text": "return NULL;", "parent": 664, "children": [672], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 14}}, {"id": 672, "type": "null", "text": "NULL", "parent": 671, "children": [673], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 13}}, {"id": 673, "type": "NULL", "text": "NULL", "parent": 672, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 13}}, {"id": 674, "type": "declaration", "text": "const usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep);", "parent": 516, "children": [675, 676], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 63}}, {"id": 675, "type": "type_identifier", "text": "usbh_endpoint_descriptor_t", "parent": 674, "children": [], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 33}}, {"id": 676, "type": "init_declarator", "text": "*const epdesc = ep_get(&iep)", "parent": 674, "children": [677, 680, 681], "start_point": {"row": 171, "column": 34}, "end_point": {"row": 171, "column": 62}}, {"id": 677, "type": "pointer_declarator", "text": "*const epdesc", "parent": 676, "children": [678, 679], "start_point": {"row": 171, "column": 34}, "end_point": {"row": 171, "column": 47}}, {"id": 678, "type": "*", "text": "*", "parent": 677, "children": [], "start_point": {"row": 171, "column": 34}, "end_point": {"row": 171, "column": 35}}, {"id": 679, "type": "identifier", "text": "epdesc", "parent": 677, "children": [], "start_point": {"row": 171, "column": 41}, "end_point": {"row": 171, "column": 47}}, {"id": 680, "type": "=", "text": "=", "parent": 676, "children": [], "start_point": {"row": 171, "column": 48}, "end_point": {"row": 171, "column": 49}}, {"id": 681, "type": "call_expression", "text": "ep_get(&iep)", "parent": 676, "children": [682, 683], "start_point": {"row": 171, "column": 50}, "end_point": {"row": 171, "column": 62}}, {"id": 682, "type": "identifier", "text": "ep_get", "parent": 681, "children": [], "start_point": {"row": 171, "column": 50}, "end_point": {"row": 171, "column": 56}}, {"id": 683, "type": "argument_list", "text": "(&iep)", "parent": 681, "children": [684], "start_point": {"row": 171, "column": 56}, "end_point": {"row": 171, "column": 62}}, {"id": 684, "type": "pointer_expression", "text": "&iep", "parent": 683, "children": [685], "start_point": {"row": 171, "column": 57}, "end_point": {"row": 171, "column": 61}}, {"id": 685, "type": "identifier", "text": "iep", "parent": 684, "children": [], "start_point": {"row": 171, "column": 58}, "end_point": {"row": 171, "column": 61}}, {"id": 686, "type": "if_statement", "text": "if ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) {\r\n\t\treturn NULL;\r\n\t}", "parent": 516, "children": [687], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 174, "column": 2}}, {"id": 687, "type": "parenthesized_expression", "text": "((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT)", "parent": 686, "children": [688], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 54}}, {"id": 688, "type": "binary_expression", "text": "(epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT", "parent": 687, "children": [689, 695, 696], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 53}}, {"id": 689, "type": "parenthesized_expression", "text": "(epdesc->bmAttributes & 0x03)", "parent": 688, "children": [690], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 34}}, {"id": 690, "type": "binary_expression", "text": "epdesc->bmAttributes & 0x03", "parent": 689, "children": [691, 694], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 33}}, {"id": 691, "type": "field_expression", "text": "epdesc->bmAttributes", "parent": 690, "children": [692, 693], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 26}}, {"id": 692, "type": "identifier", "text": "epdesc", "parent": 691, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 12}}, {"id": 693, "type": "field_identifier", "text": "bmAttributes", "parent": 691, "children": [], "start_point": {"row": 172, "column": 14}, "end_point": {"row": 172, "column": 26}}, {"id": 694, "type": "number_literal", "text": "0x03", "parent": 690, "children": [], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 33}}, {"id": 695, "type": "!=", "text": "!=", "parent": 688, "children": [], "start_point": {"row": 172, "column": 35}, "end_point": {"row": 172, "column": 37}}, {"id": 696, "type": "identifier", "text": "USBH_EPTYPE_INT", "parent": 688, "children": [], "start_point": {"row": 172, "column": 38}, "end_point": {"row": 172, "column": 53}}, {"id": 697, "type": "return_statement", "text": "return NULL;", "parent": 686, "children": [698], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 14}}, {"id": 698, "type": "null", "text": "NULL", "parent": 697, "children": [699], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 13}}, {"id": 699, "type": "NULL", "text": "NULL", "parent": 698, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 13}}, {"id": 700, "type": "for_statement", "text": "for (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) {\r\n\t\tif (USBHHUBD[i].dev == NULL) {\r\n\t\t\thubdp = &USBHHUBD[i];\r\n\t\t\tgoto alloc_ok;\r\n\t\t}\r\n\t}", "parent": 516, "children": [701, 705, 709], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 183, "column": 2}}, {"id": 701, "type": "assignment_expression", "text": "i = 0", "parent": 700, "children": [702, 703, 704], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 11}}, {"id": 702, "type": "identifier", "text": "i", "parent": 701, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 7}}, {"id": 703, "type": "=", "text": "=", "parent": 701, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 9}}, {"id": 704, "type": "number_literal", "text": "0", "parent": 701, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 11}}, {"id": 705, "type": "binary_expression", "text": "i < HAL_USBHHUB_MAX_INSTANCES", "parent": 700, "children": [706, 707, 708], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 42}}, {"id": 706, "type": "identifier", "text": "i", "parent": 705, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 707, "type": "<", "text": "<", "parent": 705, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 16}}, {"id": 708, "type": "identifier", "text": "HAL_USBHHUB_MAX_INSTANCES", "parent": 705, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 42}}, {"id": 709, "type": "update_expression", "text": "i++", "parent": 700, "children": [710, 711], "start_point": {"row": 178, "column": 44}, "end_point": {"row": 178, "column": 47}}, {"id": 710, "type": "identifier", "text": "i", "parent": 709, "children": [], "start_point": {"row": 178, "column": 44}, "end_point": {"row": 178, "column": 45}}, {"id": 711, "type": "++", "text": "++", "parent": 709, "children": [], "start_point": {"row": 178, "column": 45}, "end_point": {"row": 178, "column": 47}}, {"id": 712, "type": "if_statement", "text": "if (USBHHUBD[i].dev == NULL) {\r\n\t\t\thubdp = &USBHHUBD[i];\r\n\t\t\tgoto alloc_ok;\r\n\t\t}", "parent": 700, "children": [713], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 182, "column": 3}}, {"id": 713, "type": "parenthesized_expression", "text": "(USBHHUBD[i].dev == NULL)", "parent": 712, "children": [714], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 30}}, {"id": 714, "type": "binary_expression", "text": "USBHHUBD[i].dev == NULL", "parent": 713, "children": [715, 720, 721], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 29}}, {"id": 715, "type": "field_expression", "text": "USBHHUBD[i].dev", "parent": 714, "children": [716, 719], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 21}}, {"id": 716, "type": "subscript_expression", "text": "USBHHUBD[i]", "parent": 715, "children": [717, 718], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 17}}, {"id": 717, "type": "identifier", "text": "USBHHUBD", "parent": 716, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 14}}, {"id": 718, "type": "identifier", "text": "i", "parent": 716, "children": [], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 16}}, {"id": 719, "type": "field_identifier", "text": "dev", "parent": 715, "children": [], "start_point": {"row": 179, "column": 18}, "end_point": {"row": 179, "column": 21}}, {"id": 720, "type": "==", "text": "==", "parent": 714, "children": [], "start_point": {"row": 179, "column": 22}, "end_point": {"row": 179, "column": 24}}, {"id": 721, "type": "null", "text": "NULL", "parent": 714, "children": [722], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 29}}, {"id": 722, "type": "NULL", "text": "NULL", "parent": 721, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 29}}, {"id": 723, "type": "assignment_expression", "text": "hubdp = &USBHHUBD[i]", "parent": 712, "children": [724, 725, 726], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 23}}, {"id": 724, "type": "identifier", "text": "hubdp", "parent": 723, "children": [], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 8}}, {"id": 725, "type": "=", "text": "=", "parent": 723, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 10}}, {"id": 726, "type": "pointer_expression", "text": "&USBHHUBD[i]", "parent": 723, "children": [727], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 23}}, {"id": 727, "type": "subscript_expression", "text": "USBHHUBD[i]", "parent": 726, "children": [728, 729], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 23}}, {"id": 728, "type": "identifier", "text": "USBHHUBD", "parent": 727, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 20}}, {"id": 729, "type": "identifier", "text": "i", "parent": 727, "children": [], "start_point": {"row": 180, "column": 21}, "end_point": {"row": 180, "column": 22}}, {"id": 730, "type": "goto_statement", "text": "goto alloc_ok;", "parent": 712, "children": [731, 732], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 17}}, {"id": 731, "type": "goto", "text": "goto", "parent": 730, "children": [], "start_point": {"row": 181, "column": 3}, "end_point": {"row": 181, "column": 7}}, {"id": 732, "type": "statement_identifier", "text": "alloc_ok", "parent": 730, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 16}}, {"id": 733, "type": "call_expression", "text": "uwarn(\"Can't alloc HUB driver\")", "parent": 516, "children": [734, 735], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 32}}, {"id": 734, "type": "identifier", "text": "uwarn", "parent": 733, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 6}}, {"id": 735, "type": "argument_list", "text": "(\"Can't alloc HUB driver\")", "parent": 733, "children": [736], "start_point": {"row": 185, "column": 6}, "end_point": {"row": 185, "column": 32}}, {"id": 736, "type": "string_literal", "text": "\"Can't alloc HUB driver\"", "parent": 735, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 31}}, {"id": 737, "type": "return_statement", "text": "return NULL;", "parent": 516, "children": [738], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 13}}, {"id": 738, "type": "null", "text": "NULL", "parent": 737, "children": [739], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 12}}, {"id": 739, "type": "NULL", "text": "NULL", "parent": 738, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 12}}, {"id": 740, "type": "labeled_statement", "text": "alloc_ok:\r\n\t/* initialize the driver's variables */\r\n\thubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;", "parent": 516, "children": [741], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 192, "column": 51}}, {"id": 741, "type": "statement_identifier", "text": "alloc_ok", "parent": 740, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 8}}, {"id": 742, "type": "assignment_expression", "text": "hubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED", "parent": 740, "children": [743, 748, 749], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 50}}, {"id": 743, "type": "field_expression", "text": "hubdp->epint.status", "parent": 742, "children": [744, 747], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 20}}, {"id": 744, "type": "field_expression", "text": "hubdp->epint", "parent": 743, "children": [745, 746], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 13}}, {"id": 745, "type": "identifier", "text": "hubdp", "parent": 744, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 6}}, {"id": 746, "type": "field_identifier", "text": "epint", "parent": 744, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 13}}, {"id": 747, "type": "field_identifier", "text": "status", "parent": 743, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 20}}, {"id": 748, "type": "=", "text": "=", "parent": 742, "children": [], "start_point": {"row": 192, "column": 21}, "end_point": {"row": 192, "column": 22}}, {"id": 749, "type": "identifier", "text": "USBH_EPSTATUS_UNINITIALIZED", "parent": 742, "children": [], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 50}}, {"id": 750, "type": "assignment_expression", "text": "hubdp->dev = dev", "parent": 516, "children": [751, 754, 755], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 17}}, {"id": 751, "type": "field_expression", "text": "hubdp->dev", "parent": 750, "children": [752, 753], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 11}}, {"id": 752, "type": "identifier", "text": "hubdp", "parent": 751, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 6}}, {"id": 753, "type": "field_identifier", "text": "dev", "parent": 751, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 11}}, {"id": 754, "type": "=", "text": "=", "parent": 750, "children": [], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 13}}, {"id": 755, "type": "identifier", "text": "dev", "parent": 750, "children": [], "start_point": {"row": 193, "column": 14}, "end_point": {"row": 193, "column": 17}}, {"id": 756, "type": "assignment_expression", "text": "hubdp->ports = 0", "parent": 516, "children": [757, 760, 761], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 17}}, {"id": 757, "type": "field_expression", "text": "hubdp->ports", "parent": 756, "children": [758, 759], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 13}}, {"id": 758, "type": "identifier", "text": "hubdp", "parent": 757, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 6}}, {"id": 759, "type": "field_identifier", "text": "ports", "parent": 757, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 13}}, {"id": 760, "type": "=", "text": "=", "parent": 756, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 15}}, {"id": 761, "type": "number_literal", "text": "0", "parent": 756, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 17}}, {"id": 762, "type": "call_expression", "text": "usbhEPSetName(&dev->ctrl, \"HUB[CTRL]\")", "parent": 516, "children": [763, 764], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 39}}, {"id": 763, "type": "identifier", "text": "usbhEPSetName", "parent": 762, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 14}}, {"id": 764, "type": "argument_list", "text": "(&dev->ctrl, \"HUB[CTRL]\")", "parent": 762, "children": [765, 769], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 196, "column": 39}}, {"id": 765, "type": "pointer_expression", "text": "&dev->ctrl", "parent": 764, "children": [766], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 25}}, {"id": 766, "type": "field_expression", "text": "dev->ctrl", "parent": 765, "children": [767, 768], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 25}}, {"id": 767, "type": "identifier", "text": "dev", "parent": 766, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 19}}, {"id": 768, "type": "field_identifier", "text": "ctrl", "parent": 766, "children": [], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 25}}, {"id": 769, "type": "string_literal", "text": "\"HUB[CTRL]\"", "parent": 764, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 38}}, {"id": 770, "type": "call_expression", "text": "uinfo(\"Read Hub descriptor\")", "parent": 516, "children": [771, 772], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 29}}, {"id": 771, "type": "identifier", "text": "uinfo", "parent": 770, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 6}}, {"id": 772, "type": "argument_list", "text": "(\"Read Hub descriptor\")", "parent": 770, "children": [773], "start_point": {"row": 199, "column": 6}, "end_point": {"row": 199, "column": 29}}, {"id": 773, "type": "string_literal", "text": "\"Read Hub descriptor\"", "parent": 772, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 28}}, {"id": 774, "type": "if_statement", "text": "if (usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) {\r\n\t\thubdp->dev = NULL;\r\n\t\treturn NULL;\r\n\t}", "parent": 516, "children": [775], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 207, "column": 2}}, {"id": 775, "type": "parenthesized_expression", "text": "(usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK)", "parent": 774, "children": [776], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 204, "column": 52}}, {"id": 776, "type": "binary_expression", "text": "usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK", "parent": 775, "children": [777, 810, 811], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 204, "column": 51}}, {"id": 777, "type": "call_expression", "text": "usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc)", "parent": 776, "children": [778, 779], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 204, "column": 30}}, {"id": 778, "type": "identifier", "text": "usbhhubControlRequest", "parent": 777, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 26}}, {"id": 779, "type": "argument_list", "text": "(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc)", "parent": 777, "children": [780, 783, 784, 789, 790, 795, 796, 801], "start_point": {"row": 200, "column": 26}, "end_point": {"row": 204, "column": 30}}, {"id": 780, "type": "field_expression", "text": "dev->host", "parent": 779, "children": [781, 782], "start_point": {"row": 200, "column": 27}, "end_point": {"row": 200, "column": 36}}, {"id": 781, "type": "identifier", "text": "dev", "parent": 780, "children": [], "start_point": {"row": 200, "column": 27}, "end_point": {"row": 200, "column": 30}}, {"id": 782, "type": "field_identifier", "text": "host", "parent": 780, "children": [], "start_point": {"row": 200, "column": 32}, "end_point": {"row": 200, "column": 36}}, {"id": 783, "type": "identifier", "text": "hubdp", "parent": 779, "children": [], "start_point": {"row": 200, "column": 38}, "end_point": {"row": 200, "column": 43}}, {"id": 784, "type": "binary_expression", "text": "USBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE", "parent": 779, "children": [785, 788], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 61}}, {"id": 785, "type": "binary_expression", "text": "USBH_REQTYPE_IN | USBH_REQTYPE_CLASS", "parent": 784, "children": [786, 787], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 39}}, {"id": 786, "type": "identifier", "text": "USBH_REQTYPE_IN", "parent": 785, "children": [], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 18}}, {"id": 787, "type": "identifier", "text": "USBH_REQTYPE_CLASS", "parent": 785, "children": [], "start_point": {"row": 201, "column": 21}, "end_point": {"row": 201, "column": 39}}, {"id": 788, "type": "identifier", "text": "USBH_REQTYPE_DEVICE", "parent": 784, "children": [], "start_point": {"row": 201, "column": 42}, "end_point": {"row": 201, "column": 61}}, {"id": 789, "type": "identifier", "text": "USBH_REQ_GET_DESCRIPTOR", "parent": 779, "children": [], "start_point": {"row": 202, "column": 3}, "end_point": {"row": 202, "column": 26}}, {"id": 790, "type": "parenthesized_expression", "text": "(USBH_DT_HUB << 8)", "parent": 779, "children": [791], "start_point": {"row": 203, "column": 3}, "end_point": {"row": 203, "column": 21}}, {"id": 791, "type": "binary_expression", "text": "USBH_DT_HUB << 8", "parent": 790, "children": [792, 793, 794], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 20}}, {"id": 792, "type": "identifier", "text": "USBH_DT_HUB", "parent": 791, "children": [], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 15}}, {"id": 793, "type": "<<", "text": "<<", "parent": 791, "children": [], "start_point": {"row": 203, "column": 16}, "end_point": {"row": 203, "column": 18}}, {"id": 794, "type": "number_literal", "text": "8", "parent": 791, "children": [], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 20}}, {"id": 795, "type": "number_literal", "text": "0", "parent": 779, "children": [], "start_point": {"row": 203, "column": 23}, "end_point": {"row": 203, "column": 24}}, {"id": 796, "type": "sizeof_expression", "text": "sizeof(hubdp->hubDesc)", "parent": 779, "children": [797], "start_point": {"row": 203, "column": 26}, "end_point": {"row": 203, "column": 48}}, {"id": 797, "type": "parenthesized_expression", "text": "(hubdp->hubDesc)", "parent": 796, "children": [798], "start_point": {"row": 203, "column": 32}, "end_point": {"row": 203, "column": 48}}, {"id": 798, "type": "field_expression", "text": "hubdp->hubDesc", "parent": 797, "children": [799, 800], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 47}}, {"id": 799, "type": "identifier", "text": "hubdp", "parent": 798, "children": [], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 38}}, {"id": 800, "type": "field_identifier", "text": "hubDesc", "parent": 798, "children": [], "start_point": {"row": 203, "column": 40}, "end_point": {"row": 203, "column": 47}}, {"id": 801, "type": "cast_expression", "text": "(uint8_t *)&hubdp->hubDesc", "parent": 779, "children": [802, 806], "start_point": {"row": 204, "column": 3}, "end_point": {"row": 204, "column": 29}}, {"id": 802, "type": "type_descriptor", "text": "uint8_t *", "parent": 801, "children": [803, 804], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 13}}, {"id": 803, "type": "primitive_type", "text": "uint8_t", "parent": 802, "children": [], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 11}}, {"id": 804, "type": "abstract_pointer_declarator", "text": "*", "parent": 802, "children": [805], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 13}}, {"id": 805, "type": "*", "text": "*", "parent": 804, "children": [], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 13}}, {"id": 806, "type": "pointer_expression", "text": "&hubdp->hubDesc", "parent": 801, "children": [807], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 29}}, {"id": 807, "type": "field_expression", "text": "hubdp->hubDesc", "parent": 806, "children": [808, 809], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 29}}, {"id": 808, "type": "identifier", "text": "hubdp", "parent": 807, "children": [], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 20}}, {"id": 809, "type": "field_identifier", "text": "hubDesc", "parent": 807, "children": [], "start_point": {"row": 204, "column": 22}, "end_point": {"row": 204, "column": 29}}, {"id": 810, "type": "!=", "text": "!=", "parent": 776, "children": [], "start_point": {"row": 204, "column": 31}, "end_point": {"row": 204, "column": 33}}, {"id": 811, "type": "identifier", "text": "USBH_URBSTATUS_OK", "parent": 776, "children": [], "start_point": {"row": 204, "column": 34}, "end_point": {"row": 204, "column": 51}}, {"id": 812, "type": "assignment_expression", "text": "hubdp->dev = NULL", "parent": 774, "children": [813, 816, 817], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 19}}, {"id": 813, "type": "field_expression", "text": "hubdp->dev", "parent": 812, "children": [814, 815], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 12}}, {"id": 814, "type": "identifier", "text": "hubdp", "parent": 813, "children": [], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 7}}, {"id": 815, "type": "field_identifier", "text": "dev", "parent": 813, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 12}}, {"id": 816, "type": "=", "text": "=", "parent": 812, "children": [], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 14}}, {"id": 817, "type": "null", "text": "NULL", "parent": 812, "children": [818], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 19}}, {"id": 818, "type": "NULL", "text": "NULL", "parent": 817, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 19}}, {"id": 819, "type": "return_statement", "text": "return NULL;", "parent": 774, "children": [820], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 14}}, {"id": 820, "type": "null", "text": "NULL", "parent": 819, "children": [821], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 13}}, {"id": 821, "type": "NULL", "text": "NULL", "parent": 820, "children": [], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 13}}, {"id": 822, "type": "declaration", "text": "const usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc;", "parent": 516, "children": [823, 824], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 62}}, {"id": 823, "type": "type_identifier", "text": "usbh_hub_descriptor_t", "parent": 822, "children": [], "start_point": {"row": 209, "column": 7}, "end_point": {"row": 209, "column": 28}}, {"id": 824, "type": "init_declarator", "text": "*const hubdesc = &hubdp->hubDesc", "parent": 822, "children": [825, 828, 829], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 61}}, {"id": 825, "type": "pointer_declarator", "text": "*const hubdesc", "parent": 824, "children": [826, 827], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 43}}, {"id": 826, "type": "*", "text": "*", "parent": 825, "children": [], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 30}}, {"id": 827, "type": "identifier", "text": "hubdesc", "parent": 825, "children": [], "start_point": {"row": 209, "column": 36}, "end_point": {"row": 209, "column": 43}}, {"id": 828, "type": "=", "text": "=", "parent": 824, "children": [], "start_point": {"row": 209, "column": 44}, "end_point": {"row": 209, "column": 45}}, {"id": 829, "type": "pointer_expression", "text": "&hubdp->hubDesc", "parent": 824, "children": [830], "start_point": {"row": 209, "column": 46}, "end_point": {"row": 209, "column": 61}}, {"id": 830, "type": "field_expression", "text": "hubdp->hubDesc", "parent": 829, "children": [831, 832], "start_point": {"row": 209, "column": 47}, "end_point": {"row": 209, "column": 61}}, {"id": 831, "type": "identifier", "text": "hubdp", "parent": 830, "children": [], "start_point": {"row": 209, "column": 47}, "end_point": {"row": 209, "column": 52}}, {"id": 832, "type": "field_identifier", "text": "hubDesc", "parent": 830, "children": [], "start_point": {"row": 209, "column": 54}, "end_point": {"row": 209, "column": 61}}, {"id": 833, "type": "call_expression", "text": "uinfof(\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\",\r\n\t\t\thubdesc->bNbrPorts,\r\n\t\t\thubdesc->wHubCharacteristics,\r\n\t\t\thubdesc->bPwrOn2PwrGood,\r\n\t\t\thubdesc->bHubContrCurrent)", "parent": 516, "children": [834, 835], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 215, "column": 29}}, {"id": 834, "type": "identifier", "text": "uinfof", "parent": 833, "children": [], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 7}}, {"id": 835, "type": "argument_list", "text": "(\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\",\r\n\t\t\thubdesc->bNbrPorts,\r\n\t\t\thubdesc->wHubCharacteristics,\r\n\t\t\thubdesc->bPwrOn2PwrGood,\r\n\t\t\thubdesc->bHubContrCurrent)", "parent": 833, "children": [836, 837, 840, 843, 846], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 215, "column": 29}}, {"id": 836, "type": "string_literal", "text": "\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\"", "parent": 835, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 107}}, {"id": 837, "type": "field_expression", "text": "hubdesc->bNbrPorts", "parent": 835, "children": [838, 839], "start_point": {"row": 212, "column": 3}, "end_point": {"row": 212, "column": 21}}, {"id": 838, "type": "identifier", "text": "hubdesc", "parent": 837, "children": [], "start_point": {"row": 212, "column": 3}, "end_point": {"row": 212, "column": 10}}, {"id": 839, "type": "field_identifier", "text": "bNbrPorts", "parent": 837, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 21}}, {"id": 840, "type": "field_expression", "text": "hubdesc->wHubCharacteristics", "parent": 835, "children": [841, 842], "start_point": {"row": 213, "column": 3}, "end_point": {"row": 213, "column": 31}}, {"id": 841, "type": "identifier", "text": "hubdesc", "parent": 840, "children": [], "start_point": {"row": 213, "column": 3}, "end_point": {"row": 213, "column": 10}}, {"id": 842, "type": "field_identifier", "text": "wHubCharacteristics", "parent": 840, "children": [], "start_point": {"row": 213, "column": 12}, "end_point": {"row": 213, "column": 31}}, {"id": 843, "type": "field_expression", "text": "hubdesc->bPwrOn2PwrGood", "parent": 835, "children": [844, 845], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 26}}, {"id": 844, "type": "identifier", "text": "hubdesc", "parent": 843, "children": [], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 10}}, {"id": 845, "type": "field_identifier", "text": "bPwrOn2PwrGood", "parent": 843, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 26}}, {"id": 846, "type": "field_expression", "text": "hubdesc->bHubContrCurrent", "parent": 835, "children": [847, 848], "start_point": {"row": 215, "column": 3}, "end_point": {"row": 215, "column": 28}}, {"id": 847, "type": "identifier", "text": "hubdesc", "parent": 846, "children": [], "start_point": {"row": 215, "column": 3}, "end_point": {"row": 215, "column": 10}}, {"id": 848, "type": "field_identifier", "text": "bHubContrCurrent", "parent": 846, "children": [], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 28}}, {"id": 849, "type": "declaration", "text": "uint8_t ports = hubdesc->bNbrPorts;", "parent": 516, "children": [850, 851], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 36}}, {"id": 850, "type": "primitive_type", "text": "uint8_t", "parent": 849, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 8}}, {"id": 851, "type": "init_declarator", "text": "ports = hubdesc->bNbrPorts", "parent": 849, "children": [852, 853, 854], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 35}}, {"id": 852, "type": "identifier", "text": "ports", "parent": 851, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 14}}, {"id": 853, "type": "=", "text": "=", "parent": 851, "children": [], "start_point": {"row": 218, "column": 15}, "end_point": {"row": 218, "column": 16}}, {"id": 854, "type": "field_expression", "text": "hubdesc->bNbrPorts", "parent": 851, "children": [855, 856], "start_point": {"row": 218, "column": 17}, "end_point": {"row": 218, "column": 35}}, {"id": 855, "type": "identifier", "text": "hubdesc", "parent": 854, "children": [], "start_point": {"row": 218, "column": 17}, "end_point": {"row": 218, "column": 24}}, {"id": 856, "type": "field_identifier", "text": "bNbrPorts", "parent": 854, "children": [], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 35}}, {"id": 857, "type": "for_statement", "text": "for (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) {\r\n\t\tif (USBHPorts[i].hub == NULL) {\r\n\t\t\tuinfof(\"Alloc port %d\", ports);\r\n\t\t\t_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);\r\n\t\t\tUSBHPorts[i].next = hubdp->ports;\r\n\t\t\thubdp->ports = &USBHPorts[i];\r\n\t\t\t--ports;\r\n\t\t}\r\n\t}", "parent": 516, "children": [858, 862, 874], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 227, "column": 2}}, {"id": 858, "type": "assignment_expression", "text": "i = 0", "parent": 857, "children": [859, 860, 861], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 11}}, {"id": 859, "type": "identifier", "text": "i", "parent": 858, "children": [], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 7}}, {"id": 860, "type": "=", "text": "=", "parent": 858, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 9}}, {"id": 861, "type": "number_literal", "text": "0", "parent": 858, "children": [], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 11}}, {"id": 862, "type": "binary_expression", "text": "(ports > 0) && (i < HAL_USBHHUB_MAX_PORTS)", "parent": 857, "children": [863, 868, 869], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 55}}, {"id": 863, "type": "parenthesized_expression", "text": "(ports > 0)", "parent": 862, "children": [864], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 24}}, {"id": 864, "type": "binary_expression", "text": "ports > 0", "parent": 863, "children": [865, 866, 867], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 23}}, {"id": 865, "type": "identifier", "text": "ports", "parent": 864, "children": [], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 19}}, {"id": 866, "type": ">", "text": ">", "parent": 864, "children": [], "start_point": {"row": 219, "column": 20}, "end_point": {"row": 219, "column": 21}}, {"id": 867, "type": "number_literal", "text": "0", "parent": 864, "children": [], "start_point": {"row": 219, "column": 22}, "end_point": {"row": 219, "column": 23}}, {"id": 868, "type": "&&", "text": "&&", "parent": 862, "children": [], "start_point": {"row": 219, "column": 25}, "end_point": {"row": 219, "column": 27}}, {"id": 869, "type": "parenthesized_expression", "text": "(i < HAL_USBHHUB_MAX_PORTS)", "parent": 862, "children": [870], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 55}}, {"id": 870, "type": "binary_expression", "text": "i < HAL_USBHHUB_MAX_PORTS", "parent": 869, "children": [871, 872, 873], "start_point": {"row": 219, "column": 29}, "end_point": {"row": 219, "column": 54}}, {"id": 871, "type": "identifier", "text": "i", "parent": 870, "children": [], "start_point": {"row": 219, "column": 29}, "end_point": {"row": 219, "column": 30}}, {"id": 872, "type": "<", "text": "<", "parent": 870, "children": [], "start_point": {"row": 219, "column": 31}, "end_point": {"row": 219, "column": 32}}, {"id": 873, "type": "identifier", "text": "HAL_USBHHUB_MAX_PORTS", "parent": 870, "children": [], "start_point": {"row": 219, "column": 33}, "end_point": {"row": 219, "column": 54}}, {"id": 874, "type": "update_expression", "text": "i++", "parent": 857, "children": [875, 876], "start_point": {"row": 219, "column": 57}, "end_point": {"row": 219, "column": 60}}, {"id": 875, "type": "identifier", "text": "i", "parent": 874, "children": [], "start_point": {"row": 219, "column": 57}, "end_point": {"row": 219, "column": 58}}, {"id": 876, "type": "++", "text": "++", "parent": 874, "children": [], "start_point": {"row": 219, "column": 58}, "end_point": {"row": 219, "column": 60}}, {"id": 877, "type": "if_statement", "text": "if (USBHPorts[i].hub == NULL) {\r\n\t\t\tuinfof(\"Alloc port %d\", ports);\r\n\t\t\t_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);\r\n\t\t\tUSBHPorts[i].next = hubdp->ports;\r\n\t\t\thubdp->ports = &USBHPorts[i];\r\n\t\t\t--ports;\r\n\t\t}", "parent": 857, "children": [878], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 226, "column": 3}}, {"id": 878, "type": "parenthesized_expression", "text": "(USBHPorts[i].hub == NULL)", "parent": 877, "children": [879], "start_point": {"row": 220, "column": 5}, "end_point": {"row": 220, "column": 31}}, {"id": 879, "type": "binary_expression", "text": "USBHPorts[i].hub == NULL", "parent": 878, "children": [880, 885, 886], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 30}}, {"id": 880, "type": "field_expression", "text": "USBHPorts[i].hub", "parent": 879, "children": [881, 884], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 22}}, {"id": 881, "type": "subscript_expression", "text": "USBHPorts[i]", "parent": 880, "children": [882, 883], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 18}}, {"id": 882, "type": "identifier", "text": "USBHPorts", "parent": 881, "children": [], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 15}}, {"id": 883, "type": "identifier", "text": "i", "parent": 881, "children": [], "start_point": {"row": 220, "column": 16}, "end_point": {"row": 220, "column": 17}}, {"id": 884, "type": "field_identifier", "text": "hub", "parent": 880, "children": [], "start_point": {"row": 220, "column": 19}, "end_point": {"row": 220, "column": 22}}, {"id": 885, "type": "==", "text": "==", "parent": 879, "children": [], "start_point": {"row": 220, "column": 23}, "end_point": {"row": 220, "column": 25}}, {"id": 886, "type": "null", "text": "NULL", "parent": 879, "children": [887], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 30}}, {"id": 887, "type": "NULL", "text": "NULL", "parent": 886, "children": [], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 30}}, {"id": 888, "type": "call_expression", "text": "uinfof(\"Alloc port %d\", ports)", "parent": 877, "children": [889, 890], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 33}}, {"id": 889, "type": "identifier", "text": "uinfof", "parent": 888, "children": [], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 9}}, {"id": 890, "type": "argument_list", "text": "(\"Alloc port %d\", ports)", "parent": 888, "children": [891, 892], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 33}}, {"id": 891, "type": "string_literal", "text": "\"Alloc port %d\"", "parent": 890, "children": [], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 25}}, {"id": 892, "type": "identifier", "text": "ports", "parent": 890, "children": [], "start_point": {"row": 221, "column": 27}, "end_point": {"row": 221, "column": 32}}, {"id": 893, "type": "call_expression", "text": "_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports)", "parent": 877, "children": [894, 895], "start_point": {"row": 222, "column": 3}, "end_point": {"row": 222, "column": 67}}, {"id": 894, "type": "identifier", "text": "_usbhub_port_object_init", "parent": 893, "children": [], "start_point": {"row": 222, "column": 3}, "end_point": {"row": 222, "column": 27}}, {"id": 895, "type": "argument_list", "text": "(&USBHPorts[i], dev->host, hubdp, ports)", "parent": 893, "children": [896, 900, 903, 904], "start_point": {"row": 222, "column": 27}, "end_point": {"row": 222, "column": 67}}, {"id": 896, "type": "pointer_expression", "text": "&USBHPorts[i]", "parent": 895, "children": [897], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 41}}, {"id": 897, "type": "subscript_expression", "text": "USBHPorts[i]", "parent": 896, "children": [898, 899], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 41}}, {"id": 898, "type": "identifier", "text": "USBHPorts", "parent": 897, "children": [], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 38}}, {"id": 899, "type": "identifier", "text": "i", "parent": 897, "children": [], "start_point": {"row": 222, "column": 39}, "end_point": {"row": 222, "column": 40}}, {"id": 900, "type": "field_expression", "text": "dev->host", "parent": 895, "children": [901, 902], "start_point": {"row": 222, "column": 43}, "end_point": {"row": 222, "column": 52}}, {"id": 901, "type": "identifier", "text": "dev", "parent": 900, "children": [], "start_point": {"row": 222, "column": 43}, "end_point": {"row": 222, "column": 46}}, {"id": 902, "type": "field_identifier", "text": "host", "parent": 900, "children": [], "start_point": {"row": 222, "column": 48}, "end_point": {"row": 222, "column": 52}}, {"id": 903, "type": "identifier", "text": "hubdp", "parent": 895, "children": [], "start_point": {"row": 222, "column": 54}, "end_point": {"row": 222, "column": 59}}, {"id": 904, "type": "identifier", "text": "ports", "parent": 895, "children": [], "start_point": {"row": 222, "column": 61}, "end_point": {"row": 222, "column": 66}}, {"id": 905, "type": "assignment_expression", "text": "USBHPorts[i].next = hubdp->ports", "parent": 877, "children": [906, 911, 912], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 223, "column": 35}}, {"id": 906, "type": "field_expression", "text": "USBHPorts[i].next", "parent": 905, "children": [907, 910], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 223, "column": 20}}, {"id": 907, "type": "subscript_expression", "text": "USBHPorts[i]", "parent": 906, "children": [908, 909], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 223, "column": 15}}, {"id": 908, "type": "identifier", "text": "USBHPorts", "parent": 907, "children": [], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 223, "column": 12}}, {"id": 909, "type": "identifier", "text": "i", "parent": 907, "children": [], "start_point": {"row": 223, "column": 13}, "end_point": {"row": 223, "column": 14}}, {"id": 910, "type": "field_identifier", "text": "next", "parent": 906, "children": [], "start_point": {"row": 223, "column": 16}, "end_point": {"row": 223, "column": 20}}, {"id": 911, "type": "=", "text": "=", "parent": 905, "children": [], "start_point": {"row": 223, "column": 21}, "end_point": {"row": 223, "column": 22}}, {"id": 912, "type": "field_expression", "text": "hubdp->ports", "parent": 905, "children": [913, 914], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 35}}, {"id": 913, "type": "identifier", "text": "hubdp", "parent": 912, "children": [], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 28}}, {"id": 914, "type": "field_identifier", "text": "ports", "parent": 912, "children": [], "start_point": {"row": 223, "column": 30}, "end_point": {"row": 223, "column": 35}}, {"id": 915, "type": "assignment_expression", "text": "hubdp->ports = &USBHPorts[i]", "parent": 877, "children": [916, 919, 920], "start_point": {"row": 224, "column": 3}, "end_point": {"row": 224, "column": 31}}, {"id": 916, "type": "field_expression", "text": "hubdp->ports", "parent": 915, "children": [917, 918], "start_point": {"row": 224, "column": 3}, "end_point": {"row": 224, "column": 15}}, {"id": 917, "type": "identifier", "text": "hubdp", "parent": 916, "children": [], "start_point": {"row": 224, "column": 3}, "end_point": {"row": 224, "column": 8}}, {"id": 918, "type": "field_identifier", "text": "ports", "parent": 916, "children": [], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 15}}, {"id": 919, "type": "=", "text": "=", "parent": 915, "children": [], "start_point": {"row": 224, "column": 16}, "end_point": {"row": 224, "column": 17}}, {"id": 920, "type": "pointer_expression", "text": "&USBHPorts[i]", "parent": 915, "children": [921], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 31}}, {"id": 921, "type": "subscript_expression", "text": "USBHPorts[i]", "parent": 920, "children": [922, 923], "start_point": {"row": 224, "column": 19}, "end_point": {"row": 224, "column": 31}}, {"id": 922, "type": "identifier", "text": "USBHPorts", "parent": 921, "children": [], "start_point": {"row": 224, "column": 19}, "end_point": {"row": 224, "column": 28}}, {"id": 923, "type": "identifier", "text": "i", "parent": 921, "children": [], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 30}}, {"id": 924, "type": "update_expression", "text": "--ports", "parent": 877, "children": [925, 926], "start_point": {"row": 225, "column": 3}, "end_point": {"row": 225, "column": 10}}, {"id": 925, "type": "--", "text": "--", "parent": 924, "children": [], "start_point": {"row": 225, "column": 3}, "end_point": {"row": 225, "column": 5}}, {"id": 926, "type": "identifier", "text": "ports", "parent": 924, "children": [], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 10}}, {"id": 927, "type": "if_statement", "text": "if (ports) {\r\n\t\tuwarn(\"Could not alloc all ports\");\r\n\t}", "parent": 516, "children": [928], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 231, "column": 2}}, {"id": 928, "type": "parenthesized_expression", "text": "(ports)", "parent": 927, "children": [929], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 11}}, {"id": 929, "type": "identifier", "text": "ports", "parent": 928, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 10}}, {"id": 930, "type": "call_expression", "text": "uwarn(\"Could not alloc all ports\")", "parent": 927, "children": [931, 932], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 36}}, {"id": 931, "type": "identifier", "text": "uwarn", "parent": 930, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 7}}, {"id": 932, "type": "argument_list", "text": "(\"Could not alloc all ports\")", "parent": 930, "children": [933], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 36}}, {"id": 933, "type": "string_literal", "text": "\"Could not alloc all ports\"", "parent": 932, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 35}}, {"id": 934, "type": "call_expression", "text": "list_add_tail(&hubdp->node, &dev->host->hubs)", "parent": 516, "children": [935, 936], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 46}}, {"id": 935, "type": "identifier", "text": "list_add_tail", "parent": 934, "children": [], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 14}}, {"id": 936, "type": "argument_list", "text": "(&hubdp->node, &dev->host->hubs)", "parent": 934, "children": [937, 941], "start_point": {"row": 234, "column": 14}, "end_point": {"row": 234, "column": 46}}, {"id": 937, "type": "pointer_expression", "text": "&hubdp->node", "parent": 936, "children": [938], "start_point": {"row": 234, "column": 15}, "end_point": {"row": 234, "column": 27}}, {"id": 938, "type": "field_expression", "text": "hubdp->node", "parent": 937, "children": [939, 940], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 27}}, {"id": 939, "type": "identifier", "text": "hubdp", "parent": 938, "children": [], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 21}}, {"id": 940, "type": "field_identifier", "text": "node", "parent": 938, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 27}}, {"id": 941, "type": "pointer_expression", "text": "&dev->host->hubs", "parent": 936, "children": [942], "start_point": {"row": 234, "column": 29}, "end_point": {"row": 234, "column": 45}}, {"id": 942, "type": "field_expression", "text": "dev->host->hubs", "parent": 941, "children": [943, 946], "start_point": {"row": 234, "column": 30}, "end_point": {"row": 234, "column": 45}}, {"id": 943, "type": "field_expression", "text": "dev->host", "parent": 942, "children": [944, 945], "start_point": {"row": 234, "column": 30}, "end_point": {"row": 234, "column": 39}}, {"id": 944, "type": "identifier", "text": "dev", "parent": 943, "children": [], "start_point": {"row": 234, "column": 30}, "end_point": {"row": 234, "column": 33}}, {"id": 945, "type": "field_identifier", "text": "host", "parent": 943, "children": [], "start_point": {"row": 234, "column": 35}, "end_point": {"row": 234, "column": 39}}, {"id": 946, "type": "field_identifier", "text": "hubs", "parent": 942, "children": [], "start_point": {"row": 234, "column": 41}, "end_point": {"row": 234, "column": 45}}, {"id": 947, "type": "declaration", "text": "usbh_port_t *port = hubdp->ports;", "parent": 516, "children": [948, 949], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 34}}, {"id": 948, "type": "type_identifier", "text": "usbh_port_t", "parent": 947, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 12}}, {"id": 949, "type": "init_declarator", "text": "*port = hubdp->ports", "parent": 947, "children": [950, 953, 954], "start_point": {"row": 237, "column": 13}, "end_point": {"row": 237, "column": 33}}, {"id": 950, "type": "pointer_declarator", "text": "*port", "parent": 949, "children": [951, 952], "start_point": {"row": 237, "column": 13}, "end_point": {"row": 237, "column": 18}}, {"id": 951, "type": "*", "text": "*", "parent": 950, "children": [], "start_point": {"row": 237, "column": 13}, "end_point": {"row": 237, "column": 14}}, {"id": 952, "type": "identifier", "text": "port", "parent": 950, "children": [], "start_point": {"row": 237, "column": 14}, "end_point": {"row": 237, "column": 18}}, {"id": 953, "type": "=", "text": "=", "parent": 949, "children": [], "start_point": {"row": 237, "column": 19}, "end_point": {"row": 237, "column": 20}}, {"id": 954, "type": "field_expression", "text": "hubdp->ports", "parent": 949, "children": [955, 956], "start_point": {"row": 237, "column": 21}, "end_point": {"row": 237, "column": 33}}, {"id": 955, "type": "identifier", "text": "hubdp", "parent": 954, "children": [], "start_point": {"row": 237, "column": 21}, "end_point": {"row": 237, "column": 26}}, {"id": 956, "type": "field_identifier", "text": "ports", "parent": 954, "children": [], "start_point": {"row": 237, "column": 28}, "end_point": {"row": 237, "column": 33}}, {"id": 957, "type": "while_statement", "text": "while (port) {\r\n\t\tuinfof(\"Enable power for port %d\", port->number);\r\n\t\tusbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER);\r\n\t\tport = port->next;\r\n\t}", "parent": 516, "children": [958], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 242, "column": 2}}, {"id": 958, "type": "parenthesized_expression", "text": "(port)", "parent": 957, "children": [959], "start_point": {"row": 238, "column": 7}, "end_point": {"row": 238, "column": 13}}, {"id": 959, "type": "identifier", "text": "port", "parent": 958, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 12}}, {"id": 960, "type": "call_expression", "text": "uinfof(\"Enable power for port %d\", port->number)", "parent": 957, "children": [961, 962], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 50}}, {"id": 961, "type": "identifier", "text": "uinfof", "parent": 960, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 8}}, {"id": 962, "type": "argument_list", "text": "(\"Enable power for port %d\", port->number)", "parent": 960, "children": [963, 964], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 50}}, {"id": 963, "type": "string_literal", "text": "\"Enable power for port %d\"", "parent": 962, "children": [], "start_point": {"row": 239, "column": 9}, "end_point": {"row": 239, "column": 35}}, {"id": 964, "type": "field_expression", "text": "port->number", "parent": 962, "children": [965, 966], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 49}}, {"id": 965, "type": "identifier", "text": "port", "parent": 964, "children": [], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 41}}, {"id": 966, "type": "field_identifier", "text": "number", "parent": 964, "children": [], "start_point": {"row": 239, "column": 43}, "end_point": {"row": 239, "column": 49}}, {"id": 967, "type": "call_expression", "text": "usbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER)", "parent": 957, "children": [968, 969], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 51}}, {"id": 968, "type": "identifier", "text": "usbhhubSetFeaturePort", "parent": 967, "children": [], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 23}}, {"id": 969, "type": "argument_list", "text": "(port, USBH_PORT_FEAT_POWER)", "parent": 967, "children": [970, 971], "start_point": {"row": 240, "column": 23}, "end_point": {"row": 240, "column": 51}}, {"id": 970, "type": "identifier", "text": "port", "parent": 969, "children": [], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 28}}, {"id": 971, "type": "identifier", "text": "USBH_PORT_FEAT_POWER", "parent": 969, "children": [], "start_point": {"row": 240, "column": 30}, "end_point": {"row": 240, "column": 50}}, {"id": 972, "type": "assignment_expression", "text": "port = port->next", "parent": 957, "children": [973, 974, 975], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 19}}, {"id": 973, "type": "identifier", "text": "port", "parent": 972, "children": [], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 6}}, {"id": 974, "type": "=", "text": "=", "parent": 972, "children": [], "start_point": {"row": 241, "column": 7}, "end_point": {"row": 241, "column": 8}}, {"id": 975, "type": "field_expression", "text": "port->next", "parent": 972, "children": [976, 977], "start_point": {"row": 241, "column": 9}, "end_point": {"row": 241, "column": 19}}, {"id": 976, "type": "identifier", "text": "port", "parent": 975, "children": [], "start_point": {"row": 241, "column": 9}, "end_point": {"row": 241, "column": 13}}, {"id": 977, "type": "field_identifier", "text": "next", "parent": 975, "children": [], "start_point": {"row": 241, "column": 15}, "end_point": {"row": 241, "column": 19}}, {"id": 978, "type": "if_statement", "text": "if (hubdesc->bPwrOn2PwrGood)\r\n\t\tosalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);", "parent": 516, "children": [979], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 245, "column": 59}}, {"id": 979, "type": "parenthesized_expression", "text": "(hubdesc->bPwrOn2PwrGood)", "parent": 978, "children": [980], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 29}}, {"id": 980, "type": "field_expression", "text": "hubdesc->bPwrOn2PwrGood", "parent": 979, "children": [981, 982], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 28}}, {"id": 981, "type": "identifier", "text": "hubdesc", "parent": 980, "children": [], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 12}}, {"id": 982, "type": "field_identifier", "text": "bPwrOn2PwrGood", "parent": 980, "children": [], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 28}}, {"id": 983, "type": "call_expression", "text": "osalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood)", "parent": 978, "children": [984, 985], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 58}}, {"id": 984, "type": "identifier", "text": "osalThreadSleepMilliseconds", "parent": 983, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 29}}, {"id": 985, "type": "argument_list", "text": "(2 * hubdesc->bPwrOn2PwrGood)", "parent": 983, "children": [986], "start_point": {"row": 245, "column": 29}, "end_point": {"row": 245, "column": 58}}, {"id": 986, "type": "binary_expression", "text": "2 * hubdesc->bPwrOn2PwrGood", "parent": 985, "children": [987, 988, 989], "start_point": {"row": 245, "column": 30}, "end_point": {"row": 245, "column": 57}}, {"id": 987, "type": "number_literal", "text": "2", "parent": 986, "children": [], "start_point": {"row": 245, "column": 30}, "end_point": {"row": 245, "column": 31}}, {"id": 988, "type": "*", "text": "*", "parent": 986, "children": [], "start_point": {"row": 245, "column": 32}, "end_point": {"row": 245, "column": 33}}, {"id": 989, "type": "field_expression", "text": "hubdesc->bPwrOn2PwrGood", "parent": 986, "children": [990, 991], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 57}}, {"id": 990, "type": "identifier", "text": "hubdesc", "parent": 989, "children": [], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 41}}, {"id": 991, "type": "field_identifier", "text": "bPwrOn2PwrGood", "parent": 989, "children": [], "start_point": {"row": 245, "column": 43}, "end_point": {"row": 245, "column": 57}}, {"id": 992, "type": "call_expression", "text": "usbhEPObjectInit(&hubdp->epint, dev, epdesc)", "parent": 516, "children": [993, 994], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 45}}, {"id": 993, "type": "identifier", "text": "usbhEPObjectInit", "parent": 992, "children": [], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 17}}, {"id": 994, "type": "argument_list", "text": "(&hubdp->epint, dev, epdesc)", "parent": 992, "children": [995, 999, 1000], "start_point": {"row": 248, "column": 17}, "end_point": {"row": 248, "column": 45}}, {"id": 995, "type": "pointer_expression", "text": "&hubdp->epint", "parent": 994, "children": [996], "start_point": {"row": 248, "column": 18}, "end_point": {"row": 248, "column": 31}}, {"id": 996, "type": "field_expression", "text": "hubdp->epint", "parent": 995, "children": [997, 998], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 31}}, {"id": 997, "type": "identifier", "text": "hubdp", "parent": 996, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 24}}, {"id": 998, "type": "field_identifier", "text": "epint", "parent": 996, "children": [], "start_point": {"row": 248, "column": 26}, "end_point": {"row": 248, "column": 31}}, {"id": 999, "type": "identifier", "text": "dev", "parent": 994, "children": [], "start_point": {"row": 248, "column": 33}, "end_point": {"row": 248, "column": 36}}, {"id": 1000, "type": "identifier", "text": "epdesc", "parent": 994, "children": [], "start_point": {"row": 248, "column": 38}, "end_point": {"row": 248, "column": 44}}, {"id": 1001, "type": "call_expression", "text": "usbhEPSetName(&hubdp->epint, \"HUB[INT ]\")", "parent": 516, "children": [1002, 1003], "start_point": {"row": 249, "column": 1}, "end_point": {"row": 249, "column": 42}}, {"id": 1002, "type": "identifier", "text": "usbhEPSetName", "parent": 1001, "children": [], "start_point": {"row": 249, "column": 1}, "end_point": {"row": 249, "column": 14}}, {"id": 1003, "type": "argument_list", "text": "(&hubdp->epint, \"HUB[INT ]\")", "parent": 1001, "children": [1004, 1008], "start_point": {"row": 249, "column": 14}, "end_point": {"row": 249, "column": 42}}, {"id": 1004, "type": "pointer_expression", "text": "&hubdp->epint", "parent": 1003, "children": [1005], "start_point": {"row": 249, "column": 15}, "end_point": {"row": 249, "column": 28}}, {"id": 1005, "type": "field_expression", "text": "hubdp->epint", "parent": 1004, "children": [1006, 1007], "start_point": {"row": 249, "column": 16}, "end_point": {"row": 249, "column": 28}}, {"id": 1006, "type": "identifier", "text": "hubdp", "parent": 1005, "children": [], "start_point": {"row": 249, "column": 16}, "end_point": {"row": 249, "column": 21}}, {"id": 1007, "type": "field_identifier", "text": "epint", "parent": 1005, "children": [], "start_point": {"row": 249, "column": 23}, "end_point": {"row": 249, "column": 28}}, {"id": 1008, "type": "string_literal", "text": "\"HUB[INT ]\"", "parent": 1003, "children": [], "start_point": {"row": 249, "column": 30}, "end_point": {"row": 249, "column": 41}}, {"id": 1009, "type": "call_expression", "text": "usbhEPOpen(&hubdp->epint)", "parent": 516, "children": [1010, 1011], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 26}}, {"id": 1010, "type": "identifier", "text": "usbhEPOpen", "parent": 1009, "children": [], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 11}}, {"id": 1011, "type": "argument_list", "text": "(&hubdp->epint)", "parent": 1009, "children": [1012], "start_point": {"row": 250, "column": 11}, "end_point": {"row": 250, "column": 26}}, {"id": 1012, "type": "pointer_expression", "text": "&hubdp->epint", "parent": 1011, "children": [1013], "start_point": {"row": 250, "column": 12}, "end_point": {"row": 250, "column": 25}}, {"id": 1013, "type": "field_expression", "text": "hubdp->epint", "parent": 1012, "children": [1014, 1015], "start_point": {"row": 250, "column": 13}, "end_point": {"row": 250, "column": 25}}, {"id": 1014, "type": "identifier", "text": "hubdp", "parent": 1013, "children": [], "start_point": {"row": 250, "column": 13}, "end_point": {"row": 250, "column": 18}}, {"id": 1015, "type": "field_identifier", "text": "epint", "parent": 1013, "children": [], "start_point": {"row": 250, "column": 20}, "end_point": {"row": 250, "column": 25}}, {"id": 1016, "type": "call_expression", "text": "usbhURBObjectInit(&hubdp->urb, &hubdp->epint,\r\n\t\t\t_urb_complete, hubdp, hubdp->scbuff,\r\n\t\t\t(hubdesc->bNbrPorts + 8) / 8)", "parent": 516, "children": [1017, 1018], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 254, "column": 32}}, {"id": 1017, "type": "identifier", "text": "usbhURBObjectInit", "parent": 1016, "children": [], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 252, "column": 18}}, {"id": 1018, "type": "argument_list", "text": "(&hubdp->urb, &hubdp->epint,\r\n\t\t\t_urb_complete, hubdp, hubdp->scbuff,\r\n\t\t\t(hubdesc->bNbrPorts + 8) / 8)", "parent": 1016, "children": [1019, 1023, 1027, 1028, 1029, 1032], "start_point": {"row": 252, "column": 18}, "end_point": {"row": 254, "column": 32}}, {"id": 1019, "type": "pointer_expression", "text": "&hubdp->urb", "parent": 1018, "children": [1020], "start_point": {"row": 252, "column": 19}, "end_point": {"row": 252, "column": 30}}, {"id": 1020, "type": "field_expression", "text": "hubdp->urb", "parent": 1019, "children": [1021, 1022], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 30}}, {"id": 1021, "type": "identifier", "text": "hubdp", "parent": 1020, "children": [], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 25}}, {"id": 1022, "type": "field_identifier", "text": "urb", "parent": 1020, "children": [], "start_point": {"row": 252, "column": 27}, "end_point": {"row": 252, "column": 30}}, {"id": 1023, "type": "pointer_expression", "text": "&hubdp->epint", "parent": 1018, "children": [1024], "start_point": {"row": 252, "column": 32}, "end_point": {"row": 252, "column": 45}}, {"id": 1024, "type": "field_expression", "text": "hubdp->epint", "parent": 1023, "children": [1025, 1026], "start_point": {"row": 252, "column": 33}, "end_point": {"row": 252, "column": 45}}, {"id": 1025, "type": "identifier", "text": "hubdp", "parent": 1024, "children": [], "start_point": {"row": 252, "column": 33}, "end_point": {"row": 252, "column": 38}}, {"id": 1026, "type": "field_identifier", "text": "epint", "parent": 1024, "children": [], "start_point": {"row": 252, "column": 40}, "end_point": {"row": 252, "column": 45}}, {"id": 1027, "type": "identifier", "text": "_urb_complete", "parent": 1018, "children": [], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 16}}, {"id": 1028, "type": "identifier", "text": "hubdp", "parent": 1018, "children": [], "start_point": {"row": 253, "column": 18}, "end_point": {"row": 253, "column": 23}}, {"id": 1029, "type": "field_expression", "text": "hubdp->scbuff", "parent": 1018, "children": [1030, 1031], "start_point": {"row": 253, "column": 25}, "end_point": {"row": 253, "column": 38}}, {"id": 1030, "type": "identifier", "text": "hubdp", "parent": 1029, "children": [], "start_point": {"row": 253, "column": 25}, "end_point": {"row": 253, "column": 30}}, {"id": 1031, "type": "field_identifier", "text": "scbuff", "parent": 1029, "children": [], "start_point": {"row": 253, "column": 32}, "end_point": {"row": 253, "column": 38}}, {"id": 1032, "type": "binary_expression", "text": "(hubdesc->bNbrPorts + 8) / 8", "parent": 1018, "children": [1033, 1040, 1041], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 31}}, {"id": 1033, "type": "parenthesized_expression", "text": "(hubdesc->bNbrPorts + 8)", "parent": 1032, "children": [1034], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 27}}, {"id": 1034, "type": "binary_expression", "text": "hubdesc->bNbrPorts + 8", "parent": 1033, "children": [1035, 1038, 1039], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 26}}, {"id": 1035, "type": "field_expression", "text": "hubdesc->bNbrPorts", "parent": 1034, "children": [1036, 1037], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 22}}, {"id": 1036, "type": "identifier", "text": "hubdesc", "parent": 1035, "children": [], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 11}}, {"id": 1037, "type": "field_identifier", "text": "bNbrPorts", "parent": 1035, "children": [], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 22}}, {"id": 1038, "type": "+", "text": "+", "parent": 1034, "children": [], "start_point": {"row": 254, "column": 23}, "end_point": {"row": 254, "column": 24}}, {"id": 1039, "type": "number_literal", "text": "8", "parent": 1034, "children": [], "start_point": {"row": 254, "column": 25}, "end_point": {"row": 254, "column": 26}}, {"id": 1040, "type": "/", "text": "/", "parent": 1032, "children": [], "start_point": {"row": 254, "column": 28}, "end_point": {"row": 254, "column": 29}}, {"id": 1041, "type": "number_literal", "text": "8", "parent": 1032, "children": [], "start_point": {"row": 254, "column": 30}, "end_point": {"row": 254, "column": 31}}, {"id": 1042, "type": "call_expression", "text": "osalSysLock()", "parent": 516, "children": [1043, 1044], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 14}}, {"id": 1043, "type": "identifier", "text": "osalSysLock", "parent": 1042, "children": [], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 12}}, {"id": 1044, "type": "argument_list", "text": "()", "parent": 1042, "children": [], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 14}}, {"id": 1045, "type": "call_expression", "text": "usbhURBSubmitI(&hubdp->urb)", "parent": 516, "children": [1046, 1047], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 28}}, {"id": 1046, "type": "identifier", "text": "usbhURBSubmitI", "parent": 1045, "children": [], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 15}}, {"id": 1047, "type": "argument_list", "text": "(&hubdp->urb)", "parent": 1045, "children": [1048], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 28}}, {"id": 1048, "type": "pointer_expression", "text": "&hubdp->urb", "parent": 1047, "children": [1049], "start_point": {"row": 257, "column": 16}, "end_point": {"row": 257, "column": 27}}, {"id": 1049, "type": "field_expression", "text": "hubdp->urb", "parent": 1048, "children": [1050, 1051], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 27}}, {"id": 1050, "type": "identifier", "text": "hubdp", "parent": 1049, "children": [], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 22}}, {"id": 1051, "type": "field_identifier", "text": "urb", "parent": 1049, "children": [], "start_point": {"row": 257, "column": 24}, "end_point": {"row": 257, "column": 27}}, {"id": 1052, "type": "call_expression", "text": "osalOsRescheduleS()", "parent": 516, "children": [1053, 1054], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 20}}, {"id": 1053, "type": "identifier", "text": "osalOsRescheduleS", "parent": 1052, "children": [], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 18}}, {"id": 1054, "type": "argument_list", "text": "()", "parent": 1052, "children": [], "start_point": {"row": 258, "column": 18}, "end_point": {"row": 258, "column": 20}}, {"id": 1055, "type": "call_expression", "text": "osalSysUnlock()", "parent": 516, "children": [1056, 1057], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 16}}, {"id": 1056, "type": "identifier", "text": "osalSysUnlock", "parent": 1055, "children": [], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 14}}, {"id": 1057, "type": "argument_list", "text": "()", "parent": 1055, "children": [], "start_point": {"row": 259, "column": 14}, "end_point": {"row": 259, "column": 16}}, {"id": 1058, "type": "return_statement", "text": "return (usbh_baseclassdriver_t *)hubdp;", "parent": 516, "children": [1059], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 40}}, {"id": 1059, "type": "cast_expression", "text": "(usbh_baseclassdriver_t *)hubdp", "parent": 1058, "children": [1060, 1064], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 39}}, {"id": 1060, "type": "type_descriptor", "text": "usbh_baseclassdriver_t *", "parent": 1059, "children": [1061, 1062], "start_point": {"row": 261, "column": 9}, "end_point": {"row": 261, "column": 33}}, {"id": 1061, "type": "type_identifier", "text": "usbh_baseclassdriver_t", "parent": 1060, "children": [], "start_point": {"row": 261, "column": 9}, "end_point": {"row": 261, "column": 31}}, {"id": 1062, "type": "abstract_pointer_declarator", "text": "*", "parent": 1060, "children": [1063], "start_point": {"row": 261, "column": 32}, "end_point": {"row": 261, "column": 33}}, {"id": 1063, "type": "*", "text": "*", "parent": 1062, "children": [], "start_point": {"row": 261, "column": 32}, "end_point": {"row": 261, "column": 33}}, {"id": 1064, "type": "identifier", "text": "hubdp", "parent": 1059, "children": [], "start_point": {"row": 261, "column": 34}, "end_point": {"row": 261, "column": 39}}, {"id": 1065, "type": "function_definition", "text": "static void hub_unload(usbh_baseclassdriver_t *drv) {\r\n\tosalDbgCheck(drv != NULL);\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)drv;\r\n\r\n\t/* close the status change endpoint (this cancels ongoing URBs) */\r\n\tosalSysLock();\r\n\tusbhEPCloseS(&hubdp->epint);\r\n\tosalSysUnlock();\r\n\r\n\t/* de-alloc ports and unload drivers */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\t_usbh_port_disconnected(port);\r\n\t\tport->hub = NULL;\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\t/* unlink the hub from the host's list */\r\n\tlist_del(&hubdp->node);\r\n\r\n}", "parent": 9, "children": [1066, 1067], "start_point": {"row": 264, "column": 0}, "end_point": {"row": 284, "column": 1}}, {"id": 1066, "type": "primitive_type", "text": "void", "parent": 1065, "children": [], "start_point": {"row": 264, "column": 7}, "end_point": {"row": 264, "column": 11}}, {"id": 1067, "type": "function_declarator", "text": "hub_unload(usbh_baseclassdriver_t *drv)", "parent": 1065, "children": [1068, 1069], "start_point": {"row": 264, "column": 12}, "end_point": {"row": 264, "column": 51}}, {"id": 1068, "type": "identifier", "text": "hub_unload", "parent": 1067, "children": [], "start_point": {"row": 264, "column": 12}, "end_point": {"row": 264, "column": 22}}, {"id": 1069, "type": "parameter_list", "text": "(usbh_baseclassdriver_t *drv)", "parent": 1067, "children": [1070], "start_point": {"row": 264, "column": 22}, "end_point": {"row": 264, "column": 51}}, {"id": 1070, "type": "parameter_declaration", "text": "usbh_baseclassdriver_t *drv", "parent": 1069, "children": [1071, 1072], "start_point": {"row": 264, "column": 23}, "end_point": {"row": 264, "column": 50}}, {"id": 1071, "type": "type_identifier", "text": "usbh_baseclassdriver_t", "parent": 1070, "children": [], "start_point": {"row": 264, "column": 23}, "end_point": {"row": 264, "column": 45}}, {"id": 1072, "type": "pointer_declarator", "text": "*drv", "parent": 1070, "children": [1073, 1074], "start_point": {"row": 264, "column": 46}, "end_point": {"row": 264, "column": 50}}, {"id": 1073, "type": "*", "text": "*", "parent": 1072, "children": [], "start_point": {"row": 264, "column": 46}, "end_point": {"row": 264, "column": 47}}, {"id": 1074, "type": "identifier", "text": "drv", "parent": 1072, "children": [], "start_point": {"row": 264, "column": 47}, "end_point": {"row": 264, "column": 50}}, {"id": 1075, "type": "call_expression", "text": "osalDbgCheck(drv != NULL)", "parent": 1065, "children": [1076, 1077], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 26}}, {"id": 1076, "type": "identifier", "text": "osalDbgCheck", "parent": 1075, "children": [], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 13}}, {"id": 1077, "type": "argument_list", "text": "(drv != NULL)", "parent": 1075, "children": [1078], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 26}}, {"id": 1078, "type": "binary_expression", "text": "drv != NULL", "parent": 1077, "children": [1079, 1080, 1081], "start_point": {"row": 265, "column": 14}, "end_point": {"row": 265, "column": 25}}, {"id": 1079, "type": "identifier", "text": "drv", "parent": 1078, "children": [], "start_point": {"row": 265, "column": 14}, "end_point": {"row": 265, "column": 17}}, {"id": 1080, "type": "!=", "text": "!=", "parent": 1078, "children": [], "start_point": {"row": 265, "column": 18}, "end_point": {"row": 265, "column": 20}}, {"id": 1081, "type": "null", "text": "NULL", "parent": 1078, "children": [1082], "start_point": {"row": 265, "column": 21}, "end_point": {"row": 265, "column": 25}}, {"id": 1082, "type": "NULL", "text": "NULL", "parent": 1081, "children": [], "start_point": {"row": 265, "column": 21}, "end_point": {"row": 265, "column": 25}}, {"id": 1083, "type": "declaration", "text": "USBHHubDriver *const hubdp = (USBHHubDriver *)drv;", "parent": 1065, "children": [1084, 1085], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 51}}, {"id": 1084, "type": "type_identifier", "text": "USBHHubDriver", "parent": 1083, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 14}}, {"id": 1085, "type": "init_declarator", "text": "*const hubdp = (USBHHubDriver *)drv", "parent": 1083, "children": [1086, 1089, 1090], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 50}}, {"id": 1086, "type": "pointer_declarator", "text": "*const hubdp", "parent": 1085, "children": [1087, 1088], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 27}}, {"id": 1087, "type": "*", "text": "*", "parent": 1086, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 16}}, {"id": 1088, "type": "identifier", "text": "hubdp", "parent": 1086, "children": [], "start_point": {"row": 266, "column": 22}, "end_point": {"row": 266, "column": 27}}, {"id": 1089, "type": "=", "text": "=", "parent": 1085, "children": [], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 29}}, {"id": 1090, "type": "cast_expression", "text": "(USBHHubDriver *)drv", "parent": 1085, "children": [1091, 1095], "start_point": {"row": 266, "column": 30}, "end_point": {"row": 266, "column": 50}}, {"id": 1091, "type": "type_descriptor", "text": "USBHHubDriver *", "parent": 1090, "children": [1092, 1093], "start_point": {"row": 266, "column": 31}, "end_point": {"row": 266, "column": 46}}, {"id": 1092, "type": "type_identifier", "text": "USBHHubDriver", "parent": 1091, "children": [], "start_point": {"row": 266, "column": 31}, "end_point": {"row": 266, "column": 44}}, {"id": 1093, "type": "abstract_pointer_declarator", "text": "*", "parent": 1091, "children": [1094], "start_point": {"row": 266, "column": 45}, "end_point": {"row": 266, "column": 46}}, {"id": 1094, "type": "*", "text": "*", "parent": 1093, "children": [], "start_point": {"row": 266, "column": 45}, "end_point": {"row": 266, "column": 46}}, {"id": 1095, "type": "identifier", "text": "drv", "parent": 1090, "children": [], "start_point": {"row": 266, "column": 47}, "end_point": {"row": 266, "column": 50}}, {"id": 1096, "type": "call_expression", "text": "osalSysLock()", "parent": 1065, "children": [1097, 1098], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 14}}, {"id": 1097, "type": "identifier", "text": "osalSysLock", "parent": 1096, "children": [], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 12}}, {"id": 1098, "type": "argument_list", "text": "()", "parent": 1096, "children": [], "start_point": {"row": 269, "column": 12}, "end_point": {"row": 269, "column": 14}}, {"id": 1099, "type": "call_expression", "text": "usbhEPCloseS(&hubdp->epint)", "parent": 1065, "children": [1100, 1101], "start_point": {"row": 270, "column": 1}, "end_point": {"row": 270, "column": 28}}, {"id": 1100, "type": "identifier", "text": "usbhEPCloseS", "parent": 1099, "children": [], "start_point": {"row": 270, "column": 1}, "end_point": {"row": 270, "column": 13}}, {"id": 1101, "type": "argument_list", "text": "(&hubdp->epint)", "parent": 1099, "children": [1102], "start_point": {"row": 270, "column": 13}, "end_point": {"row": 270, "column": 28}}, {"id": 1102, "type": "pointer_expression", "text": "&hubdp->epint", "parent": 1101, "children": [1103], "start_point": {"row": 270, "column": 14}, "end_point": {"row": 270, "column": 27}}, {"id": 1103, "type": "field_expression", "text": "hubdp->epint", "parent": 1102, "children": [1104, 1105], "start_point": {"row": 270, "column": 15}, "end_point": {"row": 270, "column": 27}}, {"id": 1104, "type": "identifier", "text": "hubdp", "parent": 1103, "children": [], "start_point": {"row": 270, "column": 15}, "end_point": {"row": 270, "column": 20}}, {"id": 1105, "type": "field_identifier", "text": "epint", "parent": 1103, "children": [], "start_point": {"row": 270, "column": 22}, "end_point": {"row": 270, "column": 27}}, {"id": 1106, "type": "call_expression", "text": "osalSysUnlock()", "parent": 1065, "children": [1107, 1108], "start_point": {"row": 271, "column": 1}, "end_point": {"row": 271, "column": 16}}, {"id": 1107, "type": "identifier", "text": "osalSysUnlock", "parent": 1106, "children": [], "start_point": {"row": 271, "column": 1}, "end_point": {"row": 271, "column": 14}}, {"id": 1108, "type": "argument_list", "text": "()", "parent": 1106, "children": [], "start_point": {"row": 271, "column": 14}, "end_point": {"row": 271, "column": 16}}, {"id": 1109, "type": "declaration", "text": "usbh_port_t *port = hubdp->ports;", "parent": 1065, "children": [1110, 1111], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 34}}, {"id": 1110, "type": "type_identifier", "text": "usbh_port_t", "parent": 1109, "children": [], "start_point": {"row": 274, "column": 1}, "end_point": {"row": 274, "column": 12}}, {"id": 1111, "type": "init_declarator", "text": "*port = hubdp->ports", "parent": 1109, "children": [1112, 1115, 1116], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 33}}, {"id": 1112, "type": "pointer_declarator", "text": "*port", "parent": 1111, "children": [1113, 1114], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 18}}, {"id": 1113, "type": "*", "text": "*", "parent": 1112, "children": [], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 14}}, {"id": 1114, "type": "identifier", "text": "port", "parent": 1112, "children": [], "start_point": {"row": 274, "column": 14}, "end_point": {"row": 274, "column": 18}}, {"id": 1115, "type": "=", "text": "=", "parent": 1111, "children": [], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 20}}, {"id": 1116, "type": "field_expression", "text": "hubdp->ports", "parent": 1111, "children": [1117, 1118], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 33}}, {"id": 1117, "type": "identifier", "text": "hubdp", "parent": 1116, "children": [], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 26}}, {"id": 1118, "type": "field_identifier", "text": "ports", "parent": 1116, "children": [], "start_point": {"row": 274, "column": 28}, "end_point": {"row": 274, "column": 33}}, {"id": 1119, "type": "while_statement", "text": "while (port) {\r\n\t\t_usbh_port_disconnected(port);\r\n\t\tport->hub = NULL;\r\n\t\tport = port->next;\r\n\t}", "parent": 1065, "children": [1120], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 279, "column": 2}}, {"id": 1120, "type": "parenthesized_expression", "text": "(port)", "parent": 1119, "children": [1121], "start_point": {"row": 275, "column": 7}, "end_point": {"row": 275, "column": 13}}, {"id": 1121, "type": "identifier", "text": "port", "parent": 1120, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 12}}, {"id": 1122, "type": "call_expression", "text": "_usbh_port_disconnected(port)", "parent": 1119, "children": [1123, 1124], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 31}}, {"id": 1123, "type": "identifier", "text": "_usbh_port_disconnected", "parent": 1122, "children": [], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 25}}, {"id": 1124, "type": "argument_list", "text": "(port)", "parent": 1122, "children": [1125], "start_point": {"row": 276, "column": 25}, "end_point": {"row": 276, "column": 31}}, {"id": 1125, "type": "identifier", "text": "port", "parent": 1124, "children": [], "start_point": {"row": 276, "column": 26}, "end_point": {"row": 276, "column": 30}}, {"id": 1126, "type": "assignment_expression", "text": "port->hub = NULL", "parent": 1119, "children": [1127, 1130, 1131], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 277, "column": 18}}, {"id": 1127, "type": "field_expression", "text": "port->hub", "parent": 1126, "children": [1128, 1129], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 277, "column": 11}}, {"id": 1128, "type": "identifier", "text": "port", "parent": 1127, "children": [], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 277, "column": 6}}, {"id": 1129, "type": "field_identifier", "text": "hub", "parent": 1127, "children": [], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 11}}, {"id": 1130, "type": "=", "text": "=", "parent": 1126, "children": [], "start_point": {"row": 277, "column": 12}, "end_point": {"row": 277, "column": 13}}, {"id": 1131, "type": "null", "text": "NULL", "parent": 1126, "children": [1132], "start_point": {"row": 277, "column": 14}, "end_point": {"row": 277, "column": 18}}, {"id": 1132, "type": "NULL", "text": "NULL", "parent": 1131, "children": [], "start_point": {"row": 277, "column": 14}, "end_point": {"row": 277, "column": 18}}, {"id": 1133, "type": "assignment_expression", "text": "port = port->next", "parent": 1119, "children": [1134, 1135, 1136], "start_point": {"row": 278, "column": 2}, "end_point": {"row": 278, "column": 19}}, {"id": 1134, "type": "identifier", "text": "port", "parent": 1133, "children": [], "start_point": {"row": 278, "column": 2}, "end_point": {"row": 278, "column": 6}}, {"id": 1135, "type": "=", "text": "=", "parent": 1133, "children": [], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 8}}, {"id": 1136, "type": "field_expression", "text": "port->next", "parent": 1133, "children": [1137, 1138], "start_point": {"row": 278, "column": 9}, "end_point": {"row": 278, "column": 19}}, {"id": 1137, "type": "identifier", "text": "port", "parent": 1136, "children": [], "start_point": {"row": 278, "column": 9}, "end_point": {"row": 278, "column": 13}}, {"id": 1138, "type": "field_identifier", "text": "next", "parent": 1136, "children": [], "start_point": {"row": 278, "column": 15}, "end_point": {"row": 278, "column": 19}}, {"id": 1139, "type": "call_expression", "text": "list_del(&hubdp->node)", "parent": 1065, "children": [1140, 1141], "start_point": {"row": 282, "column": 1}, "end_point": {"row": 282, "column": 23}}, {"id": 1140, "type": "identifier", "text": "list_del", "parent": 1139, "children": [], "start_point": {"row": 282, "column": 1}, "end_point": {"row": 282, "column": 9}}, {"id": 1141, "type": "argument_list", "text": "(&hubdp->node)", "parent": 1139, "children": [1142], "start_point": {"row": 282, "column": 9}, "end_point": {"row": 282, "column": 23}}, {"id": 1142, "type": "pointer_expression", "text": "&hubdp->node", "parent": 1141, "children": [1143], "start_point": {"row": 282, "column": 10}, "end_point": {"row": 282, "column": 22}}, {"id": 1143, "type": "field_expression", "text": "hubdp->node", "parent": 1142, "children": [1144, 1145], "start_point": {"row": 282, "column": 11}, "end_point": {"row": 282, "column": 22}}, {"id": 1144, "type": "identifier", "text": "hubdp", "parent": 1143, "children": [], "start_point": {"row": 282, "column": 11}, "end_point": {"row": 282, "column": 16}}, {"id": 1145, "type": "field_identifier", "text": "node", "parent": 1143, "children": [], "start_point": {"row": 282, "column": 18}, "end_point": {"row": 282, "column": 22}}, {"id": 1146, "type": "function_definition", "text": "void usbhhubObjectInit(USBHHubDriver *hubdp) {\r\n\tosalDbgCheck(hubdp != NULL);\r\n\tmemset(hubdp, 0, sizeof(*hubdp));\r\n\thubdp->info = &usbhhubClassDriverInfo;\r\n}", "parent": 9, "children": [1147, 1148], "start_point": {"row": 286, "column": 0}, "end_point": {"row": 290, "column": 1}}, {"id": 1147, "type": "primitive_type", "text": "void", "parent": 1146, "children": [], "start_point": {"row": 286, "column": 0}, "end_point": {"row": 286, "column": 4}}, {"id": 1148, "type": "function_declarator", "text": "usbhhubObjectInit(USBHHubDriver *hubdp)", "parent": 1146, "children": [1149, 1150], "start_point": {"row": 286, "column": 5}, "end_point": {"row": 286, "column": 44}}, {"id": 1149, "type": "identifier", "text": "usbhhubObjectInit", "parent": 1148, "children": [], "start_point": {"row": 286, "column": 5}, "end_point": {"row": 286, "column": 22}}, {"id": 1150, "type": "parameter_list", "text": "(USBHHubDriver *hubdp)", "parent": 1148, "children": [1151], "start_point": {"row": 286, "column": 22}, "end_point": {"row": 286, "column": 44}}, {"id": 1151, "type": "parameter_declaration", "text": "USBHHubDriver *hubdp", "parent": 1150, "children": [1152, 1153], "start_point": {"row": 286, "column": 23}, "end_point": {"row": 286, "column": 43}}, {"id": 1152, "type": "type_identifier", "text": "USBHHubDriver", "parent": 1151, "children": [], "start_point": {"row": 286, "column": 23}, "end_point": {"row": 286, "column": 36}}, {"id": 1153, "type": "pointer_declarator", "text": "*hubdp", "parent": 1151, "children": [1154, 1155], "start_point": {"row": 286, "column": 37}, "end_point": {"row": 286, "column": 43}}, {"id": 1154, "type": "*", "text": "*", "parent": 1153, "children": [], "start_point": {"row": 286, "column": 37}, "end_point": {"row": 286, "column": 38}}, {"id": 1155, "type": "identifier", "text": "hubdp", "parent": 1153, "children": [], "start_point": {"row": 286, "column": 38}, "end_point": {"row": 286, "column": 43}}, {"id": 1156, "type": "call_expression", "text": "osalDbgCheck(hubdp != NULL)", "parent": 1146, "children": [1157, 1158], "start_point": {"row": 287, "column": 1}, "end_point": {"row": 287, "column": 28}}, {"id": 1157, "type": "identifier", "text": "osalDbgCheck", "parent": 1156, "children": [], "start_point": {"row": 287, "column": 1}, "end_point": {"row": 287, "column": 13}}, {"id": 1158, "type": "argument_list", "text": "(hubdp != NULL)", "parent": 1156, "children": [1159], "start_point": {"row": 287, "column": 13}, "end_point": {"row": 287, "column": 28}}, {"id": 1159, "type": "binary_expression", "text": "hubdp != NULL", "parent": 1158, "children": [1160, 1161, 1162], "start_point": {"row": 287, "column": 14}, "end_point": {"row": 287, "column": 27}}, {"id": 1160, "type": "identifier", "text": "hubdp", "parent": 1159, "children": [], "start_point": {"row": 287, "column": 14}, "end_point": {"row": 287, "column": 19}}, {"id": 1161, "type": "!=", "text": "!=", "parent": 1159, "children": [], "start_point": {"row": 287, "column": 20}, "end_point": {"row": 287, "column": 22}}, {"id": 1162, "type": "null", "text": "NULL", "parent": 1159, "children": [1163], "start_point": {"row": 287, "column": 23}, "end_point": {"row": 287, "column": 27}}, {"id": 1163, "type": "NULL", "text": "NULL", "parent": 1162, "children": [], "start_point": {"row": 287, "column": 23}, "end_point": {"row": 287, "column": 27}}, {"id": 1164, "type": "call_expression", "text": "memset(hubdp, 0, sizeof(*hubdp))", "parent": 1146, "children": [1165, 1166], "start_point": {"row": 288, "column": 1}, "end_point": {"row": 288, "column": 33}}, {"id": 1165, "type": "identifier", "text": "memset", "parent": 1164, "children": [], "start_point": {"row": 288, "column": 1}, "end_point": {"row": 288, "column": 7}}, {"id": 1166, "type": "argument_list", "text": "(hubdp, 0, sizeof(*hubdp))", "parent": 1164, "children": [1167, 1168, 1169], "start_point": {"row": 288, "column": 7}, "end_point": {"row": 288, "column": 33}}, {"id": 1167, "type": "identifier", "text": "hubdp", "parent": 1166, "children": [], "start_point": {"row": 288, "column": 8}, "end_point": {"row": 288, "column": 13}}, {"id": 1168, "type": "number_literal", "text": "0", "parent": 1166, "children": [], "start_point": {"row": 288, "column": 15}, "end_point": {"row": 288, "column": 16}}, {"id": 1169, "type": "sizeof_expression", "text": "sizeof(*hubdp)", "parent": 1166, "children": [1170], "start_point": {"row": 288, "column": 18}, "end_point": {"row": 288, "column": 32}}, {"id": 1170, "type": "parenthesized_expression", "text": "(*hubdp)", "parent": 1169, "children": [1171], "start_point": {"row": 288, "column": 24}, "end_point": {"row": 288, "column": 32}}, {"id": 1171, "type": "pointer_expression", "text": "*hubdp", "parent": 1170, "children": [1172, 1173], "start_point": {"row": 288, "column": 25}, "end_point": {"row": 288, "column": 31}}, {"id": 1172, "type": "*", "text": "*", "parent": 1171, "children": [], "start_point": {"row": 288, "column": 25}, "end_point": {"row": 288, "column": 26}}, {"id": 1173, "type": "identifier", "text": "hubdp", "parent": 1171, "children": [], "start_point": {"row": 288, "column": 26}, "end_point": {"row": 288, "column": 31}}, {"id": 1174, "type": "assignment_expression", "text": "hubdp->info = &usbhhubClassDriverInfo", "parent": 1146, "children": [1175, 1178, 1179], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 38}}, {"id": 1175, "type": "field_expression", "text": "hubdp->info", "parent": 1174, "children": [1176, 1177], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 12}}, {"id": 1176, "type": "identifier", "text": "hubdp", "parent": 1175, "children": [], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 6}}, {"id": 1177, "type": "field_identifier", "text": "info", "parent": 1175, "children": [], "start_point": {"row": 289, "column": 8}, "end_point": {"row": 289, "column": 12}}, {"id": 1178, "type": "=", "text": "=", "parent": 1174, "children": [], "start_point": {"row": 289, "column": 13}, "end_point": {"row": 289, "column": 14}}, {"id": 1179, "type": "pointer_expression", "text": "&usbhhubClassDriverInfo", "parent": 1174, "children": [1180], "start_point": {"row": 289, "column": 15}, "end_point": {"row": 289, "column": 38}}, {"id": 1180, "type": "identifier", "text": "usbhhubClassDriverInfo", "parent": 1179, "children": [], "start_point": {"row": 289, "column": 16}, "end_point": {"row": 289, "column": 38}}, {"id": 1181, "type": "preproc_else", "text": "#else\r\n\r\n#if HAL_USE_USBH\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n}\r\n#endif", "parent": 9, "children": [1182, 1183], "start_point": {"row": 291, "column": 0}, "end_point": {"row": 299, "column": 6}}, {"id": 1182, "type": "#else", "text": "#else", "parent": 1181, "children": [], "start_point": {"row": 291, "column": 0}, "end_point": {"row": 291, "column": 5}}, {"id": 1183, "type": "preproc_if", "text": "#if HAL_USE_USBH\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n}\r\n#endif", "parent": 1181, "children": [1184, 1185, 1186, 1187, 1229], "start_point": {"row": 293, "column": 0}, "end_point": {"row": 299, "column": 6}}, {"id": 1184, "type": "#if", "text": "#if", "parent": 1183, "children": [], "start_point": {"row": 293, "column": 0}, "end_point": {"row": 293, "column": 3}}, {"id": 1185, "type": "identifier", "text": "HAL_USE_USBH", "parent": 1183, "children": [], "start_point": {"row": 293, "column": 4}, "end_point": {"row": 293, "column": 16}}, {"id": 1186, "type": "\n", "text": "\n", "parent": 1183, "children": [], "start_point": {"row": 293, "column": 17}, "end_point": {"row": 294, "column": 0}}, {"id": 1187, "type": "function_definition", "text": "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n}", "parent": 1183, "children": [1188, 1189], "start_point": {"row": 294, "column": 0}, "end_point": {"row": 298, "column": 1}}, {"id": 1188, "type": "primitive_type", "text": "void", "parent": 1187, "children": [], "start_point": {"row": 294, "column": 0}, "end_point": {"row": 294, "column": 4}}, {"id": 1189, "type": "function_declarator", "text": "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number)", "parent": 1187, "children": [1190, 1191], "start_point": {"row": 294, "column": 5}, "end_point": {"row": 294, "column": 82}}, {"id": 1190, "type": "identifier", "text": "_usbhub_port_object_init", "parent": 1189, "children": [], "start_point": {"row": 294, "column": 5}, "end_point": {"row": 294, "column": 29}}, {"id": 1191, "type": "parameter_list", "text": "(usbh_port_t *port, USBHDriver *usbh, uint8_t number)", "parent": 1189, "children": [1192, 1197, 1202], "start_point": {"row": 294, "column": 29}, "end_point": {"row": 294, "column": 82}}, {"id": 1192, "type": "parameter_declaration", "text": "usbh_port_t *port", "parent": 1191, "children": [1193, 1194], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 47}}, {"id": 1193, "type": "type_identifier", "text": "usbh_port_t", "parent": 1192, "children": [], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 41}}, {"id": 1194, "type": "pointer_declarator", "text": "*port", "parent": 1192, "children": [1195, 1196], "start_point": {"row": 294, "column": 42}, "end_point": {"row": 294, "column": 47}}, {"id": 1195, "type": "*", "text": "*", "parent": 1194, "children": [], "start_point": {"row": 294, "column": 42}, "end_point": {"row": 294, "column": 43}}, {"id": 1196, "type": "identifier", "text": "port", "parent": 1194, "children": [], "start_point": {"row": 294, "column": 43}, "end_point": {"row": 294, "column": 47}}, {"id": 1197, "type": "parameter_declaration", "text": "USBHDriver *usbh", "parent": 1191, "children": [1198, 1199], "start_point": {"row": 294, "column": 49}, "end_point": {"row": 294, "column": 65}}, {"id": 1198, "type": "type_identifier", "text": "USBHDriver", "parent": 1197, "children": [], "start_point": {"row": 294, "column": 49}, "end_point": {"row": 294, "column": 59}}, {"id": 1199, "type": "pointer_declarator", "text": "*usbh", "parent": 1197, "children": [1200, 1201], "start_point": {"row": 294, "column": 60}, "end_point": {"row": 294, "column": 65}}, {"id": 1200, "type": "*", "text": "*", "parent": 1199, "children": [], "start_point": {"row": 294, "column": 60}, "end_point": {"row": 294, "column": 61}}, {"id": 1201, "type": "identifier", "text": "usbh", "parent": 1199, "children": [], "start_point": {"row": 294, "column": 61}, "end_point": {"row": 294, "column": 65}}, {"id": 1202, "type": "parameter_declaration", "text": "uint8_t number", "parent": 1191, "children": [1203, 1204], "start_point": {"row": 294, "column": 67}, "end_point": {"row": 294, "column": 81}}, {"id": 1203, "type": "primitive_type", "text": "uint8_t", "parent": 1202, "children": [], "start_point": {"row": 294, "column": 67}, "end_point": {"row": 294, "column": 74}}, {"id": 1204, "type": "identifier", "text": "number", "parent": 1202, "children": [], "start_point": {"row": 294, "column": 75}, "end_point": {"row": 294, "column": 81}}, {"id": 1205, "type": "call_expression", "text": "memset(port, 0, sizeof(*port))", "parent": 1187, "children": [1206, 1207], "start_point": {"row": 295, "column": 1}, "end_point": {"row": 295, "column": 31}}, {"id": 1206, "type": "identifier", "text": "memset", "parent": 1205, "children": [], "start_point": {"row": 295, "column": 1}, "end_point": {"row": 295, "column": 7}}, {"id": 1207, "type": "argument_list", "text": "(port, 0, sizeof(*port))", "parent": 1205, "children": [1208, 1209, 1210], "start_point": {"row": 295, "column": 7}, "end_point": {"row": 295, "column": 31}}, {"id": 1208, "type": "identifier", "text": "port", "parent": 1207, "children": [], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 12}}, {"id": 1209, "type": "number_literal", "text": "0", "parent": 1207, "children": [], "start_point": {"row": 295, "column": 14}, "end_point": {"row": 295, "column": 15}}, {"id": 1210, "type": "sizeof_expression", "text": "sizeof(*port)", "parent": 1207, "children": [1211], "start_point": {"row": 295, "column": 17}, "end_point": {"row": 295, "column": 30}}, {"id": 1211, "type": "parenthesized_expression", "text": "(*port)", "parent": 1210, "children": [1212], "start_point": {"row": 295, "column": 23}, "end_point": {"row": 295, "column": 30}}, {"id": 1212, "type": "pointer_expression", "text": "*port", "parent": 1211, "children": [1213, 1214], "start_point": {"row": 295, "column": 24}, "end_point": {"row": 295, "column": 29}}, {"id": 1213, "type": "*", "text": "*", "parent": 1212, "children": [], "start_point": {"row": 295, "column": 24}, "end_point": {"row": 295, "column": 25}}, {"id": 1214, "type": "identifier", "text": "port", "parent": 1212, "children": [], "start_point": {"row": 295, "column": 25}, "end_point": {"row": 295, "column": 29}}, {"id": 1215, "type": "assignment_expression", "text": "port->number = number", "parent": 1187, "children": [1216, 1219, 1220], "start_point": {"row": 296, "column": 1}, "end_point": {"row": 296, "column": 22}}, {"id": 1216, "type": "field_expression", "text": "port->number", "parent": 1215, "children": [1217, 1218], "start_point": {"row": 296, "column": 1}, "end_point": {"row": 296, "column": 13}}, {"id": 1217, "type": "identifier", "text": "port", "parent": 1216, "children": [], "start_point": {"row": 296, "column": 1}, "end_point": {"row": 296, "column": 5}}, {"id": 1218, "type": "field_identifier", "text": "number", "parent": 1216, "children": [], "start_point": {"row": 296, "column": 7}, "end_point": {"row": 296, "column": 13}}, {"id": 1219, "type": "=", "text": "=", "parent": 1215, "children": [], "start_point": {"row": 296, "column": 14}, "end_point": {"row": 296, "column": 15}}, {"id": 1220, "type": "identifier", "text": "number", "parent": 1215, "children": [], "start_point": {"row": 296, "column": 16}, "end_point": {"row": 296, "column": 22}}, {"id": 1221, "type": "assignment_expression", "text": "port->device.host = usbh", "parent": 1187, "children": [1222, 1227, 1228], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 25}}, {"id": 1222, "type": "field_expression", "text": "port->device.host", "parent": 1221, "children": [1223, 1226], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 18}}, {"id": 1223, "type": "field_expression", "text": "port->device", "parent": 1222, "children": [1224, 1225], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 13}}, {"id": 1224, "type": "identifier", "text": "port", "parent": 1223, "children": [], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 5}}, {"id": 1225, "type": "field_identifier", "text": "device", "parent": 1223, "children": [], "start_point": {"row": 297, "column": 7}, "end_point": {"row": 297, "column": 13}}, {"id": 1226, "type": "field_identifier", "text": "host", "parent": 1222, "children": [], "start_point": {"row": 297, "column": 14}, "end_point": {"row": 297, "column": 18}}, {"id": 1227, "type": "=", "text": "=", "parent": 1221, "children": [], "start_point": {"row": 297, "column": 19}, "end_point": {"row": 297, "column": 20}}, {"id": 1228, "type": "identifier", "text": "usbh", "parent": 1221, "children": [], "start_point": {"row": 297, "column": 21}, "end_point": {"row": 297, "column": 25}}, {"id": 1229, "type": "#endif", "text": "#endif", "parent": 1183, "children": [], "start_point": {"row": 299, "column": 0}, "end_point": {"row": 299, "column": 6}}, {"id": 1230, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 301, "column": 0}, "end_point": {"row": 301, "column": 6}}]}, "node_categories": {"declarations": {"functions": [33, 39, 47, 53, 64, 70, 78, 84, 95, 101, 109, 115, 126, 132, 140, 146, 167, 185, 213, 215, 266, 268, 332, 334, 516, 520, 1065, 1067, 1146, 1148, 1187, 1189], "variables": [153, 158, 163, 170, 175, 180, 183, 188, 193, 201, 218, 223, 228, 233, 271, 276, 281, 284, 287, 290, 293, 296, 337, 342, 381, 437, 453, 523, 528, 533, 536, 539, 578, 582, 615, 674, 822, 849, 947, 1070, 1083, 1109, 1151, 1192, 1197, 1202], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 23, 24, 26, 27], "modules": [], "enums": []}, "statements": {"expressions": [15, 211, 236, 241, 242, 243, 247, 253, 254, 261, 302, 303, 309, 320, 323, 349, 354, 359, 360, 366, 371, 386, 387, 388, 389, 398, 399, 400, 405, 410, 414, 415, 416, 424, 428, 429, 444, 449, 450, 460, 464, 465, 469, 471, 475, 477, 480, 484, 492, 499, 503, 508, 512, 545, 546, 547, 548, 551, 555, 556, 557, 566, 567, 568, 569, 585, 588, 590, 593, 594, 598, 601, 603, 606, 607, 609, 622, 625, 628, 629, 630, 631, 632, 633, 639, 640, 641, 647, 648, 649, 657, 660, 662, 665, 666, 668, 681, 684, 687, 688, 689, 690, 691, 705, 709, 713, 714, 715, 716, 726, 727, 733, 743, 744, 751, 757, 762, 765, 766, 770, 775, 776, 777, 780, 784, 785, 790, 791, 796, 797, 798, 801, 806, 807, 813, 829, 830, 833, 837, 840, 843, 846, 854, 862, 863, 864, 869, 870, 874, 878, 879, 880, 881, 888, 893, 896, 897, 900, 906, 907, 912, 916, 920, 921, 924, 928, 930, 934, 937, 938, 941, 942, 943, 954, 958, 960, 964, 967, 975, 979, 980, 983, 986, 989, 992, 995, 996, 1001, 1004, 1005, 1009, 1012, 1013, 1016, 1019, 1020, 1023, 1024, 1029, 1032, 1033, 1034, 1035, 1042, 1045, 1048, 1049, 1052, 1055, 1059, 1075, 1078, 1090, 1096, 1099, 1102, 1103, 1106, 1116, 1120, 1122, 1127, 1136, 1139, 1142, 1143, 1156, 1159, 1164, 1169, 1170, 1171, 1175, 1179, 1205, 1210, 1211, 1212, 1216, 1222, 1223], "assignments": [246, 252, 260, 370, 421, 433, 468, 701, 723, 742, 750, 756, 812, 858, 905, 915, 972, 1126, 1133, 1174, 1215, 1221], "loops": [463, 700, 857, 957, 1119], "conditionals": [9, 10, 11, 13, 14, 17, 22, 29, 30, 31, 35, 37, 41, 43, 49, 51, 55, 57, 59, 60, 61, 62, 66, 68, 72, 74, 80, 82, 86, 88, 90, 91, 92, 93, 97, 99, 103, 105, 111, 113, 117, 119, 121, 122, 123, 124, 128, 130, 134, 136, 142, 144, 148, 150, 152, 154, 156, 157, 159, 161, 162, 164, 168, 171, 174, 179, 182, 186, 189, 192, 194, 196, 199, 200, 202, 204, 212, 216, 219, 222, 224, 227, 229, 232, 235, 237, 239, 245, 248, 249, 251, 255, 256, 257, 259, 262, 263, 265, 267, 269, 272, 275, 277, 280, 283, 286, 289, 292, 295, 300, 301, 304, 310, 312, 313, 314, 315, 316, 317, 318, 321, 324, 325, 326, 327, 328, 329, 330, 331, 335, 338, 341, 343, 347, 351, 355, 356, 357, 358, 361, 362, 363, 364, 365, 367, 372, 373, 378, 379, 380, 384, 390, 391, 392, 397, 401, 402, 404, 406, 409, 411, 412, 413, 417, 418, 420, 422, 425, 426, 427, 430, 434, 442, 451, 452, 458, 461, 462, 466, 472, 478, 481, 485, 486, 489, 490, 491, 493, 497, 500, 504, 505, 509, 511, 513, 515, 517, 521, 524, 527, 532, 535, 538, 540, 543, 544, 549, 552, 558, 561, 565, 570, 571, 572, 579, 580, 581, 583, 584, 586, 589, 591, 592, 595, 596, 597, 599, 602, 604, 605, 610, 611, 616, 620, 623, 626, 627, 634, 635, 642, 643, 650, 651, 658, 661, 663, 664, 669, 670, 675, 679, 682, 685, 686, 692, 693, 696, 702, 706, 708, 710, 712, 717, 718, 719, 724, 728, 729, 732, 734, 741, 745, 746, 747, 749, 752, 753, 755, 758, 759, 763, 767, 768, 771, 774, 778, 781, 782, 783, 786, 787, 788, 789, 792, 799, 800, 808, 809, 811, 814, 815, 823, 827, 831, 832, 834, 838, 839, 841, 842, 844, 845, 847, 848, 852, 855, 856, 859, 865, 871, 873, 875, 877, 882, 883, 884, 889, 892, 894, 898, 899, 901, 902, 903, 904, 908, 909, 910, 913, 914, 917, 918, 922, 923, 926, 927, 929, 931, 935, 939, 940, 944, 945, 946, 948, 952, 955, 956, 959, 961, 965, 966, 968, 970, 971, 973, 976, 977, 978, 981, 982, 984, 990, 991, 993, 997, 998, 999, 1000, 1002, 1006, 1007, 1010, 1014, 1015, 1017, 1021, 1022, 1025, 1026, 1027, 1028, 1030, 1031, 1036, 1037, 1043, 1046, 1050, 1051, 1053, 1056, 1061, 1064, 1068, 1071, 1074, 1076, 1079, 1084, 1088, 1092, 1095, 1097, 1100, 1104, 1105, 1107, 1110, 1114, 1117, 1118, 1121, 1123, 1125, 1128, 1129, 1134, 1137, 1138, 1140, 1144, 1145, 1149, 1152, 1155, 1157, 1160, 1165, 1167, 1173, 1176, 1177, 1180, 1183, 1184, 1185, 1190, 1193, 1196, 1198, 1201, 1204, 1206, 1208, 1214, 1217, 1218, 1220, 1224, 1225, 1226, 1228, 1229, 1230], "returns": [308, 319, 496, 562, 575, 612, 654, 671, 697, 737, 819, 1058], "exceptions": []}, "expressions": {"calls": [19], "literals": [2, 5, 8, 25, 28, 207, 208, 209, 210, 240, 369, 375, 394, 396, 408, 432, 436, 483, 495, 502, 553, 559, 574, 637, 645, 653, 694, 704, 736, 761, 769, 773, 794, 795, 836, 861, 867, 891, 933, 963, 987, 1008, 1039, 1041, 1168, 1209], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "#define udbgf(f, ...) do {} while(0)\r\n"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "#define udbg(f, ...) do {} while(0)\r\n"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "#define uinfof(f, ...) do {} while(0)\r\n"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "#define uinfo(f, ...) do {} while(0)\r\n"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "#define uwarnf(f, ...) do {} while(0)\r\n"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "#define uwarn(f, ...) do {} while(0)\r\n"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "#define uerrf(f, ...) do {} while(0)\r\n"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "#define uerr(f, ...) do {} while(0)\r\n"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem)"}, {"node_id": 185, "universal_type": "function", "name": "unknown", "text_snippet": "hub_unload(usbh_baseclassdriver_t *drv)"}, {"node_id": 213, "universal_type": "function", "name": "_usbhub_port_object_init", "text_snippet": "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t nu"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number)"}, {"node_id": 266, "universal_type": "function", "name": "unknown", "text_snippet": "usbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmR"}, {"node_id": 268, "universal_type": "function", "name": "unknown", "text_snippet": "usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t"}, {"node_id": 332, "universal_type": "function", "name": "_urb_complete", "text_snippet": "static void _urb_complete(usbh_urb_t *urb) {\r\n\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)urb->"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "_urb_complete(usbh_urb_t *urb)"}, {"node_id": 516, "universal_type": "function", "name": "i;", "text_snippet": "static usbh_baseclassdriver_t *hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t r"}, {"node_id": 520, "universal_type": "function", "name": "unknown", "text_snippet": "hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem)"}, {"node_id": 1065, "universal_type": "function", "name": "hub_unload", "text_snippet": "static void hub_unload(usbh_baseclassdriver_t *drv) {\r\n\tosalDbgCheck(drv != NULL);\r\n\tUSBHHubDriver *"}, {"node_id": 1067, "universal_type": "function", "name": "unknown", "text_snippet": "hub_unload(usbh_baseclassdriver_t *drv)"}, {"node_id": 1146, "universal_type": "function", "name": "usbhhubObjectInit", "text_snippet": "void usbhhubObjectInit(USBHHubDriver *hubdp) {\r\n\tosalDbgCheck(hubdp != NULL);\r\n\tmemset(hubdp, 0, siz"}, {"node_id": 1148, "universal_type": "function", "name": "unknown", "text_snippet": "usbhhubObjectInit(USBHHubDriver *hubdp)"}, {"node_id": 1187, "universal_type": "function", "name": "_usbhub_port_object_init", "text_snippet": "void _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, "}, {"node_id": 1189, "universal_type": "function", "name": "unknown", "text_snippet": "_usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"hal.h\"\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"usbh.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"usbh/internal.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 23, "text": "#include <string.h>\r\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include \"usbh/dev/hub.h\"\r\n"}, {"node_id": 27, "text": "#include"}]}, "original_source_code": "/*\r\n ChibiOS - Copyright (C) 2006..2015 <NAME>\r\n Copyright (C) 2015 <NAME>, TISA, (dismirlian (at) google's mail)\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n*/\r\n\r\n#include \"hal.h\"\r\n#include \"usbh.h\"\r\n#include \"usbh/internal.h\"\r\n\r\n#if HAL_USBH_USE_HUB\r\n\r\n#if !HAL_USE_USBH\r\n#error \"USBHHUB needs HAL_USE_USBH\"\r\n#endif\r\n\r\n#include <string.h>\r\n#include \"usbh/dev/hub.h\"\r\n\r\n#if USBHHUB_DEBUG_ENABLE_TRACE\r\n#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define udbgf(f, ...) do {} while(0)\r\n#define udbg(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_INFO\r\n#define uinfof(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uinfo(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uinfof(f, ...) do {} while(0)\r\n#define uinfo(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_WARNINGS\r\n#define uwarnf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uwarn(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uwarnf(f, ...) do {} while(0)\r\n#define uwarn(f, ...) do {} while(0)\r\n#endif\r\n\r\n#if USBHHUB_DEBUG_ENABLE_ERRORS\r\n#define uerrf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)\r\n#define uerr(f, ...) usbDbgPuts(f, ##__VA_ARGS__)\r\n#else\r\n#define uerrf(f, ...) do {} while(0)\r\n#define uerr(f, ...) do {} while(0)\r\n#endif\r\n\r\n\r\nUSBHHubDriver USBHHUBD[HAL_USBHHUB_MAX_INSTANCES];\r\nusbh_port_t USBHPorts[HAL_USBHHUB_MAX_PORTS];\r\n\r\nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev, const uint8_t *descriptor, uint16_t rem);\r\nstatic void hub_unload(usbh_baseclassdriver_t *drv);\r\nstatic const usbh_classdriver_vmt_t usbhhubClassDriverVMT = {\r\n\thub_load,\r\n\thub_unload\r\n};\r\nconst usbh_classdriverinfo_t usbhhubClassDriverInfo = {\r\n\t0x09, 0x00, -1, \"HUB\", &usbhhubClassDriverVMT\r\n};\r\n\r\n\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh,\r\n\t\tUSBHHubDriver *hub, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n\tport->hub = hub;\r\n}\r\n\r\nusbh_urbstatus_t usbhhubControlRequest(USBHDriver *host, USBHHubDriver *hub,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bmRequestType,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t bRequest,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wValue,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wIndex,\r\n\t\t\t\t\t\t\t\t\t\t\tuint16_t wLength,\r\n\t\t\t\t\t\t\t\t\t\t\tuint8_t *buf) {\r\n\tif (hub == NULL)\r\n\t\treturn usbh_lld_root_hub_request(host, bmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n\r\n\treturn usbhControlRequest(hub->dev,\r\n\t\t\tbmRequestType, bRequest, wValue, wIndex, wLength, buf);\r\n}\r\n\r\n\r\nstatic void _urb_complete(usbh_urb_t *urb) {\r\n\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)urb->userData;\r\n\tswitch (urb->status) {\r\n\tcase USBH_URBSTATUS_TIMEOUT:\r\n\t\t/* the device NAKed */\r\n\t\tudbg(\"HUB: no info\");\r\n\t\thubdp->statuschange = 0;\r\n\t\tbreak;\r\n\tcase USBH_URBSTATUS_OK: {\r\n\t\tuint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1;\r\n\t\tif (urb->actualLength != len) {\r\n\t\t\tuwarnf(\"Expected %d status change bytes but got %d\", len, urb->actualLength);\r\n\t\t}\r\n\r\n\t\tif (urb->actualLength < len)\r\n\t\t\tlen = urb->actualLength;\r\n\r\n\t\tif (len > 4)\r\n\t\t\tlen = 4;\r\n\r\n\t\tuint8_t *sc = (uint8_t *)&hubdp->statuschange;\r\n\t\tuint8_t *r = hubdp->scbuff;\r\n\t\twhile (len--)\r\n\t\t\t*sc++ |= *r++;\r\n\r\n\t\tuinfof(\"HUB: change, %08x\", hubdp->statuschange);\r\n\t}\tbreak;\r\n\tcase USBH_URBSTATUS_DISCONNECTED:\r\n\t\tuwarn(\"HUB: URB disconnected, aborting poll\");\r\n\t\treturn;\r\n\tdefault:\r\n\t\tuerrf(\"HUB: URB status unexpected = %d\", urb->status);\r\n\t\tbreak;\r\n\t}\r\n\r\n\tusbhURBObjectResetI(urb);\r\n\tusbhURBSubmitI(urb);\r\n}\r\n\r\nstatic usbh_baseclassdriver_t *hub_load(usbh_device_t *dev,\r\n\t\tconst uint8_t *descriptor, uint16_t rem) {\r\n\tint i;\r\n\r\n\tUSBHHubDriver *hubdp;\r\n\r\n\tif ((rem < descriptor[0]) || (descriptor[1] != USBH_DT_DEVICE))\r\n\t\treturn NULL;\r\n\r\n\tif (dev->devDesc.bDeviceProtocol != 0)\r\n\t\treturn NULL;\r\n\r\n\tgeneric_iterator_t iep, icfg;\r\n\tif_iterator_t iif;\r\n\r\n\tcfg_iter_init(&icfg, dev->fullConfigurationDescriptor,\r\n\t\t\tdev->basicConfigDesc.wTotalLength);\r\n\r\n\tif_iter_init(&iif, &icfg);\r\n\tif (!iif.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_interface_descriptor_t *const ifdesc = if_get(&iif);\r\n\tif ((ifdesc->bInterfaceClass != 0x09)\r\n\t\t|| (ifdesc->bInterfaceSubClass != 0x00)\r\n\t\t|| (ifdesc->bInterfaceProtocol != 0x00)) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tep_iter_init(&iep, &iif);\r\n\tif (!iep.valid)\r\n\t\treturn NULL;\r\n\tconst usbh_endpoint_descriptor_t *const epdesc = ep_get(&iep);\r\n\tif ((epdesc->bmAttributes & 0x03) != USBH_EPTYPE_INT) {\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\r\n\t/* alloc driver */\r\n\tfor (i = 0; i < HAL_USBHHUB_MAX_INSTANCES; i++) {\r\n\t\tif (USBHHUBD[i].dev == NULL) {\r\n\t\t\thubdp = &USBHHUBD[i];\r\n\t\t\tgoto alloc_ok;\r\n\t\t}\r\n\t}\r\n\r\n\tuwarn(\"Can't alloc HUB driver\");\r\n\r\n\t/* can't alloc */\r\n\treturn NULL;\r\n\r\nalloc_ok:\r\n\t/* initialize the driver's variables */\r\n\thubdp->epint.status = USBH_EPSTATUS_UNINITIALIZED;\r\n\thubdp->dev = dev;\r\n\thubdp->ports = 0;\r\n\r\n\tusbhEPSetName(&dev->ctrl, \"HUB[CTRL]\");\r\n\r\n\t/* read Hub descriptor */\r\n\tuinfo(\"Read Hub descriptor\");\r\n\tif (usbhhubControlRequest(dev->host, hubdp,\r\n\t\t\tUSBH_REQTYPE_IN | USBH_REQTYPE_CLASS | USBH_REQTYPE_DEVICE,\r\n\t\t\tUSBH_REQ_GET_DESCRIPTOR,\r\n\t\t\t(USBH_DT_HUB << 8), 0, sizeof(hubdp->hubDesc),\r\n\t\t\t(uint8_t *)&hubdp->hubDesc) != USBH_URBSTATUS_OK) {\r\n\t\thubdp->dev = NULL;\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tconst usbh_hub_descriptor_t *const hubdesc = &hubdp->hubDesc;\r\n\r\n\tuinfof(\"Hub descriptor loaded; %d ports, wHubCharacteristics=%04x, bPwrOn2PwrGood=%d, bHubContrCurrent=%d\",\r\n\t\t\thubdesc->bNbrPorts,\r\n\t\t\thubdesc->wHubCharacteristics,\r\n\t\t\thubdesc->bPwrOn2PwrGood,\r\n\t\t\thubdesc->bHubContrCurrent);\r\n\r\n\t/* Alloc ports */\r\n\tuint8_t ports = hubdesc->bNbrPorts;\r\n\tfor (i = 0; (ports > 0) && (i < HAL_USBHHUB_MAX_PORTS); i++) {\r\n\t\tif (USBHPorts[i].hub == NULL) {\r\n\t\t\tuinfof(\"Alloc port %d\", ports);\r\n\t\t\t_usbhub_port_object_init(&USBHPorts[i], dev->host, hubdp, ports);\r\n\t\t\tUSBHPorts[i].next = hubdp->ports;\r\n\t\t\thubdp->ports = &USBHPorts[i];\r\n\t\t\t--ports;\r\n\t\t}\r\n\t}\r\n\r\n\tif (ports) {\r\n\t\tuwarn(\"Could not alloc all ports\");\r\n\t}\r\n\r\n\t/* link hub to the host's list */\r\n\tlist_add_tail(&hubdp->node, &dev->host->hubs);\r\n\r\n\t/* enable power to ports */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\tuinfof(\"Enable power for port %d\", port->number);\r\n\t\tusbhhubSetFeaturePort(port, USBH_PORT_FEAT_POWER);\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\tif (hubdesc->bPwrOn2PwrGood)\r\n\t\tosalThreadSleepMilliseconds(2 * hubdesc->bPwrOn2PwrGood);\r\n\r\n\t/* initialize the status change endpoint and trigger the first transfer */\r\n\tusbhEPObjectInit(&hubdp->epint, dev, epdesc);\r\n\tusbhEPSetName(&hubdp->epint, \"HUB[INT ]\");\r\n\tusbhEPOpen(&hubdp->epint);\r\n\r\n\tusbhURBObjectInit(&hubdp->urb, &hubdp->epint,\r\n\t\t\t_urb_complete, hubdp, hubdp->scbuff,\r\n\t\t\t(hubdesc->bNbrPorts + 8) / 8);\r\n\r\n\tosalSysLock();\r\n\tusbhURBSubmitI(&hubdp->urb);\r\n\tosalOsRescheduleS();\r\n\tosalSysUnlock();\r\n\r\n\treturn (usbh_baseclassdriver_t *)hubdp;\r\n}\r\n\r\nstatic void hub_unload(usbh_baseclassdriver_t *drv) {\r\n\tosalDbgCheck(drv != NULL);\r\n\tUSBHHubDriver *const hubdp = (USBHHubDriver *)drv;\r\n\r\n\t/* close the status change endpoint (this cancels ongoing URBs) */\r\n\tosalSysLock();\r\n\tusbhEPCloseS(&hubdp->epint);\r\n\tosalSysUnlock();\r\n\r\n\t/* de-alloc ports and unload drivers */\r\n\tusbh_port_t *port = hubdp->ports;\r\n\twhile (port) {\r\n\t\t_usbh_port_disconnected(port);\r\n\t\tport->hub = NULL;\r\n\t\tport = port->next;\r\n\t}\r\n\r\n\t/* unlink the hub from the host's list */\r\n\tlist_del(&hubdp->node);\r\n\r\n}\r\n\r\nvoid usbhhubObjectInit(USBHHubDriver *hubdp) {\r\n\tosalDbgCheck(hubdp != NULL);\r\n\tmemset(hubdp, 0, sizeof(*hubdp));\r\n\thubdp->info = &usbhhubClassDriverInfo;\r\n}\r\n#else\r\n\r\n#if HAL_USE_USBH\r\nvoid _usbhub_port_object_init(usbh_port_t *port, USBHDriver *usbh, uint8_t number) {\r\n\tmemset(port, 0, sizeof(*port));\r\n\tport->number = number;\r\n\tport->device.host = usbh;\r\n}\r\n#endif\r\n\r\n#endif\r\n"}
172
c
// Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_ #define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_ #include <stdint.h> #include <unistd.h> #include <string> #include <vector> #include <base/macros.h> #include <gmock/gmock.h> #include "login_manager/system_utils.h" namespace login_manager { class MockSystemUtils : public SystemUtils { public: MockSystemUtils(); ~MockSystemUtils() override; MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override)); MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT MOCK_METHOD(pid_t, fork, (), (override)); MOCK_METHOD(int, close, (int), (override)); MOCK_METHOD(int, chdir, (const base::FilePath&), (override)); MOCK_METHOD(pid_t, setsid, (), (override)); MOCK_METHOD(int, execve, (const base::FilePath&, const char* const[], const char* const[]), (override)); MOCK_METHOD(bool, EnterNewMountNamespace, (), (override)); MOCK_METHOD(bool, GetAppOutput, (const std::vector<std::string>&, std::string*), (override)); MOCK_METHOD(DevModeState, GetDevModeState, (), (override)); MOCK_METHOD(VmState, GetVmState, (), (override)); MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override)); MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override)); MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override)); MOCK_METHOD(bool, EnsureAndReturnSafeFileSize, (const base::FilePath&, int32_t*), (override)); MOCK_METHOD(bool, Exists, (const base::FilePath&), (override)); MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override)); MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override)); MOCK_METHOD(bool, EnumerateFiles, (const base::FilePath&, int, std::vector<base::FilePath>*), (override)); MOCK_METHOD(bool, GetUniqueFilenameInWriteOnlyTempDir, (base::FilePath*), (override)); MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override)); MOCK_METHOD(bool, AtomicFileWrite, (const base::FilePath&, const std::string&), (override)); MOCK_METHOD(int64_t, AmountOfFreeDiskSpace, (const base::FilePath&), (override)); MOCK_METHOD(bool, GetGidAndGroups, (uid_t, gid_t*, std::vector<gid_t>*), (override)); MOCK_METHOD(bool, ReadFileToString, (const base::FilePath&, std::string*), (override)); MOCK_METHOD(bool, WriteStringToFile, (const base::FilePath&, const std::string&), (override)); MOCK_METHOD(bool, ChangeBlockedSignals, (int, const std::vector<int>&), (override)); MOCK_METHOD(bool, LaunchAndWait, (const std::vector<std::string>&, int*), (override)); MOCK_METHOD(bool, RunInMinijail, (const ScopedMinijail& jail, const std::vector<std::string>&, const std::vector<std::string>&, pid_t*), (override)); private: DISALLOW_COPY_AND_ASSIGN(MockSystemUtils); }; } // namespace login_manager #endif // LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_
37.31
93
(translation_unit) "// Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n\n#include <stdint.h>\n#include <unistd.h>\n\n#include <string>\n#include <vector>\n\n#include <base/macros.h>\n#include <gmock/gmock.h>\n\n#include "login_manager/system_utils.h"\n\nnamespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n} // namespace login_manager\n\n#endif // LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n" (comment) "// Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n\n#include <stdint.h>\n#include <unistd.h>\n\n#include <string>\n#include <vector>\n\n#include <base/macros.h>\n#include <gmock/gmock.h>\n\n#include "login_manager/system_utils.h"\n\nnamespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n} // namespace login_manager\n\n#endif" (#ifndef) "#ifndef" (identifier) "LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_" (preproc_def) "#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n" (#define) "#define" (identifier) "LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <base/macros.h>\n" (#include) "#include" (system_lib_string) "<base/macros.h>" (preproc_include) "#include <gmock/gmock.h>\n" (#include) "#include" (system_lib_string) "<gmock/gmock.h>" (preproc_include) "#include "login_manager/system_utils.h"\n" (#include) "#include" (string_literal) ""login_manager/system_utils.h"" (") """ (string_content) "login_manager/system_utils.h" (") """ (function_definition) "namespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n}" (type_identifier) "namespace" (identifier) "login_manager" (compound_statement) "{\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n}" ({) "{" (function_definition) "class MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n}" (type_identifier) "class" (identifier) "MockSystemUtils" (ERROR) ": public SystemUtils" (:) ":" (identifier) "public" (identifier) "SystemUtils" (compound_statement) "{\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n}" ({) "{" (labeled_statement) "public:\n MockSystemUtils();" (statement_identifier) "public" (:) ":" (expression_statement) "MockSystemUtils();" (call_expression) "MockSystemUtils()" (identifier) "MockSystemUtils" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~MockSystemUtils() override;" (unary_expression) "~MockSystemUtils()" (~) "~" (call_expression) "MockSystemUtils()" (identifier) "MockSystemUtils" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (expression_statement) "MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));" (call_expression) "MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override))" (identifier) "MOCK_METHOD" (argument_list) "(int, kill, (pid_t, uid_t, int), (override))" (() "(" (identifier) "int" (,) "," (identifier) "kill" (,) "," (parenthesized_expression) "(pid_t, uid_t, int)" (() "(" (comma_expression) "pid_t, uid_t, int" (identifier) "pid_t" (,) "," (comma_expression) "uid_t, int" (identifier) "uid_t" (,) "," (identifier) "int" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(time_t, time, (time_t*), (override));" (call_expression) "MOCK_METHOD(time_t, time, (time_t*), (override))" (identifier) "MOCK_METHOD" (argument_list) "(time_t, time, (time_t*), (override))" (() "(" (identifier) "time_t" (,) "," (identifier) "time" (,) "," (cast_expression) "(time_t*), (override)" (() "(" (type_descriptor) "time_t*" (type_identifier) "time_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (comment) "// NOLINT" (expression_statement) "MOCK_METHOD(pid_t, fork, (), (override));" (call_expression) "MOCK_METHOD(pid_t, fork, (), (override))" (identifier) "MOCK_METHOD" (argument_list) "(pid_t, fork, (), (override))" (() "(" (identifier) "pid_t" (,) "," (identifier) "fork" (,) "," (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(int, close, (int), (override));" (call_expression) "MOCK_METHOD(int, close, (int), (override))" (identifier) "MOCK_METHOD" (argument_list) "(int, close, (int), (override))" (() "(" (identifier) "int" (,) "," (identifier) "close" (,) "," (cast_expression) "(int), (override)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(int, chdir, (const base::FilePath&), (override));" (call_expression) "MOCK_METHOD(int, chdir, (const base::FilePath&), (override))" (identifier) "MOCK_METHOD" (argument_list) "(int, chdir, (const base::FilePath&), (override))" (() "(" (identifier) "int" (,) "," (identifier) "chdir" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(pid_t, setsid, (), (override));" (call_expression) "MOCK_METHOD(pid_t, setsid, (), (override))" (identifier) "MOCK_METHOD" (argument_list) "(pid_t, setsid, (), (override))" (() "(" (identifier) "pid_t" (,) "," (identifier) "setsid" (,) "," (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));" (call_expression) "MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override))" (() "(" (identifier) "int" (,) "," (identifier) "execve" (,) "," (cast_expression) "(const base::FilePath&, const char* const[], const char* const[]),\n (override)" (() "(" (ERROR) "const base::FilePath&, const char* const[]," (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (identifier) "FilePath" (&) "&" (,) "," (type_descriptor) "const char* const[]" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "* const[]" (*) "*" (type_qualifier) "const" (const) "const" (abstract_array_declarator) "[]" ([) "[" (]) "]" (,) "," (type_descriptor) "const char* const[]" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "* const[]" (*) "*" (type_qualifier) "const" (const) "const" (abstract_array_declarator) "[]" ([) "[" (]) "]" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));" (call_expression) "MOCK_METHOD(bool, EnterNewMountNamespace, (), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, EnterNewMountNamespace, (), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "EnterNewMountNamespace" (,) "," (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "GetAppOutput" (,) "," (cast_expression) "(const std::vector<std::string>&, std::string*),\n (override)" (() "(" (ERROR) "const std::vector<std::string>&, std::" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string>&, std" (identifier) "string" (>) ">" (pointer_expression) "&, std" (&) "&" (ERROR) "," (,) "," (identifier) "std" (:) ":" (:) ":" (type_descriptor) "string*" (type_identifier) "string" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(DevModeState, GetDevModeState, (), (override));" (call_expression) "MOCK_METHOD(DevModeState, GetDevModeState, (), (override))" (identifier) "MOCK_METHOD" (argument_list) "(DevModeState, GetDevModeState, (), (override))" (() "(" (identifier) "DevModeState" (,) "," (identifier) "GetDevModeState" (,) "," (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(VmState, GetVmState, (), (override));" (call_expression) "MOCK_METHOD(VmState, GetVmState, (), (override))" (identifier) "MOCK_METHOD" (argument_list) "(VmState, GetVmState, (), (override))" (() "(" (identifier) "VmState" (,) "," (identifier) "GetVmState" (,) "," (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));" (call_expression) "MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "ProcessGroupIsGone" (,) "," (parenthesized_expression) "(pid_t, base::TimeDelta)" (() "(" (comma_expression) "pid_t, base" (identifier) "pid_t" (,) "," (identifier) "base" (ERROR) "::TimeDelta" (:) ":" (:) ":" (identifier) "TimeDelta" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));" (call_expression) "MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "ProcessIsGone" (,) "," (parenthesized_expression) "(pid_t, base::TimeDelta)" (() "(" (comma_expression) "pid_t, base" (identifier) "pid_t" (,) "," (identifier) "base" (ERROR) "::TimeDelta" (:) ":" (:) ":" (identifier) "TimeDelta" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));" (call_expression) "MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override))" (identifier) "MOCK_METHOD" (argument_list) "(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override))" (() "(" (identifier) "pid_t" (,) "," (identifier) "Wait" (,) "," (parenthesized_expression) "(pid_t, base::TimeDelta, int*)" (() "(" (ERROR) "pid_t, base::" (comma_expression) "pid_t, base" (identifier) "pid_t" (,) "," (identifier) "base" (:) ":" (:) ":" (comma_expression) "TimeDelta, int" (identifier) "TimeDelta" (,) "," (identifier) "int" (ERROR) "*" (*) "*" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "EnsureAndReturnSafeFileSize" (,) "," (cast_expression) "(const base::FilePath&, int32_t*),\n (override)" (() "(" (ERROR) "const base::FilePath&," (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (identifier) "FilePath" (&) "&" (,) "," (type_descriptor) "int32_t*" (primitive_type) "int32_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));" (call_expression) "MOCK_METHOD(bool, Exists, (const base::FilePath&), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, Exists, (const base::FilePath&), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "Exists" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));" (call_expression) "MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, DirectoryExists, (const base::FilePath&), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "DirectoryExists" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));" (call_expression) "MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, CreateDir, (const base::FilePath&), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "CreateDir" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "EnumerateFiles" (,) "," (parenthesized_expression) "(const base::FilePath&, int, std::vector<base::FilePath>*)" (() "(" (ERROR) "const base::FilePath&, int, std::vector<base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (comma_expression) "FilePath&, int, std" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" (,) "," (comma_expression) "int, std" (identifier) "int" (,) "," (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<base" (identifier) "vector" (<) "<" (identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath>*" (identifier) "FilePath" (>) ">" (pointer_expression) "*" (*) "*" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "GetUniqueFilenameInWriteOnlyTempDir" (,) "," (cast_expression) "(base::FilePath*),\n (override)" (() "(" (ERROR) "base::" (identifier) "base" (:) ":" (:) ":" (type_descriptor) "FilePath*" (type_identifier) "FilePath" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));" (call_expression) "MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool, RemoveFile, (const base::FilePath&), (override))" (() "(" (identifier) "bool" (,) "," (identifier) "RemoveFile" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));" (call_expression) "MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "AtomicFileWrite" (,) "," (parenthesized_expression) "(const base::FilePath&, const std::string&)" (() "(" (ERROR) "const base::FilePath&, const std::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (identifier) "FilePath" (&) "&" (,) "," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "string&" (identifier) "string" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));" (call_expression) "MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override))" (() "(" (identifier) "int64_t" (,) "," (identifier) "AmountOfFreeDiskSpace" (,) "," (parenthesized_expression) "(const base::FilePath&)" (() "(" (ERROR) "const base::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&" (identifier) "FilePath" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "GetGidAndGroups" (,) "," (parenthesized_expression) "(uid_t, gid_t*, std::vector<gid_t>*)" (() "(" (ERROR) "uid_t, gid_t*, std::" (comma_expression) "uid_t, gid_t*, std" (identifier) "uid_t" (,) "," (binary_expression) "gid_t*, std" (identifier) "gid_t" (*) "*" (ERROR) "," (,) "," (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<gid_t>*" (binary_expression) "vector<gid_t" (identifier) "vector" (<) "<" (identifier) "gid_t" (>) ">" (pointer_expression) "*" (*) "*" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "ReadFileToString" (,) "," (cast_expression) "(const base::FilePath&, std::string*),\n (override)" (() "(" (ERROR) "const base::FilePath&, std::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath&, std" (identifier) "FilePath" (&) "&" (ERROR) "," (,) "," (identifier) "std" (:) ":" (:) ":" (type_descriptor) "string*" (type_identifier) "string" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));" (call_expression) "MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "WriteStringToFile" (,) "," (parenthesized_expression) "(const base::FilePath&, const std::string&)" (() "(" (ERROR) "const base::FilePath&, const std::" (type_descriptor) "const base" (type_qualifier) "const" (const) "const" (type_identifier) "base" (:) ":" (:) ":" (identifier) "FilePath" (&) "&" (,) "," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "string&" (identifier) "string" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));" (call_expression) "MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "ChangeBlockedSignals" (,) "," (parenthesized_expression) "(int, const std::vector<int>&)" (() "(" (ERROR) "int, const std::" (type_descriptor) "int" (primitive_type) "int" (,) "," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<int>&" (binary_expression) "vector<int" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (pointer_expression) "&" (&) "&" (identifier) "" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "LaunchAndWait" (,) "," (cast_expression) "(const std::vector<std::string>&, int*),\n (override)" (() "(" (ERROR) "const std::vector<std::string>&," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (,) "," (type_descriptor) "int*" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "," (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));" (call_expression) "MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override))" (identifier) "MOCK_METHOD" (argument_list) "(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override))" (() "(" (identifier) "bool" (,) "," (identifier) "RunInMinijail" (,) "," (parenthesized_expression) "(const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*)" (() "(" (ERROR) "const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::" (type_descriptor) "const ScopedMinijail" (type_qualifier) "const" (const) "const" (type_identifier) "ScopedMinijail" (comma_expression) "& jail,\n const std::vector<std" (pointer_expression) "& jail" (&) "&" (identifier) "jail" (,) "," (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (,) "," (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string>&,\n pid_t" (identifier) "string" (>) ">" (pointer_expression) "&,\n pid_t" (&) "&" (ERROR) "," (,) "," (identifier) "pid_t" (ERROR) "*" (*) "*" ()) ")" (,) "," (parenthesized_expression) "(override)" (() "(" (identifier) "override" ()) ")" ()) ")" (;) ";" (labeled_statement) "private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);" (statement_identifier) "private" (:) ":" (expression_statement) "DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);" (call_expression) "DISALLOW_COPY_AND_ASSIGN(MockSystemUtils)" (identifier) "DISALLOW_COPY_AND_ASSIGN" (argument_list) "(MockSystemUtils)" (() "(" (identifier) "MockSystemUtils" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace login_manager" (#endif) "#endif" (comment) "// LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_"
1,040
38
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 37.31, "nodes": 514, "errors": 0, "source_hash": "a2ce1a1ac66b8c8ee42211a0fefdb53ae355fba4e807dc63ac701a6ac11aa575", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n\n#include <stdint.h>\n#include <unistd.h>\n\n#include <string>\n#include <vector>\n\n#include <base/macros.h>\n#include <gmock/gmock.h>\n\n#include \"login_manager/system_utils.h\"\n\nnamespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n} // namespace login_manager\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 513], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 106, "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": "LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 42}}, {"id": 3, "type": "preproc_def", "text": "#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_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": "LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 42}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <unistd.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": "<unistd.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<vector>", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <base/macros.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<base/macros.h>", "parent": 18, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 24}}, {"id": 21, "type": "preproc_include", "text": "#include <gmock/gmock.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<gmock/gmock.h>", "parent": 21, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 24}}, {"id": 24, "type": "preproc_include", "text": "#include \"login_manager/system_utils.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"login_manager/system_utils.h\"", "parent": 24, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 39}}, {"id": 27, "type": "function_definition", "text": "namespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n}", "parent": 0, "children": [28, 29], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 29, "type": "identifier", "text": "login_manager", "parent": 27, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 23}}, {"id": 30, "type": "function_definition", "text": "class MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n}", "parent": 27, "children": [31, 32], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 31, "type": "identifier", "text": "MockSystemUtils", "parent": 30, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 21}}, {"id": 32, "type": "ERROR", "text": ": public SystemUtils", "parent": 30, "children": [33], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 42}}, {"id": 33, "type": "identifier", "text": "SystemUtils", "parent": 32, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 42}}, {"id": 34, "type": "labeled_statement", "text": "public:\n MockSystemUtils();", "parent": 30, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 22, "column": 20}}, {"id": 35, "type": "call_expression", "text": "MockSystemUtils()", "parent": 34, "children": [36, 37], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 19}}, {"id": 36, "type": "identifier", "text": "MockSystemUtils", "parent": 35, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 17}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 19}}, {"id": 38, "type": "unary_expression", "text": "~MockSystemUtils()", "parent": 30, "children": [39, 40], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 20}}, {"id": 39, "type": "~", "text": "~", "parent": 38, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 3}}, {"id": 40, "type": "call_expression", "text": "MockSystemUtils()", "parent": 38, "children": [41, 42], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 20}}, {"id": 41, "type": "identifier", "text": "MockSystemUtils", "parent": 40, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 18}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 20}}, {"id": 43, "type": "ERROR", "text": "override", "parent": 30, "children": [44], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 29}}, {"id": 44, "type": "identifier", "text": "override", "parent": 43, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 29}}, {"id": 45, "type": "call_expression", "text": "MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override))", "parent": 30, "children": [46, 47], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 57}}, {"id": 46, "type": "identifier", "text": "MOCK_METHOD", "parent": 45, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 47, "type": "argument_list", "text": "(int, kill, (pid_t, uid_t, int), (override))", "parent": 45, "children": [48, 49, 50, 56], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 57}}, {"id": 48, "type": "identifier", "text": "int", "parent": 47, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 17}}, {"id": 49, "type": "identifier", "text": "kill", "parent": 47, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 23}}, {"id": 50, "type": "parenthesized_expression", "text": "(pid_t, uid_t, int)", "parent": 47, "children": [51], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 44}}, {"id": 51, "type": "comma_expression", "text": "pid_t, uid_t, int", "parent": 50, "children": [52, 53], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 43}}, {"id": 52, "type": "identifier", "text": "pid_t", "parent": 51, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 31}}, {"id": 53, "type": "comma_expression", "text": "uid_t, int", "parent": 51, "children": [54, 55], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 43}}, {"id": 54, "type": "identifier", "text": "uid_t", "parent": 53, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 38}}, {"id": 55, "type": "identifier", "text": "int", "parent": 53, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 43}}, {"id": 56, "type": "parenthesized_expression", "text": "(override)", "parent": 47, "children": [57], "start_point": {"row": 25, "column": 46}, "end_point": {"row": 25, "column": 56}}, {"id": 57, "type": "identifier", "text": "override", "parent": 56, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 55}}, {"id": 58, "type": "call_expression", "text": "MOCK_METHOD(time_t, time, (time_t*), (override))", "parent": 30, "children": [59, 60], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 50}}, {"id": 59, "type": "identifier", "text": "MOCK_METHOD", "parent": 58, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 60, "type": "argument_list", "text": "(time_t, time, (time_t*), (override))", "parent": 58, "children": [61, 62, 63], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 50}}, {"id": 61, "type": "identifier", "text": "time_t", "parent": 60, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 20}}, {"id": 62, "type": "identifier", "text": "time", "parent": 60, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 26}}, {"id": 63, "type": "cast_expression", "text": "(time_t*), (override)", "parent": 60, "children": [64, 68], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 49}}, {"id": 64, "type": "type_descriptor", "text": "time_t*", "parent": 63, "children": [65, 66], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 36}}, {"id": 65, "type": "type_identifier", "text": "time_t", "parent": 64, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 35}}, {"id": 66, "type": "abstract_pointer_declarator", "text": "*", "parent": 64, "children": [67], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 36}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 36}}, {"id": 68, "type": "parenthesized_expression", "text": "(override)", "parent": 63, "children": [69], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 49}}, {"id": 69, "type": "identifier", "text": "override", "parent": 68, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 48}}, {"id": 70, "type": "call_expression", "text": "MOCK_METHOD(pid_t, fork, (), (override))", "parent": 30, "children": [71, 72], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 42}}, {"id": 71, "type": "identifier", "text": "MOCK_METHOD", "parent": 70, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 13}}, {"id": 72, "type": "argument_list", "text": "(pid_t, fork, (), (override))", "parent": 70, "children": [73, 74, 75, 77], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 42}}, {"id": 73, "type": "identifier", "text": "pid_t", "parent": 72, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 19}}, {"id": 74, "type": "identifier", "text": "fork", "parent": 72, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 75, "type": "parenthesized_expression", "text": "()", "parent": 72, "children": [76], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 29}}, {"id": 76, "type": "identifier", "text": "", "parent": 75, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 28}}, {"id": 77, "type": "parenthesized_expression", "text": "(override)", "parent": 72, "children": [78], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 41}}, {"id": 78, "type": "identifier", "text": "override", "parent": 77, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 40}}, {"id": 79, "type": "call_expression", "text": "MOCK_METHOD(int, close, (int), (override))", "parent": 30, "children": [80, 81], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 44}}, {"id": 80, "type": "identifier", "text": "MOCK_METHOD", "parent": 79, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 13}}, {"id": 81, "type": "argument_list", "text": "(int, close, (int), (override))", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 44}}, {"id": 82, "type": "identifier", "text": "int", "parent": 81, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 17}}, {"id": 83, "type": "identifier", "text": "close", "parent": 81, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 24}}, {"id": 84, "type": "cast_expression", "text": "(int), (override)", "parent": 81, "children": [85, 87], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 43}}, {"id": 85, "type": "type_descriptor", "text": "int", "parent": 84, "children": [86], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 30}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 30}}, {"id": 87, "type": "parenthesized_expression", "text": "(override)", "parent": 84, "children": [88], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 43}}, {"id": 88, "type": "identifier", "text": "override", "parent": 87, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 42}}, {"id": 89, "type": "call_expression", "text": "MOCK_METHOD(int, chdir, (const base::FilePath&), (override))", "parent": 30, "children": [90, 91], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 62}}, {"id": 90, "type": "identifier", "text": "MOCK_METHOD", "parent": 89, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 13}}, {"id": 91, "type": "argument_list", "text": "(int, chdir, (const base::FilePath&), (override))", "parent": 89, "children": [92, 93, 94, 101], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 62}}, {"id": 92, "type": "identifier", "text": "int", "parent": 91, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 17}}, {"id": 93, "type": "identifier", "text": "chdir", "parent": 91, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 24}}, {"id": 94, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 91, "children": [95, 98], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 49}}, {"id": 95, "type": "ERROR", "text": "const base::", "parent": 94, "children": [96], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 39}}, {"id": 96, "type": "type_descriptor", "text": "const base", "parent": 95, "children": [97], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 37}}, {"id": 97, "type": "type_identifier", "text": "base", "parent": 96, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 37}}, {"id": 98, "type": "binary_expression", "text": "FilePath&", "parent": 94, "children": [99, 100], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 48}}, {"id": 99, "type": "identifier", "text": "FilePath", "parent": 98, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 47}}, {"id": 100, "type": "identifier", "text": "", "parent": 98, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 48}}, {"id": 101, "type": "parenthesized_expression", "text": "(override)", "parent": 91, "children": [102], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 61}}, {"id": 102, "type": "identifier", "text": "override", "parent": 101, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 60}}, {"id": 103, "type": "call_expression", "text": "MOCK_METHOD(pid_t, setsid, (), (override))", "parent": 30, "children": [104, 105], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 44}}, {"id": 104, "type": "identifier", "text": "MOCK_METHOD", "parent": 103, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 13}}, {"id": 105, "type": "argument_list", "text": "(pid_t, setsid, (), (override))", "parent": 103, "children": [106, 107, 108, 110], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 44}}, {"id": 106, "type": "identifier", "text": "pid_t", "parent": 105, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 19}}, {"id": 107, "type": "identifier", "text": "setsid", "parent": 105, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 27}}, {"id": 108, "type": "parenthesized_expression", "text": "()", "parent": 105, "children": [109], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 31}}, {"id": 109, "type": "identifier", "text": "", "parent": 108, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 30}}, {"id": 110, "type": "parenthesized_expression", "text": "(override)", "parent": 105, "children": [111], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 43}}, {"id": 111, "type": "identifier", "text": "override", "parent": 110, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 42}}, {"id": 112, "type": "call_expression", "text": "MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override))", "parent": 30, "children": [113, 114], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 34, "column": 25}}, {"id": 113, "type": "identifier", "text": "MOCK_METHOD", "parent": 112, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 13}}, {"id": 114, "type": "argument_list", "text": "(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override))", "parent": 112, "children": [115, 116, 117], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 34, "column": 25}}, {"id": 115, "type": "identifier", "text": "int", "parent": 114, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 17}}, {"id": 116, "type": "identifier", "text": "execve", "parent": 114, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 20}}, {"id": 117, "type": "cast_expression", "text": "(const base::FilePath&, const char* const[], const char* const[]),\n (override)", "parent": 114, "children": [118, 127, 132], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 34, "column": 24}}, {"id": 118, "type": "ERROR", "text": "const base::FilePath&, const char* const[],", "parent": 117, "children": [119, 121, 122], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 58}}, {"id": 119, "type": "type_descriptor", "text": "const base", "parent": 118, "children": [120], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 25}}, {"id": 120, "type": "type_identifier", "text": "base", "parent": 119, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 25}}, {"id": 121, "type": "identifier", "text": "FilePath", "parent": 118, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 35}}, {"id": 122, "type": "type_descriptor", "text": "const char* const[]", "parent": 118, "children": [123, 124], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 57}}, {"id": 123, "type": "primitive_type", "text": "char", "parent": 122, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 48}}, {"id": 124, "type": "abstract_pointer_declarator", "text": "* const[]", "parent": 122, "children": [125, 126], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 57}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 49}}, {"id": 126, "type": "abstract_array_declarator", "text": "[]", "parent": 124, "children": [], "start_point": {"row": 33, "column": 55}, "end_point": {"row": 33, "column": 57}}, {"id": 127, "type": "type_descriptor", "text": "const char* const[]", "parent": 117, "children": [128, 129], "start_point": {"row": 33, "column": 59}, "end_point": {"row": 33, "column": 78}}, {"id": 128, "type": "primitive_type", "text": "char", "parent": 127, "children": [], "start_point": {"row": 33, "column": 65}, "end_point": {"row": 33, "column": 69}}, {"id": 129, "type": "abstract_pointer_declarator", "text": "* const[]", "parent": 127, "children": [130, 131], "start_point": {"row": 33, "column": 69}, "end_point": {"row": 33, "column": 78}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 33, "column": 69}, "end_point": {"row": 33, "column": 70}}, {"id": 131, "type": "abstract_array_declarator", "text": "[]", "parent": 129, "children": [], "start_point": {"row": 33, "column": 76}, "end_point": {"row": 33, "column": 78}}, {"id": 132, "type": "parenthesized_expression", "text": "(override)", "parent": 117, "children": [133], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 24}}, {"id": 133, "type": "identifier", "text": "override", "parent": 132, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 23}}, {"id": 134, "type": "call_expression", "text": "MOCK_METHOD(bool, EnterNewMountNamespace, (), (override))", "parent": 30, "children": [135, 136], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 59}}, {"id": 135, "type": "identifier", "text": "MOCK_METHOD", "parent": 134, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 13}}, {"id": 136, "type": "argument_list", "text": "(bool, EnterNewMountNamespace, (), (override))", "parent": 134, "children": [137, 138, 139, 141], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 59}}, {"id": 137, "type": "identifier", "text": "bool", "parent": 136, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 18}}, {"id": 138, "type": "identifier", "text": "EnterNewMountNamespace", "parent": 136, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 42}}, {"id": 139, "type": "parenthesized_expression", "text": "()", "parent": 136, "children": [140], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 46}}, {"id": 140, "type": "identifier", "text": "", "parent": 139, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 45}}, {"id": 141, "type": "parenthesized_expression", "text": "(override)", "parent": 136, "children": [142], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 58}}, {"id": 142, "type": "identifier", "text": "override", "parent": 141, "children": [], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 57}}, {"id": 143, "type": "call_expression", "text": "MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override))", "parent": 30, "children": [144, 145], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 39, "column": 25}}, {"id": 144, "type": "identifier", "text": "MOCK_METHOD", "parent": 143, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 13}}, {"id": 145, "type": "argument_list", "text": "(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override))", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 39, "column": 25}}, {"id": 146, "type": "identifier", "text": "bool", "parent": 145, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 147, "type": "identifier", "text": "GetAppOutput", "parent": 145, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 26}}, {"id": 148, "type": "cast_expression", "text": "(const std::vector<std::string>&, std::string*),\n (override)", "parent": 145, "children": [149, 161, 165], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 39, "column": 24}}, {"id": 149, "type": "ERROR", "text": "const std::vector<std::string>&, std::", "parent": 148, "children": [150, 152, 156], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 53}}, {"id": 150, "type": "type_descriptor", "text": "const std", "parent": 149, "children": [151], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 24}}, {"id": 151, "type": "type_identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 24}}, {"id": 152, "type": "binary_expression", "text": "vector<std", "parent": 149, "children": [153, 154, 155], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 36}}, {"id": 153, "type": "identifier", "text": "vector", "parent": 152, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 32}}, {"id": 154, "type": "<", "text": "<", "parent": 152, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 33}}, {"id": 155, "type": "identifier", "text": "std", "parent": 152, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 36}}, {"id": 156, "type": "binary_expression", "text": "string>&, std", "parent": 149, "children": [157, 158, 159], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 51}}, {"id": 157, "type": "identifier", "text": "string", "parent": 156, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 44}}, {"id": 158, "type": ">", "text": ">", "parent": 156, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 45}}, {"id": 159, "type": "pointer_expression", "text": "&, std", "parent": 156, "children": [160], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 51}}, {"id": 160, "type": "identifier", "text": "std", "parent": 159, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 51}}, {"id": 161, "type": "type_descriptor", "text": "string*", "parent": 148, "children": [162, 163], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 60}}, {"id": 162, "type": "type_identifier", "text": "string", "parent": 161, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 59}}, {"id": 163, "type": "abstract_pointer_declarator", "text": "*", "parent": 161, "children": [164], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 60}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 60}}, {"id": 165, "type": "parenthesized_expression", "text": "(override)", "parent": 148, "children": [166], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 24}}, {"id": 166, "type": "identifier", "text": "override", "parent": 165, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 23}}, {"id": 167, "type": "call_expression", "text": "MOCK_METHOD(DevModeState, GetDevModeState, (), (override))", "parent": 30, "children": [168, 169], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 60}}, {"id": 168, "type": "identifier", "text": "MOCK_METHOD", "parent": 167, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 13}}, {"id": 169, "type": "argument_list", "text": "(DevModeState, GetDevModeState, (), (override))", "parent": 167, "children": [170, 171, 172, 174], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 60}}, {"id": 170, "type": "identifier", "text": "DevModeState", "parent": 169, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 26}}, {"id": 171, "type": "identifier", "text": "GetDevModeState", "parent": 169, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 43}}, {"id": 172, "type": "parenthesized_expression", "text": "()", "parent": 169, "children": [173], "start_point": {"row": 40, "column": 45}, "end_point": {"row": 40, "column": 47}}, {"id": 173, "type": "identifier", "text": "", "parent": 172, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 46}}, {"id": 174, "type": "parenthesized_expression", "text": "(override)", "parent": 169, "children": [175], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 59}}, {"id": 175, "type": "identifier", "text": "override", "parent": 174, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 58}}, {"id": 176, "type": "call_expression", "text": "MOCK_METHOD(VmState, GetVmState, (), (override))", "parent": 30, "children": [177, 178], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 50}}, {"id": 177, "type": "identifier", "text": "MOCK_METHOD", "parent": 176, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 13}}, {"id": 178, "type": "argument_list", "text": "(VmState, GetVmState, (), (override))", "parent": 176, "children": [179, 180, 181, 183], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 50}}, {"id": 179, "type": "identifier", "text": "VmState", "parent": 178, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 21}}, {"id": 180, "type": "identifier", "text": "GetVmState", "parent": 178, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 33}}, {"id": 181, "type": "parenthesized_expression", "text": "()", "parent": 178, "children": [182], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 37}}, {"id": 182, "type": "identifier", "text": "", "parent": 181, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 36}}, {"id": 183, "type": "parenthesized_expression", "text": "(override)", "parent": 178, "children": [184], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 49}}, {"id": 184, "type": "identifier", "text": "override", "parent": 183, "children": [], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 48}}, {"id": 185, "type": "call_expression", "text": "MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override))", "parent": 30, "children": [186, 187], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 77}}, {"id": 186, "type": "identifier", "text": "MOCK_METHOD", "parent": 185, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 13}}, {"id": 187, "type": "argument_list", "text": "(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override))", "parent": 185, "children": [188, 189, 190, 196], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 77}}, {"id": 188, "type": "identifier", "text": "bool", "parent": 187, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 189, "type": "identifier", "text": "ProcessGroupIsGone", "parent": 187, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 38}}, {"id": 190, "type": "parenthesized_expression", "text": "(pid_t, base::TimeDelta)", "parent": 187, "children": [191, 194], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 64}}, {"id": 191, "type": "comma_expression", "text": "pid_t, base", "parent": 190, "children": [192, 193], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 52}}, {"id": 192, "type": "identifier", "text": "pid_t", "parent": 191, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 46}}, {"id": 193, "type": "identifier", "text": "base", "parent": 191, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 52}}, {"id": 194, "type": "ERROR", "text": "::TimeDelta", "parent": 190, "children": [195], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 63}}, {"id": 195, "type": "identifier", "text": "TimeDelta", "parent": 194, "children": [], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 63}}, {"id": 196, "type": "parenthesized_expression", "text": "(override)", "parent": 187, "children": [197], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 76}}, {"id": 197, "type": "identifier", "text": "override", "parent": 196, "children": [], "start_point": {"row": 42, "column": 67}, "end_point": {"row": 42, "column": 75}}, {"id": 198, "type": "call_expression", "text": "MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override))", "parent": 30, "children": [199, 200], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 72}}, {"id": 199, "type": "identifier", "text": "MOCK_METHOD", "parent": 198, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 13}}, {"id": 200, "type": "argument_list", "text": "(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override))", "parent": 198, "children": [201, 202, 203, 209], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 72}}, {"id": 201, "type": "identifier", "text": "bool", "parent": 200, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 18}}, {"id": 202, "type": "identifier", "text": "ProcessIsGone", "parent": 200, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 33}}, {"id": 203, "type": "parenthesized_expression", "text": "(pid_t, base::TimeDelta)", "parent": 200, "children": [204, 207], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 59}}, {"id": 204, "type": "comma_expression", "text": "pid_t, base", "parent": 203, "children": [205, 206], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 47}}, {"id": 205, "type": "identifier", "text": "pid_t", "parent": 204, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 41}}, {"id": 206, "type": "identifier", "text": "base", "parent": 204, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 47}}, {"id": 207, "type": "ERROR", "text": "::TimeDelta", "parent": 203, "children": [208], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 58}}, {"id": 208, "type": "identifier", "text": "TimeDelta", "parent": 207, "children": [], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 58}}, {"id": 209, "type": "parenthesized_expression", "text": "(override)", "parent": 200, "children": [210], "start_point": {"row": 43, "column": 61}, "end_point": {"row": 43, "column": 71}}, {"id": 210, "type": "identifier", "text": "override", "parent": 209, "children": [], "start_point": {"row": 43, "column": 62}, "end_point": {"row": 43, "column": 70}}, {"id": 211, "type": "call_expression", "text": "MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override))", "parent": 30, "children": [212, 213], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 70}}, {"id": 212, "type": "identifier", "text": "MOCK_METHOD", "parent": 211, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 13}}, {"id": 213, "type": "argument_list", "text": "(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override))", "parent": 211, "children": [214, 215, 216, 226], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 70}}, {"id": 214, "type": "identifier", "text": "pid_t", "parent": 213, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 19}}, {"id": 215, "type": "identifier", "text": "Wait", "parent": 213, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 216, "type": "parenthesized_expression", "text": "(pid_t, base::TimeDelta, int*)", "parent": 213, "children": [217, 221, 224], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 57}}, {"id": 217, "type": "ERROR", "text": "pid_t, base::", "parent": 216, "children": [218], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 41}}, {"id": 218, "type": "comma_expression", "text": "pid_t, base", "parent": 217, "children": [219, 220], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 39}}, {"id": 219, "type": "identifier", "text": "pid_t", "parent": 218, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 33}}, {"id": 220, "type": "identifier", "text": "base", "parent": 218, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 39}}, {"id": 221, "type": "comma_expression", "text": "TimeDelta, int", "parent": 216, "children": [222, 223], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 55}}, {"id": 222, "type": "identifier", "text": "TimeDelta", "parent": 221, "children": [], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 50}}, {"id": 223, "type": "identifier", "text": "int", "parent": 221, "children": [], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 55}}, {"id": 224, "type": "ERROR", "text": "*", "parent": 216, "children": [225], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 56}}, {"id": 225, "type": "*", "text": "*", "parent": 224, "children": [], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 56}}, {"id": 226, "type": "parenthesized_expression", "text": "(override)", "parent": 213, "children": [227], "start_point": {"row": 44, "column": 59}, "end_point": {"row": 44, "column": 69}}, {"id": 227, "type": "identifier", "text": "override", "parent": 226, "children": [], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 68}}, {"id": 228, "type": "call_expression", "text": "MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override))", "parent": 30, "children": [229, 230], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 48, "column": 25}}, {"id": 229, "type": "identifier", "text": "MOCK_METHOD", "parent": 228, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 13}}, {"id": 230, "type": "argument_list", "text": "(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override))", "parent": 228, "children": [231, 232, 233], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 48, "column": 25}}, {"id": 231, "type": "identifier", "text": "bool", "parent": 230, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 18}}, {"id": 232, "type": "identifier", "text": "EnsureAndReturnSafeFileSize", "parent": 230, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 41}}, {"id": 233, "type": "cast_expression", "text": "(const base::FilePath&, int32_t*),\n (override)", "parent": 230, "children": [234, 238, 242], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 48, "column": 24}}, {"id": 234, "type": "ERROR", "text": "const base::FilePath&,", "parent": 233, "children": [235, 237], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 37}}, {"id": 235, "type": "type_descriptor", "text": "const base", "parent": 234, "children": [236], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 25}}, {"id": 236, "type": "type_identifier", "text": "base", "parent": 235, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 25}}, {"id": 237, "type": "identifier", "text": "FilePath", "parent": 234, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 35}}, {"id": 238, "type": "type_descriptor", "text": "int32_t*", "parent": 233, "children": [239, 240], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 46}}, {"id": 239, "type": "primitive_type", "text": "int32_t", "parent": 238, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 45}}, {"id": 240, "type": "abstract_pointer_declarator", "text": "*", "parent": 238, "children": [241], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 46}}, {"id": 241, "type": "*", "text": "*", "parent": 240, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 46}}, {"id": 242, "type": "parenthesized_expression", "text": "(override)", "parent": 233, "children": [243], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 24}}, {"id": 243, "type": "identifier", "text": "override", "parent": 242, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 23}}, {"id": 244, "type": "call_expression", "text": "MOCK_METHOD(bool, Exists, (const base::FilePath&), (override))", "parent": 30, "children": [245, 246], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 64}}, {"id": 245, "type": "identifier", "text": "MOCK_METHOD", "parent": 244, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 13}}, {"id": 246, "type": "argument_list", "text": "(bool, Exists, (const base::FilePath&), (override))", "parent": 244, "children": [247, 248, 249, 256], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 64}}, {"id": 247, "type": "identifier", "text": "bool", "parent": 246, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 248, "type": "identifier", "text": "Exists", "parent": 246, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 26}}, {"id": 249, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 246, "children": [250, 253], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 51}}, {"id": 250, "type": "ERROR", "text": "const base::", "parent": 249, "children": [251], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 41}}, {"id": 251, "type": "type_descriptor", "text": "const base", "parent": 250, "children": [252], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 39}}, {"id": 252, "type": "type_identifier", "text": "base", "parent": 251, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 39}}, {"id": 253, "type": "binary_expression", "text": "FilePath&", "parent": 249, "children": [254, 255], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 50}}, {"id": 254, "type": "identifier", "text": "FilePath", "parent": 253, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 49}}, {"id": 255, "type": "identifier", "text": "", "parent": 253, "children": [], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 49, "column": 50}}, {"id": 256, "type": "parenthesized_expression", "text": "(override)", "parent": 246, "children": [257], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 63}}, {"id": 257, "type": "identifier", "text": "override", "parent": 256, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 62}}, {"id": 258, "type": "call_expression", "text": "MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override))", "parent": 30, "children": [259, 260], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 73}}, {"id": 259, "type": "identifier", "text": "MOCK_METHOD", "parent": 258, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 13}}, {"id": 260, "type": "argument_list", "text": "(bool, DirectoryExists, (const base::FilePath&), (override))", "parent": 258, "children": [261, 262, 263, 270], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 73}}, {"id": 261, "type": "identifier", "text": "bool", "parent": 260, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 18}}, {"id": 262, "type": "identifier", "text": "DirectoryExists", "parent": 260, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 35}}, {"id": 263, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 260, "children": [264, 267], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 60}}, {"id": 264, "type": "ERROR", "text": "const base::", "parent": 263, "children": [265], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 50}}, {"id": 265, "type": "type_descriptor", "text": "const base", "parent": 264, "children": [266], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 48}}, {"id": 266, "type": "type_identifier", "text": "base", "parent": 265, "children": [], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 48}}, {"id": 267, "type": "binary_expression", "text": "FilePath&", "parent": 263, "children": [268, 269], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 59}}, {"id": 268, "type": "identifier", "text": "FilePath", "parent": 267, "children": [], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 58}}, {"id": 269, "type": "identifier", "text": "", "parent": 267, "children": [], "start_point": {"row": 50, "column": 59}, "end_point": {"row": 50, "column": 59}}, {"id": 270, "type": "parenthesized_expression", "text": "(override)", "parent": 260, "children": [271], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 72}}, {"id": 271, "type": "identifier", "text": "override", "parent": 270, "children": [], "start_point": {"row": 50, "column": 63}, "end_point": {"row": 50, "column": 71}}, {"id": 272, "type": "call_expression", "text": "MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override))", "parent": 30, "children": [273, 274], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 67}}, {"id": 273, "type": "identifier", "text": "MOCK_METHOD", "parent": 272, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 13}}, {"id": 274, "type": "argument_list", "text": "(bool, CreateDir, (const base::FilePath&), (override))", "parent": 272, "children": [275, 276, 277, 284], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 67}}, {"id": 275, "type": "identifier", "text": "bool", "parent": 274, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 18}}, {"id": 276, "type": "identifier", "text": "CreateDir", "parent": 274, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 29}}, {"id": 277, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 274, "children": [278, 281], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 54}}, {"id": 278, "type": "ERROR", "text": "const base::", "parent": 277, "children": [279], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 44}}, {"id": 279, "type": "type_descriptor", "text": "const base", "parent": 278, "children": [280], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 42}}, {"id": 280, "type": "type_identifier", "text": "base", "parent": 279, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 42}}, {"id": 281, "type": "binary_expression", "text": "FilePath&", "parent": 277, "children": [282, 283], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 53}}, {"id": 282, "type": "identifier", "text": "FilePath", "parent": 281, "children": [], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 52}}, {"id": 283, "type": "identifier", "text": "", "parent": 281, "children": [], "start_point": {"row": 51, "column": 53}, "end_point": {"row": 51, "column": 53}}, {"id": 284, "type": "parenthesized_expression", "text": "(override)", "parent": 274, "children": [285], "start_point": {"row": 51, "column": 56}, "end_point": {"row": 51, "column": 66}}, {"id": 285, "type": "identifier", "text": "override", "parent": 284, "children": [], "start_point": {"row": 51, "column": 57}, "end_point": {"row": 51, "column": 65}}, {"id": 286, "type": "call_expression", "text": "MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override))", "parent": 30, "children": [287, 288], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 55, "column": 25}}, {"id": 287, "type": "identifier", "text": "MOCK_METHOD", "parent": 286, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 13}}, {"id": 288, "type": "argument_list", "text": "(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override))", "parent": 286, "children": [289, 290, 291, 312], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 55, "column": 25}}, {"id": 289, "type": "identifier", "text": "bool", "parent": 288, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 18}}, {"id": 290, "type": "identifier", "text": "EnumerateFiles", "parent": 288, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 28}}, {"id": 291, "type": "parenthesized_expression", "text": "(const base::FilePath&, int, std::vector<base::FilePath>*)", "parent": 288, "children": [292, 306], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 72}}, {"id": 292, "type": "ERROR", "text": "const base::FilePath&, int, std::vector<base::", "parent": 291, "children": [293, 295, 302], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 61}}, {"id": 293, "type": "type_descriptor", "text": "const base", "parent": 292, "children": [294], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 25}}, {"id": 294, "type": "type_identifier", "text": "base", "parent": 293, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 25}}, {"id": 295, "type": "comma_expression", "text": "FilePath&, int, std", "parent": 292, "children": [296, 299], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 46}}, {"id": 296, "type": "binary_expression", "text": "FilePath&", "parent": 295, "children": [297, 298], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 36}}, {"id": 297, "type": "identifier", "text": "FilePath", "parent": 296, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 35}}, {"id": 298, "type": "identifier", "text": "", "parent": 296, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 36}}, {"id": 299, "type": "comma_expression", "text": "int, std", "parent": 295, "children": [300, 301], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 46}}, {"id": 300, "type": "identifier", "text": "int", "parent": 299, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 41}}, {"id": 301, "type": "identifier", "text": "std", "parent": 299, "children": [], "start_point": {"row": 54, "column": 43}, "end_point": {"row": 54, "column": 46}}, {"id": 302, "type": "binary_expression", "text": "vector<base", "parent": 292, "children": [303, 304, 305], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 59}}, {"id": 303, "type": "identifier", "text": "vector", "parent": 302, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 54}}, {"id": 304, "type": "<", "text": "<", "parent": 302, "children": [], "start_point": {"row": 54, "column": 54}, "end_point": {"row": 54, "column": 55}}, {"id": 305, "type": "identifier", "text": "base", "parent": 302, "children": [], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 59}}, {"id": 306, "type": "binary_expression", "text": "FilePath>*", "parent": 291, "children": [307, 308, 309], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 71}}, {"id": 307, "type": "identifier", "text": "FilePath", "parent": 306, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 69}}, {"id": 308, "type": ">", "text": ">", "parent": 306, "children": [], "start_point": {"row": 54, "column": 69}, "end_point": {"row": 54, "column": 70}}, {"id": 309, "type": "pointer_expression", "text": "*", "parent": 306, "children": [310, 311], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 311, "type": "identifier", "text": "", "parent": 309, "children": [], "start_point": {"row": 54, "column": 71}, "end_point": {"row": 54, "column": 71}}, {"id": 312, "type": "parenthesized_expression", "text": "(override)", "parent": 288, "children": [313], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 24}}, {"id": 313, "type": "identifier", "text": "override", "parent": 312, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 23}}, {"id": 314, "type": "call_expression", "text": "MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override))", "parent": 30, "children": [315, 316], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 59, "column": 25}}, {"id": 315, "type": "identifier", "text": "MOCK_METHOD", "parent": 314, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 13}}, {"id": 316, "type": "argument_list", "text": "(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override))", "parent": 314, "children": [317, 318, 319], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 59, "column": 25}}, {"id": 317, "type": "identifier", "text": "bool", "parent": 316, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 18}}, {"id": 318, "type": "identifier", "text": "GetUniqueFilenameInWriteOnlyTempDir", "parent": 316, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 49}}, {"id": 319, "type": "cast_expression", "text": "(base::FilePath*),\n (override)", "parent": 316, "children": [320, 322, 326], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 59, "column": 24}}, {"id": 320, "type": "ERROR", "text": "base::", "parent": 319, "children": [321], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 21}}, {"id": 321, "type": "identifier", "text": "base", "parent": 320, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 322, "type": "type_descriptor", "text": "FilePath*", "parent": 319, "children": [323, 324], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 30}}, {"id": 323, "type": "type_identifier", "text": "FilePath", "parent": 322, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 29}}, {"id": 324, "type": "abstract_pointer_declarator", "text": "*", "parent": 322, "children": [325], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 30}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 30}}, {"id": 326, "type": "parenthesized_expression", "text": "(override)", "parent": 319, "children": [327], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 24}}, {"id": 327, "type": "identifier", "text": "override", "parent": 326, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 23}}, {"id": 328, "type": "call_expression", "text": "MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override))", "parent": 30, "children": [329, 330], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 68}}, {"id": 329, "type": "identifier", "text": "MOCK_METHOD", "parent": 328, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 13}}, {"id": 330, "type": "argument_list", "text": "(bool, RemoveFile, (const base::FilePath&), (override))", "parent": 328, "children": [331, 332, 333, 340], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 68}}, {"id": 331, "type": "identifier", "text": "bool", "parent": 330, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 18}}, {"id": 332, "type": "identifier", "text": "RemoveFile", "parent": 330, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 30}}, {"id": 333, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 330, "children": [334, 337], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 55}}, {"id": 334, "type": "ERROR", "text": "const base::", "parent": 333, "children": [335], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 45}}, {"id": 335, "type": "type_descriptor", "text": "const base", "parent": 334, "children": [336], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 43}}, {"id": 336, "type": "type_identifier", "text": "base", "parent": 335, "children": [], "start_point": {"row": 60, "column": 39}, "end_point": {"row": 60, "column": 43}}, {"id": 337, "type": "binary_expression", "text": "FilePath&", "parent": 333, "children": [338, 339], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 54}}, {"id": 338, "type": "identifier", "text": "FilePath", "parent": 337, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 53}}, {"id": 339, "type": "identifier", "text": "", "parent": 337, "children": [], "start_point": {"row": 60, "column": 54}, "end_point": {"row": 60, "column": 54}}, {"id": 340, "type": "parenthesized_expression", "text": "(override)", "parent": 330, "children": [341], "start_point": {"row": 60, "column": 57}, "end_point": {"row": 60, "column": 67}}, {"id": 341, "type": "identifier", "text": "override", "parent": 340, "children": [], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 66}}, {"id": 342, "type": "call_expression", "text": "MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override))", "parent": 30, "children": [343, 344], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 64, "column": 25}}, {"id": 343, "type": "identifier", "text": "MOCK_METHOD", "parent": 342, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 13}}, {"id": 344, "type": "argument_list", "text": "(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override))", "parent": 342, "children": [345, 346, 347, 357], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 64, "column": 25}}, {"id": 345, "type": "identifier", "text": "bool", "parent": 344, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 18}}, {"id": 346, "type": "identifier", "text": "AtomicFileWrite", "parent": 344, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 29}}, {"id": 347, "type": "parenthesized_expression", "text": "(const base::FilePath&, const std::string&)", "parent": 344, "children": [348, 354], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 57}}, {"id": 348, "type": "ERROR", "text": "const base::FilePath&, const std::", "parent": 347, "children": [349, 351, 352], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 49}}, {"id": 349, "type": "type_descriptor", "text": "const base", "parent": 348, "children": [350], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 25}}, {"id": 350, "type": "type_identifier", "text": "base", "parent": 349, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 25}}, {"id": 351, "type": "identifier", "text": "FilePath", "parent": 348, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 35}}, {"id": 352, "type": "type_descriptor", "text": "const std", "parent": 348, "children": [353], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 47}}, {"id": 353, "type": "type_identifier", "text": "std", "parent": 352, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 47}}, {"id": 354, "type": "binary_expression", "text": "string&", "parent": 347, "children": [355, 356], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 56}}, {"id": 355, "type": "identifier", "text": "string", "parent": 354, "children": [], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 55}}, {"id": 356, "type": "identifier", "text": "", "parent": 354, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 56}}, {"id": 357, "type": "parenthesized_expression", "text": "(override)", "parent": 344, "children": [358], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 24}}, {"id": 358, "type": "identifier", "text": "override", "parent": 357, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 23}}, {"id": 359, "type": "call_expression", "text": "MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override))", "parent": 30, "children": [360, 361], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 68, "column": 25}}, {"id": 360, "type": "identifier", "text": "MOCK_METHOD", "parent": 359, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 13}}, {"id": 361, "type": "argument_list", "text": "(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override))", "parent": 359, "children": [362, 363, 364, 371], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 68, "column": 25}}, {"id": 362, "type": "identifier", "text": "int64_t", "parent": 361, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 21}}, {"id": 363, "type": "identifier", "text": "AmountOfFreeDiskSpace", "parent": 361, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 35}}, {"id": 364, "type": "parenthesized_expression", "text": "(const base::FilePath&)", "parent": 361, "children": [365, 368], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 37}}, {"id": 365, "type": "ERROR", "text": "const base::", "parent": 364, "children": [366], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 27}}, {"id": 366, "type": "type_descriptor", "text": "const base", "parent": 365, "children": [367], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 25}}, {"id": 367, "type": "type_identifier", "text": "base", "parent": 366, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 25}}, {"id": 368, "type": "binary_expression", "text": "FilePath&", "parent": 364, "children": [369, 370], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 36}}, {"id": 369, "type": "identifier", "text": "FilePath", "parent": 368, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 35}}, {"id": 370, "type": "identifier", "text": "", "parent": 368, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 36}}, {"id": 371, "type": "parenthesized_expression", "text": "(override)", "parent": 361, "children": [372], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 24}}, {"id": 372, "type": "identifier", "text": "override", "parent": 371, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 23}}, {"id": 373, "type": "call_expression", "text": "MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override))", "parent": 30, "children": [374, 375], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 72, "column": 25}}, {"id": 374, "type": "identifier", "text": "MOCK_METHOD", "parent": 373, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 13}}, {"id": 375, "type": "argument_list", "text": "(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override))", "parent": 373, "children": [376, 377, 378, 395], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 72, "column": 25}}, {"id": 376, "type": "identifier", "text": "bool", "parent": 375, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 377, "type": "identifier", "text": "GetGidAndGroups", "parent": 375, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 29}}, {"id": 378, "type": "parenthesized_expression", "text": "(uid_t, gid_t*, std::vector<gid_t>*)", "parent": 375, "children": [379, 386], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 50}}, {"id": 379, "type": "ERROR", "text": "uid_t, gid_t*, std::", "parent": 378, "children": [380], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 35}}, {"id": 380, "type": "comma_expression", "text": "uid_t, gid_t*, std", "parent": 379, "children": [381, 382], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 33}}, {"id": 381, "type": "identifier", "text": "uid_t", "parent": 380, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 20}}, {"id": 382, "type": "binary_expression", "text": "gid_t*, std", "parent": 380, "children": [383, 384, 385], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 33}}, {"id": 383, "type": "identifier", "text": "gid_t", "parent": 382, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 27}}, {"id": 384, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 28}}, {"id": 385, "type": "identifier", "text": "std", "parent": 382, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 33}}, {"id": 386, "type": "binary_expression", "text": "vector<gid_t>*", "parent": 378, "children": [387, 391, 392], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 49}}, {"id": 387, "type": "binary_expression", "text": "vector<gid_t", "parent": 386, "children": [388, 389, 390], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 47}}, {"id": 388, "type": "identifier", "text": "vector", "parent": 387, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 41}}, {"id": 389, "type": "<", "text": "<", "parent": 387, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 42}}, {"id": 390, "type": "identifier", "text": "gid_t", "parent": 387, "children": [], "start_point": {"row": 71, "column": 42}, "end_point": {"row": 71, "column": 47}}, {"id": 391, "type": ">", "text": ">", "parent": 386, "children": [], "start_point": {"row": 71, "column": 47}, "end_point": {"row": 71, "column": 48}}, {"id": 392, "type": "pointer_expression", "text": "*", "parent": 386, "children": [393, 394], "start_point": {"row": 71, "column": 48}, "end_point": {"row": 71, "column": 49}}, {"id": 393, "type": "*", "text": "*", "parent": 392, "children": [], "start_point": {"row": 71, "column": 48}, "end_point": {"row": 71, "column": 49}}, {"id": 394, "type": "identifier", "text": "", "parent": 392, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 49}}, {"id": 395, "type": "parenthesized_expression", "text": "(override)", "parent": 375, "children": [396], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 24}}, {"id": 396, "type": "identifier", "text": "override", "parent": 395, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 23}}, {"id": 397, "type": "call_expression", "text": "MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override))", "parent": 30, "children": [398, 399], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 77, "column": 25}}, {"id": 398, "type": "identifier", "text": "MOCK_METHOD", "parent": 397, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 13}}, {"id": 399, "type": "argument_list", "text": "(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override))", "parent": 397, "children": [400, 401, 402], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 77, "column": 25}}, {"id": 400, "type": "identifier", "text": "bool", "parent": 399, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 18}}, {"id": 401, "type": "identifier", "text": "ReadFileToString", "parent": 399, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 30}}, {"id": 402, "type": "cast_expression", "text": "(const base::FilePath&, std::string*),\n (override)", "parent": 399, "children": [403, 409, 413], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 77, "column": 24}}, {"id": 403, "type": "ERROR", "text": "const base::FilePath&, std::", "parent": 402, "children": [404, 406], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 43}}, {"id": 404, "type": "type_descriptor", "text": "const base", "parent": 403, "children": [405], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 25}}, {"id": 405, "type": "type_identifier", "text": "base", "parent": 404, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 25}}, {"id": 406, "type": "binary_expression", "text": "FilePath&, std", "parent": 403, "children": [407, 408], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 41}}, {"id": 407, "type": "identifier", "text": "FilePath", "parent": 406, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 35}}, {"id": 408, "type": "identifier", "text": "std", "parent": 406, "children": [], "start_point": {"row": 76, "column": 38}, "end_point": {"row": 76, "column": 41}}, {"id": 409, "type": "type_descriptor", "text": "string*", "parent": 402, "children": [410, 411], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 50}}, {"id": 410, "type": "type_identifier", "text": "string", "parent": 409, "children": [], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 49}}, {"id": 411, "type": "abstract_pointer_declarator", "text": "*", "parent": 409, "children": [412], "start_point": {"row": 76, "column": 49}, "end_point": {"row": 76, "column": 50}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 76, "column": 49}, "end_point": {"row": 76, "column": 50}}, {"id": 413, "type": "parenthesized_expression", "text": "(override)", "parent": 402, "children": [414], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 24}}, {"id": 414, "type": "identifier", "text": "override", "parent": 413, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 23}}, {"id": 415, "type": "call_expression", "text": "MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override))", "parent": 30, "children": [416, 417], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 81, "column": 25}}, {"id": 416, "type": "identifier", "text": "MOCK_METHOD", "parent": 415, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 13}}, {"id": 417, "type": "argument_list", "text": "(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override))", "parent": 415, "children": [418, 419, 420, 430], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 81, "column": 25}}, {"id": 418, "type": "identifier", "text": "bool", "parent": 417, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 18}}, {"id": 419, "type": "identifier", "text": "WriteStringToFile", "parent": 417, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 31}}, {"id": 420, "type": "parenthesized_expression", "text": "(const base::FilePath&, const std::string&)", "parent": 417, "children": [421, 427], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 57}}, {"id": 421, "type": "ERROR", "text": "const base::FilePath&, const std::", "parent": 420, "children": [422, 424, 425], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 49}}, {"id": 422, "type": "type_descriptor", "text": "const base", "parent": 421, "children": [423], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 25}}, {"id": 423, "type": "type_identifier", "text": "base", "parent": 422, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 25}}, {"id": 424, "type": "identifier", "text": "FilePath", "parent": 421, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 35}}, {"id": 425, "type": "type_descriptor", "text": "const std", "parent": 421, "children": [426], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 47}}, {"id": 426, "type": "type_identifier", "text": "std", "parent": 425, "children": [], "start_point": {"row": 80, "column": 44}, "end_point": {"row": 80, "column": 47}}, {"id": 427, "type": "binary_expression", "text": "string&", "parent": 420, "children": [428, 429], "start_point": {"row": 80, "column": 49}, "end_point": {"row": 80, "column": 56}}, {"id": 428, "type": "identifier", "text": "string", "parent": 427, "children": [], "start_point": {"row": 80, "column": 49}, "end_point": {"row": 80, "column": 55}}, {"id": 429, "type": "identifier", "text": "", "parent": 427, "children": [], "start_point": {"row": 80, "column": 56}, "end_point": {"row": 80, "column": 56}}, {"id": 430, "type": "parenthesized_expression", "text": "(override)", "parent": 417, "children": [431], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 24}}, {"id": 431, "type": "identifier", "text": "override", "parent": 430, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 23}}, {"id": 432, "type": "call_expression", "text": "MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override))", "parent": 30, "children": [433, 434], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 86, "column": 25}}, {"id": 433, "type": "identifier", "text": "MOCK_METHOD", "parent": 432, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 13}}, {"id": 434, "type": "argument_list", "text": "(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override))", "parent": 432, "children": [435, 436, 437, 450], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 86, "column": 25}}, {"id": 435, "type": "identifier", "text": "bool", "parent": 434, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 18}}, {"id": 436, "type": "identifier", "text": "ChangeBlockedSignals", "parent": 434, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 34}}, {"id": 437, "type": "parenthesized_expression", "text": "(int, const std::vector<int>&)", "parent": 434, "children": [438, 443], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 44}}, {"id": 438, "type": "ERROR", "text": "int, const std::", "parent": 437, "children": [439, 441], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 31}}, {"id": 439, "type": "type_descriptor", "text": "int", "parent": 438, "children": [440], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 18}}, {"id": 440, "type": "primitive_type", "text": "int", "parent": 439, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 18}}, {"id": 441, "type": "type_descriptor", "text": "const std", "parent": 438, "children": [442], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 29}}, {"id": 442, "type": "type_identifier", "text": "std", "parent": 441, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 29}}, {"id": 443, "type": "binary_expression", "text": "vector<int>&", "parent": 437, "children": [444, 448], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 43}}, {"id": 444, "type": "binary_expression", "text": "vector<int", "parent": 443, "children": [445, 446, 447], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 41}}, {"id": 445, "type": "identifier", "text": "vector", "parent": 444, "children": [], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 37}}, {"id": 446, "type": "<", "text": "<", "parent": 444, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 38}}, {"id": 447, "type": "identifier", "text": "int", "parent": 444, "children": [], "start_point": {"row": 85, "column": 38}, "end_point": {"row": 85, "column": 41}}, {"id": 448, "type": ">", "text": ">", "parent": 443, "children": [], "start_point": {"row": 85, "column": 41}, "end_point": {"row": 85, "column": 42}}, {"id": 449, "type": "identifier", "text": "", "parent": 443, "children": [], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 43}}, {"id": 450, "type": "parenthesized_expression", "text": "(override)", "parent": 434, "children": [451], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 24}}, {"id": 451, "type": "identifier", "text": "override", "parent": 450, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 23}}, {"id": 452, "type": "call_expression", "text": "MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override))", "parent": 30, "children": [453, 454], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 91, "column": 25}}, {"id": 453, "type": "identifier", "text": "MOCK_METHOD", "parent": 452, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 13}}, {"id": 454, "type": "argument_list", "text": "(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override))", "parent": 452, "children": [455, 456, 457], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 91, "column": 25}}, {"id": 455, "type": "identifier", "text": "bool", "parent": 454, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 18}}, {"id": 456, "type": "identifier", "text": "LaunchAndWait", "parent": 454, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 27}}, {"id": 457, "type": "cast_expression", "text": "(const std::vector<std::string>&, int*),\n (override)", "parent": 454, "children": [458, 467, 471], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 91, "column": 24}}, {"id": 458, "type": "ERROR", "text": "const std::vector<std::string>&,", "parent": 457, "children": [459, 461, 465, 466], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 47}}, {"id": 459, "type": "type_descriptor", "text": "const std", "parent": 458, "children": [460], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 24}}, {"id": 460, "type": "type_identifier", "text": "std", "parent": 459, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 24}}, {"id": 461, "type": "binary_expression", "text": "vector<std", "parent": 458, "children": [462, 463, 464], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 36}}, {"id": 462, "type": "identifier", "text": "vector", "parent": 461, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 32}}, {"id": 463, "type": "<", "text": "<", "parent": 461, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 33}}, {"id": 464, "type": "identifier", "text": "std", "parent": 461, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 36}}, {"id": 465, "type": "identifier", "text": "string", "parent": 458, "children": [], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 44}}, {"id": 466, "type": ">", "text": ">", "parent": 458, "children": [], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 45}}, {"id": 467, "type": "type_descriptor", "text": "int*", "parent": 457, "children": [468, 469], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 52}}, {"id": 468, "type": "primitive_type", "text": "int", "parent": 467, "children": [], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 51}}, {"id": 469, "type": "abstract_pointer_declarator", "text": "*", "parent": 467, "children": [470], "start_point": {"row": 90, "column": 51}, "end_point": {"row": 90, "column": 52}}, {"id": 470, "type": "*", "text": "*", "parent": 469, "children": [], "start_point": {"row": 90, "column": 51}, "end_point": {"row": 90, "column": 52}}, {"id": 471, "type": "parenthesized_expression", "text": "(override)", "parent": 457, "children": [472], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 24}}, {"id": 472, "type": "identifier", "text": "override", "parent": 471, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 23}}, {"id": 473, "type": "call_expression", "text": "MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override))", "parent": 30, "children": [474, 475], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 98, "column": 25}}, {"id": 474, "type": "identifier", "text": "MOCK_METHOD", "parent": 473, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 13}}, {"id": 475, "type": "argument_list", "text": "(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override))", "parent": 473, "children": [476, 477, 478, 506], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 98, "column": 25}}, {"id": 476, "type": "identifier", "text": "bool", "parent": 475, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 18}}, {"id": 477, "type": "identifier", "text": "RunInMinijail", "parent": 475, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 27}}, {"id": 478, "type": "parenthesized_expression", "text": "(const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*)", "parent": 475, "children": [479, 499, 504], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 97, "column": 22}}, {"id": 479, "type": "ERROR", "text": "const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::", "parent": 478, "children": [480, 482, 491, 492, 493, 495], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 96, "column": 38}}, {"id": 480, "type": "type_descriptor", "text": "const ScopedMinijail", "parent": 479, "children": [481], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 35}}, {"id": 481, "type": "type_identifier", "text": "ScopedMinijail", "parent": 480, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 35}}, {"id": 482, "type": "comma_expression", "text": "& jail,\n const std::vector<std", "parent": 479, "children": [483, 485, 487], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 95, "column": 36}}, {"id": 483, "type": "pointer_expression", "text": "& jail", "parent": 482, "children": [484], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 41}}, {"id": 484, "type": "identifier", "text": "jail", "parent": 483, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 41}}, {"id": 485, "type": "ERROR", "text": "const std::", "parent": 482, "children": [486], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 26}}, {"id": 486, "type": "identifier", "text": "std", "parent": 485, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 24}}, {"id": 487, "type": "binary_expression", "text": "vector<std", "parent": 482, "children": [488, 489, 490], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 36}}, {"id": 488, "type": "identifier", "text": "vector", "parent": 487, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 32}}, {"id": 489, "type": "<", "text": "<", "parent": 487, "children": [], "start_point": {"row": 95, "column": 32}, "end_point": {"row": 95, "column": 33}}, {"id": 490, "type": "identifier", "text": "std", "parent": 487, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 36}}, {"id": 491, "type": "identifier", "text": "string", "parent": 479, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 44}}, {"id": 492, "type": ">", "text": ">", "parent": 479, "children": [], "start_point": {"row": 95, "column": 44}, "end_point": {"row": 95, "column": 45}}, {"id": 493, "type": "type_descriptor", "text": "const std", "parent": 479, "children": [494], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 24}}, {"id": 494, "type": "type_identifier", "text": "std", "parent": 493, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 24}}, {"id": 495, "type": "binary_expression", "text": "vector<std", "parent": 479, "children": [496, 497, 498], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 36}}, {"id": 496, "type": "identifier", "text": "vector", "parent": 495, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 32}}, {"id": 497, "type": "<", "text": "<", "parent": 495, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 33}}, {"id": 498, "type": "identifier", "text": "std", "parent": 495, "children": [], "start_point": {"row": 96, "column": 33}, "end_point": {"row": 96, "column": 36}}, {"id": 499, "type": "binary_expression", "text": "string>&,\n pid_t", "parent": 478, "children": [500, 501, 502], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 97, "column": 20}}, {"id": 500, "type": "identifier", "text": "string", "parent": 499, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 44}}, {"id": 501, "type": ">", "text": ">", "parent": 499, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 45}}, {"id": 502, "type": "pointer_expression", "text": "&,\n pid_t", "parent": 499, "children": [503], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 97, "column": 20}}, {"id": 503, "type": "identifier", "text": "pid_t", "parent": 502, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 20}}, {"id": 504, "type": "ERROR", "text": "*", "parent": 478, "children": [505], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 505, "type": "*", "text": "*", "parent": 504, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 506, "type": "parenthesized_expression", "text": "(override)", "parent": 475, "children": [507], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 24}}, {"id": 507, "type": "identifier", "text": "override", "parent": 506, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 23}}, {"id": 508, "type": "labeled_statement", "text": "private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);", "parent": 30, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 101, "column": 44}}, {"id": 509, "type": "call_expression", "text": "DISALLOW_COPY_AND_ASSIGN(MockSystemUtils)", "parent": 508, "children": [510, 511], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 43}}, {"id": 510, "type": "identifier", "text": "DISALLOW_COPY_AND_ASSIGN", "parent": 509, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 26}}, {"id": 511, "type": "argument_list", "text": "(MockSystemUtils)", "parent": 509, "children": [512], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 43}}, {"id": 512, "type": "identifier", "text": "MockSystemUtils", "parent": 511, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 42}}, {"id": 513, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 6}}]}, "node_categories": {"declarations": {"functions": [27, 30], "variables": [], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [35, 38, 40, 45, 50, 51, 53, 56, 58, 63, 68, 70, 75, 77, 79, 84, 87, 89, 94, 98, 101, 103, 108, 110, 112, 117, 132, 134, 139, 141, 143, 148, 152, 156, 159, 165, 167, 172, 174, 176, 181, 183, 185, 190, 191, 196, 198, 203, 204, 209, 211, 216, 218, 221, 226, 228, 233, 242, 244, 249, 253, 256, 258, 263, 267, 270, 272, 277, 281, 284, 286, 291, 295, 296, 299, 302, 306, 309, 312, 314, 319, 326, 328, 333, 337, 340, 342, 347, 354, 357, 359, 364, 368, 371, 373, 378, 380, 382, 386, 387, 392, 395, 397, 402, 406, 413, 415, 420, 427, 430, 432, 437, 443, 444, 450, 452, 457, 461, 471, 473, 478, 482, 483, 487, 495, 499, 502, 506, 509], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 28, 29, 31, 33, 36, 41, 44, 46, 48, 49, 52, 54, 55, 57, 59, 61, 62, 65, 69, 71, 73, 74, 76, 78, 80, 82, 83, 88, 90, 92, 93, 97, 99, 100, 102, 104, 106, 107, 109, 111, 113, 115, 116, 120, 121, 133, 135, 137, 138, 140, 142, 144, 146, 147, 151, 153, 155, 157, 160, 162, 166, 168, 170, 171, 173, 175, 177, 179, 180, 182, 184, 186, 188, 189, 192, 193, 195, 197, 199, 201, 202, 205, 206, 208, 210, 212, 214, 215, 219, 220, 222, 223, 227, 229, 231, 232, 236, 237, 243, 245, 247, 248, 252, 254, 255, 257, 259, 261, 262, 266, 268, 269, 271, 273, 275, 276, 280, 282, 283, 285, 287, 289, 290, 294, 297, 298, 300, 301, 303, 305, 307, 311, 313, 315, 317, 318, 321, 323, 327, 329, 331, 332, 336, 338, 339, 341, 343, 345, 346, 350, 351, 353, 355, 356, 358, 360, 362, 363, 367, 369, 370, 372, 374, 376, 377, 381, 383, 385, 388, 390, 394, 396, 398, 400, 401, 405, 407, 408, 410, 414, 416, 418, 419, 423, 424, 426, 428, 429, 431, 433, 435, 436, 442, 445, 447, 449, 451, 453, 455, 456, 460, 462, 464, 465, 472, 474, 476, 477, 481, 484, 486, 488, 490, 491, 494, 496, 498, 500, 503, 507, 510, 512, 513], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "MockSystemUtils", "text_snippet": "namespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils()"}, {"node_id": 30, "universal_type": "function", "name": "MockSystemUtils", "text_snippet": "class MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() over"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <unistd.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <base/macros.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <gmock/gmock.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"login_manager/system_utils.h\"\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n#define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n\n#include <stdint.h>\n#include <unistd.h>\n\n#include <string>\n#include <vector>\n\n#include <base/macros.h>\n#include <gmock/gmock.h>\n\n#include \"login_manager/system_utils.h\"\n\nnamespace login_manager {\n\nclass MockSystemUtils : public SystemUtils {\n public:\n MockSystemUtils();\n ~MockSystemUtils() override;\n\n MOCK_METHOD(int, kill, (pid_t, uid_t, int), (override));\n MOCK_METHOD(time_t, time, (time_t*), (override)); // NOLINT\n MOCK_METHOD(pid_t, fork, (), (override));\n MOCK_METHOD(int, close, (int), (override));\n MOCK_METHOD(int, chdir, (const base::FilePath&), (override));\n MOCK_METHOD(pid_t, setsid, (), (override));\n MOCK_METHOD(int,\n execve,\n (const base::FilePath&, const char* const[], const char* const[]),\n (override));\n MOCK_METHOD(bool, EnterNewMountNamespace, (), (override));\n MOCK_METHOD(bool,\n GetAppOutput,\n (const std::vector<std::string>&, std::string*),\n (override));\n MOCK_METHOD(DevModeState, GetDevModeState, (), (override));\n MOCK_METHOD(VmState, GetVmState, (), (override));\n MOCK_METHOD(bool, ProcessGroupIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(bool, ProcessIsGone, (pid_t, base::TimeDelta), (override));\n MOCK_METHOD(pid_t, Wait, (pid_t, base::TimeDelta, int*), (override));\n MOCK_METHOD(bool,\n EnsureAndReturnSafeFileSize,\n (const base::FilePath&, int32_t*),\n (override));\n MOCK_METHOD(bool, Exists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, DirectoryExists, (const base::FilePath&), (override));\n MOCK_METHOD(bool, CreateDir, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n EnumerateFiles,\n (const base::FilePath&, int, std::vector<base::FilePath>*),\n (override));\n MOCK_METHOD(bool,\n GetUniqueFilenameInWriteOnlyTempDir,\n (base::FilePath*),\n (override));\n MOCK_METHOD(bool, RemoveFile, (const base::FilePath&), (override));\n MOCK_METHOD(bool,\n AtomicFileWrite,\n (const base::FilePath&, const std::string&),\n (override));\n MOCK_METHOD(int64_t,\n AmountOfFreeDiskSpace,\n (const base::FilePath&),\n (override));\n MOCK_METHOD(bool,\n GetGidAndGroups,\n (uid_t, gid_t*, std::vector<gid_t>*),\n (override));\n\n MOCK_METHOD(bool,\n ReadFileToString,\n (const base::FilePath&, std::string*),\n (override));\n MOCK_METHOD(bool,\n WriteStringToFile,\n (const base::FilePath&, const std::string&),\n (override));\n\n MOCK_METHOD(bool,\n ChangeBlockedSignals,\n (int, const std::vector<int>&),\n (override));\n\n MOCK_METHOD(bool,\n LaunchAndWait,\n (const std::vector<std::string>&, int*),\n (override));\n MOCK_METHOD(bool,\n RunInMinijail,\n (const ScopedMinijail& jail,\n const std::vector<std::string>&,\n const std::vector<std::string>&,\n pid_t*),\n (override));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockSystemUtils);\n};\n\n} // namespace login_manager\n\n#endif // LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_\n"}
173
c
/* * * * Copyright (C) 2005 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/string.h> #include "pvrusb2-debugifc.h" #include "pvrusb2-hdw.h" #include "pvrusb2-debug.h" struct debugifc_mask_item { const char *name; unsigned long msk; }; static unsigned int debugifc_count_whitespace(const char *buf, unsigned int count) { unsigned int scnt; char ch; for (scnt = 0; scnt < count; scnt++) { ch = buf[scnt]; if (ch == ' ') continue; if (ch == '\t') continue; if (ch == '\n') continue; break; } return scnt; } static unsigned int debugifc_count_nonwhitespace(const char *buf, unsigned int count) { unsigned int scnt; char ch; for (scnt = 0; scnt < count; scnt++) { ch = buf[scnt]; if (ch == ' ') break; if (ch == '\t') break; if (ch == '\n') break; } return scnt; } static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, const char **wstrPtr, unsigned int *wlenPtr) { const char *wptr; unsigned int consume_cnt = 0; unsigned int wlen; unsigned int scnt; wptr = NULL; wlen = 0; scnt = debugifc_count_whitespace(buf,count); consume_cnt += scnt; count -= scnt; buf += scnt; if (!count) goto done; scnt = debugifc_count_nonwhitespace(buf,count); if (!scnt) goto done; wptr = buf; wlen = scnt; consume_cnt += scnt; count -= scnt; buf += scnt; done: *wstrPtr = wptr; *wlenPtr = wlen; return consume_cnt; } static int debugifc_parse_unsigned_number(const char *buf,unsigned int count, u32 *num_ptr) { u32 result = 0; int radix = 10; if ((count >= 2) && (buf[0] == '0') && ((buf[1] == 'x') || (buf[1] == 'X'))) { radix = 16; count -= 2; buf += 2; } else if ((count >= 1) && (buf[0] == '0')) { radix = 8; } while (count--) { int val = hex_to_bin(*buf++); if (val < 0 || val >= radix) return -EINVAL; result *= radix; result += val; } *num_ptr = result; return 0; } static int debugifc_match_keyword(const char *buf,unsigned int count, const char *keyword) { unsigned int kl; if (!keyword) return 0; kl = strlen(keyword); if (kl != count) return 0; return !memcmp(buf,keyword,kl); } int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) { int bcnt = 0; int ccnt; ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n", pvr2_hdw_get_desc(hdw)); bcnt += ccnt; acnt -= ccnt; buf += ccnt; ccnt = scnprintf(buf,acnt,"Driver state info:\n"); bcnt += ccnt; acnt -= ccnt; buf += ccnt; ccnt = pvr2_hdw_state_report(hdw,buf,acnt); bcnt += ccnt; acnt -= ccnt; buf += ccnt; return bcnt; } int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, char *buf,unsigned int acnt) { int bcnt = 0; int ccnt; int ret; u32 gpio_dir,gpio_in,gpio_out; struct pvr2_stream_stats stats; struct pvr2_stream *sp; ret = pvr2_hdw_is_hsm(hdw); ccnt = scnprintf(buf,acnt,"USB link speed: %s\n", (ret < 0 ? "FAIL" : (ret ? "high" : "full"))); bcnt += ccnt; acnt -= ccnt; buf += ccnt; gpio_dir = 0; gpio_in = 0; gpio_out = 0; pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); pvr2_hdw_gpio_get_out(hdw,&gpio_out); pvr2_hdw_gpio_get_in(hdw,&gpio_in); ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n", gpio_dir,gpio_in,gpio_out); bcnt += ccnt; acnt -= ccnt; buf += ccnt; ccnt = scnprintf(buf,acnt,"Streaming is %s\n", pvr2_hdw_get_streaming(hdw) ? "on" : "off"); bcnt += ccnt; acnt -= ccnt; buf += ccnt; sp = pvr2_hdw_get_video_stream(hdw); if (sp) { pvr2_stream_get_stats(sp, &stats, 0); ccnt = scnprintf( buf,acnt, "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n", stats.bytes_processed, stats.buffers_in_queue, stats.buffers_in_idle, stats.buffers_in_ready, stats.buffers_processed, stats.buffers_failed); bcnt += ccnt; acnt -= ccnt; buf += ccnt; } return bcnt; } static int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) { const char *wptr; unsigned int wlen; unsigned int scnt; scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (!scnt) return 0; count -= scnt; buf += scnt; if (!wptr) return 0; pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); if (debugifc_match_keyword(wptr,wlen,"reset")) { scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (!scnt) return -EINVAL; count -= scnt; buf += scnt; if (!wptr) return -EINVAL; if (debugifc_match_keyword(wptr,wlen,"cpu")) { pvr2_hdw_cpureset_assert(hdw,!0); pvr2_hdw_cpureset_assert(hdw,0); return 0; } else if (debugifc_match_keyword(wptr,wlen,"bus")) { pvr2_hdw_device_reset(hdw); } else if (debugifc_match_keyword(wptr,wlen,"soft")) { return pvr2_hdw_cmd_powerup(hdw); } else if (debugifc_match_keyword(wptr,wlen,"deep")) { return pvr2_hdw_cmd_deep_reset(hdw); } else if (debugifc_match_keyword(wptr,wlen,"firmware")) { return pvr2_upload_firmware2(hdw); } else if (debugifc_match_keyword(wptr,wlen,"decoder")) { return pvr2_hdw_cmd_decoder_reset(hdw); } else if (debugifc_match_keyword(wptr,wlen,"worker")) { return pvr2_hdw_untrip(hdw); } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) { pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw), NULL, !0); return 0; } return -EINVAL; } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) { scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (!scnt) return -EINVAL; count -= scnt; buf += scnt; if (!wptr) return -EINVAL; if (debugifc_match_keyword(wptr,wlen,"fetch")) { scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (scnt && wptr) { count -= scnt; buf += scnt; if (debugifc_match_keyword(wptr, wlen, "prom")) { pvr2_hdw_cpufw_set_enabled(hdw, 2, !0); } else if (debugifc_match_keyword(wptr, wlen, "ram8k")) { pvr2_hdw_cpufw_set_enabled(hdw, 0, !0); } else if (debugifc_match_keyword(wptr, wlen, "ram16k")) { pvr2_hdw_cpufw_set_enabled(hdw, 1, !0); } else { return -EINVAL; } } pvr2_hdw_cpufw_set_enabled(hdw,0,!0); return 0; } else if (debugifc_match_keyword(wptr,wlen,"done")) { pvr2_hdw_cpufw_set_enabled(hdw,0,0); return 0; } else { return -EINVAL; } } else if (debugifc_match_keyword(wptr,wlen,"gpio")) { int dir_fl = 0; int ret; u32 msk,val; scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (!scnt) return -EINVAL; count -= scnt; buf += scnt; if (!wptr) return -EINVAL; if (debugifc_match_keyword(wptr,wlen,"dir")) { dir_fl = !0; } else if (!debugifc_match_keyword(wptr,wlen,"out")) { return -EINVAL; } scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (!scnt) return -EINVAL; count -= scnt; buf += scnt; if (!wptr) return -EINVAL; ret = debugifc_parse_unsigned_number(wptr,wlen,&msk); if (ret) return ret; scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); if (wptr) { ret = debugifc_parse_unsigned_number(wptr,wlen,&val); if (ret) return ret; } else { val = msk; msk = 0xffffffff; } if (dir_fl) { ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val); } else { ret = pvr2_hdw_gpio_chg_out(hdw,msk,val); } return ret; } pvr2_trace(PVR2_TRACE_DEBUGIFC, "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr); return -EINVAL; } int pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) { unsigned int bcnt = 0; int ret; while (count) { for (bcnt = 0; bcnt < count; bcnt++) { if (buf[bcnt] == '\n') break; } ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt); if (ret < 0) return ret; if (bcnt < count) bcnt++; buf += bcnt; count -= bcnt; } return 0; }
26.91
290
(translation_unit) "/*\n *\n *\n * Copyright (C) 2005 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */\n\n#include <linux/string.h>\n#include "pvrusb2-debugifc.h"\n#include "pvrusb2-hdw.h"\n#include "pvrusb2-debug.h"\n\nstruct debugifc_mask_item {\n const char *name;\n unsigned long msk;\n};\n\n\nstatic unsigned int debugifc_count_whitespace(const char *buf,\n unsigned int count)\n{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') continue;\n if (ch == '\t') continue;\n if (ch == '\n') continue;\n break;\n }\n return scnt;\n}\n\n\nstatic unsigned int debugifc_count_nonwhitespace(const char *buf,\n unsigned int count)\n{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') break;\n if (ch == '\t') break;\n if (ch == '\n') break;\n }\n return scnt;\n}\n\n\nstatic unsigned int debugifc_isolate_word(const char *buf,unsigned int count,\n const char **wstrPtr,\n unsigned int *wlenPtr)\n{\n const char *wptr;\n unsigned int consume_cnt = 0;\n unsigned int wlen;\n unsigned int scnt;\n\n wptr = NULL;\n wlen = 0;\n scnt = debugifc_count_whitespace(buf,count);\n consume_cnt += scnt; count -= scnt; buf += scnt;\n if (!count) goto done;\n\n scnt = debugifc_count_nonwhitespace(buf,count);\n if (!scnt) goto done;\n wptr = buf;\n wlen = scnt;\n consume_cnt += scnt; count -= scnt; buf += scnt;\n\n done:\n *wstrPtr = wptr;\n *wlenPtr = wlen;\n return consume_cnt;\n}\n\n\nstatic int debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n u32 *num_ptr)\n{\n u32 result = 0;\n int radix = 10;\n if ((count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X'))) {\n radix = 16;\n count -= 2;\n buf += 2;\n } else if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }\n\n while (count--) {\n int val = hex_to_bin(*buf++);\n if (val < 0 || val >= radix)\n return -EINVAL;\n result *= radix;\n result += val;\n }\n *num_ptr = result;\n return 0;\n}\n\n\nstatic int debugifc_match_keyword(const char *buf,unsigned int count,\n const char *keyword)\n{\n unsigned int kl;\n if (!keyword) return 0;\n kl = strlen(keyword);\n if (kl != count) return 0;\n return !memcmp(buf,keyword,kl);\n}\n\n\nint pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)\n{\n int bcnt = 0;\n int ccnt;\n ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = scnprintf(buf,acnt,"Driver state info:\n");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = pvr2_hdw_state_report(hdw,buf,acnt);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n return bcnt;\n}\n\n\nint pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n char *buf,unsigned int acnt)\n{\n int bcnt = 0;\n int ccnt;\n int ret;\n u32 gpio_dir,gpio_in,gpio_out;\n struct pvr2_stream_stats stats;\n struct pvr2_stream *sp;\n\n ret = pvr2_hdw_is_hsm(hdw);\n ccnt = scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n gpio_dir = 0; gpio_in = 0; gpio_out = 0;\n pvr2_hdw_gpio_get_dir(hdw,&gpio_dir);\n pvr2_hdw_gpio_get_out(hdw,&gpio_out);\n pvr2_hdw_gpio_get_in(hdw,&gpio_in);\n ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n ccnt = scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\n sp = pvr2_hdw_get_video_stream(hdw);\n if (sp) {\n pvr2_stream_get_stats(sp, &stats, 0);\n ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n }\n\n return bcnt;\n}\n\n\nstatic int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)\n{\n const char *wptr;\n unsigned int wlen;\n unsigned int scnt;\n\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return 0;\n count -= scnt; buf += scnt;\n if (!wptr) return 0;\n\n pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr);\n if (debugifc_match_keyword(wptr,wlen,"reset")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }\n return -EINVAL;\n } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }\n pvr2_trace(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr);\n return -EINVAL;\n}\n\n\nint pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)\n{\n unsigned int bcnt = 0;\n int ret;\n\n while (count) {\n for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }\n\n ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n if (ret < 0) return ret;\n if (bcnt < count) bcnt++;\n buf += bcnt;\n count -= bcnt;\n }\n\n return 0;\n}\n" (comment) "/*\n *\n *\n * Copyright (C) 2005 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */" (preproc_include) "#include <linux/string.h>\n" (#include) "#include" (system_lib_string) "<linux/string.h>" (preproc_include) "#include "pvrusb2-debugifc.h"\n" (#include) "#include" (string_literal) ""pvrusb2-debugifc.h"" (") """ (string_content) "pvrusb2-debugifc.h" (") """ (preproc_include) "#include "pvrusb2-hdw.h"\n" (#include) "#include" (string_literal) ""pvrusb2-hdw.h"" (") """ (string_content) "pvrusb2-hdw.h" (") """ (preproc_include) "#include "pvrusb2-debug.h"\n" (#include) "#include" (string_literal) ""pvrusb2-debug.h"" (") """ (string_content) "pvrusb2-debug.h" (") """ (struct_specifier) "struct debugifc_mask_item {\n const char *name;\n unsigned long msk;\n}" (struct) "struct" (type_identifier) "debugifc_mask_item" (field_declaration_list) "{\n const char *name;\n unsigned long msk;\n}" ({) "{" (field_declaration) "const char *name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "unsigned long msk;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "msk" (;) ";" (}) "}" (;) ";" (function_definition) "static unsigned int debugifc_count_whitespace(const char *buf,\n unsigned int count)\n{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') continue;\n if (ch == '\t') continue;\n if (ch == '\n') continue;\n break;\n }\n return scnt;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "debugifc_count_whitespace(const char *buf,\n unsigned int count)" (identifier) "debugifc_count_whitespace" (parameter_list) "(const char *buf,\n unsigned int count)" (() "(" (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" ()) ")" (compound_statement) "{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') continue;\n if (ch == '\t') continue;\n if (ch == '\n') continue;\n break;\n }\n return scnt;\n}" ({) "{" (declaration) "unsigned int scnt;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "scnt" (;) ";" (declaration) "char ch;" (primitive_type) "char" (identifier) "ch" (;) ";" (for_statement) "for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') continue;\n if (ch == '\t') continue;\n if (ch == '\n') continue;\n break;\n }" (for) "for" (() "(" (assignment_expression) "scnt = 0" (identifier) "scnt" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "scnt < count" (identifier) "scnt" (<) "<" (identifier) "count" (;) ";" (update_expression) "scnt++" (identifier) "scnt" (++) "++" ()) ")" (compound_statement) "{\n ch = buf[scnt];\n if (ch == ' ') continue;\n if (ch == '\t') continue;\n if (ch == '\n') continue;\n break;\n }" ({) "{" (expression_statement) "ch = buf[scnt];" (assignment_expression) "ch = buf[scnt]" (identifier) "ch" (=) "=" (subscript_expression) "buf[scnt]" (identifier) "buf" ([) "[" (identifier) "scnt" (]) "]" (;) ";" (if_statement) "if (ch == ' ') continue;" (if) "if" (parenthesized_expression) "(ch == ' ')" (() "(" (binary_expression) "ch == ' '" (identifier) "ch" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (if_statement) "if (ch == '\t') continue;" (if) "if" (parenthesized_expression) "(ch == '\t')" (() "(" (binary_expression) "ch == '\t'" (identifier) "ch" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (if_statement) "if (ch == '\n') continue;" (if) "if" (parenthesized_expression) "(ch == '\n')" (() "(" (binary_expression) "ch == '\n'" (identifier) "ch" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return scnt;" (return) "return" (identifier) "scnt" (;) ";" (}) "}" (function_definition) "static unsigned int debugifc_count_nonwhitespace(const char *buf,\n unsigned int count)\n{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') break;\n if (ch == '\t') break;\n if (ch == '\n') break;\n }\n return scnt;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "debugifc_count_nonwhitespace(const char *buf,\n unsigned int count)" (identifier) "debugifc_count_nonwhitespace" (parameter_list) "(const char *buf,\n unsigned int count)" (() "(" (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" ()) ")" (compound_statement) "{\n unsigned int scnt;\n char ch;\n\n for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') break;\n if (ch == '\t') break;\n if (ch == '\n') break;\n }\n return scnt;\n}" ({) "{" (declaration) "unsigned int scnt;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "scnt" (;) ";" (declaration) "char ch;" (primitive_type) "char" (identifier) "ch" (;) ";" (for_statement) "for (scnt = 0; scnt < count; scnt++) {\n ch = buf[scnt];\n if (ch == ' ') break;\n if (ch == '\t') break;\n if (ch == '\n') break;\n }" (for) "for" (() "(" (assignment_expression) "scnt = 0" (identifier) "scnt" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "scnt < count" (identifier) "scnt" (<) "<" (identifier) "count" (;) ";" (update_expression) "scnt++" (identifier) "scnt" (++) "++" ()) ")" (compound_statement) "{\n ch = buf[scnt];\n if (ch == ' ') break;\n if (ch == '\t') break;\n if (ch == '\n') break;\n }" ({) "{" (expression_statement) "ch = buf[scnt];" (assignment_expression) "ch = buf[scnt]" (identifier) "ch" (=) "=" (subscript_expression) "buf[scnt]" (identifier) "buf" ([) "[" (identifier) "scnt" (]) "]" (;) ";" (if_statement) "if (ch == ' ') break;" (if) "if" (parenthesized_expression) "(ch == ' ')" (() "(" (binary_expression) "ch == ' '" (identifier) "ch" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (if_statement) "if (ch == '\t') break;" (if) "if" (parenthesized_expression) "(ch == '\t')" (() "(" (binary_expression) "ch == '\t'" (identifier) "ch" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (if_statement) "if (ch == '\n') break;" (if) "if" (parenthesized_expression) "(ch == '\n')" (() "(" (binary_expression) "ch == '\n'" (identifier) "ch" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return scnt;" (return) "return" (identifier) "scnt" (;) ";" (}) "}" (function_definition) "static unsigned int debugifc_isolate_word(const char *buf,unsigned int count,\n const char **wstrPtr,\n unsigned int *wlenPtr)\n{\n const char *wptr;\n unsigned int consume_cnt = 0;\n unsigned int wlen;\n unsigned int scnt;\n\n wptr = NULL;\n wlen = 0;\n scnt = debugifc_count_whitespace(buf,count);\n consume_cnt += scnt; count -= scnt; buf += scnt;\n if (!count) goto done;\n\n scnt = debugifc_count_nonwhitespace(buf,count);\n if (!scnt) goto done;\n wptr = buf;\n wlen = scnt;\n consume_cnt += scnt; count -= scnt; buf += scnt;\n\n done:\n *wstrPtr = wptr;\n *wlenPtr = wlen;\n return consume_cnt;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "debugifc_isolate_word(const char *buf,unsigned int count,\n const char **wstrPtr,\n unsigned int *wlenPtr)" (identifier) "debugifc_isolate_word" (parameter_list) "(const char *buf,unsigned int count,\n const char **wstrPtr,\n unsigned int *wlenPtr)" (() "(" (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "const char **wstrPtr" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "**wstrPtr" (*) "*" (pointer_declarator) "*wstrPtr" (*) "*" (identifier) "wstrPtr" (,) "," (parameter_declaration) "unsigned int *wlenPtr" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (pointer_declarator) "*wlenPtr" (*) "*" (identifier) "wlenPtr" ()) ")" (compound_statement) "{\n const char *wptr;\n unsigned int consume_cnt = 0;\n unsigned int wlen;\n unsigned int scnt;\n\n wptr = NULL;\n wlen = 0;\n scnt = debugifc_count_whitespace(buf,count);\n consume_cnt += scnt; count -= scnt; buf += scnt;\n if (!count) goto done;\n\n scnt = debugifc_count_nonwhitespace(buf,count);\n if (!scnt) goto done;\n wptr = buf;\n wlen = scnt;\n consume_cnt += scnt; count -= scnt; buf += scnt;\n\n done:\n *wstrPtr = wptr;\n *wlenPtr = wlen;\n return consume_cnt;\n}" ({) "{" (declaration) "const char *wptr;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*wptr" (*) "*" (identifier) "wptr" (;) ";" (declaration) "unsigned int consume_cnt = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "consume_cnt = 0" (identifier) "consume_cnt" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned int wlen;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "wlen" (;) ";" (declaration) "unsigned int scnt;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "scnt" (;) ";" (expression_statement) "wptr = NULL;" (assignment_expression) "wptr = NULL" (identifier) "wptr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "wlen = 0;" (assignment_expression) "wlen = 0" (identifier) "wlen" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "scnt = debugifc_count_whitespace(buf,count);" (assignment_expression) "scnt = debugifc_count_whitespace(buf,count)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_count_whitespace(buf,count)" (identifier) "debugifc_count_whitespace" (argument_list) "(buf,count)" (() "(" (identifier) "buf" (,) "," (identifier) "count" ()) ")" (;) ";" (expression_statement) "consume_cnt += scnt;" (assignment_expression) "consume_cnt += scnt" (identifier) "consume_cnt" (+=) "+=" (identifier) "scnt" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!count) goto done;" (if) "if" (parenthesized_expression) "(!count)" (() "(" (unary_expression) "!count" (!) "!" (identifier) "count" ()) ")" (goto_statement) "goto done;" (goto) "goto" (statement_identifier) "done" (;) ";" (expression_statement) "scnt = debugifc_count_nonwhitespace(buf,count);" (assignment_expression) "scnt = debugifc_count_nonwhitespace(buf,count)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_count_nonwhitespace(buf,count)" (identifier) "debugifc_count_nonwhitespace" (argument_list) "(buf,count)" (() "(" (identifier) "buf" (,) "," (identifier) "count" ()) ")" (;) ";" (if_statement) "if (!scnt) goto done;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (goto_statement) "goto done;" (goto) "goto" (statement_identifier) "done" (;) ";" (expression_statement) "wptr = buf;" (assignment_expression) "wptr = buf" (identifier) "wptr" (=) "=" (identifier) "buf" (;) ";" (expression_statement) "wlen = scnt;" (assignment_expression) "wlen = scnt" (identifier) "wlen" (=) "=" (identifier) "scnt" (;) ";" (expression_statement) "consume_cnt += scnt;" (assignment_expression) "consume_cnt += scnt" (identifier) "consume_cnt" (+=) "+=" (identifier) "scnt" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (labeled_statement) "done:\n *wstrPtr = wptr;" (statement_identifier) "done" (:) ":" (expression_statement) "*wstrPtr = wptr;" (assignment_expression) "*wstrPtr = wptr" (pointer_expression) "*wstrPtr" (*) "*" (identifier) "wstrPtr" (=) "=" (identifier) "wptr" (;) ";" (expression_statement) "*wlenPtr = wlen;" (assignment_expression) "*wlenPtr = wlen" (pointer_expression) "*wlenPtr" (*) "*" (identifier) "wlenPtr" (=) "=" (identifier) "wlen" (;) ";" (return_statement) "return consume_cnt;" (return) "return" (identifier) "consume_cnt" (;) ";" (}) "}" (function_definition) "static int debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n u32 *num_ptr)\n{\n u32 result = 0;\n int radix = 10;\n if ((count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X'))) {\n radix = 16;\n count -= 2;\n buf += 2;\n } else if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }\n\n while (count--) {\n int val = hex_to_bin(*buf++);\n if (val < 0 || val >= radix)\n return -EINVAL;\n result *= radix;\n result += val;\n }\n *num_ptr = result;\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n u32 *num_ptr)" (identifier) "debugifc_parse_unsigned_number" (parameter_list) "(const char *buf,unsigned int count,\n u32 *num_ptr)" (() "(" (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "u32 *num_ptr" (type_identifier) "u32" (pointer_declarator) "*num_ptr" (*) "*" (identifier) "num_ptr" ()) ")" (compound_statement) "{\n u32 result = 0;\n int radix = 10;\n if ((count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X'))) {\n radix = 16;\n count -= 2;\n buf += 2;\n } else if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }\n\n while (count--) {\n int val = hex_to_bin(*buf++);\n if (val < 0 || val >= radix)\n return -EINVAL;\n result *= radix;\n result += val;\n }\n *num_ptr = result;\n return 0;\n}" ({) "{" (declaration) "u32 result = 0;" (type_identifier) "u32" (init_declarator) "result = 0" (identifier) "result" (=) "=" (number_literal) "0" (;) ";" (declaration) "int radix = 10;" (primitive_type) "int" (init_declarator) "radix = 10" (identifier) "radix" (=) "=" (number_literal) "10" (;) ";" (if_statement) "if ((count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X'))) {\n radix = 16;\n count -= 2;\n buf += 2;\n } else if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }" (if) "if" (parenthesized_expression) "((count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X')))" (() "(" (binary_expression) "(count >= 2) && (buf[0] == '0') &&\n ((buf[1] == 'x') || (buf[1] == 'X'))" (binary_expression) "(count >= 2) && (buf[0] == '0')" (parenthesized_expression) "(count >= 2)" (() "(" (binary_expression) "count >= 2" (identifier) "count" (>=) ">=" (number_literal) "2" ()) ")" (&&) "&&" (parenthesized_expression) "(buf[0] == '0')" (() "(" (binary_expression) "buf[0] == '0'" (subscript_expression) "buf[0]" (identifier) "buf" ([) "[" (number_literal) "0" (]) "]" (==) "==" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" (&&) "&&" (parenthesized_expression) "((buf[1] == 'x') || (buf[1] == 'X'))" (() "(" (binary_expression) "(buf[1] == 'x') || (buf[1] == 'X')" (parenthesized_expression) "(buf[1] == 'x')" (() "(" (binary_expression) "buf[1] == 'x'" (subscript_expression) "buf[1]" (identifier) "buf" ([) "[" (number_literal) "1" (]) "]" (==) "==" (char_literal) "'x'" (') "'" (character) "x" (') "'" ()) ")" (||) "||" (parenthesized_expression) "(buf[1] == 'X')" (() "(" (binary_expression) "buf[1] == 'X'" (subscript_expression) "buf[1]" (identifier) "buf" ([) "[" (number_literal) "1" (]) "]" (==) "==" (char_literal) "'X'" (') "'" (character) "X" (') "'" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n radix = 16;\n count -= 2;\n buf += 2;\n }" ({) "{" (expression_statement) "radix = 16;" (assignment_expression) "radix = 16" (identifier) "radix" (=) "=" (number_literal) "16" (;) ";" (expression_statement) "count -= 2;" (assignment_expression) "count -= 2" (identifier) "count" (-=) "-=" (number_literal) "2" (;) ";" (expression_statement) "buf += 2;" (assignment_expression) "buf += 2" (identifier) "buf" (+=) "+=" (number_literal) "2" (;) ";" (}) "}" (else_clause) "else if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }" (else) "else" (if_statement) "if ((count >= 1) && (buf[0] == '0')) {\n radix = 8;\n }" (if) "if" (parenthesized_expression) "((count >= 1) && (buf[0] == '0'))" (() "(" (binary_expression) "(count >= 1) && (buf[0] == '0')" (parenthesized_expression) "(count >= 1)" (() "(" (binary_expression) "count >= 1" (identifier) "count" (>=) ">=" (number_literal) "1" ()) ")" (&&) "&&" (parenthesized_expression) "(buf[0] == '0')" (() "(" (binary_expression) "buf[0] == '0'" (subscript_expression) "buf[0]" (identifier) "buf" ([) "[" (number_literal) "0" (]) "]" (==) "==" (char_literal) "'0'" (') "'" (character) "0" (') "'" ()) ")" ()) ")" (compound_statement) "{\n radix = 8;\n }" ({) "{" (expression_statement) "radix = 8;" (assignment_expression) "radix = 8" (identifier) "radix" (=) "=" (number_literal) "8" (;) ";" (}) "}" (while_statement) "while (count--) {\n int val = hex_to_bin(*buf++);\n if (val < 0 || val >= radix)\n return -EINVAL;\n result *= radix;\n result += val;\n }" (while) "while" (parenthesized_expression) "(count--)" (() "(" (update_expression) "count--" (identifier) "count" (--) "--" ()) ")" (compound_statement) "{\n int val = hex_to_bin(*buf++);\n if (val < 0 || val >= radix)\n return -EINVAL;\n result *= radix;\n result += val;\n }" ({) "{" (declaration) "int val = hex_to_bin(*buf++);" (primitive_type) "int" (init_declarator) "val = hex_to_bin(*buf++)" (identifier) "val" (=) "=" (call_expression) "hex_to_bin(*buf++)" (identifier) "hex_to_bin" (argument_list) "(*buf++)" (() "(" (pointer_expression) "*buf++" (*) "*" (update_expression) "buf++" (identifier) "buf" (++) "++" ()) ")" (;) ";" (if_statement) "if (val < 0 || val >= radix)\n return -EINVAL;" (if) "if" (parenthesized_expression) "(val < 0 || val >= radix)" (() "(" (binary_expression) "val < 0 || val >= radix" (binary_expression) "val < 0" (identifier) "val" (<) "<" (number_literal) "0" (||) "||" (binary_expression) "val >= radix" (identifier) "val" (>=) ">=" (identifier) "radix" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "result *= radix;" (assignment_expression) "result *= radix" (identifier) "result" (*=) "*=" (identifier) "radix" (;) ";" (expression_statement) "result += val;" (assignment_expression) "result += val" (identifier) "result" (+=) "+=" (identifier) "val" (;) ";" (}) "}" (expression_statement) "*num_ptr = result;" (assignment_expression) "*num_ptr = result" (pointer_expression) "*num_ptr" (*) "*" (identifier) "num_ptr" (=) "=" (identifier) "result" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int debugifc_match_keyword(const char *buf,unsigned int count,\n const char *keyword)\n{\n unsigned int kl;\n if (!keyword) return 0;\n kl = strlen(keyword);\n if (kl != count) return 0;\n return !memcmp(buf,keyword,kl);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "debugifc_match_keyword(const char *buf,unsigned int count,\n const char *keyword)" (identifier) "debugifc_match_keyword" (parameter_list) "(const char *buf,unsigned int count,\n const char *keyword)" (() "(" (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "const char *keyword" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*keyword" (*) "*" (identifier) "keyword" ()) ")" (compound_statement) "{\n unsigned int kl;\n if (!keyword) return 0;\n kl = strlen(keyword);\n if (kl != count) return 0;\n return !memcmp(buf,keyword,kl);\n}" ({) "{" (declaration) "unsigned int kl;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "kl" (;) ";" (if_statement) "if (!keyword) return 0;" (if) "if" (parenthesized_expression) "(!keyword)" (() "(" (unary_expression) "!keyword" (!) "!" (identifier) "keyword" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "kl = strlen(keyword);" (assignment_expression) "kl = strlen(keyword)" (identifier) "kl" (=) "=" (call_expression) "strlen(keyword)" (identifier) "strlen" (argument_list) "(keyword)" (() "(" (identifier) "keyword" ()) ")" (;) ";" (if_statement) "if (kl != count) return 0;" (if) "if" (parenthesized_expression) "(kl != count)" (() "(" (binary_expression) "kl != count" (identifier) "kl" (!=) "!=" (identifier) "count" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (return_statement) "return !memcmp(buf,keyword,kl);" (return) "return" (unary_expression) "!memcmp(buf,keyword,kl)" (!) "!" (call_expression) "memcmp(buf,keyword,kl)" (identifier) "memcmp" (argument_list) "(buf,keyword,kl)" (() "(" (identifier) "buf" (,) "," (identifier) "keyword" (,) "," (identifier) "kl" ()) ")" (;) ";" (}) "}" (function_definition) "int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)\n{\n int bcnt = 0;\n int ccnt;\n ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = scnprintf(buf,acnt,"Driver state info:\n");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = pvr2_hdw_state_report(hdw,buf,acnt);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n return bcnt;\n}" (primitive_type) "int" (function_declarator) "pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)" (identifier) "pvr2_debugifc_print_info" (parameter_list) "(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)" (() "(" (parameter_declaration) "struct pvr2_hdw *hdw" (struct_specifier) "struct pvr2_hdw" (struct) "struct" (type_identifier) "pvr2_hdw" (pointer_declarator) "*hdw" (*) "*" (identifier) "hdw" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int acnt" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "acnt" ()) ")" (compound_statement) "{\n int bcnt = 0;\n int ccnt;\n ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = scnprintf(buf,acnt,"Driver state info:\n");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n ccnt = pvr2_hdw_state_report(hdw,buf,acnt);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n return bcnt;\n}" ({) "{" (declaration) "int bcnt = 0;" (primitive_type) "int" (init_declarator) "bcnt = 0" (identifier) "bcnt" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ccnt;" (primitive_type) "int" (identifier) "ccnt" (;) ";" (expression_statement) "ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw));" (assignment_expression) "ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw))" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw))" (identifier) "scnprintf" (argument_list) "(buf, acnt, "Driver hardware description: %s\n",\n pvr2_hdw_get_desc(hdw))" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""Driver hardware description: %s\n"" (") """ (string_content) "Driver hardware description: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "pvr2_hdw_get_desc(hdw)" (identifier) "pvr2_hdw_get_desc" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "ccnt = scnprintf(buf,acnt,"Driver state info:\n");" (assignment_expression) "ccnt = scnprintf(buf,acnt,"Driver state info:\n")" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(buf,acnt,"Driver state info:\n")" (identifier) "scnprintf" (argument_list) "(buf,acnt,"Driver state info:\n")" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""Driver state info:\n"" (") """ (string_content) "Driver state info:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "ccnt = pvr2_hdw_state_report(hdw,buf,acnt);" (assignment_expression) "ccnt = pvr2_hdw_state_report(hdw,buf,acnt)" (identifier) "ccnt" (=) "=" (call_expression) "pvr2_hdw_state_report(hdw,buf,acnt)" (identifier) "pvr2_hdw_state_report" (argument_list) "(hdw,buf,acnt)" (() "(" (identifier) "hdw" (,) "," (identifier) "buf" (,) "," (identifier) "acnt" ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (return_statement) "return bcnt;" (return) "return" (identifier) "bcnt" (;) ";" (}) "}" (function_definition) "int pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n char *buf,unsigned int acnt)\n{\n int bcnt = 0;\n int ccnt;\n int ret;\n u32 gpio_dir,gpio_in,gpio_out;\n struct pvr2_stream_stats stats;\n struct pvr2_stream *sp;\n\n ret = pvr2_hdw_is_hsm(hdw);\n ccnt = scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n gpio_dir = 0; gpio_in = 0; gpio_out = 0;\n pvr2_hdw_gpio_get_dir(hdw,&gpio_dir);\n pvr2_hdw_gpio_get_out(hdw,&gpio_out);\n pvr2_hdw_gpio_get_in(hdw,&gpio_in);\n ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n ccnt = scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\n sp = pvr2_hdw_get_video_stream(hdw);\n if (sp) {\n pvr2_stream_get_stats(sp, &stats, 0);\n ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n }\n\n return bcnt;\n}" (primitive_type) "int" (function_declarator) "pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n char *buf,unsigned int acnt)" (identifier) "pvr2_debugifc_print_status" (parameter_list) "(struct pvr2_hdw *hdw,\n char *buf,unsigned int acnt)" (() "(" (parameter_declaration) "struct pvr2_hdw *hdw" (struct_specifier) "struct pvr2_hdw" (struct) "struct" (type_identifier) "pvr2_hdw" (pointer_declarator) "*hdw" (*) "*" (identifier) "hdw" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int acnt" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "acnt" ()) ")" (compound_statement) "{\n int bcnt = 0;\n int ccnt;\n int ret;\n u32 gpio_dir,gpio_in,gpio_out;\n struct pvr2_stream_stats stats;\n struct pvr2_stream *sp;\n\n ret = pvr2_hdw_is_hsm(hdw);\n ccnt = scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")));\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n gpio_dir = 0; gpio_in = 0; gpio_out = 0;\n pvr2_hdw_gpio_get_dir(hdw,&gpio_dir);\n pvr2_hdw_gpio_get_out(hdw,&gpio_out);\n pvr2_hdw_gpio_get_in(hdw,&gpio_in);\n ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n ccnt = scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off");\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\n sp = pvr2_hdw_get_video_stream(hdw);\n if (sp) {\n pvr2_stream_get_stats(sp, &stats, 0);\n ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n }\n\n return bcnt;\n}" ({) "{" (declaration) "int bcnt = 0;" (primitive_type) "int" (init_declarator) "bcnt = 0" (identifier) "bcnt" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ccnt;" (primitive_type) "int" (identifier) "ccnt" (;) ";" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (declaration) "u32 gpio_dir,gpio_in,gpio_out;" (type_identifier) "u32" (identifier) "gpio_dir" (,) "," (identifier) "gpio_in" (,) "," (identifier) "gpio_out" (;) ";" (declaration) "struct pvr2_stream_stats stats;" (struct_specifier) "struct pvr2_stream_stats" (struct) "struct" (type_identifier) "pvr2_stream_stats" (identifier) "stats" (;) ";" (declaration) "struct pvr2_stream *sp;" (struct_specifier) "struct pvr2_stream" (struct) "struct" (type_identifier) "pvr2_stream" (pointer_declarator) "*sp" (*) "*" (identifier) "sp" (;) ";" (expression_statement) "ret = pvr2_hdw_is_hsm(hdw);" (assignment_expression) "ret = pvr2_hdw_is_hsm(hdw)" (identifier) "ret" (=) "=" (call_expression) "pvr2_hdw_is_hsm(hdw)" (identifier) "pvr2_hdw_is_hsm" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (expression_statement) "ccnt = scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")));" (assignment_expression) "ccnt = scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")))" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")))" (identifier) "scnprintf" (argument_list) "(buf,acnt,"USB link speed: %s\n",\n (ret < 0 ? "FAIL" : (ret ? "high" : "full")))" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""USB link speed: %s\n"" (") """ (string_content) "USB link speed: %s" (escape_sequence) "\n" (") """ (,) "," (parenthesized_expression) "(ret < 0 ? "FAIL" : (ret ? "high" : "full"))" (() "(" (conditional_expression) "ret < 0 ? "FAIL" : (ret ? "high" : "full")" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" (?) "?" (string_literal) ""FAIL"" (") """ (string_content) "FAIL" (") """ (:) ":" (parenthesized_expression) "(ret ? "high" : "full")" (() "(" (conditional_expression) "ret ? "high" : "full"" (identifier) "ret" (?) "?" (string_literal) ""high"" (") """ (string_content) "high" (") """ (:) ":" (string_literal) ""full"" (") """ (string_content) "full" (") """ ()) ")" ()) ")" ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "gpio_dir = 0;" (assignment_expression) "gpio_dir = 0" (identifier) "gpio_dir" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "gpio_in = 0;" (assignment_expression) "gpio_in = 0" (identifier) "gpio_in" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "gpio_out = 0;" (assignment_expression) "gpio_out = 0" (identifier) "gpio_out" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "pvr2_hdw_gpio_get_dir(hdw,&gpio_dir);" (call_expression) "pvr2_hdw_gpio_get_dir(hdw,&gpio_dir)" (identifier) "pvr2_hdw_gpio_get_dir" (argument_list) "(hdw,&gpio_dir)" (() "(" (identifier) "hdw" (,) "," (pointer_expression) "&gpio_dir" (&) "&" (identifier) "gpio_dir" ()) ")" (;) ";" (expression_statement) "pvr2_hdw_gpio_get_out(hdw,&gpio_out);" (call_expression) "pvr2_hdw_gpio_get_out(hdw,&gpio_out)" (identifier) "pvr2_hdw_gpio_get_out" (argument_list) "(hdw,&gpio_out)" (() "(" (identifier) "hdw" (,) "," (pointer_expression) "&gpio_out" (&) "&" (identifier) "gpio_out" ()) ")" (;) ";" (expression_statement) "pvr2_hdw_gpio_get_in(hdw,&gpio_in);" (call_expression) "pvr2_hdw_gpio_get_in(hdw,&gpio_in)" (identifier) "pvr2_hdw_gpio_get_in" (argument_list) "(hdw,&gpio_in)" (() "(" (identifier) "hdw" (,) "," (pointer_expression) "&gpio_in" (&) "&" (identifier) "gpio_in" ()) ")" (;) ";" (expression_statement) "ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out);" (assignment_expression) "ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out)" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out)" (identifier) "scnprintf" (argument_list) "(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n",\n gpio_dir,gpio_in,gpio_out)" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""GPIO state: dir=0x%x in=0x%x out=0x%x\n"" (") """ (string_content) "GPIO state: dir=0x%x in=0x%x out=0x%x" (escape_sequence) "\n" (") """ (,) "," (identifier) "gpio_dir" (,) "," (identifier) "gpio_in" (,) "," (identifier) "gpio_out" ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "ccnt = scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off");" (assignment_expression) "ccnt = scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off")" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off")" (identifier) "scnprintf" (argument_list) "(buf,acnt,"Streaming is %s\n",\n pvr2_hdw_get_streaming(hdw) ? "on" : "off")" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""Streaming is %s\n"" (") """ (string_content) "Streaming is %s" (escape_sequence) "\n" (") """ (,) "," (conditional_expression) "pvr2_hdw_get_streaming(hdw) ? "on" : "off"" (call_expression) "pvr2_hdw_get_streaming(hdw)" (identifier) "pvr2_hdw_get_streaming" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (?) "?" (string_literal) ""on"" (") """ (string_content) "on" (") """ (:) ":" (string_literal) ""off"" (") """ (string_content) "off" (") """ ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "sp = pvr2_hdw_get_video_stream(hdw);" (assignment_expression) "sp = pvr2_hdw_get_video_stream(hdw)" (identifier) "sp" (=) "=" (call_expression) "pvr2_hdw_get_video_stream(hdw)" (identifier) "pvr2_hdw_get_video_stream" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (if_statement) "if (sp) {\n pvr2_stream_get_stats(sp, &stats, 0);\n ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n }" (if) "if" (parenthesized_expression) "(sp)" (() "(" (identifier) "sp" ()) ")" (compound_statement) "{\n pvr2_stream_get_stats(sp, &stats, 0);\n ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);\n bcnt += ccnt; acnt -= ccnt; buf += ccnt;\n }" ({) "{" (expression_statement) "pvr2_stream_get_stats(sp, &stats, 0);" (call_expression) "pvr2_stream_get_stats(sp, &stats, 0)" (identifier) "pvr2_stream_get_stats" (argument_list) "(sp, &stats, 0)" (() "(" (identifier) "sp" (,) "," (pointer_expression) "&stats" (&) "&" (identifier) "stats" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed);" (assignment_expression) "ccnt = scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed)" (identifier) "ccnt" (=) "=" (call_expression) "scnprintf(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed)" (identifier) "scnprintf" (argument_list) "(\n buf,acnt,\n "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n",\n stats.bytes_processed,\n stats.buffers_in_queue,\n stats.buffers_in_idle,\n stats.buffers_in_ready,\n stats.buffers_processed,\n stats.buffers_failed)" (() "(" (identifier) "buf" (,) "," (identifier) "acnt" (,) "," (string_literal) ""Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\n"" (") """ (string_content) "Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u" (escape_sequence) "\n" (") """ (,) "," (field_expression) "stats.bytes_processed" (identifier) "stats" (.) "." (field_identifier) "bytes_processed" (,) "," (field_expression) "stats.buffers_in_queue" (identifier) "stats" (.) "." (field_identifier) "buffers_in_queue" (,) "," (field_expression) "stats.buffers_in_idle" (identifier) "stats" (.) "." (field_identifier) "buffers_in_idle" (,) "," (field_expression) "stats.buffers_in_ready" (identifier) "stats" (.) "." (field_identifier) "buffers_in_ready" (,) "," (field_expression) "stats.buffers_processed" (identifier) "stats" (.) "." (field_identifier) "buffers_processed" (,) "," (field_expression) "stats.buffers_failed" (identifier) "stats" (.) "." (field_identifier) "buffers_failed" ()) ")" (;) ";" (expression_statement) "bcnt += ccnt;" (assignment_expression) "bcnt += ccnt" (identifier) "bcnt" (+=) "+=" (identifier) "ccnt" (;) ";" (expression_statement) "acnt -= ccnt;" (assignment_expression) "acnt -= ccnt" (identifier) "acnt" (-=) "-=" (identifier) "ccnt" (;) ";" (expression_statement) "buf += ccnt;" (assignment_expression) "buf += ccnt" (identifier) "buf" (+=) "+=" (identifier) "ccnt" (;) ";" (}) "}" (return_statement) "return bcnt;" (return) "return" (identifier) "bcnt" (;) ";" (}) "}" (function_definition) "static int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)\n{\n const char *wptr;\n unsigned int wlen;\n unsigned int scnt;\n\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return 0;\n count -= scnt; buf += scnt;\n if (!wptr) return 0;\n\n pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr);\n if (debugifc_match_keyword(wptr,wlen,"reset")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }\n return -EINVAL;\n } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }\n pvr2_trace(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr);\n return -EINVAL;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)" (identifier) "pvr2_debugifc_do1cmd" (parameter_list) "(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)" (() "(" (parameter_declaration) "struct pvr2_hdw *hdw" (struct_specifier) "struct pvr2_hdw" (struct) "struct" (type_identifier) "pvr2_hdw" (pointer_declarator) "*hdw" (*) "*" (identifier) "hdw" (,) "," (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" ()) ")" (compound_statement) "{\n const char *wptr;\n unsigned int wlen;\n unsigned int scnt;\n\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return 0;\n count -= scnt; buf += scnt;\n if (!wptr) return 0;\n\n pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr);\n if (debugifc_match_keyword(wptr,wlen,"reset")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }\n return -EINVAL;\n } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }\n pvr2_trace(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr);\n return -EINVAL;\n}" ({) "{" (declaration) "const char *wptr;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*wptr" (*) "*" (identifier) "wptr" (;) ";" (declaration) "unsigned int wlen;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "wlen" (;) ";" (declaration) "unsigned int scnt;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "scnt" (;) ";" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (!scnt) return 0;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!wptr) return 0;" (if) "if" (parenthesized_expression) "(!wptr)" (() "(" (unary_expression) "!wptr" (!) "!" (identifier) "wptr" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr);" (call_expression) "pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr)" (identifier) "pvr2_trace" (argument_list) "(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr)" (() "(" (identifier) "PVR2_TRACE_DEBUGIFC" (,) "," (string_literal) ""debugifc cmd: \"%.*s\""" (") """ (string_content) "debugifc cmd: " (escape_sequence) "\"" (string_content) "%.*s" (escape_sequence) "\"" (") """ (,) "," (identifier) "wlen" (,) "," (identifier) "wptr" ()) ")" (;) ";" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"reset")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }\n return -EINVAL;\n } else if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"reset"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"reset")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"reset")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""reset"" (") """ (string_content) "reset" (") """ ()) ")" ()) ")" (compound_statement) "{\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }\n return -EINVAL;\n }" ({) "{" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (!scnt) return -EINVAL;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!wptr) return -EINVAL;" (if) "if" (parenthesized_expression) "(!wptr)" (() "(" (unary_expression) "!wptr" (!) "!" (identifier) "wptr" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"cpu")) {\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"cpu"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"cpu")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"cpu")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""cpu"" (") """ (string_content) "cpu" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_cpureset_assert(hdw,!0);\n pvr2_hdw_cpureset_assert(hdw,0);\n return 0;\n }" ({) "{" (expression_statement) "pvr2_hdw_cpureset_assert(hdw,!0);" (call_expression) "pvr2_hdw_cpureset_assert(hdw,!0)" (identifier) "pvr2_hdw_cpureset_assert" (argument_list) "(hdw,!0)" (() "(" (identifier) "hdw" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "pvr2_hdw_cpureset_assert(hdw,0);" (call_expression) "pvr2_hdw_cpureset_assert(hdw,0)" (identifier) "pvr2_hdw_cpureset_assert" (argument_list) "(hdw,0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "0" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"bus")) {\n pvr2_hdw_device_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"bus"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"bus")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"bus")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""bus"" (") """ (string_content) "bus" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_device_reset(hdw);\n }" ({) "{" (expression_statement) "pvr2_hdw_device_reset(hdw);" (call_expression) "pvr2_hdw_device_reset(hdw)" (identifier) "pvr2_hdw_device_reset" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"soft")) {\n return pvr2_hdw_cmd_powerup(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"soft"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"soft")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"soft")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""soft"" (") """ (string_content) "soft" (") """ ()) ")" ()) ")" (compound_statement) "{\n return pvr2_hdw_cmd_powerup(hdw);\n }" ({) "{" (return_statement) "return pvr2_hdw_cmd_powerup(hdw);" (return) "return" (call_expression) "pvr2_hdw_cmd_powerup(hdw)" (identifier) "pvr2_hdw_cmd_powerup" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"deep")) {\n return pvr2_hdw_cmd_deep_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"deep"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"deep")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"deep")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""deep"" (") """ (string_content) "deep" (") """ ()) ")" ()) ")" (compound_statement) "{\n return pvr2_hdw_cmd_deep_reset(hdw);\n }" ({) "{" (return_statement) "return pvr2_hdw_cmd_deep_reset(hdw);" (return) "return" (call_expression) "pvr2_hdw_cmd_deep_reset(hdw)" (identifier) "pvr2_hdw_cmd_deep_reset" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"firmware")) {\n return pvr2_upload_firmware2(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"firmware"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"firmware")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"firmware")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""firmware"" (") """ (string_content) "firmware" (") """ ()) ")" ()) ")" (compound_statement) "{\n return pvr2_upload_firmware2(hdw);\n }" ({) "{" (return_statement) "return pvr2_upload_firmware2(hdw);" (return) "return" (call_expression) "pvr2_upload_firmware2(hdw)" (identifier) "pvr2_upload_firmware2" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"decoder")) {\n return pvr2_hdw_cmd_decoder_reset(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"decoder"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"decoder")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"decoder")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""decoder"" (") """ (string_content) "decoder" (") """ ()) ")" ()) ")" (compound_statement) "{\n return pvr2_hdw_cmd_decoder_reset(hdw);\n }" ({) "{" (return_statement) "return pvr2_hdw_cmd_decoder_reset(hdw);" (return) "return" (call_expression) "pvr2_hdw_cmd_decoder_reset(hdw)" (identifier) "pvr2_hdw_cmd_decoder_reset" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"worker")) {\n return pvr2_hdw_untrip(hdw);\n } else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"worker"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"worker")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"worker")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""worker"" (") """ (string_content) "worker" (") """ ()) ")" ()) ")" (compound_statement) "{\n return pvr2_hdw_untrip(hdw);\n }" ({) "{" (return_statement) "return pvr2_hdw_untrip(hdw);" (return) "return" (call_expression) "pvr2_hdw_untrip(hdw)" (identifier) "pvr2_hdw_untrip" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"usbstats")) {\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"usbstats"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"usbstats")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"usbstats")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""usbstats"" (") """ (string_content) "usbstats" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);\n return 0;\n }" ({) "{" (expression_statement) "pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0);" (call_expression) "pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n NULL, !0)" (identifier) "pvr2_stream_get_stats" (argument_list) "(pvr2_hdw_get_video_stream(hdw),\n NULL, !0)" (() "(" (call_expression) "pvr2_hdw_get_video_stream(hdw)" (identifier) "pvr2_hdw_get_video_stream" (argument_list) "(hdw)" (() "(" (identifier) "hdw" ()) ")" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"cpufw")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n } else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"cpufw"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"cpufw")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"cpufw")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""cpufw"" (") """ (string_content) "cpufw" (") """ ()) ")" ()) ")" (compound_statement) "{\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }\n }" ({) "{" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (!scnt) return -EINVAL;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!wptr) return -EINVAL;" (if) "if" (parenthesized_expression) "(!wptr)" (() "(" (unary_expression) "!wptr" (!) "!" (identifier) "wptr" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"fetch")) {\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n } else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"fetch"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"fetch")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"fetch")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""fetch"" (") """ (string_content) "fetch" (") """ ()) ")" ()) ")" (compound_statement) "{\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }\n pvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n return 0;\n }" ({) "{" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (scnt && wptr) {\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }" (if) "if" (parenthesized_expression) "(scnt && wptr)" (() "(" (binary_expression) "scnt && wptr" (identifier) "scnt" (&&) "&&" (identifier) "wptr" ()) ")" (compound_statement) "{\n count -= scnt; buf += scnt;\n if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }\n }" ({) "{" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (debugifc_match_keyword(wptr, wlen,\n "prom")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr, wlen,\n "prom"))" (() "(" (call_expression) "debugifc_match_keyword(wptr, wlen,\n "prom")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr, wlen,\n "prom")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""prom"" (") """ (string_content) "prom" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n }" ({) "{" (expression_statement) "pvr2_hdw_cpufw_set_enabled(hdw, 2, !0);" (call_expression) "pvr2_hdw_cpufw_set_enabled(hdw, 2, !0)" (identifier) "pvr2_hdw_cpufw_set_enabled" (argument_list) "(hdw, 2, !0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "2" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr, wlen,\n "ram8k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n } else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr, wlen,\n "ram8k"))" (() "(" (call_expression) "debugifc_match_keyword(wptr, wlen,\n "ram8k")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr, wlen,\n "ram8k")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""ram8k"" (") """ (string_content) "ram8k" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n }" ({) "{" (expression_statement) "pvr2_hdw_cpufw_set_enabled(hdw, 0, !0);" (call_expression) "pvr2_hdw_cpufw_set_enabled(hdw, 0, !0)" (identifier) "pvr2_hdw_cpufw_set_enabled" (argument_list) "(hdw, 0, !0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "0" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr, wlen,\n "ram16k")) {\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n } else {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr, wlen,\n "ram16k"))" (() "(" (call_expression) "debugifc_match_keyword(wptr, wlen,\n "ram16k")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr, wlen,\n "ram16k")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""ram16k"" (") """ (string_content) "ram16k" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n }" ({) "{" (expression_statement) "pvr2_hdw_cpufw_set_enabled(hdw, 1, !0);" (call_expression) "pvr2_hdw_cpufw_set_enabled(hdw, 1, !0)" (identifier) "pvr2_hdw_cpufw_set_enabled" (argument_list) "(hdw, 1, !0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "1" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n return -EINVAL;\n }" (else) "else" (compound_statement) "{\n return -EINVAL;\n }" ({) "{" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (}) "}" (expression_statement) "pvr2_hdw_cpufw_set_enabled(hdw,0,!0);" (call_expression) "pvr2_hdw_cpufw_set_enabled(hdw,0,!0)" (identifier) "pvr2_hdw_cpufw_set_enabled" (argument_list) "(hdw,0,!0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "0" (,) "," (unary_expression) "!0" (!) "!" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"done")) {\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n } else {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"done"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"done")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"done")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""done"" (") """ (string_content) "done" (") """ ()) ")" ()) ")" (compound_statement) "{\n pvr2_hdw_cpufw_set_enabled(hdw,0,0);\n return 0;\n }" ({) "{" (expression_statement) "pvr2_hdw_cpufw_set_enabled(hdw,0,0);" (call_expression) "pvr2_hdw_cpufw_set_enabled(hdw,0,0)" (identifier) "pvr2_hdw_cpufw_set_enabled" (argument_list) "(hdw,0,0)" (() "(" (identifier) "hdw" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else {\n return -EINVAL;\n }" (else) "else" (compound_statement) "{\n return -EINVAL;\n }" ({) "{" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (}) "}" (else_clause) "else if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" (else) "else" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"gpio")) {\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"gpio"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"gpio")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"gpio")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""gpio"" (") """ (string_content) "gpio" (") """ ()) ")" ()) ")" (compound_statement) "{\n int dir_fl = 0;\n int ret;\n u32 msk,val;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (!scnt) return -EINVAL;\n count -= scnt; buf += scnt;\n if (!wptr) return -EINVAL;\n ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n if (ret) return ret;\n scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }\n if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }\n return ret;\n }" ({) "{" (declaration) "int dir_fl = 0;" (primitive_type) "int" (init_declarator) "dir_fl = 0" (identifier) "dir_fl" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (declaration) "u32 msk,val;" (type_identifier) "u32" (identifier) "msk" (,) "," (identifier) "val" (;) ";" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (!scnt) return -EINVAL;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!wptr) return -EINVAL;" (if) "if" (parenthesized_expression) "(!wptr)" (() "(" (unary_expression) "!wptr" (!) "!" (identifier) "wptr" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (if_statement) "if (debugifc_match_keyword(wptr,wlen,"dir")) {\n dir_fl = !0;\n } else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(debugifc_match_keyword(wptr,wlen,"dir"))" (() "(" (call_expression) "debugifc_match_keyword(wptr,wlen,"dir")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"dir")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""dir"" (") """ (string_content) "dir" (") """ ()) ")" ()) ")" (compound_statement) "{\n dir_fl = !0;\n }" ({) "{" (expression_statement) "dir_fl = !0;" (assignment_expression) "dir_fl = !0" (identifier) "dir_fl" (=) "=" (unary_expression) "!0" (!) "!" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }" (else) "else" (if_statement) "if (!debugifc_match_keyword(wptr,wlen,"out")) {\n return -EINVAL;\n }" (if) "if" (parenthesized_expression) "(!debugifc_match_keyword(wptr,wlen,"out"))" (() "(" (unary_expression) "!debugifc_match_keyword(wptr,wlen,"out")" (!) "!" (call_expression) "debugifc_match_keyword(wptr,wlen,"out")" (identifier) "debugifc_match_keyword" (argument_list) "(wptr,wlen,"out")" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (string_literal) ""out"" (") """ (string_content) "out" (") """ ()) ")" ()) ")" (compound_statement) "{\n return -EINVAL;\n }" ({) "{" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (!scnt) return -EINVAL;" (if) "if" (parenthesized_expression) "(!scnt)" (() "(" (unary_expression) "!scnt" (!) "!" (identifier) "scnt" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "count -= scnt;" (assignment_expression) "count -= scnt" (identifier) "count" (-=) "-=" (identifier) "scnt" (;) ";" (expression_statement) "buf += scnt;" (assignment_expression) "buf += scnt" (identifier) "buf" (+=) "+=" (identifier) "scnt" (;) ";" (if_statement) "if (!wptr) return -EINVAL;" (if) "if" (parenthesized_expression) "(!wptr)" (() "(" (unary_expression) "!wptr" (!) "!" (identifier) "wptr" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "ret = debugifc_parse_unsigned_number(wptr,wlen,&msk);" (assignment_expression) "ret = debugifc_parse_unsigned_number(wptr,wlen,&msk)" (identifier) "ret" (=) "=" (call_expression) "debugifc_parse_unsigned_number(wptr,wlen,&msk)" (identifier) "debugifc_parse_unsigned_number" (argument_list) "(wptr,wlen,&msk)" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (pointer_expression) "&msk" (&) "&" (identifier) "msk" ()) ")" (;) ";" (if_statement) "if (ret) return ret;" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (expression_statement) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen);" (assignment_expression) "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "scnt" (=) "=" (call_expression) "debugifc_isolate_word(buf,count,&wptr,&wlen)" (identifier) "debugifc_isolate_word" (argument_list) "(buf,count,&wptr,&wlen)" (() "(" (identifier) "buf" (,) "," (identifier) "count" (,) "," (pointer_expression) "&wptr" (&) "&" (identifier) "wptr" (,) "," (pointer_expression) "&wlen" (&) "&" (identifier) "wlen" ()) ")" (;) ";" (if_statement) "if (wptr) {\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n } else {\n val = msk;\n msk = 0xffffffff;\n }" (if) "if" (parenthesized_expression) "(wptr)" (() "(" (identifier) "wptr" ()) ")" (compound_statement) "{\n ret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n if (ret) return ret;\n }" ({) "{" (expression_statement) "ret = debugifc_parse_unsigned_number(wptr,wlen,&val);" (assignment_expression) "ret = debugifc_parse_unsigned_number(wptr,wlen,&val)" (identifier) "ret" (=) "=" (call_expression) "debugifc_parse_unsigned_number(wptr,wlen,&val)" (identifier) "debugifc_parse_unsigned_number" (argument_list) "(wptr,wlen,&val)" (() "(" (identifier) "wptr" (,) "," (identifier) "wlen" (,) "," (pointer_expression) "&val" (&) "&" (identifier) "val" ()) ")" (;) ";" (if_statement) "if (ret) return ret;" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (else_clause) "else {\n val = msk;\n msk = 0xffffffff;\n }" (else) "else" (compound_statement) "{\n val = msk;\n msk = 0xffffffff;\n }" ({) "{" (expression_statement) "val = msk;" (assignment_expression) "val = msk" (identifier) "val" (=) "=" (identifier) "msk" (;) ";" (expression_statement) "msk = 0xffffffff;" (assignment_expression) "msk = 0xffffffff" (identifier) "msk" (=) "=" (number_literal) "0xffffffff" (;) ";" (}) "}" (if_statement) "if (dir_fl) {\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n } else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }" (if) "if" (parenthesized_expression) "(dir_fl)" (() "(" (identifier) "dir_fl" ()) ")" (compound_statement) "{\n ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n }" ({) "{" (expression_statement) "ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);" (assignment_expression) "ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val)" (identifier) "ret" (=) "=" (call_expression) "pvr2_hdw_gpio_chg_dir(hdw,msk,val)" (identifier) "pvr2_hdw_gpio_chg_dir" (argument_list) "(hdw,msk,val)" (() "(" (identifier) "hdw" (,) "," (identifier) "msk" (,) "," (identifier) "val" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }" (else) "else" (compound_statement) "{\n ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n }" ({) "{" (expression_statement) "ret = pvr2_hdw_gpio_chg_out(hdw,msk,val);" (assignment_expression) "ret = pvr2_hdw_gpio_chg_out(hdw,msk,val)" (identifier) "ret" (=) "=" (call_expression) "pvr2_hdw_gpio_chg_out(hdw,msk,val)" (identifier) "pvr2_hdw_gpio_chg_out" (argument_list) "(hdw,msk,val)" (() "(" (identifier) "hdw" (,) "," (identifier) "msk" (,) "," (identifier) "val" ()) ")" (;) ";" (}) "}" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (expression_statement) "pvr2_trace(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr);" (call_expression) "pvr2_trace(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr)" (identifier) "pvr2_trace" (argument_list) "(PVR2_TRACE_DEBUGIFC,\n "debugifc failed to recognize cmd: \"%.*s\"",wlen,wptr)" (() "(" (identifier) "PVR2_TRACE_DEBUGIFC" (,) "," (string_literal) ""debugifc failed to recognize cmd: \"%.*s\""" (") """ (string_content) "debugifc failed to recognize cmd: " (escape_sequence) "\"" (string_content) "%.*s" (escape_sequence) "\"" (") """ (,) "," (identifier) "wlen" (,) "," (identifier) "wptr" ()) ")" (;) ";" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (}) "}" (function_definition) "int pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)\n{\n unsigned int bcnt = 0;\n int ret;\n\n while (count) {\n for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }\n\n ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n if (ret < 0) return ret;\n if (bcnt < count) bcnt++;\n buf += bcnt;\n count -= bcnt;\n }\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)" (identifier) "pvr2_debugifc_docmd" (parameter_list) "(struct pvr2_hdw *hdw,const char *buf,\n unsigned int count)" (() "(" (parameter_declaration) "struct pvr2_hdw *hdw" (struct_specifier) "struct pvr2_hdw" (struct) "struct" (type_identifier) "pvr2_hdw" (pointer_declarator) "*hdw" (*) "*" (identifier) "hdw" (,) "," (parameter_declaration) "const char *buf" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "unsigned int count" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" ()) ")" (compound_statement) "{\n unsigned int bcnt = 0;\n int ret;\n\n while (count) {\n for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }\n\n ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n if (ret < 0) return ret;\n if (bcnt < count) bcnt++;\n buf += bcnt;\n count -= bcnt;\n }\n\n return 0;\n}" ({) "{" (declaration) "unsigned int bcnt = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "bcnt = 0" (identifier) "bcnt" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (while_statement) "while (count) {\n for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }\n\n ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n if (ret < 0) return ret;\n if (bcnt < count) bcnt++;\n buf += bcnt;\n count -= bcnt;\n }" (while) "while" (parenthesized_expression) "(count)" (() "(" (identifier) "count" ()) ")" (compound_statement) "{\n for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }\n\n ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n if (ret < 0) return ret;\n if (bcnt < count) bcnt++;\n buf += bcnt;\n count -= bcnt;\n }" ({) "{" (for_statement) "for (bcnt = 0; bcnt < count; bcnt++) {\n if (buf[bcnt] == '\n') break;\n }" (for) "for" (() "(" (assignment_expression) "bcnt = 0" (identifier) "bcnt" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "bcnt < count" (identifier) "bcnt" (<) "<" (identifier) "count" (;) ";" (update_expression) "bcnt++" (identifier) "bcnt" (++) "++" ()) ")" (compound_statement) "{\n if (buf[bcnt] == '\n') break;\n }" ({) "{" (if_statement) "if (buf[bcnt] == '\n') break;" (if) "if" (parenthesized_expression) "(buf[bcnt] == '\n')" (() "(" (binary_expression) "buf[bcnt] == '\n'" (subscript_expression) "buf[bcnt]" (identifier) "buf" ([) "[" (identifier) "bcnt" (]) "]" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);" (assignment_expression) "ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt)" (identifier) "ret" (=) "=" (call_expression) "pvr2_debugifc_do1cmd(hdw,buf,bcnt)" (identifier) "pvr2_debugifc_do1cmd" (argument_list) "(hdw,buf,bcnt)" (() "(" (identifier) "hdw" (,) "," (identifier) "buf" (,) "," (identifier) "bcnt" ()) ")" (;) ";" (if_statement) "if (ret < 0) return ret;" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (if_statement) "if (bcnt < count) bcnt++;" (if) "if" (parenthesized_expression) "(bcnt < count)" (() "(" (binary_expression) "bcnt < count" (identifier) "bcnt" (<) "<" (identifier) "count" ()) ")" (expression_statement) "bcnt++;" (update_expression) "bcnt++" (identifier) "bcnt" (++) "++" (;) ";" (expression_statement) "buf += bcnt;" (assignment_expression) "buf += bcnt" (identifier) "buf" (+=) "+=" (identifier) "bcnt" (;) ";" (expression_statement) "count -= bcnt;" (assignment_expression) "count -= bcnt" (identifier) "count" (-=) "-=" (identifier) "bcnt" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
2,764
0
{"language": "c", "success": true, "metadata": {"lines": 290, "avg_line_length": 26.91, "nodes": 1625, "errors": 0, "source_hash": "2960216c1ad7076cb36b3d891184761b475252da5f46447955bcc1a33581364e", "categorized_nodes": 1159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/string.h>", "parent": 0, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 25}}, {"id": 3, "type": "preproc_include", "text": "#include \"pvrusb2-debugifc.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"pvrusb2-debugifc.h\"", "parent": 3, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include \"pvrusb2-hdw.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"pvrusb2-hdw.h\"", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include \"pvrusb2-debug.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"pvrusb2-debug.h\"", "parent": 9, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 12, "type": "struct_specifier", "text": "struct debugifc_mask_item {\n\tconst char *name;\n\tunsigned long msk;\n}", "parent": null, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 14, "type": "type_identifier", "text": "debugifc_mask_item", "parent": 12, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 25}}, {"id": 15, "type": "field_declaration", "text": "const char *name;", "parent": 12, "children": [16, 17], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 18}}, {"id": 16, "type": "primitive_type", "text": "char", "parent": 15, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 11}}, {"id": 17, "type": "pointer_declarator", "text": "*name", "parent": 15, "children": [18, 19], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 17}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 19, "type": "field_identifier", "text": "name", "parent": 17, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 20, "type": "field_declaration", "text": "unsigned long msk;", "parent": 12, "children": [21, 24], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 19}}, {"id": 21, "type": "sized_type_specifier", "text": "unsigned long", "parent": 20, "children": [22, 23], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 14}}, {"id": 22, "type": "unsigned", "text": "unsigned", "parent": 21, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 23, "type": "long", "text": "long", "parent": 21, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 14}}, {"id": 24, "type": "field_identifier", "text": "msk", "parent": 20, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 18}}, {"id": 25, "type": "function_definition", "text": "static unsigned int debugifc_count_whitespace(const char *buf,\n\t\t\t\t\t unsigned int count)\n{\n\tunsigned int scnt;\n\tchar ch;\n\n\tfor (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') continue;\n\t\tif (ch == '\\t') continue;\n\t\tif (ch == '\\n') continue;\n\t\tbreak;\n\t}\n\treturn scnt;\n}", "parent": null, "children": [26, 29], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned int", "parent": 25, "children": [27, 28], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 19}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 15}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 19}}, {"id": 29, "type": "function_declarator", "text": "debugifc_count_whitespace(const char *buf,\n\t\t\t\t\t unsigned int count)", "parent": 25, "children": [30, 31], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 28, "column": 30}}, {"id": 30, "type": "identifier", "text": "debugifc_count_whitespace", "parent": 29, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 45}}, {"id": 31, "type": "parameter_list", "text": "(const char *buf,\n\t\t\t\t\t unsigned int count)", "parent": 29, "children": [32, 37], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 28, "column": 30}}, {"id": 32, "type": "parameter_declaration", "text": "const char *buf", "parent": 31, "children": [33, 34], "start_point": {"row": 27, "column": 46}, "end_point": {"row": 27, "column": 61}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 27, "column": 52}, "end_point": {"row": 27, "column": 56}}, {"id": 34, "type": "pointer_declarator", "text": "*buf", "parent": 32, "children": [35, 36], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 61}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 58}}, {"id": 36, "type": "identifier", "text": "buf", "parent": 34, "children": [], "start_point": {"row": 27, "column": 58}, "end_point": {"row": 27, "column": 61}}, {"id": 37, "type": "parameter_declaration", "text": "unsigned int count", "parent": 31, "children": [38, 41], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 29}}, {"id": 38, "type": "sized_type_specifier", "text": "unsigned int", "parent": 37, "children": [39, 40], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 23}}, {"id": 39, "type": "unsigned", "text": "unsigned", "parent": 38, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 19}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 23}}, {"id": 41, "type": "identifier", "text": "count", "parent": 37, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 29}}, {"id": 42, "type": "declaration", "text": "unsigned int scnt;", "parent": 25, "children": [43, 46], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 19}}, {"id": 43, "type": "sized_type_specifier", "text": "unsigned int", "parent": 42, "children": [44, 45], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 13}}, {"id": 44, "type": "unsigned", "text": "unsigned", "parent": 43, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 46, "type": "identifier", "text": "scnt", "parent": 42, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 18}}, {"id": 47, "type": "declaration", "text": "char ch;", "parent": 25, "children": [48, 49], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 48, "type": "primitive_type", "text": "char", "parent": 47, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 49, "type": "identifier", "text": "ch", "parent": 47, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 8}}, {"id": 50, "type": "for_statement", "text": "for (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') continue;\n\t\tif (ch == '\\t') continue;\n\t\tif (ch == '\\n') continue;\n\t\tbreak;\n\t}", "parent": 25, "children": [51, 55, 59], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 39, "column": 2}}, {"id": 51, "type": "assignment_expression", "text": "scnt = 0", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 14}}, {"id": 52, "type": "identifier", "text": "scnt", "parent": 51, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 10}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 55, "type": "binary_expression", "text": "scnt < count", "parent": 50, "children": [56, 57, 58], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 28}}, {"id": 56, "type": "identifier", "text": "scnt", "parent": 55, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 57, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 58, "type": "identifier", "text": "count", "parent": 55, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 28}}, {"id": 59, "type": "update_expression", "text": "scnt++", "parent": 50, "children": [60, 61], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 36}}, {"id": 60, "type": "identifier", "text": "scnt", "parent": 59, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 34}}, {"id": 61, "type": "++", "text": "++", "parent": 59, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 36}}, {"id": 62, "type": "assignment_expression", "text": "ch = buf[scnt]", "parent": 50, "children": [63, 64, 65], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 16}}, {"id": 63, "type": "identifier", "text": "ch", "parent": 62, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 4}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 6}}, {"id": 65, "type": "subscript_expression", "text": "buf[scnt]", "parent": 62, "children": [66, 67], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 16}}, {"id": 66, "type": "identifier", "text": "buf", "parent": 65, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 10}}, {"id": 67, "type": "identifier", "text": "scnt", "parent": 65, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 68, "type": "if_statement", "text": "if (ch == ' ') continue;", "parent": 50, "children": [69, 77], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 26}}, {"id": 69, "type": "parenthesized_expression", "text": "(ch == ' ')", "parent": 68, "children": [70], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 16}}, {"id": 70, "type": "binary_expression", "text": "ch == ' '", "parent": 69, "children": [71, 72, 73], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 15}}, {"id": 71, "type": "identifier", "text": "ch", "parent": 70, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 8}}, {"id": 72, "type": "==", "text": "==", "parent": 70, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 11}}, {"id": 73, "type": "char_literal", "text": "' '", "parent": 70, "children": [74, 75, 76], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 15}}, {"id": 74, "type": "'", "text": "'", "parent": 73, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 75, "type": "character", "text": " ", "parent": 73, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 76, "type": "'", "text": "'", "parent": 73, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 77, "type": "continue_statement", "text": "continue;", "parent": 68, "children": [78], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 26}}, {"id": 78, "type": "continue", "text": "continue", "parent": 77, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 25}}, {"id": 79, "type": "if_statement", "text": "if (ch == '\\t') continue;", "parent": 50, "children": [80, 88], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 27}}, {"id": 80, "type": "parenthesized_expression", "text": "(ch == '\\t')", "parent": 79, "children": [81], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 17}}, {"id": 81, "type": "binary_expression", "text": "ch == '\\t'", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 16}}, {"id": 82, "type": "identifier", "text": "ch", "parent": 81, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 8}}, {"id": 83, "type": "==", "text": "==", "parent": 81, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 11}}, {"id": 84, "type": "char_literal", "text": "'\\t'", "parent": 81, "children": [85, 86, 87], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 16}}, {"id": 85, "type": "'", "text": "'", "parent": 84, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 13}}, {"id": 86, "type": "escape_sequence", "text": "\\t", "parent": 84, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 15}}, {"id": 87, "type": "'", "text": "'", "parent": 84, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 88, "type": "continue_statement", "text": "continue;", "parent": 79, "children": [89], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 27}}, {"id": 89, "type": "continue", "text": "continue", "parent": 88, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 26}}, {"id": 90, "type": "if_statement", "text": "if (ch == '\\n') continue;", "parent": 50, "children": [91, 99], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 27}}, {"id": 91, "type": "parenthesized_expression", "text": "(ch == '\\n')", "parent": 90, "children": [92], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 17}}, {"id": 92, "type": "binary_expression", "text": "ch == '\\n'", "parent": 91, "children": [93, 94, 95], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 16}}, {"id": 93, "type": "identifier", "text": "ch", "parent": 92, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 8}}, {"id": 94, "type": "==", "text": "==", "parent": 92, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 11}}, {"id": 95, "type": "char_literal", "text": "'\\n'", "parent": 92, "children": [96, 97, 98], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 96, "type": "'", "text": "'", "parent": 95, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 97, "type": "escape_sequence", "text": "\\n", "parent": 95, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 15}}, {"id": 98, "type": "'", "text": "'", "parent": 95, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 16}}, {"id": 99, "type": "continue_statement", "text": "continue;", "parent": 90, "children": [100], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 27}}, {"id": 100, "type": "continue", "text": "continue", "parent": 99, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 26}}, {"id": 101, "type": "break_statement", "text": "break;", "parent": 50, "children": [102], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 8}}, {"id": 102, "type": "break", "text": "break", "parent": 101, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 7}}, {"id": 103, "type": "return_statement", "text": "return scnt;", "parent": 25, "children": [104], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 13}}, {"id": 104, "type": "identifier", "text": "scnt", "parent": 103, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 105, "type": "function_definition", "text": "static unsigned int debugifc_count_nonwhitespace(const char *buf,\n\t\t\t\t\t\t unsigned int count)\n{\n\tunsigned int scnt;\n\tchar ch;\n\n\tfor (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') break;\n\t\tif (ch == '\\t') break;\n\t\tif (ch == '\\n') break;\n\t}\n\treturn scnt;\n}", "parent": null, "children": [106, 109], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 106, "type": "sized_type_specifier", "text": "unsigned int", "parent": 105, "children": [107, 108], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 19}}, {"id": 107, "type": "unsigned", "text": "unsigned", "parent": 106, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 15}}, {"id": 108, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 19}}, {"id": 109, "type": "function_declarator", "text": "debugifc_count_nonwhitespace(const char *buf,\n\t\t\t\t\t\t unsigned int count)", "parent": 105, "children": [110, 111], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 45, "column": 26}}, {"id": 110, "type": "identifier", "text": "debugifc_count_nonwhitespace", "parent": 109, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 48}}, {"id": 111, "type": "parameter_list", "text": "(const char *buf,\n\t\t\t\t\t\t unsigned int count)", "parent": 109, "children": [112, 117], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 45, "column": 26}}, {"id": 112, "type": "parameter_declaration", "text": "const char *buf", "parent": 111, "children": [113, 114], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 64}}, {"id": 113, "type": "primitive_type", "text": "char", "parent": 112, "children": [], "start_point": {"row": 44, "column": 55}, "end_point": {"row": 44, "column": 59}}, {"id": 114, "type": "pointer_declarator", "text": "*buf", "parent": 112, "children": [115, 116], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 64}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 61}}, {"id": 116, "type": "identifier", "text": "buf", "parent": 114, "children": [], "start_point": {"row": 44, "column": 61}, "end_point": {"row": 44, "column": 64}}, {"id": 117, "type": "parameter_declaration", "text": "unsigned int count", "parent": 111, "children": [118, 121], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 25}}, {"id": 118, "type": "sized_type_specifier", "text": "unsigned int", "parent": 117, "children": [119, 120], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 19}}, {"id": 119, "type": "unsigned", "text": "unsigned", "parent": 118, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 15}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 19}}, {"id": 121, "type": "identifier", "text": "count", "parent": 117, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 25}}, {"id": 122, "type": "declaration", "text": "unsigned int scnt;", "parent": 105, "children": [123, 126], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 19}}, {"id": 123, "type": "sized_type_specifier", "text": "unsigned int", "parent": 122, "children": [124, 125], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 13}}, {"id": 124, "type": "unsigned", "text": "unsigned", "parent": 123, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 9}}, {"id": 125, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 13}}, {"id": 126, "type": "identifier", "text": "scnt", "parent": 122, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 18}}, {"id": 127, "type": "declaration", "text": "char ch;", "parent": 105, "children": [128, 129], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 9}}, {"id": 128, "type": "primitive_type", "text": "char", "parent": 127, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 5}}, {"id": 129, "type": "identifier", "text": "ch", "parent": 127, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 8}}, {"id": 130, "type": "for_statement", "text": "for (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') break;\n\t\tif (ch == '\\t') break;\n\t\tif (ch == '\\n') break;\n\t}", "parent": 105, "children": [131, 135, 139], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 55, "column": 2}}, {"id": 131, "type": "assignment_expression", "text": "scnt = 0", "parent": 130, "children": [132, 133, 134], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 14}}, {"id": 132, "type": "identifier", "text": "scnt", "parent": 131, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 10}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 134, "type": "number_literal", "text": "0", "parent": 131, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 14}}, {"id": 135, "type": "binary_expression", "text": "scnt < count", "parent": 130, "children": [136, 137, 138], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 28}}, {"id": 136, "type": "identifier", "text": "scnt", "parent": 135, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 20}}, {"id": 137, "type": "<", "text": "<", "parent": 135, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 22}}, {"id": 138, "type": "identifier", "text": "count", "parent": 135, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 28}}, {"id": 139, "type": "update_expression", "text": "scnt++", "parent": 130, "children": [140, 141], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 36}}, {"id": 140, "type": "identifier", "text": "scnt", "parent": 139, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 34}}, {"id": 141, "type": "++", "text": "++", "parent": 139, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 36}}, {"id": 142, "type": "assignment_expression", "text": "ch = buf[scnt]", "parent": 130, "children": [143, 144, 145], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 16}}, {"id": 143, "type": "identifier", "text": "ch", "parent": 142, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 4}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 6}}, {"id": 145, "type": "subscript_expression", "text": "buf[scnt]", "parent": 142, "children": [146, 147], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 16}}, {"id": 146, "type": "identifier", "text": "buf", "parent": 145, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 10}}, {"id": 147, "type": "identifier", "text": "scnt", "parent": 145, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 15}}, {"id": 148, "type": "if_statement", "text": "if (ch == ' ') break;", "parent": 130, "children": [149, 157], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 23}}, {"id": 149, "type": "parenthesized_expression", "text": "(ch == ' ')", "parent": 148, "children": [150], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 16}}, {"id": 150, "type": "binary_expression", "text": "ch == ' '", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 15}}, {"id": 151, "type": "identifier", "text": "ch", "parent": 150, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 8}}, {"id": 152, "type": "==", "text": "==", "parent": 150, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 11}}, {"id": 153, "type": "char_literal", "text": "' '", "parent": 150, "children": [154, 155, 156], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 15}}, {"id": 154, "type": "'", "text": "'", "parent": 153, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 13}}, {"id": 155, "type": "character", "text": " ", "parent": 153, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 14}}, {"id": 156, "type": "'", "text": "'", "parent": 153, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 15}}, {"id": 157, "type": "break_statement", "text": "break;", "parent": 148, "children": [158], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 23}}, {"id": 158, "type": "break", "text": "break", "parent": 157, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 22}}, {"id": 159, "type": "if_statement", "text": "if (ch == '\\t') break;", "parent": 130, "children": [160, 168], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 24}}, {"id": 160, "type": "parenthesized_expression", "text": "(ch == '\\t')", "parent": 159, "children": [161], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 17}}, {"id": 161, "type": "binary_expression", "text": "ch == '\\t'", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 16}}, {"id": 162, "type": "identifier", "text": "ch", "parent": 161, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 8}}, {"id": 163, "type": "==", "text": "==", "parent": 161, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 11}}, {"id": 164, "type": "char_literal", "text": "'\\t'", "parent": 161, "children": [165, 166, 167], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 165, "type": "'", "text": "'", "parent": 164, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 166, "type": "escape_sequence", "text": "\\t", "parent": 164, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 15}}, {"id": 167, "type": "'", "text": "'", "parent": 164, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 168, "type": "break_statement", "text": "break;", "parent": 159, "children": [169], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 24}}, {"id": 169, "type": "break", "text": "break", "parent": 168, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 23}}, {"id": 170, "type": "if_statement", "text": "if (ch == '\\n') break;", "parent": 130, "children": [171, 179], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 24}}, {"id": 171, "type": "parenthesized_expression", "text": "(ch == '\\n')", "parent": 170, "children": [172], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 17}}, {"id": 172, "type": "binary_expression", "text": "ch == '\\n'", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 16}}, {"id": 173, "type": "identifier", "text": "ch", "parent": 172, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 8}}, {"id": 174, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 11}}, {"id": 175, "type": "char_literal", "text": "'\\n'", "parent": 172, "children": [176, 177, 178], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 16}}, {"id": 176, "type": "'", "text": "'", "parent": 175, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 177, "type": "escape_sequence", "text": "\\n", "parent": 175, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 15}}, {"id": 178, "type": "'", "text": "'", "parent": 175, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 16}}, {"id": 179, "type": "break_statement", "text": "break;", "parent": 170, "children": [180], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 24}}, {"id": 180, "type": "break", "text": "break", "parent": 179, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 23}}, {"id": 181, "type": "return_statement", "text": "return scnt;", "parent": 105, "children": [182], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 13}}, {"id": 182, "type": "identifier", "text": "scnt", "parent": 181, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 183, "type": "function_definition", "text": "static unsigned int debugifc_isolate_word(const char *buf,unsigned int count,\n\t\t\t\t\t const char **wstrPtr,\n\t\t\t\t\t unsigned int *wlenPtr)\n{\n\tconst char *wptr;\n\tunsigned int consume_cnt = 0;\n\tunsigned int wlen;\n\tunsigned int scnt;\n\n\twptr = NULL;\n\twlen = 0;\n\tscnt = debugifc_count_whitespace(buf,count);\n\tconsume_cnt += scnt; count -= scnt; buf += scnt;\n\tif (!count) goto done;\n\n\tscnt = debugifc_count_nonwhitespace(buf,count);\n\tif (!scnt) goto done;\n\twptr = buf;\n\twlen = scnt;\n\tconsume_cnt += scnt; count -= scnt; buf += scnt;\n\n done:\n\t*wstrPtr = wptr;\n\t*wlenPtr = wlen;\n\treturn consume_cnt;\n}", "parent": null, "children": [184, 187], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 184, "type": "sized_type_specifier", "text": "unsigned int", "parent": 183, "children": [185, 186], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 19}}, {"id": 185, "type": "unsigned", "text": "unsigned", "parent": 184, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 15}}, {"id": 186, "type": "primitive_type", "text": "int", "parent": 184, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 19}}, {"id": 187, "type": "function_declarator", "text": "debugifc_isolate_word(const char *buf,unsigned int count,\n\t\t\t\t\t const char **wstrPtr,\n\t\t\t\t\t unsigned int *wlenPtr)", "parent": 183, "children": [188, 189], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 62, "column": 29}}, {"id": 188, "type": "identifier", "text": "debugifc_isolate_word", "parent": 187, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 41}}, {"id": 189, "type": "parameter_list", "text": "(const char *buf,unsigned int count,\n\t\t\t\t\t const char **wstrPtr,\n\t\t\t\t\t unsigned int *wlenPtr)", "parent": 187, "children": [190, 195, 200, 207], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 62, "column": 29}}, {"id": 190, "type": "parameter_declaration", "text": "const char *buf", "parent": 189, "children": [191, 192], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 57}}, {"id": 191, "type": "primitive_type", "text": "char", "parent": 190, "children": [], "start_point": {"row": 60, "column": 48}, "end_point": {"row": 60, "column": 52}}, {"id": 192, "type": "pointer_declarator", "text": "*buf", "parent": 190, "children": [193, 194], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 57}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 54}}, {"id": 194, "type": "identifier", "text": "buf", "parent": 192, "children": [], "start_point": {"row": 60, "column": 54}, "end_point": {"row": 60, "column": 57}}, {"id": 195, "type": "parameter_declaration", "text": "unsigned int count", "parent": 189, "children": [196, 199], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 76}}, {"id": 196, "type": "sized_type_specifier", "text": "unsigned int", "parent": 195, "children": [197, 198], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 70}}, {"id": 197, "type": "unsigned", "text": "unsigned", "parent": 196, "children": [], "start_point": {"row": 60, "column": 58}, "end_point": {"row": 60, "column": 66}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 196, "children": [], "start_point": {"row": 60, "column": 67}, "end_point": {"row": 60, "column": 70}}, {"id": 199, "type": "identifier", "text": "count", "parent": 195, "children": [], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 76}}, {"id": 200, "type": "parameter_declaration", "text": "const char **wstrPtr", "parent": 189, "children": [201, 202], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 27}}, {"id": 201, "type": "primitive_type", "text": "char", "parent": 200, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 17}}, {"id": 202, "type": "pointer_declarator", "text": "**wstrPtr", "parent": 200, "children": [203, 204], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 27}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 19}}, {"id": 204, "type": "pointer_declarator", "text": "*wstrPtr", "parent": 202, "children": [205, 206], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 27}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 206, "type": "identifier", "text": "wstrPtr", "parent": 204, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 27}}, {"id": 207, "type": "parameter_declaration", "text": "unsigned int *wlenPtr", "parent": 189, "children": [208, 211], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 28}}, {"id": 208, "type": "sized_type_specifier", "text": "unsigned int", "parent": 207, "children": [209, 210], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 19}}, {"id": 209, "type": "unsigned", "text": "unsigned", "parent": 208, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 15}}, {"id": 210, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 19}}, {"id": 211, "type": "pointer_declarator", "text": "*wlenPtr", "parent": 207, "children": [212, 213], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 28}}, {"id": 212, "type": "*", "text": "*", "parent": 211, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 213, "type": "identifier", "text": "wlenPtr", "parent": 211, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 28}}, {"id": 214, "type": "declaration", "text": "const char *wptr;", "parent": 183, "children": [215, 216], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 18}}, {"id": 215, "type": "primitive_type", "text": "char", "parent": 214, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 11}}, {"id": 216, "type": "pointer_declarator", "text": "*wptr", "parent": 214, "children": [217, 218], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 17}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 218, "type": "identifier", "text": "wptr", "parent": 216, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 17}}, {"id": 219, "type": "declaration", "text": "unsigned int consume_cnt = 0;", "parent": 183, "children": [220, 223], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 30}}, {"id": 220, "type": "sized_type_specifier", "text": "unsigned int", "parent": 219, "children": [221, 222], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 13}}, {"id": 221, "type": "unsigned", "text": "unsigned", "parent": 220, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 9}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 220, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 13}}, {"id": 223, "type": "init_declarator", "text": "consume_cnt = 0", "parent": 219, "children": [224, 225, 226], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 29}}, {"id": 224, "type": "identifier", "text": "consume_cnt", "parent": 223, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 25}}, {"id": 225, "type": "=", "text": "=", "parent": 223, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 27}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 223, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 29}}, {"id": 227, "type": "declaration", "text": "unsigned int wlen;", "parent": 183, "children": [228, 231], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 19}}, {"id": 228, "type": "sized_type_specifier", "text": "unsigned int", "parent": 227, "children": [229, 230], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 13}}, {"id": 229, "type": "unsigned", "text": "unsigned", "parent": 228, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 230, "type": "primitive_type", "text": "int", "parent": 228, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 13}}, {"id": 231, "type": "identifier", "text": "wlen", "parent": 227, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 18}}, {"id": 232, "type": "declaration", "text": "unsigned int scnt;", "parent": 183, "children": [233, 236], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 19}}, {"id": 233, "type": "sized_type_specifier", "text": "unsigned int", "parent": 232, "children": [234, 235], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 13}}, {"id": 234, "type": "unsigned", "text": "unsigned", "parent": 233, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 9}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 13}}, {"id": 236, "type": "identifier", "text": "scnt", "parent": 232, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 18}}, {"id": 237, "type": "assignment_expression", "text": "wptr = NULL", "parent": 183, "children": [238, 239, 240], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 12}}, {"id": 238, "type": "identifier", "text": "wptr", "parent": 237, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 5}}, {"id": 239, "type": "=", "text": "=", "parent": 237, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 7}}, {"id": 240, "type": "null", "text": "NULL", "parent": 237, "children": [241], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 12}}, {"id": 241, "type": "NULL", "text": "NULL", "parent": 240, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 12}}, {"id": 242, "type": "assignment_expression", "text": "wlen = 0", "parent": 183, "children": [243, 244, 245], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 243, "type": "identifier", "text": "wlen", "parent": 242, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 5}}, {"id": 244, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 245, "type": "number_literal", "text": "0", "parent": 242, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 246, "type": "assignment_expression", "text": "scnt = debugifc_count_whitespace(buf,count)", "parent": 183, "children": [247, 248, 249], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 44}}, {"id": 247, "type": "identifier", "text": "scnt", "parent": 246, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 248, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 7}}, {"id": 249, "type": "call_expression", "text": "debugifc_count_whitespace(buf,count)", "parent": 246, "children": [250, 251], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 44}}, {"id": 250, "type": "identifier", "text": "debugifc_count_whitespace", "parent": 249, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 33}}, {"id": 251, "type": "argument_list", "text": "(buf,count)", "parent": 249, "children": [252, 253], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 44}}, {"id": 252, "type": "identifier", "text": "buf", "parent": 251, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 37}}, {"id": 253, "type": "identifier", "text": "count", "parent": 251, "children": [], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 43}}, {"id": 254, "type": "assignment_expression", "text": "consume_cnt += scnt", "parent": 183, "children": [255, 256, 257], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 20}}, {"id": 255, "type": "identifier", "text": "consume_cnt", "parent": 254, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 12}}, {"id": 256, "type": "+=", "text": "+=", "parent": 254, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 15}}, {"id": 257, "type": "identifier", "text": "scnt", "parent": 254, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 20}}, {"id": 258, "type": "assignment_expression", "text": "count -= scnt", "parent": 183, "children": [259, 260, 261], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 35}}, {"id": 259, "type": "identifier", "text": "count", "parent": 258, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 27}}, {"id": 260, "type": "-=", "text": "-=", "parent": 258, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 30}}, {"id": 261, "type": "identifier", "text": "scnt", "parent": 258, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 35}}, {"id": 262, "type": "assignment_expression", "text": "buf += scnt", "parent": 183, "children": [263, 264, 265], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 48}}, {"id": 263, "type": "identifier", "text": "buf", "parent": 262, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 40}}, {"id": 264, "type": "+=", "text": "+=", "parent": 262, "children": [], "start_point": {"row": 72, "column": 41}, "end_point": {"row": 72, "column": 43}}, {"id": 265, "type": "identifier", "text": "scnt", "parent": 262, "children": [], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 48}}, {"id": 266, "type": "if_statement", "text": "if (!count) goto done;", "parent": 183, "children": [267, 271], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 23}}, {"id": 267, "type": "parenthesized_expression", "text": "(!count)", "parent": 266, "children": [268], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 12}}, {"id": 268, "type": "unary_expression", "text": "!count", "parent": 267, "children": [269, 270], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 11}}, {"id": 269, "type": "!", "text": "!", "parent": 268, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 6}}, {"id": 270, "type": "identifier", "text": "count", "parent": 268, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 11}}, {"id": 271, "type": "goto_statement", "text": "goto done;", "parent": 266, "children": [272, 273], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 23}}, {"id": 272, "type": "goto", "text": "goto", "parent": 271, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 17}}, {"id": 273, "type": "statement_identifier", "text": "done", "parent": 271, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 22}}, {"id": 274, "type": "assignment_expression", "text": "scnt = debugifc_count_nonwhitespace(buf,count)", "parent": 183, "children": [275, 276, 277], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 47}}, {"id": 275, "type": "identifier", "text": "scnt", "parent": 274, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 5}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 7}}, {"id": 277, "type": "call_expression", "text": "debugifc_count_nonwhitespace(buf,count)", "parent": 274, "children": [278, 279], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 47}}, {"id": 278, "type": "identifier", "text": "debugifc_count_nonwhitespace", "parent": 277, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 36}}, {"id": 279, "type": "argument_list", "text": "(buf,count)", "parent": 277, "children": [280, 281], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 47}}, {"id": 280, "type": "identifier", "text": "buf", "parent": 279, "children": [], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 75, "column": 40}}, {"id": 281, "type": "identifier", "text": "count", "parent": 279, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 46}}, {"id": 282, "type": "if_statement", "text": "if (!scnt) goto done;", "parent": 183, "children": [283, 287], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 22}}, {"id": 283, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 282, "children": [284], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 11}}, {"id": 284, "type": "unary_expression", "text": "!scnt", "parent": 283, "children": [285, 286], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 10}}, {"id": 285, "type": "!", "text": "!", "parent": 284, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 6}}, {"id": 286, "type": "identifier", "text": "scnt", "parent": 284, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 10}}, {"id": 287, "type": "goto_statement", "text": "goto done;", "parent": 282, "children": [288, 289], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 22}}, {"id": 288, "type": "goto", "text": "goto", "parent": 287, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 16}}, {"id": 289, "type": "statement_identifier", "text": "done", "parent": 287, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 21}}, {"id": 290, "type": "assignment_expression", "text": "wptr = buf", "parent": 183, "children": [291, 292, 293], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 11}}, {"id": 291, "type": "identifier", "text": "wptr", "parent": 290, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 7}}, {"id": 293, "type": "identifier", "text": "buf", "parent": 290, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 11}}, {"id": 294, "type": "assignment_expression", "text": "wlen = scnt", "parent": 183, "children": [295, 296, 297], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 12}}, {"id": 295, "type": "identifier", "text": "wlen", "parent": 294, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 5}}, {"id": 296, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 7}}, {"id": 297, "type": "identifier", "text": "scnt", "parent": 294, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 12}}, {"id": 298, "type": "assignment_expression", "text": "consume_cnt += scnt", "parent": 183, "children": [299, 300, 301], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 20}}, {"id": 299, "type": "identifier", "text": "consume_cnt", "parent": 298, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 12}}, {"id": 300, "type": "+=", "text": "+=", "parent": 298, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 15}}, {"id": 301, "type": "identifier", "text": "scnt", "parent": 298, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 20}}, {"id": 302, "type": "assignment_expression", "text": "count -= scnt", "parent": 183, "children": [303, 304, 305], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 35}}, {"id": 303, "type": "identifier", "text": "count", "parent": 302, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 27}}, {"id": 304, "type": "-=", "text": "-=", "parent": 302, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 30}}, {"id": 305, "type": "identifier", "text": "scnt", "parent": 302, "children": [], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 35}}, {"id": 306, "type": "assignment_expression", "text": "buf += scnt", "parent": 183, "children": [307, 308, 309], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 48}}, {"id": 307, "type": "identifier", "text": "buf", "parent": 306, "children": [], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 40}}, {"id": 308, "type": "+=", "text": "+=", "parent": 306, "children": [], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 43}}, {"id": 309, "type": "identifier", "text": "scnt", "parent": 306, "children": [], "start_point": {"row": 79, "column": 44}, "end_point": {"row": 79, "column": 48}}, {"id": 310, "type": "labeled_statement", "text": "done:\n\t*wstrPtr = wptr;", "parent": 183, "children": [311], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 82, "column": 17}}, {"id": 311, "type": "statement_identifier", "text": "done", "parent": 310, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 312, "type": "assignment_expression", "text": "*wstrPtr = wptr", "parent": 310, "children": [313, 316, 317], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 16}}, {"id": 313, "type": "pointer_expression", "text": "*wstrPtr", "parent": 312, "children": [314, 315], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 9}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 2}}, {"id": 315, "type": "identifier", "text": "wstrPtr", "parent": 313, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 9}}, {"id": 316, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 317, "type": "identifier", "text": "wptr", "parent": 312, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 16}}, {"id": 318, "type": "assignment_expression", "text": "*wlenPtr = wlen", "parent": 183, "children": [319, 322, 323], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 16}}, {"id": 319, "type": "pointer_expression", "text": "*wlenPtr", "parent": 318, "children": [320, 321], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 9}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 321, "type": "identifier", "text": "wlenPtr", "parent": 319, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 9}}, {"id": 322, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 11}}, {"id": 323, "type": "identifier", "text": "wlen", "parent": 318, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 16}}, {"id": 324, "type": "return_statement", "text": "return consume_cnt;", "parent": 183, "children": [325], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 20}}, {"id": 325, "type": "identifier", "text": "consume_cnt", "parent": 324, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 19}}, {"id": 326, "type": "function_definition", "text": "static int debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)\n{\n\tu32 result = 0;\n\tint radix = 10;\n\tif ((count >= 2) && (buf[0] == '0') &&\n\t ((buf[1] == 'x') || (buf[1] == 'X'))) {\n\t\tradix = 16;\n\t\tcount -= 2;\n\t\tbuf += 2;\n\t} else if ((count >= 1) && (buf[0] == '0')) {\n\t\tradix = 8;\n\t}\n\n\twhile (count--) {\n\t\tint val = hex_to_bin(*buf++);\n\t\tif (val < 0 || val >= radix)\n\t\t\treturn -EINVAL;\n\t\tresult *= radix;\n\t\tresult += val;\n\t}\n\t*num_ptr = result;\n\treturn 0;\n}", "parent": null, "children": [327, 328], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 327, "type": "primitive_type", "text": "int", "parent": 326, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 10}}, {"id": 328, "type": "function_declarator", "text": "debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)", "parent": 326, "children": [329, 330], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 89, "column": 20}}, {"id": 329, "type": "identifier", "text": "debugifc_parse_unsigned_number", "parent": 328, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 41}}, {"id": 330, "type": "parameter_list", "text": "(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)", "parent": 328, "children": [331, 336, 341], "start_point": {"row": 88, "column": 41}, "end_point": {"row": 89, "column": 20}}, {"id": 331, "type": "parameter_declaration", "text": "const char *buf", "parent": 330, "children": [332, 333], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 57}}, {"id": 332, "type": "primitive_type", "text": "char", "parent": 331, "children": [], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 52}}, {"id": 333, "type": "pointer_declarator", "text": "*buf", "parent": 331, "children": [334, 335], "start_point": {"row": 88, "column": 53}, "end_point": {"row": 88, "column": 57}}, {"id": 334, "type": "*", "text": "*", "parent": 333, "children": [], "start_point": {"row": 88, "column": 53}, "end_point": {"row": 88, "column": 54}}, {"id": 335, "type": "identifier", "text": "buf", "parent": 333, "children": [], "start_point": {"row": 88, "column": 54}, "end_point": {"row": 88, "column": 57}}, {"id": 336, "type": "parameter_declaration", "text": "unsigned int count", "parent": 330, "children": [337, 340], "start_point": {"row": 88, "column": 58}, "end_point": {"row": 88, "column": 76}}, {"id": 337, "type": "sized_type_specifier", "text": "unsigned int", "parent": 336, "children": [338, 339], "start_point": {"row": 88, "column": 58}, "end_point": {"row": 88, "column": 70}}, {"id": 338, "type": "unsigned", "text": "unsigned", "parent": 337, "children": [], "start_point": {"row": 88, "column": 58}, "end_point": {"row": 88, "column": 66}}, {"id": 339, "type": "primitive_type", "text": "int", "parent": 337, "children": [], "start_point": {"row": 88, "column": 67}, "end_point": {"row": 88, "column": 70}}, {"id": 340, "type": "identifier", "text": "count", "parent": 336, "children": [], "start_point": {"row": 88, "column": 71}, "end_point": {"row": 88, "column": 76}}, {"id": 341, "type": "parameter_declaration", "text": "u32 *num_ptr", "parent": 330, "children": [342, 343], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 19}}, {"id": 342, "type": "type_identifier", "text": "u32", "parent": 341, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 10}}, {"id": 343, "type": "pointer_declarator", "text": "*num_ptr", "parent": 341, "children": [344, 345], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 19}}, {"id": 344, "type": "*", "text": "*", "parent": 343, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 12}}, {"id": 345, "type": "identifier", "text": "num_ptr", "parent": 343, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 19}}, {"id": 346, "type": "declaration", "text": "u32 result = 0;", "parent": 326, "children": [347, 348], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 16}}, {"id": 347, "type": "type_identifier", "text": "u32", "parent": 346, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 4}}, {"id": 348, "type": "init_declarator", "text": "result = 0", "parent": 346, "children": [349, 350, 351], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 15}}, {"id": 349, "type": "identifier", "text": "result", "parent": 348, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 11}}, {"id": 350, "type": "=", "text": "=", "parent": 348, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 13}}, {"id": 351, "type": "number_literal", "text": "0", "parent": 348, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 15}}, {"id": 352, "type": "declaration", "text": "int radix = 10;", "parent": 326, "children": [353, 354], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 16}}, {"id": 353, "type": "primitive_type", "text": "int", "parent": 352, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 4}}, {"id": 354, "type": "init_declarator", "text": "radix = 10", "parent": 352, "children": [355, 356, 357], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 15}}, {"id": 355, "type": "identifier", "text": "radix", "parent": 354, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 10}}, {"id": 356, "type": "=", "text": "=", "parent": 354, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 12}}, {"id": 357, "type": "number_literal", "text": "10", "parent": 354, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 15}}, {"id": 358, "type": "if_statement", "text": "if ((count >= 2) && (buf[0] == '0') &&\n\t ((buf[1] == 'x') || (buf[1] == 'X'))) {\n\t\tradix = 16;\n\t\tcount -= 2;\n\t\tbuf += 2;\n\t} else if ((count >= 1) && (buf[0] == '0')) {\n\t\tradix = 8;\n\t}", "parent": 326, "children": [359, 414], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 100, "column": 2}}, {"id": 359, "type": "parenthesized_expression", "text": "((count >= 2) && (buf[0] == '0') &&\n\t ((buf[1] == 'x') || (buf[1] == 'X')))", "parent": 358, "children": [360], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 94, "column": 42}}, {"id": 360, "type": "binary_expression", "text": "(count >= 2) && (buf[0] == '0') &&\n\t ((buf[1] == 'x') || (buf[1] == 'X'))", "parent": 359, "children": [361, 378, 379], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 94, "column": 41}}, {"id": 361, "type": "binary_expression", "text": "(count >= 2) && (buf[0] == '0')", "parent": 360, "children": [362, 367, 368], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 36}}, {"id": 362, "type": "parenthesized_expression", "text": "(count >= 2)", "parent": 361, "children": [363], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 17}}, {"id": 363, "type": "binary_expression", "text": "count >= 2", "parent": 362, "children": [364, 365, 366], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 16}}, {"id": 364, "type": "identifier", "text": "count", "parent": 363, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 11}}, {"id": 365, "type": ">=", "text": ">=", "parent": 363, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 14}}, {"id": 366, "type": "number_literal", "text": "2", "parent": 363, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 16}}, {"id": 367, "type": "&&", "text": "&&", "parent": 361, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 20}}, {"id": 368, "type": "parenthesized_expression", "text": "(buf[0] == '0')", "parent": 361, "children": [369], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 36}}, {"id": 369, "type": "binary_expression", "text": "buf[0] == '0'", "parent": 368, "children": [370, 373, 374], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 35}}, {"id": 370, "type": "subscript_expression", "text": "buf[0]", "parent": 369, "children": [371, 372], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 28}}, {"id": 371, "type": "identifier", "text": "buf", "parent": 370, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 25}}, {"id": 372, "type": "number_literal", "text": "0", "parent": 370, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 27}}, {"id": 373, "type": "==", "text": "==", "parent": 369, "children": [], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 31}}, {"id": 374, "type": "char_literal", "text": "'0'", "parent": 369, "children": [375, 376, 377], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 35}}, {"id": 375, "type": "'", "text": "'", "parent": 374, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 33}}, {"id": 376, "type": "character", "text": "0", "parent": 374, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 34}}, {"id": 377, "type": "'", "text": "'", "parent": 374, "children": [], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 35}}, {"id": 378, "type": "&&", "text": "&&", "parent": 360, "children": [], "start_point": {"row": 93, "column": 37}, "end_point": {"row": 93, "column": 39}}, {"id": 379, "type": "parenthesized_expression", "text": "((buf[1] == 'x') || (buf[1] == 'X'))", "parent": 360, "children": [380], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 41}}, {"id": 380, "type": "binary_expression", "text": "(buf[1] == 'x') || (buf[1] == 'X')", "parent": 379, "children": [381, 391, 392], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 40}}, {"id": 381, "type": "parenthesized_expression", "text": "(buf[1] == 'x')", "parent": 380, "children": [382], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 21}}, {"id": 382, "type": "binary_expression", "text": "buf[1] == 'x'", "parent": 381, "children": [383, 386, 387], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 20}}, {"id": 383, "type": "subscript_expression", "text": "buf[1]", "parent": 382, "children": [384, 385], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 13}}, {"id": 384, "type": "identifier", "text": "buf", "parent": 383, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 10}}, {"id": 385, "type": "number_literal", "text": "1", "parent": 383, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 12}}, {"id": 386, "type": "==", "text": "==", "parent": 382, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 16}}, {"id": 387, "type": "char_literal", "text": "'x'", "parent": 382, "children": [388, 389, 390], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 20}}, {"id": 388, "type": "'", "text": "'", "parent": 387, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 18}}, {"id": 389, "type": "character", "text": "x", "parent": 387, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 19}}, {"id": 390, "type": "'", "text": "'", "parent": 387, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 20}}, {"id": 391, "type": "||", "text": "||", "parent": 380, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 24}}, {"id": 392, "type": "parenthesized_expression", "text": "(buf[1] == 'X')", "parent": 380, "children": [393], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 40}}, {"id": 393, "type": "binary_expression", "text": "buf[1] == 'X'", "parent": 392, "children": [394, 397, 398], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 39}}, {"id": 394, "type": "subscript_expression", "text": "buf[1]", "parent": 393, "children": [395, 396], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 32}}, {"id": 395, "type": "identifier", "text": "buf", "parent": 394, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 29}}, {"id": 396, "type": "number_literal", "text": "1", "parent": 394, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 31}}, {"id": 397, "type": "==", "text": "==", "parent": 393, "children": [], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 35}}, {"id": 398, "type": "char_literal", "text": "'X'", "parent": 393, "children": [399, 400, 401], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 39}}, {"id": 399, "type": "'", "text": "'", "parent": 398, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 37}}, {"id": 400, "type": "character", "text": "X", "parent": 398, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 38}}, {"id": 401, "type": "'", "text": "'", "parent": 398, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 39}}, {"id": 402, "type": "assignment_expression", "text": "radix = 16", "parent": 358, "children": [403, 404, 405], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 12}}, {"id": 403, "type": "identifier", "text": "radix", "parent": 402, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 7}}, {"id": 404, "type": "=", "text": "=", "parent": 402, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 405, "type": "number_literal", "text": "16", "parent": 402, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 12}}, {"id": 406, "type": "assignment_expression", "text": "count -= 2", "parent": 358, "children": [407, 408, 409], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 12}}, {"id": 407, "type": "identifier", "text": "count", "parent": 406, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 7}}, {"id": 408, "type": "-=", "text": "-=", "parent": 406, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 10}}, {"id": 409, "type": "number_literal", "text": "2", "parent": 406, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 410, "type": "assignment_expression", "text": "buf += 2", "parent": 358, "children": [411, 412, 413], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 10}}, {"id": 411, "type": "identifier", "text": "buf", "parent": 410, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 5}}, {"id": 412, "type": "+=", "text": "+=", "parent": 410, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 8}}, {"id": 413, "type": "number_literal", "text": "2", "parent": 410, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 414, "type": "else_clause", "text": "else if ((count >= 1) && (buf[0] == '0')) {\n\t\tradix = 8;\n\t}", "parent": 358, "children": [415], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 100, "column": 2}}, {"id": 415, "type": "if_statement", "text": "if ((count >= 1) && (buf[0] == '0')) {\n\t\tradix = 8;\n\t}", "parent": 414, "children": [416], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 100, "column": 2}}, {"id": 416, "type": "parenthesized_expression", "text": "((count >= 1) && (buf[0] == '0'))", "parent": 415, "children": [417], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 44}}, {"id": 417, "type": "binary_expression", "text": "(count >= 1) && (buf[0] == '0')", "parent": 416, "children": [418, 423, 424], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 43}}, {"id": 418, "type": "parenthesized_expression", "text": "(count >= 1)", "parent": 417, "children": [419], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 24}}, {"id": 419, "type": "binary_expression", "text": "count >= 1", "parent": 418, "children": [420, 421, 422], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 23}}, {"id": 420, "type": "identifier", "text": "count", "parent": 419, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 18}}, {"id": 421, "type": ">=", "text": ">=", "parent": 419, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 21}}, {"id": 422, "type": "number_literal", "text": "1", "parent": 419, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 23}}, {"id": 423, "type": "&&", "text": "&&", "parent": 417, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 27}}, {"id": 424, "type": "parenthesized_expression", "text": "(buf[0] == '0')", "parent": 417, "children": [425], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 43}}, {"id": 425, "type": "binary_expression", "text": "buf[0] == '0'", "parent": 424, "children": [426, 429, 430], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 42}}, {"id": 426, "type": "subscript_expression", "text": "buf[0]", "parent": 425, "children": [427, 428], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 35}}, {"id": 427, "type": "identifier", "text": "buf", "parent": 426, "children": [], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 32}}, {"id": 428, "type": "number_literal", "text": "0", "parent": 426, "children": [], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 34}}, {"id": 429, "type": "==", "text": "==", "parent": 425, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 38}}, {"id": 430, "type": "char_literal", "text": "'0'", "parent": 425, "children": [431, 432, 433], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 42}}, {"id": 431, "type": "'", "text": "'", "parent": 430, "children": [], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 40}}, {"id": 432, "type": "character", "text": "0", "parent": 430, "children": [], "start_point": {"row": 98, "column": 40}, "end_point": {"row": 98, "column": 41}}, {"id": 433, "type": "'", "text": "'", "parent": 430, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 42}}, {"id": 434, "type": "assignment_expression", "text": "radix = 8", "parent": 415, "children": [435, 436, 437], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 11}}, {"id": 435, "type": "identifier", "text": "radix", "parent": 434, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 7}}, {"id": 436, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 437, "type": "number_literal", "text": "8", "parent": 434, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 11}}, {"id": 438, "type": "while_statement", "text": "while (count--) {\n\t\tint val = hex_to_bin(*buf++);\n\t\tif (val < 0 || val >= radix)\n\t\t\treturn -EINVAL;\n\t\tresult *= radix;\n\t\tresult += val;\n\t}", "parent": 326, "children": [439], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 108, "column": 2}}, {"id": 439, "type": "parenthesized_expression", "text": "(count--)", "parent": 438, "children": [440], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 16}}, {"id": 440, "type": "update_expression", "text": "count--", "parent": 439, "children": [441, 442], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 15}}, {"id": 441, "type": "identifier", "text": "count", "parent": 440, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 13}}, {"id": 442, "type": "--", "text": "--", "parent": 440, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 15}}, {"id": 443, "type": "declaration", "text": "int val = hex_to_bin(*buf++);", "parent": 438, "children": [444, 445], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 31}}, {"id": 444, "type": "primitive_type", "text": "int", "parent": 443, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 5}}, {"id": 445, "type": "init_declarator", "text": "val = hex_to_bin(*buf++)", "parent": 443, "children": [446, 447, 448], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 30}}, {"id": 446, "type": "identifier", "text": "val", "parent": 445, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 9}}, {"id": 447, "type": "=", "text": "=", "parent": 445, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 11}}, {"id": 448, "type": "call_expression", "text": "hex_to_bin(*buf++)", "parent": 445, "children": [449, 450], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 30}}, {"id": 449, "type": "identifier", "text": "hex_to_bin", "parent": 448, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 22}}, {"id": 450, "type": "argument_list", "text": "(*buf++)", "parent": 448, "children": [451], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 30}}, {"id": 451, "type": "pointer_expression", "text": "*buf++", "parent": 450, "children": [452, 453], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 29}}, {"id": 452, "type": "*", "text": "*", "parent": 451, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 24}}, {"id": 453, "type": "update_expression", "text": "buf++", "parent": 451, "children": [454, 455], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 29}}, {"id": 454, "type": "identifier", "text": "buf", "parent": 453, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 27}}, {"id": 455, "type": "++", "text": "++", "parent": 453, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 29}}, {"id": 456, "type": "if_statement", "text": "if (val < 0 || val >= radix)\n\t\t\treturn -EINVAL;", "parent": 438, "children": [457, 468], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 105, "column": 18}}, {"id": 457, "type": "parenthesized_expression", "text": "(val < 0 || val >= radix)", "parent": 456, "children": [458], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 30}}, {"id": 458, "type": "binary_expression", "text": "val < 0 || val >= radix", "parent": 457, "children": [459, 463, 464], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 29}}, {"id": 459, "type": "binary_expression", "text": "val < 0", "parent": 458, "children": [460, 461, 462], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 13}}, {"id": 460, "type": "identifier", "text": "val", "parent": 459, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 9}}, {"id": 461, "type": "<", "text": "<", "parent": 459, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 11}}, {"id": 462, "type": "number_literal", "text": "0", "parent": 459, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 13}}, {"id": 463, "type": "||", "text": "||", "parent": 458, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 16}}, {"id": 464, "type": "binary_expression", "text": "val >= radix", "parent": 458, "children": [465, 466, 467], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 29}}, {"id": 465, "type": "identifier", "text": "val", "parent": 464, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 20}}, {"id": 466, "type": ">=", "text": ">=", "parent": 464, "children": [], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 23}}, {"id": 467, "type": "identifier", "text": "radix", "parent": 464, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 29}}, {"id": 468, "type": "return_statement", "text": "return -EINVAL;", "parent": 456, "children": [469], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 18}}, {"id": 469, "type": "unary_expression", "text": "-EINVAL", "parent": 468, "children": [470, 471], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 17}}, {"id": 470, "type": "-", "text": "-", "parent": 469, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 11}}, {"id": 471, "type": "identifier", "text": "EINVAL", "parent": 469, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 17}}, {"id": 472, "type": "assignment_expression", "text": "result *= radix", "parent": 438, "children": [473, 474, 475], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 17}}, {"id": 473, "type": "identifier", "text": "result", "parent": 472, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 8}}, {"id": 474, "type": "*=", "text": "*=", "parent": 472, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 11}}, {"id": 475, "type": "identifier", "text": "radix", "parent": 472, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 17}}, {"id": 476, "type": "assignment_expression", "text": "result += val", "parent": 438, "children": [477, 478, 479], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 15}}, {"id": 477, "type": "identifier", "text": "result", "parent": 476, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 8}}, {"id": 478, "type": "+=", "text": "+=", "parent": 476, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 11}}, {"id": 479, "type": "identifier", "text": "val", "parent": 476, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 15}}, {"id": 480, "type": "assignment_expression", "text": "*num_ptr = result", "parent": 326, "children": [481, 484, 485], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 18}}, {"id": 481, "type": "pointer_expression", "text": "*num_ptr", "parent": 480, "children": [482, 483], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 9}}, {"id": 482, "type": "*", "text": "*", "parent": 481, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 2}}, {"id": 483, "type": "identifier", "text": "num_ptr", "parent": 481, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 484, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 11}}, {"id": 485, "type": "identifier", "text": "result", "parent": 480, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 18}}, {"id": 486, "type": "return_statement", "text": "return 0;", "parent": 326, "children": [487], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 10}}, {"id": 487, "type": "number_literal", "text": "0", "parent": 486, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 488, "type": "function_definition", "text": "static int debugifc_match_keyword(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)\n{\n\tunsigned int kl;\n\tif (!keyword) return 0;\n\tkl = strlen(keyword);\n\tif (kl != count) return 0;\n\treturn !memcmp(buf,keyword,kl);\n}", "parent": null, "children": [489, 490], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 489, "type": "primitive_type", "text": "int", "parent": 488, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 10}}, {"id": 490, "type": "function_declarator", "text": "debugifc_match_keyword(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)", "parent": 488, "children": [491, 492], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 115, "column": 26}}, {"id": 491, "type": "identifier", "text": "debugifc_match_keyword", "parent": 490, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 33}}, {"id": 492, "type": "parameter_list", "text": "(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)", "parent": 490, "children": [493, 498, 503], "start_point": {"row": 114, "column": 33}, "end_point": {"row": 115, "column": 26}}, {"id": 493, "type": "parameter_declaration", "text": "const char *buf", "parent": 492, "children": [494, 495], "start_point": {"row": 114, "column": 34}, "end_point": {"row": 114, "column": 49}}, {"id": 494, "type": "primitive_type", "text": "char", "parent": 493, "children": [], "start_point": {"row": 114, "column": 40}, "end_point": {"row": 114, "column": 44}}, {"id": 495, "type": "pointer_declarator", "text": "*buf", "parent": 493, "children": [496, 497], "start_point": {"row": 114, "column": 45}, "end_point": {"row": 114, "column": 49}}, {"id": 496, "type": "*", "text": "*", "parent": 495, "children": [], "start_point": {"row": 114, "column": 45}, "end_point": {"row": 114, "column": 46}}, {"id": 497, "type": "identifier", "text": "buf", "parent": 495, "children": [], "start_point": {"row": 114, "column": 46}, "end_point": {"row": 114, "column": 49}}, {"id": 498, "type": "parameter_declaration", "text": "unsigned int count", "parent": 492, "children": [499, 502], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 68}}, {"id": 499, "type": "sized_type_specifier", "text": "unsigned int", "parent": 498, "children": [500, 501], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 62}}, {"id": 500, "type": "unsigned", "text": "unsigned", "parent": 499, "children": [], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 58}}, {"id": 501, "type": "primitive_type", "text": "int", "parent": 499, "children": [], "start_point": {"row": 114, "column": 59}, "end_point": {"row": 114, "column": 62}}, {"id": 502, "type": "identifier", "text": "count", "parent": 498, "children": [], "start_point": {"row": 114, "column": 63}, "end_point": {"row": 114, "column": 68}}, {"id": 503, "type": "parameter_declaration", "text": "const char *keyword", "parent": 492, "children": [504, 505], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 25}}, {"id": 504, "type": "primitive_type", "text": "char", "parent": 503, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 16}}, {"id": 505, "type": "pointer_declarator", "text": "*keyword", "parent": 503, "children": [506, 507], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 25}}, {"id": 506, "type": "*", "text": "*", "parent": 505, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 18}}, {"id": 507, "type": "identifier", "text": "keyword", "parent": 505, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 25}}, {"id": 508, "type": "declaration", "text": "unsigned int kl;", "parent": 488, "children": [509, 512], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 17}}, {"id": 509, "type": "sized_type_specifier", "text": "unsigned int", "parent": 508, "children": [510, 511], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 13}}, {"id": 510, "type": "unsigned", "text": "unsigned", "parent": 509, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 9}}, {"id": 511, "type": "primitive_type", "text": "int", "parent": 509, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 13}}, {"id": 512, "type": "identifier", "text": "kl", "parent": 508, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 16}}, {"id": 513, "type": "if_statement", "text": "if (!keyword) return 0;", "parent": 488, "children": [514, 518], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 24}}, {"id": 514, "type": "parenthesized_expression", "text": "(!keyword)", "parent": 513, "children": [515], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 14}}, {"id": 515, "type": "unary_expression", "text": "!keyword", "parent": 514, "children": [516, 517], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 13}}, {"id": 516, "type": "!", "text": "!", "parent": 515, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 6}}, {"id": 517, "type": "identifier", "text": "keyword", "parent": 515, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 13}}, {"id": 518, "type": "return_statement", "text": "return 0;", "parent": 513, "children": [519], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 24}}, {"id": 519, "type": "number_literal", "text": "0", "parent": 518, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 23}}, {"id": 520, "type": "assignment_expression", "text": "kl = strlen(keyword)", "parent": 488, "children": [521, 522, 523], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 21}}, {"id": 521, "type": "identifier", "text": "kl", "parent": 520, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 3}}, {"id": 522, "type": "=", "text": "=", "parent": 520, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 523, "type": "call_expression", "text": "strlen(keyword)", "parent": 520, "children": [524, 525], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 21}}, {"id": 524, "type": "identifier", "text": "strlen", "parent": 523, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 12}}, {"id": 525, "type": "argument_list", "text": "(keyword)", "parent": 523, "children": [526], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 21}}, {"id": 526, "type": "identifier", "text": "keyword", "parent": 525, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 20}}, {"id": 527, "type": "if_statement", "text": "if (kl != count) return 0;", "parent": 488, "children": [528, 533], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 27}}, {"id": 528, "type": "parenthesized_expression", "text": "(kl != count)", "parent": 527, "children": [529], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 17}}, {"id": 529, "type": "binary_expression", "text": "kl != count", "parent": 528, "children": [530, 531, 532], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 16}}, {"id": 530, "type": "identifier", "text": "kl", "parent": 529, "children": [], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 7}}, {"id": 531, "type": "!=", "text": "!=", "parent": 529, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 10}}, {"id": 532, "type": "identifier", "text": "count", "parent": 529, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 16}}, {"id": 533, "type": "return_statement", "text": "return 0;", "parent": 527, "children": [534], "start_point": {"row": 120, "column": 18}, "end_point": {"row": 120, "column": 27}}, {"id": 534, "type": "number_literal", "text": "0", "parent": 533, "children": [], "start_point": {"row": 120, "column": 25}, "end_point": {"row": 120, "column": 26}}, {"id": 535, "type": "return_statement", "text": "return !memcmp(buf,keyword,kl);", "parent": 488, "children": [536], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 32}}, {"id": 536, "type": "unary_expression", "text": "!memcmp(buf,keyword,kl)", "parent": 535, "children": [537, 538], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 31}}, {"id": 537, "type": "!", "text": "!", "parent": 536, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 9}}, {"id": 538, "type": "call_expression", "text": "memcmp(buf,keyword,kl)", "parent": 536, "children": [539, 540], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 31}}, {"id": 539, "type": "identifier", "text": "memcmp", "parent": 538, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 15}}, {"id": 540, "type": "argument_list", "text": "(buf,keyword,kl)", "parent": 538, "children": [541, 542, 543], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 31}}, {"id": 541, "type": "identifier", "text": "buf", "parent": 540, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 19}}, {"id": 542, "type": "identifier", "text": "keyword", "parent": 540, "children": [], "start_point": {"row": 121, "column": 20}, "end_point": {"row": 121, "column": 27}}, {"id": 543, "type": "identifier", "text": "kl", "parent": 540, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 30}}, {"id": 544, "type": "function_definition", "text": "int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)\n{\n\tint bcnt = 0;\n\tint ccnt;\n\tccnt = scnprintf(buf, acnt, \"Driver hardware description: %s\\n\",\n\t\t\t pvr2_hdw_get_desc(hdw));\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\tccnt = scnprintf(buf,acnt,\"Driver state info:\\n\");\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\tccnt = pvr2_hdw_state_report(hdw,buf,acnt);\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\treturn bcnt;\n}", "parent": null, "children": [545, 546], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 545, "type": "primitive_type", "text": "int", "parent": 544, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 3}}, {"id": 546, "type": "function_declarator", "text": "pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)", "parent": 544, "children": [547, 548], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 78}}, {"id": 547, "type": "identifier", "text": "pvr2_debugifc_print_info", "parent": 546, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 28}}, {"id": 548, "type": "parameter_list", "text": "(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)", "parent": 546, "children": [549, 556, 561], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 78}}, {"id": 549, "type": "parameter_declaration", "text": "struct pvr2_hdw *hdw", "parent": 548, "children": [550, 553], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 49}}, {"id": 550, "type": "struct_specifier", "text": "struct pvr2_hdw", "parent": 549, "children": [551, 552], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 44}}, {"id": 551, "type": "struct", "text": "struct", "parent": 550, "children": [], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 35}}, {"id": 552, "type": "type_identifier", "text": "pvr2_hdw", "parent": 550, "children": [], "start_point": {"row": 125, "column": 36}, "end_point": {"row": 125, "column": 44}}, {"id": 553, "type": "pointer_declarator", "text": "*hdw", "parent": 549, "children": [554, 555], "start_point": {"row": 125, "column": 45}, "end_point": {"row": 125, "column": 49}}, {"id": 554, "type": "*", "text": "*", "parent": 553, "children": [], "start_point": {"row": 125, "column": 45}, "end_point": {"row": 125, "column": 46}}, {"id": 555, "type": "identifier", "text": "hdw", "parent": 553, "children": [], "start_point": {"row": 125, "column": 46}, "end_point": {"row": 125, "column": 49}}, {"id": 556, "type": "parameter_declaration", "text": "char *buf", "parent": 548, "children": [557, 558], "start_point": {"row": 125, "column": 50}, "end_point": {"row": 125, "column": 59}}, {"id": 557, "type": "primitive_type", "text": "char", "parent": 556, "children": [], "start_point": {"row": 125, "column": 50}, "end_point": {"row": 125, "column": 54}}, {"id": 558, "type": "pointer_declarator", "text": "*buf", "parent": 556, "children": [559, 560], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 59}}, {"id": 559, "type": "*", "text": "*", "parent": 558, "children": [], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 56}}, {"id": 560, "type": "identifier", "text": "buf", "parent": 558, "children": [], "start_point": {"row": 125, "column": 56}, "end_point": {"row": 125, "column": 59}}, {"id": 561, "type": "parameter_declaration", "text": "unsigned int acnt", "parent": 548, "children": [562, 565], "start_point": {"row": 125, "column": 60}, "end_point": {"row": 125, "column": 77}}, {"id": 562, "type": "sized_type_specifier", "text": "unsigned int", "parent": 561, "children": [563, 564], "start_point": {"row": 125, "column": 60}, "end_point": {"row": 125, "column": 72}}, {"id": 563, "type": "unsigned", "text": "unsigned", "parent": 562, "children": [], "start_point": {"row": 125, "column": 60}, "end_point": {"row": 125, "column": 68}}, {"id": 564, "type": "primitive_type", "text": "int", "parent": 562, "children": [], "start_point": {"row": 125, "column": 69}, "end_point": {"row": 125, "column": 72}}, {"id": 565, "type": "identifier", "text": "acnt", "parent": 561, "children": [], "start_point": {"row": 125, "column": 73}, "end_point": {"row": 125, "column": 77}}, {"id": 566, "type": "declaration", "text": "int bcnt = 0;", "parent": 544, "children": [567, 568], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 14}}, {"id": 567, "type": "primitive_type", "text": "int", "parent": 566, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 4}}, {"id": 568, "type": "init_declarator", "text": "bcnt = 0", "parent": 566, "children": [569, 570, 571], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 13}}, {"id": 569, "type": "identifier", "text": "bcnt", "parent": 568, "children": [], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 9}}, {"id": 570, "type": "=", "text": "=", "parent": 568, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 11}}, {"id": 571, "type": "number_literal", "text": "0", "parent": 568, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 13}}, {"id": 572, "type": "declaration", "text": "int ccnt;", "parent": 544, "children": [573, 574], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 10}}, {"id": 573, "type": "primitive_type", "text": "int", "parent": 572, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 4}}, {"id": 574, "type": "identifier", "text": "ccnt", "parent": 572, "children": [], "start_point": {"row": 128, "column": 5}, "end_point": {"row": 128, "column": 9}}, {"id": 575, "type": "assignment_expression", "text": "ccnt = scnprintf(buf, acnt, \"Driver hardware description: %s\\n\",\n\t\t\t pvr2_hdw_get_desc(hdw))", "parent": 544, "children": [576, 577, 578], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 130, "column": 27}}, {"id": 576, "type": "identifier", "text": "ccnt", "parent": 575, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 5}}, {"id": 577, "type": "=", "text": "=", "parent": 575, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 7}}, {"id": 578, "type": "call_expression", "text": "scnprintf(buf, acnt, \"Driver hardware description: %s\\n\",\n\t\t\t pvr2_hdw_get_desc(hdw))", "parent": 575, "children": [579, 580], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 130, "column": 27}}, {"id": 579, "type": "identifier", "text": "scnprintf", "parent": 578, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 17}}, {"id": 580, "type": "argument_list", "text": "(buf, acnt, \"Driver hardware description: %s\\n\",\n\t\t\t pvr2_hdw_get_desc(hdw))", "parent": 578, "children": [581, 582, 583, 585], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 130, "column": 27}}, {"id": 581, "type": "identifier", "text": "buf", "parent": 580, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 21}}, {"id": 582, "type": "identifier", "text": "acnt", "parent": 580, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 27}}, {"id": 583, "type": "string_literal", "text": "\"Driver hardware description: %s\\n\"", "parent": 580, "children": [584], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 64}}, {"id": 584, "type": "escape_sequence", "text": "\\n", "parent": 583, "children": [], "start_point": {"row": 129, "column": 61}, "end_point": {"row": 129, "column": 63}}, {"id": 585, "type": "call_expression", "text": "pvr2_hdw_get_desc(hdw)", "parent": 580, "children": [586, 587], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 26}}, {"id": 586, "type": "identifier", "text": "pvr2_hdw_get_desc", "parent": 585, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 21}}, {"id": 587, "type": "argument_list", "text": "(hdw)", "parent": 585, "children": [588], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 26}}, {"id": 588, "type": "identifier", "text": "hdw", "parent": 587, "children": [], "start_point": {"row": 130, "column": 22}, "end_point": {"row": 130, "column": 25}}, {"id": 589, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 544, "children": [590, 591, 592], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 13}}, {"id": 590, "type": "identifier", "text": "bcnt", "parent": 589, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 5}}, {"id": 591, "type": "+=", "text": "+=", "parent": 589, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 8}}, {"id": 592, "type": "identifier", "text": "ccnt", "parent": 589, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 13}}, {"id": 593, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 544, "children": [594, 595, 596], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 27}}, {"id": 594, "type": "identifier", "text": "acnt", "parent": 593, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 19}}, {"id": 595, "type": "-=", "text": "-=", "parent": 593, "children": [], "start_point": {"row": 131, "column": 20}, "end_point": {"row": 131, "column": 22}}, {"id": 596, "type": "identifier", "text": "ccnt", "parent": 593, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 27}}, {"id": 597, "type": "assignment_expression", "text": "buf += ccnt", "parent": 544, "children": [598, 599, 600], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 40}}, {"id": 598, "type": "identifier", "text": "buf", "parent": 597, "children": [], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 32}}, {"id": 599, "type": "+=", "text": "+=", "parent": 597, "children": [], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 35}}, {"id": 600, "type": "identifier", "text": "ccnt", "parent": 597, "children": [], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 40}}, {"id": 601, "type": "assignment_expression", "text": "ccnt = scnprintf(buf,acnt,\"Driver state info:\\n\")", "parent": 544, "children": [602, 603, 604], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 50}}, {"id": 602, "type": "identifier", "text": "ccnt", "parent": 601, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 5}}, {"id": 603, "type": "=", "text": "=", "parent": 601, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 7}}, {"id": 604, "type": "call_expression", "text": "scnprintf(buf,acnt,\"Driver state info:\\n\")", "parent": 601, "children": [605, 606], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 50}}, {"id": 605, "type": "identifier", "text": "scnprintf", "parent": 604, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 17}}, {"id": 606, "type": "argument_list", "text": "(buf,acnt,\"Driver state info:\\n\")", "parent": 604, "children": [607, 608, 609], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 50}}, {"id": 607, "type": "identifier", "text": "buf", "parent": 606, "children": [], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 21}}, {"id": 608, "type": "identifier", "text": "acnt", "parent": 606, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 26}}, {"id": 609, "type": "string_literal", "text": "\"Driver state info:\\n\"", "parent": 606, "children": [610], "start_point": {"row": 132, "column": 27}, "end_point": {"row": 132, "column": 49}}, {"id": 610, "type": "escape_sequence", "text": "\\n", "parent": 609, "children": [], "start_point": {"row": 132, "column": 46}, "end_point": {"row": 132, "column": 48}}, {"id": 611, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 544, "children": [612, 613, 614], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 13}}, {"id": 612, "type": "identifier", "text": "bcnt", "parent": 611, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 5}}, {"id": 613, "type": "+=", "text": "+=", "parent": 611, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 8}}, {"id": 614, "type": "identifier", "text": "ccnt", "parent": 611, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 13}}, {"id": 615, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 544, "children": [616, 617, 618], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 27}}, {"id": 616, "type": "identifier", "text": "acnt", "parent": 615, "children": [], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 19}}, {"id": 617, "type": "-=", "text": "-=", "parent": 615, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 22}}, {"id": 618, "type": "identifier", "text": "ccnt", "parent": 615, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 27}}, {"id": 619, "type": "assignment_expression", "text": "buf += ccnt", "parent": 544, "children": [620, 621, 622], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 40}}, {"id": 620, "type": "identifier", "text": "buf", "parent": 619, "children": [], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 32}}, {"id": 621, "type": "+=", "text": "+=", "parent": 619, "children": [], "start_point": {"row": 133, "column": 33}, "end_point": {"row": 133, "column": 35}}, {"id": 622, "type": "identifier", "text": "ccnt", "parent": 619, "children": [], "start_point": {"row": 133, "column": 36}, "end_point": {"row": 133, "column": 40}}, {"id": 623, "type": "assignment_expression", "text": "ccnt = pvr2_hdw_state_report(hdw,buf,acnt)", "parent": 544, "children": [624, 625, 626], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 43}}, {"id": 624, "type": "identifier", "text": "ccnt", "parent": 623, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 5}}, {"id": 625, "type": "=", "text": "=", "parent": 623, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 7}}, {"id": 626, "type": "call_expression", "text": "pvr2_hdw_state_report(hdw,buf,acnt)", "parent": 623, "children": [627, 628], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 43}}, {"id": 627, "type": "identifier", "text": "pvr2_hdw_state_report", "parent": 626, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 29}}, {"id": 628, "type": "argument_list", "text": "(hdw,buf,acnt)", "parent": 626, "children": [629, 630, 631], "start_point": {"row": 134, "column": 29}, "end_point": {"row": 134, "column": 43}}, {"id": 629, "type": "identifier", "text": "hdw", "parent": 628, "children": [], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 33}}, {"id": 630, "type": "identifier", "text": "buf", "parent": 628, "children": [], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 37}}, {"id": 631, "type": "identifier", "text": "acnt", "parent": 628, "children": [], "start_point": {"row": 134, "column": 38}, "end_point": {"row": 134, "column": 42}}, {"id": 632, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 544, "children": [633, 634, 635], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 13}}, {"id": 633, "type": "identifier", "text": "bcnt", "parent": 632, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 5}}, {"id": 634, "type": "+=", "text": "+=", "parent": 632, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 8}}, {"id": 635, "type": "identifier", "text": "ccnt", "parent": 632, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 13}}, {"id": 636, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 544, "children": [637, 638, 639], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 27}}, {"id": 637, "type": "identifier", "text": "acnt", "parent": 636, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 19}}, {"id": 638, "type": "-=", "text": "-=", "parent": 636, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 22}}, {"id": 639, "type": "identifier", "text": "ccnt", "parent": 636, "children": [], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 27}}, {"id": 640, "type": "assignment_expression", "text": "buf += ccnt", "parent": 544, "children": [641, 642, 643], "start_point": {"row": 135, "column": 29}, "end_point": {"row": 135, "column": 40}}, {"id": 641, "type": "identifier", "text": "buf", "parent": 640, "children": [], "start_point": {"row": 135, "column": 29}, "end_point": {"row": 135, "column": 32}}, {"id": 642, "type": "+=", "text": "+=", "parent": 640, "children": [], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 35}}, {"id": 643, "type": "identifier", "text": "ccnt", "parent": 640, "children": [], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 40}}, {"id": 644, "type": "return_statement", "text": "return bcnt;", "parent": 544, "children": [645], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 13}}, {"id": 645, "type": "identifier", "text": "bcnt", "parent": 644, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 12}}, {"id": 646, "type": "function_definition", "text": "int pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)\n{\n\tint bcnt = 0;\n\tint ccnt;\n\tint ret;\n\tu32 gpio_dir,gpio_in,gpio_out;\n\tstruct pvr2_stream_stats stats;\n\tstruct pvr2_stream *sp;\n\n\tret = pvr2_hdw_is_hsm(hdw);\n\tccnt = scnprintf(buf,acnt,\"USB link speed: %s\\n\",\n\t\t\t (ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")));\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\tgpio_dir = 0; gpio_in = 0; gpio_out = 0;\n\tpvr2_hdw_gpio_get_dir(hdw,&gpio_dir);\n\tpvr2_hdw_gpio_get_out(hdw,&gpio_out);\n\tpvr2_hdw_gpio_get_in(hdw,&gpio_in);\n\tccnt = scnprintf(buf,acnt,\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\",\n\t\t\t gpio_dir,gpio_in,gpio_out);\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\tccnt = scnprintf(buf,acnt,\"Streaming is %s\\n\",\n\t\t\t pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\");\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\n\tsp = pvr2_hdw_get_video_stream(hdw);\n\tif (sp) {\n\t\tpvr2_stream_get_stats(sp, &stats, 0);\n\t\tccnt = scnprintf(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed);\n\t\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\t}\n\n\treturn bcnt;\n}", "parent": null, "children": [647, 648], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 185, "column": 1}}, {"id": 647, "type": "primitive_type", "text": "int", "parent": 646, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 3}}, {"id": 648, "type": "function_declarator", "text": "pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)", "parent": 646, "children": [649, 650], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 142, "column": 38}}, {"id": 649, "type": "identifier", "text": "pvr2_debugifc_print_status", "parent": 648, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 30}}, {"id": 650, "type": "parameter_list", "text": "(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)", "parent": 648, "children": [651, 658, 663], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 142, "column": 38}}, {"id": 651, "type": "parameter_declaration", "text": "struct pvr2_hdw *hdw", "parent": 650, "children": [652, 655], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 51}}, {"id": 652, "type": "struct_specifier", "text": "struct pvr2_hdw", "parent": 651, "children": [653, 654], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 46}}, {"id": 653, "type": "struct", "text": "struct", "parent": 652, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 37}}, {"id": 654, "type": "type_identifier", "text": "pvr2_hdw", "parent": 652, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 46}}, {"id": 655, "type": "pointer_declarator", "text": "*hdw", "parent": 651, "children": [656, 657], "start_point": {"row": 141, "column": 47}, "end_point": {"row": 141, "column": 51}}, {"id": 656, "type": "*", "text": "*", "parent": 655, "children": [], "start_point": {"row": 141, "column": 47}, "end_point": {"row": 141, "column": 48}}, {"id": 657, "type": "identifier", "text": "hdw", "parent": 655, "children": [], "start_point": {"row": 141, "column": 48}, "end_point": {"row": 141, "column": 51}}, {"id": 658, "type": "parameter_declaration", "text": "char *buf", "parent": 650, "children": [659, 660], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 19}}, {"id": 659, "type": "primitive_type", "text": "char", "parent": 658, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 14}}, {"id": 660, "type": "pointer_declarator", "text": "*buf", "parent": 658, "children": [661, 662], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 19}}, {"id": 661, "type": "*", "text": "*", "parent": 660, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 662, "type": "identifier", "text": "buf", "parent": 660, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 19}}, {"id": 663, "type": "parameter_declaration", "text": "unsigned int acnt", "parent": 650, "children": [664, 667], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 37}}, {"id": 664, "type": "sized_type_specifier", "text": "unsigned int", "parent": 663, "children": [665, 666], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 32}}, {"id": 665, "type": "unsigned", "text": "unsigned", "parent": 664, "children": [], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 28}}, {"id": 666, "type": "primitive_type", "text": "int", "parent": 664, "children": [], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 32}}, {"id": 667, "type": "identifier", "text": "acnt", "parent": 663, "children": [], "start_point": {"row": 142, "column": 33}, "end_point": {"row": 142, "column": 37}}, {"id": 668, "type": "declaration", "text": "int bcnt = 0;", "parent": 646, "children": [669, 670], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 14}}, {"id": 669, "type": "primitive_type", "text": "int", "parent": 668, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 4}}, {"id": 670, "type": "init_declarator", "text": "bcnt = 0", "parent": 668, "children": [671, 672, 673], "start_point": {"row": 144, "column": 5}, "end_point": {"row": 144, "column": 13}}, {"id": 671, "type": "identifier", "text": "bcnt", "parent": 670, "children": [], "start_point": {"row": 144, "column": 5}, "end_point": {"row": 144, "column": 9}}, {"id": 672, "type": "=", "text": "=", "parent": 670, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 11}}, {"id": 673, "type": "number_literal", "text": "0", "parent": 670, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 674, "type": "declaration", "text": "int ccnt;", "parent": 646, "children": [675, 676], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 10}}, {"id": 675, "type": "primitive_type", "text": "int", "parent": 674, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 4}}, {"id": 676, "type": "identifier", "text": "ccnt", "parent": 674, "children": [], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 9}}, {"id": 677, "type": "declaration", "text": "int ret;", "parent": 646, "children": [678, 679], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 9}}, {"id": 678, "type": "primitive_type", "text": "int", "parent": 677, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 4}}, {"id": 679, "type": "identifier", "text": "ret", "parent": 677, "children": [], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 8}}, {"id": 680, "type": "declaration", "text": "u32 gpio_dir,gpio_in,gpio_out;", "parent": 646, "children": [681, 682, 683, 684], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 31}}, {"id": 681, "type": "type_identifier", "text": "u32", "parent": 680, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 4}}, {"id": 682, "type": "identifier", "text": "gpio_dir", "parent": 680, "children": [], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 147, "column": 13}}, {"id": 683, "type": "identifier", "text": "gpio_in", "parent": 680, "children": [], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 21}}, {"id": 684, "type": "identifier", "text": "gpio_out", "parent": 680, "children": [], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 30}}, {"id": 685, "type": "declaration", "text": "struct pvr2_stream_stats stats;", "parent": 646, "children": [686, 689], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 32}}, {"id": 686, "type": "struct_specifier", "text": "struct pvr2_stream_stats", "parent": 685, "children": [687, 688], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 25}}, {"id": 687, "type": "struct", "text": "struct", "parent": 686, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 7}}, {"id": 688, "type": "type_identifier", "text": "pvr2_stream_stats", "parent": 686, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 25}}, {"id": 689, "type": "identifier", "text": "stats", "parent": 685, "children": [], "start_point": {"row": 148, "column": 26}, "end_point": {"row": 148, "column": 31}}, {"id": 690, "type": "declaration", "text": "struct pvr2_stream *sp;", "parent": 646, "children": [691, 694], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 24}}, {"id": 691, "type": "struct_specifier", "text": "struct pvr2_stream", "parent": 690, "children": [692, 693], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 19}}, {"id": 692, "type": "struct", "text": "struct", "parent": 691, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 7}}, {"id": 693, "type": "type_identifier", "text": "pvr2_stream", "parent": 691, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 19}}, {"id": 694, "type": "pointer_declarator", "text": "*sp", "parent": 690, "children": [695, 696], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 23}}, {"id": 695, "type": "*", "text": "*", "parent": 694, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 21}}, {"id": 696, "type": "identifier", "text": "sp", "parent": 694, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 23}}, {"id": 697, "type": "assignment_expression", "text": "ret = pvr2_hdw_is_hsm(hdw)", "parent": 646, "children": [698, 699, 700], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 27}}, {"id": 698, "type": "identifier", "text": "ret", "parent": 697, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 4}}, {"id": 699, "type": "=", "text": "=", "parent": 697, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 6}}, {"id": 700, "type": "call_expression", "text": "pvr2_hdw_is_hsm(hdw)", "parent": 697, "children": [701, 702], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 27}}, {"id": 701, "type": "identifier", "text": "pvr2_hdw_is_hsm", "parent": 700, "children": [], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 22}}, {"id": 702, "type": "argument_list", "text": "(hdw)", "parent": 700, "children": [703], "start_point": {"row": 151, "column": 22}, "end_point": {"row": 151, "column": 27}}, {"id": 703, "type": "identifier", "text": "hdw", "parent": 702, "children": [], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 26}}, {"id": 704, "type": "assignment_expression", "text": "ccnt = scnprintf(buf,acnt,\"USB link speed: %s\\n\",\n\t\t\t (ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")))", "parent": 646, "children": [705, 706, 707], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 153, "column": 49}}, {"id": 705, "type": "identifier", "text": "ccnt", "parent": 704, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 5}}, {"id": 706, "type": "=", "text": "=", "parent": 704, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 7}}, {"id": 707, "type": "call_expression", "text": "scnprintf(buf,acnt,\"USB link speed: %s\\n\",\n\t\t\t (ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")))", "parent": 704, "children": [708, 709], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 153, "column": 49}}, {"id": 708, "type": "identifier", "text": "scnprintf", "parent": 707, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 17}}, {"id": 709, "type": "argument_list", "text": "(buf,acnt,\"USB link speed: %s\\n\",\n\t\t\t (ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")))", "parent": 707, "children": [710, 711, 712, 714], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 153, "column": 49}}, {"id": 710, "type": "identifier", "text": "buf", "parent": 709, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 21}}, {"id": 711, "type": "identifier", "text": "acnt", "parent": 709, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 26}}, {"id": 712, "type": "string_literal", "text": "\"USB link speed: %s\\n\"", "parent": 709, "children": [713], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 49}}, {"id": 713, "type": "escape_sequence", "text": "\\n", "parent": 712, "children": [], "start_point": {"row": 152, "column": 46}, "end_point": {"row": 152, "column": 48}}, {"id": 714, "type": "parenthesized_expression", "text": "(ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\"))", "parent": 709, "children": [715], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 48}}, {"id": 715, "type": "conditional_expression", "text": "ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")", "parent": 714, "children": [716, 720, 721, 722], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 47}}, {"id": 716, "type": "binary_expression", "text": "ret < 0", "parent": 715, "children": [717, 718, 719], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 12}}, {"id": 717, "type": "identifier", "text": "ret", "parent": 716, "children": [], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 8}}, {"id": 718, "type": "<", "text": "<", "parent": 716, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 10}}, {"id": 719, "type": "number_literal", "text": "0", "parent": 716, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 12}}, {"id": 720, "type": "?", "text": "?", "parent": 715, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 14}}, {"id": 721, "type": "string_literal", "text": "\"FAIL\"", "parent": 715, "children": [], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 21}}, {"id": 722, "type": "parenthesized_expression", "text": "(ret ? \"high\" : \"full\")", "parent": 715, "children": [723], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 47}}, {"id": 723, "type": "conditional_expression", "text": "ret ? \"high\" : \"full\"", "parent": 722, "children": [724, 725, 726, 727], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 46}}, {"id": 724, "type": "identifier", "text": "ret", "parent": 723, "children": [], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 28}}, {"id": 725, "type": "?", "text": "?", "parent": 723, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 30}}, {"id": 726, "type": "string_literal", "text": "\"high\"", "parent": 723, "children": [], "start_point": {"row": 153, "column": 31}, "end_point": {"row": 153, "column": 37}}, {"id": 727, "type": "string_literal", "text": "\"full\"", "parent": 723, "children": [], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 46}}, {"id": 728, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 646, "children": [729, 730, 731], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 13}}, {"id": 729, "type": "identifier", "text": "bcnt", "parent": 728, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 5}}, {"id": 730, "type": "+=", "text": "+=", "parent": 728, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 8}}, {"id": 731, "type": "identifier", "text": "ccnt", "parent": 728, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 13}}, {"id": 732, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 646, "children": [733, 734, 735], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 27}}, {"id": 733, "type": "identifier", "text": "acnt", "parent": 732, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 19}}, {"id": 734, "type": "-=", "text": "-=", "parent": 732, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 22}}, {"id": 735, "type": "identifier", "text": "ccnt", "parent": 732, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 27}}, {"id": 736, "type": "assignment_expression", "text": "buf += ccnt", "parent": 646, "children": [737, 738, 739], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 40}}, {"id": 737, "type": "identifier", "text": "buf", "parent": 736, "children": [], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 32}}, {"id": 738, "type": "+=", "text": "+=", "parent": 736, "children": [], "start_point": {"row": 154, "column": 33}, "end_point": {"row": 154, "column": 35}}, {"id": 739, "type": "identifier", "text": "ccnt", "parent": 736, "children": [], "start_point": {"row": 154, "column": 36}, "end_point": {"row": 154, "column": 40}}, {"id": 740, "type": "assignment_expression", "text": "gpio_dir = 0", "parent": 646, "children": [741, 742, 743], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 13}}, {"id": 741, "type": "identifier", "text": "gpio_dir", "parent": 740, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 9}}, {"id": 742, "type": "=", "text": "=", "parent": 740, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 11}}, {"id": 743, "type": "number_literal", "text": "0", "parent": 740, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 744, "type": "assignment_expression", "text": "gpio_in = 0", "parent": 646, "children": [745, 746, 747], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 26}}, {"id": 745, "type": "identifier", "text": "gpio_in", "parent": 744, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 22}}, {"id": 746, "type": "=", "text": "=", "parent": 744, "children": [], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 24}}, {"id": 747, "type": "number_literal", "text": "0", "parent": 744, "children": [], "start_point": {"row": 156, "column": 25}, "end_point": {"row": 156, "column": 26}}, {"id": 748, "type": "assignment_expression", "text": "gpio_out = 0", "parent": 646, "children": [749, 750, 751], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 40}}, {"id": 749, "type": "identifier", "text": "gpio_out", "parent": 748, "children": [], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 36}}, {"id": 750, "type": "=", "text": "=", "parent": 748, "children": [], "start_point": {"row": 156, "column": 37}, "end_point": {"row": 156, "column": 38}}, {"id": 751, "type": "number_literal", "text": "0", "parent": 748, "children": [], "start_point": {"row": 156, "column": 39}, "end_point": {"row": 156, "column": 40}}, {"id": 752, "type": "call_expression", "text": "pvr2_hdw_gpio_get_dir(hdw,&gpio_dir)", "parent": 646, "children": [753, 754], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 37}}, {"id": 753, "type": "identifier", "text": "pvr2_hdw_gpio_get_dir", "parent": 752, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 22}}, {"id": 754, "type": "argument_list", "text": "(hdw,&gpio_dir)", "parent": 752, "children": [755, 756], "start_point": {"row": 157, "column": 22}, "end_point": {"row": 157, "column": 37}}, {"id": 755, "type": "identifier", "text": "hdw", "parent": 754, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 26}}, {"id": 756, "type": "pointer_expression", "text": "&gpio_dir", "parent": 754, "children": [757], "start_point": {"row": 157, "column": 27}, "end_point": {"row": 157, "column": 36}}, {"id": 757, "type": "identifier", "text": "gpio_dir", "parent": 756, "children": [], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 36}}, {"id": 758, "type": "call_expression", "text": "pvr2_hdw_gpio_get_out(hdw,&gpio_out)", "parent": 646, "children": [759, 760], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 37}}, {"id": 759, "type": "identifier", "text": "pvr2_hdw_gpio_get_out", "parent": 758, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 22}}, {"id": 760, "type": "argument_list", "text": "(hdw,&gpio_out)", "parent": 758, "children": [761, 762], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 37}}, {"id": 761, "type": "identifier", "text": "hdw", "parent": 760, "children": [], "start_point": {"row": 158, "column": 23}, "end_point": {"row": 158, "column": 26}}, {"id": 762, "type": "pointer_expression", "text": "&gpio_out", "parent": 760, "children": [763], "start_point": {"row": 158, "column": 27}, "end_point": {"row": 158, "column": 36}}, {"id": 763, "type": "identifier", "text": "gpio_out", "parent": 762, "children": [], "start_point": {"row": 158, "column": 28}, "end_point": {"row": 158, "column": 36}}, {"id": 764, "type": "call_expression", "text": "pvr2_hdw_gpio_get_in(hdw,&gpio_in)", "parent": 646, "children": [765, 766], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 35}}, {"id": 765, "type": "identifier", "text": "pvr2_hdw_gpio_get_in", "parent": 764, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 21}}, {"id": 766, "type": "argument_list", "text": "(hdw,&gpio_in)", "parent": 764, "children": [767, 768], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 35}}, {"id": 767, "type": "identifier", "text": "hdw", "parent": 766, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 25}}, {"id": 768, "type": "pointer_expression", "text": "&gpio_in", "parent": 766, "children": [769], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 34}}, {"id": 769, "type": "identifier", "text": "gpio_in", "parent": 768, "children": [], "start_point": {"row": 159, "column": 27}, "end_point": {"row": 159, "column": 34}}, {"id": 770, "type": "assignment_expression", "text": "ccnt = scnprintf(buf,acnt,\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\",\n\t\t\t gpio_dir,gpio_in,gpio_out)", "parent": 646, "children": [771, 772, 773], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 161, "column": 30}}, {"id": 771, "type": "identifier", "text": "ccnt", "parent": 770, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 5}}, {"id": 772, "type": "=", "text": "=", "parent": 770, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 7}}, {"id": 773, "type": "call_expression", "text": "scnprintf(buf,acnt,\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\",\n\t\t\t gpio_dir,gpio_in,gpio_out)", "parent": 770, "children": [774, 775], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 161, "column": 30}}, {"id": 774, "type": "identifier", "text": "scnprintf", "parent": 773, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 17}}, {"id": 775, "type": "argument_list", "text": "(buf,acnt,\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\",\n\t\t\t gpio_dir,gpio_in,gpio_out)", "parent": 773, "children": [776, 777, 778, 780, 781, 782], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 161, "column": 30}}, {"id": 776, "type": "identifier", "text": "buf", "parent": 775, "children": [], "start_point": {"row": 160, "column": 18}, "end_point": {"row": 160, "column": 21}}, {"id": 777, "type": "identifier", "text": "acnt", "parent": 775, "children": [], "start_point": {"row": 160, "column": 22}, "end_point": {"row": 160, "column": 26}}, {"id": 778, "type": "string_literal", "text": "\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\"", "parent": 775, "children": [779], "start_point": {"row": 160, "column": 27}, "end_point": {"row": 160, "column": 68}}, {"id": 779, "type": "escape_sequence", "text": "\\n", "parent": 778, "children": [], "start_point": {"row": 160, "column": 65}, "end_point": {"row": 160, "column": 67}}, {"id": 780, "type": "identifier", "text": "gpio_dir", "parent": 775, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 12}}, {"id": 781, "type": "identifier", "text": "gpio_in", "parent": 775, "children": [], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 20}}, {"id": 782, "type": "identifier", "text": "gpio_out", "parent": 775, "children": [], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 29}}, {"id": 783, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 646, "children": [784, 785, 786], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 13}}, {"id": 784, "type": "identifier", "text": "bcnt", "parent": 783, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 5}}, {"id": 785, "type": "+=", "text": "+=", "parent": 783, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 8}}, {"id": 786, "type": "identifier", "text": "ccnt", "parent": 783, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 13}}, {"id": 787, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 646, "children": [788, 789, 790], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 27}}, {"id": 788, "type": "identifier", "text": "acnt", "parent": 787, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 19}}, {"id": 789, "type": "-=", "text": "-=", "parent": 787, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 22}}, {"id": 790, "type": "identifier", "text": "ccnt", "parent": 787, "children": [], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 27}}, {"id": 791, "type": "assignment_expression", "text": "buf += ccnt", "parent": 646, "children": [792, 793, 794], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 40}}, {"id": 792, "type": "identifier", "text": "buf", "parent": 791, "children": [], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 32}}, {"id": 793, "type": "+=", "text": "+=", "parent": 791, "children": [], "start_point": {"row": 162, "column": 33}, "end_point": {"row": 162, "column": 35}}, {"id": 794, "type": "identifier", "text": "ccnt", "parent": 791, "children": [], "start_point": {"row": 162, "column": 36}, "end_point": {"row": 162, "column": 40}}, {"id": 795, "type": "assignment_expression", "text": "ccnt = scnprintf(buf,acnt,\"Streaming is %s\\n\",\n\t\t\t pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\")", "parent": 646, "children": [796, 797, 798], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 165, "column": 47}}, {"id": 796, "type": "identifier", "text": "ccnt", "parent": 795, "children": [], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 5}}, {"id": 797, "type": "=", "text": "=", "parent": 795, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 7}}, {"id": 798, "type": "call_expression", "text": "scnprintf(buf,acnt,\"Streaming is %s\\n\",\n\t\t\t pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\")", "parent": 795, "children": [799, 800], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 165, "column": 47}}, {"id": 799, "type": "identifier", "text": "scnprintf", "parent": 798, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 17}}, {"id": 800, "type": "argument_list", "text": "(buf,acnt,\"Streaming is %s\\n\",\n\t\t\t pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\")", "parent": 798, "children": [801, 802, 803, 805], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 165, "column": 47}}, {"id": 801, "type": "identifier", "text": "buf", "parent": 800, "children": [], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 21}}, {"id": 802, "type": "identifier", "text": "acnt", "parent": 800, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 26}}, {"id": 803, "type": "string_literal", "text": "\"Streaming is %s\\n\"", "parent": 800, "children": [804], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 46}}, {"id": 804, "type": "escape_sequence", "text": "\\n", "parent": 803, "children": [], "start_point": {"row": 164, "column": 43}, "end_point": {"row": 164, "column": 45}}, {"id": 805, "type": "conditional_expression", "text": "pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\"", "parent": 800, "children": [806, 810, 811, 812], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 46}}, {"id": 806, "type": "call_expression", "text": "pvr2_hdw_get_streaming(hdw)", "parent": 805, "children": [807, 808], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 31}}, {"id": 807, "type": "identifier", "text": "pvr2_hdw_get_streaming", "parent": 806, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 26}}, {"id": 808, "type": "argument_list", "text": "(hdw)", "parent": 806, "children": [809], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 31}}, {"id": 809, "type": "identifier", "text": "hdw", "parent": 808, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 30}}, {"id": 810, "type": "?", "text": "?", "parent": 805, "children": [], "start_point": {"row": 165, "column": 32}, "end_point": {"row": 165, "column": 33}}, {"id": 811, "type": "string_literal", "text": "\"on\"", "parent": 805, "children": [], "start_point": {"row": 165, "column": 34}, "end_point": {"row": 165, "column": 38}}, {"id": 812, "type": "string_literal", "text": "\"off\"", "parent": 805, "children": [], "start_point": {"row": 165, "column": 41}, "end_point": {"row": 165, "column": 46}}, {"id": 813, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 646, "children": [814, 815, 816], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 13}}, {"id": 814, "type": "identifier", "text": "bcnt", "parent": 813, "children": [], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 5}}, {"id": 815, "type": "+=", "text": "+=", "parent": 813, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 8}}, {"id": 816, "type": "identifier", "text": "ccnt", "parent": 813, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 13}}, {"id": 817, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 646, "children": [818, 819, 820], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 27}}, {"id": 818, "type": "identifier", "text": "acnt", "parent": 817, "children": [], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 19}}, {"id": 819, "type": "-=", "text": "-=", "parent": 817, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 22}}, {"id": 820, "type": "identifier", "text": "ccnt", "parent": 817, "children": [], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 27}}, {"id": 821, "type": "assignment_expression", "text": "buf += ccnt", "parent": 646, "children": [822, 823, 824], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 40}}, {"id": 822, "type": "identifier", "text": "buf", "parent": 821, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 32}}, {"id": 823, "type": "+=", "text": "+=", "parent": 821, "children": [], "start_point": {"row": 166, "column": 33}, "end_point": {"row": 166, "column": 35}}, {"id": 824, "type": "identifier", "text": "ccnt", "parent": 821, "children": [], "start_point": {"row": 166, "column": 36}, "end_point": {"row": 166, "column": 40}}, {"id": 825, "type": "assignment_expression", "text": "sp = pvr2_hdw_get_video_stream(hdw)", "parent": 646, "children": [826, 827, 828], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 36}}, {"id": 826, "type": "identifier", "text": "sp", "parent": 825, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 3}}, {"id": 827, "type": "=", "text": "=", "parent": 825, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 828, "type": "call_expression", "text": "pvr2_hdw_get_video_stream(hdw)", "parent": 825, "children": [829, 830], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 36}}, {"id": 829, "type": "identifier", "text": "pvr2_hdw_get_video_stream", "parent": 828, "children": [], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 31}}, {"id": 830, "type": "argument_list", "text": "(hdw)", "parent": 828, "children": [831], "start_point": {"row": 169, "column": 31}, "end_point": {"row": 169, "column": 36}}, {"id": 831, "type": "identifier", "text": "hdw", "parent": 830, "children": [], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 35}}, {"id": 832, "type": "if_statement", "text": "if (sp) {\n\t\tpvr2_stream_get_stats(sp, &stats, 0);\n\t\tccnt = scnprintf(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed);\n\t\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\t}", "parent": 646, "children": [833], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 182, "column": 2}}, {"id": 833, "type": "parenthesized_expression", "text": "(sp)", "parent": 832, "children": [834], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 8}}, {"id": 834, "type": "identifier", "text": "sp", "parent": 833, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 7}}, {"id": 835, "type": "call_expression", "text": "pvr2_stream_get_stats(sp, &stats, 0)", "parent": 832, "children": [836, 837], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 38}}, {"id": 836, "type": "identifier", "text": "pvr2_stream_get_stats", "parent": 835, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 23}}, {"id": 837, "type": "argument_list", "text": "(sp, &stats, 0)", "parent": 835, "children": [838, 839, 841], "start_point": {"row": 171, "column": 23}, "end_point": {"row": 171, "column": 38}}, {"id": 838, "type": "identifier", "text": "sp", "parent": 837, "children": [], "start_point": {"row": 171, "column": 24}, "end_point": {"row": 171, "column": 26}}, {"id": 839, "type": "pointer_expression", "text": "&stats", "parent": 837, "children": [840], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 34}}, {"id": 840, "type": "identifier", "text": "stats", "parent": 839, "children": [], "start_point": {"row": 171, "column": 29}, "end_point": {"row": 171, "column": 34}}, {"id": 841, "type": "number_literal", "text": "0", "parent": 837, "children": [], "start_point": {"row": 171, "column": 36}, "end_point": {"row": 171, "column": 37}}, {"id": 842, "type": "assignment_expression", "text": "ccnt = scnprintf(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed)", "parent": 832, "children": [843, 844, 845], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 180, "column": 24}}, {"id": 843, "type": "identifier", "text": "ccnt", "parent": 842, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 6}}, {"id": 844, "type": "=", "text": "=", "parent": 842, "children": [], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 8}}, {"id": 845, "type": "call_expression", "text": "scnprintf(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed)", "parent": 842, "children": [846, 847], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 180, "column": 24}}, {"id": 846, "type": "identifier", "text": "scnprintf", "parent": 845, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 18}}, {"id": 847, "type": "argument_list", "text": "(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed)", "parent": 845, "children": [848, 849, 850, 852, 855, 858, 861, 864, 867], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 180, "column": 24}}, {"id": 848, "type": "identifier", "text": "buf", "parent": 847, "children": [], "start_point": {"row": 173, "column": 3}, "end_point": {"row": 173, "column": 6}}, {"id": 849, "type": "identifier", "text": "acnt", "parent": 847, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 11}}, {"id": 850, "type": "string_literal", "text": "\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\"", "parent": 847, "children": [851], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 80}}, {"id": 851, "type": "escape_sequence", "text": "\\n", "parent": 850, "children": [], "start_point": {"row": 174, "column": 77}, "end_point": {"row": 174, "column": 79}}, {"id": 852, "type": "field_expression", "text": "stats.bytes_processed", "parent": 847, "children": [853, 854], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 24}}, {"id": 853, "type": "identifier", "text": "stats", "parent": 852, "children": [], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 8}}, {"id": 854, "type": "field_identifier", "text": "bytes_processed", "parent": 852, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 24}}, {"id": 855, "type": "field_expression", "text": "stats.buffers_in_queue", "parent": 847, "children": [856, 857], "start_point": {"row": 176, "column": 3}, "end_point": {"row": 176, "column": 25}}, {"id": 856, "type": "identifier", "text": "stats", "parent": 855, "children": [], "start_point": {"row": 176, "column": 3}, "end_point": {"row": 176, "column": 8}}, {"id": 857, "type": "field_identifier", "text": "buffers_in_queue", "parent": 855, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 25}}, {"id": 858, "type": "field_expression", "text": "stats.buffers_in_idle", "parent": 847, "children": [859, 860], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 24}}, {"id": 859, "type": "identifier", "text": "stats", "parent": 858, "children": [], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 177, "column": 8}}, {"id": 860, "type": "field_identifier", "text": "buffers_in_idle", "parent": 858, "children": [], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 24}}, {"id": 861, "type": "field_expression", "text": "stats.buffers_in_ready", "parent": 847, "children": [862, 863], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 25}}, {"id": 862, "type": "identifier", "text": "stats", "parent": 861, "children": [], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 8}}, {"id": 863, "type": "field_identifier", "text": "buffers_in_ready", "parent": 861, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 25}}, {"id": 864, "type": "field_expression", "text": "stats.buffers_processed", "parent": 847, "children": [865, 866], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 26}}, {"id": 865, "type": "identifier", "text": "stats", "parent": 864, "children": [], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 8}}, {"id": 866, "type": "field_identifier", "text": "buffers_processed", "parent": 864, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 26}}, {"id": 867, "type": "field_expression", "text": "stats.buffers_failed", "parent": 847, "children": [868, 869], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 23}}, {"id": 868, "type": "identifier", "text": "stats", "parent": 867, "children": [], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 8}}, {"id": 869, "type": "field_identifier", "text": "buffers_failed", "parent": 867, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 23}}, {"id": 870, "type": "assignment_expression", "text": "bcnt += ccnt", "parent": 832, "children": [871, 872, 873], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 14}}, {"id": 871, "type": "identifier", "text": "bcnt", "parent": 870, "children": [], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 6}}, {"id": 872, "type": "+=", "text": "+=", "parent": 870, "children": [], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 9}}, {"id": 873, "type": "identifier", "text": "ccnt", "parent": 870, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 14}}, {"id": 874, "type": "assignment_expression", "text": "acnt -= ccnt", "parent": 832, "children": [875, 876, 877], "start_point": {"row": 181, "column": 16}, "end_point": {"row": 181, "column": 28}}, {"id": 875, "type": "identifier", "text": "acnt", "parent": 874, "children": [], "start_point": {"row": 181, "column": 16}, "end_point": {"row": 181, "column": 20}}, {"id": 876, "type": "-=", "text": "-=", "parent": 874, "children": [], "start_point": {"row": 181, "column": 21}, "end_point": {"row": 181, "column": 23}}, {"id": 877, "type": "identifier", "text": "ccnt", "parent": 874, "children": [], "start_point": {"row": 181, "column": 24}, "end_point": {"row": 181, "column": 28}}, {"id": 878, "type": "assignment_expression", "text": "buf += ccnt", "parent": 832, "children": [879, 880, 881], "start_point": {"row": 181, "column": 30}, "end_point": {"row": 181, "column": 41}}, {"id": 879, "type": "identifier", "text": "buf", "parent": 878, "children": [], "start_point": {"row": 181, "column": 30}, "end_point": {"row": 181, "column": 33}}, {"id": 880, "type": "+=", "text": "+=", "parent": 878, "children": [], "start_point": {"row": 181, "column": 34}, "end_point": {"row": 181, "column": 36}}, {"id": 881, "type": "identifier", "text": "ccnt", "parent": 878, "children": [], "start_point": {"row": 181, "column": 37}, "end_point": {"row": 181, "column": 41}}, {"id": 882, "type": "return_statement", "text": "return bcnt;", "parent": 646, "children": [883], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 13}}, {"id": 883, "type": "identifier", "text": "bcnt", "parent": 882, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 12}}, {"id": 884, "type": "function_definition", "text": "static int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)\n{\n\tconst char *wptr;\n\tunsigned int wlen;\n\tunsigned int scnt;\n\n\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\tif (!scnt) return 0;\n\tcount -= scnt; buf += scnt;\n\tif (!wptr) return 0;\n\n\tpvr2_trace(PVR2_TRACE_DEBUGIFC,\"debugifc cmd: \\\"%.*s\\\"\",wlen,wptr);\n\tif (debugifc_match_keyword(wptr,wlen,\"reset\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"cpu\")) {\n\t\t\tpvr2_hdw_cpureset_assert(hdw,!0);\n\t\t\tpvr2_hdw_cpureset_assert(hdw,0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}\n\t\treturn -EINVAL;\n\t} else if (debugifc_match_keyword(wptr,wlen,\"cpufw\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}\n\t} else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}\n\tpvr2_trace(PVR2_TRACE_DEBUGIFC,\n\t\t \"debugifc failed to recognize cmd: \\\"%.*s\\\"\",wlen,wptr);\n\treturn -EINVAL;\n}", "parent": null, "children": [885, 886], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 295, "column": 1}}, {"id": 885, "type": "primitive_type", "text": "int", "parent": 884, "children": [], "start_point": {"row": 188, "column": 7}, "end_point": {"row": 188, "column": 10}}, {"id": 886, "type": "function_declarator", "text": "pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)", "parent": 884, "children": [887, 888], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 189, "column": 23}}, {"id": 887, "type": "identifier", "text": "pvr2_debugifc_do1cmd", "parent": 886, "children": [], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 31}}, {"id": 888, "type": "parameter_list", "text": "(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)", "parent": 886, "children": [889, 896, 901], "start_point": {"row": 188, "column": 31}, "end_point": {"row": 189, "column": 23}}, {"id": 889, "type": "parameter_declaration", "text": "struct pvr2_hdw *hdw", "parent": 888, "children": [890, 893], "start_point": {"row": 188, "column": 32}, "end_point": {"row": 188, "column": 52}}, {"id": 890, "type": "struct_specifier", "text": "struct pvr2_hdw", "parent": 889, "children": [891, 892], "start_point": {"row": 188, "column": 32}, "end_point": {"row": 188, "column": 47}}, {"id": 891, "type": "struct", "text": "struct", "parent": 890, "children": [], "start_point": {"row": 188, "column": 32}, "end_point": {"row": 188, "column": 38}}, {"id": 892, "type": "type_identifier", "text": "pvr2_hdw", "parent": 890, "children": [], "start_point": {"row": 188, "column": 39}, "end_point": {"row": 188, "column": 47}}, {"id": 893, "type": "pointer_declarator", "text": "*hdw", "parent": 889, "children": [894, 895], "start_point": {"row": 188, "column": 48}, "end_point": {"row": 188, "column": 52}}, {"id": 894, "type": "*", "text": "*", "parent": 893, "children": [], "start_point": {"row": 188, "column": 48}, "end_point": {"row": 188, "column": 49}}, {"id": 895, "type": "identifier", "text": "hdw", "parent": 893, "children": [], "start_point": {"row": 188, "column": 49}, "end_point": {"row": 188, "column": 52}}, {"id": 896, "type": "parameter_declaration", "text": "const char *buf", "parent": 888, "children": [897, 898], "start_point": {"row": 188, "column": 53}, "end_point": {"row": 188, "column": 68}}, {"id": 897, "type": "primitive_type", "text": "char", "parent": 896, "children": [], "start_point": {"row": 188, "column": 59}, "end_point": {"row": 188, "column": 63}}, {"id": 898, "type": "pointer_declarator", "text": "*buf", "parent": 896, "children": [899, 900], "start_point": {"row": 188, "column": 64}, "end_point": {"row": 188, "column": 68}}, {"id": 899, "type": "*", "text": "*", "parent": 898, "children": [], "start_point": {"row": 188, "column": 64}, "end_point": {"row": 188, "column": 65}}, {"id": 900, "type": "identifier", "text": "buf", "parent": 898, "children": [], "start_point": {"row": 188, "column": 65}, "end_point": {"row": 188, "column": 68}}, {"id": 901, "type": "parameter_declaration", "text": "unsigned int count", "parent": 888, "children": [902, 905], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 22}}, {"id": 902, "type": "sized_type_specifier", "text": "unsigned int", "parent": 901, "children": [903, 904], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 16}}, {"id": 903, "type": "unsigned", "text": "unsigned", "parent": 902, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 12}}, {"id": 904, "type": "primitive_type", "text": "int", "parent": 902, "children": [], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 16}}, {"id": 905, "type": "identifier", "text": "count", "parent": 901, "children": [], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 22}}, {"id": 906, "type": "declaration", "text": "const char *wptr;", "parent": 884, "children": [907, 908], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 18}}, {"id": 907, "type": "primitive_type", "text": "char", "parent": 906, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 11}}, {"id": 908, "type": "pointer_declarator", "text": "*wptr", "parent": 906, "children": [909, 910], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 17}}, {"id": 909, "type": "*", "text": "*", "parent": 908, "children": [], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 13}}, {"id": 910, "type": "identifier", "text": "wptr", "parent": 908, "children": [], "start_point": {"row": 191, "column": 13}, "end_point": {"row": 191, "column": 17}}, {"id": 911, "type": "declaration", "text": "unsigned int wlen;", "parent": 884, "children": [912, 915], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 19}}, {"id": 912, "type": "sized_type_specifier", "text": "unsigned int", "parent": 911, "children": [913, 914], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 13}}, {"id": 913, "type": "unsigned", "text": "unsigned", "parent": 912, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 9}}, {"id": 914, "type": "primitive_type", "text": "int", "parent": 912, "children": [], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 13}}, {"id": 915, "type": "identifier", "text": "wlen", "parent": 911, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 18}}, {"id": 916, "type": "declaration", "text": "unsigned int scnt;", "parent": 884, "children": [917, 920], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 19}}, {"id": 917, "type": "sized_type_specifier", "text": "unsigned int", "parent": 916, "children": [918, 919], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 13}}, {"id": 918, "type": "unsigned", "text": "unsigned", "parent": 917, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 9}}, {"id": 919, "type": "primitive_type", "text": "int", "parent": 917, "children": [], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 13}}, {"id": 920, "type": "identifier", "text": "scnt", "parent": 916, "children": [], "start_point": {"row": 193, "column": 14}, "end_point": {"row": 193, "column": 18}}, {"id": 921, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 884, "children": [922, 923, 924], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 52}}, {"id": 922, "type": "identifier", "text": "scnt", "parent": 921, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 5}}, {"id": 923, "type": "=", "text": "=", "parent": 921, "children": [], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 7}}, {"id": 924, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 921, "children": [925, 926], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 52}}, {"id": 925, "type": "identifier", "text": "debugifc_isolate_word", "parent": 924, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 29}}, {"id": 926, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 924, "children": [927, 928, 929, 931], "start_point": {"row": 195, "column": 29}, "end_point": {"row": 195, "column": 52}}, {"id": 927, "type": "identifier", "text": "buf", "parent": 926, "children": [], "start_point": {"row": 195, "column": 30}, "end_point": {"row": 195, "column": 33}}, {"id": 928, "type": "identifier", "text": "count", "parent": 926, "children": [], "start_point": {"row": 195, "column": 34}, "end_point": {"row": 195, "column": 39}}, {"id": 929, "type": "pointer_expression", "text": "&wptr", "parent": 926, "children": [930], "start_point": {"row": 195, "column": 40}, "end_point": {"row": 195, "column": 45}}, {"id": 930, "type": "identifier", "text": "wptr", "parent": 929, "children": [], "start_point": {"row": 195, "column": 41}, "end_point": {"row": 195, "column": 45}}, {"id": 931, "type": "pointer_expression", "text": "&wlen", "parent": 926, "children": [932], "start_point": {"row": 195, "column": 46}, "end_point": {"row": 195, "column": 51}}, {"id": 932, "type": "identifier", "text": "wlen", "parent": 931, "children": [], "start_point": {"row": 195, "column": 47}, "end_point": {"row": 195, "column": 51}}, {"id": 933, "type": "if_statement", "text": "if (!scnt) return 0;", "parent": 884, "children": [934, 938], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 21}}, {"id": 934, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 933, "children": [935], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 11}}, {"id": 935, "type": "unary_expression", "text": "!scnt", "parent": 934, "children": [936, 937], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 10}}, {"id": 936, "type": "!", "text": "!", "parent": 935, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 6}}, {"id": 937, "type": "identifier", "text": "scnt", "parent": 935, "children": [], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 196, "column": 10}}, {"id": 938, "type": "return_statement", "text": "return 0;", "parent": 933, "children": [939], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 21}}, {"id": 939, "type": "number_literal", "text": "0", "parent": 938, "children": [], "start_point": {"row": 196, "column": 19}, "end_point": {"row": 196, "column": 20}}, {"id": 940, "type": "assignment_expression", "text": "count -= scnt", "parent": 884, "children": [941, 942, 943], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 14}}, {"id": 941, "type": "identifier", "text": "count", "parent": 940, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 6}}, {"id": 942, "type": "-=", "text": "-=", "parent": 940, "children": [], "start_point": {"row": 197, "column": 7}, "end_point": {"row": 197, "column": 9}}, {"id": 943, "type": "identifier", "text": "scnt", "parent": 940, "children": [], "start_point": {"row": 197, "column": 10}, "end_point": {"row": 197, "column": 14}}, {"id": 944, "type": "assignment_expression", "text": "buf += scnt", "parent": 884, "children": [945, 946, 947], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 27}}, {"id": 945, "type": "identifier", "text": "buf", "parent": 944, "children": [], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 19}}, {"id": 946, "type": "+=", "text": "+=", "parent": 944, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 22}}, {"id": 947, "type": "identifier", "text": "scnt", "parent": 944, "children": [], "start_point": {"row": 197, "column": 23}, "end_point": {"row": 197, "column": 27}}, {"id": 948, "type": "if_statement", "text": "if (!wptr) return 0;", "parent": 884, "children": [949, 953], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 21}}, {"id": 949, "type": "parenthesized_expression", "text": "(!wptr)", "parent": 948, "children": [950], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 11}}, {"id": 950, "type": "unary_expression", "text": "!wptr", "parent": 949, "children": [951, 952], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 10}}, {"id": 951, "type": "!", "text": "!", "parent": 950, "children": [], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 6}}, {"id": 952, "type": "identifier", "text": "wptr", "parent": 950, "children": [], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 10}}, {"id": 953, "type": "return_statement", "text": "return 0;", "parent": 948, "children": [954], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 21}}, {"id": 954, "type": "number_literal", "text": "0", "parent": 953, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 20}}, {"id": 955, "type": "call_expression", "text": "pvr2_trace(PVR2_TRACE_DEBUGIFC,\"debugifc cmd: \\\"%.*s\\\"\",wlen,wptr)", "parent": 884, "children": [956, 957], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 67}}, {"id": 956, "type": "identifier", "text": "pvr2_trace", "parent": 955, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 11}}, {"id": 957, "type": "argument_list", "text": "(PVR2_TRACE_DEBUGIFC,\"debugifc cmd: \\\"%.*s\\\"\",wlen,wptr)", "parent": 955, "children": [958, 959, 962, 963], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 67}}, {"id": 958, "type": "identifier", "text": "PVR2_TRACE_DEBUGIFC", "parent": 957, "children": [], "start_point": {"row": 200, "column": 12}, "end_point": {"row": 200, "column": 31}}, {"id": 959, "type": "string_literal", "text": "\"debugifc cmd: \\\"%.*s\\\"\"", "parent": 957, "children": [960, 961], "start_point": {"row": 200, "column": 32}, "end_point": {"row": 200, "column": 56}}, {"id": 960, "type": "escape_sequence", "text": "\\\"", "parent": 959, "children": [], "start_point": {"row": 200, "column": 47}, "end_point": {"row": 200, "column": 49}}, {"id": 961, "type": "escape_sequence", "text": "\\\"", "parent": 959, "children": [], "start_point": {"row": 200, "column": 53}, "end_point": {"row": 200, "column": 55}}, {"id": 962, "type": "identifier", "text": "wlen", "parent": 957, "children": [], "start_point": {"row": 200, "column": 57}, "end_point": {"row": 200, "column": 61}}, {"id": 963, "type": "identifier", "text": "wptr", "parent": 957, "children": [], "start_point": {"row": 200, "column": 62}, "end_point": {"row": 200, "column": 66}}, {"id": 964, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"reset\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"cpu\")) {\n\t\t\tpvr2_hdw_cpureset_assert(hdw,!0);\n\t\t\tpvr2_hdw_cpureset_assert(hdw,0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}\n\t\treturn -EINVAL;\n\t} else if (debugifc_match_keyword(wptr,wlen,\"cpufw\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}\n\t} else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}", "parent": 884, "children": [965, 1142], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 291, "column": 2}}, {"id": 965, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"reset\"))", "parent": 964, "children": [966], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 47}}, {"id": 966, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"reset\")", "parent": 965, "children": [967, 968], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 46}}, {"id": 967, "type": "identifier", "text": "debugifc_match_keyword", "parent": 966, "children": [], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 27}}, {"id": 968, "type": "argument_list", "text": "(wptr,wlen,\"reset\")", "parent": 966, "children": [969, 970, 971], "start_point": {"row": 201, "column": 27}, "end_point": {"row": 201, "column": 46}}, {"id": 969, "type": "identifier", "text": "wptr", "parent": 968, "children": [], "start_point": {"row": 201, "column": 28}, "end_point": {"row": 201, "column": 32}}, {"id": 970, "type": "identifier", "text": "wlen", "parent": 968, "children": [], "start_point": {"row": 201, "column": 33}, "end_point": {"row": 201, "column": 37}}, {"id": 971, "type": "string_literal", "text": "\"reset\"", "parent": 968, "children": [], "start_point": {"row": 201, "column": 38}, "end_point": {"row": 201, "column": 45}}, {"id": 972, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 964, "children": [973, 974, 975], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 53}}, {"id": 973, "type": "identifier", "text": "scnt", "parent": 972, "children": [], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 6}}, {"id": 974, "type": "=", "text": "=", "parent": 972, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 8}}, {"id": 975, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 972, "children": [976, 977], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 53}}, {"id": 976, "type": "identifier", "text": "debugifc_isolate_word", "parent": 975, "children": [], "start_point": {"row": 202, "column": 9}, "end_point": {"row": 202, "column": 30}}, {"id": 977, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 975, "children": [978, 979, 980, 982], "start_point": {"row": 202, "column": 30}, "end_point": {"row": 202, "column": 53}}, {"id": 978, "type": "identifier", "text": "buf", "parent": 977, "children": [], "start_point": {"row": 202, "column": 31}, "end_point": {"row": 202, "column": 34}}, {"id": 979, "type": "identifier", "text": "count", "parent": 977, "children": [], "start_point": {"row": 202, "column": 35}, "end_point": {"row": 202, "column": 40}}, {"id": 980, "type": "pointer_expression", "text": "&wptr", "parent": 977, "children": [981], "start_point": {"row": 202, "column": 41}, "end_point": {"row": 202, "column": 46}}, {"id": 981, "type": "identifier", "text": "wptr", "parent": 980, "children": [], "start_point": {"row": 202, "column": 42}, "end_point": {"row": 202, "column": 46}}, {"id": 982, "type": "pointer_expression", "text": "&wlen", "parent": 977, "children": [983], "start_point": {"row": 202, "column": 47}, "end_point": {"row": 202, "column": 52}}, {"id": 983, "type": "identifier", "text": "wlen", "parent": 982, "children": [], "start_point": {"row": 202, "column": 48}, "end_point": {"row": 202, "column": 52}}, {"id": 984, "type": "if_statement", "text": "if (!scnt) return -EINVAL;", "parent": 964, "children": [985, 989], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 28}}, {"id": 985, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 984, "children": [986], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 12}}, {"id": 986, "type": "unary_expression", "text": "!scnt", "parent": 985, "children": [987, 988], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 11}}, {"id": 987, "type": "!", "text": "!", "parent": 986, "children": [], "start_point": {"row": 203, "column": 6}, "end_point": {"row": 203, "column": 7}}, {"id": 988, "type": "identifier", "text": "scnt", "parent": 986, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 11}}, {"id": 989, "type": "return_statement", "text": "return -EINVAL;", "parent": 984, "children": [990], "start_point": {"row": 203, "column": 13}, "end_point": {"row": 203, "column": 28}}, {"id": 990, "type": "unary_expression", "text": "-EINVAL", "parent": 989, "children": [991, 992], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 27}}, {"id": 991, "type": "-", "text": "-", "parent": 990, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 21}}, {"id": 992, "type": "identifier", "text": "EINVAL", "parent": 990, "children": [], "start_point": {"row": 203, "column": 21}, "end_point": {"row": 203, "column": 27}}, {"id": 993, "type": "assignment_expression", "text": "count -= scnt", "parent": 964, "children": [994, 995, 996], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 15}}, {"id": 994, "type": "identifier", "text": "count", "parent": 993, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 7}}, {"id": 995, "type": "-=", "text": "-=", "parent": 993, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 10}}, {"id": 996, "type": "identifier", "text": "scnt", "parent": 993, "children": [], "start_point": {"row": 204, "column": 11}, "end_point": {"row": 204, "column": 15}}, {"id": 997, "type": "assignment_expression", "text": "buf += scnt", "parent": 964, "children": [998, 999, 1000], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 28}}, {"id": 998, "type": "identifier", "text": "buf", "parent": 997, "children": [], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 20}}, {"id": 999, "type": "+=", "text": "+=", "parent": 997, "children": [], "start_point": {"row": 204, "column": 21}, "end_point": {"row": 204, "column": 23}}, {"id": 1000, "type": "identifier", "text": "scnt", "parent": 997, "children": [], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 28}}, {"id": 1001, "type": "if_statement", "text": "if (!wptr) return -EINVAL;", "parent": 964, "children": [1002, 1006], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 28}}, {"id": 1002, "type": "parenthesized_expression", "text": "(!wptr)", "parent": 1001, "children": [1003], "start_point": {"row": 205, "column": 5}, "end_point": {"row": 205, "column": 12}}, {"id": 1003, "type": "unary_expression", "text": "!wptr", "parent": 1002, "children": [1004, 1005], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 11}}, {"id": 1004, "type": "!", "text": "!", "parent": 1003, "children": [], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 7}}, {"id": 1005, "type": "identifier", "text": "wptr", "parent": 1003, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 11}}, {"id": 1006, "type": "return_statement", "text": "return -EINVAL;", "parent": 1001, "children": [1007], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 28}}, {"id": 1007, "type": "unary_expression", "text": "-EINVAL", "parent": 1006, "children": [1008, 1009], "start_point": {"row": 205, "column": 20}, "end_point": {"row": 205, "column": 27}}, {"id": 1008, "type": "-", "text": "-", "parent": 1007, "children": [], "start_point": {"row": 205, "column": 20}, "end_point": {"row": 205, "column": 21}}, {"id": 1009, "type": "identifier", "text": "EINVAL", "parent": 1007, "children": [], "start_point": {"row": 205, "column": 21}, "end_point": {"row": 205, "column": 27}}, {"id": 1010, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"cpu\")) {\n\t\t\tpvr2_hdw_cpureset_assert(hdw,!0);\n\t\t\tpvr2_hdw_cpureset_assert(hdw,0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 964, "children": [1011, 1032], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 226, "column": 3}}, {"id": 1011, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"cpu\"))", "parent": 1010, "children": [1012], "start_point": {"row": 206, "column": 5}, "end_point": {"row": 206, "column": 46}}, {"id": 1012, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"cpu\")", "parent": 1011, "children": [1013, 1014], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 45}}, {"id": 1013, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1012, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 28}}, {"id": 1014, "type": "argument_list", "text": "(wptr,wlen,\"cpu\")", "parent": 1012, "children": [1015, 1016, 1017], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 45}}, {"id": 1015, "type": "identifier", "text": "wptr", "parent": 1014, "children": [], "start_point": {"row": 206, "column": 29}, "end_point": {"row": 206, "column": 33}}, {"id": 1016, "type": "identifier", "text": "wlen", "parent": 1014, "children": [], "start_point": {"row": 206, "column": 34}, "end_point": {"row": 206, "column": 38}}, {"id": 1017, "type": "string_literal", "text": "\"cpu\"", "parent": 1014, "children": [], "start_point": {"row": 206, "column": 39}, "end_point": {"row": 206, "column": 44}}, {"id": 1018, "type": "call_expression", "text": "pvr2_hdw_cpureset_assert(hdw,!0)", "parent": 1010, "children": [1019, 1020], "start_point": {"row": 207, "column": 3}, "end_point": {"row": 207, "column": 35}}, {"id": 1019, "type": "identifier", "text": "pvr2_hdw_cpureset_assert", "parent": 1018, "children": [], "start_point": {"row": 207, "column": 3}, "end_point": {"row": 207, "column": 27}}, {"id": 1020, "type": "argument_list", "text": "(hdw,!0)", "parent": 1018, "children": [1021, 1022], "start_point": {"row": 207, "column": 27}, "end_point": {"row": 207, "column": 35}}, {"id": 1021, "type": "identifier", "text": "hdw", "parent": 1020, "children": [], "start_point": {"row": 207, "column": 28}, "end_point": {"row": 207, "column": 31}}, {"id": 1022, "type": "unary_expression", "text": "!0", "parent": 1020, "children": [1023, 1024], "start_point": {"row": 207, "column": 32}, "end_point": {"row": 207, "column": 34}}, {"id": 1023, "type": "!", "text": "!", "parent": 1022, "children": [], "start_point": {"row": 207, "column": 32}, "end_point": {"row": 207, "column": 33}}, {"id": 1024, "type": "number_literal", "text": "0", "parent": 1022, "children": [], "start_point": {"row": 207, "column": 33}, "end_point": {"row": 207, "column": 34}}, {"id": 1025, "type": "call_expression", "text": "pvr2_hdw_cpureset_assert(hdw,0)", "parent": 1010, "children": [1026, 1027], "start_point": {"row": 208, "column": 3}, "end_point": {"row": 208, "column": 34}}, {"id": 1026, "type": "identifier", "text": "pvr2_hdw_cpureset_assert", "parent": 1025, "children": [], "start_point": {"row": 208, "column": 3}, "end_point": {"row": 208, "column": 27}}, {"id": 1027, "type": "argument_list", "text": "(hdw,0)", "parent": 1025, "children": [1028, 1029], "start_point": {"row": 208, "column": 27}, "end_point": {"row": 208, "column": 34}}, {"id": 1028, "type": "identifier", "text": "hdw", "parent": 1027, "children": [], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 31}}, {"id": 1029, "type": "number_literal", "text": "0", "parent": 1027, "children": [], "start_point": {"row": 208, "column": 32}, "end_point": {"row": 208, "column": 33}}, {"id": 1030, "type": "return_statement", "text": "return 0;", "parent": 1010, "children": [1031], "start_point": {"row": 209, "column": 3}, "end_point": {"row": 209, "column": 12}}, {"id": 1031, "type": "number_literal", "text": "0", "parent": 1030, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 11}}, {"id": 1032, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1010, "children": [1033], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1033, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1032, "children": [1034, 1045], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1034, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"bus\"))", "parent": 1033, "children": [1035], "start_point": {"row": 210, "column": 12}, "end_point": {"row": 210, "column": 53}}, {"id": 1035, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"bus\")", "parent": 1034, "children": [1036, 1037], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 52}}, {"id": 1036, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1035, "children": [], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 35}}, {"id": 1037, "type": "argument_list", "text": "(wptr,wlen,\"bus\")", "parent": 1035, "children": [1038, 1039, 1040], "start_point": {"row": 210, "column": 35}, "end_point": {"row": 210, "column": 52}}, {"id": 1038, "type": "identifier", "text": "wptr", "parent": 1037, "children": [], "start_point": {"row": 210, "column": 36}, "end_point": {"row": 210, "column": 40}}, {"id": 1039, "type": "identifier", "text": "wlen", "parent": 1037, "children": [], "start_point": {"row": 210, "column": 41}, "end_point": {"row": 210, "column": 45}}, {"id": 1040, "type": "string_literal", "text": "\"bus\"", "parent": 1037, "children": [], "start_point": {"row": 210, "column": 46}, "end_point": {"row": 210, "column": 51}}, {"id": 1041, "type": "call_expression", "text": "pvr2_hdw_device_reset(hdw)", "parent": 1033, "children": [1042, 1043], "start_point": {"row": 211, "column": 3}, "end_point": {"row": 211, "column": 29}}, {"id": 1042, "type": "identifier", "text": "pvr2_hdw_device_reset", "parent": 1041, "children": [], "start_point": {"row": 211, "column": 3}, "end_point": {"row": 211, "column": 24}}, {"id": 1043, "type": "argument_list", "text": "(hdw)", "parent": 1041, "children": [1044], "start_point": {"row": 211, "column": 24}, "end_point": {"row": 211, "column": 29}}, {"id": 1044, "type": "identifier", "text": "hdw", "parent": 1043, "children": [], "start_point": {"row": 211, "column": 25}, "end_point": {"row": 211, "column": 28}}, {"id": 1045, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1033, "children": [1046], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1046, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1045, "children": [1047, 1059], "start_point": {"row": 212, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1047, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"soft\"))", "parent": 1046, "children": [1048], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 54}}, {"id": 1048, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"soft\")", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 212, "column": 53}}, {"id": 1049, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1048, "children": [], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 212, "column": 35}}, {"id": 1050, "type": "argument_list", "text": "(wptr,wlen,\"soft\")", "parent": 1048, "children": [1051, 1052, 1053], "start_point": {"row": 212, "column": 35}, "end_point": {"row": 212, "column": 53}}, {"id": 1051, "type": "identifier", "text": "wptr", "parent": 1050, "children": [], "start_point": {"row": 212, "column": 36}, "end_point": {"row": 212, "column": 40}}, {"id": 1052, "type": "identifier", "text": "wlen", "parent": 1050, "children": [], "start_point": {"row": 212, "column": 41}, "end_point": {"row": 212, "column": 45}}, {"id": 1053, "type": "string_literal", "text": "\"soft\"", "parent": 1050, "children": [], "start_point": {"row": 212, "column": 46}, "end_point": {"row": 212, "column": 52}}, {"id": 1054, "type": "return_statement", "text": "return pvr2_hdw_cmd_powerup(hdw);", "parent": 1046, "children": [1055], "start_point": {"row": 213, "column": 3}, "end_point": {"row": 213, "column": 36}}, {"id": 1055, "type": "call_expression", "text": "pvr2_hdw_cmd_powerup(hdw)", "parent": 1054, "children": [1056, 1057], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 35}}, {"id": 1056, "type": "identifier", "text": "pvr2_hdw_cmd_powerup", "parent": 1055, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 30}}, {"id": 1057, "type": "argument_list", "text": "(hdw)", "parent": 1055, "children": [1058], "start_point": {"row": 213, "column": 30}, "end_point": {"row": 213, "column": 35}}, {"id": 1058, "type": "identifier", "text": "hdw", "parent": 1057, "children": [], "start_point": {"row": 213, "column": 31}, "end_point": {"row": 213, "column": 34}}, {"id": 1059, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1046, "children": [1060], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1060, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1059, "children": [1061, 1073], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1061, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"deep\"))", "parent": 1060, "children": [1062], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 54}}, {"id": 1062, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"deep\")", "parent": 1061, "children": [1063, 1064], "start_point": {"row": 214, "column": 13}, "end_point": {"row": 214, "column": 53}}, {"id": 1063, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1062, "children": [], "start_point": {"row": 214, "column": 13}, "end_point": {"row": 214, "column": 35}}, {"id": 1064, "type": "argument_list", "text": "(wptr,wlen,\"deep\")", "parent": 1062, "children": [1065, 1066, 1067], "start_point": {"row": 214, "column": 35}, "end_point": {"row": 214, "column": 53}}, {"id": 1065, "type": "identifier", "text": "wptr", "parent": 1064, "children": [], "start_point": {"row": 214, "column": 36}, "end_point": {"row": 214, "column": 40}}, {"id": 1066, "type": "identifier", "text": "wlen", "parent": 1064, "children": [], "start_point": {"row": 214, "column": 41}, "end_point": {"row": 214, "column": 45}}, {"id": 1067, "type": "string_literal", "text": "\"deep\"", "parent": 1064, "children": [], "start_point": {"row": 214, "column": 46}, "end_point": {"row": 214, "column": 52}}, {"id": 1068, "type": "return_statement", "text": "return pvr2_hdw_cmd_deep_reset(hdw);", "parent": 1060, "children": [1069], "start_point": {"row": 215, "column": 3}, "end_point": {"row": 215, "column": 39}}, {"id": 1069, "type": "call_expression", "text": "pvr2_hdw_cmd_deep_reset(hdw)", "parent": 1068, "children": [1070, 1071], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 38}}, {"id": 1070, "type": "identifier", "text": "pvr2_hdw_cmd_deep_reset", "parent": 1069, "children": [], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 33}}, {"id": 1071, "type": "argument_list", "text": "(hdw)", "parent": 1069, "children": [1072], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 38}}, {"id": 1072, "type": "identifier", "text": "hdw", "parent": 1071, "children": [], "start_point": {"row": 215, "column": 34}, "end_point": {"row": 215, "column": 37}}, {"id": 1073, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1060, "children": [1074], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1074, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1073, "children": [1075, 1087], "start_point": {"row": 216, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1075, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"firmware\"))", "parent": 1074, "children": [1076], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 58}}, {"id": 1076, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"firmware\")", "parent": 1075, "children": [1077, 1078], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 57}}, {"id": 1077, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1076, "children": [], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 35}}, {"id": 1078, "type": "argument_list", "text": "(wptr,wlen,\"firmware\")", "parent": 1076, "children": [1079, 1080, 1081], "start_point": {"row": 216, "column": 35}, "end_point": {"row": 216, "column": 57}}, {"id": 1079, "type": "identifier", "text": "wptr", "parent": 1078, "children": [], "start_point": {"row": 216, "column": 36}, "end_point": {"row": 216, "column": 40}}, {"id": 1080, "type": "identifier", "text": "wlen", "parent": 1078, "children": [], "start_point": {"row": 216, "column": 41}, "end_point": {"row": 216, "column": 45}}, {"id": 1081, "type": "string_literal", "text": "\"firmware\"", "parent": 1078, "children": [], "start_point": {"row": 216, "column": 46}, "end_point": {"row": 216, "column": 56}}, {"id": 1082, "type": "return_statement", "text": "return pvr2_upload_firmware2(hdw);", "parent": 1074, "children": [1083], "start_point": {"row": 217, "column": 3}, "end_point": {"row": 217, "column": 37}}, {"id": 1083, "type": "call_expression", "text": "pvr2_upload_firmware2(hdw)", "parent": 1082, "children": [1084, 1085], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 36}}, {"id": 1084, "type": "identifier", "text": "pvr2_upload_firmware2", "parent": 1083, "children": [], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 31}}, {"id": 1085, "type": "argument_list", "text": "(hdw)", "parent": 1083, "children": [1086], "start_point": {"row": 217, "column": 31}, "end_point": {"row": 217, "column": 36}}, {"id": 1086, "type": "identifier", "text": "hdw", "parent": 1085, "children": [], "start_point": {"row": 217, "column": 32}, "end_point": {"row": 217, "column": 35}}, {"id": 1087, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1074, "children": [1088], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1088, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1087, "children": [1089, 1101], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1089, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"decoder\"))", "parent": 1088, "children": [1090], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 57}}, {"id": 1090, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"decoder\")", "parent": 1089, "children": [1091, 1092], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 56}}, {"id": 1091, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1090, "children": [], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 35}}, {"id": 1092, "type": "argument_list", "text": "(wptr,wlen,\"decoder\")", "parent": 1090, "children": [1093, 1094, 1095], "start_point": {"row": 218, "column": 35}, "end_point": {"row": 218, "column": 56}}, {"id": 1093, "type": "identifier", "text": "wptr", "parent": 1092, "children": [], "start_point": {"row": 218, "column": 36}, "end_point": {"row": 218, "column": 40}}, {"id": 1094, "type": "identifier", "text": "wlen", "parent": 1092, "children": [], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 45}}, {"id": 1095, "type": "string_literal", "text": "\"decoder\"", "parent": 1092, "children": [], "start_point": {"row": 218, "column": 46}, "end_point": {"row": 218, "column": 55}}, {"id": 1096, "type": "return_statement", "text": "return pvr2_hdw_cmd_decoder_reset(hdw);", "parent": 1088, "children": [1097], "start_point": {"row": 219, "column": 3}, "end_point": {"row": 219, "column": 42}}, {"id": 1097, "type": "call_expression", "text": "pvr2_hdw_cmd_decoder_reset(hdw)", "parent": 1096, "children": [1098, 1099], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 41}}, {"id": 1098, "type": "identifier", "text": "pvr2_hdw_cmd_decoder_reset", "parent": 1097, "children": [], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 36}}, {"id": 1099, "type": "argument_list", "text": "(hdw)", "parent": 1097, "children": [1100], "start_point": {"row": 219, "column": 36}, "end_point": {"row": 219, "column": 41}}, {"id": 1100, "type": "identifier", "text": "hdw", "parent": 1099, "children": [], "start_point": {"row": 219, "column": 37}, "end_point": {"row": 219, "column": 40}}, {"id": 1101, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1088, "children": [1102], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1102, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1101, "children": [1103, 1115], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1103, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"worker\"))", "parent": 1102, "children": [1104], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 56}}, {"id": 1104, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"worker\")", "parent": 1103, "children": [1105, 1106], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 55}}, {"id": 1105, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1104, "children": [], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 35}}, {"id": 1106, "type": "argument_list", "text": "(wptr,wlen,\"worker\")", "parent": 1104, "children": [1107, 1108, 1109], "start_point": {"row": 220, "column": 35}, "end_point": {"row": 220, "column": 55}}, {"id": 1107, "type": "identifier", "text": "wptr", "parent": 1106, "children": [], "start_point": {"row": 220, "column": 36}, "end_point": {"row": 220, "column": 40}}, {"id": 1108, "type": "identifier", "text": "wlen", "parent": 1106, "children": [], "start_point": {"row": 220, "column": 41}, "end_point": {"row": 220, "column": 45}}, {"id": 1109, "type": "string_literal", "text": "\"worker\"", "parent": 1106, "children": [], "start_point": {"row": 220, "column": 46}, "end_point": {"row": 220, "column": 54}}, {"id": 1110, "type": "return_statement", "text": "return pvr2_hdw_untrip(hdw);", "parent": 1102, "children": [1111], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 31}}, {"id": 1111, "type": "call_expression", "text": "pvr2_hdw_untrip(hdw)", "parent": 1110, "children": [1112, 1113], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 30}}, {"id": 1112, "type": "identifier", "text": "pvr2_hdw_untrip", "parent": 1111, "children": [], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 25}}, {"id": 1113, "type": "argument_list", "text": "(hdw)", "parent": 1111, "children": [1114], "start_point": {"row": 221, "column": 25}, "end_point": {"row": 221, "column": 30}}, {"id": 1114, "type": "identifier", "text": "hdw", "parent": 1113, "children": [], "start_point": {"row": 221, "column": 26}, "end_point": {"row": 221, "column": 29}}, {"id": 1115, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1102, "children": [1116], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 226, "column": 3}}, {"id": 1116, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}", "parent": 1115, "children": [1117], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 226, "column": 3}}, {"id": 1117, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"usbstats\"))", "parent": 1116, "children": [1118], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 58}}, {"id": 1118, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"usbstats\")", "parent": 1117, "children": [1119, 1120], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 57}}, {"id": 1119, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1118, "children": [], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 35}}, {"id": 1120, "type": "argument_list", "text": "(wptr,wlen,\"usbstats\")", "parent": 1118, "children": [1121, 1122, 1123], "start_point": {"row": 222, "column": 35}, "end_point": {"row": 222, "column": 57}}, {"id": 1121, "type": "identifier", "text": "wptr", "parent": 1120, "children": [], "start_point": {"row": 222, "column": 36}, "end_point": {"row": 222, "column": 40}}, {"id": 1122, "type": "identifier", "text": "wlen", "parent": 1120, "children": [], "start_point": {"row": 222, "column": 41}, "end_point": {"row": 222, "column": 45}}, {"id": 1123, "type": "string_literal", "text": "\"usbstats\"", "parent": 1120, "children": [], "start_point": {"row": 222, "column": 46}, "end_point": {"row": 222, "column": 56}}, {"id": 1124, "type": "call_expression", "text": "pvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0)", "parent": 1116, "children": [1125, 1126], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 224, "column": 20}}, {"id": 1125, "type": "identifier", "text": "pvr2_stream_get_stats", "parent": 1124, "children": [], "start_point": {"row": 223, "column": 3}, "end_point": {"row": 223, "column": 24}}, {"id": 1126, "type": "argument_list", "text": "(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0)", "parent": 1124, "children": [1127, 1131, 1133], "start_point": {"row": 223, "column": 24}, "end_point": {"row": 224, "column": 20}}, {"id": 1127, "type": "call_expression", "text": "pvr2_hdw_get_video_stream(hdw)", "parent": 1126, "children": [1128, 1129], "start_point": {"row": 223, "column": 25}, "end_point": {"row": 223, "column": 55}}, {"id": 1128, "type": "identifier", "text": "pvr2_hdw_get_video_stream", "parent": 1127, "children": [], "start_point": {"row": 223, "column": 25}, "end_point": {"row": 223, "column": 50}}, {"id": 1129, "type": "argument_list", "text": "(hdw)", "parent": 1127, "children": [1130], "start_point": {"row": 223, "column": 50}, "end_point": {"row": 223, "column": 55}}, {"id": 1130, "type": "identifier", "text": "hdw", "parent": 1129, "children": [], "start_point": {"row": 223, "column": 51}, "end_point": {"row": 223, "column": 54}}, {"id": 1131, "type": "null", "text": "NULL", "parent": 1126, "children": [1132], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 15}}, {"id": 1132, "type": "NULL", "text": "NULL", "parent": 1131, "children": [], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 15}}, {"id": 1133, "type": "unary_expression", "text": "!0", "parent": 1126, "children": [1134, 1135], "start_point": {"row": 224, "column": 17}, "end_point": {"row": 224, "column": 19}}, {"id": 1134, "type": "!", "text": "!", "parent": 1133, "children": [], "start_point": {"row": 224, "column": 17}, "end_point": {"row": 224, "column": 18}}, {"id": 1135, "type": "number_literal", "text": "0", "parent": 1133, "children": [], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 19}}, {"id": 1136, "type": "return_statement", "text": "return 0;", "parent": 1116, "children": [1137], "start_point": {"row": 225, "column": 3}, "end_point": {"row": 225, "column": 12}}, {"id": 1137, "type": "number_literal", "text": "0", "parent": 1136, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 11}}, {"id": 1138, "type": "return_statement", "text": "return -EINVAL;", "parent": 964, "children": [1139], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 17}}, {"id": 1139, "type": "unary_expression", "text": "-EINVAL", "parent": 1138, "children": [1140, 1141], "start_point": {"row": 227, "column": 9}, "end_point": {"row": 227, "column": 16}}, {"id": 1140, "type": "-", "text": "-", "parent": 1139, "children": [], "start_point": {"row": 227, "column": 9}, "end_point": {"row": 227, "column": 10}}, {"id": 1141, "type": "identifier", "text": "EINVAL", "parent": 1139, "children": [], "start_point": {"row": 227, "column": 10}, "end_point": {"row": 227, "column": 16}}, {"id": 1142, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"cpufw\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}\n\t} else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}", "parent": 964, "children": [1143], "start_point": {"row": 228, "column": 3}, "end_point": {"row": 291, "column": 2}}, {"id": 1143, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"cpufw\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}\n\t} else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}", "parent": 1142, "children": [1144, 1310], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 291, "column": 2}}, {"id": 1144, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"cpufw\"))", "parent": 1143, "children": [1145], "start_point": {"row": 228, "column": 11}, "end_point": {"row": 228, "column": 54}}, {"id": 1145, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"cpufw\")", "parent": 1144, "children": [1146, 1147], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 53}}, {"id": 1146, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1145, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 34}}, {"id": 1147, "type": "argument_list", "text": "(wptr,wlen,\"cpufw\")", "parent": 1145, "children": [1148, 1149, 1150], "start_point": {"row": 228, "column": 34}, "end_point": {"row": 228, "column": 53}}, {"id": 1148, "type": "identifier", "text": "wptr", "parent": 1147, "children": [], "start_point": {"row": 228, "column": 35}, "end_point": {"row": 228, "column": 39}}, {"id": 1149, "type": "identifier", "text": "wlen", "parent": 1147, "children": [], "start_point": {"row": 228, "column": 40}, "end_point": {"row": 228, "column": 44}}, {"id": 1150, "type": "string_literal", "text": "\"cpufw\"", "parent": 1147, "children": [], "start_point": {"row": 228, "column": 45}, "end_point": {"row": 228, "column": 52}}, {"id": 1151, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1143, "children": [1152, 1153, 1154], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 53}}, {"id": 1152, "type": "identifier", "text": "scnt", "parent": 1151, "children": [], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 6}}, {"id": 1153, "type": "=", "text": "=", "parent": 1151, "children": [], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 8}}, {"id": 1154, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1151, "children": [1155, 1156], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 53}}, {"id": 1155, "type": "identifier", "text": "debugifc_isolate_word", "parent": 1154, "children": [], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 30}}, {"id": 1156, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 1154, "children": [1157, 1158, 1159, 1161], "start_point": {"row": 229, "column": 30}, "end_point": {"row": 229, "column": 53}}, {"id": 1157, "type": "identifier", "text": "buf", "parent": 1156, "children": [], "start_point": {"row": 229, "column": 31}, "end_point": {"row": 229, "column": 34}}, {"id": 1158, "type": "identifier", "text": "count", "parent": 1156, "children": [], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 40}}, {"id": 1159, "type": "pointer_expression", "text": "&wptr", "parent": 1156, "children": [1160], "start_point": {"row": 229, "column": 41}, "end_point": {"row": 229, "column": 46}}, {"id": 1160, "type": "identifier", "text": "wptr", "parent": 1159, "children": [], "start_point": {"row": 229, "column": 42}, "end_point": {"row": 229, "column": 46}}, {"id": 1161, "type": "pointer_expression", "text": "&wlen", "parent": 1156, "children": [1162], "start_point": {"row": 229, "column": 47}, "end_point": {"row": 229, "column": 52}}, {"id": 1162, "type": "identifier", "text": "wlen", "parent": 1161, "children": [], "start_point": {"row": 229, "column": 48}, "end_point": {"row": 229, "column": 52}}, {"id": 1163, "type": "if_statement", "text": "if (!scnt) return -EINVAL;", "parent": 1143, "children": [1164, 1168], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 28}}, {"id": 1164, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 1163, "children": [1165], "start_point": {"row": 230, "column": 5}, "end_point": {"row": 230, "column": 12}}, {"id": 1165, "type": "unary_expression", "text": "!scnt", "parent": 1164, "children": [1166, 1167], "start_point": {"row": 230, "column": 6}, "end_point": {"row": 230, "column": 11}}, {"id": 1166, "type": "!", "text": "!", "parent": 1165, "children": [], "start_point": {"row": 230, "column": 6}, "end_point": {"row": 230, "column": 7}}, {"id": 1167, "type": "identifier", "text": "scnt", "parent": 1165, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 11}}, {"id": 1168, "type": "return_statement", "text": "return -EINVAL;", "parent": 1163, "children": [1169], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 28}}, {"id": 1169, "type": "unary_expression", "text": "-EINVAL", "parent": 1168, "children": [1170, 1171], "start_point": {"row": 230, "column": 20}, "end_point": {"row": 230, "column": 27}}, {"id": 1170, "type": "-", "text": "-", "parent": 1169, "children": [], "start_point": {"row": 230, "column": 20}, "end_point": {"row": 230, "column": 21}}, {"id": 1171, "type": "identifier", "text": "EINVAL", "parent": 1169, "children": [], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 27}}, {"id": 1172, "type": "assignment_expression", "text": "count -= scnt", "parent": 1143, "children": [1173, 1174, 1175], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 15}}, {"id": 1173, "type": "identifier", "text": "count", "parent": 1172, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 7}}, {"id": 1174, "type": "-=", "text": "-=", "parent": 1172, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 10}}, {"id": 1175, "type": "identifier", "text": "scnt", "parent": 1172, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 15}}, {"id": 1176, "type": "assignment_expression", "text": "buf += scnt", "parent": 1143, "children": [1177, 1178, 1179], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 28}}, {"id": 1177, "type": "identifier", "text": "buf", "parent": 1176, "children": [], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 20}}, {"id": 1178, "type": "+=", "text": "+=", "parent": 1176, "children": [], "start_point": {"row": 231, "column": 21}, "end_point": {"row": 231, "column": 23}}, {"id": 1179, "type": "identifier", "text": "scnt", "parent": 1176, "children": [], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 28}}, {"id": 1180, "type": "if_statement", "text": "if (!wptr) return -EINVAL;", "parent": 1143, "children": [1181, 1185], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 28}}, {"id": 1181, "type": "parenthesized_expression", "text": "(!wptr)", "parent": 1180, "children": [1182], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 232, "column": 12}}, {"id": 1182, "type": "unary_expression", "text": "!wptr", "parent": 1181, "children": [1183, 1184], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 11}}, {"id": 1183, "type": "!", "text": "!", "parent": 1182, "children": [], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 7}}, {"id": 1184, "type": "identifier", "text": "wptr", "parent": 1182, "children": [], "start_point": {"row": 232, "column": 7}, "end_point": {"row": 232, "column": 11}}, {"id": 1185, "type": "return_statement", "text": "return -EINVAL;", "parent": 1180, "children": [1186], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 28}}, {"id": 1186, "type": "unary_expression", "text": "-EINVAL", "parent": 1185, "children": [1187, 1188], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 27}}, {"id": 1187, "type": "-", "text": "-", "parent": 1186, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 21}}, {"id": 1188, "type": "identifier", "text": "EINVAL", "parent": 1186, "children": [], "start_point": {"row": 232, "column": 21}, "end_point": {"row": 232, "column": 27}}, {"id": 1189, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1143, "children": [1190, 1288], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 257, "column": 3}}, {"id": 1190, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"fetch\"))", "parent": 1189, "children": [1191], "start_point": {"row": 233, "column": 5}, "end_point": {"row": 233, "column": 48}}, {"id": 1191, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"fetch\")", "parent": 1190, "children": [1192, 1193], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 47}}, {"id": 1192, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1191, "children": [], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 28}}, {"id": 1193, "type": "argument_list", "text": "(wptr,wlen,\"fetch\")", "parent": 1191, "children": [1194, 1195, 1196], "start_point": {"row": 233, "column": 28}, "end_point": {"row": 233, "column": 47}}, {"id": 1194, "type": "identifier", "text": "wptr", "parent": 1193, "children": [], "start_point": {"row": 233, "column": 29}, "end_point": {"row": 233, "column": 33}}, {"id": 1195, "type": "identifier", "text": "wlen", "parent": 1193, "children": [], "start_point": {"row": 233, "column": 34}, "end_point": {"row": 233, "column": 38}}, {"id": 1196, "type": "string_literal", "text": "\"fetch\"", "parent": 1193, "children": [], "start_point": {"row": 233, "column": 39}, "end_point": {"row": 233, "column": 46}}, {"id": 1197, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1189, "children": [1198, 1199, 1200], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 54}}, {"id": 1198, "type": "identifier", "text": "scnt", "parent": 1197, "children": [], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 7}}, {"id": 1199, "type": "=", "text": "=", "parent": 1197, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 9}}, {"id": 1200, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1197, "children": [1201, 1202], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 54}}, {"id": 1201, "type": "identifier", "text": "debugifc_isolate_word", "parent": 1200, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 31}}, {"id": 1202, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 1200, "children": [1203, 1204, 1205, 1207], "start_point": {"row": 234, "column": 31}, "end_point": {"row": 234, "column": 54}}, {"id": 1203, "type": "identifier", "text": "buf", "parent": 1202, "children": [], "start_point": {"row": 234, "column": 32}, "end_point": {"row": 234, "column": 35}}, {"id": 1204, "type": "identifier", "text": "count", "parent": 1202, "children": [], "start_point": {"row": 234, "column": 36}, "end_point": {"row": 234, "column": 41}}, {"id": 1205, "type": "pointer_expression", "text": "&wptr", "parent": 1202, "children": [1206], "start_point": {"row": 234, "column": 42}, "end_point": {"row": 234, "column": 47}}, {"id": 1206, "type": "identifier", "text": "wptr", "parent": 1205, "children": [], "start_point": {"row": 234, "column": 43}, "end_point": {"row": 234, "column": 47}}, {"id": 1207, "type": "pointer_expression", "text": "&wlen", "parent": 1202, "children": [1208], "start_point": {"row": 234, "column": 48}, "end_point": {"row": 234, "column": 53}}, {"id": 1208, "type": "identifier", "text": "wlen", "parent": 1207, "children": [], "start_point": {"row": 234, "column": 49}, "end_point": {"row": 234, "column": 53}}, {"id": 1209, "type": "if_statement", "text": "if (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}", "parent": 1189, "children": [1210], "start_point": {"row": 235, "column": 3}, "end_point": {"row": 249, "column": 4}}, {"id": 1210, "type": "parenthesized_expression", "text": "(scnt && wptr)", "parent": 1209, "children": [1211], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 20}}, {"id": 1211, "type": "binary_expression", "text": "scnt && wptr", "parent": 1210, "children": [1212, 1213, 1214], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 19}}, {"id": 1212, "type": "identifier", "text": "scnt", "parent": 1211, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 11}}, {"id": 1213, "type": "&&", "text": "&&", "parent": 1211, "children": [], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 14}}, {"id": 1214, "type": "identifier", "text": "wptr", "parent": 1211, "children": [], "start_point": {"row": 235, "column": 15}, "end_point": {"row": 235, "column": 19}}, {"id": 1215, "type": "assignment_expression", "text": "count -= scnt", "parent": 1209, "children": [1216, 1217, 1218], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 17}}, {"id": 1216, "type": "identifier", "text": "count", "parent": 1215, "children": [], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 9}}, {"id": 1217, "type": "-=", "text": "-=", "parent": 1215, "children": [], "start_point": {"row": 236, "column": 10}, "end_point": {"row": 236, "column": 12}}, {"id": 1218, "type": "identifier", "text": "scnt", "parent": 1215, "children": [], "start_point": {"row": 236, "column": 13}, "end_point": {"row": 236, "column": 17}}, {"id": 1219, "type": "assignment_expression", "text": "buf += scnt", "parent": 1209, "children": [1220, 1221, 1222], "start_point": {"row": 236, "column": 19}, "end_point": {"row": 236, "column": 30}}, {"id": 1220, "type": "identifier", "text": "buf", "parent": 1219, "children": [], "start_point": {"row": 236, "column": 19}, "end_point": {"row": 236, "column": 22}}, {"id": 1221, "type": "+=", "text": "+=", "parent": 1219, "children": [], "start_point": {"row": 236, "column": 23}, "end_point": {"row": 236, "column": 25}}, {"id": 1222, "type": "identifier", "text": "scnt", "parent": 1219, "children": [], "start_point": {"row": 236, "column": 26}, "end_point": {"row": 236, "column": 30}}, {"id": 1223, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1209, "children": [1224, 1239], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 248, "column": 5}}, {"id": 1224, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\"))", "parent": 1223, "children": [1225], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 238, "column": 18}}, {"id": 1225, "type": "call_expression", "text": "debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")", "parent": 1224, "children": [1226, 1227], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 238, "column": 17}}, {"id": 1226, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1225, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 30}}, {"id": 1227, "type": "argument_list", "text": "(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")", "parent": 1225, "children": [1228, 1229, 1230], "start_point": {"row": 237, "column": 30}, "end_point": {"row": 238, "column": 17}}, {"id": 1228, "type": "identifier", "text": "wptr", "parent": 1227, "children": [], "start_point": {"row": 237, "column": 31}, "end_point": {"row": 237, "column": 35}}, {"id": 1229, "type": "identifier", "text": "wlen", "parent": 1227, "children": [], "start_point": {"row": 237, "column": 37}, "end_point": {"row": 237, "column": 41}}, {"id": 1230, "type": "string_literal", "text": "\"prom\"", "parent": 1227, "children": [], "start_point": {"row": 238, "column": 10}, "end_point": {"row": 238, "column": 16}}, {"id": 1231, "type": "call_expression", "text": "pvr2_hdw_cpufw_set_enabled(hdw, 2, !0)", "parent": 1223, "children": [1232, 1233], "start_point": {"row": 239, "column": 5}, "end_point": {"row": 239, "column": 43}}, {"id": 1232, "type": "identifier", "text": "pvr2_hdw_cpufw_set_enabled", "parent": 1231, "children": [], "start_point": {"row": 239, "column": 5}, "end_point": {"row": 239, "column": 31}}, {"id": 1233, "type": "argument_list", "text": "(hdw, 2, !0)", "parent": 1231, "children": [1234, 1235, 1236], "start_point": {"row": 239, "column": 31}, "end_point": {"row": 239, "column": 43}}, {"id": 1234, "type": "identifier", "text": "hdw", "parent": 1233, "children": [], "start_point": {"row": 239, "column": 32}, "end_point": {"row": 239, "column": 35}}, {"id": 1235, "type": "number_literal", "text": "2", "parent": 1233, "children": [], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 38}}, {"id": 1236, "type": "unary_expression", "text": "!0", "parent": 1233, "children": [1237, 1238], "start_point": {"row": 239, "column": 40}, "end_point": {"row": 239, "column": 42}}, {"id": 1237, "type": "!", "text": "!", "parent": 1236, "children": [], "start_point": {"row": 239, "column": 40}, "end_point": {"row": 239, "column": 41}}, {"id": 1238, "type": "number_literal", "text": "0", "parent": 1236, "children": [], "start_point": {"row": 239, "column": 41}, "end_point": {"row": 239, "column": 42}}, {"id": 1239, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1223, "children": [1240], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 248, "column": 5}}, {"id": 1240, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1239, "children": [1241, 1256], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 248, "column": 5}}, {"id": 1241, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\"))", "parent": 1240, "children": [1242], "start_point": {"row": 240, "column": 14}, "end_point": {"row": 241, "column": 19}}, {"id": 1242, "type": "call_expression", "text": "debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")", "parent": 1241, "children": [1243, 1244], "start_point": {"row": 240, "column": 15}, "end_point": {"row": 241, "column": 18}}, {"id": 1243, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1242, "children": [], "start_point": {"row": 240, "column": 15}, "end_point": {"row": 240, "column": 37}}, {"id": 1244, "type": "argument_list", "text": "(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")", "parent": 1242, "children": [1245, 1246, 1247], "start_point": {"row": 240, "column": 37}, "end_point": {"row": 241, "column": 18}}, {"id": 1245, "type": "identifier", "text": "wptr", "parent": 1244, "children": [], "start_point": {"row": 240, "column": 38}, "end_point": {"row": 240, "column": 42}}, {"id": 1246, "type": "identifier", "text": "wlen", "parent": 1244, "children": [], "start_point": {"row": 240, "column": 44}, "end_point": {"row": 240, "column": 48}}, {"id": 1247, "type": "string_literal", "text": "\"ram8k\"", "parent": 1244, "children": [], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 17}}, {"id": 1248, "type": "call_expression", "text": "pvr2_hdw_cpufw_set_enabled(hdw, 0, !0)", "parent": 1240, "children": [1249, 1250], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 43}}, {"id": 1249, "type": "identifier", "text": "pvr2_hdw_cpufw_set_enabled", "parent": 1248, "children": [], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 31}}, {"id": 1250, "type": "argument_list", "text": "(hdw, 0, !0)", "parent": 1248, "children": [1251, 1252, 1253], "start_point": {"row": 242, "column": 31}, "end_point": {"row": 242, "column": 43}}, {"id": 1251, "type": "identifier", "text": "hdw", "parent": 1250, "children": [], "start_point": {"row": 242, "column": 32}, "end_point": {"row": 242, "column": 35}}, {"id": 1252, "type": "number_literal", "text": "0", "parent": 1250, "children": [], "start_point": {"row": 242, "column": 37}, "end_point": {"row": 242, "column": 38}}, {"id": 1253, "type": "unary_expression", "text": "!0", "parent": 1250, "children": [1254, 1255], "start_point": {"row": 242, "column": 40}, "end_point": {"row": 242, "column": 42}}, {"id": 1254, "type": "!", "text": "!", "parent": 1253, "children": [], "start_point": {"row": 242, "column": 40}, "end_point": {"row": 242, "column": 41}}, {"id": 1255, "type": "number_literal", "text": "0", "parent": 1253, "children": [], "start_point": {"row": 242, "column": 41}, "end_point": {"row": 242, "column": 42}}, {"id": 1256, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1240, "children": [1257], "start_point": {"row": 243, "column": 6}, "end_point": {"row": 248, "column": 5}}, {"id": 1257, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1256, "children": [1258, 1273], "start_point": {"row": 243, "column": 11}, "end_point": {"row": 248, "column": 5}}, {"id": 1258, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\"))", "parent": 1257, "children": [1259], "start_point": {"row": 243, "column": 14}, "end_point": {"row": 244, "column": 20}}, {"id": 1259, "type": "call_expression", "text": "debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")", "parent": 1258, "children": [1260, 1261], "start_point": {"row": 243, "column": 15}, "end_point": {"row": 244, "column": 19}}, {"id": 1260, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1259, "children": [], "start_point": {"row": 243, "column": 15}, "end_point": {"row": 243, "column": 37}}, {"id": 1261, "type": "argument_list", "text": "(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")", "parent": 1259, "children": [1262, 1263, 1264], "start_point": {"row": 243, "column": 37}, "end_point": {"row": 244, "column": 19}}, {"id": 1262, "type": "identifier", "text": "wptr", "parent": 1261, "children": [], "start_point": {"row": 243, "column": 38}, "end_point": {"row": 243, "column": 42}}, {"id": 1263, "type": "identifier", "text": "wlen", "parent": 1261, "children": [], "start_point": {"row": 243, "column": 44}, "end_point": {"row": 243, "column": 48}}, {"id": 1264, "type": "string_literal", "text": "\"ram16k\"", "parent": 1261, "children": [], "start_point": {"row": 244, "column": 10}, "end_point": {"row": 244, "column": 18}}, {"id": 1265, "type": "call_expression", "text": "pvr2_hdw_cpufw_set_enabled(hdw, 1, !0)", "parent": 1257, "children": [1266, 1267], "start_point": {"row": 245, "column": 5}, "end_point": {"row": 245, "column": 43}}, {"id": 1266, "type": "identifier", "text": "pvr2_hdw_cpufw_set_enabled", "parent": 1265, "children": [], "start_point": {"row": 245, "column": 5}, "end_point": {"row": 245, "column": 31}}, {"id": 1267, "type": "argument_list", "text": "(hdw, 1, !0)", "parent": 1265, "children": [1268, 1269, 1270], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 43}}, {"id": 1268, "type": "identifier", "text": "hdw", "parent": 1267, "children": [], "start_point": {"row": 245, "column": 32}, "end_point": {"row": 245, "column": 35}}, {"id": 1269, "type": "number_literal", "text": "1", "parent": 1267, "children": [], "start_point": {"row": 245, "column": 37}, "end_point": {"row": 245, "column": 38}}, {"id": 1270, "type": "unary_expression", "text": "!0", "parent": 1267, "children": [1271, 1272], "start_point": {"row": 245, "column": 40}, "end_point": {"row": 245, "column": 42}}, {"id": 1271, "type": "!", "text": "!", "parent": 1270, "children": [], "start_point": {"row": 245, "column": 40}, "end_point": {"row": 245, "column": 41}}, {"id": 1272, "type": "number_literal", "text": "0", "parent": 1270, "children": [], "start_point": {"row": 245, "column": 41}, "end_point": {"row": 245, "column": 42}}, {"id": 1273, "type": "else_clause", "text": "else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}", "parent": 1257, "children": [], "start_point": {"row": 246, "column": 6}, "end_point": {"row": 248, "column": 5}}, {"id": 1274, "type": "return_statement", "text": "return -EINVAL;", "parent": 1273, "children": [1275], "start_point": {"row": 247, "column": 5}, "end_point": {"row": 247, "column": 20}}, {"id": 1275, "type": "unary_expression", "text": "-EINVAL", "parent": 1274, "children": [1276, 1277], "start_point": {"row": 247, "column": 12}, "end_point": {"row": 247, "column": 19}}, {"id": 1276, "type": "-", "text": "-", "parent": 1275, "children": [], "start_point": {"row": 247, "column": 12}, "end_point": {"row": 247, "column": 13}}, {"id": 1277, "type": "identifier", "text": "EINVAL", "parent": 1275, "children": [], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 19}}, {"id": 1278, "type": "call_expression", "text": "pvr2_hdw_cpufw_set_enabled(hdw,0,!0)", "parent": 1189, "children": [1279, 1280], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 39}}, {"id": 1279, "type": "identifier", "text": "pvr2_hdw_cpufw_set_enabled", "parent": 1278, "children": [], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 29}}, {"id": 1280, "type": "argument_list", "text": "(hdw,0,!0)", "parent": 1278, "children": [1281, 1282, 1283], "start_point": {"row": 250, "column": 29}, "end_point": {"row": 250, "column": 39}}, {"id": 1281, "type": "identifier", "text": "hdw", "parent": 1280, "children": [], "start_point": {"row": 250, "column": 30}, "end_point": {"row": 250, "column": 33}}, {"id": 1282, "type": "number_literal", "text": "0", "parent": 1280, "children": [], "start_point": {"row": 250, "column": 34}, "end_point": {"row": 250, "column": 35}}, {"id": 1283, "type": "unary_expression", "text": "!0", "parent": 1280, "children": [1284, 1285], "start_point": {"row": 250, "column": 36}, "end_point": {"row": 250, "column": 38}}, {"id": 1284, "type": "!", "text": "!", "parent": 1283, "children": [], "start_point": {"row": 250, "column": 36}, "end_point": {"row": 250, "column": 37}}, {"id": 1285, "type": "number_literal", "text": "0", "parent": 1283, "children": [], "start_point": {"row": 250, "column": 37}, "end_point": {"row": 250, "column": 38}}, {"id": 1286, "type": "return_statement", "text": "return 0;", "parent": 1189, "children": [1287], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 12}}, {"id": 1287, "type": "number_literal", "text": "0", "parent": 1286, "children": [], "start_point": {"row": 251, "column": 10}, "end_point": {"row": 251, "column": 11}}, {"id": 1288, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1189, "children": [1289], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 257, "column": 3}}, {"id": 1289, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1288, "children": [1290, 1305], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 257, "column": 3}}, {"id": 1290, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"done\"))", "parent": 1289, "children": [1291], "start_point": {"row": 252, "column": 12}, "end_point": {"row": 252, "column": 54}}, {"id": 1291, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"done\")", "parent": 1290, "children": [1292, 1293], "start_point": {"row": 252, "column": 13}, "end_point": {"row": 252, "column": 53}}, {"id": 1292, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1291, "children": [], "start_point": {"row": 252, "column": 13}, "end_point": {"row": 252, "column": 35}}, {"id": 1293, "type": "argument_list", "text": "(wptr,wlen,\"done\")", "parent": 1291, "children": [1294, 1295, 1296], "start_point": {"row": 252, "column": 35}, "end_point": {"row": 252, "column": 53}}, {"id": 1294, "type": "identifier", "text": "wptr", "parent": 1293, "children": [], "start_point": {"row": 252, "column": 36}, "end_point": {"row": 252, "column": 40}}, {"id": 1295, "type": "identifier", "text": "wlen", "parent": 1293, "children": [], "start_point": {"row": 252, "column": 41}, "end_point": {"row": 252, "column": 45}}, {"id": 1296, "type": "string_literal", "text": "\"done\"", "parent": 1293, "children": [], "start_point": {"row": 252, "column": 46}, "end_point": {"row": 252, "column": 52}}, {"id": 1297, "type": "call_expression", "text": "pvr2_hdw_cpufw_set_enabled(hdw,0,0)", "parent": 1289, "children": [1298, 1299], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 38}}, {"id": 1298, "type": "identifier", "text": "pvr2_hdw_cpufw_set_enabled", "parent": 1297, "children": [], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 29}}, {"id": 1299, "type": "argument_list", "text": "(hdw,0,0)", "parent": 1297, "children": [1300, 1301, 1302], "start_point": {"row": 253, "column": 29}, "end_point": {"row": 253, "column": 38}}, {"id": 1300, "type": "identifier", "text": "hdw", "parent": 1299, "children": [], "start_point": {"row": 253, "column": 30}, "end_point": {"row": 253, "column": 33}}, {"id": 1301, "type": "number_literal", "text": "0", "parent": 1299, "children": [], "start_point": {"row": 253, "column": 34}, "end_point": {"row": 253, "column": 35}}, {"id": 1302, "type": "number_literal", "text": "0", "parent": 1299, "children": [], "start_point": {"row": 253, "column": 36}, "end_point": {"row": 253, "column": 37}}, {"id": 1303, "type": "return_statement", "text": "return 0;", "parent": 1289, "children": [1304], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 12}}, {"id": 1304, "type": "number_literal", "text": "0", "parent": 1303, "children": [], "start_point": {"row": 254, "column": 10}, "end_point": {"row": 254, "column": 11}}, {"id": 1305, "type": "else_clause", "text": "else {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1289, "children": [], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 257, "column": 3}}, {"id": 1306, "type": "return_statement", "text": "return -EINVAL;", "parent": 1305, "children": [1307], "start_point": {"row": 256, "column": 3}, "end_point": {"row": 256, "column": 18}}, {"id": 1307, "type": "unary_expression", "text": "-EINVAL", "parent": 1306, "children": [1308, 1309], "start_point": {"row": 256, "column": 10}, "end_point": {"row": 256, "column": 17}}, {"id": 1308, "type": "-", "text": "-", "parent": 1307, "children": [], "start_point": {"row": 256, "column": 10}, "end_point": {"row": 256, "column": 11}}, {"id": 1309, "type": "identifier", "text": "EINVAL", "parent": 1307, "children": [], "start_point": {"row": 256, "column": 11}, "end_point": {"row": 256, "column": 17}}, {"id": 1310, "type": "else_clause", "text": "else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}", "parent": 1143, "children": [1311], "start_point": {"row": 258, "column": 3}, "end_point": {"row": 291, "column": 2}}, {"id": 1311, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}", "parent": 1310, "children": [1312], "start_point": {"row": 258, "column": 8}, "end_point": {"row": 291, "column": 2}}, {"id": 1312, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"gpio\"))", "parent": 1311, "children": [1313], "start_point": {"row": 258, "column": 11}, "end_point": {"row": 258, "column": 53}}, {"id": 1313, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"gpio\")", "parent": 1312, "children": [1314, 1315], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 52}}, {"id": 1314, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1313, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 34}}, {"id": 1315, "type": "argument_list", "text": "(wptr,wlen,\"gpio\")", "parent": 1313, "children": [1316, 1317, 1318], "start_point": {"row": 258, "column": 34}, "end_point": {"row": 258, "column": 52}}, {"id": 1316, "type": "identifier", "text": "wptr", "parent": 1315, "children": [], "start_point": {"row": 258, "column": 35}, "end_point": {"row": 258, "column": 39}}, {"id": 1317, "type": "identifier", "text": "wlen", "parent": 1315, "children": [], "start_point": {"row": 258, "column": 40}, "end_point": {"row": 258, "column": 44}}, {"id": 1318, "type": "string_literal", "text": "\"gpio\"", "parent": 1315, "children": [], "start_point": {"row": 258, "column": 45}, "end_point": {"row": 258, "column": 51}}, {"id": 1319, "type": "declaration", "text": "int dir_fl = 0;", "parent": 1311, "children": [1320, 1321], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 17}}, {"id": 1320, "type": "primitive_type", "text": "int", "parent": 1319, "children": [], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 5}}, {"id": 1321, "type": "init_declarator", "text": "dir_fl = 0", "parent": 1319, "children": [1322, 1323, 1324], "start_point": {"row": 259, "column": 6}, "end_point": {"row": 259, "column": 16}}, {"id": 1322, "type": "identifier", "text": "dir_fl", "parent": 1321, "children": [], "start_point": {"row": 259, "column": 6}, "end_point": {"row": 259, "column": 12}}, {"id": 1323, "type": "=", "text": "=", "parent": 1321, "children": [], "start_point": {"row": 259, "column": 13}, "end_point": {"row": 259, "column": 14}}, {"id": 1324, "type": "number_literal", "text": "0", "parent": 1321, "children": [], "start_point": {"row": 259, "column": 15}, "end_point": {"row": 259, "column": 16}}, {"id": 1325, "type": "declaration", "text": "int ret;", "parent": 1311, "children": [1326, 1327], "start_point": {"row": 260, "column": 2}, "end_point": {"row": 260, "column": 10}}, {"id": 1326, "type": "primitive_type", "text": "int", "parent": 1325, "children": [], "start_point": {"row": 260, "column": 2}, "end_point": {"row": 260, "column": 5}}, {"id": 1327, "type": "identifier", "text": "ret", "parent": 1325, "children": [], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 9}}, {"id": 1328, "type": "declaration", "text": "u32 msk,val;", "parent": 1311, "children": [1329, 1330, 1331], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 14}}, {"id": 1329, "type": "type_identifier", "text": "u32", "parent": 1328, "children": [], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 5}}, {"id": 1330, "type": "identifier", "text": "msk", "parent": 1328, "children": [], "start_point": {"row": 261, "column": 6}, "end_point": {"row": 261, "column": 9}}, {"id": 1331, "type": "identifier", "text": "val", "parent": 1328, "children": [], "start_point": {"row": 261, "column": 10}, "end_point": {"row": 261, "column": 13}}, {"id": 1332, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1311, "children": [1333, 1334, 1335], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 53}}, {"id": 1333, "type": "identifier", "text": "scnt", "parent": 1332, "children": [], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 6}}, {"id": 1334, "type": "=", "text": "=", "parent": 1332, "children": [], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 8}}, {"id": 1335, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1332, "children": [1336, 1337], "start_point": {"row": 262, "column": 9}, "end_point": {"row": 262, "column": 53}}, {"id": 1336, "type": "identifier", "text": "debugifc_isolate_word", "parent": 1335, "children": [], "start_point": {"row": 262, "column": 9}, "end_point": {"row": 262, "column": 30}}, {"id": 1337, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 1335, "children": [1338, 1339, 1340, 1342], "start_point": {"row": 262, "column": 30}, "end_point": {"row": 262, "column": 53}}, {"id": 1338, "type": "identifier", "text": "buf", "parent": 1337, "children": [], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 34}}, {"id": 1339, "type": "identifier", "text": "count", "parent": 1337, "children": [], "start_point": {"row": 262, "column": 35}, "end_point": {"row": 262, "column": 40}}, {"id": 1340, "type": "pointer_expression", "text": "&wptr", "parent": 1337, "children": [1341], "start_point": {"row": 262, "column": 41}, "end_point": {"row": 262, "column": 46}}, {"id": 1341, "type": "identifier", "text": "wptr", "parent": 1340, "children": [], "start_point": {"row": 262, "column": 42}, "end_point": {"row": 262, "column": 46}}, {"id": 1342, "type": "pointer_expression", "text": "&wlen", "parent": 1337, "children": [1343], "start_point": {"row": 262, "column": 47}, "end_point": {"row": 262, "column": 52}}, {"id": 1343, "type": "identifier", "text": "wlen", "parent": 1342, "children": [], "start_point": {"row": 262, "column": 48}, "end_point": {"row": 262, "column": 52}}, {"id": 1344, "type": "if_statement", "text": "if (!scnt) return -EINVAL;", "parent": 1311, "children": [1345, 1349], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 28}}, {"id": 1345, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 1344, "children": [1346], "start_point": {"row": 263, "column": 5}, "end_point": {"row": 263, "column": 12}}, {"id": 1346, "type": "unary_expression", "text": "!scnt", "parent": 1345, "children": [1347, 1348], "start_point": {"row": 263, "column": 6}, "end_point": {"row": 263, "column": 11}}, {"id": 1347, "type": "!", "text": "!", "parent": 1346, "children": [], "start_point": {"row": 263, "column": 6}, "end_point": {"row": 263, "column": 7}}, {"id": 1348, "type": "identifier", "text": "scnt", "parent": 1346, "children": [], "start_point": {"row": 263, "column": 7}, "end_point": {"row": 263, "column": 11}}, {"id": 1349, "type": "return_statement", "text": "return -EINVAL;", "parent": 1344, "children": [1350], "start_point": {"row": 263, "column": 13}, "end_point": {"row": 263, "column": 28}}, {"id": 1350, "type": "unary_expression", "text": "-EINVAL", "parent": 1349, "children": [1351, 1352], "start_point": {"row": 263, "column": 20}, "end_point": {"row": 263, "column": 27}}, {"id": 1351, "type": "-", "text": "-", "parent": 1350, "children": [], "start_point": {"row": 263, "column": 20}, "end_point": {"row": 263, "column": 21}}, {"id": 1352, "type": "identifier", "text": "EINVAL", "parent": 1350, "children": [], "start_point": {"row": 263, "column": 21}, "end_point": {"row": 263, "column": 27}}, {"id": 1353, "type": "assignment_expression", "text": "count -= scnt", "parent": 1311, "children": [1354, 1355, 1356], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 15}}, {"id": 1354, "type": "identifier", "text": "count", "parent": 1353, "children": [], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 7}}, {"id": 1355, "type": "-=", "text": "-=", "parent": 1353, "children": [], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 10}}, {"id": 1356, "type": "identifier", "text": "scnt", "parent": 1353, "children": [], "start_point": {"row": 264, "column": 11}, "end_point": {"row": 264, "column": 15}}, {"id": 1357, "type": "assignment_expression", "text": "buf += scnt", "parent": 1311, "children": [1358, 1359, 1360], "start_point": {"row": 264, "column": 17}, "end_point": {"row": 264, "column": 28}}, {"id": 1358, "type": "identifier", "text": "buf", "parent": 1357, "children": [], "start_point": {"row": 264, "column": 17}, "end_point": {"row": 264, "column": 20}}, {"id": 1359, "type": "+=", "text": "+=", "parent": 1357, "children": [], "start_point": {"row": 264, "column": 21}, "end_point": {"row": 264, "column": 23}}, {"id": 1360, "type": "identifier", "text": "scnt", "parent": 1357, "children": [], "start_point": {"row": 264, "column": 24}, "end_point": {"row": 264, "column": 28}}, {"id": 1361, "type": "if_statement", "text": "if (!wptr) return -EINVAL;", "parent": 1311, "children": [1362, 1366], "start_point": {"row": 265, "column": 2}, "end_point": {"row": 265, "column": 28}}, {"id": 1362, "type": "parenthesized_expression", "text": "(!wptr)", "parent": 1361, "children": [1363], "start_point": {"row": 265, "column": 5}, "end_point": {"row": 265, "column": 12}}, {"id": 1363, "type": "unary_expression", "text": "!wptr", "parent": 1362, "children": [1364, 1365], "start_point": {"row": 265, "column": 6}, "end_point": {"row": 265, "column": 11}}, {"id": 1364, "type": "!", "text": "!", "parent": 1363, "children": [], "start_point": {"row": 265, "column": 6}, "end_point": {"row": 265, "column": 7}}, {"id": 1365, "type": "identifier", "text": "wptr", "parent": 1363, "children": [], "start_point": {"row": 265, "column": 7}, "end_point": {"row": 265, "column": 11}}, {"id": 1366, "type": "return_statement", "text": "return -EINVAL;", "parent": 1361, "children": [1367], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 28}}, {"id": 1367, "type": "unary_expression", "text": "-EINVAL", "parent": 1366, "children": [1368, 1369], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 27}}, {"id": 1368, "type": "-", "text": "-", "parent": 1367, "children": [], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 21}}, {"id": 1369, "type": "identifier", "text": "EINVAL", "parent": 1367, "children": [], "start_point": {"row": 265, "column": 21}, "end_point": {"row": 265, "column": 27}}, {"id": 1370, "type": "if_statement", "text": "if (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1311, "children": [1371, 1384], "start_point": {"row": 266, "column": 2}, "end_point": {"row": 270, "column": 3}}, {"id": 1371, "type": "parenthesized_expression", "text": "(debugifc_match_keyword(wptr,wlen,\"dir\"))", "parent": 1370, "children": [1372], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 46}}, {"id": 1372, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"dir\")", "parent": 1371, "children": [1373, 1374], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 45}}, {"id": 1373, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1372, "children": [], "start_point": {"row": 266, "column": 6}, "end_point": {"row": 266, "column": 28}}, {"id": 1374, "type": "argument_list", "text": "(wptr,wlen,\"dir\")", "parent": 1372, "children": [1375, 1376, 1377], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 45}}, {"id": 1375, "type": "identifier", "text": "wptr", "parent": 1374, "children": [], "start_point": {"row": 266, "column": 29}, "end_point": {"row": 266, "column": 33}}, {"id": 1376, "type": "identifier", "text": "wlen", "parent": 1374, "children": [], "start_point": {"row": 266, "column": 34}, "end_point": {"row": 266, "column": 38}}, {"id": 1377, "type": "string_literal", "text": "\"dir\"", "parent": 1374, "children": [], "start_point": {"row": 266, "column": 39}, "end_point": {"row": 266, "column": 44}}, {"id": 1378, "type": "assignment_expression", "text": "dir_fl = !0", "parent": 1370, "children": [1379, 1380, 1381], "start_point": {"row": 267, "column": 3}, "end_point": {"row": 267, "column": 14}}, {"id": 1379, "type": "identifier", "text": "dir_fl", "parent": 1378, "children": [], "start_point": {"row": 267, "column": 3}, "end_point": {"row": 267, "column": 9}}, {"id": 1380, "type": "=", "text": "=", "parent": 1378, "children": [], "start_point": {"row": 267, "column": 10}, "end_point": {"row": 267, "column": 11}}, {"id": 1381, "type": "unary_expression", "text": "!0", "parent": 1378, "children": [1382, 1383], "start_point": {"row": 267, "column": 12}, "end_point": {"row": 267, "column": 14}}, {"id": 1382, "type": "!", "text": "!", "parent": 1381, "children": [], "start_point": {"row": 267, "column": 12}, "end_point": {"row": 267, "column": 13}}, {"id": 1383, "type": "number_literal", "text": "0", "parent": 1381, "children": [], "start_point": {"row": 267, "column": 13}, "end_point": {"row": 267, "column": 14}}, {"id": 1384, "type": "else_clause", "text": "else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1370, "children": [1385], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 270, "column": 3}}, {"id": 1385, "type": "if_statement", "text": "if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}", "parent": 1384, "children": [1386], "start_point": {"row": 268, "column": 9}, "end_point": {"row": 270, "column": 3}}, {"id": 1386, "type": "parenthesized_expression", "text": "(!debugifc_match_keyword(wptr,wlen,\"out\"))", "parent": 1385, "children": [1387], "start_point": {"row": 268, "column": 12}, "end_point": {"row": 268, "column": 54}}, {"id": 1387, "type": "unary_expression", "text": "!debugifc_match_keyword(wptr,wlen,\"out\")", "parent": 1386, "children": [1388, 1389], "start_point": {"row": 268, "column": 13}, "end_point": {"row": 268, "column": 53}}, {"id": 1388, "type": "!", "text": "!", "parent": 1387, "children": [], "start_point": {"row": 268, "column": 13}, "end_point": {"row": 268, "column": 14}}, {"id": 1389, "type": "call_expression", "text": "debugifc_match_keyword(wptr,wlen,\"out\")", "parent": 1387, "children": [1390, 1391], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 53}}, {"id": 1390, "type": "identifier", "text": "debugifc_match_keyword", "parent": 1389, "children": [], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 36}}, {"id": 1391, "type": "argument_list", "text": "(wptr,wlen,\"out\")", "parent": 1389, "children": [1392, 1393, 1394], "start_point": {"row": 268, "column": 36}, "end_point": {"row": 268, "column": 53}}, {"id": 1392, "type": "identifier", "text": "wptr", "parent": 1391, "children": [], "start_point": {"row": 268, "column": 37}, "end_point": {"row": 268, "column": 41}}, {"id": 1393, "type": "identifier", "text": "wlen", "parent": 1391, "children": [], "start_point": {"row": 268, "column": 42}, "end_point": {"row": 268, "column": 46}}, {"id": 1394, "type": "string_literal", "text": "\"out\"", "parent": 1391, "children": [], "start_point": {"row": 268, "column": 47}, "end_point": {"row": 268, "column": 52}}, {"id": 1395, "type": "return_statement", "text": "return -EINVAL;", "parent": 1385, "children": [1396], "start_point": {"row": 269, "column": 3}, "end_point": {"row": 269, "column": 18}}, {"id": 1396, "type": "unary_expression", "text": "-EINVAL", "parent": 1395, "children": [1397, 1398], "start_point": {"row": 269, "column": 10}, "end_point": {"row": 269, "column": 17}}, {"id": 1397, "type": "-", "text": "-", "parent": 1396, "children": [], "start_point": {"row": 269, "column": 10}, "end_point": {"row": 269, "column": 11}}, {"id": 1398, "type": "identifier", "text": "EINVAL", "parent": 1396, "children": [], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 17}}, {"id": 1399, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1311, "children": [1400, 1401, 1402], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 53}}, {"id": 1400, "type": "identifier", "text": "scnt", "parent": 1399, "children": [], "start_point": {"row": 271, "column": 2}, "end_point": {"row": 271, "column": 6}}, {"id": 1401, "type": "=", "text": "=", "parent": 1399, "children": [], "start_point": {"row": 271, "column": 7}, "end_point": {"row": 271, "column": 8}}, {"id": 1402, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1399, "children": [1403, 1404], "start_point": {"row": 271, "column": 9}, "end_point": {"row": 271, "column": 53}}, {"id": 1403, "type": "identifier", "text": "debugifc_isolate_word", "parent": 1402, "children": [], "start_point": {"row": 271, "column": 9}, "end_point": {"row": 271, "column": 30}}, {"id": 1404, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 1402, "children": [1405, 1406, 1407, 1409], "start_point": {"row": 271, "column": 30}, "end_point": {"row": 271, "column": 53}}, {"id": 1405, "type": "identifier", "text": "buf", "parent": 1404, "children": [], "start_point": {"row": 271, "column": 31}, "end_point": {"row": 271, "column": 34}}, {"id": 1406, "type": "identifier", "text": "count", "parent": 1404, "children": [], "start_point": {"row": 271, "column": 35}, "end_point": {"row": 271, "column": 40}}, {"id": 1407, "type": "pointer_expression", "text": "&wptr", "parent": 1404, "children": [1408], "start_point": {"row": 271, "column": 41}, "end_point": {"row": 271, "column": 46}}, {"id": 1408, "type": "identifier", "text": "wptr", "parent": 1407, "children": [], "start_point": {"row": 271, "column": 42}, "end_point": {"row": 271, "column": 46}}, {"id": 1409, "type": "pointer_expression", "text": "&wlen", "parent": 1404, "children": [1410], "start_point": {"row": 271, "column": 47}, "end_point": {"row": 271, "column": 52}}, {"id": 1410, "type": "identifier", "text": "wlen", "parent": 1409, "children": [], "start_point": {"row": 271, "column": 48}, "end_point": {"row": 271, "column": 52}}, {"id": 1411, "type": "if_statement", "text": "if (!scnt) return -EINVAL;", "parent": 1311, "children": [1412, 1416], "start_point": {"row": 272, "column": 2}, "end_point": {"row": 272, "column": 28}}, {"id": 1412, "type": "parenthesized_expression", "text": "(!scnt)", "parent": 1411, "children": [1413], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 12}}, {"id": 1413, "type": "unary_expression", "text": "!scnt", "parent": 1412, "children": [1414, 1415], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 11}}, {"id": 1414, "type": "!", "text": "!", "parent": 1413, "children": [], "start_point": {"row": 272, "column": 6}, "end_point": {"row": 272, "column": 7}}, {"id": 1415, "type": "identifier", "text": "scnt", "parent": 1413, "children": [], "start_point": {"row": 272, "column": 7}, "end_point": {"row": 272, "column": 11}}, {"id": 1416, "type": "return_statement", "text": "return -EINVAL;", "parent": 1411, "children": [1417], "start_point": {"row": 272, "column": 13}, "end_point": {"row": 272, "column": 28}}, {"id": 1417, "type": "unary_expression", "text": "-EINVAL", "parent": 1416, "children": [1418, 1419], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 27}}, {"id": 1418, "type": "-", "text": "-", "parent": 1417, "children": [], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 21}}, {"id": 1419, "type": "identifier", "text": "EINVAL", "parent": 1417, "children": [], "start_point": {"row": 272, "column": 21}, "end_point": {"row": 272, "column": 27}}, {"id": 1420, "type": "assignment_expression", "text": "count -= scnt", "parent": 1311, "children": [1421, 1422, 1423], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 15}}, {"id": 1421, "type": "identifier", "text": "count", "parent": 1420, "children": [], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 7}}, {"id": 1422, "type": "-=", "text": "-=", "parent": 1420, "children": [], "start_point": {"row": 273, "column": 8}, "end_point": {"row": 273, "column": 10}}, {"id": 1423, "type": "identifier", "text": "scnt", "parent": 1420, "children": [], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 15}}, {"id": 1424, "type": "assignment_expression", "text": "buf += scnt", "parent": 1311, "children": [1425, 1426, 1427], "start_point": {"row": 273, "column": 17}, "end_point": {"row": 273, "column": 28}}, {"id": 1425, "type": "identifier", "text": "buf", "parent": 1424, "children": [], "start_point": {"row": 273, "column": 17}, "end_point": {"row": 273, "column": 20}}, {"id": 1426, "type": "+=", "text": "+=", "parent": 1424, "children": [], "start_point": {"row": 273, "column": 21}, "end_point": {"row": 273, "column": 23}}, {"id": 1427, "type": "identifier", "text": "scnt", "parent": 1424, "children": [], "start_point": {"row": 273, "column": 24}, "end_point": {"row": 273, "column": 28}}, {"id": 1428, "type": "if_statement", "text": "if (!wptr) return -EINVAL;", "parent": 1311, "children": [1429, 1433], "start_point": {"row": 274, "column": 2}, "end_point": {"row": 274, "column": 28}}, {"id": 1429, "type": "parenthesized_expression", "text": "(!wptr)", "parent": 1428, "children": [1430], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 12}}, {"id": 1430, "type": "unary_expression", "text": "!wptr", "parent": 1429, "children": [1431, 1432], "start_point": {"row": 274, "column": 6}, "end_point": {"row": 274, "column": 11}}, {"id": 1431, "type": "!", "text": "!", "parent": 1430, "children": [], "start_point": {"row": 274, "column": 6}, "end_point": {"row": 274, "column": 7}}, {"id": 1432, "type": "identifier", "text": "wptr", "parent": 1430, "children": [], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 11}}, {"id": 1433, "type": "return_statement", "text": "return -EINVAL;", "parent": 1428, "children": [1434], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 28}}, {"id": 1434, "type": "unary_expression", "text": "-EINVAL", "parent": 1433, "children": [1435, 1436], "start_point": {"row": 274, "column": 20}, "end_point": {"row": 274, "column": 27}}, {"id": 1435, "type": "-", "text": "-", "parent": 1434, "children": [], "start_point": {"row": 274, "column": 20}, "end_point": {"row": 274, "column": 21}}, {"id": 1436, "type": "identifier", "text": "EINVAL", "parent": 1434, "children": [], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 27}}, {"id": 1437, "type": "assignment_expression", "text": "ret = debugifc_parse_unsigned_number(wptr,wlen,&msk)", "parent": 1311, "children": [1438, 1439, 1440], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 54}}, {"id": 1438, "type": "identifier", "text": "ret", "parent": 1437, "children": [], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 5}}, {"id": 1439, "type": "=", "text": "=", "parent": 1437, "children": [], "start_point": {"row": 275, "column": 6}, "end_point": {"row": 275, "column": 7}}, {"id": 1440, "type": "call_expression", "text": "debugifc_parse_unsigned_number(wptr,wlen,&msk)", "parent": 1437, "children": [1441, 1442], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 54}}, {"id": 1441, "type": "identifier", "text": "debugifc_parse_unsigned_number", "parent": 1440, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 38}}, {"id": 1442, "type": "argument_list", "text": "(wptr,wlen,&msk)", "parent": 1440, "children": [1443, 1444, 1445], "start_point": {"row": 275, "column": 38}, "end_point": {"row": 275, "column": 54}}, {"id": 1443, "type": "identifier", "text": "wptr", "parent": 1442, "children": [], "start_point": {"row": 275, "column": 39}, "end_point": {"row": 275, "column": 43}}, {"id": 1444, "type": "identifier", "text": "wlen", "parent": 1442, "children": [], "start_point": {"row": 275, "column": 44}, "end_point": {"row": 275, "column": 48}}, {"id": 1445, "type": "pointer_expression", "text": "&msk", "parent": 1442, "children": [1446], "start_point": {"row": 275, "column": 49}, "end_point": {"row": 275, "column": 53}}, {"id": 1446, "type": "identifier", "text": "msk", "parent": 1445, "children": [], "start_point": {"row": 275, "column": 50}, "end_point": {"row": 275, "column": 53}}, {"id": 1447, "type": "if_statement", "text": "if (ret) return ret;", "parent": 1311, "children": [1448, 1450], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 22}}, {"id": 1448, "type": "parenthesized_expression", "text": "(ret)", "parent": 1447, "children": [1449], "start_point": {"row": 276, "column": 5}, "end_point": {"row": 276, "column": 10}}, {"id": 1449, "type": "identifier", "text": "ret", "parent": 1448, "children": [], "start_point": {"row": 276, "column": 6}, "end_point": {"row": 276, "column": 9}}, {"id": 1450, "type": "return_statement", "text": "return ret;", "parent": 1447, "children": [1451], "start_point": {"row": 276, "column": 11}, "end_point": {"row": 276, "column": 22}}, {"id": 1451, "type": "identifier", "text": "ret", "parent": 1450, "children": [], "start_point": {"row": 276, "column": 18}, "end_point": {"row": 276, "column": 21}}, {"id": 1452, "type": "assignment_expression", "text": "scnt = debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1311, "children": [1453, 1454, 1455], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 277, "column": 53}}, {"id": 1453, "type": "identifier", "text": "scnt", "parent": 1452, "children": [], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 277, "column": 6}}, {"id": 1454, "type": "=", "text": "=", "parent": 1452, "children": [], "start_point": {"row": 277, "column": 7}, "end_point": {"row": 277, "column": 8}}, {"id": 1455, "type": "call_expression", "text": "debugifc_isolate_word(buf,count,&wptr,&wlen)", "parent": 1452, "children": [1456, 1457], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 53}}, {"id": 1456, "type": "identifier", "text": "debugifc_isolate_word", "parent": 1455, "children": [], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 30}}, {"id": 1457, "type": "argument_list", "text": "(buf,count,&wptr,&wlen)", "parent": 1455, "children": [1458, 1459, 1460, 1462], "start_point": {"row": 277, "column": 30}, "end_point": {"row": 277, "column": 53}}, {"id": 1458, "type": "identifier", "text": "buf", "parent": 1457, "children": [], "start_point": {"row": 277, "column": 31}, "end_point": {"row": 277, "column": 34}}, {"id": 1459, "type": "identifier", "text": "count", "parent": 1457, "children": [], "start_point": {"row": 277, "column": 35}, "end_point": {"row": 277, "column": 40}}, {"id": 1460, "type": "pointer_expression", "text": "&wptr", "parent": 1457, "children": [1461], "start_point": {"row": 277, "column": 41}, "end_point": {"row": 277, "column": 46}}, {"id": 1461, "type": "identifier", "text": "wptr", "parent": 1460, "children": [], "start_point": {"row": 277, "column": 42}, "end_point": {"row": 277, "column": 46}}, {"id": 1462, "type": "pointer_expression", "text": "&wlen", "parent": 1457, "children": [1463], "start_point": {"row": 277, "column": 47}, "end_point": {"row": 277, "column": 52}}, {"id": 1463, "type": "identifier", "text": "wlen", "parent": 1462, "children": [], "start_point": {"row": 277, "column": 48}, "end_point": {"row": 277, "column": 52}}, {"id": 1464, "type": "if_statement", "text": "if (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}", "parent": 1311, "children": [1465, 1482], "start_point": {"row": 278, "column": 2}, "end_point": {"row": 284, "column": 3}}, {"id": 1465, "type": "parenthesized_expression", "text": "(wptr)", "parent": 1464, "children": [1466], "start_point": {"row": 278, "column": 5}, "end_point": {"row": 278, "column": 11}}, {"id": 1466, "type": "identifier", "text": "wptr", "parent": 1465, "children": [], "start_point": {"row": 278, "column": 6}, "end_point": {"row": 278, "column": 10}}, {"id": 1467, "type": "assignment_expression", "text": "ret = debugifc_parse_unsigned_number(wptr,wlen,&val)", "parent": 1464, "children": [1468, 1469, 1470], "start_point": {"row": 279, "column": 3}, "end_point": {"row": 279, "column": 55}}, {"id": 1468, "type": "identifier", "text": "ret", "parent": 1467, "children": [], "start_point": {"row": 279, "column": 3}, "end_point": {"row": 279, "column": 6}}, {"id": 1469, "type": "=", "text": "=", "parent": 1467, "children": [], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 8}}, {"id": 1470, "type": "call_expression", "text": "debugifc_parse_unsigned_number(wptr,wlen,&val)", "parent": 1467, "children": [1471, 1472], "start_point": {"row": 279, "column": 9}, "end_point": {"row": 279, "column": 55}}, {"id": 1471, "type": "identifier", "text": "debugifc_parse_unsigned_number", "parent": 1470, "children": [], "start_point": {"row": 279, "column": 9}, "end_point": {"row": 279, "column": 39}}, {"id": 1472, "type": "argument_list", "text": "(wptr,wlen,&val)", "parent": 1470, "children": [1473, 1474, 1475], "start_point": {"row": 279, "column": 39}, "end_point": {"row": 279, "column": 55}}, {"id": 1473, "type": "identifier", "text": "wptr", "parent": 1472, "children": [], "start_point": {"row": 279, "column": 40}, "end_point": {"row": 279, "column": 44}}, {"id": 1474, "type": "identifier", "text": "wlen", "parent": 1472, "children": [], "start_point": {"row": 279, "column": 45}, "end_point": {"row": 279, "column": 49}}, {"id": 1475, "type": "pointer_expression", "text": "&val", "parent": 1472, "children": [1476], "start_point": {"row": 279, "column": 50}, "end_point": {"row": 279, "column": 54}}, {"id": 1476, "type": "identifier", "text": "val", "parent": 1475, "children": [], "start_point": {"row": 279, "column": 51}, "end_point": {"row": 279, "column": 54}}, {"id": 1477, "type": "if_statement", "text": "if (ret) return ret;", "parent": 1464, "children": [1478, 1480], "start_point": {"row": 280, "column": 3}, "end_point": {"row": 280, "column": 23}}, {"id": 1478, "type": "parenthesized_expression", "text": "(ret)", "parent": 1477, "children": [1479], "start_point": {"row": 280, "column": 6}, "end_point": {"row": 280, "column": 11}}, {"id": 1479, "type": "identifier", "text": "ret", "parent": 1478, "children": [], "start_point": {"row": 280, "column": 7}, "end_point": {"row": 280, "column": 10}}, {"id": 1480, "type": "return_statement", "text": "return ret;", "parent": 1477, "children": [1481], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 23}}, {"id": 1481, "type": "identifier", "text": "ret", "parent": 1480, "children": [], "start_point": {"row": 280, "column": 19}, "end_point": {"row": 280, "column": 22}}, {"id": 1482, "type": "else_clause", "text": "else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}", "parent": 1464, "children": [], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 284, "column": 3}}, {"id": 1483, "type": "assignment_expression", "text": "val = msk", "parent": 1482, "children": [1484, 1485, 1486], "start_point": {"row": 282, "column": 3}, "end_point": {"row": 282, "column": 12}}, {"id": 1484, "type": "identifier", "text": "val", "parent": 1483, "children": [], "start_point": {"row": 282, "column": 3}, "end_point": {"row": 282, "column": 6}}, {"id": 1485, "type": "=", "text": "=", "parent": 1483, "children": [], "start_point": {"row": 282, "column": 7}, "end_point": {"row": 282, "column": 8}}, {"id": 1486, "type": "identifier", "text": "msk", "parent": 1483, "children": [], "start_point": {"row": 282, "column": 9}, "end_point": {"row": 282, "column": 12}}, {"id": 1487, "type": "assignment_expression", "text": "msk = 0xffffffff", "parent": 1482, "children": [1488, 1489, 1490], "start_point": {"row": 283, "column": 3}, "end_point": {"row": 283, "column": 19}}, {"id": 1488, "type": "identifier", "text": "msk", "parent": 1487, "children": [], "start_point": {"row": 283, "column": 3}, "end_point": {"row": 283, "column": 6}}, {"id": 1489, "type": "=", "text": "=", "parent": 1487, "children": [], "start_point": {"row": 283, "column": 7}, "end_point": {"row": 283, "column": 8}}, {"id": 1490, "type": "number_literal", "text": "0xffffffff", "parent": 1487, "children": [], "start_point": {"row": 283, "column": 9}, "end_point": {"row": 283, "column": 19}}, {"id": 1491, "type": "if_statement", "text": "if (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}", "parent": 1311, "children": [1492, 1503], "start_point": {"row": 285, "column": 2}, "end_point": {"row": 289, "column": 3}}, {"id": 1492, "type": "parenthesized_expression", "text": "(dir_fl)", "parent": 1491, "children": [1493], "start_point": {"row": 285, "column": 5}, "end_point": {"row": 285, "column": 13}}, {"id": 1493, "type": "identifier", "text": "dir_fl", "parent": 1492, "children": [], "start_point": {"row": 285, "column": 6}, "end_point": {"row": 285, "column": 12}}, {"id": 1494, "type": "assignment_expression", "text": "ret = pvr2_hdw_gpio_chg_dir(hdw,msk,val)", "parent": 1491, "children": [1495, 1496, 1497], "start_point": {"row": 286, "column": 3}, "end_point": {"row": 286, "column": 43}}, {"id": 1495, "type": "identifier", "text": "ret", "parent": 1494, "children": [], "start_point": {"row": 286, "column": 3}, "end_point": {"row": 286, "column": 6}}, {"id": 1496, "type": "=", "text": "=", "parent": 1494, "children": [], "start_point": {"row": 286, "column": 7}, "end_point": {"row": 286, "column": 8}}, {"id": 1497, "type": "call_expression", "text": "pvr2_hdw_gpio_chg_dir(hdw,msk,val)", "parent": 1494, "children": [1498, 1499], "start_point": {"row": 286, "column": 9}, "end_point": {"row": 286, "column": 43}}, {"id": 1498, "type": "identifier", "text": "pvr2_hdw_gpio_chg_dir", "parent": 1497, "children": [], "start_point": {"row": 286, "column": 9}, "end_point": {"row": 286, "column": 30}}, {"id": 1499, "type": "argument_list", "text": "(hdw,msk,val)", "parent": 1497, "children": [1500, 1501, 1502], "start_point": {"row": 286, "column": 30}, "end_point": {"row": 286, "column": 43}}, {"id": 1500, "type": "identifier", "text": "hdw", "parent": 1499, "children": [], "start_point": {"row": 286, "column": 31}, "end_point": {"row": 286, "column": 34}}, {"id": 1501, "type": "identifier", "text": "msk", "parent": 1499, "children": [], "start_point": {"row": 286, "column": 35}, "end_point": {"row": 286, "column": 38}}, {"id": 1502, "type": "identifier", "text": "val", "parent": 1499, "children": [], "start_point": {"row": 286, "column": 39}, "end_point": {"row": 286, "column": 42}}, {"id": 1503, "type": "else_clause", "text": "else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}", "parent": 1491, "children": [], "start_point": {"row": 287, "column": 4}, "end_point": {"row": 289, "column": 3}}, {"id": 1504, "type": "assignment_expression", "text": "ret = pvr2_hdw_gpio_chg_out(hdw,msk,val)", "parent": 1503, "children": [1505, 1506, 1507], "start_point": {"row": 288, "column": 3}, "end_point": {"row": 288, "column": 43}}, {"id": 1505, "type": "identifier", "text": "ret", "parent": 1504, "children": [], "start_point": {"row": 288, "column": 3}, "end_point": {"row": 288, "column": 6}}, {"id": 1506, "type": "=", "text": "=", "parent": 1504, "children": [], "start_point": {"row": 288, "column": 7}, "end_point": {"row": 288, "column": 8}}, {"id": 1507, "type": "call_expression", "text": "pvr2_hdw_gpio_chg_out(hdw,msk,val)", "parent": 1504, "children": [1508, 1509], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 43}}, {"id": 1508, "type": "identifier", "text": "pvr2_hdw_gpio_chg_out", "parent": 1507, "children": [], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 30}}, {"id": 1509, "type": "argument_list", "text": "(hdw,msk,val)", "parent": 1507, "children": [1510, 1511, 1512], "start_point": {"row": 288, "column": 30}, "end_point": {"row": 288, "column": 43}}, {"id": 1510, "type": "identifier", "text": "hdw", "parent": 1509, "children": [], "start_point": {"row": 288, "column": 31}, "end_point": {"row": 288, "column": 34}}, {"id": 1511, "type": "identifier", "text": "msk", "parent": 1509, "children": [], "start_point": {"row": 288, "column": 35}, "end_point": {"row": 288, "column": 38}}, {"id": 1512, "type": "identifier", "text": "val", "parent": 1509, "children": [], "start_point": {"row": 288, "column": 39}, "end_point": {"row": 288, "column": 42}}, {"id": 1513, "type": "return_statement", "text": "return ret;", "parent": 1311, "children": [1514], "start_point": {"row": 290, "column": 2}, "end_point": {"row": 290, "column": 13}}, {"id": 1514, "type": "identifier", "text": "ret", "parent": 1513, "children": [], "start_point": {"row": 290, "column": 9}, "end_point": {"row": 290, "column": 12}}, {"id": 1515, "type": "call_expression", "text": "pvr2_trace(PVR2_TRACE_DEBUGIFC,\n\t\t \"debugifc failed to recognize cmd: \\\"%.*s\\\"\",wlen,wptr)", "parent": 884, "children": [1516, 1517], "start_point": {"row": 292, "column": 1}, "end_point": {"row": 293, "column": 60}}, {"id": 1516, "type": "identifier", "text": "pvr2_trace", "parent": 1515, "children": [], "start_point": {"row": 292, "column": 1}, "end_point": {"row": 292, "column": 11}}, {"id": 1517, "type": "argument_list", "text": "(PVR2_TRACE_DEBUGIFC,\n\t\t \"debugifc failed to recognize cmd: \\\"%.*s\\\"\",wlen,wptr)", "parent": 1515, "children": [1518, 1519, 1522, 1523], "start_point": {"row": 292, "column": 11}, "end_point": {"row": 293, "column": 60}}, {"id": 1518, "type": "identifier", "text": "PVR2_TRACE_DEBUGIFC", "parent": 1517, "children": [], "start_point": {"row": 292, "column": 12}, "end_point": {"row": 292, "column": 31}}, {"id": 1519, "type": "string_literal", "text": "\"debugifc failed to recognize cmd: \\\"%.*s\\\"\"", "parent": 1517, "children": [1520, 1521], "start_point": {"row": 293, "column": 5}, "end_point": {"row": 293, "column": 49}}, {"id": 1520, "type": "escape_sequence", "text": "\\\"", "parent": 1519, "children": [], "start_point": {"row": 293, "column": 40}, "end_point": {"row": 293, "column": 42}}, {"id": 1521, "type": "escape_sequence", "text": "\\\"", "parent": 1519, "children": [], "start_point": {"row": 293, "column": 46}, "end_point": {"row": 293, "column": 48}}, {"id": 1522, "type": "identifier", "text": "wlen", "parent": 1517, "children": [], "start_point": {"row": 293, "column": 50}, "end_point": {"row": 293, "column": 54}}, {"id": 1523, "type": "identifier", "text": "wptr", "parent": 1517, "children": [], "start_point": {"row": 293, "column": 55}, "end_point": {"row": 293, "column": 59}}, {"id": 1524, "type": "return_statement", "text": "return -EINVAL;", "parent": 884, "children": [1525], "start_point": {"row": 294, "column": 1}, "end_point": {"row": 294, "column": 16}}, {"id": 1525, "type": "unary_expression", "text": "-EINVAL", "parent": 1524, "children": [1526, 1527], "start_point": {"row": 294, "column": 8}, "end_point": {"row": 294, "column": 15}}, {"id": 1526, "type": "-", "text": "-", "parent": 1525, "children": [], "start_point": {"row": 294, "column": 8}, "end_point": {"row": 294, "column": 9}}, {"id": 1527, "type": "identifier", "text": "EINVAL", "parent": 1525, "children": [], "start_point": {"row": 294, "column": 9}, "end_point": {"row": 294, "column": 15}}, {"id": 1528, "type": "function_definition", "text": "int pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)\n{\n\tunsigned int bcnt = 0;\n\tint ret;\n\n\twhile (count) {\n\t\tfor (bcnt = 0; bcnt < count; bcnt++) {\n\t\t\tif (buf[bcnt] == '\\n') break;\n\t\t}\n\n\t\tret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n\t\tif (ret < 0) return ret;\n\t\tif (bcnt < count) bcnt++;\n\t\tbuf += bcnt;\n\t\tcount -= bcnt;\n\t}\n\n\treturn 0;\n}", "parent": null, "children": [1529, 1530], "start_point": {"row": 298, "column": 0}, "end_point": {"row": 317, "column": 1}}, {"id": 1529, "type": "primitive_type", "text": "int", "parent": 1528, "children": [], "start_point": {"row": 298, "column": 0}, "end_point": {"row": 298, "column": 3}}, {"id": 1530, "type": "function_declarator", "text": "pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)", "parent": 1528, "children": [1531, 1532], "start_point": {"row": 298, "column": 4}, "end_point": {"row": 299, "column": 22}}, {"id": 1531, "type": "identifier", "text": "pvr2_debugifc_docmd", "parent": 1530, "children": [], "start_point": {"row": 298, "column": 4}, "end_point": {"row": 298, "column": 23}}, {"id": 1532, "type": "parameter_list", "text": "(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)", "parent": 1530, "children": [1533, 1540, 1545], "start_point": {"row": 298, "column": 23}, "end_point": {"row": 299, "column": 22}}, {"id": 1533, "type": "parameter_declaration", "text": "struct pvr2_hdw *hdw", "parent": 1532, "children": [1534, 1537], "start_point": {"row": 298, "column": 24}, "end_point": {"row": 298, "column": 44}}, {"id": 1534, "type": "struct_specifier", "text": "struct pvr2_hdw", "parent": 1533, "children": [1535, 1536], "start_point": {"row": 298, "column": 24}, "end_point": {"row": 298, "column": 39}}, {"id": 1535, "type": "struct", "text": "struct", "parent": 1534, "children": [], "start_point": {"row": 298, "column": 24}, "end_point": {"row": 298, "column": 30}}, {"id": 1536, "type": "type_identifier", "text": "pvr2_hdw", "parent": 1534, "children": [], "start_point": {"row": 298, "column": 31}, "end_point": {"row": 298, "column": 39}}, {"id": 1537, "type": "pointer_declarator", "text": "*hdw", "parent": 1533, "children": [1538, 1539], "start_point": {"row": 298, "column": 40}, "end_point": {"row": 298, "column": 44}}, {"id": 1538, "type": "*", "text": "*", "parent": 1537, "children": [], "start_point": {"row": 298, "column": 40}, "end_point": {"row": 298, "column": 41}}, {"id": 1539, "type": "identifier", "text": "hdw", "parent": 1537, "children": [], "start_point": {"row": 298, "column": 41}, "end_point": {"row": 298, "column": 44}}, {"id": 1540, "type": "parameter_declaration", "text": "const char *buf", "parent": 1532, "children": [1541, 1542], "start_point": {"row": 298, "column": 45}, "end_point": {"row": 298, "column": 60}}, {"id": 1541, "type": "primitive_type", "text": "char", "parent": 1540, "children": [], "start_point": {"row": 298, "column": 51}, "end_point": {"row": 298, "column": 55}}, {"id": 1542, "type": "pointer_declarator", "text": "*buf", "parent": 1540, "children": [1543, 1544], "start_point": {"row": 298, "column": 56}, "end_point": {"row": 298, "column": 60}}, {"id": 1543, "type": "*", "text": "*", "parent": 1542, "children": [], "start_point": {"row": 298, "column": 56}, "end_point": {"row": 298, "column": 57}}, {"id": 1544, "type": "identifier", "text": "buf", "parent": 1542, "children": [], "start_point": {"row": 298, "column": 57}, "end_point": {"row": 298, "column": 60}}, {"id": 1545, "type": "parameter_declaration", "text": "unsigned int count", "parent": 1532, "children": [1546, 1549], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 21}}, {"id": 1546, "type": "sized_type_specifier", "text": "unsigned int", "parent": 1545, "children": [1547, 1548], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 15}}, {"id": 1547, "type": "unsigned", "text": "unsigned", "parent": 1546, "children": [], "start_point": {"row": 299, "column": 3}, "end_point": {"row": 299, "column": 11}}, {"id": 1548, "type": "primitive_type", "text": "int", "parent": 1546, "children": [], "start_point": {"row": 299, "column": 12}, "end_point": {"row": 299, "column": 15}}, {"id": 1549, "type": "identifier", "text": "count", "parent": 1545, "children": [], "start_point": {"row": 299, "column": 16}, "end_point": {"row": 299, "column": 21}}, {"id": 1550, "type": "declaration", "text": "unsigned int bcnt = 0;", "parent": 1528, "children": [1551, 1554], "start_point": {"row": 301, "column": 1}, "end_point": {"row": 301, "column": 23}}, {"id": 1551, "type": "sized_type_specifier", "text": "unsigned int", "parent": 1550, "children": [1552, 1553], "start_point": {"row": 301, "column": 1}, "end_point": {"row": 301, "column": 13}}, {"id": 1552, "type": "unsigned", "text": "unsigned", "parent": 1551, "children": [], "start_point": {"row": 301, "column": 1}, "end_point": {"row": 301, "column": 9}}, {"id": 1553, "type": "primitive_type", "text": "int", "parent": 1551, "children": [], "start_point": {"row": 301, "column": 10}, "end_point": {"row": 301, "column": 13}}, {"id": 1554, "type": "init_declarator", "text": "bcnt = 0", "parent": 1550, "children": [1555, 1556, 1557], "start_point": {"row": 301, "column": 14}, "end_point": {"row": 301, "column": 22}}, {"id": 1555, "type": "identifier", "text": "bcnt", "parent": 1554, "children": [], "start_point": {"row": 301, "column": 14}, "end_point": {"row": 301, "column": 18}}, {"id": 1556, "type": "=", "text": "=", "parent": 1554, "children": [], "start_point": {"row": 301, "column": 19}, "end_point": {"row": 301, "column": 20}}, {"id": 1557, "type": "number_literal", "text": "0", "parent": 1554, "children": [], "start_point": {"row": 301, "column": 21}, "end_point": {"row": 301, "column": 22}}, {"id": 1558, "type": "declaration", "text": "int ret;", "parent": 1528, "children": [1559, 1560], "start_point": {"row": 302, "column": 1}, "end_point": {"row": 302, "column": 9}}, {"id": 1559, "type": "primitive_type", "text": "int", "parent": 1558, "children": [], "start_point": {"row": 302, "column": 1}, "end_point": {"row": 302, "column": 4}}, {"id": 1560, "type": "identifier", "text": "ret", "parent": 1558, "children": [], "start_point": {"row": 302, "column": 5}, "end_point": {"row": 302, "column": 8}}, {"id": 1561, "type": "while_statement", "text": "while (count) {\n\t\tfor (bcnt = 0; bcnt < count; bcnt++) {\n\t\t\tif (buf[bcnt] == '\\n') break;\n\t\t}\n\n\t\tret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n\t\tif (ret < 0) return ret;\n\t\tif (bcnt < count) bcnt++;\n\t\tbuf += bcnt;\n\t\tcount -= bcnt;\n\t}", "parent": 1528, "children": [1562], "start_point": {"row": 304, "column": 1}, "end_point": {"row": 314, "column": 2}}, {"id": 1562, "type": "parenthesized_expression", "text": "(count)", "parent": 1561, "children": [1563], "start_point": {"row": 304, "column": 7}, "end_point": {"row": 304, "column": 14}}, {"id": 1563, "type": "identifier", "text": "count", "parent": 1562, "children": [], "start_point": {"row": 304, "column": 8}, "end_point": {"row": 304, "column": 13}}, {"id": 1564, "type": "for_statement", "text": "for (bcnt = 0; bcnt < count; bcnt++) {\n\t\t\tif (buf[bcnt] == '\\n') break;\n\t\t}", "parent": 1561, "children": [1565, 1569, 1573], "start_point": {"row": 305, "column": 2}, "end_point": {"row": 307, "column": 3}}, {"id": 1565, "type": "assignment_expression", "text": "bcnt = 0", "parent": 1564, "children": [1566, 1567, 1568], "start_point": {"row": 305, "column": 7}, "end_point": {"row": 305, "column": 15}}, {"id": 1566, "type": "identifier", "text": "bcnt", "parent": 1565, "children": [], "start_point": {"row": 305, "column": 7}, "end_point": {"row": 305, "column": 11}}, {"id": 1567, "type": "=", "text": "=", "parent": 1565, "children": [], "start_point": {"row": 305, "column": 12}, "end_point": {"row": 305, "column": 13}}, {"id": 1568, "type": "number_literal", "text": "0", "parent": 1565, "children": [], "start_point": {"row": 305, "column": 14}, "end_point": {"row": 305, "column": 15}}, {"id": 1569, "type": "binary_expression", "text": "bcnt < count", "parent": 1564, "children": [1570, 1571, 1572], "start_point": {"row": 305, "column": 17}, "end_point": {"row": 305, "column": 29}}, {"id": 1570, "type": "identifier", "text": "bcnt", "parent": 1569, "children": [], "start_point": {"row": 305, "column": 17}, "end_point": {"row": 305, "column": 21}}, {"id": 1571, "type": "<", "text": "<", "parent": 1569, "children": [], "start_point": {"row": 305, "column": 22}, "end_point": {"row": 305, "column": 23}}, {"id": 1572, "type": "identifier", "text": "count", "parent": 1569, "children": [], "start_point": {"row": 305, "column": 24}, "end_point": {"row": 305, "column": 29}}, {"id": 1573, "type": "update_expression", "text": "bcnt++", "parent": 1564, "children": [1574, 1575], "start_point": {"row": 305, "column": 31}, "end_point": {"row": 305, "column": 37}}, {"id": 1574, "type": "identifier", "text": "bcnt", "parent": 1573, "children": [], "start_point": {"row": 305, "column": 31}, "end_point": {"row": 305, "column": 35}}, {"id": 1575, "type": "++", "text": "++", "parent": 1573, "children": [], "start_point": {"row": 305, "column": 35}, "end_point": {"row": 305, "column": 37}}, {"id": 1576, "type": "if_statement", "text": "if (buf[bcnt] == '\\n') break;", "parent": 1564, "children": [1577, 1587], "start_point": {"row": 306, "column": 3}, "end_point": {"row": 306, "column": 32}}, {"id": 1577, "type": "parenthesized_expression", "text": "(buf[bcnt] == '\\n')", "parent": 1576, "children": [1578], "start_point": {"row": 306, "column": 6}, "end_point": {"row": 306, "column": 25}}, {"id": 1578, "type": "binary_expression", "text": "buf[bcnt] == '\\n'", "parent": 1577, "children": [1579, 1582, 1583], "start_point": {"row": 306, "column": 7}, "end_point": {"row": 306, "column": 24}}, {"id": 1579, "type": "subscript_expression", "text": "buf[bcnt]", "parent": 1578, "children": [1580, 1581], "start_point": {"row": 306, "column": 7}, "end_point": {"row": 306, "column": 16}}, {"id": 1580, "type": "identifier", "text": "buf", "parent": 1579, "children": [], "start_point": {"row": 306, "column": 7}, "end_point": {"row": 306, "column": 10}}, {"id": 1581, "type": "identifier", "text": "bcnt", "parent": 1579, "children": [], "start_point": {"row": 306, "column": 11}, "end_point": {"row": 306, "column": 15}}, {"id": 1582, "type": "==", "text": "==", "parent": 1578, "children": [], "start_point": {"row": 306, "column": 17}, "end_point": {"row": 306, "column": 19}}, {"id": 1583, "type": "char_literal", "text": "'\\n'", "parent": 1578, "children": [1584, 1585, 1586], "start_point": {"row": 306, "column": 20}, "end_point": {"row": 306, "column": 24}}, {"id": 1584, "type": "'", "text": "'", "parent": 1583, "children": [], "start_point": {"row": 306, "column": 20}, "end_point": {"row": 306, "column": 21}}, {"id": 1585, "type": "escape_sequence", "text": "\\n", "parent": 1583, "children": [], "start_point": {"row": 306, "column": 21}, "end_point": {"row": 306, "column": 23}}, {"id": 1586, "type": "'", "text": "'", "parent": 1583, "children": [], "start_point": {"row": 306, "column": 23}, "end_point": {"row": 306, "column": 24}}, {"id": 1587, "type": "break_statement", "text": "break;", "parent": 1576, "children": [1588], "start_point": {"row": 306, "column": 26}, "end_point": {"row": 306, "column": 32}}, {"id": 1588, "type": "break", "text": "break", "parent": 1587, "children": [], "start_point": {"row": 306, "column": 26}, "end_point": {"row": 306, "column": 31}}, {"id": 1589, "type": "assignment_expression", "text": "ret = pvr2_debugifc_do1cmd(hdw,buf,bcnt)", "parent": 1561, "children": [1590, 1591, 1592], "start_point": {"row": 309, "column": 2}, "end_point": {"row": 309, "column": 42}}, {"id": 1590, "type": "identifier", "text": "ret", "parent": 1589, "children": [], "start_point": {"row": 309, "column": 2}, "end_point": {"row": 309, "column": 5}}, {"id": 1591, "type": "=", "text": "=", "parent": 1589, "children": [], "start_point": {"row": 309, "column": 6}, "end_point": {"row": 309, "column": 7}}, {"id": 1592, "type": "call_expression", "text": "pvr2_debugifc_do1cmd(hdw,buf,bcnt)", "parent": 1589, "children": [1593, 1594], "start_point": {"row": 309, "column": 8}, "end_point": {"row": 309, "column": 42}}, {"id": 1593, "type": "identifier", "text": "pvr2_debugifc_do1cmd", "parent": 1592, "children": [], "start_point": {"row": 309, "column": 8}, "end_point": {"row": 309, "column": 28}}, {"id": 1594, "type": "argument_list", "text": "(hdw,buf,bcnt)", "parent": 1592, "children": [1595, 1596, 1597], "start_point": {"row": 309, "column": 28}, "end_point": {"row": 309, "column": 42}}, {"id": 1595, "type": "identifier", "text": "hdw", "parent": 1594, "children": [], "start_point": {"row": 309, "column": 29}, "end_point": {"row": 309, "column": 32}}, {"id": 1596, "type": "identifier", "text": "buf", "parent": 1594, "children": [], "start_point": {"row": 309, "column": 33}, "end_point": {"row": 309, "column": 36}}, {"id": 1597, "type": "identifier", "text": "bcnt", "parent": 1594, "children": [], "start_point": {"row": 309, "column": 37}, "end_point": {"row": 309, "column": 41}}, {"id": 1598, "type": "if_statement", "text": "if (ret < 0) return ret;", "parent": 1561, "children": [1599, 1604], "start_point": {"row": 310, "column": 2}, "end_point": {"row": 310, "column": 26}}, {"id": 1599, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 1598, "children": [1600], "start_point": {"row": 310, "column": 5}, "end_point": {"row": 310, "column": 14}}, {"id": 1600, "type": "binary_expression", "text": "ret < 0", "parent": 1599, "children": [1601, 1602, 1603], "start_point": {"row": 310, "column": 6}, "end_point": {"row": 310, "column": 13}}, {"id": 1601, "type": "identifier", "text": "ret", "parent": 1600, "children": [], "start_point": {"row": 310, "column": 6}, "end_point": {"row": 310, "column": 9}}, {"id": 1602, "type": "<", "text": "<", "parent": 1600, "children": [], "start_point": {"row": 310, "column": 10}, "end_point": {"row": 310, "column": 11}}, {"id": 1603, "type": "number_literal", "text": "0", "parent": 1600, "children": [], "start_point": {"row": 310, "column": 12}, "end_point": {"row": 310, "column": 13}}, {"id": 1604, "type": "return_statement", "text": "return ret;", "parent": 1598, "children": [1605], "start_point": {"row": 310, "column": 15}, "end_point": {"row": 310, "column": 26}}, {"id": 1605, "type": "identifier", "text": "ret", "parent": 1604, "children": [], "start_point": {"row": 310, "column": 22}, "end_point": {"row": 310, "column": 25}}, {"id": 1606, "type": "if_statement", "text": "if (bcnt < count) bcnt++;", "parent": 1561, "children": [1607], "start_point": {"row": 311, "column": 2}, "end_point": {"row": 311, "column": 27}}, {"id": 1607, "type": "parenthesized_expression", "text": "(bcnt < count)", "parent": 1606, "children": [1608], "start_point": {"row": 311, "column": 5}, "end_point": {"row": 311, "column": 19}}, {"id": 1608, "type": "binary_expression", "text": "bcnt < count", "parent": 1607, "children": [1609, 1610, 1611], "start_point": {"row": 311, "column": 6}, "end_point": {"row": 311, "column": 18}}, {"id": 1609, "type": "identifier", "text": "bcnt", "parent": 1608, "children": [], "start_point": {"row": 311, "column": 6}, "end_point": {"row": 311, "column": 10}}, {"id": 1610, "type": "<", "text": "<", "parent": 1608, "children": [], "start_point": {"row": 311, "column": 11}, "end_point": {"row": 311, "column": 12}}, {"id": 1611, "type": "identifier", "text": "count", "parent": 1608, "children": [], "start_point": {"row": 311, "column": 13}, "end_point": {"row": 311, "column": 18}}, {"id": 1612, "type": "update_expression", "text": "bcnt++", "parent": 1606, "children": [1613, 1614], "start_point": {"row": 311, "column": 20}, "end_point": {"row": 311, "column": 26}}, {"id": 1613, "type": "identifier", "text": "bcnt", "parent": 1612, "children": [], "start_point": {"row": 311, "column": 20}, "end_point": {"row": 311, "column": 24}}, {"id": 1614, "type": "++", "text": "++", "parent": 1612, "children": [], "start_point": {"row": 311, "column": 24}, "end_point": {"row": 311, "column": 26}}, {"id": 1615, "type": "assignment_expression", "text": "buf += bcnt", "parent": 1561, "children": [1616, 1617, 1618], "start_point": {"row": 312, "column": 2}, "end_point": {"row": 312, "column": 13}}, {"id": 1616, "type": "identifier", "text": "buf", "parent": 1615, "children": [], "start_point": {"row": 312, "column": 2}, "end_point": {"row": 312, "column": 5}}, {"id": 1617, "type": "+=", "text": "+=", "parent": 1615, "children": [], "start_point": {"row": 312, "column": 6}, "end_point": {"row": 312, "column": 8}}, {"id": 1618, "type": "identifier", "text": "bcnt", "parent": 1615, "children": [], "start_point": {"row": 312, "column": 9}, "end_point": {"row": 312, "column": 13}}, {"id": 1619, "type": "assignment_expression", "text": "count -= bcnt", "parent": 1561, "children": [1620, 1621, 1622], "start_point": {"row": 313, "column": 2}, "end_point": {"row": 313, "column": 15}}, {"id": 1620, "type": "identifier", "text": "count", "parent": 1619, "children": [], "start_point": {"row": 313, "column": 2}, "end_point": {"row": 313, "column": 7}}, {"id": 1621, "type": "-=", "text": "-=", "parent": 1619, "children": [], "start_point": {"row": 313, "column": 8}, "end_point": {"row": 313, "column": 10}}, {"id": 1622, "type": "identifier", "text": "bcnt", "parent": 1619, "children": [], "start_point": {"row": 313, "column": 11}, "end_point": {"row": 313, "column": 15}}, {"id": 1623, "type": "return_statement", "text": "return 0;", "parent": 1528, "children": [1624], "start_point": {"row": 316, "column": 1}, "end_point": {"row": 316, "column": 10}}, {"id": 1624, "type": "number_literal", "text": "0", "parent": 1623, "children": [], "start_point": {"row": 316, "column": 8}, "end_point": {"row": 316, "column": 9}}]}, "node_categories": {"declarations": {"functions": [25, 29, 105, 109, 183, 187, 326, 328, 488, 490, 544, 546, 646, 648, 884, 886, 1528, 1530], "variables": [15, 20, 32, 37, 42, 47, 112, 117, 122, 127, 190, 195, 200, 207, 214, 219, 227, 232, 331, 336, 341, 346, 352, 443, 493, 498, 503, 508, 549, 556, 561, 566, 572, 651, 658, 663, 668, 674, 677, 680, 685, 690, 889, 896, 901, 906, 911, 916, 1319, 1325, 1328, 1533, 1540, 1545, 1550, 1558], "classes": [12, 13, 550, 551, 652, 653, 686, 687, 691, 692, 890, 891, 1534, 1535], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [55, 59, 65, 69, 70, 80, 81, 91, 92, 135, 139, 145, 149, 150, 160, 161, 171, 172, 249, 267, 268, 277, 283, 284, 313, 319, 359, 360, 361, 362, 363, 368, 369, 370, 379, 380, 381, 382, 383, 392, 393, 394, 416, 417, 418, 419, 424, 425, 426, 439, 440, 448, 451, 453, 457, 458, 459, 464, 469, 481, 514, 515, 523, 528, 529, 536, 538, 578, 585, 604, 626, 700, 707, 714, 716, 722, 752, 756, 758, 762, 764, 768, 773, 798, 806, 828, 833, 835, 839, 845, 852, 855, 858, 861, 864, 867, 924, 929, 931, 934, 935, 949, 950, 955, 965, 966, 975, 980, 982, 985, 986, 990, 1002, 1003, 1007, 1011, 1012, 1018, 1022, 1025, 1034, 1035, 1041, 1047, 1048, 1055, 1061, 1062, 1069, 1075, 1076, 1083, 1089, 1090, 1097, 1103, 1104, 1111, 1117, 1118, 1124, 1127, 1133, 1139, 1144, 1145, 1154, 1159, 1161, 1164, 1165, 1169, 1181, 1182, 1186, 1190, 1191, 1200, 1205, 1207, 1210, 1211, 1224, 1225, 1231, 1236, 1241, 1242, 1248, 1253, 1258, 1259, 1265, 1270, 1275, 1278, 1283, 1290, 1291, 1297, 1307, 1312, 1313, 1335, 1340, 1342, 1345, 1346, 1350, 1362, 1363, 1367, 1371, 1372, 1381, 1386, 1387, 1389, 1396, 1402, 1407, 1409, 1412, 1413, 1417, 1429, 1430, 1434, 1440, 1445, 1448, 1455, 1460, 1462, 1465, 1470, 1475, 1478, 1492, 1497, 1507, 1515, 1525, 1562, 1569, 1573, 1577, 1578, 1579, 1592, 1599, 1600, 1607, 1608, 1612], "assignments": [51, 62, 131, 142, 237, 242, 246, 254, 258, 262, 274, 290, 294, 298, 302, 306, 312, 318, 402, 406, 410, 434, 472, 476, 480, 520, 575, 589, 593, 597, 601, 611, 615, 619, 623, 632, 636, 640, 697, 704, 728, 732, 736, 740, 744, 748, 770, 783, 787, 791, 795, 813, 817, 821, 825, 842, 870, 874, 878, 921, 940, 944, 972, 993, 997, 1151, 1172, 1176, 1197, 1215, 1219, 1332, 1353, 1357, 1378, 1399, 1420, 1424, 1437, 1452, 1467, 1483, 1487, 1494, 1504, 1565, 1589, 1615, 1619], "loops": [50, 130, 438, 1561, 1564], "conditionals": [14, 19, 21, 24, 26, 30, 36, 38, 41, 43, 46, 49, 52, 56, 58, 60, 63, 66, 67, 68, 71, 79, 82, 90, 93, 104, 106, 110, 116, 118, 121, 123, 126, 129, 132, 136, 138, 140, 143, 146, 147, 148, 151, 159, 162, 170, 173, 182, 184, 188, 194, 196, 199, 206, 208, 213, 218, 220, 224, 228, 231, 233, 236, 238, 243, 247, 250, 252, 253, 255, 257, 259, 261, 263, 265, 266, 270, 273, 275, 278, 280, 281, 282, 286, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 315, 317, 321, 323, 325, 329, 335, 337, 340, 342, 345, 347, 349, 355, 358, 364, 371, 384, 395, 403, 407, 411, 415, 420, 427, 435, 441, 446, 449, 454, 456, 460, 465, 467, 471, 473, 475, 477, 479, 483, 485, 491, 497, 499, 502, 507, 509, 512, 513, 517, 521, 524, 526, 527, 530, 532, 539, 541, 542, 543, 547, 552, 555, 560, 562, 565, 569, 574, 576, 579, 581, 582, 586, 588, 590, 592, 594, 596, 598, 600, 602, 605, 607, 608, 612, 614, 616, 618, 620, 622, 624, 627, 629, 630, 631, 633, 635, 637, 639, 641, 643, 645, 649, 654, 657, 662, 664, 667, 671, 676, 679, 681, 682, 683, 684, 688, 689, 693, 696, 698, 701, 703, 705, 708, 710, 711, 715, 717, 723, 724, 729, 731, 733, 735, 737, 739, 741, 745, 749, 753, 755, 757, 759, 761, 763, 765, 767, 769, 771, 774, 776, 777, 780, 781, 782, 784, 786, 788, 790, 792, 794, 796, 799, 801, 802, 805, 807, 809, 814, 816, 818, 820, 822, 824, 826, 829, 831, 832, 834, 836, 838, 840, 843, 846, 848, 849, 853, 854, 856, 857, 859, 860, 862, 863, 865, 866, 868, 869, 871, 873, 875, 877, 879, 881, 883, 887, 892, 895, 900, 902, 905, 910, 912, 915, 917, 920, 922, 925, 927, 928, 930, 932, 933, 937, 941, 943, 945, 947, 948, 952, 956, 958, 962, 963, 964, 967, 969, 970, 973, 976, 978, 979, 981, 983, 984, 988, 992, 994, 996, 998, 1000, 1001, 1005, 1009, 1010, 1013, 1015, 1016, 1019, 1021, 1026, 1028, 1033, 1036, 1038, 1039, 1042, 1044, 1046, 1049, 1051, 1052, 1056, 1058, 1060, 1063, 1065, 1066, 1070, 1072, 1074, 1077, 1079, 1080, 1084, 1086, 1088, 1091, 1093, 1094, 1098, 1100, 1102, 1105, 1107, 1108, 1112, 1114, 1116, 1119, 1121, 1122, 1125, 1128, 1130, 1141, 1143, 1146, 1148, 1149, 1152, 1155, 1157, 1158, 1160, 1162, 1163, 1167, 1171, 1173, 1175, 1177, 1179, 1180, 1184, 1188, 1189, 1192, 1194, 1195, 1198, 1201, 1203, 1204, 1206, 1208, 1209, 1212, 1214, 1216, 1218, 1220, 1222, 1223, 1226, 1228, 1229, 1232, 1234, 1240, 1243, 1245, 1246, 1249, 1251, 1257, 1260, 1262, 1263, 1266, 1268, 1277, 1279, 1281, 1289, 1292, 1294, 1295, 1298, 1300, 1309, 1311, 1314, 1316, 1317, 1322, 1327, 1329, 1330, 1331, 1333, 1336, 1338, 1339, 1341, 1343, 1344, 1348, 1352, 1354, 1356, 1358, 1360, 1361, 1365, 1369, 1370, 1373, 1375, 1376, 1379, 1385, 1390, 1392, 1393, 1398, 1400, 1403, 1405, 1406, 1408, 1410, 1411, 1415, 1419, 1421, 1423, 1425, 1427, 1428, 1432, 1436, 1438, 1441, 1443, 1444, 1446, 1447, 1449, 1451, 1453, 1456, 1458, 1459, 1461, 1463, 1464, 1466, 1468, 1471, 1473, 1474, 1476, 1477, 1479, 1481, 1484, 1486, 1488, 1491, 1493, 1495, 1498, 1500, 1501, 1502, 1505, 1508, 1510, 1511, 1512, 1514, 1516, 1518, 1522, 1523, 1527, 1531, 1536, 1539, 1544, 1546, 1549, 1551, 1555, 1560, 1563, 1566, 1570, 1572, 1574, 1576, 1580, 1581, 1590, 1593, 1595, 1596, 1597, 1598, 1601, 1605, 1606, 1609, 1611, 1613, 1616, 1618, 1620, 1622], "returns": [103, 181, 324, 468, 486, 518, 533, 535, 644, 882, 938, 953, 989, 1006, 1030, 1054, 1068, 1082, 1096, 1110, 1136, 1138, 1168, 1185, 1274, 1286, 1303, 1306, 1349, 1366, 1395, 1416, 1433, 1450, 1480, 1513, 1524, 1604, 1623], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 54, 73, 84, 95, 134, 153, 164, 175, 226, 245, 351, 357, 366, 372, 374, 385, 387, 396, 398, 405, 409, 413, 422, 428, 430, 437, 462, 487, 519, 534, 571, 583, 609, 673, 712, 719, 721, 726, 727, 743, 747, 751, 778, 803, 811, 812, 841, 850, 939, 954, 959, 971, 1017, 1024, 1029, 1031, 1040, 1053, 1067, 1081, 1095, 1109, 1123, 1135, 1137, 1150, 1196, 1230, 1235, 1238, 1247, 1252, 1255, 1264, 1269, 1272, 1282, 1285, 1287, 1296, 1301, 1302, 1304, 1318, 1324, 1377, 1383, 1394, 1490, 1519, 1557, 1568, 1583, 1603, 1624], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "debugifc_count_whitespace", "text_snippet": "static unsigned int debugifc_count_whitespace(const char *buf,\n\t\t\t\t\t unsigned int count)\n{\n\tuns"}, {"node_id": 29, "universal_type": "function", "name": "count)", "text_snippet": "debugifc_count_whitespace(const char *buf,\n\t\t\t\t\t unsigned int count)"}, {"node_id": 105, "universal_type": "function", "name": "debugifc_count_nonwhitespace", "text_snippet": "static unsigned int debugifc_count_nonwhitespace(const char *buf,\n\t\t\t\t\t\t unsigned int count)\n{\n\tunsi"}, {"node_id": 109, "universal_type": "function", "name": "count)", "text_snippet": "debugifc_count_nonwhitespace(const char *buf,\n\t\t\t\t\t\t unsigned int count)"}, {"node_id": 183, "universal_type": "function", "name": "debugifc_isolate_word", "text_snippet": "static unsigned int debugifc_isolate_word(const char *buf,unsigned int count,\n\t\t\t\t\t const char **ws"}, {"node_id": 187, "universal_type": "function", "name": "count,", "text_snippet": "debugifc_isolate_word(const char *buf,unsigned int count,\n\t\t\t\t\t const char **wstrPtr,\n\t\t\t\t\t unsign"}, {"node_id": 326, "universal_type": "function", "name": "debugifc_parse_unsigned_number", "text_snippet": "static int debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)\n{"}, {"node_id": 328, "universal_type": "function", "name": "count,", "text_snippet": "debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)"}, {"node_id": 488, "universal_type": "function", "name": "debugifc_match_keyword", "text_snippet": "static int debugifc_match_keyword(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)\n{\n\t"}, {"node_id": 490, "universal_type": "function", "name": "count,", "text_snippet": "debugifc_match_keyword(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)"}, {"node_id": 544, "universal_type": "function", "name": "pvr2_debugifc_print_info", "text_snippet": "int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)\n{\n\tint bcnt = 0;\n\tint"}, {"node_id": 546, "universal_type": "function", "name": "acnt)", "text_snippet": "pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)"}, {"node_id": 646, "universal_type": "function", "name": "pvr2_debugifc_print_status", "text_snippet": "int pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)\n{\n\tint b"}, {"node_id": 648, "universal_type": "function", "name": "acnt)", "text_snippet": "pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)"}, {"node_id": 884, "universal_type": "function", "name": "pvr2_debugifc_do1cmd", "text_snippet": "static int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)\n{\n\tcon"}, {"node_id": 886, "universal_type": "function", "name": "count)", "text_snippet": "pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)"}, {"node_id": 1528, "universal_type": "function", "name": "pvr2_debugifc_docmd", "text_snippet": "int pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)\n{\n\tunsigned int"}, {"node_id": 1530, "universal_type": "function", "name": "count)", "text_snippet": "pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "debugifc_mask_item", "text_snippet": "struct debugifc_mask_item {\n\tconst char *name;\n\tunsigned long msk;\n}"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 550, "universal_type": "class", "name": "pvr2_hdw", "text_snippet": "struct pvr2_hdw"}, {"node_id": 551, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 652, "universal_type": "class", "name": "pvr2_hdw", "text_snippet": "struct pvr2_hdw"}, {"node_id": 653, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 686, "universal_type": "class", "name": "pvr2_stream_stats", "text_snippet": "struct pvr2_stream_stats"}, {"node_id": 687, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 691, "universal_type": "class", "name": "pvr2_stream", "text_snippet": "struct pvr2_stream"}, {"node_id": 692, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 890, "universal_type": "class", "name": "pvr2_hdw", "text_snippet": "struct pvr2_hdw"}, {"node_id": 891, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1534, "universal_type": "class", "name": "pvr2_hdw", "text_snippet": "struct pvr2_hdw"}, {"node_id": 1535, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/string.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"pvrusb2-debugifc.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"pvrusb2-hdw.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"pvrusb2-debug.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n *\n *\n * Copyright (C) 2005 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */\n\n#include <linux/string.h>\n#include \"pvrusb2-debugifc.h\"\n#include \"pvrusb2-hdw.h\"\n#include \"pvrusb2-debug.h\"\n\nstruct debugifc_mask_item {\n\tconst char *name;\n\tunsigned long msk;\n};\n\n\nstatic unsigned int debugifc_count_whitespace(const char *buf,\n\t\t\t\t\t unsigned int count)\n{\n\tunsigned int scnt;\n\tchar ch;\n\n\tfor (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') continue;\n\t\tif (ch == '\\t') continue;\n\t\tif (ch == '\\n') continue;\n\t\tbreak;\n\t}\n\treturn scnt;\n}\n\n\nstatic unsigned int debugifc_count_nonwhitespace(const char *buf,\n\t\t\t\t\t\t unsigned int count)\n{\n\tunsigned int scnt;\n\tchar ch;\n\n\tfor (scnt = 0; scnt < count; scnt++) {\n\t\tch = buf[scnt];\n\t\tif (ch == ' ') break;\n\t\tif (ch == '\\t') break;\n\t\tif (ch == '\\n') break;\n\t}\n\treturn scnt;\n}\n\n\nstatic unsigned int debugifc_isolate_word(const char *buf,unsigned int count,\n\t\t\t\t\t const char **wstrPtr,\n\t\t\t\t\t unsigned int *wlenPtr)\n{\n\tconst char *wptr;\n\tunsigned int consume_cnt = 0;\n\tunsigned int wlen;\n\tunsigned int scnt;\n\n\twptr = NULL;\n\twlen = 0;\n\tscnt = debugifc_count_whitespace(buf,count);\n\tconsume_cnt += scnt; count -= scnt; buf += scnt;\n\tif (!count) goto done;\n\n\tscnt = debugifc_count_nonwhitespace(buf,count);\n\tif (!scnt) goto done;\n\twptr = buf;\n\twlen = scnt;\n\tconsume_cnt += scnt; count -= scnt; buf += scnt;\n\n done:\n\t*wstrPtr = wptr;\n\t*wlenPtr = wlen;\n\treturn consume_cnt;\n}\n\n\nstatic int debugifc_parse_unsigned_number(const char *buf,unsigned int count,\n\t\t\t\t\t u32 *num_ptr)\n{\n\tu32 result = 0;\n\tint radix = 10;\n\tif ((count >= 2) && (buf[0] == '0') &&\n\t ((buf[1] == 'x') || (buf[1] == 'X'))) {\n\t\tradix = 16;\n\t\tcount -= 2;\n\t\tbuf += 2;\n\t} else if ((count >= 1) && (buf[0] == '0')) {\n\t\tradix = 8;\n\t}\n\n\twhile (count--) {\n\t\tint val = hex_to_bin(*buf++);\n\t\tif (val < 0 || val >= radix)\n\t\t\treturn -EINVAL;\n\t\tresult *= radix;\n\t\tresult += val;\n\t}\n\t*num_ptr = result;\n\treturn 0;\n}\n\n\nstatic int debugifc_match_keyword(const char *buf,unsigned int count,\n\t\t\t\t const char *keyword)\n{\n\tunsigned int kl;\n\tif (!keyword) return 0;\n\tkl = strlen(keyword);\n\tif (kl != count) return 0;\n\treturn !memcmp(buf,keyword,kl);\n}\n\n\nint pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)\n{\n\tint bcnt = 0;\n\tint ccnt;\n\tccnt = scnprintf(buf, acnt, \"Driver hardware description: %s\\n\",\n\t\t\t pvr2_hdw_get_desc(hdw));\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\tccnt = scnprintf(buf,acnt,\"Driver state info:\\n\");\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\tccnt = pvr2_hdw_state_report(hdw,buf,acnt);\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\treturn bcnt;\n}\n\n\nint pvr2_debugifc_print_status(struct pvr2_hdw *hdw,\n\t\t\t char *buf,unsigned int acnt)\n{\n\tint bcnt = 0;\n\tint ccnt;\n\tint ret;\n\tu32 gpio_dir,gpio_in,gpio_out;\n\tstruct pvr2_stream_stats stats;\n\tstruct pvr2_stream *sp;\n\n\tret = pvr2_hdw_is_hsm(hdw);\n\tccnt = scnprintf(buf,acnt,\"USB link speed: %s\\n\",\n\t\t\t (ret < 0 ? \"FAIL\" : (ret ? \"high\" : \"full\")));\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\tgpio_dir = 0; gpio_in = 0; gpio_out = 0;\n\tpvr2_hdw_gpio_get_dir(hdw,&gpio_dir);\n\tpvr2_hdw_gpio_get_out(hdw,&gpio_out);\n\tpvr2_hdw_gpio_get_in(hdw,&gpio_in);\n\tccnt = scnprintf(buf,acnt,\"GPIO state: dir=0x%x in=0x%x out=0x%x\\n\",\n\t\t\t gpio_dir,gpio_in,gpio_out);\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\tccnt = scnprintf(buf,acnt,\"Streaming is %s\\n\",\n\t\t\t pvr2_hdw_get_streaming(hdw) ? \"on\" : \"off\");\n\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\n\n\tsp = pvr2_hdw_get_video_stream(hdw);\n\tif (sp) {\n\t\tpvr2_stream_get_stats(sp, &stats, 0);\n\t\tccnt = scnprintf(\n\t\t\tbuf,acnt,\n\t\t\t\"Bytes streamed=%u URBs: queued=%u idle=%u ready=%u processed=%u failed=%u\\n\",\n\t\t\tstats.bytes_processed,\n\t\t\tstats.buffers_in_queue,\n\t\t\tstats.buffers_in_idle,\n\t\t\tstats.buffers_in_ready,\n\t\t\tstats.buffers_processed,\n\t\t\tstats.buffers_failed);\n\t\tbcnt += ccnt; acnt -= ccnt; buf += ccnt;\n\t}\n\n\treturn bcnt;\n}\n\n\nstatic int pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\t\tunsigned int count)\n{\n\tconst char *wptr;\n\tunsigned int wlen;\n\tunsigned int scnt;\n\n\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\tif (!scnt) return 0;\n\tcount -= scnt; buf += scnt;\n\tif (!wptr) return 0;\n\n\tpvr2_trace(PVR2_TRACE_DEBUGIFC,\"debugifc cmd: \\\"%.*s\\\"\",wlen,wptr);\n\tif (debugifc_match_keyword(wptr,wlen,\"reset\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"cpu\")) {\n\t\t\tpvr2_hdw_cpureset_assert(hdw,!0);\n\t\t\tpvr2_hdw_cpureset_assert(hdw,0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"bus\")) {\n\t\t\tpvr2_hdw_device_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"soft\")) {\n\t\t\treturn pvr2_hdw_cmd_powerup(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"deep\")) {\n\t\t\treturn pvr2_hdw_cmd_deep_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"firmware\")) {\n\t\t\treturn pvr2_upload_firmware2(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"decoder\")) {\n\t\t\treturn pvr2_hdw_cmd_decoder_reset(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"worker\")) {\n\t\t\treturn pvr2_hdw_untrip(hdw);\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"usbstats\")) {\n\t\t\tpvr2_stream_get_stats(pvr2_hdw_get_video_stream(hdw),\n\t\t\t\t\t NULL, !0);\n\t\t\treturn 0;\n\t\t}\n\t\treturn -EINVAL;\n\t} else if (debugifc_match_keyword(wptr,wlen,\"cpufw\")) {\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"fetch\")) {\n\t\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\t\tif (scnt && wptr) {\n\t\t\t\tcount -= scnt; buf += scnt;\n\t\t\t\tif (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t \"prom\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 2, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram8k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 0, !0);\n\t\t\t\t} else if (debugifc_match_keyword(wptr, wlen,\n\t\t\t\t\t\t\t\t \"ram16k\")) {\n\t\t\t\t\tpvr2_hdw_cpufw_set_enabled(hdw, 1, !0);\n\t\t\t\t} else {\n\t\t\t\t\treturn -EINVAL;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,!0);\n\t\t\treturn 0;\n\t\t} else if (debugifc_match_keyword(wptr,wlen,\"done\")) {\n\t\t\tpvr2_hdw_cpufw_set_enabled(hdw,0,0);\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn -EINVAL;\n\t\t}\n\t} else if (debugifc_match_keyword(wptr,wlen,\"gpio\")) {\n\t\tint dir_fl = 0;\n\t\tint ret;\n\t\tu32 msk,val;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tif (debugifc_match_keyword(wptr,wlen,\"dir\")) {\n\t\t\tdir_fl = !0;\n\t\t} else if (!debugifc_match_keyword(wptr,wlen,\"out\")) {\n\t\t\treturn -EINVAL;\n\t\t}\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (!scnt) return -EINVAL;\n\t\tcount -= scnt; buf += scnt;\n\t\tif (!wptr) return -EINVAL;\n\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&msk);\n\t\tif (ret) return ret;\n\t\tscnt = debugifc_isolate_word(buf,count,&wptr,&wlen);\n\t\tif (wptr) {\n\t\t\tret = debugifc_parse_unsigned_number(wptr,wlen,&val);\n\t\t\tif (ret) return ret;\n\t\t} else {\n\t\t\tval = msk;\n\t\t\tmsk = 0xffffffff;\n\t\t}\n\t\tif (dir_fl) {\n\t\t\tret = pvr2_hdw_gpio_chg_dir(hdw,msk,val);\n\t\t} else {\n\t\t\tret = pvr2_hdw_gpio_chg_out(hdw,msk,val);\n\t\t}\n\t\treturn ret;\n\t}\n\tpvr2_trace(PVR2_TRACE_DEBUGIFC,\n\t\t \"debugifc failed to recognize cmd: \\\"%.*s\\\"\",wlen,wptr);\n\treturn -EINVAL;\n}\n\n\nint pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf,\n\t\t\tunsigned int count)\n{\n\tunsigned int bcnt = 0;\n\tint ret;\n\n\twhile (count) {\n\t\tfor (bcnt = 0; bcnt < count; bcnt++) {\n\t\t\tif (buf[bcnt] == '\\n') break;\n\t\t}\n\n\t\tret = pvr2_debugifc_do1cmd(hdw,buf,bcnt);\n\t\tif (ret < 0) return ret;\n\t\tif (bcnt < count) bcnt++;\n\t\tbuf += bcnt;\n\t\tcount -= bcnt;\n\t}\n\n\treturn 0;\n}\n"}
174
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PencilKit.framework/PencilKit */ @interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> { NSMutableArray * _buffers; unsigned long long _totalCost; } @property (nonatomic, readonly) NSArray *buffers; @property (readonly, copy) NSString *debugDescription; @property (readonly, copy) NSString *description; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; - (void).cxx_destruct; - (void)addBuffer:(id)arg1; - (id)buffers; - (unsigned long long)cacheCost; - (id)init; - (bool)lockPurgeableResourcesAddToSet:(id)arg1; - (bool)needsCompute; @end
32.8
20
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/PencilKit.framework/PencilKit\n */\n\n@interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}\n\n@property (nonatomic, readonly) NSArray *buffers;\n@property (readonly, copy) NSString *debugDescription;\n@property (readonly, copy) NSString *description;\n@property (readonly) unsigned long long hash;\n@property (readonly) Class superclass;\n\n- (void).cxx_destruct;\n- (void)addBuffer:(id)arg1;\n- (id)buffers;\n- (unsigned long long)cacheCost;\n- (id)init;\n- (bool)lockPurgeableResourcesAddToSet:(id)arg1;\n- (bool)needsCompute;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/PencilKit.framework/PencilKit\n */" (ERROR) "@interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}\n\n@property (nonatomic, readonly) NSArray *buffers;\n@property (readonly, copy) NSString *debugDescription;\n@property (readonly, copy)" (ERROR) "@" (function_definition) "interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}" (type_identifier) "interface" (identifier) "PKMetalStrokeRenderCache" (ERROR) ": NSObject <PKStrokeRenderCache>" (:) ":" (identifier) "NSObject" (<) "<" (identifier) "PKStrokeRenderCache" (>) ">" (compound_statement) "{\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}" ({) "{" (declaration) "NSMutableArray * _buffers;" (type_identifier) "NSMutableArray" (pointer_declarator) "* _buffers" (*) "*" (identifier) "_buffers" (;) ";" (declaration) "unsigned long long _totalCost;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "_totalCost" (;) ";" (}) "}" (ERROR) "@" (ERROR) "@" (call_expression) "property (nonatomic, readonly)" (identifier) "property" (argument_list) "(nonatomic, readonly)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readonly" ()) ")" (declaration) "NSArray *buffers;" (type_identifier) "NSArray" (pointer_declarator) "*buffers" (*) "*" (identifier) "buffers" (;) ";" (ERROR) "@" (ERROR) "@" (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) "@" (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) "@" (declaration) "property (readonly) Class superclass;" (macro_type_specifier) "property (readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "Class" (identifier) "Class" (identifier) "superclass" (;) ";" (expression_statement) "- (void).cxx_destruct;" (unary_expression) "- (void).cxx_destruct" (-) "-" (cast_expression) "(void).cxx_destruct" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (ERROR) "." (.) "." (identifier) "cxx_destruct" (;) ";" (expression_statement) "- (void)addBuffer:(id)arg1;" (unary_expression) "- (void)addBuffer" (-) "-" (cast_expression) "(void)addBuffer" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addBuffer" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)buffers;" (unary_expression) "- (id)buffers" (-) "-" (cast_expression) "(id)buffers" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "buffers" (;) ";" (expression_statement) "- (unsigned long long)cacheCost;" (unary_expression) "- (unsigned long long)cacheCost" (-) "-" (cast_expression) "(unsigned long long)cacheCost" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "cacheCost" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (expression_statement) "- (bool)lockPurgeableResourcesAddToSet:(id)arg1;" (unary_expression) "- (bool)lockPurgeableResourcesAddToSet" (-) "-" (cast_expression) "(bool)lockPurgeableResourcesAddToSet" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) ")" (identifier) "lockPurgeableResourcesAddToSet" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (bool)needsCompute;" (unary_expression) "- (bool)needsCompute" (-) "-" (cast_expression) "(bool)needsCompute" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) ")" (identifier) "needsCompute" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
197
19
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.8, "nodes": 132, "errors": 0, "source_hash": "55f5058c3d7ba22a13c6b503fdb2617efe5378f449a65b1cc1c9eb60a3a72567", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}\n\n@property (nonatomic, readonly) NSArray *buffers;\n@property (readonly, copy) NSString *debugDescription;\n@property (readonly, copy)", "parent": null, "children": [1, 2, 21, 23, 28, 33, 35, 40, 45, 47], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 11, "column": 26}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 2, "type": "function_definition", "text": "interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}", "parent": 0, "children": [3, 4, 5], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 7, "column": 1}}, {"id": 3, "type": "type_identifier", "text": "interface", "parent": 2, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 4, "type": "identifier", "text": "PKMetalStrokeRenderCache", "parent": 2, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 35}}, {"id": 5, "type": "ERROR", "text": ": NSObject <PKStrokeRenderCache>", "parent": 2, "children": [6, 7, 8, 9], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 68}}, {"id": 6, "type": "identifier", "text": "NSObject", "parent": 5, "children": [], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 46}}, {"id": 7, "type": "<", "text": "<", "parent": 5, "children": [], "start_point": {"row": 4, "column": 47}, "end_point": {"row": 4, "column": 48}}, {"id": 8, "type": "identifier", "text": "PKStrokeRenderCache", "parent": 5, "children": [], "start_point": {"row": 4, "column": 48}, "end_point": {"row": 4, "column": 67}}, {"id": 9, "type": ">", "text": ">", "parent": 5, "children": [], "start_point": {"row": 4, "column": 67}, "end_point": {"row": 4, "column": 68}}, {"id": 10, "type": "declaration", "text": "NSMutableArray * _buffers;", "parent": 2, "children": [11, 12], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 30}}, {"id": 11, "type": "type_identifier", "text": "NSMutableArray", "parent": 10, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 18}}, {"id": 12, "type": "pointer_declarator", "text": "* _buffers", "parent": 10, "children": [13, 14], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 29}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 20}}, {"id": 14, "type": "identifier", "text": "_buffers", "parent": 12, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 29}}, {"id": 15, "type": "declaration", "text": "unsigned long long _totalCost;", "parent": 2, "children": [16, 20], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 35}}, {"id": 16, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 17, "type": "unsigned", "text": "unsigned", "parent": 16, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 12}}, {"id": 18, "type": "long", "text": "long", "parent": 16, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 19, "type": "long", "text": "long", "parent": 16, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 22}}, {"id": 20, "type": "identifier", "text": "_totalCost", "parent": 15, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 34}}, {"id": 21, "type": "ERROR", "text": "@", "parent": 0, "children": [22], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 22, "type": "ERROR", "text": "@", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 23, "type": "call_expression", "text": "property (nonatomic, readonly)", "parent": 0, "children": [24, 25], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 31}}, {"id": 24, "type": "identifier", "text": "property", "parent": 23, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 9}}, {"id": 25, "type": "argument_list", "text": "(nonatomic, readonly)", "parent": 23, "children": [26, 27], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 31}}, {"id": 26, "type": "identifier", "text": "nonatomic", "parent": 25, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 20}}, {"id": 27, "type": "identifier", "text": "readonly", "parent": 25, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 30}}, {"id": 28, "type": "declaration", "text": "NSArray *buffers;", "parent": 0, "children": [29, 30], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 49}}, {"id": 29, "type": "type_identifier", "text": "NSArray", "parent": 28, "children": [], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 39}}, {"id": 30, "type": "pointer_declarator", "text": "*buffers", "parent": 28, "children": [31, 32], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 48}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 41}}, {"id": 32, "type": "identifier", "text": "buffers", "parent": 30, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 48}}, {"id": 33, "type": "ERROR", "text": "@", "parent": 0, "children": [34], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 34, "type": "ERROR", "text": "@", "parent": 33, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 35, "type": "call_expression", "text": "property (readonly, copy)", "parent": 0, "children": [36, 37], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 26}}, {"id": 36, "type": "identifier", "text": "property", "parent": 35, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 37, "type": "argument_list", "text": "(readonly, copy)", "parent": 35, "children": [38, 39], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 26}}, {"id": 38, "type": "identifier", "text": "readonly", "parent": 37, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 19}}, {"id": 39, "type": "identifier", "text": "copy", "parent": 37, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 25}}, {"id": 40, "type": "declaration", "text": "NSString *debugDescription;", "parent": 0, "children": [41, 42], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 54}}, {"id": 41, "type": "type_identifier", "text": "NSString", "parent": 40, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 35}}, {"id": 42, "type": "pointer_declarator", "text": "*debugDescription", "parent": 40, "children": [43, 44], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 53}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 37}}, {"id": 44, "type": "identifier", "text": "debugDescription", "parent": 42, "children": [], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 53}}, {"id": 45, "type": "ERROR", "text": "@", "parent": 0, "children": [46], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 46, "type": "ERROR", "text": "@", "parent": 45, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 47, "type": "call_expression", "text": "property (readonly, copy)", "parent": 0, "children": [48, 49], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 26}}, {"id": 48, "type": "identifier", "text": "property", "parent": 47, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 49, "type": "argument_list", "text": "(readonly, copy)", "parent": 47, "children": [50, 51], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 26}}, {"id": 50, "type": "identifier", "text": "readonly", "parent": 49, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 19}}, {"id": 51, "type": "identifier", "text": "copy", "parent": 49, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 25}}, {"id": 52, "type": "declaration", "text": "NSString *description;", "parent": null, "children": [53, 54], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 49}}, {"id": 53, "type": "type_identifier", "text": "NSString", "parent": 52, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 35}}, {"id": 54, "type": "pointer_declarator", "text": "*description", "parent": 52, "children": [55, 56], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 48}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 37}}, {"id": 56, "type": "identifier", "text": "description", "parent": 54, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 48}}, {"id": 57, "type": "ERROR", "text": "@property (readonly) unsigned long", "parent": null, "children": [58, 59, 63, 64], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 34}}, {"id": 58, "type": "ERROR", "text": "@", "parent": 57, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 59, "type": "macro_type_specifier", "text": "property (readonly)", "parent": 57, "children": [60, 61], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 20}}, {"id": 60, "type": "identifier", "text": "property", "parent": 59, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 61, "type": "type_descriptor", "text": "readonly", "parent": 59, "children": [62], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 19}}, {"id": 62, "type": "type_identifier", "text": "readonly", "parent": 61, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 19}}, {"id": 63, "type": "identifier", "text": "unsigned", "parent": 57, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 29}}, {"id": 64, "type": "identifier", "text": "long", "parent": 57, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 34}}, {"id": 65, "type": "declaration", "text": "long hash;", "parent": null, "children": [66, 68], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 45}}, {"id": 66, "type": "sized_type_specifier", "text": "long", "parent": 65, "children": [67], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 39}}, {"id": 67, "type": "long", "text": "long", "parent": 66, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 39}}, {"id": 68, "type": "identifier", "text": "hash", "parent": 65, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 44}}, {"id": 69, "type": "ERROR", "text": "@", "parent": null, "children": [70], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 70, "type": "ERROR", "text": "@", "parent": 69, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 71, "type": "declaration", "text": "property (readonly) Class superclass;", "parent": null, "children": [72, 76, 78], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 38}}, {"id": 72, "type": "macro_type_specifier", "text": "property (readonly)", "parent": 71, "children": [73, 74], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 20}}, {"id": 73, "type": "identifier", "text": "property", "parent": 72, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 74, "type": "type_descriptor", "text": "readonly", "parent": 72, "children": [75], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 75, "type": "type_identifier", "text": "readonly", "parent": 74, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 76, "type": "ERROR", "text": "Class", "parent": 71, "children": [77], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 26}}, {"id": 77, "type": "identifier", "text": "Class", "parent": 76, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 26}}, {"id": 78, "type": "identifier", "text": "superclass", "parent": 71, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 37}}, {"id": 79, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [80, 81], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 21}}, {"id": 80, "type": "-", "text": "-", "parent": 79, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 81, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 79, "children": [82, 84], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 21}}, {"id": 82, "type": "type_descriptor", "text": "void", "parent": 81, "children": [83], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 84, "type": "identifier", "text": "cxx_destruct", "parent": 81, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 21}}, {"id": 85, "type": "unary_expression", "text": "- (void)addBuffer", "parent": null, "children": [86, 87], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 17}}, {"id": 86, "type": "-", "text": "-", "parent": 85, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 87, "type": "cast_expression", "text": "(void)addBuffer", "parent": 85, "children": [88, 90], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 17}}, {"id": 88, "type": "type_descriptor", "text": "void", "parent": 87, "children": [89], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 89, "type": "primitive_type", "text": "void", "parent": 88, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 90, "type": "identifier", "text": "addBuffer", "parent": 87, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 91, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [92, 93], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 26}}, {"id": 92, "type": "identifier", "text": "id", "parent": 91, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 21}}, {"id": 93, "type": "identifier", "text": "arg1", "parent": 91, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}, {"id": 94, "type": "unary_expression", "text": "- (id)buffers", "parent": null, "children": [95, 96], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 13}}, {"id": 95, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "(id)buffers", "parent": 94, "children": [97, 99], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 13}}, {"id": 97, "type": "type_descriptor", "text": "id", "parent": 96, "children": [98], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 98, "type": "type_identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 99, "type": "identifier", "text": "buffers", "parent": 96, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 13}}, {"id": 100, "type": "unary_expression", "text": "- (unsigned long long)cacheCost", "parent": null, "children": [101, 102], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 31}}, {"id": 101, "type": "-", "text": "-", "parent": 100, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 102, "type": "cast_expression", "text": "(unsigned long long)cacheCost", "parent": 100, "children": [103, 108], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 31}}, {"id": 103, "type": "type_descriptor", "text": "unsigned long long", "parent": 102, "children": [104], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 104, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 105, "type": "unsigned", "text": "unsigned", "parent": 104, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 11}}, {"id": 106, "type": "long", "text": "long", "parent": 104, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 107, "type": "long", "text": "long", "parent": 104, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 21}}, {"id": 108, "type": "identifier", "text": "cacheCost", "parent": 102, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 31}}, {"id": 109, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [110, 111], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 10}}, {"id": 110, "type": "-", "text": "-", "parent": 109, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 111, "type": "cast_expression", "text": "(id)init", "parent": 109, "children": [112, 114], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 10}}, {"id": 112, "type": "type_descriptor", "text": "id", "parent": 111, "children": [113], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 113, "type": "type_identifier", "text": "id", "parent": 112, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 114, "type": "identifier", "text": "init", "parent": 111, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 10}}, {"id": 115, "type": "unary_expression", "text": "- (bool)lockPurgeableResourcesAddToSet", "parent": null, "children": [116, 117], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 38}}, {"id": 116, "type": "-", "text": "-", "parent": 115, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 117, "type": "cast_expression", "text": "(bool)lockPurgeableResourcesAddToSet", "parent": 115, "children": [118, 120], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 38}}, {"id": 118, "type": "type_descriptor", "text": "bool", "parent": 117, "children": [119], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 119, "type": "primitive_type", "text": "bool", "parent": 118, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 120, "type": "identifier", "text": "lockPurgeableResourcesAddToSet", "parent": 117, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 38}}, {"id": 121, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [122, 123], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 47}}, {"id": 122, "type": "identifier", "text": "id", "parent": 121, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 42}}, {"id": 123, "type": "identifier", "text": "arg1", "parent": 121, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 47}}, {"id": 124, "type": "unary_expression", "text": "- (bool)needsCompute", "parent": null, "children": [125, 126], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 20}}, {"id": 125, "type": "-", "text": "-", "parent": 124, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 126, "type": "cast_expression", "text": "(bool)needsCompute", "parent": 124, "children": [127, 129], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 127, "type": "type_descriptor", "text": "bool", "parent": 126, "children": [128], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 128, "type": "primitive_type", "text": "bool", "parent": 127, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 129, "type": "identifier", "text": "needsCompute", "parent": 126, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 20}}, {"id": 130, "type": "ERROR", "text": "@", "parent": null, "children": [131], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 131, "type": "ERROR", "text": "@", "parent": 130, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}]}, "node_categories": {"declarations": {"functions": [2], "variables": [10, 15, 28, 40, 52, 65, 71], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [23, 35, 47, 79, 81, 85, 87, 94, 96, 100, 102, 109, 111, 115, 117, 124, 126], "assignments": [], "loops": [], "conditionals": [3, 4, 6, 8, 11, 14, 16, 20, 24, 26, 27, 29, 32, 36, 38, 39, 41, 44, 48, 50, 51, 53, 56, 59, 60, 62, 63, 64, 66, 68, 72, 73, 75, 77, 78, 84, 90, 92, 93, 98, 99, 104, 108, 113, 114, 120, 122, 123, 129], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "PKMetalStrokeRenderCache", "text_snippet": "interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/PencilKit.framework/PencilKit\n */\n\n@interface PKMetalStrokeRenderCache : NSObject <PKStrokeRenderCache> {\n NSMutableArray * _buffers;\n unsigned long long _totalCost;\n}\n\n@property (nonatomic, readonly) NSArray *buffers;\n@property (readonly, copy) NSString *debugDescription;\n@property (readonly, copy) NSString *description;\n@property (readonly) unsigned long long hash;\n@property (readonly) Class superclass;\n\n- (void).cxx_destruct;\n- (void)addBuffer:(id)arg1;\n- (id)buffers;\n- (unsigned long long)cacheCost;\n- (id)init;\n- (bool)lockPurgeableResourcesAddToSet:(id)arg1;\n- (bool)needsCompute;\n\n@end\n"}
175
c
/* * SystemRestore implementation * * Copyright 2020 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ #define COBJMACROS #include <stdarg.h> #include "windef.h" #include "winbase.h" #include "wbemcli.h" #include "wine/debug.h" #include "wbemprox_private.h" WINE_DEFAULT_DEBUG_CHANNEL(wbemprox); HRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out ) { FIXME("stub\n"); return S_OK; } HRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out ) { FIXME("stub\n"); return S_OK; } HRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out ) { VARIANT drive, retval; IWbemClassObject *sig, *out_params = NULL; HRESULT hr; TRACE("%p, %p\n", in, out); hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL ); if (hr != S_OK) return hr; hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig ); if (hr != S_OK) { VariantClear( &drive ); return hr; } if (out) { hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params ); if (hr != S_OK) { VariantClear( &drive ); IWbemClassObject_Release( sig ); return hr; } } FIXME("%s: stub\n", wine_dbgstr_variant(&drive)); VariantClear( &drive ); IWbemClassObject_Release( sig ); if (out_params) { set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval ); hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 ); } if (hr == S_OK && out) { *out = out_params; IWbemClassObject_AddRef( out_params ); } if (out_params) IWbemClassObject_Release( out_params ); return hr; } HRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out ) { FIXME("stub\n"); return E_NOTIMPL; } HRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out ) { FIXME("stub\n"); return S_OK; }
32.41
87
(translation_unit) "/*\n * SystemRestore implementation\n *\n * Copyright 2020 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this library; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\n */\n\n#define COBJMACROS\n\n#include <stdarg.h>\n\n#include "windef.h"\n#include "winbase.h"\n#include "wbemcli.h"\n\n#include "wine/debug.h"\n#include "wbemprox_private.h"\n\nWINE_DEFAULT_DEBUG_CHANNEL(wbemprox);\n\nHRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}\n\nHRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}\n\nHRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n VARIANT drive, retval;\n IWbemClassObject *sig, *out_params = NULL;\n HRESULT hr;\n\n TRACE("%p, %p\n", in, out);\n\n hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL );\n if (hr != S_OK) return hr;\n\n hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }\n\n if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }\n\n FIXME("%s: stub\n", wine_dbgstr_variant(&drive));\n\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n\n if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );\n }\n\n if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }\n if (out_params) IWbemClassObject_Release( out_params );\n\n return hr;\n}\n\nHRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return E_NOTIMPL;\n}\n\nHRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}\n" (comment) "/*\n * SystemRestore implementation\n *\n * Copyright 2020 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this library; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\n */" (preproc_def) "#define COBJMACROS\n" (#define) "#define" (identifier) "COBJMACROS" (preproc_include) "#include <stdarg.h>\n" (#include) "#include" (system_lib_string) "<stdarg.h>" (preproc_include) "#include "windef.h"\n" (#include) "#include" (string_literal) ""windef.h"" (") """ (string_content) "windef.h" (") """ (preproc_include) "#include "winbase.h"\n" (#include) "#include" (string_literal) ""winbase.h"" (") """ (string_content) "winbase.h" (") """ (preproc_include) "#include "wbemcli.h"\n" (#include) "#include" (string_literal) ""wbemcli.h"" (") """ (string_content) "wbemcli.h" (") """ (preproc_include) "#include "wine/debug.h"\n" (#include) "#include" (string_literal) ""wine/debug.h"" (") """ (string_content) "wine/debug.h" (") """ (preproc_include) "#include "wbemprox_private.h"\n" (#include) "#include" (string_literal) ""wbemprox_private.h"" (") """ (string_content) "wbemprox_private.h" (") """ (expression_statement) "WINE_DEFAULT_DEBUG_CHANNEL(wbemprox);" (call_expression) "WINE_DEFAULT_DEBUG_CHANNEL(wbemprox)" (identifier) "WINE_DEFAULT_DEBUG_CHANNEL" (argument_list) "(wbemprox)" (() "(" (identifier) "wbemprox" ()) ")" (;) ";" (function_definition) "HRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}" (type_identifier) "HRESULT" (function_declarator) "create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (identifier) "create_restore_point" (parameter_list) "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (() "(" (parameter_declaration) "IWbemClassObject *obj" (type_identifier) "IWbemClassObject" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "IWbemContext *context" (type_identifier) "IWbemContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "IWbemClassObject *in" (type_identifier) "IWbemClassObject" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "IWbemClassObject **out" (type_identifier) "IWbemClassObject" (pointer_declarator) "**out" (*) "*" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (compound_statement) "{\n FIXME("stub\n");\n return S_OK;\n}" ({) "{" (expression_statement) "FIXME("stub\n");" (call_expression) "FIXME("stub\n")" (identifier) "FIXME" (argument_list) "("stub\n")" (() "(" (string_literal) ""stub\n"" (") """ (string_content) "stub" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return S_OK;" (return) "return" (identifier) "S_OK" (;) ";" (}) "}" (function_definition) "HRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}" (type_identifier) "HRESULT" (function_declarator) "disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (identifier) "disable_restore" (parameter_list) "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (() "(" (parameter_declaration) "IWbemClassObject *obj" (type_identifier) "IWbemClassObject" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "IWbemContext *context" (type_identifier) "IWbemContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "IWbemClassObject *in" (type_identifier) "IWbemClassObject" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "IWbemClassObject **out" (type_identifier) "IWbemClassObject" (pointer_declarator) "**out" (*) "*" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (compound_statement) "{\n FIXME("stub\n");\n return S_OK;\n}" ({) "{" (expression_statement) "FIXME("stub\n");" (call_expression) "FIXME("stub\n")" (identifier) "FIXME" (argument_list) "("stub\n")" (() "(" (string_literal) ""stub\n"" (") """ (string_content) "stub" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return S_OK;" (return) "return" (identifier) "S_OK" (;) ";" (}) "}" (function_definition) "HRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n VARIANT drive, retval;\n IWbemClassObject *sig, *out_params = NULL;\n HRESULT hr;\n\n TRACE("%p, %p\n", in, out);\n\n hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL );\n if (hr != S_OK) return hr;\n\n hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }\n\n if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }\n\n FIXME("%s: stub\n", wine_dbgstr_variant(&drive));\n\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n\n if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );\n }\n\n if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }\n if (out_params) IWbemClassObject_Release( out_params );\n\n return hr;\n}" (type_identifier) "HRESULT" (function_declarator) "enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (identifier) "enable_restore" (parameter_list) "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (() "(" (parameter_declaration) "IWbemClassObject *obj" (type_identifier) "IWbemClassObject" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "IWbemContext *context" (type_identifier) "IWbemContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "IWbemClassObject *in" (type_identifier) "IWbemClassObject" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "IWbemClassObject **out" (type_identifier) "IWbemClassObject" (pointer_declarator) "**out" (*) "*" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (compound_statement) "{\n VARIANT drive, retval;\n IWbemClassObject *sig, *out_params = NULL;\n HRESULT hr;\n\n TRACE("%p, %p\n", in, out);\n\n hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL );\n if (hr != S_OK) return hr;\n\n hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }\n\n if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }\n\n FIXME("%s: stub\n", wine_dbgstr_variant(&drive));\n\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n\n if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );\n }\n\n if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }\n if (out_params) IWbemClassObject_Release( out_params );\n\n return hr;\n}" ({) "{" (declaration) "VARIANT drive, retval;" (type_identifier) "VARIANT" (identifier) "drive" (,) "," (identifier) "retval" (;) ";" (declaration) "IWbemClassObject *sig, *out_params = NULL;" (type_identifier) "IWbemClassObject" (pointer_declarator) "*sig" (*) "*" (identifier) "sig" (,) "," (init_declarator) "*out_params = NULL" (pointer_declarator) "*out_params" (*) "*" (identifier) "out_params" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "HRESULT hr;" (type_identifier) "HRESULT" (identifier) "hr" (;) ";" (expression_statement) "TRACE("%p, %p\n", in, out);" (call_expression) "TRACE("%p, %p\n", in, out)" (identifier) "TRACE" (argument_list) "("%p, %p\n", in, out)" (() "(" (string_literal) ""%p, %p\n"" (") """ (string_content) "%p, %p" (escape_sequence) "\n" (") """ (,) "," (identifier) "in" (,) "," (identifier) "out" ()) ")" (;) ";" (expression_statement) "hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL );" (assignment_expression) "hr = IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL )" (identifier) "hr" (=) "=" (call_expression) "IWbemClassObject_Get( in, L"Drive", 0, &drive, NULL, NULL )" (identifier) "IWbemClassObject_Get" (argument_list) "( in, L"Drive", 0, &drive, NULL, NULL )" (() "(" (identifier) "in" (,) "," (string_literal) "L"Drive"" (L") "L"" (string_content) "Drive" (") """ (,) "," (number_literal) "0" (,) "," (pointer_expression) "&drive" (&) "&" (identifier) "drive" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (hr != S_OK) return hr;" (if) "if" (parenthesized_expression) "(hr != S_OK)" (() "(" (binary_expression) "hr != S_OK" (identifier) "hr" (!=) "!=" (identifier) "S_OK" ()) ")" (return_statement) "return hr;" (return) "return" (identifier) "hr" (;) ";" (expression_statement) "hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig );" (assignment_expression) "hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig )" (identifier) "hr" (=) "=" (call_expression) "create_signature( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig )" (identifier) "create_signature" (argument_list) "( WBEMPROX_NAMESPACE_CIMV2, L"SystemRestore", L"Enable", PARAM_OUT, &sig )" (() "(" (identifier) "WBEMPROX_NAMESPACE_CIMV2" (,) "," (string_literal) "L"SystemRestore"" (L") "L"" (string_content) "SystemRestore" (") """ (,) "," (string_literal) "L"Enable"" (L") "L"" (string_content) "Enable" (") """ (,) "," (identifier) "PARAM_OUT" (,) "," (pointer_expression) "&sig" (&) "&" (identifier) "sig" ()) ")" (;) ";" (if_statement) "if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }" (if) "if" (parenthesized_expression) "(hr != S_OK)" (() "(" (binary_expression) "hr != S_OK" (identifier) "hr" (!=) "!=" (identifier) "S_OK" ()) ")" (compound_statement) "{\n VariantClear( &drive );\n return hr;\n }" ({) "{" (expression_statement) "VariantClear( &drive );" (call_expression) "VariantClear( &drive )" (identifier) "VariantClear" (argument_list) "( &drive )" (() "(" (pointer_expression) "&drive" (&) "&" (identifier) "drive" ()) ")" (;) ";" (return_statement) "return hr;" (return) "return" (identifier) "hr" (;) ";" (}) "}" (if_statement) "if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }" (if) "if" (parenthesized_expression) "(out)" (() "(" (identifier) "out" ()) ")" (compound_statement) "{\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }" ({) "{" (expression_statement) "hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );" (assignment_expression) "hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params )" (identifier) "hr" (=) "=" (call_expression) "IWbemClassObject_SpawnInstance( sig, 0, &out_params )" (identifier) "IWbemClassObject_SpawnInstance" (argument_list) "( sig, 0, &out_params )" (() "(" (identifier) "sig" (,) "," (number_literal) "0" (,) "," (pointer_expression) "&out_params" (&) "&" (identifier) "out_params" ()) ")" (;) ";" (if_statement) "if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }" (if) "if" (parenthesized_expression) "(hr != S_OK)" (() "(" (binary_expression) "hr != S_OK" (identifier) "hr" (!=) "!=" (identifier) "S_OK" ()) ")" (compound_statement) "{\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }" ({) "{" (expression_statement) "VariantClear( &drive );" (call_expression) "VariantClear( &drive )" (identifier) "VariantClear" (argument_list) "( &drive )" (() "(" (pointer_expression) "&drive" (&) "&" (identifier) "drive" ()) ")" (;) ";" (expression_statement) "IWbemClassObject_Release( sig );" (call_expression) "IWbemClassObject_Release( sig )" (identifier) "IWbemClassObject_Release" (argument_list) "( sig )" (() "(" (identifier) "sig" ()) ")" (;) ";" (return_statement) "return hr;" (return) "return" (identifier) "hr" (;) ";" (}) "}" (}) "}" (expression_statement) "FIXME("%s: stub\n", wine_dbgstr_variant(&drive));" (call_expression) "FIXME("%s: stub\n", wine_dbgstr_variant(&drive))" (identifier) "FIXME" (argument_list) "("%s: stub\n", wine_dbgstr_variant(&drive))" (() "(" (string_literal) ""%s: stub\n"" (") """ (string_content) "%s: stub" (escape_sequence) "\n" (") """ (,) "," (call_expression) "wine_dbgstr_variant(&drive)" (identifier) "wine_dbgstr_variant" (argument_list) "(&drive)" (() "(" (pointer_expression) "&drive" (&) "&" (identifier) "drive" ()) ")" ()) ")" (;) ";" (expression_statement) "VariantClear( &drive );" (call_expression) "VariantClear( &drive )" (identifier) "VariantClear" (argument_list) "( &drive )" (() "(" (pointer_expression) "&drive" (&) "&" (identifier) "drive" ()) ")" (;) ";" (expression_statement) "IWbemClassObject_Release( sig );" (call_expression) "IWbemClassObject_Release( sig )" (identifier) "IWbemClassObject_Release" (argument_list) "( sig )" (() "(" (identifier) "sig" ()) ")" (;) ";" (if_statement) "if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );\n }" (if) "if" (parenthesized_expression) "(out_params)" (() "(" (identifier) "out_params" ()) ")" (compound_statement) "{\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );\n }" ({) "{" (expression_statement) "set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );" (call_expression) "set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval )" (identifier) "set_variant" (argument_list) "( VT_UI4, ERROR_SUCCESS, NULL, &retval )" (() "(" (identifier) "VT_UI4" (,) "," (identifier) "ERROR_SUCCESS" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&retval" (&) "&" (identifier) "retval" ()) ")" (;) ";" (expression_statement) "hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 );" (assignment_expression) "hr = IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 )" (identifier) "hr" (=) "=" (call_expression) "IWbemClassObject_Put( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 )" (identifier) "IWbemClassObject_Put" (argument_list) "( out_params, L"ReturnValue", 0, &retval, CIM_UINT32 )" (() "(" (identifier) "out_params" (,) "," (string_literal) "L"ReturnValue"" (L") "L"" (string_content) "ReturnValue" (") """ (,) "," (number_literal) "0" (,) "," (pointer_expression) "&retval" (&) "&" (identifier) "retval" (,) "," (identifier) "CIM_UINT32" ()) ")" (;) ";" (}) "}" (if_statement) "if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }" (if) "if" (parenthesized_expression) "(hr == S_OK && out)" (() "(" (binary_expression) "hr == S_OK && out" (binary_expression) "hr == S_OK" (identifier) "hr" (==) "==" (identifier) "S_OK" (&&) "&&" (identifier) "out" ()) ")" (compound_statement) "{\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }" ({) "{" (expression_statement) "*out = out_params;" (assignment_expression) "*out = out_params" (pointer_expression) "*out" (*) "*" (identifier) "out" (=) "=" (identifier) "out_params" (;) ";" (expression_statement) "IWbemClassObject_AddRef( out_params );" (call_expression) "IWbemClassObject_AddRef( out_params )" (identifier) "IWbemClassObject_AddRef" (argument_list) "( out_params )" (() "(" (identifier) "out_params" ()) ")" (;) ";" (}) "}" (if_statement) "if (out_params) IWbemClassObject_Release( out_params );" (if) "if" (parenthesized_expression) "(out_params)" (() "(" (identifier) "out_params" ()) ")" (expression_statement) "IWbemClassObject_Release( out_params );" (call_expression) "IWbemClassObject_Release( out_params )" (identifier) "IWbemClassObject_Release" (argument_list) "( out_params )" (() "(" (identifier) "out_params" ()) ")" (;) ";" (return_statement) "return hr;" (return) "return" (identifier) "hr" (;) ";" (}) "}" (function_definition) "HRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return E_NOTIMPL;\n}" (type_identifier) "HRESULT" (function_declarator) "get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (identifier) "get_last_restore_status" (parameter_list) "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (() "(" (parameter_declaration) "IWbemClassObject *obj" (type_identifier) "IWbemClassObject" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "IWbemContext *context" (type_identifier) "IWbemContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "IWbemClassObject *in" (type_identifier) "IWbemClassObject" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "IWbemClassObject **out" (type_identifier) "IWbemClassObject" (pointer_declarator) "**out" (*) "*" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (compound_statement) "{\n FIXME("stub\n");\n return E_NOTIMPL;\n}" ({) "{" (expression_statement) "FIXME("stub\n");" (call_expression) "FIXME("stub\n")" (identifier) "FIXME" (argument_list) "("stub\n")" (() "(" (string_literal) ""stub\n"" (") """ (string_content) "stub" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return E_NOTIMPL;" (return) "return" (identifier) "E_NOTIMPL" (;) ";" (}) "}" (function_definition) "HRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME("stub\n");\n return S_OK;\n}" (type_identifier) "HRESULT" (function_declarator) "restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (identifier) "restore" (parameter_list) "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )" (() "(" (parameter_declaration) "IWbemClassObject *obj" (type_identifier) "IWbemClassObject" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "IWbemContext *context" (type_identifier) "IWbemContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (,) "," (parameter_declaration) "IWbemClassObject *in" (type_identifier) "IWbemClassObject" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "IWbemClassObject **out" (type_identifier) "IWbemClassObject" (pointer_declarator) "**out" (*) "*" (pointer_declarator) "*out" (*) "*" (identifier) "out" ()) ")" (compound_statement) "{\n FIXME("stub\n");\n return S_OK;\n}" ({) "{" (expression_statement) "FIXME("stub\n");" (call_expression) "FIXME("stub\n")" (identifier) "FIXME" (argument_list) "("stub\n")" (() "(" (string_literal) ""stub\n"" (") """ (string_content) "stub" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return S_OK;" (return) "return" (identifier) "S_OK" (;) ";" (}) "}"
617
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 32.41, "nodes": 367, "errors": 0, "source_hash": "78802636936f70e6fe38d8cb12e1e5b15b1c9a55d605659ece7f69d7311602fa", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define COBJMACROS\n", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 2, "type": "identifier", "text": "COBJMACROS", "parent": 0, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdarg.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdarg.h>", "parent": 3, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"windef.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"windef.h\"", "parent": 6, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"winbase.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"winbase.h\"", "parent": 9, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"wbemcli.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"wbemcli.h\"", "parent": 12, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include \"wine/debug.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"wine/debug.h\"", "parent": 15, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 23}}, {"id": 18, "type": "preproc_include", "text": "#include \"wbemprox_private.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"wbemprox_private.h\"", "parent": 18, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 29}}, {"id": 21, "type": "call_expression", "text": "WINE_DEFAULT_DEBUG_CHANNEL(wbemprox)", "parent": null, "children": [22, 23], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 36}}, {"id": 22, "type": "identifier", "text": "WINE_DEFAULT_DEBUG_CHANNEL", "parent": 21, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 26}}, {"id": 23, "type": "argument_list", "text": "(wbemprox)", "parent": 21, "children": [24], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 36}}, {"id": 24, "type": "identifier", "text": "wbemprox", "parent": 23, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 35}}, {"id": 25, "type": "function_definition", "text": "HRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}", "parent": null, "children": [26, 27], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "HRESULT", "parent": 25, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 27, "type": "function_declarator", "text": "create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 25, "children": [28, 29], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 122}}, {"id": 28, "type": "identifier", "text": "create_restore_point", "parent": 27, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 28}}, {"id": 29, "type": "parameter_list", "text": "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 27, "children": [30, 35, 40, 45], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 122}}, {"id": 30, "type": "parameter_declaration", "text": "IWbemClassObject *obj", "parent": 29, "children": [31, 32], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 51}}, {"id": 31, "type": "type_identifier", "text": "IWbemClassObject", "parent": 30, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 46}}, {"id": 32, "type": "pointer_declarator", "text": "*obj", "parent": 30, "children": [33, 34], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 51}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 48}}, {"id": 34, "type": "identifier", "text": "obj", "parent": 32, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 51}}, {"id": 35, "type": "parameter_declaration", "text": "IWbemContext *context", "parent": 29, "children": [36, 37], "start_point": {"row": 33, "column": 53}, "end_point": {"row": 33, "column": 74}}, {"id": 36, "type": "type_identifier", "text": "IWbemContext", "parent": 35, "children": [], "start_point": {"row": 33, "column": 53}, "end_point": {"row": 33, "column": 65}}, {"id": 37, "type": "pointer_declarator", "text": "*context", "parent": 35, "children": [38, 39], "start_point": {"row": 33, "column": 66}, "end_point": {"row": 33, "column": 74}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 33, "column": 66}, "end_point": {"row": 33, "column": 67}}, {"id": 39, "type": "identifier", "text": "context", "parent": 37, "children": [], "start_point": {"row": 33, "column": 67}, "end_point": {"row": 33, "column": 74}}, {"id": 40, "type": "parameter_declaration", "text": "IWbemClassObject *in", "parent": 29, "children": [41, 42], "start_point": {"row": 33, "column": 76}, "end_point": {"row": 33, "column": 96}}, {"id": 41, "type": "type_identifier", "text": "IWbemClassObject", "parent": 40, "children": [], "start_point": {"row": 33, "column": 76}, "end_point": {"row": 33, "column": 92}}, {"id": 42, "type": "pointer_declarator", "text": "*in", "parent": 40, "children": [43, 44], "start_point": {"row": 33, "column": 93}, "end_point": {"row": 33, "column": 96}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 33, "column": 93}, "end_point": {"row": 33, "column": 94}}, {"id": 44, "type": "identifier", "text": "in", "parent": 42, "children": [], "start_point": {"row": 33, "column": 94}, "end_point": {"row": 33, "column": 96}}, {"id": 45, "type": "parameter_declaration", "text": "IWbemClassObject **out", "parent": 29, "children": [46, 47], "start_point": {"row": 33, "column": 98}, "end_point": {"row": 33, "column": 120}}, {"id": 46, "type": "type_identifier", "text": "IWbemClassObject", "parent": 45, "children": [], "start_point": {"row": 33, "column": 98}, "end_point": {"row": 33, "column": 114}}, {"id": 47, "type": "pointer_declarator", "text": "**out", "parent": 45, "children": [48, 49], "start_point": {"row": 33, "column": 115}, "end_point": {"row": 33, "column": 120}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 33, "column": 115}, "end_point": {"row": 33, "column": 116}}, {"id": 49, "type": "pointer_declarator", "text": "*out", "parent": 47, "children": [50, 51], "start_point": {"row": 33, "column": 116}, "end_point": {"row": 33, "column": 120}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 33, "column": 116}, "end_point": {"row": 33, "column": 117}}, {"id": 51, "type": "identifier", "text": "out", "parent": 49, "children": [], "start_point": {"row": 33, "column": 117}, "end_point": {"row": 33, "column": 120}}, {"id": 52, "type": "call_expression", "text": "FIXME(\"stub\\n\")", "parent": 25, "children": [53, 54], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 19}}, {"id": 53, "type": "identifier", "text": "FIXME", "parent": 52, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 9}}, {"id": 54, "type": "argument_list", "text": "(\"stub\\n\")", "parent": 52, "children": [55], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 19}}, {"id": 55, "type": "string_literal", "text": "\"stub\\n\"", "parent": 54, "children": [56], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 56, "type": "escape_sequence", "text": "\\n", "parent": 55, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 17}}, {"id": 57, "type": "return_statement", "text": "return S_OK;", "parent": 25, "children": [58], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 16}}, {"id": 58, "type": "identifier", "text": "S_OK", "parent": 57, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 59, "type": "function_definition", "text": "HRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}", "parent": null, "children": [60, 61], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 60, "type": "type_identifier", "text": "HRESULT", "parent": 59, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 61, "type": "function_declarator", "text": "disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 59, "children": [62, 63], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 117}}, {"id": 62, "type": "identifier", "text": "disable_restore", "parent": 61, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 63, "type": "parameter_list", "text": "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 61, "children": [64, 69, 74, 79], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 117}}, {"id": 64, "type": "parameter_declaration", "text": "IWbemClassObject *obj", "parent": 63, "children": [65, 66], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 46}}, {"id": 65, "type": "type_identifier", "text": "IWbemClassObject", "parent": 64, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 41}}, {"id": 66, "type": "pointer_declarator", "text": "*obj", "parent": 64, "children": [67, 68], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 46}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 43}}, {"id": 68, "type": "identifier", "text": "obj", "parent": 66, "children": [], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 46}}, {"id": 69, "type": "parameter_declaration", "text": "IWbemContext *context", "parent": 63, "children": [70, 71], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 69}}, {"id": 70, "type": "type_identifier", "text": "IWbemContext", "parent": 69, "children": [], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 60}}, {"id": 71, "type": "pointer_declarator", "text": "*context", "parent": 69, "children": [72, 73], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 69}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 62}}, {"id": 73, "type": "identifier", "text": "context", "parent": 71, "children": [], "start_point": {"row": 39, "column": 62}, "end_point": {"row": 39, "column": 69}}, {"id": 74, "type": "parameter_declaration", "text": "IWbemClassObject *in", "parent": 63, "children": [75, 76], "start_point": {"row": 39, "column": 71}, "end_point": {"row": 39, "column": 91}}, {"id": 75, "type": "type_identifier", "text": "IWbemClassObject", "parent": 74, "children": [], "start_point": {"row": 39, "column": 71}, "end_point": {"row": 39, "column": 87}}, {"id": 76, "type": "pointer_declarator", "text": "*in", "parent": 74, "children": [77, 78], "start_point": {"row": 39, "column": 88}, "end_point": {"row": 39, "column": 91}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 39, "column": 88}, "end_point": {"row": 39, "column": 89}}, {"id": 78, "type": "identifier", "text": "in", "parent": 76, "children": [], "start_point": {"row": 39, "column": 89}, "end_point": {"row": 39, "column": 91}}, {"id": 79, "type": "parameter_declaration", "text": "IWbemClassObject **out", "parent": 63, "children": [80, 81], "start_point": {"row": 39, "column": 93}, "end_point": {"row": 39, "column": 115}}, {"id": 80, "type": "type_identifier", "text": "IWbemClassObject", "parent": 79, "children": [], "start_point": {"row": 39, "column": 93}, "end_point": {"row": 39, "column": 109}}, {"id": 81, "type": "pointer_declarator", "text": "**out", "parent": 79, "children": [82, 83], "start_point": {"row": 39, "column": 110}, "end_point": {"row": 39, "column": 115}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 39, "column": 110}, "end_point": {"row": 39, "column": 111}}, {"id": 83, "type": "pointer_declarator", "text": "*out", "parent": 81, "children": [84, 85], "start_point": {"row": 39, "column": 111}, "end_point": {"row": 39, "column": 115}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 39, "column": 111}, "end_point": {"row": 39, "column": 112}}, {"id": 85, "type": "identifier", "text": "out", "parent": 83, "children": [], "start_point": {"row": 39, "column": 112}, "end_point": {"row": 39, "column": 115}}, {"id": 86, "type": "call_expression", "text": "FIXME(\"stub\\n\")", "parent": 59, "children": [87, 88], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 19}}, {"id": 87, "type": "identifier", "text": "FIXME", "parent": 86, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 88, "type": "argument_list", "text": "(\"stub\\n\")", "parent": 86, "children": [89], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 19}}, {"id": 89, "type": "string_literal", "text": "\"stub\\n\"", "parent": 88, "children": [90], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 18}}, {"id": 90, "type": "escape_sequence", "text": "\\n", "parent": 89, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 17}}, {"id": 91, "type": "return_statement", "text": "return S_OK;", "parent": 59, "children": [92], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 16}}, {"id": 92, "type": "identifier", "text": "S_OK", "parent": 91, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 15}}, {"id": 93, "type": "function_definition", "text": "HRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n VARIANT drive, retval;\n IWbemClassObject *sig, *out_params = NULL;\n HRESULT hr;\n\n TRACE(\"%p, %p\\n\", in, out);\n\n hr = IWbemClassObject_Get( in, L\"Drive\", 0, &drive, NULL, NULL );\n if (hr != S_OK) return hr;\n\n hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L\"SystemRestore\", L\"Enable\", PARAM_OUT, &sig );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }\n\n if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }\n\n FIXME(\"%s: stub\\n\", wine_dbgstr_variant(&drive));\n\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n\n if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 );\n }\n\n if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }\n if (out_params) IWbemClassObject_Release( out_params );\n\n return hr;\n}", "parent": null, "children": [94, 95], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 94, "type": "type_identifier", "text": "HRESULT", "parent": 93, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 95, "type": "function_declarator", "text": "enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 93, "children": [96, 97], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 116}}, {"id": 96, "type": "identifier", "text": "enable_restore", "parent": 95, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 22}}, {"id": 97, "type": "parameter_list", "text": "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 95, "children": [98, 103, 108, 113], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 116}}, {"id": 98, "type": "parameter_declaration", "text": "IWbemClassObject *obj", "parent": 97, "children": [99, 100], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 45}}, {"id": 99, "type": "type_identifier", "text": "IWbemClassObject", "parent": 98, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 40}}, {"id": 100, "type": "pointer_declarator", "text": "*obj", "parent": 98, "children": [101, 102], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 45}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 42}}, {"id": 102, "type": "identifier", "text": "obj", "parent": 100, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 45}}, {"id": 103, "type": "parameter_declaration", "text": "IWbemContext *context", "parent": 97, "children": [104, 105], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 68}}, {"id": 104, "type": "type_identifier", "text": "IWbemContext", "parent": 103, "children": [], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 59}}, {"id": 105, "type": "pointer_declarator", "text": "*context", "parent": 103, "children": [106, 107], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 68}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 61}}, {"id": 107, "type": "identifier", "text": "context", "parent": 105, "children": [], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 68}}, {"id": 108, "type": "parameter_declaration", "text": "IWbemClassObject *in", "parent": 97, "children": [109, 110], "start_point": {"row": 45, "column": 70}, "end_point": {"row": 45, "column": 90}}, {"id": 109, "type": "type_identifier", "text": "IWbemClassObject", "parent": 108, "children": [], "start_point": {"row": 45, "column": 70}, "end_point": {"row": 45, "column": 86}}, {"id": 110, "type": "pointer_declarator", "text": "*in", "parent": 108, "children": [111, 112], "start_point": {"row": 45, "column": 87}, "end_point": {"row": 45, "column": 90}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 45, "column": 87}, "end_point": {"row": 45, "column": 88}}, {"id": 112, "type": "identifier", "text": "in", "parent": 110, "children": [], "start_point": {"row": 45, "column": 88}, "end_point": {"row": 45, "column": 90}}, {"id": 113, "type": "parameter_declaration", "text": "IWbemClassObject **out", "parent": 97, "children": [114, 115], "start_point": {"row": 45, "column": 92}, "end_point": {"row": 45, "column": 114}}, {"id": 114, "type": "type_identifier", "text": "IWbemClassObject", "parent": 113, "children": [], "start_point": {"row": 45, "column": 92}, "end_point": {"row": 45, "column": 108}}, {"id": 115, "type": "pointer_declarator", "text": "**out", "parent": 113, "children": [116, 117], "start_point": {"row": 45, "column": 109}, "end_point": {"row": 45, "column": 114}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 45, "column": 109}, "end_point": {"row": 45, "column": 110}}, {"id": 117, "type": "pointer_declarator", "text": "*out", "parent": 115, "children": [118, 119], "start_point": {"row": 45, "column": 110}, "end_point": {"row": 45, "column": 114}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 45, "column": 110}, "end_point": {"row": 45, "column": 111}}, {"id": 119, "type": "identifier", "text": "out", "parent": 117, "children": [], "start_point": {"row": 45, "column": 111}, "end_point": {"row": 45, "column": 114}}, {"id": 120, "type": "declaration", "text": "VARIANT drive, retval;", "parent": 93, "children": [121, 122, 123], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 26}}, {"id": 121, "type": "type_identifier", "text": "VARIANT", "parent": 120, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 11}}, {"id": 122, "type": "identifier", "text": "drive", "parent": 120, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 17}}, {"id": 123, "type": "identifier", "text": "retval", "parent": 120, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 25}}, {"id": 124, "type": "declaration", "text": "IWbemClassObject *sig, *out_params = NULL;", "parent": 93, "children": [125, 126, 129], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 46}}, {"id": 125, "type": "type_identifier", "text": "IWbemClassObject", "parent": 124, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 20}}, {"id": 126, "type": "pointer_declarator", "text": "*sig", "parent": 124, "children": [127, 128], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 25}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 22}}, {"id": 128, "type": "identifier", "text": "sig", "parent": 126, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 25}}, {"id": 129, "type": "init_declarator", "text": "*out_params = NULL", "parent": 124, "children": [130, 133, 134], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 45}}, {"id": 130, "type": "pointer_declarator", "text": "*out_params", "parent": 129, "children": [131, 132], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 38}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 28}}, {"id": 132, "type": "identifier", "text": "out_params", "parent": 130, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 38}}, {"id": 133, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 40}}, {"id": 134, "type": "null", "text": "NULL", "parent": 129, "children": [135], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 45}}, {"id": 135, "type": "NULL", "text": "NULL", "parent": 134, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 45}}, {"id": 136, "type": "declaration", "text": "HRESULT hr;", "parent": 93, "children": [137, 138], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 15}}, {"id": 137, "type": "type_identifier", "text": "HRESULT", "parent": 136, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 138, "type": "identifier", "text": "hr", "parent": 136, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 14}}, {"id": 139, "type": "call_expression", "text": "TRACE(\"%p, %p\\n\", in, out)", "parent": 93, "children": [140, 141], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 30}}, {"id": 140, "type": "identifier", "text": "TRACE", "parent": 139, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 9}}, {"id": 141, "type": "argument_list", "text": "(\"%p, %p\\n\", in, out)", "parent": 139, "children": [142, 144, 145], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 30}}, {"id": 142, "type": "string_literal", "text": "\"%p, %p\\n\"", "parent": 141, "children": [143], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 20}}, {"id": 143, "type": "escape_sequence", "text": "\\n", "parent": 142, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 19}}, {"id": 144, "type": "identifier", "text": "in", "parent": 141, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 24}}, {"id": 145, "type": "identifier", "text": "out", "parent": 141, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 29}}, {"id": 146, "type": "assignment_expression", "text": "hr = IWbemClassObject_Get( in, L\"Drive\", 0, &drive, NULL, NULL )", "parent": 93, "children": [147, 148, 149], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 68}}, {"id": 147, "type": "identifier", "text": "hr", "parent": 146, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 6}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 8}}, {"id": 149, "type": "call_expression", "text": "IWbemClassObject_Get( in, L\"Drive\", 0, &drive, NULL, NULL )", "parent": 146, "children": [150, 151], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 68}}, {"id": 150, "type": "identifier", "text": "IWbemClassObject_Get", "parent": 149, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 29}}, {"id": 151, "type": "argument_list", "text": "( in, L\"Drive\", 0, &drive, NULL, NULL )", "parent": 149, "children": [152, 153, 155, 156, 158, 160], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 68}}, {"id": 152, "type": "identifier", "text": "in", "parent": 151, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 33}}, {"id": 153, "type": "string_literal", "text": "L\"Drive\"", "parent": 151, "children": [154], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 43}}, {"id": 154, "type": "L\"", "text": "L\"", "parent": 153, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 37}}, {"id": 155, "type": "number_literal", "text": "0", "parent": 151, "children": [], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 46}}, {"id": 156, "type": "pointer_expression", "text": "&drive", "parent": 151, "children": [157], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 54}}, {"id": 157, "type": "identifier", "text": "drive", "parent": 156, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 54}}, {"id": 158, "type": "null", "text": "NULL", "parent": 151, "children": [159], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 60}}, {"id": 159, "type": "NULL", "text": "NULL", "parent": 158, "children": [], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 60}}, {"id": 160, "type": "null", "text": "NULL", "parent": 151, "children": [161], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 66}}, {"id": 161, "type": "NULL", "text": "NULL", "parent": 160, "children": [], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 66}}, {"id": 162, "type": "if_statement", "text": "if (hr != S_OK) return hr;", "parent": 93, "children": [163, 168], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 30}}, {"id": 163, "type": "parenthesized_expression", "text": "(hr != S_OK)", "parent": 162, "children": [164], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 19}}, {"id": 164, "type": "binary_expression", "text": "hr != S_OK", "parent": 163, "children": [165, 166, 167], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 18}}, {"id": 165, "type": "identifier", "text": "hr", "parent": 164, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 10}}, {"id": 166, "type": "!=", "text": "!=", "parent": 164, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 13}}, {"id": 167, "type": "identifier", "text": "S_OK", "parent": 164, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 168, "type": "return_statement", "text": "return hr;", "parent": 162, "children": [169], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 30}}, {"id": 169, "type": "identifier", "text": "hr", "parent": 168, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 29}}, {"id": 170, "type": "assignment_expression", "text": "hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L\"SystemRestore\", L\"Enable\", PARAM_OUT, &sig )", "parent": 93, "children": [171, 172, 173], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 99}}, {"id": 171, "type": "identifier", "text": "hr", "parent": 170, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 6}}, {"id": 172, "type": "=", "text": "=", "parent": 170, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 8}}, {"id": 173, "type": "call_expression", "text": "create_signature( WBEMPROX_NAMESPACE_CIMV2, L\"SystemRestore\", L\"Enable\", PARAM_OUT, &sig )", "parent": 170, "children": [174, 175], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 99}}, {"id": 174, "type": "identifier", "text": "create_signature", "parent": 173, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 25}}, {"id": 175, "type": "argument_list", "text": "( WBEMPROX_NAMESPACE_CIMV2, L\"SystemRestore\", L\"Enable\", PARAM_OUT, &sig )", "parent": 173, "children": [176, 177, 179, 181, 182], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 99}}, {"id": 176, "type": "identifier", "text": "WBEMPROX_NAMESPACE_CIMV2", "parent": 175, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 51}}, {"id": 177, "type": "string_literal", "text": "L\"SystemRestore\"", "parent": 175, "children": [178], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 69}}, {"id": 178, "type": "L\"", "text": "L\"", "parent": 177, "children": [], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 55}}, {"id": 179, "type": "string_literal", "text": "L\"Enable\"", "parent": 175, "children": [180], "start_point": {"row": 56, "column": 71}, "end_point": {"row": 56, "column": 80}}, {"id": 180, "type": "L\"", "text": "L\"", "parent": 179, "children": [], "start_point": {"row": 56, "column": 71}, "end_point": {"row": 56, "column": 73}}, {"id": 181, "type": "identifier", "text": "PARAM_OUT", "parent": 175, "children": [], "start_point": {"row": 56, "column": 82}, "end_point": {"row": 56, "column": 91}}, {"id": 182, "type": "pointer_expression", "text": "&sig", "parent": 175, "children": [183], "start_point": {"row": 56, "column": 93}, "end_point": {"row": 56, "column": 97}}, {"id": 183, "type": "identifier", "text": "sig", "parent": 182, "children": [], "start_point": {"row": 56, "column": 94}, "end_point": {"row": 56, "column": 97}}, {"id": 184, "type": "if_statement", "text": "if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }", "parent": 93, "children": [185], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 185, "type": "parenthesized_expression", "text": "(hr != S_OK)", "parent": 184, "children": [186], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 19}}, {"id": 186, "type": "binary_expression", "text": "hr != S_OK", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 18}}, {"id": 187, "type": "identifier", "text": "hr", "parent": 186, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 10}}, {"id": 188, "type": "!=", "text": "!=", "parent": 186, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 13}}, {"id": 189, "type": "identifier", "text": "S_OK", "parent": 186, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 18}}, {"id": 190, "type": "call_expression", "text": "VariantClear( &drive )", "parent": 184, "children": [191, 192], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 30}}, {"id": 191, "type": "identifier", "text": "VariantClear", "parent": 190, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 20}}, {"id": 192, "type": "argument_list", "text": "( &drive )", "parent": 190, "children": [193], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 30}}, {"id": 193, "type": "pointer_expression", "text": "&drive", "parent": 192, "children": [194], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 28}}, {"id": 194, "type": "identifier", "text": "drive", "parent": 193, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 28}}, {"id": 195, "type": "return_statement", "text": "return hr;", "parent": 184, "children": [196], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 18}}, {"id": 196, "type": "identifier", "text": "hr", "parent": 195, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 17}}, {"id": 197, "type": "if_statement", "text": "if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }", "parent": 93, "children": [198], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 198, "type": "parenthesized_expression", "text": "(out)", "parent": 197, "children": [199], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 12}}, {"id": 199, "type": "identifier", "text": "out", "parent": 198, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 11}}, {"id": 200, "type": "assignment_expression", "text": "hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params )", "parent": 197, "children": [201, 202, 203], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 66}}, {"id": 201, "type": "identifier", "text": "hr", "parent": 200, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 10}}, {"id": 202, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 203, "type": "call_expression", "text": "IWbemClassObject_SpawnInstance( sig, 0, &out_params )", "parent": 200, "children": [204, 205], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 66}}, {"id": 204, "type": "identifier", "text": "IWbemClassObject_SpawnInstance", "parent": 203, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 43}}, {"id": 205, "type": "argument_list", "text": "( sig, 0, &out_params )", "parent": 203, "children": [206, 207, 208], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 66}}, {"id": 206, "type": "identifier", "text": "sig", "parent": 205, "children": [], "start_point": {"row": 65, "column": 45}, "end_point": {"row": 65, "column": 48}}, {"id": 207, "type": "number_literal", "text": "0", "parent": 205, "children": [], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 51}}, {"id": 208, "type": "pointer_expression", "text": "&out_params", "parent": 205, "children": [209], "start_point": {"row": 65, "column": 53}, "end_point": {"row": 65, "column": 64}}, {"id": 209, "type": "identifier", "text": "out_params", "parent": 208, "children": [], "start_point": {"row": 65, "column": 54}, "end_point": {"row": 65, "column": 64}}, {"id": 210, "type": "if_statement", "text": "if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }", "parent": 197, "children": [211], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 211, "type": "parenthesized_expression", "text": "(hr != S_OK)", "parent": 210, "children": [212], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 23}}, {"id": 212, "type": "binary_expression", "text": "hr != S_OK", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 22}}, {"id": 213, "type": "identifier", "text": "hr", "parent": 212, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 14}}, {"id": 214, "type": "!=", "text": "!=", "parent": 212, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 17}}, {"id": 215, "type": "identifier", "text": "S_OK", "parent": 212, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 22}}, {"id": 216, "type": "call_expression", "text": "VariantClear( &drive )", "parent": 210, "children": [217, 218], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 34}}, {"id": 217, "type": "identifier", "text": "VariantClear", "parent": 216, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 24}}, {"id": 218, "type": "argument_list", "text": "( &drive )", "parent": 216, "children": [219], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 34}}, {"id": 219, "type": "pointer_expression", "text": "&drive", "parent": 218, "children": [220], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 32}}, {"id": 220, "type": "identifier", "text": "drive", "parent": 219, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 32}}, {"id": 221, "type": "call_expression", "text": "IWbemClassObject_Release( sig )", "parent": 210, "children": [222, 223], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 43}}, {"id": 222, "type": "identifier", "text": "IWbemClassObject_Release", "parent": 221, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 36}}, {"id": 223, "type": "argument_list", "text": "( sig )", "parent": 221, "children": [224], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 43}}, {"id": 224, "type": "identifier", "text": "sig", "parent": 223, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 41}}, {"id": 225, "type": "return_statement", "text": "return hr;", "parent": 210, "children": [226], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 22}}, {"id": 226, "type": "identifier", "text": "hr", "parent": 225, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 21}}, {"id": 227, "type": "call_expression", "text": "FIXME(\"%s: stub\\n\", wine_dbgstr_variant(&drive))", "parent": 93, "children": [228, 229], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 52}}, {"id": 228, "type": "identifier", "text": "FIXME", "parent": 227, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 229, "type": "argument_list", "text": "(\"%s: stub\\n\", wine_dbgstr_variant(&drive))", "parent": 227, "children": [230, 232], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 52}}, {"id": 230, "type": "string_literal", "text": "\"%s: stub\\n\"", "parent": 229, "children": [231], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 22}}, {"id": 231, "type": "escape_sequence", "text": "\\n", "parent": 230, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 21}}, {"id": 232, "type": "call_expression", "text": "wine_dbgstr_variant(&drive)", "parent": 229, "children": [233, 234], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 51}}, {"id": 233, "type": "identifier", "text": "wine_dbgstr_variant", "parent": 232, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 43}}, {"id": 234, "type": "argument_list", "text": "(&drive)", "parent": 232, "children": [235], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 51}}, {"id": 235, "type": "pointer_expression", "text": "&drive", "parent": 234, "children": [236], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 50}}, {"id": 236, "type": "identifier", "text": "drive", "parent": 235, "children": [], "start_point": {"row": 74, "column": 45}, "end_point": {"row": 74, "column": 50}}, {"id": 237, "type": "call_expression", "text": "VariantClear( &drive )", "parent": 93, "children": [238, 239], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 26}}, {"id": 238, "type": "identifier", "text": "VariantClear", "parent": 237, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 16}}, {"id": 239, "type": "argument_list", "text": "( &drive )", "parent": 237, "children": [240], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 26}}, {"id": 240, "type": "pointer_expression", "text": "&drive", "parent": 239, "children": [241], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 24}}, {"id": 241, "type": "identifier", "text": "drive", "parent": 240, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 24}}, {"id": 242, "type": "call_expression", "text": "IWbemClassObject_Release( sig )", "parent": 93, "children": [243, 244], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 35}}, {"id": 243, "type": "identifier", "text": "IWbemClassObject_Release", "parent": 242, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 28}}, {"id": 244, "type": "argument_list", "text": "( sig )", "parent": 242, "children": [245], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 35}}, {"id": 245, "type": "identifier", "text": "sig", "parent": 244, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 33}}, {"id": 246, "type": "if_statement", "text": "if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 );\n }", "parent": 93, "children": [247], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 83, "column": 5}}, {"id": 247, "type": "parenthesized_expression", "text": "(out_params)", "parent": 246, "children": [248], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 19}}, {"id": 248, "type": "identifier", "text": "out_params", "parent": 247, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 18}}, {"id": 249, "type": "call_expression", "text": "set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval )", "parent": 246, "children": [250, 251], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 59}}, {"id": 250, "type": "identifier", "text": "set_variant", "parent": 249, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 19}}, {"id": 251, "type": "argument_list", "text": "( VT_UI4, ERROR_SUCCESS, NULL, &retval )", "parent": 249, "children": [252, 253, 254, 256], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 59}}, {"id": 252, "type": "identifier", "text": "VT_UI4", "parent": 251, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 27}}, {"id": 253, "type": "identifier", "text": "ERROR_SUCCESS", "parent": 251, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 42}}, {"id": 254, "type": "null", "text": "NULL", "parent": 251, "children": [255], "start_point": {"row": 81, "column": 44}, "end_point": {"row": 81, "column": 48}}, {"id": 255, "type": "NULL", "text": "NULL", "parent": 254, "children": [], "start_point": {"row": 81, "column": 44}, "end_point": {"row": 81, "column": 48}}, {"id": 256, "type": "pointer_expression", "text": "&retval", "parent": 251, "children": [257], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 57}}, {"id": 257, "type": "identifier", "text": "retval", "parent": 256, "children": [], "start_point": {"row": 81, "column": 51}, "end_point": {"row": 81, "column": 57}}, {"id": 258, "type": "assignment_expression", "text": "hr = IWbemClassObject_Put( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 )", "parent": 246, "children": [259, 260, 261], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 87}}, {"id": 259, "type": "identifier", "text": "hr", "parent": 258, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 10}}, {"id": 260, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 261, "type": "call_expression", "text": "IWbemClassObject_Put( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 )", "parent": 258, "children": [262, 263], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 87}}, {"id": 262, "type": "identifier", "text": "IWbemClassObject_Put", "parent": 261, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 33}}, {"id": 263, "type": "argument_list", "text": "( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 )", "parent": 261, "children": [264, 265, 267, 268, 270], "start_point": {"row": 82, "column": 33}, "end_point": {"row": 82, "column": 87}}, {"id": 264, "type": "identifier", "text": "out_params", "parent": 263, "children": [], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 45}}, {"id": 265, "type": "string_literal", "text": "L\"ReturnValue\"", "parent": 263, "children": [266], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 61}}, {"id": 266, "type": "L\"", "text": "L\"", "parent": 265, "children": [], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 49}}, {"id": 267, "type": "number_literal", "text": "0", "parent": 263, "children": [], "start_point": {"row": 82, "column": 63}, "end_point": {"row": 82, "column": 64}}, {"id": 268, "type": "pointer_expression", "text": "&retval", "parent": 263, "children": [269], "start_point": {"row": 82, "column": 66}, "end_point": {"row": 82, "column": 73}}, {"id": 269, "type": "identifier", "text": "retval", "parent": 268, "children": [], "start_point": {"row": 82, "column": 67}, "end_point": {"row": 82, "column": 73}}, {"id": 270, "type": "identifier", "text": "CIM_UINT32", "parent": 263, "children": [], "start_point": {"row": 82, "column": 75}, "end_point": {"row": 82, "column": 85}}, {"id": 271, "type": "if_statement", "text": "if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }", "parent": 93, "children": [272], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 272, "type": "parenthesized_expression", "text": "(hr == S_OK && out)", "parent": 271, "children": [273], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 26}}, {"id": 273, "type": "binary_expression", "text": "hr == S_OK && out", "parent": 272, "children": [274, 278, 279], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 25}}, {"id": 274, "type": "binary_expression", "text": "hr == S_OK", "parent": 273, "children": [275, 276, 277], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 18}}, {"id": 275, "type": "identifier", "text": "hr", "parent": 274, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 10}}, {"id": 276, "type": "==", "text": "==", "parent": 274, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 13}}, {"id": 277, "type": "identifier", "text": "S_OK", "parent": 274, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 18}}, {"id": 278, "type": "&&", "text": "&&", "parent": 273, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 21}}, {"id": 279, "type": "identifier", "text": "out", "parent": 273, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 25}}, {"id": 280, "type": "assignment_expression", "text": "*out = out_params", "parent": 271, "children": [281, 284, 285], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 25}}, {"id": 281, "type": "pointer_expression", "text": "*out", "parent": 280, "children": [282, 283], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 283, "type": "identifier", "text": "out", "parent": 281, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 12}}, {"id": 284, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 14}}, {"id": 285, "type": "identifier", "text": "out_params", "parent": 280, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 25}}, {"id": 286, "type": "call_expression", "text": "IWbemClassObject_AddRef( out_params )", "parent": 271, "children": [287, 288], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 45}}, {"id": 287, "type": "identifier", "text": "IWbemClassObject_AddRef", "parent": 286, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 31}}, {"id": 288, "type": "argument_list", "text": "( out_params )", "parent": 286, "children": [289], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 45}}, {"id": 289, "type": "identifier", "text": "out_params", "parent": 288, "children": [], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 43}}, {"id": 290, "type": "if_statement", "text": "if (out_params) IWbemClassObject_Release( out_params );", "parent": 93, "children": [291], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 59}}, {"id": 291, "type": "parenthesized_expression", "text": "(out_params)", "parent": 290, "children": [292], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 19}}, {"id": 292, "type": "identifier", "text": "out_params", "parent": 291, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 18}}, {"id": 293, "type": "call_expression", "text": "IWbemClassObject_Release( out_params )", "parent": 290, "children": [294, 295], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 58}}, {"id": 294, "type": "identifier", "text": "IWbemClassObject_Release", "parent": 293, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 44}}, {"id": 295, "type": "argument_list", "text": "( out_params )", "parent": 293, "children": [296], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 58}}, {"id": 296, "type": "identifier", "text": "out_params", "parent": 295, "children": [], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 56}}, {"id": 297, "type": "return_statement", "text": "return hr;", "parent": 93, "children": [298], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 14}}, {"id": 298, "type": "identifier", "text": "hr", "parent": 297, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 13}}, {"id": 299, "type": "function_definition", "text": "HRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return E_NOTIMPL;\n}", "parent": null, "children": [300, 301], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 300, "type": "type_identifier", "text": "HRESULT", "parent": 299, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 301, "type": "function_declarator", "text": "get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 299, "children": [302, 303], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 125}}, {"id": 302, "type": "identifier", "text": "get_last_restore_status", "parent": 301, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 31}}, {"id": 303, "type": "parameter_list", "text": "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 301, "children": [304, 309, 314, 319], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 125}}, {"id": 304, "type": "parameter_declaration", "text": "IWbemClassObject *obj", "parent": 303, "children": [305, 306], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 54}}, {"id": 305, "type": "type_identifier", "text": "IWbemClassObject", "parent": 304, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 49}}, {"id": 306, "type": "pointer_declarator", "text": "*obj", "parent": 304, "children": [307, 308], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 54}}, {"id": 307, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 51}}, {"id": 308, "type": "identifier", "text": "obj", "parent": 306, "children": [], "start_point": {"row": 95, "column": 51}, "end_point": {"row": 95, "column": 54}}, {"id": 309, "type": "parameter_declaration", "text": "IWbemContext *context", "parent": 303, "children": [310, 311], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 77}}, {"id": 310, "type": "type_identifier", "text": "IWbemContext", "parent": 309, "children": [], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 68}}, {"id": 311, "type": "pointer_declarator", "text": "*context", "parent": 309, "children": [312, 313], "start_point": {"row": 95, "column": 69}, "end_point": {"row": 95, "column": 77}}, {"id": 312, "type": "*", "text": "*", "parent": 311, "children": [], "start_point": {"row": 95, "column": 69}, "end_point": {"row": 95, "column": 70}}, {"id": 313, "type": "identifier", "text": "context", "parent": 311, "children": [], "start_point": {"row": 95, "column": 70}, "end_point": {"row": 95, "column": 77}}, {"id": 314, "type": "parameter_declaration", "text": "IWbemClassObject *in", "parent": 303, "children": [315, 316], "start_point": {"row": 95, "column": 79}, "end_point": {"row": 95, "column": 99}}, {"id": 315, "type": "type_identifier", "text": "IWbemClassObject", "parent": 314, "children": [], "start_point": {"row": 95, "column": 79}, "end_point": {"row": 95, "column": 95}}, {"id": 316, "type": "pointer_declarator", "text": "*in", "parent": 314, "children": [317, 318], "start_point": {"row": 95, "column": 96}, "end_point": {"row": 95, "column": 99}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 95, "column": 96}, "end_point": {"row": 95, "column": 97}}, {"id": 318, "type": "identifier", "text": "in", "parent": 316, "children": [], "start_point": {"row": 95, "column": 97}, "end_point": {"row": 95, "column": 99}}, {"id": 319, "type": "parameter_declaration", "text": "IWbemClassObject **out", "parent": 303, "children": [320, 321], "start_point": {"row": 95, "column": 101}, "end_point": {"row": 95, "column": 123}}, {"id": 320, "type": "type_identifier", "text": "IWbemClassObject", "parent": 319, "children": [], "start_point": {"row": 95, "column": 101}, "end_point": {"row": 95, "column": 117}}, {"id": 321, "type": "pointer_declarator", "text": "**out", "parent": 319, "children": [322, 323], "start_point": {"row": 95, "column": 118}, "end_point": {"row": 95, "column": 123}}, {"id": 322, "type": "*", "text": "*", "parent": 321, "children": [], "start_point": {"row": 95, "column": 118}, "end_point": {"row": 95, "column": 119}}, {"id": 323, "type": "pointer_declarator", "text": "*out", "parent": 321, "children": [324, 325], "start_point": {"row": 95, "column": 119}, "end_point": {"row": 95, "column": 123}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 95, "column": 119}, "end_point": {"row": 95, "column": 120}}, {"id": 325, "type": "identifier", "text": "out", "parent": 323, "children": [], "start_point": {"row": 95, "column": 120}, "end_point": {"row": 95, "column": 123}}, {"id": 326, "type": "call_expression", "text": "FIXME(\"stub\\n\")", "parent": 299, "children": [327, 328], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 19}}, {"id": 327, "type": "identifier", "text": "FIXME", "parent": 326, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 9}}, {"id": 328, "type": "argument_list", "text": "(\"stub\\n\")", "parent": 326, "children": [329], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 19}}, {"id": 329, "type": "string_literal", "text": "\"stub\\n\"", "parent": 328, "children": [330], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 18}}, {"id": 330, "type": "escape_sequence", "text": "\\n", "parent": 329, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 17}}, {"id": 331, "type": "return_statement", "text": "return E_NOTIMPL;", "parent": 299, "children": [332], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 21}}, {"id": 332, "type": "identifier", "text": "E_NOTIMPL", "parent": 331, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 20}}, {"id": 333, "type": "function_definition", "text": "HRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}", "parent": null, "children": [334, 335], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 334, "type": "type_identifier", "text": "HRESULT", "parent": 333, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 335, "type": "function_declarator", "text": "restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 333, "children": [336, 337], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 109}}, {"id": 336, "type": "identifier", "text": "restore", "parent": 335, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 15}}, {"id": 337, "type": "parameter_list", "text": "( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )", "parent": 335, "children": [338, 343, 348, 353], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 109}}, {"id": 338, "type": "parameter_declaration", "text": "IWbemClassObject *obj", "parent": 337, "children": [339, 340], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 38}}, {"id": 339, "type": "type_identifier", "text": "IWbemClassObject", "parent": 338, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 33}}, {"id": 340, "type": "pointer_declarator", "text": "*obj", "parent": 338, "children": [341, 342], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 38}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 35}}, {"id": 342, "type": "identifier", "text": "obj", "parent": 340, "children": [], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 38}}, {"id": 343, "type": "parameter_declaration", "text": "IWbemContext *context", "parent": 337, "children": [344, 345], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 61}}, {"id": 344, "type": "type_identifier", "text": "IWbemContext", "parent": 343, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 52}}, {"id": 345, "type": "pointer_declarator", "text": "*context", "parent": 343, "children": [346, 347], "start_point": {"row": 101, "column": 53}, "end_point": {"row": 101, "column": 61}}, {"id": 346, "type": "*", "text": "*", "parent": 345, "children": [], "start_point": {"row": 101, "column": 53}, "end_point": {"row": 101, "column": 54}}, {"id": 347, "type": "identifier", "text": "context", "parent": 345, "children": [], "start_point": {"row": 101, "column": 54}, "end_point": {"row": 101, "column": 61}}, {"id": 348, "type": "parameter_declaration", "text": "IWbemClassObject *in", "parent": 337, "children": [349, 350], "start_point": {"row": 101, "column": 63}, "end_point": {"row": 101, "column": 83}}, {"id": 349, "type": "type_identifier", "text": "IWbemClassObject", "parent": 348, "children": [], "start_point": {"row": 101, "column": 63}, "end_point": {"row": 101, "column": 79}}, {"id": 350, "type": "pointer_declarator", "text": "*in", "parent": 348, "children": [351, 352], "start_point": {"row": 101, "column": 80}, "end_point": {"row": 101, "column": 83}}, {"id": 351, "type": "*", "text": "*", "parent": 350, "children": [], "start_point": {"row": 101, "column": 80}, "end_point": {"row": 101, "column": 81}}, {"id": 352, "type": "identifier", "text": "in", "parent": 350, "children": [], "start_point": {"row": 101, "column": 81}, "end_point": {"row": 101, "column": 83}}, {"id": 353, "type": "parameter_declaration", "text": "IWbemClassObject **out", "parent": 337, "children": [354, 355], "start_point": {"row": 101, "column": 85}, "end_point": {"row": 101, "column": 107}}, {"id": 354, "type": "type_identifier", "text": "IWbemClassObject", "parent": 353, "children": [], "start_point": {"row": 101, "column": 85}, "end_point": {"row": 101, "column": 101}}, {"id": 355, "type": "pointer_declarator", "text": "**out", "parent": 353, "children": [356, 357], "start_point": {"row": 101, "column": 102}, "end_point": {"row": 101, "column": 107}}, {"id": 356, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 101, "column": 102}, "end_point": {"row": 101, "column": 103}}, {"id": 357, "type": "pointer_declarator", "text": "*out", "parent": 355, "children": [358, 359], "start_point": {"row": 101, "column": 103}, "end_point": {"row": 101, "column": 107}}, {"id": 358, "type": "*", "text": "*", "parent": 357, "children": [], "start_point": {"row": 101, "column": 103}, "end_point": {"row": 101, "column": 104}}, {"id": 359, "type": "identifier", "text": "out", "parent": 357, "children": [], "start_point": {"row": 101, "column": 104}, "end_point": {"row": 101, "column": 107}}, {"id": 360, "type": "call_expression", "text": "FIXME(\"stub\\n\")", "parent": 333, "children": [361, 362], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 19}}, {"id": 361, "type": "identifier", "text": "FIXME", "parent": 360, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 9}}, {"id": 362, "type": "argument_list", "text": "(\"stub\\n\")", "parent": 360, "children": [363], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 19}}, {"id": 363, "type": "string_literal", "text": "\"stub\\n\"", "parent": 362, "children": [364], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 18}}, {"id": 364, "type": "escape_sequence", "text": "\\n", "parent": 363, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 17}}, {"id": 365, "type": "return_statement", "text": "return S_OK;", "parent": 333, "children": [366], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 16}}, {"id": 366, "type": "identifier", "text": "S_OK", "parent": 365, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 15}}]}, "node_categories": {"declarations": {"functions": [25, 27, 59, 61, 93, 95, 299, 301, 333, 335], "variables": [30, 35, 40, 45, 64, 69, 74, 79, 98, 103, 108, 113, 120, 124, 136, 304, 309, 314, 319, 338, 343, 348, 353], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [21, 52, 86, 139, 149, 156, 163, 164, 173, 182, 185, 186, 190, 193, 198, 203, 208, 211, 212, 216, 219, 221, 227, 232, 235, 237, 240, 242, 247, 249, 256, 261, 268, 272, 273, 274, 281, 286, 291, 293, 326, 360], "assignments": [146, 170, 200, 258, 280], "loops": [], "conditionals": [2, 22, 24, 26, 28, 31, 34, 36, 39, 41, 44, 46, 51, 53, 58, 60, 62, 65, 68, 70, 73, 75, 78, 80, 85, 87, 92, 94, 96, 99, 102, 104, 107, 109, 112, 114, 119, 121, 122, 123, 125, 128, 132, 137, 138, 140, 144, 145, 147, 150, 152, 157, 162, 165, 167, 169, 171, 174, 176, 181, 183, 184, 187, 189, 191, 194, 196, 197, 199, 201, 204, 206, 209, 210, 213, 215, 217, 220, 222, 224, 226, 228, 233, 236, 238, 241, 243, 245, 246, 248, 250, 252, 253, 257, 259, 262, 264, 269, 270, 271, 275, 277, 279, 283, 285, 287, 289, 290, 292, 294, 296, 298, 300, 302, 305, 308, 310, 313, 315, 318, 320, 325, 327, 332, 334, 336, 339, 342, 344, 347, 349, 352, 354, 359, 361, 366], "returns": [57, 91, 168, 195, 225, 297, 331, 365], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 8, 11, 14, 17, 20, 55, 89, 142, 153, 155, 177, 179, 207, 230, 265, 267, 329, 363], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "HRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IW"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClass"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "HRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemCl"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObjec"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "HRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemCla"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject"}, {"node_id": 299, "universal_type": "function", "name": "unknown", "text_snippet": "HRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in,"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemCl"}, {"node_id": 333, "universal_type": "function", "name": "unknown", "text_snippet": "HRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObjec"}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out "}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <stdarg.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"windef.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"winbase.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"wbemcli.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"wine/debug.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"wbemprox_private.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/*\n * SystemRestore implementation\n *\n * Copyright 2020 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this library; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\n */\n\n#define COBJMACROS\n\n#include <stdarg.h>\n\n#include \"windef.h\"\n#include \"winbase.h\"\n#include \"wbemcli.h\"\n\n#include \"wine/debug.h\"\n#include \"wbemprox_private.h\"\n\nWINE_DEFAULT_DEBUG_CHANNEL(wbemprox);\n\nHRESULT create_restore_point( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}\n\nHRESULT disable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}\n\nHRESULT enable_restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n VARIANT drive, retval;\n IWbemClassObject *sig, *out_params = NULL;\n HRESULT hr;\n\n TRACE(\"%p, %p\\n\", in, out);\n\n hr = IWbemClassObject_Get( in, L\"Drive\", 0, &drive, NULL, NULL );\n if (hr != S_OK) return hr;\n\n hr = create_signature( WBEMPROX_NAMESPACE_CIMV2, L\"SystemRestore\", L\"Enable\", PARAM_OUT, &sig );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n return hr;\n }\n\n if (out)\n {\n hr = IWbemClassObject_SpawnInstance( sig, 0, &out_params );\n if (hr != S_OK)\n {\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n return hr;\n }\n }\n\n FIXME(\"%s: stub\\n\", wine_dbgstr_variant(&drive));\n\n VariantClear( &drive );\n IWbemClassObject_Release( sig );\n\n if (out_params)\n {\n set_variant( VT_UI4, ERROR_SUCCESS, NULL, &retval );\n hr = IWbemClassObject_Put( out_params, L\"ReturnValue\", 0, &retval, CIM_UINT32 );\n }\n\n if (hr == S_OK && out)\n {\n *out = out_params;\n IWbemClassObject_AddRef( out_params );\n }\n if (out_params) IWbemClassObject_Release( out_params );\n\n return hr;\n}\n\nHRESULT get_last_restore_status( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return E_NOTIMPL;\n}\n\nHRESULT restore( IWbemClassObject *obj, IWbemContext *context, IWbemClassObject *in, IWbemClassObject **out )\n{\n FIXME(\"stub\\n\");\n return S_OK;\n}\n"}
176
c
#ifndef REACTDUINO_ISR_H_ #define REACTDUINO_ISR_H_ #include "Reactduino.h" #define INVALID_ISR -1 int8_t react_isr_alloc(void); react_callback react_isr_get(int8_t isr); bool react_isr_check(int8_t isr); void react_isr_free(int8_t isr); #endif
26.22
9
(translation_unit) "#ifndef REACTDUINO_ISR_H_\n#define REACTDUINO_ISR_H_\n\n#include "Reactduino.h"\n\n#define INVALID_ISR -1\n\nint8_t react_isr_alloc(void);\nreact_callback react_isr_get(int8_t isr);\nbool react_isr_check(int8_t isr);\nvoid react_isr_free(int8_t isr);\n\n#endif\n" (preproc_ifdef) "#ifndef REACTDUINO_ISR_H_\n#define REACTDUINO_ISR_H_\n\n#include "Reactduino.h"\n\n#define INVALID_ISR -1\n\nint8_t react_isr_alloc(void);\nreact_callback react_isr_get(int8_t isr);\nbool react_isr_check(int8_t isr);\nvoid react_isr_free(int8_t isr);\n\n#endif" (#ifndef) "#ifndef" (identifier) "REACTDUINO_ISR_H_" (preproc_def) "#define REACTDUINO_ISR_H_\n" (#define) "#define" (identifier) "REACTDUINO_ISR_H_" (preproc_include) "#include "Reactduino.h"\n" (#include) "#include" (string_literal) ""Reactduino.h"" (") """ (string_content) "Reactduino.h" (") """ (preproc_def) "#define INVALID_ISR -1\n" (#define) "#define" (identifier) "INVALID_ISR" (preproc_arg) "-1" (declaration) "int8_t react_isr_alloc(void);" (primitive_type) "int8_t" (function_declarator) "react_isr_alloc(void)" (identifier) "react_isr_alloc" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "react_callback react_isr_get(int8_t isr);" (type_identifier) "react_callback" (function_declarator) "react_isr_get(int8_t isr)" (identifier) "react_isr_get" (parameter_list) "(int8_t isr)" (() "(" (parameter_declaration) "int8_t isr" (primitive_type) "int8_t" (identifier) "isr" ()) ")" (;) ";" (declaration) "bool react_isr_check(int8_t isr);" (primitive_type) "bool" (function_declarator) "react_isr_check(int8_t isr)" (identifier) "react_isr_check" (parameter_list) "(int8_t isr)" (() "(" (parameter_declaration) "int8_t isr" (primitive_type) "int8_t" (identifier) "isr" ()) ")" (;) ";" (declaration) "void react_isr_free(int8_t isr);" (primitive_type) "void" (function_declarator) "react_isr_free(int8_t isr)" (identifier) "react_isr_free" (parameter_list) "(int8_t isr)" (() "(" (parameter_declaration) "int8_t isr" (primitive_type) "int8_t" (identifier) "isr" ()) ")" (;) ";" (#endif) "#endif"
61
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.22, "nodes": 45, "errors": 0, "source_hash": "dd0366cc56a7c815b449f1cbe709514eb41c12208e3db7108800487bf2bdfd6c", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef REACTDUINO_ISR_H_\n#define REACTDUINO_ISR_H_\n\n#include \"Reactduino.h\"\n\n#define INVALID_ISR -1\n\nint8_t react_isr_alloc(void);\nreact_callback react_isr_get(int8_t isr);\nbool react_isr_check(int8_t isr);\nvoid react_isr_free(int8_t isr);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 20, 28, 36, 44], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "REACTDUINO_ISR_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define REACTDUINO_ISR_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": "REACTDUINO_ISR_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"Reactduino.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": "\"Reactduino.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 23}}, {"id": 9, "type": "preproc_def", "text": "#define INVALID_ISR -1\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "INVALID_ISR", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 19}}, {"id": 12, "type": "preproc_arg", "text": "-1", "parent": 9, "children": [], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 22}}, {"id": 13, "type": "declaration", "text": "int8_t react_isr_alloc(void);", "parent": 0, "children": [14, 15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 29}}, {"id": 14, "type": "primitive_type", "text": "int8_t", "parent": 13, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 15, "type": "function_declarator", "text": "react_isr_alloc(void)", "parent": 13, "children": [16, 17], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 28}}, {"id": 16, "type": "identifier", "text": "react_isr_alloc", "parent": 15, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 22}}, {"id": 17, "type": "parameter_list", "text": "(void)", "parent": 15, "children": [18], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 28}}, {"id": 18, "type": "parameter_declaration", "text": "void", "parent": 17, "children": [19], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 20, "type": "declaration", "text": "react_callback react_isr_get(int8_t isr);", "parent": 0, "children": [21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 41}}, {"id": 21, "type": "type_identifier", "text": "react_callback", "parent": 20, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 14}}, {"id": 22, "type": "function_declarator", "text": "react_isr_get(int8_t isr)", "parent": 20, "children": [23, 24], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 40}}, {"id": 23, "type": "identifier", "text": "react_isr_get", "parent": 22, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 28}}, {"id": 24, "type": "parameter_list", "text": "(int8_t isr)", "parent": 22, "children": [25], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 40}}, {"id": 25, "type": "parameter_declaration", "text": "int8_t isr", "parent": 24, "children": [26, 27], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 39}}, {"id": 26, "type": "primitive_type", "text": "int8_t", "parent": 25, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 35}}, {"id": 27, "type": "identifier", "text": "isr", "parent": 25, "children": [], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 39}}, {"id": 28, "type": "declaration", "text": "bool react_isr_check(int8_t isr);", "parent": 0, "children": [29, 30], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 33}}, {"id": 29, "type": "primitive_type", "text": "bool", "parent": 28, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 30, "type": "function_declarator", "text": "react_isr_check(int8_t isr)", "parent": 28, "children": [31, 32], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 32}}, {"id": 31, "type": "identifier", "text": "react_isr_check", "parent": 30, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 20}}, {"id": 32, "type": "parameter_list", "text": "(int8_t isr)", "parent": 30, "children": [33], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 32}}, {"id": 33, "type": "parameter_declaration", "text": "int8_t isr", "parent": 32, "children": [34, 35], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 31}}, {"id": 34, "type": "primitive_type", "text": "int8_t", "parent": 33, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 27}}, {"id": 35, "type": "identifier", "text": "isr", "parent": 33, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 31}}, {"id": 36, "type": "declaration", "text": "void react_isr_free(int8_t isr);", "parent": 0, "children": [37, 38], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 32}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 38, "type": "function_declarator", "text": "react_isr_free(int8_t isr)", "parent": 36, "children": [39, 40], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 31}}, {"id": 39, "type": "identifier", "text": "react_isr_free", "parent": 38, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 19}}, {"id": 40, "type": "parameter_list", "text": "(int8_t isr)", "parent": 38, "children": [41], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 31}}, {"id": 41, "type": "parameter_declaration", "text": "int8_t isr", "parent": 40, "children": [42, 43], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 30}}, {"id": 42, "type": "primitive_type", "text": "int8_t", "parent": 41, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 26}}, {"id": 43, "type": "identifier", "text": "isr", "parent": 41, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 30}}, {"id": 44, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 22, 30, 38], "variables": [13, 18, 20, 25, 28, 33, 36, 41], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 16, 21, 23, 27, 31, 35, 39, 43, 44], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "react_isr_alloc(void)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "react_isr_get(int8_t isr)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "react_isr_check(int8_t isr)"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "react_isr_free(int8_t isr)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Reactduino.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef REACTDUINO_ISR_H_\n#define REACTDUINO_ISR_H_\n\n#include \"Reactduino.h\"\n\n#define INVALID_ISR -1\n\nint8_t react_isr_alloc(void);\nreact_callback react_isr_get(int8_t isr);\nbool react_isr_check(int8_t isr);\nvoid react_isr_free(int8_t isr);\n\n#endif\n"}
177
c
/* **************************************************************** * * Copyright 2018 Samsung Electronics 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 EASYSETUP_ENROLLEE_H #define EASYSETUP_ENROLLEE_H #include "es_enrollee_common.h" /** * @file * * This file contains Enrollee APIs. */ #ifdef __cplusplus extern "C" { #endif // __cplusplus /** * A function pointer for registering a user-defined function to set * user-specific properties to a * response going back to a client. * @param payload Represents a response. You can set a specific value with * specific property key * to the payload. If a client receives the response and know the property key, * then it can * extract the value. * @param resource_type Used to distinguish which resource the received property * belongs to. */ typedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type); /** * A function pointer for registering a user-defined function to parse * user-specific properties * from received POST request. * @param payload Represents a received POST request. If you know user-specific * property key, * then you can extract a corresponding value if it exists. * @param resource_type Used to distinguish which resource the received property * belongs to * @param user_data User-specific data you want to deliver to desired users, * i.e. * application. * The user should know a data structure of passed userdata. */ typedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type, void **user_data); /** * A callback function to clean up user data created in es_wifi_conf_data, * es_dev_conf_data and es_coap_cloud_conf_data. * * @param user_data User-specific data free up it's memory. * @param resource_type Used to distinguish which resource user data * beongs to. */ typedef void (*es_free_userdata)(void *user_data, char *resource_type); /** * This function initializes the EasySetup. This API must be called prior to * invoking any other API. * * @param is_secured True if the Enrollee is operating in secured mode. * @param resource_mask Easy Setup Resource Type which application wants to * create. * ES_WIFICONF_RESOURCE = 0x01, * ES_COAPCLOUDCONF_RESOURCE = 0x02, * ES_DEVCONF_RESOURCE = 0x04 * @param callbacks ESProvisioningCallbacks for updating Easy setup * Resources' data to the * application * @return ::ES_OK on success, some other value upon failure. */ es_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask, es_provisioning_callbacks_s callbacks); /** * This function sets Device information. * * @param device_property Contains device information composed of WiFiConf * Structure & DevConf * Structure * @return ::ES_OK on success, some other value upon failure. * * @see es_device_property */ es_result_e es_set_device_property(es_device_property *device_property); /** * This function sets Enrollee's State. * * @param es_state Contains current enrollee's state. * @return ::ES_OK on success, some other value upon failure. * * @see es_enrollee_state */ es_result_e es_set_state(es_enrollee_state es_state); /** * This function gets Enrollee's State. * * @return ::es_enrollee_state * * @see es_enrollee_state */ es_enrollee_state es_get_state(void); /** * This function Sets Enrollee's Error Code. * * @param es_err_code Contains Enrollee's error code. * @return ::ES_OK on success, some other value upon failure. * * @see es_error_code_e */ es_result_e es_set_error_code(es_error_code es_err_code); /** * This function performs termination of all Easy Setup Resources. * * @return ::ES_OK on success, some other value upon failure. */ es_result_e es_terminate_enrollee(void); /** * This function is to set two function pointer to handle user-specific * properties in in-comming * POST request and to out-going response for GET or POST request. * If you register certain functions with this API, you have to handle oc_rep_t * structure to * set and get properties you want. * * @param readcb a callback for parsing properties from POST request * @param writecb a callback for putting properties to a response to be sent * @param free_userdata callback to free allocated memory of user data in * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data. * * @return ::ES_OK on success, some other value upon failure. * * @see es_read_userdata_cb * @see es_write_userdata_cb */ es_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb, es_write_userdata_cb writecb, es_free_userdata free_userdata); #ifdef __cplusplus } #endif // __cplusplus #endif /* EASYSETUP_ENROLLEE_H */
35.76
151
(translation_unit) "/* ****************************************************************\n *\n * Copyright 2018 Samsung Electronics 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\n#ifndef EASYSETUP_ENROLLEE_H\n#define EASYSETUP_ENROLLEE_H\n\n#include "es_enrollee_common.h"\n\n/**\n * @file\n *\n * This file contains Enrollee APIs.\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif // __cplusplus\n\n#endif /* EASYSETUP_ENROLLEE_H */\n" (comment) "/* ****************************************************************\n *\n * Copyright 2018 Samsung Electronics 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 ******************************************************************/" (preproc_ifdef) "#ifndef EASYSETUP_ENROLLEE_H\n#define EASYSETUP_ENROLLEE_H\n\n#include "es_enrollee_common.h"\n\n/**\n * @file\n *\n * This file contains Enrollee APIs.\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif // __cplusplus\n\n#endif" (#ifndef) "#ifndef" (identifier) "EASYSETUP_ENROLLEE_H" (preproc_def) "#define EASYSETUP_ENROLLEE_H\n" (#define) "#define" (identifier) "EASYSETUP_ENROLLEE_H" (preproc_include) "#include "es_enrollee_common.h"\n" (#include) "#include" (string_literal) ""es_enrollee_common.h"" (") """ (string_content) "es_enrollee_common.h" (") """ (comment) "/**\n * @file\n *\n * This file contains Enrollee APIs.\n */" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif // __cplusplus\n" (preproc_directive) "#endif" (comment) "// __cplusplus" (comment) "/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */" (type_definition) "typedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type)" (parenthesized_declarator) "(*es_write_userdata_cb)" (() "(" (pointer_declarator) "*es_write_userdata_cb" (*) "*" (type_identifier) "es_write_userdata_cb" ()) ")" (parameter_list) "(oc_rep_t *payload, char *resource_type)" (() "(" (parameter_declaration) "oc_rep_t *payload" (type_identifier) "oc_rep_t" (pointer_declarator) "*payload" (*) "*" (identifier) "payload" (,) "," (parameter_declaration) "char *resource_type" (primitive_type) "char" (pointer_declarator) "*resource_type" (*) "*" (identifier) "resource_type" ()) ")" (;) ";" (comment) "/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */" (type_definition) "typedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data)" (parenthesized_declarator) "(*es_read_userdata_cb)" (() "(" (pointer_declarator) "*es_read_userdata_cb" (*) "*" (type_identifier) "es_read_userdata_cb" ()) ")" (parameter_list) "(oc_rep_t *payload, char *resource_type,\n void **user_data)" (() "(" (parameter_declaration) "oc_rep_t *payload" (type_identifier) "oc_rep_t" (pointer_declarator) "*payload" (*) "*" (identifier) "payload" (,) "," (parameter_declaration) "char *resource_type" (primitive_type) "char" (pointer_declarator) "*resource_type" (*) "*" (identifier) "resource_type" (,) "," (parameter_declaration) "void **user_data" (primitive_type) "void" (pointer_declarator) "**user_data" (*) "*" (pointer_declarator) "*user_data" (*) "*" (identifier) "user_data" ()) ")" (;) ";" (comment) "/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */" (type_definition) "typedef void (*es_free_userdata)(void *user_data, char *resource_type);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*es_free_userdata)(void *user_data, char *resource_type)" (parenthesized_declarator) "(*es_free_userdata)" (() "(" (pointer_declarator) "*es_free_userdata" (*) "*" (type_identifier) "es_free_userdata" ()) ")" (parameter_list) "(void *user_data, char *resource_type)" (() "(" (parameter_declaration) "void *user_data" (primitive_type) "void" (pointer_declarator) "*user_data" (*) "*" (identifier) "user_data" (,) "," (parameter_declaration) "char *resource_type" (primitive_type) "char" (pointer_declarator) "*resource_type" (*) "*" (identifier) "resource_type" ()) ")" (;) ";" (comment) "/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */" (declaration) "es_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);" (type_identifier) "es_result_e" (function_declarator) "es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks)" (identifier) "es_init_enrollee" (parameter_list) "(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks)" (() "(" (parameter_declaration) "bool is_secured" (primitive_type) "bool" (identifier) "is_secured" (,) "," (parameter_declaration) "es_resource_mask_e resource_mask" (type_identifier) "es_resource_mask_e" (identifier) "resource_mask" (,) "," (parameter_declaration) "es_provisioning_callbacks_s callbacks" (type_identifier) "es_provisioning_callbacks_s" (identifier) "callbacks" ()) ")" (;) ";" (comment) "/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */" (declaration) "es_result_e es_set_device_property(es_device_property *device_property);" (type_identifier) "es_result_e" (function_declarator) "es_set_device_property(es_device_property *device_property)" (identifier) "es_set_device_property" (parameter_list) "(es_device_property *device_property)" (() "(" (parameter_declaration) "es_device_property *device_property" (type_identifier) "es_device_property" (pointer_declarator) "*device_property" (*) "*" (identifier) "device_property" ()) ")" (;) ";" (comment) "/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */" (declaration) "es_result_e es_set_state(es_enrollee_state es_state);" (type_identifier) "es_result_e" (function_declarator) "es_set_state(es_enrollee_state es_state)" (identifier) "es_set_state" (parameter_list) "(es_enrollee_state es_state)" (() "(" (parameter_declaration) "es_enrollee_state es_state" (type_identifier) "es_enrollee_state" (identifier) "es_state" ()) ")" (;) ";" (comment) "/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */" (declaration) "es_enrollee_state es_get_state(void);" (type_identifier) "es_enrollee_state" (function_declarator) "es_get_state(void)" (identifier) "es_get_state" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */" (declaration) "es_result_e es_set_error_code(es_error_code es_err_code);" (type_identifier) "es_result_e" (function_declarator) "es_set_error_code(es_error_code es_err_code)" (identifier) "es_set_error_code" (parameter_list) "(es_error_code es_err_code)" (() "(" (parameter_declaration) "es_error_code es_err_code" (type_identifier) "es_error_code" (identifier) "es_err_code" ()) ")" (;) ";" (comment) "/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */" (declaration) "es_result_e es_terminate_enrollee(void);" (type_identifier) "es_result_e" (function_declarator) "es_terminate_enrollee(void)" (identifier) "es_terminate_enrollee" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */" (declaration) "es_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);" (type_identifier) "es_result_e" (function_declarator) "es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata)" (identifier) "es_set_callback_for_userdata" (parameter_list) "(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata)" (() "(" (parameter_declaration) "es_read_userdata_cb readcb" (type_identifier) "es_read_userdata_cb" (identifier) "readcb" (,) "," (parameter_declaration) "es_write_userdata_cb writecb" (type_identifier) "es_write_userdata_cb" (identifier) "writecb" (,) "," (parameter_declaration) "es_free_userdata free_userdata" (type_identifier) "es_free_userdata" (identifier) "free_userdata" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (comment) "// __cplusplus" (#endif) "#endif" (comment) "/* EASYSETUP_ENROLLEE_H */"
224
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 35.76, "nodes": 155, "errors": 0, "source_hash": "145adb7b12ef830c74d7bdbb448cf29922b46018804d655e941611802c83ff50", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EASYSETUP_ENROLLEE_H\n#define EASYSETUP_ENROLLEE_H\n\n#include \"es_enrollee_common.h\"\n\n/**\n * @file\n *\n * This file contains Enrollee APIs.\n */\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif // __cplusplus\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 154], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 166, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 2, "type": "identifier", "text": "EASYSETUP_ENROLLEE_H", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define EASYSETUP_ENROLLEE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 5, "type": "identifier", "text": "EASYSETUP_ENROLLEE_H", "parent": 3, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"es_enrollee_common.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"es_enrollee_common.h\"", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 31}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [10, 11, 12, 153], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 164, "column": 6}}, {"id": 10, "type": "#ifdef", "text": "#ifdef", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 11, "type": "identifier", "text": "__cplusplus", "parent": 9, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 18}}, {"id": 12, "type": "linkage_specification", "text": "extern \"C\" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 163, "column": 1}}, {"id": 13, "type": "extern", "text": "extern", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 14, "type": "string_literal", "text": "\"C\"", "parent": 12, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 10}}, {"id": 15, "type": "preproc_call", "text": "#endif // __cplusplus\n", "parent": 12, "children": [16], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#endif", "parent": 15, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 17, "type": "type_definition", "text": "typedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);", "parent": 12, "children": [18, 19, 20], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 77}}, {"id": 18, "type": "typedef", "text": "typedef", "parent": 17, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 12}}, {"id": 20, "type": "function_declarator", "text": "(*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type)", "parent": 17, "children": [21, 25], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 76}}, {"id": 21, "type": "parenthesized_declarator", "text": "(*es_write_userdata_cb)", "parent": 20, "children": [22], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 36}}, {"id": 22, "type": "pointer_declarator", "text": "*es_write_userdata_cb", "parent": 21, "children": [23, 24], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 35}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 24, "type": "type_identifier", "text": "es_write_userdata_cb", "parent": 22, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 35}}, {"id": 25, "type": "parameter_list", "text": "(oc_rep_t *payload, char *resource_type)", "parent": 20, "children": [26, 31], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 76}}, {"id": 26, "type": "parameter_declaration", "text": "oc_rep_t *payload", "parent": 25, "children": [27, 28], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 54}}, {"id": 27, "type": "type_identifier", "text": "oc_rep_t", "parent": 26, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 45}}, {"id": 28, "type": "pointer_declarator", "text": "*payload", "parent": 26, "children": [29, 30], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 54}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 47}}, {"id": 30, "type": "identifier", "text": "payload", "parent": 28, "children": [], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 54}}, {"id": 31, "type": "parameter_declaration", "text": "char *resource_type", "parent": 25, "children": [32, 33], "start_point": {"row": 45, "column": 56}, "end_point": {"row": 45, "column": 75}}, {"id": 32, "type": "primitive_type", "text": "char", "parent": 31, "children": [], "start_point": {"row": 45, "column": 56}, "end_point": {"row": 45, "column": 60}}, {"id": 33, "type": "pointer_declarator", "text": "*resource_type", "parent": 31, "children": [34, 35], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 75}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 62}}, {"id": 35, "type": "identifier", "text": "resource_type", "parent": 33, "children": [], "start_point": {"row": 45, "column": 62}, "end_point": {"row": 45, "column": 75}}, {"id": 36, "type": "type_definition", "text": "typedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);", "parent": 12, "children": [37, 38, 39], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 54}}, {"id": 37, "type": "typedef", "text": "typedef", "parent": 36, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 12}}, {"id": 39, "type": "function_declarator", "text": "(*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data)", "parent": 36, "children": [40, 44], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 62, "column": 53}}, {"id": 40, "type": "parenthesized_declarator", "text": "(*es_read_userdata_cb)", "parent": 39, "children": [41], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 35}}, {"id": 41, "type": "pointer_declarator", "text": "*es_read_userdata_cb", "parent": 40, "children": [42, 43], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 34}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 43, "type": "type_identifier", "text": "es_read_userdata_cb", "parent": 41, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 34}}, {"id": 44, "type": "parameter_list", "text": "(oc_rep_t *payload, char *resource_type,\n void **user_data)", "parent": 39, "children": [45, 50, 55], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 62, "column": 53}}, {"id": 45, "type": "parameter_declaration", "text": "oc_rep_t *payload", "parent": 44, "children": [46, 47], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 53}}, {"id": 46, "type": "type_identifier", "text": "oc_rep_t", "parent": 45, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 44}}, {"id": 47, "type": "pointer_declarator", "text": "*payload", "parent": 45, "children": [48, 49], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 53}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 46}}, {"id": 49, "type": "identifier", "text": "payload", "parent": 47, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 53}}, {"id": 50, "type": "parameter_declaration", "text": "char *resource_type", "parent": 44, "children": [51, 52], "start_point": {"row": 61, "column": 55}, "end_point": {"row": 61, "column": 74}}, {"id": 51, "type": "primitive_type", "text": "char", "parent": 50, "children": [], "start_point": {"row": 61, "column": 55}, "end_point": {"row": 61, "column": 59}}, {"id": 52, "type": "pointer_declarator", "text": "*resource_type", "parent": 50, "children": [53, 54], "start_point": {"row": 61, "column": 60}, "end_point": {"row": 61, "column": 74}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 61, "column": 60}, "end_point": {"row": 61, "column": 61}}, {"id": 54, "type": "identifier", "text": "resource_type", "parent": 52, "children": [], "start_point": {"row": 61, "column": 61}, "end_point": {"row": 61, "column": 74}}, {"id": 55, "type": "parameter_declaration", "text": "void **user_data", "parent": 44, "children": [56, 57], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 52}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 40}}, {"id": 57, "type": "pointer_declarator", "text": "**user_data", "parent": 55, "children": [58, 59], "start_point": {"row": 62, "column": 41}, "end_point": {"row": 62, "column": 52}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 62, "column": 41}, "end_point": {"row": 62, "column": 42}}, {"id": 59, "type": "pointer_declarator", "text": "*user_data", "parent": 57, "children": [60, 61], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 52}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 43}}, {"id": 61, "type": "identifier", "text": "user_data", "parent": 59, "children": [], "start_point": {"row": 62, "column": 43}, "end_point": {"row": 62, "column": 52}}, {"id": 62, "type": "type_definition", "text": "typedef void (*es_free_userdata)(void *user_data, char *resource_type);", "parent": 12, "children": [63, 64, 65], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 71}}, {"id": 63, "type": "typedef", "text": "typedef", "parent": 62, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 64, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 12}}, {"id": 65, "type": "function_declarator", "text": "(*es_free_userdata)(void *user_data, char *resource_type)", "parent": 62, "children": [66, 70], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 70}}, {"id": 66, "type": "parenthesized_declarator", "text": "(*es_free_userdata)", "parent": 65, "children": [67], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 32}}, {"id": 67, "type": "pointer_declarator", "text": "*es_free_userdata", "parent": 66, "children": [68, 69], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 31}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 69, "type": "type_identifier", "text": "es_free_userdata", "parent": 67, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 31}}, {"id": 70, "type": "parameter_list", "text": "(void *user_data, char *resource_type)", "parent": 65, "children": [71, 76], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 70}}, {"id": 71, "type": "parameter_declaration", "text": "void *user_data", "parent": 70, "children": [72, 73], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 48}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 37}}, {"id": 73, "type": "pointer_declarator", "text": "*user_data", "parent": 71, "children": [74, 75], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 48}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 39}}, {"id": 75, "type": "identifier", "text": "user_data", "parent": 73, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 48}}, {"id": 76, "type": "parameter_declaration", "text": "char *resource_type", "parent": 70, "children": [77, 78], "start_point": {"row": 72, "column": 50}, "end_point": {"row": 72, "column": 69}}, {"id": 77, "type": "primitive_type", "text": "char", "parent": 76, "children": [], "start_point": {"row": 72, "column": 50}, "end_point": {"row": 72, "column": 54}}, {"id": 78, "type": "pointer_declarator", "text": "*resource_type", "parent": 76, "children": [79, 80], "start_point": {"row": 72, "column": 55}, "end_point": {"row": 72, "column": 69}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 72, "column": 55}, "end_point": {"row": 72, "column": 56}}, {"id": 80, "type": "identifier", "text": "resource_type", "parent": 78, "children": [], "start_point": {"row": 72, "column": 56}, "end_point": {"row": 72, "column": 69}}, {"id": 81, "type": "declaration", "text": "es_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);", "parent": 12, "children": [82, 83], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 90, "column": 68}}, {"id": 82, "type": "type_identifier", "text": "es_result_e", "parent": 81, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 11}}, {"id": 83, "type": "function_declarator", "text": "es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks)", "parent": 81, "children": [84, 85], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 90, "column": 67}}, {"id": 84, "type": "identifier", "text": "es_init_enrollee", "parent": 83, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 28}}, {"id": 85, "type": "parameter_list", "text": "(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks)", "parent": 83, "children": [86, 89, 92], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 90, "column": 67}}, {"id": 86, "type": "parameter_declaration", "text": "bool is_secured", "parent": 85, "children": [87, 88], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 44}}, {"id": 87, "type": "primitive_type", "text": "bool", "parent": 86, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 33}}, {"id": 88, "type": "identifier", "text": "is_secured", "parent": 86, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 44}}, {"id": 89, "type": "parameter_declaration", "text": "es_resource_mask_e resource_mask", "parent": 85, "children": [90, 91], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 78}}, {"id": 90, "type": "type_identifier", "text": "es_resource_mask_e", "parent": 89, "children": [], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 64}}, {"id": 91, "type": "identifier", "text": "resource_mask", "parent": 89, "children": [], "start_point": {"row": 89, "column": 65}, "end_point": {"row": 89, "column": 78}}, {"id": 92, "type": "parameter_declaration", "text": "es_provisioning_callbacks_s callbacks", "parent": 85, "children": [93, 94], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 66}}, {"id": 93, "type": "type_identifier", "text": "es_provisioning_callbacks_s", "parent": 92, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 56}}, {"id": 94, "type": "identifier", "text": "callbacks", "parent": 92, "children": [], "start_point": {"row": 90, "column": 57}, "end_point": {"row": 90, "column": 66}}, {"id": 95, "type": "declaration", "text": "es_result_e es_set_device_property(es_device_property *device_property);", "parent": 12, "children": [96, 97], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 72}}, {"id": 96, "type": "type_identifier", "text": "es_result_e", "parent": 95, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 11}}, {"id": 97, "type": "function_declarator", "text": "es_set_device_property(es_device_property *device_property)", "parent": 95, "children": [98, 99], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 71}}, {"id": 98, "type": "identifier", "text": "es_set_device_property", "parent": 97, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 34}}, {"id": 99, "type": "parameter_list", "text": "(es_device_property *device_property)", "parent": 97, "children": [100], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 71}}, {"id": 100, "type": "parameter_declaration", "text": "es_device_property *device_property", "parent": 99, "children": [101, 102], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 70}}, {"id": 101, "type": "type_identifier", "text": "es_device_property", "parent": 100, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 53}}, {"id": 102, "type": "pointer_declarator", "text": "*device_property", "parent": 100, "children": [103, 104], "start_point": {"row": 102, "column": 54}, "end_point": {"row": 102, "column": 70}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 102, "column": 54}, "end_point": {"row": 102, "column": 55}}, {"id": 104, "type": "identifier", "text": "device_property", "parent": 102, "children": [], "start_point": {"row": 102, "column": 55}, "end_point": {"row": 102, "column": 70}}, {"id": 105, "type": "declaration", "text": "es_result_e es_set_state(es_enrollee_state es_state);", "parent": 12, "children": [106, 107], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 53}}, {"id": 106, "type": "type_identifier", "text": "es_result_e", "parent": 105, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 11}}, {"id": 107, "type": "function_declarator", "text": "es_set_state(es_enrollee_state es_state)", "parent": 105, "children": [108, 109], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 52}}, {"id": 108, "type": "identifier", "text": "es_set_state", "parent": 107, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 24}}, {"id": 109, "type": "parameter_list", "text": "(es_enrollee_state es_state)", "parent": 107, "children": [110], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 52}}, {"id": 110, "type": "parameter_declaration", "text": "es_enrollee_state es_state", "parent": 109, "children": [111, 112], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 51}}, {"id": 111, "type": "type_identifier", "text": "es_enrollee_state", "parent": 110, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 42}}, {"id": 112, "type": "identifier", "text": "es_state", "parent": 110, "children": [], "start_point": {"row": 112, "column": 43}, "end_point": {"row": 112, "column": 51}}, {"id": 113, "type": "declaration", "text": "es_enrollee_state es_get_state(void);", "parent": 12, "children": [114, 115], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 37}}, {"id": 114, "type": "type_identifier", "text": "es_enrollee_state", "parent": 113, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 17}}, {"id": 115, "type": "function_declarator", "text": "es_get_state(void)", "parent": 113, "children": [116, 117], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 36}}, {"id": 116, "type": "identifier", "text": "es_get_state", "parent": 115, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 30}}, {"id": 117, "type": "parameter_list", "text": "(void)", "parent": 115, "children": [118], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 36}}, {"id": 118, "type": "parameter_declaration", "text": "void", "parent": 117, "children": [119], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 35}}, {"id": 119, "type": "primitive_type", "text": "void", "parent": 118, "children": [], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 35}}, {"id": 120, "type": "declaration", "text": "es_result_e es_set_error_code(es_error_code es_err_code);", "parent": 12, "children": [121, 122], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 57}}, {"id": 121, "type": "type_identifier", "text": "es_result_e", "parent": 120, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 11}}, {"id": 122, "type": "function_declarator", "text": "es_set_error_code(es_error_code es_err_code)", "parent": 120, "children": [123, 124], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 56}}, {"id": 123, "type": "identifier", "text": "es_set_error_code", "parent": 122, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 29}}, {"id": 124, "type": "parameter_list", "text": "(es_error_code es_err_code)", "parent": 122, "children": [125], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 56}}, {"id": 125, "type": "parameter_declaration", "text": "es_error_code es_err_code", "parent": 124, "children": [126, 127], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 55}}, {"id": 126, "type": "type_identifier", "text": "es_error_code", "parent": 125, "children": [], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 43}}, {"id": 127, "type": "identifier", "text": "es_err_code", "parent": 125, "children": [], "start_point": {"row": 131, "column": 44}, "end_point": {"row": 131, "column": 55}}, {"id": 128, "type": "declaration", "text": "es_result_e es_terminate_enrollee(void);", "parent": 12, "children": [129, 130], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 40}}, {"id": 129, "type": "type_identifier", "text": "es_result_e", "parent": 128, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 11}}, {"id": 130, "type": "function_declarator", "text": "es_terminate_enrollee(void)", "parent": 128, "children": [131, 132], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 39}}, {"id": 131, "type": "identifier", "text": "es_terminate_enrollee", "parent": 130, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 33}}, {"id": 132, "type": "parameter_list", "text": "(void)", "parent": 130, "children": [133], "start_point": {"row": 138, "column": 33}, "end_point": {"row": 138, "column": 39}}, {"id": 133, "type": "parameter_declaration", "text": "void", "parent": 132, "children": [134], "start_point": {"row": 138, "column": 34}, "end_point": {"row": 138, "column": 38}}, {"id": 134, "type": "primitive_type", "text": "void", "parent": 133, "children": [], "start_point": {"row": 138, "column": 34}, "end_point": {"row": 138, "column": 38}}, {"id": 135, "type": "declaration", "text": "es_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);", "parent": 12, "children": [136, 137], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 160, "column": 73}}, {"id": 136, "type": "type_identifier", "text": "es_result_e", "parent": 135, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 11}}, {"id": 137, "type": "function_declarator", "text": "es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata)", "parent": 135, "children": [138, 139], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 160, "column": 72}}, {"id": 138, "type": "identifier", "text": "es_set_callback_for_userdata", "parent": 137, "children": [], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 40}}, {"id": 139, "type": "parameter_list", "text": "(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata)", "parent": 137, "children": [140, 143, 146], "start_point": {"row": 158, "column": 40}, "end_point": {"row": 160, "column": 72}}, {"id": 140, "type": "parameter_declaration", "text": "es_read_userdata_cb readcb", "parent": 139, "children": [141, 142], "start_point": {"row": 158, "column": 41}, "end_point": {"row": 158, "column": 67}}, {"id": 141, "type": "type_identifier", "text": "es_read_userdata_cb", "parent": 140, "children": [], "start_point": {"row": 158, "column": 41}, "end_point": {"row": 158, "column": 60}}, {"id": 142, "type": "identifier", "text": "readcb", "parent": 140, "children": [], "start_point": {"row": 158, "column": 61}, "end_point": {"row": 158, "column": 67}}, {"id": 143, "type": "parameter_declaration", "text": "es_write_userdata_cb writecb", "parent": 139, "children": [144, 145], "start_point": {"row": 159, "column": 41}, "end_point": {"row": 159, "column": 69}}, {"id": 144, "type": "type_identifier", "text": "es_write_userdata_cb", "parent": 143, "children": [], "start_point": {"row": 159, "column": 41}, "end_point": {"row": 159, "column": 61}}, {"id": 145, "type": "identifier", "text": "writecb", "parent": 143, "children": [], "start_point": {"row": 159, "column": 62}, "end_point": {"row": 159, "column": 69}}, {"id": 146, "type": "parameter_declaration", "text": "es_free_userdata free_userdata", "parent": 139, "children": [147, 148], "start_point": {"row": 160, "column": 41}, "end_point": {"row": 160, "column": 71}}, {"id": 147, "type": "type_identifier", "text": "es_free_userdata", "parent": 146, "children": [], "start_point": {"row": 160, "column": 41}, "end_point": {"row": 160, "column": 57}}, {"id": 148, "type": "identifier", "text": "free_userdata", "parent": 146, "children": [], "start_point": {"row": 160, "column": 58}, "end_point": {"row": 160, "column": 71}}, {"id": 149, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 12, "children": [150, 151, 152], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 18}}, {"id": 150, "type": "#ifdef", "text": "#ifdef", "parent": 149, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 6}}, {"id": 151, "type": "identifier", "text": "__cplusplus", "parent": 149, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 18}}, {"id": 152, "type": "#endif", "text": "", "parent": 149, "children": [], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 18}}, {"id": 153, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 6}}, {"id": 154, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20, 39, 65, 83, 97, 107, 115, 122, 130, 137], "variables": [17, 26, 31, 36, 45, 50, 55, 62, 71, 76, 81, 86, 89, 92, 95, 100, 105, 110, 113, 118, 120, 125, 128, 133, 135, 140, 143, 146], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 11, 12, 24, 27, 30, 35, 43, 46, 49, 54, 61, 69, 75, 80, 82, 84, 88, 90, 91, 93, 94, 96, 98, 101, 104, 106, 108, 111, 112, 114, 116, 121, 123, 126, 127, 129, 131, 136, 138, 141, 142, 144, 145, 147, 148, 149, 150, 151, 152, 153, 154], "returns": [], "exceptions": []}, "expressions": {"calls": [15], "literals": [8, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "(*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type)"}, {"node_id": 39, "universal_type": "function", "name": "**user_data)", "text_snippet": "(*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n v"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "(*es_free_userdata)(void *user_data, char *resource_type)"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "es_set_device_property(es_device_property *device_property)"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "es_set_state(es_enrollee_state es_state)"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "es_get_state(void)"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "es_set_error_code(es_error_code es_err_code)"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "es_terminate_enrollee(void)"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"es_enrollee_common.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* ****************************************************************\n *\n * Copyright 2018 Samsung Electronics 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\n#ifndef EASYSETUP_ENROLLEE_H\n#define EASYSETUP_ENROLLEE_H\n\n#include \"es_enrollee_common.h\"\n\n/**\n * @file\n *\n * This file contains Enrollee APIs.\n */\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif // __cplusplus\n\n/**\n * A function pointer for registering a user-defined function to set\n * user-specific properties to a\n * response going back to a client.\n * @param payload Represents a response. You can set a specific value with\n * specific property key\n * to the payload. If a client receives the response and know the property key,\n * then it can\n * extract the value.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to.\n */\ntypedef void (*es_write_userdata_cb)(oc_rep_t *payload, char *resource_type);\n\n/**\n * A function pointer for registering a user-defined function to parse\n * user-specific properties\n * from received POST request.\n * @param payload Represents a received POST request. If you know user-specific\n * property key,\n * then you can extract a corresponding value if it exists.\n * @param resource_type Used to distinguish which resource the received property\n * belongs to\n * @param user_data User-specific data you want to deliver to desired users,\n * i.e.\n * application.\n * The user should know a data structure of passed userdata.\n */\ntypedef void (*es_read_userdata_cb)(oc_rep_t *payload, char *resource_type,\n void **user_data);\n\n/**\n * A callback function to clean up user data created in es_wifi_conf_data,\n * es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @param user_data User-specific data free up it's memory.\n * @param resource_type Used to distinguish which resource user data\n * beongs to.\n */\ntypedef void (*es_free_userdata)(void *user_data, char *resource_type);\n\n/**\n * This function initializes the EasySetup. This API must be called prior to\n * invoking any other API.\n *\n * @param is_secured True if the Enrollee is operating in secured mode.\n * @param resource_mask Easy Setup Resource Type which application wants to\n * create.\n * ES_WIFICONF_RESOURCE = 0x01,\n * ES_COAPCLOUDCONF_RESOURCE = 0x02,\n * ES_DEVCONF_RESOURCE = 0x04\n * @param callbacks ESProvisioningCallbacks for updating Easy setup\n * Resources' data to the\n * application\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_init_enrollee(bool is_secured, es_resource_mask_e resource_mask,\n es_provisioning_callbacks_s callbacks);\n\n/**\n * This function sets Device information.\n *\n * @param device_property Contains device information composed of WiFiConf\n * Structure & DevConf\n * Structure\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_device_property\n */\nes_result_e es_set_device_property(es_device_property *device_property);\n\n/**\n * This function sets Enrollee's State.\n *\n * @param es_state Contains current enrollee's state.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_enrollee_state\n */\nes_result_e es_set_state(es_enrollee_state es_state);\n\n/**\n * This function gets Enrollee's State.\n *\n * @return ::es_enrollee_state\n *\n * @see es_enrollee_state\n */\nes_enrollee_state es_get_state(void);\n\n/**\n * This function Sets Enrollee's Error Code.\n *\n * @param es_err_code Contains Enrollee's error code.\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_error_code_e\n */\nes_result_e es_set_error_code(es_error_code es_err_code);\n\n/**\n * This function performs termination of all Easy Setup Resources.\n *\n * @return ::ES_OK on success, some other value upon failure.\n */\nes_result_e es_terminate_enrollee(void);\n\n/**\n * This function is to set two function pointer to handle user-specific\n * properties in in-comming\n * POST request and to out-going response for GET or POST request.\n * If you register certain functions with this API, you have to handle oc_rep_t\n * structure to\n * set and get properties you want.\n *\n * @param readcb a callback for parsing properties from POST request\n * @param writecb a callback for putting properties to a response to be sent\n * @param free_userdata callback to free allocated memory of user data in\n * s_wifi_conf_data, es_dev_conf_data and es_coap_cloud_conf_data.\n *\n * @return ::ES_OK on success, some other value upon failure.\n *\n * @see es_read_userdata_cb\n * @see es_write_userdata_cb\n */\nes_result_e es_set_callback_for_userdata(es_read_userdata_cb readcb,\n es_write_userdata_cb writecb,\n es_free_userdata free_userdata);\n\n#ifdef __cplusplus\n}\n#endif // __cplusplus\n\n#endif /* EASYSETUP_ENROLLEE_H */\n"}
178
c
#ifdef NS3_MODULE_COMPILATION # error "Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts." #endif #ifndef NS3_MODULE_TRAFFIC_CONTROL // Module headers: #include "codel-queue-disc.h" #include "fq-codel-queue-disc.h" #include "mq-queue-disc.h" #include "packet-filter.h" #include "pfifo-fast-queue-disc.h" #include "pie-queue-disc.h" #include "queue-disc-container.h" #include "queue-disc.h" #include "red-queue-disc.h" #include "traffic-control-helper.h" #include "traffic-control-layer.h" #endif
30
18
(translation_unit) "#ifdef NS3_MODULE_COMPILATION\n# error "Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts."\n#endif\n\n#ifndef NS3_MODULE_TRAFFIC_CONTROL\n \n\n// Module headers:\n#include "codel-queue-disc.h"\n#include "fq-codel-queue-disc.h"\n#include "mq-queue-disc.h"\n#include "packet-filter.h"\n#include "pfifo-fast-queue-disc.h"\n#include "pie-queue-disc.h"\n#include "queue-disc-container.h"\n#include "queue-disc.h"\n#include "red-queue-disc.h"\n#include "traffic-control-helper.h"\n#include "traffic-control-layer.h"\n#endif\n" (preproc_ifdef) "#ifdef NS3_MODULE_COMPILATION\n# error "Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts."\n#endif" (#ifdef) "#ifdef" (identifier) "NS3_MODULE_COMPILATION" (preproc_call) "# error "Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts."\n" (preproc_directive) "# error" (preproc_arg) ""Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts."" (#endif) "#endif" (preproc_ifdef) "#ifndef NS3_MODULE_TRAFFIC_CONTROL\n \n\n// Module headers:\n#include "codel-queue-disc.h"\n#include "fq-codel-queue-disc.h"\n#include "mq-queue-disc.h"\n#include "packet-filter.h"\n#include "pfifo-fast-queue-disc.h"\n#include "pie-queue-disc.h"\n#include "queue-disc-container.h"\n#include "queue-disc.h"\n#include "red-queue-disc.h"\n#include "traffic-control-helper.h"\n#include "traffic-control-layer.h"\n#endif" (#ifndef) "#ifndef" (identifier) "NS3_MODULE_TRAFFIC_CONTROL" (comment) "// Module headers:" (preproc_include) "#include "codel-queue-disc.h"\n" (#include) "#include" (string_literal) ""codel-queue-disc.h"" (") """ (string_content) "codel-queue-disc.h" (") """ (preproc_include) "#include "fq-codel-queue-disc.h"\n" (#include) "#include" (string_literal) ""fq-codel-queue-disc.h"" (") """ (string_content) "fq-codel-queue-disc.h" (") """ (preproc_include) "#include "mq-queue-disc.h"\n" (#include) "#include" (string_literal) ""mq-queue-disc.h"" (") """ (string_content) "mq-queue-disc.h" (") """ (preproc_include) "#include "packet-filter.h"\n" (#include) "#include" (string_literal) ""packet-filter.h"" (") """ (string_content) "packet-filter.h" (") """ (preproc_include) "#include "pfifo-fast-queue-disc.h"\n" (#include) "#include" (string_literal) ""pfifo-fast-queue-disc.h"" (") """ (string_content) "pfifo-fast-queue-disc.h" (") """ (preproc_include) "#include "pie-queue-disc.h"\n" (#include) "#include" (string_literal) ""pie-queue-disc.h"" (") """ (string_content) "pie-queue-disc.h" (") """ (preproc_include) "#include "queue-disc-container.h"\n" (#include) "#include" (string_literal) ""queue-disc-container.h"" (") """ (string_content) "queue-disc-container.h" (") """ (preproc_include) "#include "queue-disc.h"\n" (#include) "#include" (string_literal) ""queue-disc.h"" (") """ (string_content) "queue-disc.h" (") """ (preproc_include) "#include "red-queue-disc.h"\n" (#include) "#include" (string_literal) ""red-queue-disc.h"" (") """ (string_content) "red-queue-disc.h" (") """ (preproc_include) "#include "traffic-control-helper.h"\n" (#include) "#include" (string_literal) ""traffic-control-helper.h"" (") """ (string_content) "traffic-control-helper.h" (") """ (preproc_include) "#include "traffic-control-layer.h"\n" (#include) "#include" (string_literal) ""traffic-control-layer.h"" (") """ (string_content) "traffic-control-layer.h" (") """ (#endif) "#endif"
79
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.0, "nodes": 44, "errors": 0, "source_hash": "cf3e343cc1e37ee097aa26cc6d456aa08d92180aa42bb4027e5c681ec855bff0", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef NS3_MODULE_COMPILATION\n# error \"Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts.\"\n#endif", "parent": null, "children": [1, 2, 3, 6], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 1, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 2, "type": "identifier", "text": "NS3_MODULE_COMPILATION", "parent": 0, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 29}}, {"id": 3, "type": "preproc_call", "text": "# error \"Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts.\"\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "# error", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts.\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 117}}, {"id": 6, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 7, "type": "preproc_ifdef", "text": "#ifndef NS3_MODULE_TRAFFIC_CONTROL\n \n\n// Module headers:\n#include \"codel-queue-disc.h\"\n#include \"fq-codel-queue-disc.h\"\n#include \"mq-queue-disc.h\"\n#include \"packet-filter.h\"\n#include \"pfifo-fast-queue-disc.h\"\n#include \"pie-queue-disc.h\"\n#include \"queue-disc-container.h\"\n#include \"queue-disc.h\"\n#include \"red-queue-disc.h\"\n#include \"traffic-control-helper.h\"\n#include \"traffic-control-layer.h\"\n#endif", "parent": null, "children": [8, 9, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 8, "type": "#ifndef", "text": "#ifndef", "parent": 7, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 9, "type": "identifier", "text": "NS3_MODULE_TRAFFIC_CONTROL", "parent": 7, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 34}}, {"id": 10, "type": "preproc_include", "text": "#include \"codel-queue-disc.h\"\n", "parent": 7, "children": [11, 12], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 12, "type": "string_literal", "text": "\"codel-queue-disc.h\"", "parent": 10, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 29}}, {"id": 13, "type": "preproc_include", "text": "#include \"fq-codel-queue-disc.h\"\n", "parent": 7, "children": [14, 15], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 15, "type": "string_literal", "text": "\"fq-codel-queue-disc.h\"", "parent": 13, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 32}}, {"id": 16, "type": "preproc_include", "text": "#include \"mq-queue-disc.h\"\n", "parent": 7, "children": [17, 18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 18, "type": "string_literal", "text": "\"mq-queue-disc.h\"", "parent": 16, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 19, "type": "preproc_include", "text": "#include \"packet-filter.h\"\n", "parent": 7, "children": [20, 21], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 21, "type": "string_literal", "text": "\"packet-filter.h\"", "parent": 19, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 22, "type": "preproc_include", "text": "#include \"pfifo-fast-queue-disc.h\"\n", "parent": 7, "children": [23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 24, "type": "string_literal", "text": "\"pfifo-fast-queue-disc.h\"", "parent": 22, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 34}}, {"id": 25, "type": "preproc_include", "text": "#include \"pie-queue-disc.h\"\n", "parent": 7, "children": [26, 27], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 26, "type": "#include", "text": "#include", "parent": 25, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 27, "type": "string_literal", "text": "\"pie-queue-disc.h\"", "parent": 25, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 28, "type": "preproc_include", "text": "#include \"queue-disc-container.h\"\n", "parent": 7, "children": [29, 30], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 29, "type": "#include", "text": "#include", "parent": 28, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 30, "type": "string_literal", "text": "\"queue-disc-container.h\"", "parent": 28, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 33}}, {"id": 31, "type": "preproc_include", "text": "#include \"queue-disc.h\"\n", "parent": 7, "children": [32, 33], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 32, "type": "#include", "text": "#include", "parent": 31, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 33, "type": "string_literal", "text": "\"queue-disc.h\"", "parent": 31, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 23}}, {"id": 34, "type": "preproc_include", "text": "#include \"red-queue-disc.h\"\n", "parent": 7, "children": [35, 36], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 35, "type": "#include", "text": "#include", "parent": 34, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 36, "type": "string_literal", "text": "\"red-queue-disc.h\"", "parent": 34, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 27}}, {"id": 37, "type": "preproc_include", "text": "#include \"traffic-control-helper.h\"\n", "parent": 7, "children": [38, 39], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 38, "type": "#include", "text": "#include", "parent": 37, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 39, "type": "string_literal", "text": "\"traffic-control-helper.h\"", "parent": 37, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 35}}, {"id": 40, "type": "preproc_include", "text": "#include \"traffic-control-layer.h\"\n", "parent": 7, "children": [41, 42], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 41, "type": "#include", "text": "#include", "parent": 40, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 42, "type": "string_literal", "text": "\"traffic-control-layer.h\"", "parent": 40, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 34}}, {"id": 43, "type": "#endif", "text": "#endif", "parent": 7, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35, 37, 38, 40, 41], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 6, 7, 8, 9, 43], "returns": [], "exceptions": []}, "expressions": {"calls": [3], "literals": [12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 10, "text": "#include \"codel-queue-disc.h\"\n"}, {"node_id": 11, "text": "#include"}, {"node_id": 13, "text": "#include \"fq-codel-queue-disc.h\"\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include \"mq-queue-disc.h\"\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include \"packet-filter.h\"\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include \"pfifo-fast-queue-disc.h\"\n"}, {"node_id": 23, "text": "#include"}, {"node_id": 25, "text": "#include \"pie-queue-disc.h\"\n"}, {"node_id": 26, "text": "#include"}, {"node_id": 28, "text": "#include \"queue-disc-container.h\"\n"}, {"node_id": 29, "text": "#include"}, {"node_id": 31, "text": "#include \"queue-disc.h\"\n"}, {"node_id": 32, "text": "#include"}, {"node_id": 34, "text": "#include \"red-queue-disc.h\"\n"}, {"node_id": 35, "text": "#include"}, {"node_id": 37, "text": "#include \"traffic-control-helper.h\"\n"}, {"node_id": 38, "text": "#include"}, {"node_id": 40, "text": "#include \"traffic-control-layer.h\"\n"}, {"node_id": 41, "text": "#include"}]}, "original_source_code": "\n#ifdef NS3_MODULE_COMPILATION\n# error \"Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts.\"\n#endif\n\n#ifndef NS3_MODULE_TRAFFIC_CONTROL\n \n\n// Module headers:\n#include \"codel-queue-disc.h\"\n#include \"fq-codel-queue-disc.h\"\n#include \"mq-queue-disc.h\"\n#include \"packet-filter.h\"\n#include \"pfifo-fast-queue-disc.h\"\n#include \"pie-queue-disc.h\"\n#include \"queue-disc-container.h\"\n#include \"queue-disc.h\"\n#include \"red-queue-disc.h\"\n#include \"traffic-control-helper.h\"\n#include \"traffic-control-layer.h\"\n#endif\n"}
179
c
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is included * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. * * GPL HEADER END */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * * Copyright (c) 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ * Lustre is a trademark of Sun Microsystems, Inc. */ #define DEBUG_PORTAL_ALLOC #ifndef __LINUX_SOCKNAL_LIB_H__ #define __LINUX_SOCKNAL_LIB_H__ #include <linux/module.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/string.h> #include <linux/stat.h> #include <linux/errno.h> #include <linux/unistd.h> #include <net/sock.h> #include <net/tcp.h> #include <linux/uio.h> #include <linux/if.h> #include <asm/uaccess.h> #include <asm/irq.h> #include <linux/fs.h> #include <linux/file.h> #include <linux/list.h> #include <linux/kmod.h> #include <linux/sysctl.h> #include <asm/div64.h> #include <linux/syscalls.h> #include <linux/libcfs/libcfs.h> #include <linux/libcfs/linux/portals_compat25.h> #include <linux/crc32.h> static inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len) { #if 1 return crc32_le(crc, p, len); #else while (len-- > 0) crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ; return crc; #endif } #define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk) #define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk) /* assume one thread for each connection type */ #define SOCKNAL_NSCHEDS 3 #define SOCKNAL_NSCHEDS_HIGH (SOCKNAL_NSCHEDS << 1) #endif
30.61
77
(translation_unit) "/*\n * GPL HEADER START\n *\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\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 only,\n * as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License version 2 for more details (a copy is included\n * in the LICENSE file that accompanied this code).\n *\n * You should have received a copy of the GNU General Public License\n * version 2 along with this program; If not, see\n * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf\n *\n * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,\n * CA 95054 USA or visit www.sun.com if you need additional information or\n * have any questions.\n *\n * GPL HEADER END\n */\n/*\n * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.\n * Use is subject to license terms.\n *\n * Copyright (c) 2012, Intel Corporation.\n */\n/*\n * This file is part of Lustre, http://www.lustre.org/\n * Lustre is a trademark of Sun Microsystems, Inc.\n */\n\n#define DEBUG_PORTAL_ALLOC\n\n#ifndef __LINUX_SOCKNAL_LIB_H__\n#define __LINUX_SOCKNAL_LIB_H__\n\n#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/mm.h>\n#include <linux/string.h>\n#include <linux/stat.h>\n#include <linux/errno.h>\n#include <linux/unistd.h>\n#include <net/sock.h>\n#include <net/tcp.h>\n#include <linux/uio.h>\n#include <linux/if.h>\n\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n\n#include <linux/fs.h>\n#include <linux/file.h>\n#include <linux/list.h>\n#include <linux/kmod.h>\n#include <linux/sysctl.h>\n#include <asm/div64.h>\n#include <linux/syscalls.h>\n\n#include <linux/libcfs/libcfs.h>\n#include <linux/libcfs/linux/portals_compat25.h>\n\n#include <linux/crc32.h>\nstatic inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n return crc32_le(crc, p, len);\n#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;\n#endif\n}\n\n#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n\n/* assume one thread for each connection type */\n#define SOCKNAL_NSCHEDS 3\n#define SOCKNAL_NSCHEDS_HIGH (SOCKNAL_NSCHEDS << 1)\n\n#endif\n" (comment) "/*\n * GPL HEADER START\n *\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\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 only,\n * as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License version 2 for more details (a copy is included\n * in the LICENSE file that accompanied this code).\n *\n * You should have received a copy of the GNU General Public License\n * version 2 along with this program; If not, see\n * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf\n *\n * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,\n * CA 95054 USA or visit www.sun.com if you need additional information or\n * have any questions.\n *\n * GPL HEADER END\n */" (comment) "/*\n * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.\n * Use is subject to license terms.\n *\n * Copyright (c) 2012, Intel Corporation.\n */" (comment) "/*\n * This file is part of Lustre, http://www.lustre.org/\n * Lustre is a trademark of Sun Microsystems, Inc.\n */" (preproc_def) "#define DEBUG_PORTAL_ALLOC\n" (#define) "#define" (identifier) "DEBUG_PORTAL_ALLOC" (preproc_ifdef) "#ifndef __LINUX_SOCKNAL_LIB_H__\n#define __LINUX_SOCKNAL_LIB_H__\n\n#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/mm.h>\n#include <linux/string.h>\n#include <linux/stat.h>\n#include <linux/errno.h>\n#include <linux/unistd.h>\n#include <net/sock.h>\n#include <net/tcp.h>\n#include <linux/uio.h>\n#include <linux/if.h>\n\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n\n#include <linux/fs.h>\n#include <linux/file.h>\n#include <linux/list.h>\n#include <linux/kmod.h>\n#include <linux/sysctl.h>\n#include <asm/div64.h>\n#include <linux/syscalls.h>\n\n#include <linux/libcfs/libcfs.h>\n#include <linux/libcfs/linux/portals_compat25.h>\n\n#include <linux/crc32.h>\nstatic inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n return crc32_le(crc, p, len);\n#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;\n#endif\n}\n\n#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n\n/* assume one thread for each connection type */\n#define SOCKNAL_NSCHEDS 3\n#define SOCKNAL_NSCHEDS_HIGH (SOCKNAL_NSCHEDS << 1)\n\n#endif" (#ifndef) "#ifndef" (identifier) "__LINUX_SOCKNAL_LIB_H__" (preproc_def) "#define __LINUX_SOCKNAL_LIB_H__\n" (#define) "#define" (identifier) "__LINUX_SOCKNAL_LIB_H__" (preproc_include) "#include <linux/module.h>\n" (#include) "#include" (system_lib_string) "<linux/module.h>" (preproc_include) "#include <linux/kernel.h>\n" (#include) "#include" (system_lib_string) "<linux/kernel.h>" (preproc_include) "#include <linux/mm.h>\n" (#include) "#include" (system_lib_string) "<linux/mm.h>" (preproc_include) "#include <linux/string.h>\n" (#include) "#include" (system_lib_string) "<linux/string.h>" (preproc_include) "#include <linux/stat.h>\n" (#include) "#include" (system_lib_string) "<linux/stat.h>" (preproc_include) "#include <linux/errno.h>\n" (#include) "#include" (system_lib_string) "<linux/errno.h>" (preproc_include) "#include <linux/unistd.h>\n" (#include) "#include" (system_lib_string) "<linux/unistd.h>" (preproc_include) "#include <net/sock.h>\n" (#include) "#include" (system_lib_string) "<net/sock.h>" (preproc_include) "#include <net/tcp.h>\n" (#include) "#include" (system_lib_string) "<net/tcp.h>" (preproc_include) "#include <linux/uio.h>\n" (#include) "#include" (system_lib_string) "<linux/uio.h>" (preproc_include) "#include <linux/if.h>\n" (#include) "#include" (system_lib_string) "<linux/if.h>" (preproc_include) "#include <asm/uaccess.h>\n" (#include) "#include" (system_lib_string) "<asm/uaccess.h>" (preproc_include) "#include <asm/irq.h>\n" (#include) "#include" (system_lib_string) "<asm/irq.h>" (preproc_include) "#include <linux/fs.h>\n" (#include) "#include" (system_lib_string) "<linux/fs.h>" (preproc_include) "#include <linux/file.h>\n" (#include) "#include" (system_lib_string) "<linux/file.h>" (preproc_include) "#include <linux/list.h>\n" (#include) "#include" (system_lib_string) "<linux/list.h>" (preproc_include) "#include <linux/kmod.h>\n" (#include) "#include" (system_lib_string) "<linux/kmod.h>" (preproc_include) "#include <linux/sysctl.h>\n" (#include) "#include" (system_lib_string) "<linux/sysctl.h>" (preproc_include) "#include <asm/div64.h>\n" (#include) "#include" (system_lib_string) "<asm/div64.h>" (preproc_include) "#include <linux/syscalls.h>\n" (#include) "#include" (system_lib_string) "<linux/syscalls.h>" (preproc_include) "#include <linux/libcfs/libcfs.h>\n" (#include) "#include" (system_lib_string) "<linux/libcfs/libcfs.h>" (preproc_include) "#include <linux/libcfs/linux/portals_compat25.h>\n" (#include) "#include" (system_lib_string) "<linux/libcfs/linux/portals_compat25.h>" (preproc_include) "#include <linux/crc32.h>\n" (#include) "#include" (system_lib_string) "<linux/crc32.h>" (function_definition) "static inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n return crc32_le(crc, p, len);\n#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "__u32" (function_declarator) "ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)" (identifier) "ksocknal_csum" (parameter_list) "(__u32 crc, unsigned char const *p, size_t len)" (() "(" (parameter_declaration) "__u32 crc" (type_identifier) "__u32" (identifier) "crc" (,) "," (parameter_declaration) "unsigned char const *p" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n#if 1\n return crc32_le(crc, p, len);\n#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;\n#endif\n}" ({) "{" (preproc_if) "#if 1\n return crc32_le(crc, p, len);\n#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;\n#endif" (#if) "#if" (number_literal) "1" ( ) "\n" (return_statement) "return crc32_le(crc, p, len);" (return) "return" (call_expression) "crc32_le(crc, p, len)" (identifier) "crc32_le" (argument_list) "(crc, p, len)" (() "(" (identifier) "crc" (,) "," (identifier) "p" (,) "," (identifier) "len" ()) ")" (;) ";" (preproc_else) "#else\n while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n return crc;" (#else) "#else" (while_statement) "while (len-- > 0)\n crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;" (while) "while" (parenthesized_expression) "(len-- > 0)" (() "(" (binary_expression) "len-- > 0" (update_expression) "len--" (identifier) "len" (--) "--" (>) ">" (number_literal) "0" ()) ")" (expression_statement) "crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;" (assignment_expression) "crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff)" (identifier) "crc" (=) "=" (binary_expression) "((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff)" (parenthesized_expression) "((crc + 0x100) & ~0xff)" (() "(" (binary_expression) "(crc + 0x100) & ~0xff" (parenthesized_expression) "(crc + 0x100)" (() "(" (binary_expression) "crc + 0x100" (identifier) "crc" (+) "+" (number_literal) "0x100" ()) ")" (&) "&" (unary_expression) "~0xff" (~) "~" (number_literal) "0xff" ()) ")" (|) "|" (parenthesized_expression) "((crc + *p++) & 0xff)" (() "(" (binary_expression) "(crc + *p++) & 0xff" (parenthesized_expression) "(crc + *p++)" (() "(" (binary_expression) "crc + *p++" (identifier) "crc" (+) "+" (pointer_expression) "*p++" (*) "*" (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (&) "&" (number_literal) "0xff" ()) ")" (;) ";" (return_statement) "return crc;" (return) "return" (identifier) "crc" (;) ";" (#endif) "#endif" (}) "}" (preproc_function_def) "#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n" (#define) "#define" (identifier) "SOCKNAL_WSPACE" (preproc_params) "(sk)" (() "(" (identifier) "sk" ()) ")" (preproc_arg) "sk_stream_wspace(sk)" (preproc_function_def) "#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n" (#define) "#define" (identifier) "SOCKNAL_MIN_WSPACE" (preproc_params) "(sk)" (() "(" (identifier) "sk" ()) ")" (preproc_arg) "sk_stream_min_wspace(sk)" (comment) "/* assume one thread for each connection type */" (preproc_def) "#define SOCKNAL_NSCHEDS 3\n" (#define) "#define" (identifier) "SOCKNAL_NSCHEDS" (preproc_arg) "3" (preproc_def) "#define SOCKNAL_NSCHEDS_HIGH (SOCKNAL_NSCHEDS << 1)\n" (#define) "#define" (identifier) "SOCKNAL_NSCHEDS_HIGH" (preproc_arg) "(SOCKNAL_NSCHEDS << 1)" (#endif) "#endif"
213
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 30.61, "nodes": 169, "errors": 0, "source_hash": "8c24630fabd53843d2db8b384fd7f5f87ed2fc3a17bb74b3091504475de53c16", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define DEBUG_PORTAL_ALLOC\n", "parent": null, "children": [1, 2], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 2, "type": "identifier", "text": "DEBUG_PORTAL_ALLOC", "parent": 0, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 26}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef __LINUX_SOCKNAL_LIB_H__\n#define __LINUX_SOCKNAL_LIB_H__\n\n#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/mm.h>\n#include <linux/string.h>\n#include <linux/stat.h>\n#include <linux/errno.h>\n#include <linux/unistd.h>\n#include <net/sock.h>\n#include <net/tcp.h>\n#include <linux/uio.h>\n#include <linux/if.h>\n\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n\n#include <linux/fs.h>\n#include <linux/file.h>\n#include <linux/list.h>\n#include <linux/kmod.h>\n#include <linux/sysctl.h>\n#include <asm/div64.h>\n#include <linux/syscalls.h>\n\n#include <linux/libcfs/libcfs.h>\n#include <linux/libcfs/linux/portals_compat25.h>\n\n#include <linux/crc32.h>\nstatic inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n\treturn crc32_le(crc, p, len);\n#else\n\twhile (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n\treturn crc;\n#endif\n}\n\n#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n\n/* assume one thread for each connection type */\n#define SOCKNAL_NSCHEDS\t\t3\n#define SOCKNAL_NSCHEDS_HIGH\t(SOCKNAL_NSCHEDS << 1)\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 148, 154, 160, 164, 168], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 5, "type": "identifier", "text": "__LINUX_SOCKNAL_LIB_H__", "parent": 3, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 31}}, {"id": 6, "type": "preproc_def", "text": "#define __LINUX_SOCKNAL_LIB_H__\n", "parent": 3, "children": [7, 8], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 8, "type": "identifier", "text": "__LINUX_SOCKNAL_LIB_H__", "parent": 6, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/module.h>\n", "parent": 3, "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": "<linux/module.h>", "parent": 9, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/kernel.h>\n", "parent": 3, "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": "<linux/kernel.h>", "parent": 12, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <linux/mm.h>\n", "parent": 3, "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": "<linux/mm.h>", "parent": 15, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include <linux/string.h>\n", "parent": 3, "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": "<linux/string.h>", "parent": 18, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 25}}, {"id": 21, "type": "preproc_include", "text": "#include <linux/stat.h>\n", "parent": 3, "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": "<linux/stat.h>", "parent": 21, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 23}}, {"id": 24, "type": "preproc_include", "text": "#include <linux/errno.h>\n", "parent": 3, "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": "<linux/errno.h>", "parent": 24, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 24}}, {"id": 27, "type": "preproc_include", "text": "#include <linux/unistd.h>\n", "parent": 3, "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": "<linux/unistd.h>", "parent": 27, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 25}}, {"id": 30, "type": "preproc_include", "text": "#include <net/sock.h>\n", "parent": 3, "children": [31, 32], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<net/sock.h>", "parent": 30, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 21}}, {"id": 33, "type": "preproc_include", "text": "#include <net/tcp.h>\n", "parent": 3, "children": [34, 35], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<net/tcp.h>", "parent": 33, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 20}}, {"id": 36, "type": "preproc_include", "text": "#include <linux/uio.h>\n", "parent": 3, "children": [37, 38], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<linux/uio.h>", "parent": 36, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 22}}, {"id": 39, "type": "preproc_include", "text": "#include <linux/if.h>\n", "parent": 3, "children": [40, 41], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 41, "type": "system_lib_string", "text": "<linux/if.h>", "parent": 39, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 21}}, {"id": 42, "type": "preproc_include", "text": "#include <asm/uaccess.h>\n", "parent": 3, "children": [43, 44], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 8}}, {"id": 44, "type": "system_lib_string", "text": "<asm/uaccess.h>", "parent": 42, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 24}}, {"id": 45, "type": "preproc_include", "text": "#include <asm/irq.h>\n", "parent": 3, "children": [46, 47], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 8}}, {"id": 47, "type": "system_lib_string", "text": "<asm/irq.h>", "parent": 45, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 20}}, {"id": 48, "type": "preproc_include", "text": "#include <linux/fs.h>\n", "parent": 3, "children": [49, 50], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 49, "type": "#include", "text": "#include", "parent": 48, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 8}}, {"id": 50, "type": "system_lib_string", "text": "<linux/fs.h>", "parent": 48, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 21}}, {"id": 51, "type": "preproc_include", "text": "#include <linux/file.h>\n", "parent": 3, "children": [52, 53], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 52, "type": "#include", "text": "#include", "parent": 51, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 8}}, {"id": 53, "type": "system_lib_string", "text": "<linux/file.h>", "parent": 51, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 23}}, {"id": 54, "type": "preproc_include", "text": "#include <linux/list.h>\n", "parent": 3, "children": [55, 56], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 55, "type": "#include", "text": "#include", "parent": 54, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 56, "type": "system_lib_string", "text": "<linux/list.h>", "parent": 54, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 23}}, {"id": 57, "type": "preproc_include", "text": "#include <linux/kmod.h>\n", "parent": 3, "children": [58, 59], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 58, "type": "#include", "text": "#include", "parent": 57, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 8}}, {"id": 59, "type": "system_lib_string", "text": "<linux/kmod.h>", "parent": 57, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 23}}, {"id": 60, "type": "preproc_include", "text": "#include <linux/sysctl.h>\n", "parent": 3, "children": [61, 62], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 61, "type": "#include", "text": "#include", "parent": 60, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 62, "type": "system_lib_string", "text": "<linux/sysctl.h>", "parent": 60, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 25}}, {"id": 63, "type": "preproc_include", "text": "#include <asm/div64.h>\n", "parent": 3, "children": [64, 65], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 64, "type": "#include", "text": "#include", "parent": 63, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 8}}, {"id": 65, "type": "system_lib_string", "text": "<asm/div64.h>", "parent": 63, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 22}}, {"id": 66, "type": "preproc_include", "text": "#include <linux/syscalls.h>\n", "parent": 3, "children": [67, 68], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 67, "type": "#include", "text": "#include", "parent": 66, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 8}}, {"id": 68, "type": "system_lib_string", "text": "<linux/syscalls.h>", "parent": 66, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 27}}, {"id": 69, "type": "preproc_include", "text": "#include <linux/libcfs/libcfs.h>\n", "parent": 3, "children": [70, 71], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 70, "type": "#include", "text": "#include", "parent": 69, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 8}}, {"id": 71, "type": "system_lib_string", "text": "<linux/libcfs/libcfs.h>", "parent": 69, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 32}}, {"id": 72, "type": "preproc_include", "text": "#include <linux/libcfs/linux/portals_compat25.h>\n", "parent": 3, "children": [73, 74], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 73, "type": "#include", "text": "#include", "parent": 72, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 8}}, {"id": 74, "type": "system_lib_string", "text": "<linux/libcfs/linux/portals_compat25.h>", "parent": 72, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 48}}, {"id": 75, "type": "preproc_include", "text": "#include <linux/crc32.h>\n", "parent": 3, "children": [76, 77], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 76, "type": "#include", "text": "#include", "parent": 75, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 77, "type": "system_lib_string", "text": "<linux/crc32.h>", "parent": 75, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 24}}, {"id": 78, "type": "function_definition", "text": "static inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n\treturn crc32_le(crc, p, len);\n#else\n\twhile (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n\treturn crc;\n#endif\n}", "parent": 3, "children": [79, 81, 82], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 79, "type": "storage_class_specifier", "text": "inline", "parent": 78, "children": [80], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 13}}, {"id": 80, "type": "inline", "text": "inline", "parent": 79, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 13}}, {"id": 81, "type": "type_identifier", "text": "__u32", "parent": 78, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 19}}, {"id": 82, "type": "function_declarator", "text": "ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)", "parent": 78, "children": [83, 84], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 80}}, {"id": 83, "type": "identifier", "text": "ksocknal_csum", "parent": 82, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 33}}, {"id": 84, "type": "parameter_list", "text": "(__u32 crc, unsigned char const *p, size_t len)", "parent": 82, "children": [85, 88, 95], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 80}}, {"id": 85, "type": "parameter_declaration", "text": "__u32 crc", "parent": 84, "children": [86, 87], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 43}}, {"id": 86, "type": "type_identifier", "text": "__u32", "parent": 85, "children": [], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 39}}, {"id": 87, "type": "identifier", "text": "crc", "parent": 85, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 43}}, {"id": 88, "type": "parameter_declaration", "text": "unsigned char const *p", "parent": 84, "children": [89, 92], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 67}}, {"id": 89, "type": "sized_type_specifier", "text": "unsigned char", "parent": 88, "children": [90, 91], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 58}}, {"id": 90, "type": "unsigned", "text": "unsigned", "parent": 89, "children": [], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 53}}, {"id": 91, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 68, "column": 54}, "end_point": {"row": 68, "column": 58}}, {"id": 92, "type": "pointer_declarator", "text": "*p", "parent": 88, "children": [93, 94], "start_point": {"row": 68, "column": 65}, "end_point": {"row": 68, "column": 67}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 68, "column": 65}, "end_point": {"row": 68, "column": 66}}, {"id": 94, "type": "identifier", "text": "p", "parent": 92, "children": [], "start_point": {"row": 68, "column": 66}, "end_point": {"row": 68, "column": 67}}, {"id": 95, "type": "parameter_declaration", "text": "size_t len", "parent": 84, "children": [96, 97], "start_point": {"row": 68, "column": 69}, "end_point": {"row": 68, "column": 79}}, {"id": 96, "type": "primitive_type", "text": "size_t", "parent": 95, "children": [], "start_point": {"row": 68, "column": 69}, "end_point": {"row": 68, "column": 75}}, {"id": 97, "type": "identifier", "text": "len", "parent": 95, "children": [], "start_point": {"row": 68, "column": 76}, "end_point": {"row": 68, "column": 79}}, {"id": 98, "type": "preproc_if", "text": "#if 1\n\treturn crc32_le(crc, p, len);\n#else\n\twhile (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n\treturn crc;\n#endif", "parent": 78, "children": [99, 100, 101, 102, 109, 147], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 99, "type": "#if", "text": "#if", "parent": 98, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 3}}, {"id": 100, "type": "number_literal", "text": "1", "parent": 98, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 101, "type": "\n", "text": "\n", "parent": 98, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 71, "column": 0}}, {"id": 102, "type": "return_statement", "text": "return crc32_le(crc, p, len);", "parent": 98, "children": [103], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 30}}, {"id": 103, "type": "call_expression", "text": "crc32_le(crc, p, len)", "parent": 102, "children": [104, 105], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 29}}, {"id": 104, "type": "identifier", "text": "crc32_le", "parent": 103, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 16}}, {"id": 105, "type": "argument_list", "text": "(crc, p, len)", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 29}}, {"id": 106, "type": "identifier", "text": "crc", "parent": 105, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 20}}, {"id": 107, "type": "identifier", "text": "p", "parent": 105, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 108, "type": "identifier", "text": "len", "parent": 105, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 109, "type": "preproc_else", "text": "#else\n\twhile (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n\treturn crc;", "parent": 98, "children": [110, 111, 145], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 75, "column": 12}}, {"id": 110, "type": "#else", "text": "#else", "parent": 109, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 5}}, {"id": 111, "type": "while_statement", "text": "while (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;", "parent": 109, "children": [112], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 74, "column": 57}}, {"id": 112, "type": "parenthesized_expression", "text": "(len-- > 0)", "parent": 111, "children": [113], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 18}}, {"id": 113, "type": "binary_expression", "text": "len-- > 0", "parent": 112, "children": [114, 117, 118], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 17}}, {"id": 114, "type": "update_expression", "text": "len--", "parent": 113, "children": [115, 116], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 115, "type": "identifier", "text": "len", "parent": 114, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 11}}, {"id": 116, "type": "--", "text": "--", "parent": 114, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 13}}, {"id": 117, "type": ">", "text": ">", "parent": 113, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 118, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 17}}, {"id": 119, "type": "assignment_expression", "text": "crc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff)", "parent": 111, "children": [120, 121, 122], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 55}}, {"id": 120, "type": "identifier", "text": "crc", "parent": 119, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 5}}, {"id": 121, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 7}}, {"id": 122, "type": "binary_expression", "text": "((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff)", "parent": 119, "children": [123, 133], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 55}}, {"id": 123, "type": "parenthesized_expression", "text": "((crc + 0x100) & ~0xff)", "parent": 122, "children": [124], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 31}}, {"id": 124, "type": "binary_expression", "text": "(crc + 0x100) & ~0xff", "parent": 123, "children": [125, 130], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 30}}, {"id": 125, "type": "parenthesized_expression", "text": "(crc + 0x100)", "parent": 124, "children": [126], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 22}}, {"id": 126, "type": "binary_expression", "text": "crc + 0x100", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 21}}, {"id": 127, "type": "identifier", "text": "crc", "parent": 126, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 13}}, {"id": 128, "type": "+", "text": "+", "parent": 126, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 129, "type": "number_literal", "text": "0x100", "parent": 126, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 21}}, {"id": 130, "type": "unary_expression", "text": "~0xff", "parent": 124, "children": [131, 132], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 30}}, {"id": 131, "type": "~", "text": "~", "parent": 130, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 26}}, {"id": 132, "type": "number_literal", "text": "0xff", "parent": 130, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 30}}, {"id": 133, "type": "parenthesized_expression", "text": "((crc + *p++) & 0xff)", "parent": 122, "children": [134], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 55}}, {"id": 134, "type": "binary_expression", "text": "(crc + *p++) & 0xff", "parent": 133, "children": [135, 144], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 54}}, {"id": 135, "type": "parenthesized_expression", "text": "(crc + *p++)", "parent": 134, "children": [136], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 47}}, {"id": 136, "type": "binary_expression", "text": "crc + *p++", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 46}}, {"id": 137, "type": "identifier", "text": "crc", "parent": 136, "children": [], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 39}}, {"id": 138, "type": "+", "text": "+", "parent": 136, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 41}}, {"id": 139, "type": "pointer_expression", "text": "*p++", "parent": 136, "children": [140, 141], "start_point": {"row": 74, "column": 42}, "end_point": {"row": 74, "column": 46}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 74, "column": 42}, "end_point": {"row": 74, "column": 43}}, {"id": 141, "type": "update_expression", "text": "p++", "parent": 139, "children": [142, 143], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 46}}, {"id": 142, "type": "identifier", "text": "p", "parent": 141, "children": [], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 44}}, {"id": 143, "type": "++", "text": "++", "parent": 141, "children": [], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 46}}, {"id": 144, "type": "number_literal", "text": "0xff", "parent": 134, "children": [], "start_point": {"row": 74, "column": 50}, "end_point": {"row": 74, "column": 54}}, {"id": 145, "type": "return_statement", "text": "return crc;", "parent": 109, "children": [146], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 12}}, {"id": 146, "type": "identifier", "text": "crc", "parent": 145, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 11}}, {"id": 147, "type": "#endif", "text": "#endif", "parent": 98, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 148, "type": "preproc_function_def", "text": "#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n", "parent": 3, "children": [149, 150, 151, 153], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 80, "column": 0}}, {"id": 149, "type": "#define", "text": "#define", "parent": 148, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 7}}, {"id": 150, "type": "identifier", "text": "SOCKNAL_WSPACE", "parent": 148, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 22}}, {"id": 151, "type": "preproc_params", "text": "(sk)", "parent": 148, "children": [152], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 26}}, {"id": 152, "type": "identifier", "text": "sk", "parent": 151, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 25}}, {"id": 153, "type": "preproc_arg", "text": "sk_stream_wspace(sk)", "parent": 148, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 53}}, {"id": 154, "type": "preproc_function_def", "text": "#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n", "parent": 3, "children": [155, 156, 157, 159], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 0}}, {"id": 155, "type": "#define", "text": "#define", "parent": 154, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 156, "type": "identifier", "text": "SOCKNAL_MIN_WSPACE", "parent": 154, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 26}}, {"id": 157, "type": "preproc_params", "text": "(sk)", "parent": 154, "children": [158], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 30}}, {"id": 158, "type": "identifier", "text": "sk", "parent": 157, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 29}}, {"id": 159, "type": "preproc_arg", "text": "sk_stream_min_wspace(sk)", "parent": 154, "children": [], "start_point": {"row": 80, "column": 33}, "end_point": {"row": 80, "column": 57}}, {"id": 160, "type": "preproc_def", "text": "#define SOCKNAL_NSCHEDS\t\t3\n", "parent": 3, "children": [161, 162, 163], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 84, "column": 0}}, {"id": 161, "type": "#define", "text": "#define", "parent": 160, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 7}}, {"id": 162, "type": "identifier", "text": "SOCKNAL_NSCHEDS", "parent": 160, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 23}}, {"id": 163, "type": "preproc_arg", "text": "3", "parent": 160, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 26}}, {"id": 164, "type": "preproc_def", "text": "#define SOCKNAL_NSCHEDS_HIGH\t(SOCKNAL_NSCHEDS << 1)\n", "parent": 3, "children": [165, 166, 167], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 85, "column": 0}}, {"id": 165, "type": "#define", "text": "#define", "parent": 164, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 166, "type": "identifier", "text": "SOCKNAL_NSCHEDS_HIGH", "parent": 164, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 28}}, {"id": 167, "type": "preproc_arg", "text": "(SOCKNAL_NSCHEDS << 1)", "parent": 164, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 51}}, {"id": 168, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}]}, "node_categories": {"declarations": {"functions": [78, 82, 148, 154], "variables": [85, 88, 95], "classes": [79], "imports": [9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, 46, 48, 49, 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 66, 67, 69, 70, 72, 73, 75, 76], "modules": [], "enums": []}, "statements": {"expressions": [103, 112, 113, 114, 122, 123, 124, 125, 126, 130, 133, 134, 135, 136, 139, 141], "assignments": [119], "loops": [111], "conditionals": [2, 3, 4, 5, 8, 81, 83, 86, 87, 89, 94, 97, 98, 99, 104, 106, 107, 108, 115, 120, 127, 137, 142, 146, 147, 150, 152, 156, 158, 162, 166, 168], "returns": [102, 145], "exceptions": []}, "expressions": {"calls": [], "literals": [11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 100, 118, 129, 132, 144], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "static inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n\treturn crc"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n"}], "class_declarations": [{"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 9, "text": "#include <linux/module.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/kernel.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <linux/mm.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <linux/string.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <linux/stat.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <linux/errno.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <linux/unistd.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <net/sock.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <net/tcp.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <linux/uio.h>\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include <linux/if.h>\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include <asm/uaccess.h>\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include <asm/irq.h>\n"}, {"node_id": 46, "text": "#include"}, {"node_id": 48, "text": "#include <linux/fs.h>\n"}, {"node_id": 49, "text": "#include"}, {"node_id": 51, "text": "#include <linux/file.h>\n"}, {"node_id": 52, "text": "#include"}, {"node_id": 54, "text": "#include <linux/list.h>\n"}, {"node_id": 55, "text": "#include"}, {"node_id": 57, "text": "#include <linux/kmod.h>\n"}, {"node_id": 58, "text": "#include"}, {"node_id": 60, "text": "#include <linux/sysctl.h>\n"}, {"node_id": 61, "text": "#include"}, {"node_id": 63, "text": "#include <asm/div64.h>\n"}, {"node_id": 64, "text": "#include"}, {"node_id": 66, "text": "#include <linux/syscalls.h>\n"}, {"node_id": 67, "text": "#include"}, {"node_id": 69, "text": "#include <linux/libcfs/libcfs.h>\n"}, {"node_id": 70, "text": "#include"}, {"node_id": 72, "text": "#include <linux/libcfs/linux/portals_compat25.h>\n"}, {"node_id": 73, "text": "#include"}, {"node_id": 75, "text": "#include <linux/crc32.h>\n"}, {"node_id": 76, "text": "#include"}]}, "original_source_code": "/*\n * GPL HEADER START\n *\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\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 only,\n * as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License version 2 for more details (a copy is included\n * in the LICENSE file that accompanied this code).\n *\n * You should have received a copy of the GNU General Public License\n * version 2 along with this program; If not, see\n * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf\n *\n * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,\n * CA 95054 USA or visit www.sun.com if you need additional information or\n * have any questions.\n *\n * GPL HEADER END\n */\n/*\n * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.\n * Use is subject to license terms.\n *\n * Copyright (c) 2012, Intel Corporation.\n */\n/*\n * This file is part of Lustre, http://www.lustre.org/\n * Lustre is a trademark of Sun Microsystems, Inc.\n */\n\n#define DEBUG_PORTAL_ALLOC\n\n#ifndef __LINUX_SOCKNAL_LIB_H__\n#define __LINUX_SOCKNAL_LIB_H__\n\n#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/mm.h>\n#include <linux/string.h>\n#include <linux/stat.h>\n#include <linux/errno.h>\n#include <linux/unistd.h>\n#include <net/sock.h>\n#include <net/tcp.h>\n#include <linux/uio.h>\n#include <linux/if.h>\n\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n\n#include <linux/fs.h>\n#include <linux/file.h>\n#include <linux/list.h>\n#include <linux/kmod.h>\n#include <linux/sysctl.h>\n#include <asm/div64.h>\n#include <linux/syscalls.h>\n\n#include <linux/libcfs/libcfs.h>\n#include <linux/libcfs/linux/portals_compat25.h>\n\n#include <linux/crc32.h>\nstatic inline __u32 ksocknal_csum(__u32 crc, unsigned char const *p, size_t len)\n{\n#if 1\n\treturn crc32_le(crc, p, len);\n#else\n\twhile (len-- > 0)\n\t\tcrc = ((crc + 0x100) & ~0xff) | ((crc + *p++) & 0xff) ;\n\treturn crc;\n#endif\n}\n\n#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)\n#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)\n\n/* assume one thread for each connection type */\n#define SOCKNAL_NSCHEDS\t\t3\n#define SOCKNAL_NSCHEDS_HIGH\t(SOCKNAL_NSCHEDS << 1)\n\n#endif\n"}
180
c
/* ** EPITECH PROJECT, 2018 ** position_sky.c ** File description: ** Function that manages the sky's position */ #include "../include/game_objects.h" #include "../include/include.h" void manage_all_s(object* obj, object* obj2, object* obj3, object* obj4) { manage_sky(obj); manage_sky(obj2); manage_sky(obj3); manage_sky(obj4); } void positions_all(World world, Obstacles *obst) { positions(world.skies, world.grounds, world.vegies); positions_obst(obst); }
22.25
20
(translation_unit) "/*\n** EPITECH PROJECT, 2018\n** position_sky.c\n** File description:\n** Function that manages the sky's position\n*/\n\n#include "../include/game_objects.h"\n#include "../include/include.h"\n\nvoid manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)\n{\n manage_sky(obj);\n manage_sky(obj2);\n manage_sky(obj3);\n manage_sky(obj4);\n}\n\nvoid positions_all(World world, Obstacles *obst)\n{\n positions(world.skies, world.grounds, world.vegies);\n positions_obst(obst);\n}\n" (comment) "/*\n** EPITECH PROJECT, 2018\n** position_sky.c\n** File description:\n** Function that manages the sky's position\n*/" (preproc_include) "#include "../include/game_objects.h"\n" (#include) "#include" (string_literal) ""../include/game_objects.h"" (") """ (string_content) "../include/game_objects.h" (") """ (preproc_include) "#include "../include/include.h"\n" (#include) "#include" (string_literal) ""../include/include.h"" (") """ (string_content) "../include/include.h" (") """ (function_definition) "void manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)\n{\n manage_sky(obj);\n manage_sky(obj2);\n manage_sky(obj3);\n manage_sky(obj4);\n}" (primitive_type) "void" (function_declarator) "manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)" (identifier) "manage_all_s" (parameter_list) "(object* obj, object* obj2, object* obj3, object* obj4)" (() "(" (parameter_declaration) "object* obj" (type_identifier) "object" (pointer_declarator) "* obj" (*) "*" (identifier) "obj" (,) "," (parameter_declaration) "object* obj2" (type_identifier) "object" (pointer_declarator) "* obj2" (*) "*" (identifier) "obj2" (,) "," (parameter_declaration) "object* obj3" (type_identifier) "object" (pointer_declarator) "* obj3" (*) "*" (identifier) "obj3" (,) "," (parameter_declaration) "object* obj4" (type_identifier) "object" (pointer_declarator) "* obj4" (*) "*" (identifier) "obj4" ()) ")" (compound_statement) "{\n manage_sky(obj);\n manage_sky(obj2);\n manage_sky(obj3);\n manage_sky(obj4);\n}" ({) "{" (expression_statement) "manage_sky(obj);" (call_expression) "manage_sky(obj)" (identifier) "manage_sky" (argument_list) "(obj)" (() "(" (identifier) "obj" ()) ")" (;) ";" (expression_statement) "manage_sky(obj2);" (call_expression) "manage_sky(obj2)" (identifier) "manage_sky" (argument_list) "(obj2)" (() "(" (identifier) "obj2" ()) ")" (;) ";" (expression_statement) "manage_sky(obj3);" (call_expression) "manage_sky(obj3)" (identifier) "manage_sky" (argument_list) "(obj3)" (() "(" (identifier) "obj3" ()) ")" (;) ";" (expression_statement) "manage_sky(obj4);" (call_expression) "manage_sky(obj4)" (identifier) "manage_sky" (argument_list) "(obj4)" (() "(" (identifier) "obj4" ()) ")" (;) ";" (}) "}" (function_definition) "void positions_all(World world, Obstacles *obst)\n{\n positions(world.skies, world.grounds, world.vegies);\n positions_obst(obst);\n}" (primitive_type) "void" (function_declarator) "positions_all(World world, Obstacles *obst)" (identifier) "positions_all" (parameter_list) "(World world, Obstacles *obst)" (() "(" (parameter_declaration) "World world" (type_identifier) "World" (identifier) "world" (,) "," (parameter_declaration) "Obstacles *obst" (type_identifier) "Obstacles" (pointer_declarator) "*obst" (*) "*" (identifier) "obst" ()) ")" (compound_statement) "{\n positions(world.skies, world.grounds, world.vegies);\n positions_obst(obst);\n}" ({) "{" (expression_statement) "positions(world.skies, world.grounds, world.vegies);" (call_expression) "positions(world.skies, world.grounds, world.vegies)" (identifier) "positions" (argument_list) "(world.skies, world.grounds, world.vegies)" (() "(" (field_expression) "world.skies" (identifier) "world" (.) "." (field_identifier) "skies" (,) "," (field_expression) "world.grounds" (identifier) "world" (.) "." (field_identifier) "grounds" (,) "," (field_expression) "world.vegies" (identifier) "world" (.) "." (field_identifier) "vegies" ()) ")" (;) ";" (expression_statement) "positions_obst(obst);" (call_expression) "positions_obst(obst)" (identifier) "positions_obst" (argument_list) "(obst)" (() "(" (identifier) "obst" ()) ")" (;) ";" (}) "}"
127
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.25, "nodes": 76, "errors": 0, "source_hash": "44d136f82e73f3165d9c603ff1ceecfdc8ca82ffc1c864eabdd8f1aae728de34", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"../include/game_objects.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"../include/game_objects.h\"", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 36}}, {"id": 3, "type": "preproc_include", "text": "#include \"../include/include.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": "\"../include/include.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 31}}, {"id": 6, "type": "function_definition", "text": "void manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)\n{\n\tmanage_sky(obj);\n\tmanage_sky(obj2);\n\tmanage_sky(obj3);\n\tmanage_sky(obj4);\n}", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 8, "type": "function_declarator", "text": "manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)", "parent": 6, "children": [9, 10], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 72}}, {"id": 9, "type": "identifier", "text": "manage_all_s", "parent": 8, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 17}}, {"id": 10, "type": "parameter_list", "text": "(object* obj, object* obj2, object* obj3, object* obj4)", "parent": 8, "children": [11, 16, 21, 26], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 72}}, {"id": 11, "type": "parameter_declaration", "text": "object* obj", "parent": 10, "children": [12, 13], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 29}}, {"id": 12, "type": "type_identifier", "text": "object", "parent": 11, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 24}}, {"id": 13, "type": "pointer_declarator", "text": "* obj", "parent": 11, "children": [14, 15], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 29}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 25}}, {"id": 15, "type": "identifier", "text": "obj", "parent": 13, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 29}}, {"id": 16, "type": "parameter_declaration", "text": "object* obj2", "parent": 10, "children": [17, 18], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 43}}, {"id": 17, "type": "type_identifier", "text": "object", "parent": 16, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 37}}, {"id": 18, "type": "pointer_declarator", "text": "* obj2", "parent": 16, "children": [19, 20], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 43}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 38}}, {"id": 20, "type": "identifier", "text": "obj2", "parent": 18, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 43}}, {"id": 21, "type": "parameter_declaration", "text": "object* obj3", "parent": 10, "children": [22, 23], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 57}}, {"id": 22, "type": "type_identifier", "text": "object", "parent": 21, "children": [], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 51}}, {"id": 23, "type": "pointer_declarator", "text": "* obj3", "parent": 21, "children": [24, 25], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 57}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 52}}, {"id": 25, "type": "identifier", "text": "obj3", "parent": 23, "children": [], "start_point": {"row": 10, "column": 53}, "end_point": {"row": 10, "column": 57}}, {"id": 26, "type": "parameter_declaration", "text": "object* obj4", "parent": 10, "children": [27, 28], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 71}}, {"id": 27, "type": "type_identifier", "text": "object", "parent": 26, "children": [], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 65}}, {"id": 28, "type": "pointer_declarator", "text": "* obj4", "parent": 26, "children": [29, 30], "start_point": {"row": 10, "column": 65}, "end_point": {"row": 10, "column": 71}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 10, "column": 65}, "end_point": {"row": 10, "column": 66}}, {"id": 30, "type": "identifier", "text": "obj4", "parent": 28, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 71}}, {"id": 31, "type": "call_expression", "text": "manage_sky(obj)", "parent": 6, "children": [32, 33], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 16}}, {"id": 32, "type": "identifier", "text": "manage_sky", "parent": 31, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 11}}, {"id": 33, "type": "argument_list", "text": "(obj)", "parent": 31, "children": [34], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 16}}, {"id": 34, "type": "identifier", "text": "obj", "parent": 33, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 15}}, {"id": 35, "type": "call_expression", "text": "manage_sky(obj2)", "parent": 6, "children": [36, 37], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 17}}, {"id": 36, "type": "identifier", "text": "manage_sky", "parent": 35, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 11}}, {"id": 37, "type": "argument_list", "text": "(obj2)", "parent": 35, "children": [38], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 17}}, {"id": 38, "type": "identifier", "text": "obj2", "parent": 37, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 16}}, {"id": 39, "type": "call_expression", "text": "manage_sky(obj3)", "parent": 6, "children": [40, 41], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 17}}, {"id": 40, "type": "identifier", "text": "manage_sky", "parent": 39, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 11}}, {"id": 41, "type": "argument_list", "text": "(obj3)", "parent": 39, "children": [42], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 17}}, {"id": 42, "type": "identifier", "text": "obj3", "parent": 41, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 16}}, {"id": 43, "type": "call_expression", "text": "manage_sky(obj4)", "parent": 6, "children": [44, 45], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 17}}, {"id": 44, "type": "identifier", "text": "manage_sky", "parent": 43, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 11}}, {"id": 45, "type": "argument_list", "text": "(obj4)", "parent": 43, "children": [46], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 17}}, {"id": 46, "type": "identifier", "text": "obj4", "parent": 45, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 16}}, {"id": 47, "type": "function_definition", "text": "void positions_all(World world, Obstacles *obst)\n{\n\tpositions(world.skies, world.grounds, world.vegies);\n\tpositions_obst(obst);\n}", "parent": null, "children": [48, 49], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 49, "type": "function_declarator", "text": "positions_all(World world, Obstacles *obst)", "parent": 47, "children": [50, 51], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 48}}, {"id": 50, "type": "identifier", "text": "positions_all", "parent": 49, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 18}}, {"id": 51, "type": "parameter_list", "text": "(World world, Obstacles *obst)", "parent": 49, "children": [52, 55], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 48}}, {"id": 52, "type": "parameter_declaration", "text": "World world", "parent": 51, "children": [53, 54], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 30}}, {"id": 53, "type": "type_identifier", "text": "World", "parent": 52, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 24}}, {"id": 54, "type": "identifier", "text": "world", "parent": 52, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 30}}, {"id": 55, "type": "parameter_declaration", "text": "Obstacles *obst", "parent": 51, "children": [56, 57], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 47}}, {"id": 56, "type": "type_identifier", "text": "Obstacles", "parent": 55, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 41}}, {"id": 57, "type": "pointer_declarator", "text": "*obst", "parent": 55, "children": [58, 59], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 47}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 43}}, {"id": 59, "type": "identifier", "text": "obst", "parent": 57, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 47}}, {"id": 60, "type": "call_expression", "text": "positions(world.skies, world.grounds, world.vegies)", "parent": 47, "children": [61, 62], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 52}}, {"id": 61, "type": "identifier", "text": "positions", "parent": 60, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 62, "type": "argument_list", "text": "(world.skies, world.grounds, world.vegies)", "parent": 60, "children": [63, 66, 69], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 52}}, {"id": 63, "type": "field_expression", "text": "world.skies", "parent": 62, "children": [64, 65], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 22}}, {"id": 64, "type": "identifier", "text": "world", "parent": 63, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 16}}, {"id": 65, "type": "field_identifier", "text": "skies", "parent": 63, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 22}}, {"id": 66, "type": "field_expression", "text": "world.grounds", "parent": 62, "children": [67, 68], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 37}}, {"id": 67, "type": "identifier", "text": "world", "parent": 66, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 29}}, {"id": 68, "type": "field_identifier", "text": "grounds", "parent": 66, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 37}}, {"id": 69, "type": "field_expression", "text": "world.vegies", "parent": 62, "children": [70, 71], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 51}}, {"id": 70, "type": "identifier", "text": "world", "parent": 69, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 44}}, {"id": 71, "type": "field_identifier", "text": "vegies", "parent": 69, "children": [], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 51}}, {"id": 72, "type": "call_expression", "text": "positions_obst(obst)", "parent": 47, "children": [73, 74], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 21}}, {"id": 73, "type": "identifier", "text": "positions_obst", "parent": 72, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 15}}, {"id": 74, "type": "argument_list", "text": "(obst)", "parent": 72, "children": [75], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 21}}, {"id": 75, "type": "identifier", "text": "obst", "parent": 74, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 20}}]}, "node_categories": {"declarations": {"functions": [6, 8, 47, 49], "variables": [11, 16, 21, 26, 52, 55], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [31, 35, 39, 43, 60, 63, 66, 69, 72], "assignments": [], "loops": [], "conditionals": [9, 12, 15, 17, 20, 22, 25, 27, 30, 32, 34, 36, 38, 40, 42, 44, 46, 50, 53, 54, 56, 59, 61, 64, 65, 67, 68, 70, 71, 73, 75], "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": "manage_all_s", "text_snippet": "void manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)\n{\n\tmanage_sky(obj);\n\tmanage"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)"}, {"node_id": 47, "universal_type": "function", "name": "positions_all", "text_snippet": "void positions_all(World world, Obstacles *obst)\n{\n\tpositions(world.skies, world.grounds, world.vegi"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "positions_all(World world, Obstacles *obst)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"../include/game_objects.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"../include/include.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n** EPITECH PROJECT, 2018\n** position_sky.c\n** File description:\n** Function that manages the sky's position\n*/\n\n#include \"../include/game_objects.h\"\n#include \"../include/include.h\"\n\nvoid manage_all_s(object* obj, object* obj2, object* obj3, object* obj4)\n{\n\tmanage_sky(obj);\n\tmanage_sky(obj2);\n\tmanage_sky(obj3);\n\tmanage_sky(obj4);\n}\n\nvoid positions_all(World world, Obstacles *obst)\n{\n\tpositions(world.skies, world.grounds, world.vegies);\n\tpositions_obst(obst);\n}\n"}
181
c
/* Student ID/Name: 2019120154 <NAME> * Date: 02/02/2022 * Course Code: CMPS2212 | Section: 1 * Program Name: FloydAck_2019120154_Lab1 */ #ifndef MAINMENU_H #define MAINMENU_H #include "Chat.h" #include <QWidget> #include <QColorDialog> #include <QPushButton> #include <QHBoxLayout> #include <QVBoxLayout> #include <QLineEdit> #include <QLabel> #include <QColor> #include <QList> class MainMenu : public QWidget { Q_OBJECT public: explicit MainMenu(QWidget *parent = nullptr); private: QList<Chat *> chatWindows; QLineEdit *userInput; private slots: void onAddChat(); }; #endif // MAINMENU_H
16.81
37
(translation_unit) "/* Student ID/Name: 2019120154 <NAME> \n * Date: 02/02/2022 \n * Course Code: CMPS2212 | Section: 1 \n * Program Name: FloydAck_2019120154_Lab1 \n*/ \n \n#ifndef MAINMENU_H \n#define MAINMENU_H \n \n#include "Chat.h" \n \n#include <QWidget> \n \n#include <QColorDialog> \n#include <QPushButton> \n#include <QHBoxLayout> \n#include <QVBoxLayout> \n#include <QLineEdit> \n#include <QLabel> \n#include <QColor> \n#include <QList> \n \nclass MainMenu : public QWidget \n{ \n Q_OBJECT \npublic: \n explicit MainMenu(QWidget *parent = nullptr); \n \nprivate: \n QList<Chat *> chatWindows; \n QLineEdit *userInput; \n \nprivate slots: \n void onAddChat(); \n}; \n \n#endif // MAINMENU_H \n" (comment) "/* Student ID/Name: 2019120154 <NAME> \n * Date: 02/02/2022 \n * Course Code: CMPS2212 | Section: 1 \n * Program Name: FloydAck_2019120154_Lab1 \n*/" (preproc_ifdef) "#ifndef MAINMENU_H \n#define MAINMENU_H \n \n#include "Chat.h" \n \n#include <QWidget> \n \n#include <QColorDialog> \n#include <QPushButton> \n#include <QHBoxLayout> \n#include <QVBoxLayout> \n#include <QLineEdit> \n#include <QLabel> \n#include <QColor> \n#include <QList> \n \nclass MainMenu : public QWidget \n{ \n Q_OBJECT \npublic: \n explicit MainMenu(QWidget *parent = nullptr); \n \nprivate: \n QList<Chat *> chatWindows; \n QLineEdit *userInput; \n \nprivate slots: \n void onAddChat(); \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "MAINMENU_H" (preproc_def) "#define MAINMENU_H \n" (#define) "#define" (identifier) "MAINMENU_H" (preproc_include) "#include "Chat.h" \n" (#include) "#include" (string_literal) ""Chat.h"" (") """ (string_content) "Chat.h" (") """ (preproc_include) "#include <QWidget> \n" (#include) "#include" (system_lib_string) "<QWidget>" (preproc_include) "#include <QColorDialog> \n" (#include) "#include" (system_lib_string) "<QColorDialog>" (preproc_include) "#include <QPushButton> \n" (#include) "#include" (system_lib_string) "<QPushButton>" (preproc_include) "#include <QHBoxLayout> \n" (#include) "#include" (system_lib_string) "<QHBoxLayout>" (preproc_include) "#include <QVBoxLayout> \n" (#include) "#include" (system_lib_string) "<QVBoxLayout>" (preproc_include) "#include <QLineEdit> \n" (#include) "#include" (system_lib_string) "<QLineEdit>" (preproc_include) "#include <QLabel> \n" (#include) "#include" (system_lib_string) "<QLabel>" (preproc_include) "#include <QColor> \n" (#include) "#include" (system_lib_string) "<QColor>" (preproc_include) "#include <QList> \n" (#include) "#include" (system_lib_string) "<QList>" (function_definition) "class MainMenu : public QWidget \n{ \n Q_OBJECT \npublic: \n explicit MainMenu(QWidget *parent = nullptr); \n \nprivate: \n QList<Chat *> chatWindows; \n QLineEdit *userInput; \n \nprivate slots: \n void onAddChat(); \n}" (type_identifier) "class" (identifier) "MainMenu" (ERROR) ": public QWidget" (:) ":" (identifier) "public" (identifier) "QWidget" (compound_statement) "{ \n Q_OBJECT \npublic: \n explicit MainMenu(QWidget *parent = nullptr); \n \nprivate: \n QList<Chat *> chatWindows; \n QLineEdit *userInput; \n \nprivate slots: \n void onAddChat(); \n}" ({) "{" (declaration) "Q_OBJECT \npublic: \n explicit MainMenu(QWidget *parent = nullptr);" (type_identifier) "Q_OBJECT" (ERROR) "public: \n explicit" (identifier) "public" (:) ":" (identifier) "explicit" (init_declarator) "MainMenu(QWidget *parent = nullptr" (function_declarator) "MainMenu(QWidget *parent" (identifier) "MainMenu" (parameter_list) "(QWidget *parent" (() "(" (parameter_declaration) "QWidget *parent" (type_identifier) "QWidget" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "private: \n QList<Chat *> chatWindows;" (statement_identifier) "private" (:) ":" (expression_statement) "QList<Chat *> chatWindows;" (binary_expression) "QList<Chat *> chatWindows" (binary_expression) "QList<Chat" (identifier) "QList" (<) "<" (identifier) "Chat" (ERROR) "*" (*) "*" (>) ">" (identifier) "chatWindows" (;) ";" (declaration) "QLineEdit *userInput;" (type_identifier) "QLineEdit" (pointer_declarator) "*userInput" (*) "*" (identifier) "userInput" (;) ";" (ERROR) "private slots:" (type_identifier) "private" (identifier) "slots" (:) ":" (declaration) "void onAddChat();" (primitive_type) "void" (function_declarator) "onAddChat()" (identifier) "onAddChat" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// MAINMENU_H "
110
5
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.81, "nodes": 79, "errors": 0, "source_hash": "e7932361dbbfb1f466b376ce1ceeb440818792a814c8ac7102898b02a26c09d9", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MAINMENU_H\r\n#define MAINMENU_H\r\n\r\n#include \"Chat.h\"\r\n\r\n#include <QWidget>\r\n\r\n#include <QColorDialog>\r\n#include <QPushButton>\r\n#include <QHBoxLayout>\r\n#include <QVBoxLayout>\r\n#include <QLineEdit>\r\n#include <QLabel>\r\n#include <QColor>\r\n#include <QList>\r\n\r\nclass MainMenu : public QWidget\r\n{\r\n Q_OBJECT\r\npublic:\r\n explicit MainMenu(QWidget *parent = nullptr);\r\n\r\nprivate:\r\n QList<Chat *> chatWindows;\r\n QLineEdit *userInput;\r\n\r\nprivate slots:\r\n void onAddChat();\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 78], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "identifier", "text": "MAINMENU_H", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define MAINMENU_H\r\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": "MAINMENU_H", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"Chat.h\"\r\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": "\"Chat.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <QWidget>\r\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": "system_lib_string", "text": "<QWidget>", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <QColorDialog>\r\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": "system_lib_string", "text": "<QColorDialog>", "parent": 12, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include <QPushButton>\r\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": "system_lib_string", "text": "<QPushButton>", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <QHBoxLayout>\r\n", "parent": 0, "children": [19, 20], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<QHBoxLayout>", "parent": 18, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 22}}, {"id": 21, "type": "preproc_include", "text": "#include <QVBoxLayout>\r\n", "parent": 0, "children": [22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<QVBoxLayout>", "parent": 21, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include <QLineEdit>\r\n", "parent": 0, "children": [25, 26], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<QLineEdit>", "parent": 24, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 27, "type": "preproc_include", "text": "#include <QLabel>\r\n", "parent": 0, "children": [28, 29], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<QLabel>", "parent": 27, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 30, "type": "preproc_include", "text": "#include <QColor>\r\n", "parent": 0, "children": [31, 32], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<QColor>", "parent": 30, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 33, "type": "preproc_include", "text": "#include <QList>\r\n", "parent": 0, "children": [34, 35], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<QList>", "parent": 33, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 36, "type": "function_definition", "text": "class MainMenu : public QWidget\r\n{\r\n Q_OBJECT\r\npublic:\r\n explicit MainMenu(QWidget *parent = nullptr);\r\n\r\nprivate:\r\n QList<Chat *> chatWindows;\r\n QLineEdit *userInput;\r\n\r\nprivate slots:\r\n void onAddChat();\r\n}", "parent": 0, "children": [37, 38], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 37, "type": "identifier", "text": "MainMenu", "parent": 36, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 38, "type": "ERROR", "text": ": public QWidget", "parent": 36, "children": [39], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 31}}, {"id": 39, "type": "identifier", "text": "QWidget", "parent": 38, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 31}}, {"id": 40, "type": "declaration", "text": "Q_OBJECT\r\npublic:\r\n explicit MainMenu(QWidget *parent = nullptr);", "parent": 36, "children": [41, 42, 44], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 26, "column": 49}}, {"id": 41, "type": "type_identifier", "text": "Q_OBJECT", "parent": 40, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 42, "type": "ERROR", "text": "public:\r\n explicit", "parent": 40, "children": [43], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 12}}, {"id": 43, "type": "identifier", "text": "explicit", "parent": 42, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 44, "type": "init_declarator", "text": "MainMenu(QWidget *parent = nullptr", "parent": 40, "children": [45, 53, 54], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 47}}, {"id": 45, "type": "function_declarator", "text": "MainMenu(QWidget *parent", "parent": 44, "children": [46, 47], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 37}}, {"id": 46, "type": "identifier", "text": "MainMenu", "parent": 45, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 21}}, {"id": 47, "type": "parameter_list", "text": "(QWidget *parent", "parent": 45, "children": [48], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 37}}, {"id": 48, "type": "parameter_declaration", "text": "QWidget *parent", "parent": 47, "children": [49, 50], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 37}}, {"id": 49, "type": "type_identifier", "text": "QWidget", "parent": 48, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 29}}, {"id": 50, "type": "pointer_declarator", "text": "*parent", "parent": 48, "children": [51, 52], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 37}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 31}}, {"id": 52, "type": "identifier", "text": "parent", "parent": 50, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 37}}, {"id": 53, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 39}}, {"id": 54, "type": "null", "text": "nullptr", "parent": 44, "children": [55], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 47}}, {"id": 55, "type": "nullptr", "text": "nullptr", "parent": 54, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 47}}, {"id": 56, "type": "labeled_statement", "text": "private:\r\n QList<Chat *> chatWindows;", "parent": 36, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 30}}, {"id": 57, "type": "binary_expression", "text": "QList<Chat *> chatWindows", "parent": 56, "children": [58, 62, 64, 65], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 29}}, {"id": 58, "type": "binary_expression", "text": "QList<Chat", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 14}}, {"id": 59, "type": "identifier", "text": "QList", "parent": 58, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 9}}, {"id": 60, "type": "<", "text": "<", "parent": 58, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 10}}, {"id": 61, "type": "identifier", "text": "Chat", "parent": 58, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 14}}, {"id": 62, "type": "ERROR", "text": "*", "parent": 57, "children": [63], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 64, "type": ">", "text": ">", "parent": 57, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 65, "type": "identifier", "text": "chatWindows", "parent": 57, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 29}}, {"id": 66, "type": "declaration", "text": "QLineEdit *userInput;", "parent": 36, "children": [67, 68], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 25}}, {"id": 67, "type": "type_identifier", "text": "QLineEdit", "parent": 66, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 68, "type": "pointer_declarator", "text": "*userInput", "parent": 66, "children": [69, 70], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 24}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 15}}, {"id": 70, "type": "identifier", "text": "userInput", "parent": 68, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 24}}, {"id": 71, "type": "ERROR", "text": "private slots:", "parent": 36, "children": [72], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 14}}, {"id": 72, "type": "identifier", "text": "slots", "parent": 71, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 13}}, {"id": 73, "type": "declaration", "text": "void onAddChat();", "parent": 36, "children": [74, 75], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 21}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 75, "type": "function_declarator", "text": "onAddChat()", "parent": 73, "children": [76, 77], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 20}}, {"id": 76, "type": "identifier", "text": "onAddChat", "parent": 75, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 20}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36, 45, 75], "variables": [40, 48, 66, 73], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": []}, "statements": {"expressions": [57, 58], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 37, 39, 41, 43, 46, 49, 52, 59, 61, 65, 67, 70, 72, 76, 78], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "MainMenu", "text_snippet": "class MainMenu : public QWidget\r\n{\r\n Q_OBJECT\r\npublic:\r\n explicit MainMenu(QWidget *parent = n"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "MainMenu(QWidget *parent"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "onAddChat()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Chat.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QWidget>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QColorDialog>\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QPushButton>\r\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QHBoxLayout>\r\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QVBoxLayout>\r\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <QLineEdit>\r\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <QLabel>\r\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <QColor>\r\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <QList>\r\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "/* Student ID/Name: 2019120154 <NAME>\r\n * Date: 02/02/2022\r\n * Course Code: CMPS2212 | Section: 1\r\n * Program Name: FloydAck_2019120154_Lab1\r\n*/\r\n\r\n#ifndef MAINMENU_H\r\n#define MAINMENU_H\r\n\r\n#include \"Chat.h\"\r\n\r\n#include <QWidget>\r\n\r\n#include <QColorDialog>\r\n#include <QPushButton>\r\n#include <QHBoxLayout>\r\n#include <QVBoxLayout>\r\n#include <QLineEdit>\r\n#include <QLabel>\r\n#include <QColor>\r\n#include <QList>\r\n\r\nclass MainMenu : public QWidget\r\n{\r\n Q_OBJECT\r\npublic:\r\n explicit MainMenu(QWidget *parent = nullptr);\r\n\r\nprivate:\r\n QList<Chat *> chatWindows;\r\n QLineEdit *userInput;\r\n\r\nprivate slots:\r\n void onAddChat();\r\n};\r\n\r\n#endif // MAINMENU_H\r\n"}
182
c
#include <sys/mkdir.h> #include <sys/get_syscall_id.h> int sys_touch_id = -1; void touch(const char* path) { if (sys_touch_id == -1) { sys_touch_id = get_syscall_id("sys_touch"); } __asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path)); }
27.78
9
(translation_unit) "#include <sys/mkdir.h>\n\n#include <sys/get_syscall_id.h>\n\nint sys_touch_id = -1;\n\nvoid touch(const char* path) {\n if (sys_touch_id == -1) {\n sys_touch_id = get_syscall_id("sys_touch");\n }\n\n __asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path));\n}" (preproc_include) "#include <sys/mkdir.h>\n" (#include) "#include" (system_lib_string) "<sys/mkdir.h>" (preproc_include) "#include <sys/get_syscall_id.h>\n" (#include) "#include" (system_lib_string) "<sys/get_syscall_id.h>" (declaration) "int sys_touch_id = -1;" (primitive_type) "int" (init_declarator) "sys_touch_id = -1" (identifier) "sys_touch_id" (=) "=" (number_literal) "-1" (;) ";" (function_definition) "void touch(const char* path) {\n if (sys_touch_id == -1) {\n sys_touch_id = get_syscall_id("sys_touch");\n }\n\n __asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path));\n}" (primitive_type) "void" (function_declarator) "touch(const char* path)" (identifier) "touch" (parameter_list) "(const char* path)" (() "(" (parameter_declaration) "const char* path" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* path" (*) "*" (identifier) "path" ()) ")" (compound_statement) "{\n if (sys_touch_id == -1) {\n sys_touch_id = get_syscall_id("sys_touch");\n }\n\n __asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path));\n}" ({) "{" (if_statement) "if (sys_touch_id == -1) {\n sys_touch_id = get_syscall_id("sys_touch");\n }" (if) "if" (parenthesized_expression) "(sys_touch_id == -1)" (() "(" (binary_expression) "sys_touch_id == -1" (identifier) "sys_touch_id" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{\n sys_touch_id = get_syscall_id("sys_touch");\n }" ({) "{" (expression_statement) "sys_touch_id = get_syscall_id("sys_touch");" (assignment_expression) "sys_touch_id = get_syscall_id("sys_touch")" (identifier) "sys_touch_id" (=) "=" (call_expression) "get_syscall_id("sys_touch")" (identifier) "get_syscall_id" (argument_list) "("sys_touch")" (() "(" (string_literal) ""sys_touch"" (") """ (string_content) "sys_touch" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "__asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path));" (gnu_asm_expression) "__asm__ __volatile__ ("int $0x30" : : "a" (sys_touch_id), "b" (path))" (__asm__) "__asm__" (gnu_asm_qualifier) "__volatile__" (__volatile__) "__volatile__" (() "(" (string_literal) ""int $0x30"" (") """ (string_content) "int $0x30" (") """ (gnu_asm_output_operand_list) ":" (:) ":" (gnu_asm_input_operand_list) ": "a" (sys_touch_id), "b" (path)" (:) ":" (gnu_asm_input_operand) ""a" (sys_touch_id)" (string_literal) ""a"" (") """ (string_content) "a" (") """ (() "(" (identifier) "sys_touch_id" ()) ")" (,) "," (gnu_asm_input_operand) ""b" (path)" (string_literal) ""b"" (") """ (string_content) "b" (") """ (() "(" (identifier) "path" ()) ")" ()) ")" (;) ";" (}) "}"
90
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.78, "nodes": 47, "errors": 0, "source_hash": "43e24882dddc6b7efddaa1b7b3a059b5a43e3c544d384af8b2937d8b7ac57219", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <sys/mkdir.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<sys/mkdir.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_include", "text": "#include <sys/get_syscall_id.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<sys/get_syscall_id.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 31}}, {"id": 6, "type": "declaration", "text": "int sys_touch_id = -1;", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 22}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 8, "type": "init_declarator", "text": "sys_touch_id = -1", "parent": 6, "children": [9, 10, 11], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 21}}, {"id": 9, "type": "identifier", "text": "sys_touch_id", "parent": 8, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 16}}, {"id": 10, "type": "=", "text": "=", "parent": 8, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 18}}, {"id": 11, "type": "number_literal", "text": "-1", "parent": 8, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 21}}, {"id": 12, "type": "function_definition", "text": "void touch(const char* path) {\n\tif (sys_touch_id == -1) {\n\t\tsys_touch_id = get_syscall_id(\"sys_touch\");\n\t}\n\n\t__asm__ __volatile__ (\"int $0x30\" : : \"a\" (sys_touch_id), \"b\" (path));\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "touch(const char* path)", "parent": 12, "children": [15, 16], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 28}}, {"id": 15, "type": "identifier", "text": "touch", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 10}}, {"id": 16, "type": "parameter_list", "text": "(const char* path)", "parent": 14, "children": [17], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 28}}, {"id": 17, "type": "parameter_declaration", "text": "const char* path", "parent": 16, "children": [18, 19], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 27}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 21}}, {"id": 19, "type": "pointer_declarator", "text": "* path", "parent": 17, "children": [20, 21], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 27}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 22}}, {"id": 21, "type": "identifier", "text": "path", "parent": 19, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 27}}, {"id": 22, "type": "if_statement", "text": "if (sys_touch_id == -1) {\n\t\tsys_touch_id = get_syscall_id(\"sys_touch\");\n\t}", "parent": 12, "children": [23], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 9, "column": 2}}, {"id": 23, "type": "parenthesized_expression", "text": "(sys_touch_id == -1)", "parent": 22, "children": [24], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 24}}, {"id": 24, "type": "binary_expression", "text": "sys_touch_id == -1", "parent": 23, "children": [25, 26, 27], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 23}}, {"id": 25, "type": "identifier", "text": "sys_touch_id", "parent": 24, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 17}}, {"id": 26, "type": "==", "text": "==", "parent": 24, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 20}}, {"id": 27, "type": "number_literal", "text": "-1", "parent": 24, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 23}}, {"id": 28, "type": "assignment_expression", "text": "sys_touch_id = get_syscall_id(\"sys_touch\")", "parent": 22, "children": [29, 30, 31], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 44}}, {"id": 29, "type": "identifier", "text": "sys_touch_id", "parent": 28, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 14}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 16}}, {"id": 31, "type": "call_expression", "text": "get_syscall_id(\"sys_touch\")", "parent": 28, "children": [32, 33], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 44}}, {"id": 32, "type": "identifier", "text": "get_syscall_id", "parent": 31, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 31}}, {"id": 33, "type": "argument_list", "text": "(\"sys_touch\")", "parent": 31, "children": [34], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 44}}, {"id": 34, "type": "string_literal", "text": "\"sys_touch\"", "parent": 33, "children": [], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 43}}, {"id": 35, "type": "gnu_asm_expression", "text": "__asm__ __volatile__ (\"int $0x30\" : : \"a\" (sys_touch_id), \"b\" (path))", "parent": 12, "children": [36, 37, 39, 40], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 70}}, {"id": 36, "type": "__asm__", "text": "__asm__", "parent": 35, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 8}}, {"id": 37, "type": "gnu_asm_qualifier", "text": "__volatile__", "parent": 35, "children": [38], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 38, "type": "__volatile__", "text": "__volatile__", "parent": 37, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 39, "type": "string_literal", "text": "\"int $0x30\"", "parent": 35, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 34}}, {"id": 40, "type": "gnu_asm_input_operand_list", "text": ": \"a\" (sys_touch_id), \"b\" (path)", "parent": 35, "children": [41, 44], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 69}}, {"id": 41, "type": "gnu_asm_input_operand", "text": "\"a\" (sys_touch_id)", "parent": 40, "children": [42, 43], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 57}}, {"id": 42, "type": "string_literal", "text": "\"a\"", "parent": 41, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 42}}, {"id": 43, "type": "identifier", "text": "sys_touch_id", "parent": 41, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 56}}, {"id": 44, "type": "gnu_asm_input_operand", "text": "\"b\" (path)", "parent": 40, "children": [45, 46], "start_point": {"row": 11, "column": 59}, "end_point": {"row": 11, "column": 69}}, {"id": 45, "type": "string_literal", "text": "\"b\"", "parent": 44, "children": [], "start_point": {"row": 11, "column": 59}, "end_point": {"row": 11, "column": 62}}, {"id": 46, "type": "identifier", "text": "path", "parent": 44, "children": [], "start_point": {"row": 11, "column": 64}, "end_point": {"row": 11, "column": 68}}]}, "node_categories": {"declarations": {"functions": [12, 14], "variables": [6, 17], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [23, 24, 31, 35], "assignments": [28], "loops": [], "conditionals": [9, 15, 21, 22, 25, 29, 32, 37, 43, 46], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 11, 27, 34, 39, 42, 45], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "touch", "text_snippet": "void touch(const char* path) {\n\tif (sys_touch_id == -1) {\n\t\tsys_touch_id = get_syscall_id(\"sys_touch"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "touch(const char* path)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <sys/mkdir.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <sys/get_syscall_id.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <sys/mkdir.h>\n\n#include <sys/get_syscall_id.h>\n\nint sys_touch_id = -1;\n\nvoid touch(const char* path) {\n\tif (sys_touch_id == -1) {\n\t\tsys_touch_id = get_syscall_id(\"sys_touch\");\n\t}\n\n\t__asm__ __volatile__ (\"int $0x30\" : : \"a\" (sys_touch_id), \"b\" (path));\n}"}
183
c
/* * An rtc driver for the Dallas DS1742 * * Copyright (C) 2006 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Copyright (C) 2006 <NAME> <<EMAIL>> * - nvram size determined from resource * - this ds1742 driver now supports ds1743. */ #include <linux/bcd.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/jiffies.h> #include <linux/rtc.h> #include <linux/platform_device.h> #include <linux/io.h> #define DRV_VERSION "0.3" #define RTC_SIZE 8 #define RTC_CONTROL 0 #define RTC_CENTURY 0 #define RTC_SECONDS 1 #define RTC_MINUTES 2 #define RTC_HOURS 3 #define RTC_DAY 4 #define RTC_DATE 5 #define RTC_MONTH 6 #define RTC_YEAR 7 #define RTC_CENTURY_MASK 0x3f #define RTC_SECONDS_MASK 0x7f #define RTC_DAY_MASK 0x07 /* Bits in the Control/Century register */ #define RTC_WRITE 0x80 #define RTC_READ 0x40 /* Bits in the Seconds register */ #define RTC_STOP 0x80 /* Bits in the Day register */ #define RTC_BATT_FLAG 0x80 struct rtc_plat_data { struct rtc_device *rtc; void __iomem *ioaddr_nvram; void __iomem *ioaddr_rtc; size_t size_nvram; size_t size; unsigned long baseaddr; unsigned long last_jiffies; }; static int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm) { struct platform_device *pdev = to_platform_device(dev); struct rtc_plat_data *pdata = platform_get_drvdata(pdev); void __iomem *ioaddr = pdata->ioaddr_rtc; u8 century; century = BIN2BCD((tm->tm_year + 1900) / 100); writeb(RTC_WRITE, ioaddr + RTC_CONTROL); writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR); writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH); writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE); writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS); writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES); writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); /* RTC_CENTURY and RTC_CONTROL share same register */ writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); return 0; } static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm) { struct platform_device *pdev = to_platform_device(dev); struct rtc_plat_data *pdata = platform_get_drvdata(pdev); void __iomem *ioaddr = pdata->ioaddr_rtc; unsigned int year, month, day, hour, minute, second, week; unsigned int century; /* give enough time to update RTC in case of continuous read */ if (pdata->last_jiffies == jiffies) msleep(1); pdata->last_jiffies = jiffies; writeb(RTC_READ, ioaddr + RTC_CONTROL); second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; minute = readb(ioaddr + RTC_MINUTES); hour = readb(ioaddr + RTC_HOURS); day = readb(ioaddr + RTC_DATE); week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; month = readb(ioaddr + RTC_MONTH); year = readb(ioaddr + RTC_YEAR); century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; writeb(0, ioaddr + RTC_CONTROL); tm->tm_sec = BCD2BIN(second); tm->tm_min = BCD2BIN(minute); tm->tm_hour = BCD2BIN(hour); tm->tm_mday = BCD2BIN(day); tm->tm_wday = BCD2BIN(week); tm->tm_mon = BCD2BIN(month) - 1; /* year is 1900 + tm->tm_year */ tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900; if (rtc_valid_tm(tm) < 0) { dev_err(dev, "retrieved date/time is not valid.\n"); rtc_time_to_tm(0, tm); } return 0; } static const struct rtc_class_ops ds1742_rtc_ops = { .read_time = ds1742_rtc_read_time, .set_time = ds1742_rtc_set_time, }; static ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf, loff_t pos, size_t size) { struct platform_device *pdev = to_platform_device(container_of(kobj, struct device, kobj)); struct rtc_plat_data *pdata = platform_get_drvdata(pdev); void __iomem *ioaddr = pdata->ioaddr_nvram; ssize_t count; for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--) *buf++ = readb(ioaddr + pos++); return count; } static ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf, loff_t pos, size_t size) { struct platform_device *pdev = to_platform_device(container_of(kobj, struct device, kobj)); struct rtc_plat_data *pdata = platform_get_drvdata(pdev); void __iomem *ioaddr = pdata->ioaddr_nvram; ssize_t count; for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--) writeb(*buf++, ioaddr + pos++); return count; } static struct bin_attribute ds1742_nvram_attr = { .attr = { .name = "nvram", .mode = S_IRUGO | S_IWUGO, .owner = THIS_MODULE, }, .read = ds1742_nvram_read, .write = ds1742_nvram_write, }; static int __devinit ds1742_rtc_probe(struct platform_device *pdev) { struct rtc_device *rtc; struct resource *res; unsigned int cen, sec; struct rtc_plat_data *pdata = NULL; void __iomem *ioaddr = NULL; int ret = 0; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) return -ENODEV; pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); if (!pdata) return -ENOMEM; pdata->size = res->end - res->start + 1; if (!request_mem_region(res->start, pdata->size, pdev->name)) { ret = -EBUSY; goto out; } pdata->baseaddr = res->start; ioaddr = ioremap(pdata->baseaddr, pdata->size); if (!ioaddr) { ret = -ENOMEM; goto out; } pdata->ioaddr_nvram = ioaddr; pdata->size_nvram = pdata->size - RTC_SIZE; pdata->ioaddr_rtc = ioaddr + pdata->size_nvram; /* turn RTC on if it was not on */ ioaddr = pdata->ioaddr_rtc; sec = readb(ioaddr + RTC_SECONDS); if (sec & RTC_STOP) { sec &= RTC_SECONDS_MASK; cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; writeb(RTC_WRITE, ioaddr + RTC_CONTROL); writeb(sec, ioaddr + RTC_SECONDS); writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); } if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)) dev_warn(&pdev->dev, "voltage-low detected.\n"); rtc = rtc_device_register(pdev->name, &pdev->dev, &ds1742_rtc_ops, THIS_MODULE); if (IS_ERR(rtc)) { ret = PTR_ERR(rtc); goto out; } pdata->rtc = rtc; pdata->last_jiffies = jiffies; platform_set_drvdata(pdev, pdata); ds1742_nvram_attr.size = max(ds1742_nvram_attr.size, pdata->size_nvram); ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr); if (ret) goto out; return 0; out: if (pdata->rtc) rtc_device_unregister(pdata->rtc); if (pdata->ioaddr_nvram) iounmap(pdata->ioaddr_nvram); if (pdata->baseaddr) release_mem_region(pdata->baseaddr, pdata->size); kfree(pdata); return ret; } static int __devexit ds1742_rtc_remove(struct platform_device *pdev) { struct rtc_plat_data *pdata = platform_get_drvdata(pdev); sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr); rtc_device_unregister(pdata->rtc); iounmap(pdata->ioaddr_nvram); release_mem_region(pdata->baseaddr, pdata->size); kfree(pdata); return 0; } static struct platform_driver ds1742_rtc_driver = { .probe = ds1742_rtc_probe, .remove = __devexit_p(ds1742_rtc_remove), .driver = { .name = "ds1742", .owner = THIS_MODULE, }, }; static __init int ds1742_init(void) { return platform_driver_register(&ds1742_rtc_driver); } static __exit void ds1742_exit(void) { return platform_driver_unregister(&ds1742_rtc_driver); } module_init(ds1742_init); module_exit(ds1742_exit); MODULE_AUTHOR("<NAME> <<EMAIL>>"); MODULE_DESCRIPTION("Dallas DS1742 RTC driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION);
30.34
240
(translation_unit) "/*\n * An rtc driver for the Dallas DS1742\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n * - nvram size determined from resource\n * - this ds1742 driver now supports ds1743.\n */\n\n#include <linux/bcd.h>\n#include <linux/init.h>\n#include <linux/kernel.h>\n#include <linux/delay.h>\n#include <linux/jiffies.h>\n#include <linux/rtc.h>\n#include <linux/platform_device.h>\n#include <linux/io.h>\n\n#define DRV_VERSION "0.3"\n\n#define RTC_SIZE 8\n\n#define RTC_CONTROL 0\n#define RTC_CENTURY 0\n#define RTC_SECONDS 1\n#define RTC_MINUTES 2\n#define RTC_HOURS 3\n#define RTC_DAY 4\n#define RTC_DATE 5\n#define RTC_MONTH 6\n#define RTC_YEAR 7\n\n#define RTC_CENTURY_MASK 0x3f\n#define RTC_SECONDS_MASK 0x7f\n#define RTC_DAY_MASK 0x07\n\n/* Bits in the Control/Century register */\n#define RTC_WRITE 0x80\n#define RTC_READ 0x40\n\n/* Bits in the Seconds register */\n#define RTC_STOP 0x80\n\n/* Bits in the Day register */\n#define RTC_BATT_FLAG 0x80\n\nstruct rtc_plat_data {\n struct rtc_device *rtc;\n void __iomem *ioaddr_nvram;\n void __iomem *ioaddr_rtc;\n size_t size_nvram;\n size_t size;\n unsigned long baseaddr;\n unsigned long last_jiffies;\n};\n\nstatic int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)\n{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n u8 century;\n\n century = BIN2BCD((tm->tm_year + 1900) / 100);\n\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\n writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);\n writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);\n writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);\n writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);\n writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);\n writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);\n writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);\n\n /* RTC_CENTURY and RTC_CONTROL share same register */\n writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);\n writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n return 0;\n}\n\nstatic int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)\n{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n unsigned int year, month, day, hour, minute, second, week;\n unsigned int century;\n\n /* give enough time to update RTC in case of continuous read */\n if (pdata->last_jiffies == jiffies)\n msleep(1);\n pdata->last_jiffies = jiffies;\n writeb(RTC_READ, ioaddr + RTC_CONTROL);\n second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;\n minute = readb(ioaddr + RTC_MINUTES);\n hour = readb(ioaddr + RTC_HOURS);\n day = readb(ioaddr + RTC_DATE);\n week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;\n month = readb(ioaddr + RTC_MONTH);\n year = readb(ioaddr + RTC_YEAR);\n century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(0, ioaddr + RTC_CONTROL);\n tm->tm_sec = BCD2BIN(second);\n tm->tm_min = BCD2BIN(minute);\n tm->tm_hour = BCD2BIN(hour);\n tm->tm_mday = BCD2BIN(day);\n tm->tm_wday = BCD2BIN(week);\n tm->tm_mon = BCD2BIN(month) - 1;\n /* year is 1900 + tm->tm_year */\n tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;\n\n if (rtc_valid_tm(tm) < 0) {\n dev_err(dev, "retrieved date/time is not valid.\n");\n rtc_time_to_tm(0, tm);\n }\n return 0;\n}\n\nstatic const struct rtc_class_ops ds1742_rtc_ops = {\n .read_time = ds1742_rtc_read_time,\n .set_time = ds1742_rtc_set_time,\n};\n\nstatic ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)\n{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n *buf++ = readb(ioaddr + pos++);\n return count;\n}\n\nstatic ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)\n{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n writeb(*buf++, ioaddr + pos++);\n return count;\n}\n\nstatic struct bin_attribute ds1742_nvram_attr = {\n .attr = {\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n },\n .read = ds1742_nvram_read,\n .write = ds1742_nvram_write,\n};\n\nstatic int __devinit ds1742_rtc_probe(struct platform_device *pdev)\n{\n struct rtc_device *rtc;\n struct resource *res;\n unsigned int cen, sec;\n struct rtc_plat_data *pdata = NULL;\n void __iomem *ioaddr = NULL;\n int ret = 0;\n\n res = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n if (!res)\n return -ENODEV;\n pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);\n if (!pdata)\n return -ENOMEM;\n pdata->size = res->end - res->start + 1;\n if (!request_mem_region(res->start, pdata->size, pdev->name)) {\n ret = -EBUSY;\n goto out;\n }\n pdata->baseaddr = res->start;\n ioaddr = ioremap(pdata->baseaddr, pdata->size);\n if (!ioaddr) {\n ret = -ENOMEM;\n goto out;\n }\n pdata->ioaddr_nvram = ioaddr;\n pdata->size_nvram = pdata->size - RTC_SIZE;\n pdata->ioaddr_rtc = ioaddr + pdata->size_nvram;\n\n /* turn RTC on if it was not on */\n ioaddr = pdata->ioaddr_rtc;\n sec = readb(ioaddr + RTC_SECONDS);\n if (sec & RTC_STOP) {\n sec &= RTC_SECONDS_MASK;\n cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n writeb(sec, ioaddr + RTC_SECONDS);\n writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n }\n if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n dev_warn(&pdev->dev, "voltage-low detected.\n");\n\n rtc = rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE);\n if (IS_ERR(rtc)) {\n ret = PTR_ERR(rtc);\n goto out;\n }\n pdata->rtc = rtc;\n pdata->last_jiffies = jiffies;\n platform_set_drvdata(pdev, pdata);\n ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n pdata->size_nvram);\n ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n if (ret)\n goto out;\n return 0;\n out:\n if (pdata->rtc)\n rtc_device_unregister(pdata->rtc);\n if (pdata->ioaddr_nvram)\n iounmap(pdata->ioaddr_nvram);\n if (pdata->baseaddr)\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return ret;\n}\n\nstatic int __devexit ds1742_rtc_remove(struct platform_device *pdev)\n{\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\n sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n rtc_device_unregister(pdata->rtc);\n iounmap(pdata->ioaddr_nvram);\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return 0;\n}\n\nstatic struct platform_driver ds1742_rtc_driver = {\n .probe = ds1742_rtc_probe,\n .remove = __devexit_p(ds1742_rtc_remove),\n .driver = {\n .name = "ds1742",\n .owner = THIS_MODULE,\n },\n};\n\nstatic __init int ds1742_init(void)\n{\n return platform_driver_register(&ds1742_rtc_driver);\n}\n\nstatic __exit void ds1742_exit(void)\n{\n return platform_driver_unregister(&ds1742_rtc_driver);\n}\n\nmodule_init(ds1742_init);\nmodule_exit(ds1742_exit);\n\nMODULE_AUTHOR("<NAME> <<EMAIL>>");\nMODULE_DESCRIPTION("Dallas DS1742 RTC driver");\nMODULE_LICENSE("GPL");\nMODULE_VERSION(DRV_VERSION);\n" (comment) "/*\n * An rtc driver for the Dallas DS1742\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n * - nvram size determined from resource\n * - this ds1742 driver now supports ds1743.\n */" (preproc_include) "#include <linux/bcd.h>\n" (#include) "#include" (system_lib_string) "<linux/bcd.h>" (preproc_include) "#include <linux/init.h>\n" (#include) "#include" (system_lib_string) "<linux/init.h>" (preproc_include) "#include <linux/kernel.h>\n" (#include) "#include" (system_lib_string) "<linux/kernel.h>" (preproc_include) "#include <linux/delay.h>\n" (#include) "#include" (system_lib_string) "<linux/delay.h>" (preproc_include) "#include <linux/jiffies.h>\n" (#include) "#include" (system_lib_string) "<linux/jiffies.h>" (preproc_include) "#include <linux/rtc.h>\n" (#include) "#include" (system_lib_string) "<linux/rtc.h>" (preproc_include) "#include <linux/platform_device.h>\n" (#include) "#include" (system_lib_string) "<linux/platform_device.h>" (preproc_include) "#include <linux/io.h>\n" (#include) "#include" (system_lib_string) "<linux/io.h>" (preproc_def) "#define DRV_VERSION "0.3"\n" (#define) "#define" (identifier) "DRV_VERSION" (preproc_arg) ""0.3"" (preproc_def) "#define RTC_SIZE 8\n" (#define) "#define" (identifier) "RTC_SIZE" (preproc_arg) "8" (preproc_def) "#define RTC_CONTROL 0\n" (#define) "#define" (identifier) "RTC_CONTROL" (preproc_arg) "0" (preproc_def) "#define RTC_CENTURY 0\n" (#define) "#define" (identifier) "RTC_CENTURY" (preproc_arg) "0" (preproc_def) "#define RTC_SECONDS 1\n" (#define) "#define" (identifier) "RTC_SECONDS" (preproc_arg) "1" (preproc_def) "#define RTC_MINUTES 2\n" (#define) "#define" (identifier) "RTC_MINUTES" (preproc_arg) "2" (preproc_def) "#define RTC_HOURS 3\n" (#define) "#define" (identifier) "RTC_HOURS" (preproc_arg) "3" (preproc_def) "#define RTC_DAY 4\n" (#define) "#define" (identifier) "RTC_DAY" (preproc_arg) "4" (preproc_def) "#define RTC_DATE 5\n" (#define) "#define" (identifier) "RTC_DATE" (preproc_arg) "5" (preproc_def) "#define RTC_MONTH 6\n" (#define) "#define" (identifier) "RTC_MONTH" (preproc_arg) "6" (preproc_def) "#define RTC_YEAR 7\n" (#define) "#define" (identifier) "RTC_YEAR" (preproc_arg) "7" (preproc_def) "#define RTC_CENTURY_MASK 0x3f\n" (#define) "#define" (identifier) "RTC_CENTURY_MASK" (preproc_arg) "0x3f" (preproc_def) "#define RTC_SECONDS_MASK 0x7f\n" (#define) "#define" (identifier) "RTC_SECONDS_MASK" (preproc_arg) "0x7f" (preproc_def) "#define RTC_DAY_MASK 0x07\n" (#define) "#define" (identifier) "RTC_DAY_MASK" (preproc_arg) "0x07" (comment) "/* Bits in the Control/Century register */" (preproc_def) "#define RTC_WRITE 0x80\n" (#define) "#define" (identifier) "RTC_WRITE" (preproc_arg) "0x80" (preproc_def) "#define RTC_READ 0x40\n" (#define) "#define" (identifier) "RTC_READ" (preproc_arg) "0x40" (comment) "/* Bits in the Seconds register */" (preproc_def) "#define RTC_STOP 0x80\n" (#define) "#define" (identifier) "RTC_STOP" (preproc_arg) "0x80" (comment) "/* Bits in the Day register */" (preproc_def) "#define RTC_BATT_FLAG 0x80\n" (#define) "#define" (identifier) "RTC_BATT_FLAG" (preproc_arg) "0x80" (struct_specifier) "struct rtc_plat_data {\n struct rtc_device *rtc;\n void __iomem *ioaddr_nvram;\n void __iomem *ioaddr_rtc;\n size_t size_nvram;\n size_t size;\n unsigned long baseaddr;\n unsigned long last_jiffies;\n}" (struct) "struct" (type_identifier) "rtc_plat_data" (field_declaration_list) "{\n struct rtc_device *rtc;\n void __iomem *ioaddr_nvram;\n void __iomem *ioaddr_rtc;\n size_t size_nvram;\n size_t size;\n unsigned long baseaddr;\n unsigned long last_jiffies;\n}" ({) "{" (field_declaration) "struct rtc_device *rtc;" (struct_specifier) "struct rtc_device" (struct) "struct" (type_identifier) "rtc_device" (pointer_declarator) "*rtc" (*) "*" (field_identifier) "rtc" (;) ";" (field_declaration) "void __iomem *ioaddr_nvram;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*ioaddr_nvram" (*) "*" (field_identifier) "ioaddr_nvram" (;) ";" (field_declaration) "void __iomem *ioaddr_rtc;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*ioaddr_rtc" (*) "*" (field_identifier) "ioaddr_rtc" (;) ";" (field_declaration) "size_t size_nvram;" (primitive_type) "size_t" (field_identifier) "size_nvram" (;) ";" (field_declaration) "size_t size;" (primitive_type) "size_t" (field_identifier) "size" (;) ";" (field_declaration) "unsigned long baseaddr;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "baseaddr" (;) ";" (field_declaration) "unsigned long last_jiffies;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (field_identifier) "last_jiffies" (;) ";" (}) "}" (;) ";" (function_definition) "static int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)\n{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n u8 century;\n\n century = BIN2BCD((tm->tm_year + 1900) / 100);\n\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\n writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);\n writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);\n writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);\n writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);\n writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);\n writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);\n writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);\n\n /* RTC_CENTURY and RTC_CONTROL share same register */\n writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);\n writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)" (identifier) "ds1742_rtc_set_time" (parameter_list) "(struct device *dev, struct rtc_time *tm)" (() "(" (parameter_declaration) "struct device *dev" (struct_specifier) "struct device" (struct) "struct" (type_identifier) "device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "struct rtc_time *tm" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (pointer_declarator) "*tm" (*) "*" (identifier) "tm" ()) ")" (compound_statement) "{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n u8 century;\n\n century = BIN2BCD((tm->tm_year + 1900) / 100);\n\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\n writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);\n writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);\n writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);\n writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);\n writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);\n writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);\n writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);\n\n /* RTC_CENTURY and RTC_CONTROL share same register */\n writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);\n writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n return 0;\n}" ({) "{" (declaration) "struct platform_device *pdev = to_platform_device(dev);" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (init_declarator) "*pdev = to_platform_device(dev)" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" (=) "=" (call_expression) "to_platform_device(dev)" (identifier) "to_platform_device" (argument_list) "(dev)" (() "(" (identifier) "dev" ()) ")" (;) ";" (declaration) "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = platform_get_drvdata(pdev)" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (call_expression) "platform_get_drvdata(pdev)" (identifier) "platform_get_drvdata" (argument_list) "(pdev)" (() "(" (identifier) "pdev" ()) ")" (;) ";" (declaration) "void __iomem *ioaddr = pdata->ioaddr_rtc;" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (init_declarator) "*ioaddr = pdata->ioaddr_rtc" (pointer_declarator) "*ioaddr" (*) "*" (identifier) "ioaddr" (=) "=" (field_expression) "pdata->ioaddr_rtc" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_rtc" (;) ";" (declaration) "u8 century;" (type_identifier) "u8" (identifier) "century" (;) ";" (expression_statement) "century = BIN2BCD((tm->tm_year + 1900) / 100);" (assignment_expression) "century = BIN2BCD((tm->tm_year + 1900) / 100)" (identifier) "century" (=) "=" (call_expression) "BIN2BCD((tm->tm_year + 1900) / 100)" (identifier) "BIN2BCD" (argument_list) "((tm->tm_year + 1900) / 100)" (() "(" (binary_expression) "(tm->tm_year + 1900) / 100" (parenthesized_expression) "(tm->tm_year + 1900)" (() "(" (binary_expression) "tm->tm_year + 1900" (field_expression) "tm->tm_year" (identifier) "tm" (->) "->" (field_identifier) "tm_year" (+) "+" (number_literal) "1900" ()) ")" (/) "/" (number_literal) "100" ()) ")" (;) ";" (expression_statement) "writeb(RTC_WRITE, ioaddr + RTC_CONTROL);" (call_expression) "writeb(RTC_WRITE, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(RTC_WRITE, ioaddr + RTC_CONTROL)" (() "(" (identifier) "RTC_WRITE" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);" (call_expression) "writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR)" (() "(" (call_expression) "BIN2BCD(tm->tm_year % 100)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_year % 100)" (() "(" (binary_expression) "tm->tm_year % 100" (field_expression) "tm->tm_year" (identifier) "tm" (->) "->" (field_identifier) "tm_year" (%) "%" (number_literal) "100" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_YEAR" (identifier) "ioaddr" (+) "+" (identifier) "RTC_YEAR" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);" (call_expression) "writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH)" (() "(" (call_expression) "BIN2BCD(tm->tm_mon + 1)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_mon + 1)" (() "(" (binary_expression) "tm->tm_mon + 1" (field_expression) "tm->tm_mon" (identifier) "tm" (->) "->" (field_identifier) "tm_mon" (+) "+" (number_literal) "1" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_MONTH" (identifier) "ioaddr" (+) "+" (identifier) "RTC_MONTH" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);" (call_expression) "writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY)" (() "(" (binary_expression) "BIN2BCD(tm->tm_wday) & RTC_DAY_MASK" (call_expression) "BIN2BCD(tm->tm_wday)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_wday)" (() "(" (field_expression) "tm->tm_wday" (identifier) "tm" (->) "->" (field_identifier) "tm_wday" ()) ")" (&) "&" (identifier) "RTC_DAY_MASK" (,) "," (binary_expression) "ioaddr + RTC_DAY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_DAY" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);" (call_expression) "writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE)" (() "(" (call_expression) "BIN2BCD(tm->tm_mday)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_mday)" (() "(" (field_expression) "tm->tm_mday" (identifier) "tm" (->) "->" (field_identifier) "tm_mday" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_DATE" (identifier) "ioaddr" (+) "+" (identifier) "RTC_DATE" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);" (call_expression) "writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS)" (() "(" (call_expression) "BIN2BCD(tm->tm_hour)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_hour)" (() "(" (field_expression) "tm->tm_hour" (identifier) "tm" (->) "->" (field_identifier) "tm_hour" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_HOURS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_HOURS" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);" (call_expression) "writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES)" (() "(" (call_expression) "BIN2BCD(tm->tm_min)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_min)" (() "(" (field_expression) "tm->tm_min" (identifier) "tm" (->) "->" (field_identifier) "tm_min" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_MINUTES" (identifier) "ioaddr" (+) "+" (identifier) "RTC_MINUTES" ()) ")" (;) ";" (expression_statement) "writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);" (call_expression) "writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS)" (identifier) "writeb" (argument_list) "(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS)" (() "(" (binary_expression) "BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK" (call_expression) "BIN2BCD(tm->tm_sec)" (identifier) "BIN2BCD" (argument_list) "(tm->tm_sec)" (() "(" (field_expression) "tm->tm_sec" (identifier) "tm" (->) "->" (field_identifier) "tm_sec" ()) ")" (&) "&" (identifier) "RTC_SECONDS_MASK" (,) "," (binary_expression) "ioaddr + RTC_SECONDS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_SECONDS" ()) ")" (;) ";" (comment) "/* RTC_CENTURY and RTC_CONTROL share same register */" (expression_statement) "writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);" (call_expression) "writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY)" (identifier) "writeb" (argument_list) "(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY)" (() "(" (binary_expression) "RTC_WRITE | (century & RTC_CENTURY_MASK)" (identifier) "RTC_WRITE" (|) "|" (parenthesized_expression) "(century & RTC_CENTURY_MASK)" (() "(" (binary_expression) "century & RTC_CENTURY_MASK" (identifier) "century" (&) "&" (identifier) "RTC_CENTURY_MASK" ()) ")" (,) "," (binary_expression) "ioaddr + RTC_CENTURY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CENTURY" ()) ")" (;) ";" (expression_statement) "writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);" (call_expression) "writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)" (() "(" (binary_expression) "century & RTC_CENTURY_MASK" (identifier) "century" (&) "&" (identifier) "RTC_CENTURY_MASK" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)\n{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n unsigned int year, month, day, hour, minute, second, week;\n unsigned int century;\n\n /* give enough time to update RTC in case of continuous read */\n if (pdata->last_jiffies == jiffies)\n msleep(1);\n pdata->last_jiffies = jiffies;\n writeb(RTC_READ, ioaddr + RTC_CONTROL);\n second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;\n minute = readb(ioaddr + RTC_MINUTES);\n hour = readb(ioaddr + RTC_HOURS);\n day = readb(ioaddr + RTC_DATE);\n week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;\n month = readb(ioaddr + RTC_MONTH);\n year = readb(ioaddr + RTC_YEAR);\n century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(0, ioaddr + RTC_CONTROL);\n tm->tm_sec = BCD2BIN(second);\n tm->tm_min = BCD2BIN(minute);\n tm->tm_hour = BCD2BIN(hour);\n tm->tm_mday = BCD2BIN(day);\n tm->tm_wday = BCD2BIN(week);\n tm->tm_mon = BCD2BIN(month) - 1;\n /* year is 1900 + tm->tm_year */\n tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;\n\n if (rtc_valid_tm(tm) < 0) {\n dev_err(dev, "retrieved date/time is not valid.\n");\n rtc_time_to_tm(0, tm);\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)" (identifier) "ds1742_rtc_read_time" (parameter_list) "(struct device *dev, struct rtc_time *tm)" (() "(" (parameter_declaration) "struct device *dev" (struct_specifier) "struct device" (struct) "struct" (type_identifier) "device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "struct rtc_time *tm" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (pointer_declarator) "*tm" (*) "*" (identifier) "tm" ()) ")" (compound_statement) "{\n struct platform_device *pdev = to_platform_device(dev);\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_rtc;\n unsigned int year, month, day, hour, minute, second, week;\n unsigned int century;\n\n /* give enough time to update RTC in case of continuous read */\n if (pdata->last_jiffies == jiffies)\n msleep(1);\n pdata->last_jiffies = jiffies;\n writeb(RTC_READ, ioaddr + RTC_CONTROL);\n second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;\n minute = readb(ioaddr + RTC_MINUTES);\n hour = readb(ioaddr + RTC_HOURS);\n day = readb(ioaddr + RTC_DATE);\n week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;\n month = readb(ioaddr + RTC_MONTH);\n year = readb(ioaddr + RTC_YEAR);\n century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(0, ioaddr + RTC_CONTROL);\n tm->tm_sec = BCD2BIN(second);\n tm->tm_min = BCD2BIN(minute);\n tm->tm_hour = BCD2BIN(hour);\n tm->tm_mday = BCD2BIN(day);\n tm->tm_wday = BCD2BIN(week);\n tm->tm_mon = BCD2BIN(month) - 1;\n /* year is 1900 + tm->tm_year */\n tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;\n\n if (rtc_valid_tm(tm) < 0) {\n dev_err(dev, "retrieved date/time is not valid.\n");\n rtc_time_to_tm(0, tm);\n }\n return 0;\n}" ({) "{" (declaration) "struct platform_device *pdev = to_platform_device(dev);" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (init_declarator) "*pdev = to_platform_device(dev)" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" (=) "=" (call_expression) "to_platform_device(dev)" (identifier) "to_platform_device" (argument_list) "(dev)" (() "(" (identifier) "dev" ()) ")" (;) ";" (declaration) "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = platform_get_drvdata(pdev)" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (call_expression) "platform_get_drvdata(pdev)" (identifier) "platform_get_drvdata" (argument_list) "(pdev)" (() "(" (identifier) "pdev" ()) ")" (;) ";" (declaration) "void __iomem *ioaddr = pdata->ioaddr_rtc;" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (init_declarator) "*ioaddr = pdata->ioaddr_rtc" (pointer_declarator) "*ioaddr" (*) "*" (identifier) "ioaddr" (=) "=" (field_expression) "pdata->ioaddr_rtc" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_rtc" (;) ";" (declaration) "unsigned int year, month, day, hour, minute, second, week;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "year" (,) "," (identifier) "month" (,) "," (identifier) "day" (,) "," (identifier) "hour" (,) "," (identifier) "minute" (,) "," (identifier) "second" (,) "," (identifier) "week" (;) ";" (declaration) "unsigned int century;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "century" (;) ";" (comment) "/* give enough time to update RTC in case of continuous read */" (if_statement) "if (pdata->last_jiffies == jiffies)\n msleep(1);" (if) "if" (parenthesized_expression) "(pdata->last_jiffies == jiffies)" (() "(" (binary_expression) "pdata->last_jiffies == jiffies" (field_expression) "pdata->last_jiffies" (identifier) "pdata" (->) "->" (field_identifier) "last_jiffies" (==) "==" (identifier) "jiffies" ()) ")" (expression_statement) "msleep(1);" (call_expression) "msleep(1)" (identifier) "msleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "pdata->last_jiffies = jiffies;" (assignment_expression) "pdata->last_jiffies = jiffies" (field_expression) "pdata->last_jiffies" (identifier) "pdata" (->) "->" (field_identifier) "last_jiffies" (=) "=" (identifier) "jiffies" (;) ";" (expression_statement) "writeb(RTC_READ, ioaddr + RTC_CONTROL);" (call_expression) "writeb(RTC_READ, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(RTC_READ, ioaddr + RTC_CONTROL)" (() "(" (identifier) "RTC_READ" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (expression_statement) "second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;" (assignment_expression) "second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK" (identifier) "second" (=) "=" (binary_expression) "readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK" (call_expression) "readb(ioaddr + RTC_SECONDS)" (identifier) "readb" (argument_list) "(ioaddr + RTC_SECONDS)" (() "(" (binary_expression) "ioaddr + RTC_SECONDS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_SECONDS" ()) ")" (&) "&" (identifier) "RTC_SECONDS_MASK" (;) ";" (expression_statement) "minute = readb(ioaddr + RTC_MINUTES);" (assignment_expression) "minute = readb(ioaddr + RTC_MINUTES)" (identifier) "minute" (=) "=" (call_expression) "readb(ioaddr + RTC_MINUTES)" (identifier) "readb" (argument_list) "(ioaddr + RTC_MINUTES)" (() "(" (binary_expression) "ioaddr + RTC_MINUTES" (identifier) "ioaddr" (+) "+" (identifier) "RTC_MINUTES" ()) ")" (;) ";" (expression_statement) "hour = readb(ioaddr + RTC_HOURS);" (assignment_expression) "hour = readb(ioaddr + RTC_HOURS)" (identifier) "hour" (=) "=" (call_expression) "readb(ioaddr + RTC_HOURS)" (identifier) "readb" (argument_list) "(ioaddr + RTC_HOURS)" (() "(" (binary_expression) "ioaddr + RTC_HOURS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_HOURS" ()) ")" (;) ";" (expression_statement) "day = readb(ioaddr + RTC_DATE);" (assignment_expression) "day = readb(ioaddr + RTC_DATE)" (identifier) "day" (=) "=" (call_expression) "readb(ioaddr + RTC_DATE)" (identifier) "readb" (argument_list) "(ioaddr + RTC_DATE)" (() "(" (binary_expression) "ioaddr + RTC_DATE" (identifier) "ioaddr" (+) "+" (identifier) "RTC_DATE" ()) ")" (;) ";" (expression_statement) "week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;" (assignment_expression) "week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK" (identifier) "week" (=) "=" (binary_expression) "readb(ioaddr + RTC_DAY) & RTC_DAY_MASK" (call_expression) "readb(ioaddr + RTC_DAY)" (identifier) "readb" (argument_list) "(ioaddr + RTC_DAY)" (() "(" (binary_expression) "ioaddr + RTC_DAY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_DAY" ()) ")" (&) "&" (identifier) "RTC_DAY_MASK" (;) ";" (expression_statement) "month = readb(ioaddr + RTC_MONTH);" (assignment_expression) "month = readb(ioaddr + RTC_MONTH)" (identifier) "month" (=) "=" (call_expression) "readb(ioaddr + RTC_MONTH)" (identifier) "readb" (argument_list) "(ioaddr + RTC_MONTH)" (() "(" (binary_expression) "ioaddr + RTC_MONTH" (identifier) "ioaddr" (+) "+" (identifier) "RTC_MONTH" ()) ")" (;) ";" (expression_statement) "year = readb(ioaddr + RTC_YEAR);" (assignment_expression) "year = readb(ioaddr + RTC_YEAR)" (identifier) "year" (=) "=" (call_expression) "readb(ioaddr + RTC_YEAR)" (identifier) "readb" (argument_list) "(ioaddr + RTC_YEAR)" (() "(" (binary_expression) "ioaddr + RTC_YEAR" (identifier) "ioaddr" (+) "+" (identifier) "RTC_YEAR" ()) ")" (;) ";" (expression_statement) "century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;" (assignment_expression) "century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK" (identifier) "century" (=) "=" (binary_expression) "readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK" (call_expression) "readb(ioaddr + RTC_CENTURY)" (identifier) "readb" (argument_list) "(ioaddr + RTC_CENTURY)" (() "(" (binary_expression) "ioaddr + RTC_CENTURY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CENTURY" ()) ")" (&) "&" (identifier) "RTC_CENTURY_MASK" (;) ";" (expression_statement) "writeb(0, ioaddr + RTC_CONTROL);" (call_expression) "writeb(0, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(0, ioaddr + RTC_CONTROL)" (() "(" (number_literal) "0" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (expression_statement) "tm->tm_sec = BCD2BIN(second);" (assignment_expression) "tm->tm_sec = BCD2BIN(second)" (field_expression) "tm->tm_sec" (identifier) "tm" (->) "->" (field_identifier) "tm_sec" (=) "=" (call_expression) "BCD2BIN(second)" (identifier) "BCD2BIN" (argument_list) "(second)" (() "(" (identifier) "second" ()) ")" (;) ";" (expression_statement) "tm->tm_min = BCD2BIN(minute);" (assignment_expression) "tm->tm_min = BCD2BIN(minute)" (field_expression) "tm->tm_min" (identifier) "tm" (->) "->" (field_identifier) "tm_min" (=) "=" (call_expression) "BCD2BIN(minute)" (identifier) "BCD2BIN" (argument_list) "(minute)" (() "(" (identifier) "minute" ()) ")" (;) ";" (expression_statement) "tm->tm_hour = BCD2BIN(hour);" (assignment_expression) "tm->tm_hour = BCD2BIN(hour)" (field_expression) "tm->tm_hour" (identifier) "tm" (->) "->" (field_identifier) "tm_hour" (=) "=" (call_expression) "BCD2BIN(hour)" (identifier) "BCD2BIN" (argument_list) "(hour)" (() "(" (identifier) "hour" ()) ")" (;) ";" (expression_statement) "tm->tm_mday = BCD2BIN(day);" (assignment_expression) "tm->tm_mday = BCD2BIN(day)" (field_expression) "tm->tm_mday" (identifier) "tm" (->) "->" (field_identifier) "tm_mday" (=) "=" (call_expression) "BCD2BIN(day)" (identifier) "BCD2BIN" (argument_list) "(day)" (() "(" (identifier) "day" ()) ")" (;) ";" (expression_statement) "tm->tm_wday = BCD2BIN(week);" (assignment_expression) "tm->tm_wday = BCD2BIN(week)" (field_expression) "tm->tm_wday" (identifier) "tm" (->) "->" (field_identifier) "tm_wday" (=) "=" (call_expression) "BCD2BIN(week)" (identifier) "BCD2BIN" (argument_list) "(week)" (() "(" (identifier) "week" ()) ")" (;) ";" (expression_statement) "tm->tm_mon = BCD2BIN(month) - 1;" (assignment_expression) "tm->tm_mon = BCD2BIN(month) - 1" (field_expression) "tm->tm_mon" (identifier) "tm" (->) "->" (field_identifier) "tm_mon" (=) "=" (binary_expression) "BCD2BIN(month) - 1" (call_expression) "BCD2BIN(month)" (identifier) "BCD2BIN" (argument_list) "(month)" (() "(" (identifier) "month" ()) ")" (-) "-" (number_literal) "1" (;) ";" (comment) "/* year is 1900 + tm->tm_year */" (expression_statement) "tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;" (assignment_expression) "tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900" (field_expression) "tm->tm_year" (identifier) "tm" (->) "->" (field_identifier) "tm_year" (=) "=" (binary_expression) "BCD2BIN(year) + BCD2BIN(century) * 100 - 1900" (binary_expression) "BCD2BIN(year) + BCD2BIN(century) * 100" (call_expression) "BCD2BIN(year)" (identifier) "BCD2BIN" (argument_list) "(year)" (() "(" (identifier) "year" ()) ")" (+) "+" (binary_expression) "BCD2BIN(century) * 100" (call_expression) "BCD2BIN(century)" (identifier) "BCD2BIN" (argument_list) "(century)" (() "(" (identifier) "century" ()) ")" (*) "*" (number_literal) "100" (-) "-" (number_literal) "1900" (;) ";" (if_statement) "if (rtc_valid_tm(tm) < 0) {\n dev_err(dev, "retrieved date/time is not valid.\n");\n rtc_time_to_tm(0, tm);\n }" (if) "if" (parenthesized_expression) "(rtc_valid_tm(tm) < 0)" (() "(" (binary_expression) "rtc_valid_tm(tm) < 0" (call_expression) "rtc_valid_tm(tm)" (identifier) "rtc_valid_tm" (argument_list) "(tm)" (() "(" (identifier) "tm" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n dev_err(dev, "retrieved date/time is not valid.\n");\n rtc_time_to_tm(0, tm);\n }" ({) "{" (expression_statement) "dev_err(dev, "retrieved date/time is not valid.\n");" (call_expression) "dev_err(dev, "retrieved date/time is not valid.\n")" (identifier) "dev_err" (argument_list) "(dev, "retrieved date/time is not valid.\n")" (() "(" (identifier) "dev" (,) "," (string_literal) ""retrieved date/time is not valid.\n"" (") """ (string_content) "retrieved date/time is not valid." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "rtc_time_to_tm(0, tm);" (call_expression) "rtc_time_to_tm(0, tm)" (identifier) "rtc_time_to_tm" (argument_list) "(0, tm)" (() "(" (number_literal) "0" (,) "," (identifier) "tm" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (declaration) "static const struct rtc_class_ops ds1742_rtc_ops = {\n .read_time = ds1742_rtc_read_time,\n .set_time = ds1742_rtc_set_time,\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (struct_specifier) "struct rtc_class_ops" (struct) "struct" (type_identifier) "rtc_class_ops" (init_declarator) "ds1742_rtc_ops = {\n .read_time = ds1742_rtc_read_time,\n .set_time = ds1742_rtc_set_time,\n}" (identifier) "ds1742_rtc_ops" (=) "=" (initializer_list) "{\n .read_time = ds1742_rtc_read_time,\n .set_time = ds1742_rtc_set_time,\n}" ({) "{" (initializer_pair) ".read_time = ds1742_rtc_read_time" (field_designator) ".read_time" (.) "." (field_identifier) "read_time" (=) "=" (identifier) "ds1742_rtc_read_time" (,) "," (initializer_pair) ".set_time = ds1742_rtc_set_time" (field_designator) ".set_time" (.) "." (field_identifier) "set_time" (=) "=" (identifier) "ds1742_rtc_set_time" (,) "," (}) "}" (;) ";" (function_definition) "static ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)\n{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n *buf++ = readb(ioaddr + pos++);\n return count;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "ssize_t" (function_declarator) "ds1742_nvram_read(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)" (identifier) "ds1742_nvram_read" (parameter_list) "(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)" (() "(" (parameter_declaration) "struct kobject *kobj" (struct_specifier) "struct kobject" (struct) "struct" (type_identifier) "kobject" (pointer_declarator) "*kobj" (*) "*" (identifier) "kobj" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "loff_t pos" (type_identifier) "loff_t" (identifier) "pos" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n *buf++ = readb(ioaddr + pos++);\n return count;\n}" ({) "{" (declaration) "struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (init_declarator) "*pdev =\n to_platform_device(container_of(kobj, struct device, kobj))" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" (=) "=" (call_expression) "to_platform_device(container_of(kobj, struct device, kobj))" (identifier) "to_platform_device" (argument_list) "(container_of(kobj, struct device, kobj))" (() "(" (call_expression) "container_of(kobj, struct device, kobj)" (identifier) "container_of" (argument_list) "(kobj, struct device, kobj)" (() "(" (identifier) "kobj" (,) "," (identifier) "struct" (ERROR) "device" (identifier) "device" (,) "," (identifier) "kobj" ()) ")" ()) ")" (;) ";" (declaration) "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = platform_get_drvdata(pdev)" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (call_expression) "platform_get_drvdata(pdev)" (identifier) "platform_get_drvdata" (argument_list) "(pdev)" (() "(" (identifier) "pdev" ()) ")" (;) ";" (declaration) "void __iomem *ioaddr = pdata->ioaddr_nvram;" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (init_declarator) "*ioaddr = pdata->ioaddr_nvram" (pointer_declarator) "*ioaddr" (*) "*" (identifier) "ioaddr" (=) "=" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" (;) ";" (declaration) "ssize_t count;" (primitive_type) "ssize_t" (identifier) "count" (;) ";" (for_statement) "for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n *buf++ = readb(ioaddr + pos++);" (for) "for" (() "(" (assignment_expression) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "size > 0 && pos < pdata->size_nvram" (binary_expression) "size > 0" (identifier) "size" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "pos < pdata->size_nvram" (identifier) "pos" (<) "<" (field_expression) "pdata->size_nvram" (identifier) "pdata" (->) "->" (field_identifier) "size_nvram" (;) ";" (comma_expression) "count++, size--" (update_expression) "count++" (identifier) "count" (++) "++" (,) "," (update_expression) "size--" (identifier) "size" (--) "--" ()) ")" (expression_statement) "*buf++ = readb(ioaddr + pos++);" (assignment_expression) "*buf++ = readb(ioaddr + pos++)" (pointer_expression) "*buf++" (*) "*" (update_expression) "buf++" (identifier) "buf" (++) "++" (=) "=" (call_expression) "readb(ioaddr + pos++)" (identifier) "readb" (argument_list) "(ioaddr + pos++)" (() "(" (binary_expression) "ioaddr + pos++" (identifier) "ioaddr" (+) "+" (update_expression) "pos++" (identifier) "pos" (++) "++" ()) ")" (;) ";" (return_statement) "return count;" (return) "return" (identifier) "count" (;) ";" (}) "}" (function_definition) "static ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)\n{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n writeb(*buf++, ioaddr + pos++);\n return count;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "ssize_t" (function_declarator) "ds1742_nvram_write(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)" (identifier) "ds1742_nvram_write" (parameter_list) "(struct kobject *kobj, char *buf,\n loff_t pos, size_t size)" (() "(" (parameter_declaration) "struct kobject *kobj" (struct_specifier) "struct kobject" (struct) "struct" (type_identifier) "kobject" (pointer_declarator) "*kobj" (*) "*" (identifier) "kobj" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "loff_t pos" (type_identifier) "loff_t" (identifier) "pos" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n void __iomem *ioaddr = pdata->ioaddr_nvram;\n ssize_t count;\n\n for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n writeb(*buf++, ioaddr + pos++);\n return count;\n}" ({) "{" (declaration) "struct platform_device *pdev =\n to_platform_device(container_of(kobj, struct device, kobj));" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (init_declarator) "*pdev =\n to_platform_device(container_of(kobj, struct device, kobj))" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" (=) "=" (call_expression) "to_platform_device(container_of(kobj, struct device, kobj))" (identifier) "to_platform_device" (argument_list) "(container_of(kobj, struct device, kobj))" (() "(" (call_expression) "container_of(kobj, struct device, kobj)" (identifier) "container_of" (argument_list) "(kobj, struct device, kobj)" (() "(" (identifier) "kobj" (,) "," (identifier) "struct" (ERROR) "device" (identifier) "device" (,) "," (identifier) "kobj" ()) ")" ()) ")" (;) ";" (declaration) "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = platform_get_drvdata(pdev)" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (call_expression) "platform_get_drvdata(pdev)" (identifier) "platform_get_drvdata" (argument_list) "(pdev)" (() "(" (identifier) "pdev" ()) ")" (;) ";" (declaration) "void __iomem *ioaddr = pdata->ioaddr_nvram;" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (init_declarator) "*ioaddr = pdata->ioaddr_nvram" (pointer_declarator) "*ioaddr" (*) "*" (identifier) "ioaddr" (=) "=" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" (;) ";" (declaration) "ssize_t count;" (primitive_type) "ssize_t" (identifier) "count" (;) ";" (for_statement) "for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n writeb(*buf++, ioaddr + pos++);" (for) "for" (() "(" (assignment_expression) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "size > 0 && pos < pdata->size_nvram" (binary_expression) "size > 0" (identifier) "size" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "pos < pdata->size_nvram" (identifier) "pos" (<) "<" (field_expression) "pdata->size_nvram" (identifier) "pdata" (->) "->" (field_identifier) "size_nvram" (;) ";" (comma_expression) "count++, size--" (update_expression) "count++" (identifier) "count" (++) "++" (,) "," (update_expression) "size--" (identifier) "size" (--) "--" ()) ")" (expression_statement) "writeb(*buf++, ioaddr + pos++);" (call_expression) "writeb(*buf++, ioaddr + pos++)" (identifier) "writeb" (argument_list) "(*buf++, ioaddr + pos++)" (() "(" (pointer_expression) "*buf++" (*) "*" (update_expression) "buf++" (identifier) "buf" (++) "++" (,) "," (binary_expression) "ioaddr + pos++" (identifier) "ioaddr" (+) "+" (update_expression) "pos++" (identifier) "pos" (++) "++" ()) ")" (;) ";" (return_statement) "return count;" (return) "return" (identifier) "count" (;) ";" (}) "}" (declaration) "static struct bin_attribute ds1742_nvram_attr = {\n .attr = {\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n },\n .read = ds1742_nvram_read,\n .write = ds1742_nvram_write,\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct bin_attribute" (struct) "struct" (type_identifier) "bin_attribute" (init_declarator) "ds1742_nvram_attr = {\n .attr = {\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n },\n .read = ds1742_nvram_read,\n .write = ds1742_nvram_write,\n}" (identifier) "ds1742_nvram_attr" (=) "=" (initializer_list) "{\n .attr = {\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n },\n .read = ds1742_nvram_read,\n .write = ds1742_nvram_write,\n}" ({) "{" (initializer_pair) ".attr = {\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n }" (field_designator) ".attr" (.) "." (field_identifier) "attr" (=) "=" (initializer_list) "{\n .name = "nvram",\n .mode = S_IRUGO | S_IWUGO,\n .owner = THIS_MODULE,\n }" ({) "{" (initializer_pair) ".name = "nvram"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""nvram"" (") """ (string_content) "nvram" (") """ (,) "," (initializer_pair) ".mode = S_IRUGO | S_IWUGO" (field_designator) ".mode" (.) "." (field_identifier) "mode" (=) "=" (binary_expression) "S_IRUGO | S_IWUGO" (identifier) "S_IRUGO" (|) "|" (identifier) "S_IWUGO" (,) "," (initializer_pair) ".owner = THIS_MODULE" (field_designator) ".owner" (.) "." (field_identifier) "owner" (=) "=" (identifier) "THIS_MODULE" (,) "," (}) "}" (,) "," (initializer_pair) ".read = ds1742_nvram_read" (field_designator) ".read" (.) "." (field_identifier) "read" (=) "=" (identifier) "ds1742_nvram_read" (,) "," (initializer_pair) ".write = ds1742_nvram_write" (field_designator) ".write" (.) "." (field_identifier) "write" (=) "=" (identifier) "ds1742_nvram_write" (,) "," (}) "}" (;) ";" (function_definition) "static int __devinit ds1742_rtc_probe(struct platform_device *pdev)\n{\n struct rtc_device *rtc;\n struct resource *res;\n unsigned int cen, sec;\n struct rtc_plat_data *pdata = NULL;\n void __iomem *ioaddr = NULL;\n int ret = 0;\n\n res = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n if (!res)\n return -ENODEV;\n pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);\n if (!pdata)\n return -ENOMEM;\n pdata->size = res->end - res->start + 1;\n if (!request_mem_region(res->start, pdata->size, pdev->name)) {\n ret = -EBUSY;\n goto out;\n }\n pdata->baseaddr = res->start;\n ioaddr = ioremap(pdata->baseaddr, pdata->size);\n if (!ioaddr) {\n ret = -ENOMEM;\n goto out;\n }\n pdata->ioaddr_nvram = ioaddr;\n pdata->size_nvram = pdata->size - RTC_SIZE;\n pdata->ioaddr_rtc = ioaddr + pdata->size_nvram;\n\n /* turn RTC on if it was not on */\n ioaddr = pdata->ioaddr_rtc;\n sec = readb(ioaddr + RTC_SECONDS);\n if (sec & RTC_STOP) {\n sec &= RTC_SECONDS_MASK;\n cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n writeb(sec, ioaddr + RTC_SECONDS);\n writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n }\n if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n dev_warn(&pdev->dev, "voltage-low detected.\n");\n\n rtc = rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE);\n if (IS_ERR(rtc)) {\n ret = PTR_ERR(rtc);\n goto out;\n }\n pdata->rtc = rtc;\n pdata->last_jiffies = jiffies;\n platform_set_drvdata(pdev, pdata);\n ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n pdata->size_nvram);\n ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n if (ret)\n goto out;\n return 0;\n out:\n if (pdata->rtc)\n rtc_device_unregister(pdata->rtc);\n if (pdata->ioaddr_nvram)\n iounmap(pdata->ioaddr_nvram);\n if (pdata->baseaddr)\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return ret;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (ERROR) "__devinit" (identifier) "__devinit" (function_declarator) "ds1742_rtc_probe(struct platform_device *pdev)" (identifier) "ds1742_rtc_probe" (parameter_list) "(struct platform_device *pdev)" (() "(" (parameter_declaration) "struct platform_device *pdev" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" ()) ")" (compound_statement) "{\n struct rtc_device *rtc;\n struct resource *res;\n unsigned int cen, sec;\n struct rtc_plat_data *pdata = NULL;\n void __iomem *ioaddr = NULL;\n int ret = 0;\n\n res = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n if (!res)\n return -ENODEV;\n pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);\n if (!pdata)\n return -ENOMEM;\n pdata->size = res->end - res->start + 1;\n if (!request_mem_region(res->start, pdata->size, pdev->name)) {\n ret = -EBUSY;\n goto out;\n }\n pdata->baseaddr = res->start;\n ioaddr = ioremap(pdata->baseaddr, pdata->size);\n if (!ioaddr) {\n ret = -ENOMEM;\n goto out;\n }\n pdata->ioaddr_nvram = ioaddr;\n pdata->size_nvram = pdata->size - RTC_SIZE;\n pdata->ioaddr_rtc = ioaddr + pdata->size_nvram;\n\n /* turn RTC on if it was not on */\n ioaddr = pdata->ioaddr_rtc;\n sec = readb(ioaddr + RTC_SECONDS);\n if (sec & RTC_STOP) {\n sec &= RTC_SECONDS_MASK;\n cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n writeb(sec, ioaddr + RTC_SECONDS);\n writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n }\n if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n dev_warn(&pdev->dev, "voltage-low detected.\n");\n\n rtc = rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE);\n if (IS_ERR(rtc)) {\n ret = PTR_ERR(rtc);\n goto out;\n }\n pdata->rtc = rtc;\n pdata->last_jiffies = jiffies;\n platform_set_drvdata(pdev, pdata);\n ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n pdata->size_nvram);\n ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n if (ret)\n goto out;\n return 0;\n out:\n if (pdata->rtc)\n rtc_device_unregister(pdata->rtc);\n if (pdata->ioaddr_nvram)\n iounmap(pdata->ioaddr_nvram);\n if (pdata->baseaddr)\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return ret;\n}" ({) "{" (declaration) "struct rtc_device *rtc;" (struct_specifier) "struct rtc_device" (struct) "struct" (type_identifier) "rtc_device" (pointer_declarator) "*rtc" (*) "*" (identifier) "rtc" (;) ";" (declaration) "struct resource *res;" (struct_specifier) "struct resource" (struct) "struct" (type_identifier) "resource" (pointer_declarator) "*res" (*) "*" (identifier) "res" (;) ";" (declaration) "unsigned int cen, sec;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "cen" (,) "," (identifier) "sec" (;) ";" (declaration) "struct rtc_plat_data *pdata = NULL;" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = NULL" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "void __iomem *ioaddr = NULL;" (primitive_type) "void" (ERROR) "__iomem" (identifier) "__iomem" (init_declarator) "*ioaddr = NULL" (pointer_declarator) "*ioaddr" (*) "*" (identifier) "ioaddr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "int ret = 0;" (primitive_type) "int" (init_declarator) "ret = 0" (identifier) "ret" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "res = platform_get_resource(pdev, IORESOURCE_MEM, 0);" (assignment_expression) "res = platform_get_resource(pdev, IORESOURCE_MEM, 0)" (identifier) "res" (=) "=" (call_expression) "platform_get_resource(pdev, IORESOURCE_MEM, 0)" (identifier) "platform_get_resource" (argument_list) "(pdev, IORESOURCE_MEM, 0)" (() "(" (identifier) "pdev" (,) "," (identifier) "IORESOURCE_MEM" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (!res)\n return -ENODEV;" (if) "if" (parenthesized_expression) "(!res)" (() "(" (unary_expression) "!res" (!) "!" (identifier) "res" ()) ")" (return_statement) "return -ENODEV;" (return) "return" (unary_expression) "-ENODEV" (-) "-" (identifier) "ENODEV" (;) ";" (expression_statement) "pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);" (assignment_expression) "pdata = kzalloc(sizeof(*pdata), GFP_KERNEL)" (identifier) "pdata" (=) "=" (call_expression) "kzalloc(sizeof(*pdata), GFP_KERNEL)" (identifier) "kzalloc" (argument_list) "(sizeof(*pdata), GFP_KERNEL)" (() "(" (sizeof_expression) "sizeof(*pdata)" (sizeof) "sizeof" (parenthesized_expression) "(*pdata)" (() "(" (pointer_expression) "*pdata" (*) "*" (identifier) "pdata" ()) ")" (,) "," (identifier) "GFP_KERNEL" ()) ")" (;) ";" (if_statement) "if (!pdata)\n return -ENOMEM;" (if) "if" (parenthesized_expression) "(!pdata)" (() "(" (unary_expression) "!pdata" (!) "!" (identifier) "pdata" ()) ")" (return_statement) "return -ENOMEM;" (return) "return" (unary_expression) "-ENOMEM" (-) "-" (identifier) "ENOMEM" (;) ";" (expression_statement) "pdata->size = res->end - res->start + 1;" (assignment_expression) "pdata->size = res->end - res->start + 1" (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" (=) "=" (binary_expression) "res->end - res->start + 1" (binary_expression) "res->end - res->start" (field_expression) "res->end" (identifier) "res" (->) "->" (field_identifier) "end" (-) "-" (field_expression) "res->start" (identifier) "res" (->) "->" (field_identifier) "start" (+) "+" (number_literal) "1" (;) ";" (if_statement) "if (!request_mem_region(res->start, pdata->size, pdev->name)) {\n ret = -EBUSY;\n goto out;\n }" (if) "if" (parenthesized_expression) "(!request_mem_region(res->start, pdata->size, pdev->name))" (() "(" (unary_expression) "!request_mem_region(res->start, pdata->size, pdev->name)" (!) "!" (call_expression) "request_mem_region(res->start, pdata->size, pdev->name)" (identifier) "request_mem_region" (argument_list) "(res->start, pdata->size, pdev->name)" (() "(" (field_expression) "res->start" (identifier) "res" (->) "->" (field_identifier) "start" (,) "," (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" (,) "," (field_expression) "pdev->name" (identifier) "pdev" (->) "->" (field_identifier) "name" ()) ")" ()) ")" (compound_statement) "{\n ret = -EBUSY;\n goto out;\n }" ({) "{" (expression_statement) "ret = -EBUSY;" (assignment_expression) "ret = -EBUSY" (identifier) "ret" (=) "=" (unary_expression) "-EBUSY" (-) "-" (identifier) "EBUSY" (;) ";" (goto_statement) "goto out;" (goto) "goto" (statement_identifier) "out" (;) ";" (}) "}" (expression_statement) "pdata->baseaddr = res->start;" (assignment_expression) "pdata->baseaddr = res->start" (field_expression) "pdata->baseaddr" (identifier) "pdata" (->) "->" (field_identifier) "baseaddr" (=) "=" (field_expression) "res->start" (identifier) "res" (->) "->" (field_identifier) "start" (;) ";" (expression_statement) "ioaddr = ioremap(pdata->baseaddr, pdata->size);" (assignment_expression) "ioaddr = ioremap(pdata->baseaddr, pdata->size)" (identifier) "ioaddr" (=) "=" (call_expression) "ioremap(pdata->baseaddr, pdata->size)" (identifier) "ioremap" (argument_list) "(pdata->baseaddr, pdata->size)" (() "(" (field_expression) "pdata->baseaddr" (identifier) "pdata" (->) "->" (field_identifier) "baseaddr" (,) "," (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" ()) ")" (;) ";" (if_statement) "if (!ioaddr) {\n ret = -ENOMEM;\n goto out;\n }" (if) "if" (parenthesized_expression) "(!ioaddr)" (() "(" (unary_expression) "!ioaddr" (!) "!" (identifier) "ioaddr" ()) ")" (compound_statement) "{\n ret = -ENOMEM;\n goto out;\n }" ({) "{" (expression_statement) "ret = -ENOMEM;" (assignment_expression) "ret = -ENOMEM" (identifier) "ret" (=) "=" (unary_expression) "-ENOMEM" (-) "-" (identifier) "ENOMEM" (;) ";" (goto_statement) "goto out;" (goto) "goto" (statement_identifier) "out" (;) ";" (}) "}" (expression_statement) "pdata->ioaddr_nvram = ioaddr;" (assignment_expression) "pdata->ioaddr_nvram = ioaddr" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" (=) "=" (identifier) "ioaddr" (;) ";" (expression_statement) "pdata->size_nvram = pdata->size - RTC_SIZE;" (assignment_expression) "pdata->size_nvram = pdata->size - RTC_SIZE" (field_expression) "pdata->size_nvram" (identifier) "pdata" (->) "->" (field_identifier) "size_nvram" (=) "=" (binary_expression) "pdata->size - RTC_SIZE" (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" (-) "-" (identifier) "RTC_SIZE" (;) ";" (expression_statement) "pdata->ioaddr_rtc = ioaddr + pdata->size_nvram;" (assignment_expression) "pdata->ioaddr_rtc = ioaddr + pdata->size_nvram" (field_expression) "pdata->ioaddr_rtc" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_rtc" (=) "=" (binary_expression) "ioaddr + pdata->size_nvram" (identifier) "ioaddr" (+) "+" (field_expression) "pdata->size_nvram" (identifier) "pdata" (->) "->" (field_identifier) "size_nvram" (;) ";" (comment) "/* turn RTC on if it was not on */" (expression_statement) "ioaddr = pdata->ioaddr_rtc;" (assignment_expression) "ioaddr = pdata->ioaddr_rtc" (identifier) "ioaddr" (=) "=" (field_expression) "pdata->ioaddr_rtc" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_rtc" (;) ";" (expression_statement) "sec = readb(ioaddr + RTC_SECONDS);" (assignment_expression) "sec = readb(ioaddr + RTC_SECONDS)" (identifier) "sec" (=) "=" (call_expression) "readb(ioaddr + RTC_SECONDS)" (identifier) "readb" (argument_list) "(ioaddr + RTC_SECONDS)" (() "(" (binary_expression) "ioaddr + RTC_SECONDS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_SECONDS" ()) ")" (;) ";" (if_statement) "if (sec & RTC_STOP) {\n sec &= RTC_SECONDS_MASK;\n cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n writeb(sec, ioaddr + RTC_SECONDS);\n writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n }" (if) "if" (parenthesized_expression) "(sec & RTC_STOP)" (() "(" (binary_expression) "sec & RTC_STOP" (identifier) "sec" (&) "&" (identifier) "RTC_STOP" ()) ")" (compound_statement) "{\n sec &= RTC_SECONDS_MASK;\n cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n writeb(RTC_WRITE, ioaddr + RTC_CONTROL);\n writeb(sec, ioaddr + RTC_SECONDS);\n writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n }" ({) "{" (expression_statement) "sec &= RTC_SECONDS_MASK;" (assignment_expression) "sec &= RTC_SECONDS_MASK" (identifier) "sec" (&=) "&=" (identifier) "RTC_SECONDS_MASK" (;) ";" (expression_statement) "cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;" (assignment_expression) "cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK" (identifier) "cen" (=) "=" (binary_expression) "readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK" (call_expression) "readb(ioaddr + RTC_CENTURY)" (identifier) "readb" (argument_list) "(ioaddr + RTC_CENTURY)" (() "(" (binary_expression) "ioaddr + RTC_CENTURY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CENTURY" ()) ")" (&) "&" (identifier) "RTC_CENTURY_MASK" (;) ";" (expression_statement) "writeb(RTC_WRITE, ioaddr + RTC_CONTROL);" (call_expression) "writeb(RTC_WRITE, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(RTC_WRITE, ioaddr + RTC_CONTROL)" (() "(" (identifier) "RTC_WRITE" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (expression_statement) "writeb(sec, ioaddr + RTC_SECONDS);" (call_expression) "writeb(sec, ioaddr + RTC_SECONDS)" (identifier) "writeb" (argument_list) "(sec, ioaddr + RTC_SECONDS)" (() "(" (identifier) "sec" (,) "," (binary_expression) "ioaddr + RTC_SECONDS" (identifier) "ioaddr" (+) "+" (identifier) "RTC_SECONDS" ()) ")" (;) ";" (expression_statement) "writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);" (call_expression) "writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)" (identifier) "writeb" (argument_list) "(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)" (() "(" (binary_expression) "cen & RTC_CENTURY_MASK" (identifier) "cen" (&) "&" (identifier) "RTC_CENTURY_MASK" (,) "," (binary_expression) "ioaddr + RTC_CONTROL" (identifier) "ioaddr" (+) "+" (identifier) "RTC_CONTROL" ()) ")" (;) ";" (}) "}" (if_statement) "if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n dev_warn(&pdev->dev, "voltage-low detected.\n");" (if) "if" (parenthesized_expression) "(!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))" (() "(" (unary_expression) "!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)" (!) "!" (parenthesized_expression) "(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)" (() "(" (binary_expression) "readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG" (call_expression) "readb(ioaddr + RTC_DAY)" (identifier) "readb" (argument_list) "(ioaddr + RTC_DAY)" (() "(" (binary_expression) "ioaddr + RTC_DAY" (identifier) "ioaddr" (+) "+" (identifier) "RTC_DAY" ()) ")" (&) "&" (identifier) "RTC_BATT_FLAG" ()) ")" ()) ")" (expression_statement) "dev_warn(&pdev->dev, "voltage-low detected.\n");" (call_expression) "dev_warn(&pdev->dev, "voltage-low detected.\n")" (identifier) "dev_warn" (argument_list) "(&pdev->dev, "voltage-low detected.\n")" (() "(" (pointer_expression) "&pdev->dev" (&) "&" (field_expression) "pdev->dev" (identifier) "pdev" (->) "->" (field_identifier) "dev" (,) "," (string_literal) ""voltage-low detected.\n"" (") """ (string_content) "voltage-low detected." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "rtc = rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE);" (assignment_expression) "rtc = rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE)" (identifier) "rtc" (=) "=" (call_expression) "rtc_device_register(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE)" (identifier) "rtc_device_register" (argument_list) "(pdev->name, &pdev->dev,\n &ds1742_rtc_ops, THIS_MODULE)" (() "(" (field_expression) "pdev->name" (identifier) "pdev" (->) "->" (field_identifier) "name" (,) "," (pointer_expression) "&pdev->dev" (&) "&" (field_expression) "pdev->dev" (identifier) "pdev" (->) "->" (field_identifier) "dev" (,) "," (pointer_expression) "&ds1742_rtc_ops" (&) "&" (identifier) "ds1742_rtc_ops" (,) "," (identifier) "THIS_MODULE" ()) ")" (;) ";" (if_statement) "if (IS_ERR(rtc)) {\n ret = PTR_ERR(rtc);\n goto out;\n }" (if) "if" (parenthesized_expression) "(IS_ERR(rtc))" (() "(" (call_expression) "IS_ERR(rtc)" (identifier) "IS_ERR" (argument_list) "(rtc)" (() "(" (identifier) "rtc" ()) ")" ()) ")" (compound_statement) "{\n ret = PTR_ERR(rtc);\n goto out;\n }" ({) "{" (expression_statement) "ret = PTR_ERR(rtc);" (assignment_expression) "ret = PTR_ERR(rtc)" (identifier) "ret" (=) "=" (call_expression) "PTR_ERR(rtc)" (identifier) "PTR_ERR" (argument_list) "(rtc)" (() "(" (identifier) "rtc" ()) ")" (;) ";" (goto_statement) "goto out;" (goto) "goto" (statement_identifier) "out" (;) ";" (}) "}" (expression_statement) "pdata->rtc = rtc;" (assignment_expression) "pdata->rtc = rtc" (field_expression) "pdata->rtc" (identifier) "pdata" (->) "->" (field_identifier) "rtc" (=) "=" (identifier) "rtc" (;) ";" (expression_statement) "pdata->last_jiffies = jiffies;" (assignment_expression) "pdata->last_jiffies = jiffies" (field_expression) "pdata->last_jiffies" (identifier) "pdata" (->) "->" (field_identifier) "last_jiffies" (=) "=" (identifier) "jiffies" (;) ";" (expression_statement) "platform_set_drvdata(pdev, pdata);" (call_expression) "platform_set_drvdata(pdev, pdata)" (identifier) "platform_set_drvdata" (argument_list) "(pdev, pdata)" (() "(" (identifier) "pdev" (,) "," (identifier) "pdata" ()) ")" (;) ";" (expression_statement) "ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n pdata->size_nvram);" (assignment_expression) "ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n pdata->size_nvram)" (field_expression) "ds1742_nvram_attr.size" (identifier) "ds1742_nvram_attr" (.) "." (field_identifier) "size" (=) "=" (call_expression) "max(ds1742_nvram_attr.size,\n pdata->size_nvram)" (identifier) "max" (argument_list) "(ds1742_nvram_attr.size,\n pdata->size_nvram)" (() "(" (field_expression) "ds1742_nvram_attr.size" (identifier) "ds1742_nvram_attr" (.) "." (field_identifier) "size" (,) "," (field_expression) "pdata->size_nvram" (identifier) "pdata" (->) "->" (field_identifier) "size_nvram" ()) ")" (;) ";" (expression_statement) "ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);" (assignment_expression) "ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)" (identifier) "ret" (=) "=" (call_expression) "sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)" (identifier) "sysfs_create_bin_file" (argument_list) "(&pdev->dev.kobj, &ds1742_nvram_attr)" (() "(" (pointer_expression) "&pdev->dev.kobj" (&) "&" (field_expression) "pdev->dev.kobj" (field_expression) "pdev->dev" (identifier) "pdev" (->) "->" (field_identifier) "dev" (.) "." (field_identifier) "kobj" (,) "," (pointer_expression) "&ds1742_nvram_attr" (&) "&" (identifier) "ds1742_nvram_attr" ()) ")" (;) ";" (if_statement) "if (ret)\n goto out;" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (goto_statement) "goto out;" (goto) "goto" (statement_identifier) "out" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (labeled_statement) "out:\n if (pdata->rtc)\n rtc_device_unregister(pdata->rtc);" (statement_identifier) "out" (:) ":" (if_statement) "if (pdata->rtc)\n rtc_device_unregister(pdata->rtc);" (if) "if" (parenthesized_expression) "(pdata->rtc)" (() "(" (field_expression) "pdata->rtc" (identifier) "pdata" (->) "->" (field_identifier) "rtc" ()) ")" (expression_statement) "rtc_device_unregister(pdata->rtc);" (call_expression) "rtc_device_unregister(pdata->rtc)" (identifier) "rtc_device_unregister" (argument_list) "(pdata->rtc)" (() "(" (field_expression) "pdata->rtc" (identifier) "pdata" (->) "->" (field_identifier) "rtc" ()) ")" (;) ";" (if_statement) "if (pdata->ioaddr_nvram)\n iounmap(pdata->ioaddr_nvram);" (if) "if" (parenthesized_expression) "(pdata->ioaddr_nvram)" (() "(" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" ()) ")" (expression_statement) "iounmap(pdata->ioaddr_nvram);" (call_expression) "iounmap(pdata->ioaddr_nvram)" (identifier) "iounmap" (argument_list) "(pdata->ioaddr_nvram)" (() "(" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" ()) ")" (;) ";" (if_statement) "if (pdata->baseaddr)\n release_mem_region(pdata->baseaddr, pdata->size);" (if) "if" (parenthesized_expression) "(pdata->baseaddr)" (() "(" (field_expression) "pdata->baseaddr" (identifier) "pdata" (->) "->" (field_identifier) "baseaddr" ()) ")" (expression_statement) "release_mem_region(pdata->baseaddr, pdata->size);" (call_expression) "release_mem_region(pdata->baseaddr, pdata->size)" (identifier) "release_mem_region" (argument_list) "(pdata->baseaddr, pdata->size)" (() "(" (field_expression) "pdata->baseaddr" (identifier) "pdata" (->) "->" (field_identifier) "baseaddr" (,) "," (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" ()) ")" (;) ";" (expression_statement) "kfree(pdata);" (call_expression) "kfree(pdata)" (identifier) "kfree" (argument_list) "(pdata)" (() "(" (identifier) "pdata" ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (function_definition) "static int __devexit ds1742_rtc_remove(struct platform_device *pdev)\n{\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\n sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n rtc_device_unregister(pdata->rtc);\n iounmap(pdata->ioaddr_nvram);\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (ERROR) "__devexit" (identifier) "__devexit" (function_declarator) "ds1742_rtc_remove(struct platform_device *pdev)" (identifier) "ds1742_rtc_remove" (parameter_list) "(struct platform_device *pdev)" (() "(" (parameter_declaration) "struct platform_device *pdev" (struct_specifier) "struct platform_device" (struct) "struct" (type_identifier) "platform_device" (pointer_declarator) "*pdev" (*) "*" (identifier) "pdev" ()) ")" (compound_statement) "{\n struct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\n sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n rtc_device_unregister(pdata->rtc);\n iounmap(pdata->ioaddr_nvram);\n release_mem_region(pdata->baseaddr, pdata->size);\n kfree(pdata);\n return 0;\n}" ({) "{" (declaration) "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);" (struct_specifier) "struct rtc_plat_data" (struct) "struct" (type_identifier) "rtc_plat_data" (init_declarator) "*pdata = platform_get_drvdata(pdev)" (pointer_declarator) "*pdata" (*) "*" (identifier) "pdata" (=) "=" (call_expression) "platform_get_drvdata(pdev)" (identifier) "platform_get_drvdata" (argument_list) "(pdev)" (() "(" (identifier) "pdev" ()) ")" (;) ";" (expression_statement) "sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);" (call_expression) "sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)" (identifier) "sysfs_remove_bin_file" (argument_list) "(&pdev->dev.kobj, &ds1742_nvram_attr)" (() "(" (pointer_expression) "&pdev->dev.kobj" (&) "&" (field_expression) "pdev->dev.kobj" (field_expression) "pdev->dev" (identifier) "pdev" (->) "->" (field_identifier) "dev" (.) "." (field_identifier) "kobj" (,) "," (pointer_expression) "&ds1742_nvram_attr" (&) "&" (identifier) "ds1742_nvram_attr" ()) ")" (;) ";" (expression_statement) "rtc_device_unregister(pdata->rtc);" (call_expression) "rtc_device_unregister(pdata->rtc)" (identifier) "rtc_device_unregister" (argument_list) "(pdata->rtc)" (() "(" (field_expression) "pdata->rtc" (identifier) "pdata" (->) "->" (field_identifier) "rtc" ()) ")" (;) ";" (expression_statement) "iounmap(pdata->ioaddr_nvram);" (call_expression) "iounmap(pdata->ioaddr_nvram)" (identifier) "iounmap" (argument_list) "(pdata->ioaddr_nvram)" (() "(" (field_expression) "pdata->ioaddr_nvram" (identifier) "pdata" (->) "->" (field_identifier) "ioaddr_nvram" ()) ")" (;) ";" (expression_statement) "release_mem_region(pdata->baseaddr, pdata->size);" (call_expression) "release_mem_region(pdata->baseaddr, pdata->size)" (identifier) "release_mem_region" (argument_list) "(pdata->baseaddr, pdata->size)" (() "(" (field_expression) "pdata->baseaddr" (identifier) "pdata" (->) "->" (field_identifier) "baseaddr" (,) "," (field_expression) "pdata->size" (identifier) "pdata" (->) "->" (field_identifier) "size" ()) ")" (;) ";" (expression_statement) "kfree(pdata);" (call_expression) "kfree(pdata)" (identifier) "kfree" (argument_list) "(pdata)" (() "(" (identifier) "pdata" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (declaration) "static struct platform_driver ds1742_rtc_driver = {\n .probe = ds1742_rtc_probe,\n .remove = __devexit_p(ds1742_rtc_remove),\n .driver = {\n .name = "ds1742",\n .owner = THIS_MODULE,\n },\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct platform_driver" (struct) "struct" (type_identifier) "platform_driver" (init_declarator) "ds1742_rtc_driver = {\n .probe = ds1742_rtc_probe,\n .remove = __devexit_p(ds1742_rtc_remove),\n .driver = {\n .name = "ds1742",\n .owner = THIS_MODULE,\n },\n}" (identifier) "ds1742_rtc_driver" (=) "=" (initializer_list) "{\n .probe = ds1742_rtc_probe,\n .remove = __devexit_p(ds1742_rtc_remove),\n .driver = {\n .name = "ds1742",\n .owner = THIS_MODULE,\n },\n}" ({) "{" (initializer_pair) ".probe = ds1742_rtc_probe" (field_designator) ".probe" (.) "." (field_identifier) "probe" (=) "=" (identifier) "ds1742_rtc_probe" (,) "," (initializer_pair) ".remove = __devexit_p(ds1742_rtc_remove)" (field_designator) ".remove" (.) "." (field_identifier) "remove" (=) "=" (call_expression) "__devexit_p(ds1742_rtc_remove)" (identifier) "__devexit_p" (argument_list) "(ds1742_rtc_remove)" (() "(" (identifier) "ds1742_rtc_remove" ()) ")" (,) "," (initializer_pair) ".driver = {\n .name = "ds1742",\n .owner = THIS_MODULE,\n }" (field_designator) ".driver" (.) "." (field_identifier) "driver" (=) "=" (initializer_list) "{\n .name = "ds1742",\n .owner = THIS_MODULE,\n }" ({) "{" (initializer_pair) ".name = "ds1742"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""ds1742"" (") """ (string_content) "ds1742" (") """ (,) "," (initializer_pair) ".owner = THIS_MODULE" (field_designator) ".owner" (.) "." (field_identifier) "owner" (=) "=" (identifier) "THIS_MODULE" (,) "," (}) "}" (,) "," (}) "}" (;) ";" (function_definition) "static __init int ds1742_init(void)\n{\n return platform_driver_register(&ds1742_rtc_driver);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "__init" (ERROR) "int" (identifier) "int" (function_declarator) "ds1742_init(void)" (identifier) "ds1742_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return platform_driver_register(&ds1742_rtc_driver);\n}" ({) "{" (return_statement) "return platform_driver_register(&ds1742_rtc_driver);" (return) "return" (call_expression) "platform_driver_register(&ds1742_rtc_driver)" (identifier) "platform_driver_register" (argument_list) "(&ds1742_rtc_driver)" (() "(" (pointer_expression) "&ds1742_rtc_driver" (&) "&" (identifier) "ds1742_rtc_driver" ()) ")" (;) ";" (}) "}" (function_definition) "static __exit void ds1742_exit(void)\n{\n return platform_driver_unregister(&ds1742_rtc_driver);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "__exit" (ERROR) "void" (identifier) "void" (function_declarator) "ds1742_exit(void)" (identifier) "ds1742_exit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return platform_driver_unregister(&ds1742_rtc_driver);\n}" ({) "{" (return_statement) "return platform_driver_unregister(&ds1742_rtc_driver);" (return) "return" (call_expression) "platform_driver_unregister(&ds1742_rtc_driver)" (identifier) "platform_driver_unregister" (argument_list) "(&ds1742_rtc_driver)" (() "(" (pointer_expression) "&ds1742_rtc_driver" (&) "&" (identifier) "ds1742_rtc_driver" ()) ")" (;) ";" (}) "}" (expression_statement) "module_init(ds1742_init);" (call_expression) "module_init(ds1742_init)" (identifier) "module_init" (argument_list) "(ds1742_init)" (() "(" (identifier) "ds1742_init" ()) ")" (;) ";" (expression_statement) "module_exit(ds1742_exit);" (call_expression) "module_exit(ds1742_exit)" (identifier) "module_exit" (argument_list) "(ds1742_exit)" (() "(" (identifier) "ds1742_exit" ()) ")" (;) ";" (expression_statement) "MODULE_AUTHOR("<NAME> <<EMAIL>>");" (call_expression) "MODULE_AUTHOR("<NAME> <<EMAIL>>")" (identifier) "MODULE_AUTHOR" (argument_list) "("<NAME> <<EMAIL>>")" (() "(" (string_literal) ""<NAME> <<EMAIL>>"" (") """ (string_content) "<NAME> <<EMAIL>>" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_DESCRIPTION("Dallas DS1742 RTC driver");" (call_expression) "MODULE_DESCRIPTION("Dallas DS1742 RTC driver")" (identifier) "MODULE_DESCRIPTION" (argument_list) "("Dallas DS1742 RTC driver")" (() "(" (string_literal) ""Dallas DS1742 RTC driver"" (") """ (string_content) "Dallas DS1742 RTC driver" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_LICENSE("GPL");" (call_expression) "MODULE_LICENSE("GPL")" (identifier) "MODULE_LICENSE" (argument_list) "("GPL")" (() "(" (string_literal) ""GPL"" (") """ (string_content) "GPL" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_VERSION(DRV_VERSION);" (call_expression) "MODULE_VERSION(DRV_VERSION)" (identifier) "MODULE_VERSION" (argument_list) "(DRV_VERSION)" (() "(" (identifier) "DRV_VERSION" ()) ")" (;) ";"
2,226
13
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 30.34, "nodes": 1494, "errors": 0, "source_hash": "14232fc7cbbe59fda2828486fa64c692a73cebddaf6b975e97124caf423d2603", "categorized_nodes": 1045}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/bcd.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/bcd.h>", "parent": 0, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/init.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<linux/init.h>", "parent": 3, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/kernel.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/kernel.h>", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/delay.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/delay.h>", "parent": 9, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/jiffies.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/jiffies.h>", "parent": 12, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 26}}, {"id": 15, "type": "preproc_include", "text": "#include <linux/rtc.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<linux/rtc.h>", "parent": 15, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <linux/platform_device.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<linux/platform_device.h>", "parent": 18, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 34}}, {"id": 21, "type": "preproc_include", "text": "#include <linux/io.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<linux/io.h>", "parent": 21, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 21}}, {"id": 24, "type": "preproc_def", "text": "#define DRV_VERSION \"0.3\"\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 26, "type": "identifier", "text": "DRV_VERSION", "parent": 24, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 19}}, {"id": 27, "type": "preproc_arg", "text": "\"0.3\"", "parent": 24, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 25}}, {"id": 28, "type": "preproc_def", "text": "#define RTC_SIZE\t\t8\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 30, "type": "identifier", "text": "RTC_SIZE", "parent": 28, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 16}}, {"id": 31, "type": "preproc_arg", "text": "8", "parent": 28, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 32, "type": "preproc_def", "text": "#define RTC_CONTROL\t\t0\n", "parent": null, "children": [33, 34, 35], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 34, "type": "identifier", "text": "RTC_CONTROL", "parent": 32, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 19}}, {"id": 35, "type": "preproc_arg", "text": "0", "parent": 32, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 36, "type": "preproc_def", "text": "#define RTC_CENTURY\t\t0\n", "parent": null, "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": "RTC_CENTURY", "parent": 36, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 19}}, {"id": 39, "type": "preproc_arg", "text": "0", "parent": 36, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 22}}, {"id": 40, "type": "preproc_def", "text": "#define RTC_SECONDS\t\t1\n", "parent": null, "children": [41, 42, 43], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 42, "type": "identifier", "text": "RTC_SECONDS", "parent": 40, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 19}}, {"id": 43, "type": "preproc_arg", "text": "1", "parent": 40, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 22}}, {"id": 44, "type": "preproc_def", "text": "#define RTC_MINUTES\t\t2\n", "parent": null, "children": [45, 46, 47], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 46, "type": "identifier", "text": "RTC_MINUTES", "parent": 44, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 19}}, {"id": 47, "type": "preproc_arg", "text": "2", "parent": 44, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 48, "type": "preproc_def", "text": "#define RTC_HOURS\t\t3\n", "parent": null, "children": [49, 50, 51], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 50, "type": "identifier", "text": "RTC_HOURS", "parent": 48, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 51, "type": "preproc_arg", "text": "3", "parent": 48, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 20}}, {"id": 52, "type": "preproc_def", "text": "#define RTC_DAY\t\t\t4\n", "parent": null, "children": [53, 54, 55], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 54, "type": "identifier", "text": "RTC_DAY", "parent": 52, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 15}}, {"id": 55, "type": "preproc_arg", "text": "4", "parent": 52, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 56, "type": "preproc_def", "text": "#define RTC_DATE\t\t5\n", "parent": null, "children": [57, 58, 59], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 58, "type": "identifier", "text": "RTC_DATE", "parent": 56, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 16}}, {"id": 59, "type": "preproc_arg", "text": "5", "parent": 56, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 19}}, {"id": 60, "type": "preproc_def", "text": "#define RTC_MONTH\t\t6\n", "parent": null, "children": [61, 62, 63], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 62, "type": "identifier", "text": "RTC_MONTH", "parent": 60, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 17}}, {"id": 63, "type": "preproc_arg", "text": "6", "parent": 60, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 64, "type": "preproc_def", "text": "#define RTC_YEAR\t\t7\n", "parent": null, "children": [65, 66, 67], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 66, "type": "identifier", "text": "RTC_YEAR", "parent": 64, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 16}}, {"id": 67, "type": "preproc_arg", "text": "7", "parent": 64, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 68, "type": "preproc_def", "text": "#define RTC_CENTURY_MASK\t0x3f\n", "parent": null, "children": [69, 70, 71], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 70, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 68, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 24}}, {"id": 71, "type": "preproc_arg", "text": "0x3f", "parent": 68, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 29}}, {"id": 72, "type": "preproc_def", "text": "#define RTC_SECONDS_MASK\t0x7f\n", "parent": null, "children": [73, 74, 75], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 74, "type": "identifier", "text": "RTC_SECONDS_MASK", "parent": 72, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 24}}, {"id": 75, "type": "preproc_arg", "text": "0x7f", "parent": 72, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 29}}, {"id": 76, "type": "preproc_def", "text": "#define RTC_DAY_MASK\t\t0x07\n", "parent": null, "children": [77, 78, 79], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 78, "type": "identifier", "text": "RTC_DAY_MASK", "parent": 76, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 20}}, {"id": 79, "type": "preproc_arg", "text": "0x07", "parent": 76, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 26}}, {"id": 80, "type": "preproc_def", "text": "#define RTC_WRITE\t\t0x80\n", "parent": null, "children": [81, 82, 83], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 82, "type": "identifier", "text": "RTC_WRITE", "parent": 80, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 17}}, {"id": 83, "type": "preproc_arg", "text": "0x80", "parent": 80, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 23}}, {"id": 84, "type": "preproc_def", "text": "#define RTC_READ\t\t0x40\n", "parent": null, "children": [85, 86, 87], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 86, "type": "identifier", "text": "RTC_READ", "parent": 84, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 87, "type": "preproc_arg", "text": "0x40", "parent": 84, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 22}}, {"id": 88, "type": "preproc_def", "text": "#define RTC_STOP\t\t0x80\n", "parent": null, "children": [89, 90, 91], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 90, "type": "identifier", "text": "RTC_STOP", "parent": 88, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 91, "type": "preproc_arg", "text": "0x80", "parent": 88, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 22}}, {"id": 92, "type": "preproc_def", "text": "#define RTC_BATT_FLAG\t\t0x80\n", "parent": null, "children": [93, 94, 95], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 93, "type": "#define", "text": "#define", "parent": 92, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 94, "type": "identifier", "text": "RTC_BATT_FLAG", "parent": 92, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 21}}, {"id": 95, "type": "preproc_arg", "text": "0x80", "parent": 92, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 27}}, {"id": 96, "type": "struct_specifier", "text": "struct rtc_plat_data {\n\tstruct rtc_device *rtc;\n\tvoid __iomem *ioaddr_nvram;\n\tvoid __iomem *ioaddr_rtc;\n\tsize_t size_nvram;\n\tsize_t size;\n\tunsigned long baseaddr;\n\tunsigned long last_jiffies;\n}", "parent": null, "children": [97, 98], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 97, "type": "struct", "text": "struct", "parent": 96, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 98, "type": "type_identifier", "text": "rtc_plat_data", "parent": 96, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 20}}, {"id": 99, "type": "field_declaration", "text": "struct rtc_device *rtc;", "parent": 96, "children": [100, 103], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 24}}, {"id": 100, "type": "struct_specifier", "text": "struct rtc_device", "parent": 99, "children": [101, 102], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 18}}, {"id": 101, "type": "struct", "text": "struct", "parent": 100, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 7}}, {"id": 102, "type": "type_identifier", "text": "rtc_device", "parent": 100, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 18}}, {"id": 103, "type": "pointer_declarator", "text": "*rtc", "parent": 99, "children": [104, 105], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 23}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 20}}, {"id": 105, "type": "field_identifier", "text": "rtc", "parent": 103, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 23}}, {"id": 106, "type": "field_declaration", "text": "void __iomem *ioaddr_nvram;", "parent": 96, "children": [107, 108, 110], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 28}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 108, "type": "ERROR", "text": "__iomem", "parent": 106, "children": [109], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 13}}, {"id": 109, "type": "field_identifier", "text": "__iomem", "parent": 108, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 13}}, {"id": 110, "type": "pointer_declarator", "text": "*ioaddr_nvram", "parent": 106, "children": [111, 112], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 27}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 112, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 110, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 27}}, {"id": 113, "type": "field_declaration", "text": "void __iomem *ioaddr_rtc;", "parent": 96, "children": [114, 115, 117], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 26}}, {"id": 114, "type": "primitive_type", "text": "void", "parent": 113, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 5}}, {"id": 115, "type": "ERROR", "text": "__iomem", "parent": 113, "children": [116], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 13}}, {"id": 116, "type": "field_identifier", "text": "__iomem", "parent": 115, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 13}}, {"id": 117, "type": "pointer_declarator", "text": "*ioaddr_rtc", "parent": 113, "children": [118, 119], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 25}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 119, "type": "field_identifier", "text": "ioaddr_rtc", "parent": 117, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 25}}, {"id": 120, "type": "field_declaration", "text": "size_t size_nvram;", "parent": 96, "children": [121, 122], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 19}}, {"id": 121, "type": "primitive_type", "text": "size_t", "parent": 120, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 122, "type": "field_identifier", "text": "size_nvram", "parent": 120, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 18}}, {"id": 123, "type": "field_declaration", "text": "size_t size;", "parent": 96, "children": [124, 125], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 13}}, {"id": 124, "type": "primitive_type", "text": "size_t", "parent": 123, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 7}}, {"id": 125, "type": "field_identifier", "text": "size", "parent": 123, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 126, "type": "field_declaration", "text": "unsigned long baseaddr;", "parent": 96, "children": [127, 130], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 24}}, {"id": 127, "type": "sized_type_specifier", "text": "unsigned long", "parent": 126, "children": [128, 129], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 128, "type": "unsigned", "text": "unsigned", "parent": 127, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 9}}, {"id": 129, "type": "long", "text": "long", "parent": 127, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 14}}, {"id": 130, "type": "field_identifier", "text": "baseaddr", "parent": 126, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 23}}, {"id": 131, "type": "field_declaration", "text": "unsigned long last_jiffies;", "parent": 96, "children": [132, 135], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 28}}, {"id": 132, "type": "sized_type_specifier", "text": "unsigned long", "parent": 131, "children": [133, 134], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 14}}, {"id": 133, "type": "unsigned", "text": "unsigned", "parent": 132, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 9}}, {"id": 134, "type": "long", "text": "long", "parent": 132, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 14}}, {"id": 135, "type": "field_identifier", "text": "last_jiffies", "parent": 131, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 27}}, {"id": 136, "type": "function_definition", "text": "static int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *pdev = to_platform_device(dev);\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_rtc;\n\tu8 century;\n\n\tcentury = BIN2BCD((tm->tm_year + 1900) / 100);\n\n\twriteb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\n\twriteb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);\n\twriteb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);\n\twriteb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);\n\twriteb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);\n\twriteb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);\n\twriteb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);\n\twriteb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);\n\n\t/* RTC_CENTURY and RTC_CONTROL share same register */\n\twriteb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);\n\twriteb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n\treturn 0;\n}", "parent": null, "children": [137, 138], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 137, "type": "primitive_type", "text": "int", "parent": 136, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 10}}, {"id": 138, "type": "function_declarator", "text": "ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)", "parent": 136, "children": [139, 140], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 71}}, {"id": 139, "type": "identifier", "text": "ds1742_rtc_set_time", "parent": 138, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 30}}, {"id": 140, "type": "parameter_list", "text": "(struct device *dev, struct rtc_time *tm)", "parent": 138, "children": [141, 148], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 71}}, {"id": 141, "type": "parameter_declaration", "text": "struct device *dev", "parent": 140, "children": [142, 145], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 49}}, {"id": 142, "type": "struct_specifier", "text": "struct device", "parent": 141, "children": [143, 144], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 44}}, {"id": 143, "type": "struct", "text": "struct", "parent": 142, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 37}}, {"id": 144, "type": "type_identifier", "text": "device", "parent": 142, "children": [], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 44}}, {"id": 145, "type": "pointer_declarator", "text": "*dev", "parent": 141, "children": [146, 147], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 49}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 46}}, {"id": 147, "type": "identifier", "text": "dev", "parent": 145, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 49}}, {"id": 148, "type": "parameter_declaration", "text": "struct rtc_time *tm", "parent": 140, "children": [149, 152], "start_point": {"row": 61, "column": 51}, "end_point": {"row": 61, "column": 70}}, {"id": 149, "type": "struct_specifier", "text": "struct rtc_time", "parent": 148, "children": [150, 151], "start_point": {"row": 61, "column": 51}, "end_point": {"row": 61, "column": 66}}, {"id": 150, "type": "struct", "text": "struct", "parent": 149, "children": [], "start_point": {"row": 61, "column": 51}, "end_point": {"row": 61, "column": 57}}, {"id": 151, "type": "type_identifier", "text": "rtc_time", "parent": 149, "children": [], "start_point": {"row": 61, "column": 58}, "end_point": {"row": 61, "column": 66}}, {"id": 152, "type": "pointer_declarator", "text": "*tm", "parent": 148, "children": [153, 154], "start_point": {"row": 61, "column": 67}, "end_point": {"row": 61, "column": 70}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 61, "column": 67}, "end_point": {"row": 61, "column": 68}}, {"id": 154, "type": "identifier", "text": "tm", "parent": 152, "children": [], "start_point": {"row": 61, "column": 68}, "end_point": {"row": 61, "column": 70}}, {"id": 155, "type": "declaration", "text": "struct platform_device *pdev = to_platform_device(dev);", "parent": 136, "children": [156, 159], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 56}}, {"id": 156, "type": "struct_specifier", "text": "struct platform_device", "parent": 155, "children": [157, 158], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 23}}, {"id": 157, "type": "struct", "text": "struct", "parent": 156, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 158, "type": "type_identifier", "text": "platform_device", "parent": 156, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 23}}, {"id": 159, "type": "init_declarator", "text": "*pdev = to_platform_device(dev)", "parent": 155, "children": [160, 163, 164], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 55}}, {"id": 160, "type": "pointer_declarator", "text": "*pdev", "parent": 159, "children": [161, 162], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 29}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 162, "type": "identifier", "text": "pdev", "parent": 160, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 29}}, {"id": 163, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 31}}, {"id": 164, "type": "call_expression", "text": "to_platform_device(dev)", "parent": 159, "children": [165, 166], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 55}}, {"id": 165, "type": "identifier", "text": "to_platform_device", "parent": 164, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 50}}, {"id": 166, "type": "argument_list", "text": "(dev)", "parent": 164, "children": [167], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 55}}, {"id": 167, "type": "identifier", "text": "dev", "parent": 166, "children": [], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 54}}, {"id": 168, "type": "declaration", "text": "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);", "parent": 136, "children": [169, 172], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 58}}, {"id": 169, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 168, "children": [170, 171], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 21}}, {"id": 170, "type": "struct", "text": "struct", "parent": 169, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 171, "type": "type_identifier", "text": "rtc_plat_data", "parent": 169, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 21}}, {"id": 172, "type": "init_declarator", "text": "*pdata = platform_get_drvdata(pdev)", "parent": 168, "children": [173, 176, 177], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 57}}, {"id": 173, "type": "pointer_declarator", "text": "*pdata", "parent": 172, "children": [174, 175], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 28}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 23}}, {"id": 175, "type": "identifier", "text": "pdata", "parent": 173, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 28}}, {"id": 176, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 30}}, {"id": 177, "type": "call_expression", "text": "platform_get_drvdata(pdev)", "parent": 172, "children": [178, 179], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 57}}, {"id": 178, "type": "identifier", "text": "platform_get_drvdata", "parent": 177, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 51}}, {"id": 179, "type": "argument_list", "text": "(pdev)", "parent": 177, "children": [180], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 57}}, {"id": 180, "type": "identifier", "text": "pdev", "parent": 179, "children": [], "start_point": {"row": 64, "column": 52}, "end_point": {"row": 64, "column": 56}}, {"id": 181, "type": "declaration", "text": "void __iomem *ioaddr = pdata->ioaddr_rtc;", "parent": 136, "children": [182, 183, 185], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 42}}, {"id": 182, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 5}}, {"id": 183, "type": "ERROR", "text": "__iomem", "parent": 181, "children": [184], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 13}}, {"id": 184, "type": "identifier", "text": "__iomem", "parent": 183, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 13}}, {"id": 185, "type": "init_declarator", "text": "*ioaddr = pdata->ioaddr_rtc", "parent": 181, "children": [186, 189, 190], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 41}}, {"id": 186, "type": "pointer_declarator", "text": "*ioaddr", "parent": 185, "children": [187, 188], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 21}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 188, "type": "identifier", "text": "ioaddr", "parent": 186, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 21}}, {"id": 189, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 190, "type": "field_expression", "text": "pdata->ioaddr_rtc", "parent": 185, "children": [191, 192], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 41}}, {"id": 191, "type": "identifier", "text": "pdata", "parent": 190, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 29}}, {"id": 192, "type": "field_identifier", "text": "ioaddr_rtc", "parent": 190, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 41}}, {"id": 193, "type": "declaration", "text": "u8 century;", "parent": 136, "children": [194, 195], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 12}}, {"id": 194, "type": "type_identifier", "text": "u8", "parent": 193, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 3}}, {"id": 195, "type": "identifier", "text": "century", "parent": 193, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 11}}, {"id": 196, "type": "assignment_expression", "text": "century = BIN2BCD((tm->tm_year + 1900) / 100)", "parent": 136, "children": [197, 198, 199], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 46}}, {"id": 197, "type": "identifier", "text": "century", "parent": 196, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 198, "type": "=", "text": "=", "parent": 196, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 10}}, {"id": 199, "type": "call_expression", "text": "BIN2BCD((tm->tm_year + 1900) / 100)", "parent": 196, "children": [200, 201], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 46}}, {"id": 200, "type": "identifier", "text": "BIN2BCD", "parent": 199, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 18}}, {"id": 201, "type": "argument_list", "text": "((tm->tm_year + 1900) / 100)", "parent": 199, "children": [202], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 46}}, {"id": 202, "type": "binary_expression", "text": "(tm->tm_year + 1900) / 100", "parent": 201, "children": [203, 210, 211], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 45}}, {"id": 203, "type": "parenthesized_expression", "text": "(tm->tm_year + 1900)", "parent": 202, "children": [204], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 39}}, {"id": 204, "type": "binary_expression", "text": "tm->tm_year + 1900", "parent": 203, "children": [205, 208, 209], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 38}}, {"id": 205, "type": "field_expression", "text": "tm->tm_year", "parent": 204, "children": [206, 207], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 31}}, {"id": 206, "type": "identifier", "text": "tm", "parent": 205, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 22}}, {"id": 207, "type": "field_identifier", "text": "tm_year", "parent": 205, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 31}}, {"id": 208, "type": "+", "text": "+", "parent": 204, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 33}}, {"id": 209, "type": "number_literal", "text": "1900", "parent": 204, "children": [], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 38}}, {"id": 210, "type": "/", "text": "/", "parent": 202, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 41}}, {"id": 211, "type": "number_literal", "text": "100", "parent": 202, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 45}}, {"id": 212, "type": "call_expression", "text": "writeb(RTC_WRITE, ioaddr + RTC_CONTROL)", "parent": 136, "children": [213, 214], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 40}}, {"id": 213, "type": "identifier", "text": "writeb", "parent": 212, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 7}}, {"id": 214, "type": "argument_list", "text": "(RTC_WRITE, ioaddr + RTC_CONTROL)", "parent": 212, "children": [215, 216], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 40}}, {"id": 215, "type": "identifier", "text": "RTC_WRITE", "parent": 214, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 17}}, {"id": 216, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 214, "children": [217, 218, 219], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 39}}, {"id": 217, "type": "identifier", "text": "ioaddr", "parent": 216, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 25}}, {"id": 218, "type": "+", "text": "+", "parent": 216, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 27}}, {"id": 219, "type": "identifier", "text": "RTC_CONTROL", "parent": 216, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 39}}, {"id": 220, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR)", "parent": 136, "children": [221, 222], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 54}}, {"id": 221, "type": "identifier", "text": "writeb", "parent": 220, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 7}}, {"id": 222, "type": "argument_list", "text": "(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR)", "parent": 220, "children": [223, 232], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 54}}, {"id": 223, "type": "call_expression", "text": "BIN2BCD(tm->tm_year % 100)", "parent": 222, "children": [224, 225], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 34}}, {"id": 224, "type": "identifier", "text": "BIN2BCD", "parent": 223, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 15}}, {"id": 225, "type": "argument_list", "text": "(tm->tm_year % 100)", "parent": 223, "children": [226], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 34}}, {"id": 226, "type": "binary_expression", "text": "tm->tm_year % 100", "parent": 225, "children": [227, 230, 231], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 33}}, {"id": 227, "type": "field_expression", "text": "tm->tm_year", "parent": 226, "children": [228, 229], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 27}}, {"id": 228, "type": "identifier", "text": "tm", "parent": 227, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 18}}, {"id": 229, "type": "field_identifier", "text": "tm_year", "parent": 227, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 27}}, {"id": 230, "type": "%", "text": "%", "parent": 226, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 231, "type": "number_literal", "text": "100", "parent": 226, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 33}}, {"id": 232, "type": "binary_expression", "text": "ioaddr + RTC_YEAR", "parent": 222, "children": [233, 234, 235], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 53}}, {"id": 233, "type": "identifier", "text": "ioaddr", "parent": 232, "children": [], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 42}}, {"id": 234, "type": "+", "text": "+", "parent": 232, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 44}}, {"id": 235, "type": "identifier", "text": "RTC_YEAR", "parent": 232, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 53}}, {"id": 236, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH)", "parent": 136, "children": [237, 238], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 52}}, {"id": 237, "type": "identifier", "text": "writeb", "parent": 236, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 7}}, {"id": 238, "type": "argument_list", "text": "(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH)", "parent": 236, "children": [239, 248], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 52}}, {"id": 239, "type": "call_expression", "text": "BIN2BCD(tm->tm_mon + 1)", "parent": 238, "children": [240, 241], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 31}}, {"id": 240, "type": "identifier", "text": "BIN2BCD", "parent": 239, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 15}}, {"id": 241, "type": "argument_list", "text": "(tm->tm_mon + 1)", "parent": 239, "children": [242], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 31}}, {"id": 242, "type": "binary_expression", "text": "tm->tm_mon + 1", "parent": 241, "children": [243, 246, 247], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 30}}, {"id": 243, "type": "field_expression", "text": "tm->tm_mon", "parent": 242, "children": [244, 245], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 26}}, {"id": 244, "type": "identifier", "text": "tm", "parent": 243, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 18}}, {"id": 245, "type": "field_identifier", "text": "tm_mon", "parent": 243, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 26}}, {"id": 246, "type": "+", "text": "+", "parent": 242, "children": [], "start_point": {"row": 73, "column": 27}, "end_point": {"row": 73, "column": 28}}, {"id": 247, "type": "number_literal", "text": "1", "parent": 242, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 248, "type": "binary_expression", "text": "ioaddr + RTC_MONTH", "parent": 238, "children": [249, 250, 251], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 51}}, {"id": 249, "type": "identifier", "text": "ioaddr", "parent": 248, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 39}}, {"id": 250, "type": "+", "text": "+", "parent": 248, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 41}}, {"id": 251, "type": "identifier", "text": "RTC_MONTH", "parent": 248, "children": [], "start_point": {"row": 73, "column": 42}, "end_point": {"row": 73, "column": 51}}, {"id": 252, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY)", "parent": 136, "children": [253, 254], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 62}}, {"id": 253, "type": "identifier", "text": "writeb", "parent": 252, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 7}}, {"id": 254, "type": "argument_list", "text": "(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY)", "parent": 252, "children": [255, 263], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 62}}, {"id": 255, "type": "binary_expression", "text": "BIN2BCD(tm->tm_wday) & RTC_DAY_MASK", "parent": 254, "children": [256, 262], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 43}}, {"id": 256, "type": "call_expression", "text": "BIN2BCD(tm->tm_wday)", "parent": 255, "children": [257, 258], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 28}}, {"id": 257, "type": "identifier", "text": "BIN2BCD", "parent": 256, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 15}}, {"id": 258, "type": "argument_list", "text": "(tm->tm_wday)", "parent": 256, "children": [259], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 28}}, {"id": 259, "type": "field_expression", "text": "tm->tm_wday", "parent": 258, "children": [260, 261], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 27}}, {"id": 260, "type": "identifier", "text": "tm", "parent": 259, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 18}}, {"id": 261, "type": "field_identifier", "text": "tm_wday", "parent": 259, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 27}}, {"id": 262, "type": "identifier", "text": "RTC_DAY_MASK", "parent": 255, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 43}}, {"id": 263, "type": "binary_expression", "text": "ioaddr + RTC_DAY", "parent": 254, "children": [264, 265, 266], "start_point": {"row": 74, "column": 45}, "end_point": {"row": 74, "column": 61}}, {"id": 264, "type": "identifier", "text": "ioaddr", "parent": 263, "children": [], "start_point": {"row": 74, "column": 45}, "end_point": {"row": 74, "column": 51}}, {"id": 265, "type": "+", "text": "+", "parent": 263, "children": [], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 53}}, {"id": 266, "type": "identifier", "text": "RTC_DAY", "parent": 263, "children": [], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 61}}, {"id": 267, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE)", "parent": 136, "children": [268, 269], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 48}}, {"id": 268, "type": "identifier", "text": "writeb", "parent": 267, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 7}}, {"id": 269, "type": "argument_list", "text": "(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE)", "parent": 267, "children": [270, 276], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 48}}, {"id": 270, "type": "call_expression", "text": "BIN2BCD(tm->tm_mday)", "parent": 269, "children": [271, 272], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 28}}, {"id": 271, "type": "identifier", "text": "BIN2BCD", "parent": 270, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 15}}, {"id": 272, "type": "argument_list", "text": "(tm->tm_mday)", "parent": 270, "children": [273], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 28}}, {"id": 273, "type": "field_expression", "text": "tm->tm_mday", "parent": 272, "children": [274, 275], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 27}}, {"id": 274, "type": "identifier", "text": "tm", "parent": 273, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 18}}, {"id": 275, "type": "field_identifier", "text": "tm_mday", "parent": 273, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 27}}, {"id": 276, "type": "binary_expression", "text": "ioaddr + RTC_DATE", "parent": 269, "children": [277, 278, 279], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 47}}, {"id": 277, "type": "identifier", "text": "ioaddr", "parent": 276, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 36}}, {"id": 278, "type": "+", "text": "+", "parent": 276, "children": [], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 75, "column": 38}}, {"id": 279, "type": "identifier", "text": "RTC_DATE", "parent": 276, "children": [], "start_point": {"row": 75, "column": 39}, "end_point": {"row": 75, "column": 47}}, {"id": 280, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS)", "parent": 136, "children": [281, 282], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 49}}, {"id": 281, "type": "identifier", "text": "writeb", "parent": 280, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 7}}, {"id": 282, "type": "argument_list", "text": "(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS)", "parent": 280, "children": [283, 289], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 49}}, {"id": 283, "type": "call_expression", "text": "BIN2BCD(tm->tm_hour)", "parent": 282, "children": [284, 285], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 28}}, {"id": 284, "type": "identifier", "text": "BIN2BCD", "parent": 283, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 15}}, {"id": 285, "type": "argument_list", "text": "(tm->tm_hour)", "parent": 283, "children": [286], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 28}}, {"id": 286, "type": "field_expression", "text": "tm->tm_hour", "parent": 285, "children": [287, 288], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 27}}, {"id": 287, "type": "identifier", "text": "tm", "parent": 286, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 18}}, {"id": 288, "type": "field_identifier", "text": "tm_hour", "parent": 286, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 27}}, {"id": 289, "type": "binary_expression", "text": "ioaddr + RTC_HOURS", "parent": 282, "children": [290, 291, 292], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 48}}, {"id": 290, "type": "identifier", "text": "ioaddr", "parent": 289, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 36}}, {"id": 291, "type": "+", "text": "+", "parent": 289, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 38}}, {"id": 292, "type": "identifier", "text": "RTC_HOURS", "parent": 289, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 48}}, {"id": 293, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES)", "parent": 136, "children": [294, 295], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 50}}, {"id": 294, "type": "identifier", "text": "writeb", "parent": 293, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 7}}, {"id": 295, "type": "argument_list", "text": "(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES)", "parent": 293, "children": [296, 302], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 50}}, {"id": 296, "type": "call_expression", "text": "BIN2BCD(tm->tm_min)", "parent": 295, "children": [297, 298], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 27}}, {"id": 297, "type": "identifier", "text": "BIN2BCD", "parent": 296, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 15}}, {"id": 298, "type": "argument_list", "text": "(tm->tm_min)", "parent": 296, "children": [299], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 27}}, {"id": 299, "type": "field_expression", "text": "tm->tm_min", "parent": 298, "children": [300, 301], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 26}}, {"id": 300, "type": "identifier", "text": "tm", "parent": 299, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 18}}, {"id": 301, "type": "field_identifier", "text": "tm_min", "parent": 299, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 26}}, {"id": 302, "type": "binary_expression", "text": "ioaddr + RTC_MINUTES", "parent": 295, "children": [303, 304, 305], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 49}}, {"id": 303, "type": "identifier", "text": "ioaddr", "parent": 302, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 35}}, {"id": 304, "type": "+", "text": "+", "parent": 302, "children": [], "start_point": {"row": 77, "column": 36}, "end_point": {"row": 77, "column": 37}}, {"id": 305, "type": "identifier", "text": "RTC_MINUTES", "parent": 302, "children": [], "start_point": {"row": 77, "column": 38}, "end_point": {"row": 77, "column": 49}}, {"id": 306, "type": "call_expression", "text": "writeb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS)", "parent": 136, "children": [307, 308], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 69}}, {"id": 307, "type": "identifier", "text": "writeb", "parent": 306, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 7}}, {"id": 308, "type": "argument_list", "text": "(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS)", "parent": 306, "children": [309, 317], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 69}}, {"id": 309, "type": "binary_expression", "text": "BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK", "parent": 308, "children": [310, 316], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 46}}, {"id": 310, "type": "call_expression", "text": "BIN2BCD(tm->tm_sec)", "parent": 309, "children": [311, 312], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 27}}, {"id": 311, "type": "identifier", "text": "BIN2BCD", "parent": 310, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 15}}, {"id": 312, "type": "argument_list", "text": "(tm->tm_sec)", "parent": 310, "children": [313], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 27}}, {"id": 313, "type": "field_expression", "text": "tm->tm_sec", "parent": 312, "children": [314, 315], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 26}}, {"id": 314, "type": "identifier", "text": "tm", "parent": 313, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 18}}, {"id": 315, "type": "field_identifier", "text": "tm_sec", "parent": 313, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 26}}, {"id": 316, "type": "identifier", "text": "RTC_SECONDS_MASK", "parent": 309, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 46}}, {"id": 317, "type": "binary_expression", "text": "ioaddr + RTC_SECONDS", "parent": 308, "children": [318, 319, 320], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 68}}, {"id": 318, "type": "identifier", "text": "ioaddr", "parent": 317, "children": [], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 54}}, {"id": 319, "type": "+", "text": "+", "parent": 317, "children": [], "start_point": {"row": 78, "column": 55}, "end_point": {"row": 78, "column": 56}}, {"id": 320, "type": "identifier", "text": "RTC_SECONDS", "parent": 317, "children": [], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 68}}, {"id": 321, "type": "call_expression", "text": "writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY)", "parent": 136, "children": [322, 323], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 71}}, {"id": 322, "type": "identifier", "text": "writeb", "parent": 321, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 7}}, {"id": 323, "type": "argument_list", "text": "(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY)", "parent": 321, "children": [324, 330], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 71}}, {"id": 324, "type": "binary_expression", "text": "RTC_WRITE | (century & RTC_CENTURY_MASK)", "parent": 323, "children": [325, 326], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 48}}, {"id": 325, "type": "identifier", "text": "RTC_WRITE", "parent": 324, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 17}}, {"id": 326, "type": "parenthesized_expression", "text": "(century & RTC_CENTURY_MASK)", "parent": 324, "children": [327], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 48}}, {"id": 327, "type": "binary_expression", "text": "century & RTC_CENTURY_MASK", "parent": 326, "children": [328, 329], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 47}}, {"id": 328, "type": "identifier", "text": "century", "parent": 327, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 28}}, {"id": 329, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 327, "children": [], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 47}}, {"id": 330, "type": "binary_expression", "text": "ioaddr + RTC_CENTURY", "parent": 323, "children": [331, 332, 333], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 70}}, {"id": 331, "type": "identifier", "text": "ioaddr", "parent": 330, "children": [], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 56}}, {"id": 332, "type": "+", "text": "+", "parent": 330, "children": [], "start_point": {"row": 81, "column": 57}, "end_point": {"row": 81, "column": 58}}, {"id": 333, "type": "identifier", "text": "RTC_CENTURY", "parent": 330, "children": [], "start_point": {"row": 81, "column": 59}, "end_point": {"row": 81, "column": 70}}, {"id": 334, "type": "call_expression", "text": "writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)", "parent": 136, "children": [335, 336], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 57}}, {"id": 335, "type": "identifier", "text": "writeb", "parent": 334, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 7}}, {"id": 336, "type": "argument_list", "text": "(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)", "parent": 334, "children": [337, 340], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 57}}, {"id": 337, "type": "binary_expression", "text": "century & RTC_CENTURY_MASK", "parent": 336, "children": [338, 339], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 34}}, {"id": 338, "type": "identifier", "text": "century", "parent": 337, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 15}}, {"id": 339, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 337, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 34}}, {"id": 340, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 336, "children": [341, 342, 343], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 56}}, {"id": 341, "type": "identifier", "text": "ioaddr", "parent": 340, "children": [], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 42}}, {"id": 342, "type": "+", "text": "+", "parent": 340, "children": [], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 44}}, {"id": 343, "type": "identifier", "text": "RTC_CONTROL", "parent": 340, "children": [], "start_point": {"row": 82, "column": 45}, "end_point": {"row": 82, "column": 56}}, {"id": 344, "type": "return_statement", "text": "return 0;", "parent": 136, "children": [345], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 10}}, {"id": 345, "type": "number_literal", "text": "0", "parent": 344, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 9}}, {"id": 346, "type": "function_definition", "text": "static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *pdev = to_platform_device(dev);\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_rtc;\n\tunsigned int year, month, day, hour, minute, second, week;\n\tunsigned int century;\n\n\t/* give enough time to update RTC in case of continuous read */\n\tif (pdata->last_jiffies == jiffies)\n\t\tmsleep(1);\n\tpdata->last_jiffies = jiffies;\n\twriteb(RTC_READ, ioaddr + RTC_CONTROL);\n\tsecond = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;\n\tminute = readb(ioaddr + RTC_MINUTES);\n\thour = readb(ioaddr + RTC_HOURS);\n\tday = readb(ioaddr + RTC_DATE);\n\tweek = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;\n\tmonth = readb(ioaddr + RTC_MONTH);\n\tyear = readb(ioaddr + RTC_YEAR);\n\tcentury = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n\twriteb(0, ioaddr + RTC_CONTROL);\n\ttm->tm_sec = BCD2BIN(second);\n\ttm->tm_min = BCD2BIN(minute);\n\ttm->tm_hour = BCD2BIN(hour);\n\ttm->tm_mday = BCD2BIN(day);\n\ttm->tm_wday = BCD2BIN(week);\n\ttm->tm_mon = BCD2BIN(month) - 1;\n\t/* year is 1900 + tm->tm_year */\n\ttm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;\n\n\tif (rtc_valid_tm(tm) < 0) {\n\t\tdev_err(dev, \"retrieved date/time is not valid.\\n\");\n\t\trtc_time_to_tm(0, tm);\n\t}\n\treturn 0;\n}", "parent": null, "children": [347, 348], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 347, "type": "primitive_type", "text": "int", "parent": 346, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 10}}, {"id": 348, "type": "function_declarator", "text": "ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)", "parent": 346, "children": [349, 350], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 72}}, {"id": 349, "type": "identifier", "text": "ds1742_rtc_read_time", "parent": 348, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 31}}, {"id": 350, "type": "parameter_list", "text": "(struct device *dev, struct rtc_time *tm)", "parent": 348, "children": [351, 358], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 72}}, {"id": 351, "type": "parameter_declaration", "text": "struct device *dev", "parent": 350, "children": [352, 355], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 50}}, {"id": 352, "type": "struct_specifier", "text": "struct device", "parent": 351, "children": [353, 354], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 45}}, {"id": 353, "type": "struct", "text": "struct", "parent": 352, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 38}}, {"id": 354, "type": "type_identifier", "text": "device", "parent": 352, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 45}}, {"id": 355, "type": "pointer_declarator", "text": "*dev", "parent": 351, "children": [356, 357], "start_point": {"row": 86, "column": 46}, "end_point": {"row": 86, "column": 50}}, {"id": 356, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 86, "column": 46}, "end_point": {"row": 86, "column": 47}}, {"id": 357, "type": "identifier", "text": "dev", "parent": 355, "children": [], "start_point": {"row": 86, "column": 47}, "end_point": {"row": 86, "column": 50}}, {"id": 358, "type": "parameter_declaration", "text": "struct rtc_time *tm", "parent": 350, "children": [359, 362], "start_point": {"row": 86, "column": 52}, "end_point": {"row": 86, "column": 71}}, {"id": 359, "type": "struct_specifier", "text": "struct rtc_time", "parent": 358, "children": [360, 361], "start_point": {"row": 86, "column": 52}, "end_point": {"row": 86, "column": 67}}, {"id": 360, "type": "struct", "text": "struct", "parent": 359, "children": [], "start_point": {"row": 86, "column": 52}, "end_point": {"row": 86, "column": 58}}, {"id": 361, "type": "type_identifier", "text": "rtc_time", "parent": 359, "children": [], "start_point": {"row": 86, "column": 59}, "end_point": {"row": 86, "column": 67}}, {"id": 362, "type": "pointer_declarator", "text": "*tm", "parent": 358, "children": [363, 364], "start_point": {"row": 86, "column": 68}, "end_point": {"row": 86, "column": 71}}, {"id": 363, "type": "*", "text": "*", "parent": 362, "children": [], "start_point": {"row": 86, "column": 68}, "end_point": {"row": 86, "column": 69}}, {"id": 364, "type": "identifier", "text": "tm", "parent": 362, "children": [], "start_point": {"row": 86, "column": 69}, "end_point": {"row": 86, "column": 71}}, {"id": 365, "type": "declaration", "text": "struct platform_device *pdev = to_platform_device(dev);", "parent": 346, "children": [366, 369], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 56}}, {"id": 366, "type": "struct_specifier", "text": "struct platform_device", "parent": 365, "children": [367, 368], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 23}}, {"id": 367, "type": "struct", "text": "struct", "parent": 366, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 7}}, {"id": 368, "type": "type_identifier", "text": "platform_device", "parent": 366, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 23}}, {"id": 369, "type": "init_declarator", "text": "*pdev = to_platform_device(dev)", "parent": 365, "children": [370, 373, 374], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 55}}, {"id": 370, "type": "pointer_declarator", "text": "*pdev", "parent": 369, "children": [371, 372], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 29}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 25}}, {"id": 372, "type": "identifier", "text": "pdev", "parent": 370, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 29}}, {"id": 373, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 31}}, {"id": 374, "type": "call_expression", "text": "to_platform_device(dev)", "parent": 369, "children": [375, 376], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 55}}, {"id": 375, "type": "identifier", "text": "to_platform_device", "parent": 374, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 50}}, {"id": 376, "type": "argument_list", "text": "(dev)", "parent": 374, "children": [377], "start_point": {"row": 88, "column": 50}, "end_point": {"row": 88, "column": 55}}, {"id": 377, "type": "identifier", "text": "dev", "parent": 376, "children": [], "start_point": {"row": 88, "column": 51}, "end_point": {"row": 88, "column": 54}}, {"id": 378, "type": "declaration", "text": "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);", "parent": 346, "children": [379, 382], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 58}}, {"id": 379, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 378, "children": [380, 381], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 21}}, {"id": 380, "type": "struct", "text": "struct", "parent": 379, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 7}}, {"id": 381, "type": "type_identifier", "text": "rtc_plat_data", "parent": 379, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 21}}, {"id": 382, "type": "init_declarator", "text": "*pdata = platform_get_drvdata(pdev)", "parent": 378, "children": [383, 386, 387], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 57}}, {"id": 383, "type": "pointer_declarator", "text": "*pdata", "parent": 382, "children": [384, 385], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 28}}, {"id": 384, "type": "*", "text": "*", "parent": 383, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 23}}, {"id": 385, "type": "identifier", "text": "pdata", "parent": 383, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 28}}, {"id": 386, "type": "=", "text": "=", "parent": 382, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 30}}, {"id": 387, "type": "call_expression", "text": "platform_get_drvdata(pdev)", "parent": 382, "children": [388, 389], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 57}}, {"id": 388, "type": "identifier", "text": "platform_get_drvdata", "parent": 387, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 51}}, {"id": 389, "type": "argument_list", "text": "(pdev)", "parent": 387, "children": [390], "start_point": {"row": 89, "column": 51}, "end_point": {"row": 89, "column": 57}}, {"id": 390, "type": "identifier", "text": "pdev", "parent": 389, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 56}}, {"id": 391, "type": "declaration", "text": "void __iomem *ioaddr = pdata->ioaddr_rtc;", "parent": 346, "children": [392, 393, 395], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 42}}, {"id": 392, "type": "primitive_type", "text": "void", "parent": 391, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 5}}, {"id": 393, "type": "ERROR", "text": "__iomem", "parent": 391, "children": [394], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 13}}, {"id": 394, "type": "identifier", "text": "__iomem", "parent": 393, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 13}}, {"id": 395, "type": "init_declarator", "text": "*ioaddr = pdata->ioaddr_rtc", "parent": 391, "children": [396, 399, 400], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 41}}, {"id": 396, "type": "pointer_declarator", "text": "*ioaddr", "parent": 395, "children": [397, 398], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 21}}, {"id": 397, "type": "*", "text": "*", "parent": 396, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 15}}, {"id": 398, "type": "identifier", "text": "ioaddr", "parent": 396, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 21}}, {"id": 399, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 23}}, {"id": 400, "type": "field_expression", "text": "pdata->ioaddr_rtc", "parent": 395, "children": [401, 402], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 41}}, {"id": 401, "type": "identifier", "text": "pdata", "parent": 400, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 29}}, {"id": 402, "type": "field_identifier", "text": "ioaddr_rtc", "parent": 400, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 41}}, {"id": 403, "type": "declaration", "text": "unsigned int year, month, day, hour, minute, second, week;", "parent": 346, "children": [404, 407, 408, 409, 410, 411, 412, 413], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 59}}, {"id": 404, "type": "sized_type_specifier", "text": "unsigned int", "parent": 403, "children": [405, 406], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 13}}, {"id": 405, "type": "unsigned", "text": "unsigned", "parent": 404, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 9}}, {"id": 406, "type": "primitive_type", "text": "int", "parent": 404, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 13}}, {"id": 407, "type": "identifier", "text": "year", "parent": 403, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 18}}, {"id": 408, "type": "identifier", "text": "month", "parent": 403, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 25}}, {"id": 409, "type": "identifier", "text": "day", "parent": 403, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 30}}, {"id": 410, "type": "identifier", "text": "hour", "parent": 403, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 36}}, {"id": 411, "type": "identifier", "text": "minute", "parent": 403, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 44}}, {"id": 412, "type": "identifier", "text": "second", "parent": 403, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 52}}, {"id": 413, "type": "identifier", "text": "week", "parent": 403, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 58}}, {"id": 414, "type": "declaration", "text": "unsigned int century;", "parent": 346, "children": [415, 418], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 22}}, {"id": 415, "type": "sized_type_specifier", "text": "unsigned int", "parent": 414, "children": [416, 417], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 13}}, {"id": 416, "type": "unsigned", "text": "unsigned", "parent": 415, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 9}}, {"id": 417, "type": "primitive_type", "text": "int", "parent": 415, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 13}}, {"id": 418, "type": "identifier", "text": "century", "parent": 414, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 21}}, {"id": 419, "type": "if_statement", "text": "if (pdata->last_jiffies == jiffies)\n\t\tmsleep(1);", "parent": 346, "children": [420], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 96, "column": 12}}, {"id": 420, "type": "parenthesized_expression", "text": "(pdata->last_jiffies == jiffies)", "parent": 419, "children": [421], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 36}}, {"id": 421, "type": "binary_expression", "text": "pdata->last_jiffies == jiffies", "parent": 420, "children": [422, 425, 426], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 35}}, {"id": 422, "type": "field_expression", "text": "pdata->last_jiffies", "parent": 421, "children": [423, 424], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 24}}, {"id": 423, "type": "identifier", "text": "pdata", "parent": 422, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 10}}, {"id": 424, "type": "field_identifier", "text": "last_jiffies", "parent": 422, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 24}}, {"id": 425, "type": "==", "text": "==", "parent": 421, "children": [], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 27}}, {"id": 426, "type": "identifier", "text": "jiffies", "parent": 421, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 35}}, {"id": 427, "type": "call_expression", "text": "msleep(1)", "parent": 419, "children": [428, 429], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 11}}, {"id": 428, "type": "identifier", "text": "msleep", "parent": 427, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 8}}, {"id": 429, "type": "argument_list", "text": "(1)", "parent": 427, "children": [430], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 11}}, {"id": 430, "type": "number_literal", "text": "1", "parent": 429, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 10}}, {"id": 431, "type": "assignment_expression", "text": "pdata->last_jiffies = jiffies", "parent": 346, "children": [432, 435, 436], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 30}}, {"id": 432, "type": "field_expression", "text": "pdata->last_jiffies", "parent": 431, "children": [433, 434], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 20}}, {"id": 433, "type": "identifier", "text": "pdata", "parent": 432, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 6}}, {"id": 434, "type": "field_identifier", "text": "last_jiffies", "parent": 432, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 20}}, {"id": 435, "type": "=", "text": "=", "parent": 431, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 22}}, {"id": 436, "type": "identifier", "text": "jiffies", "parent": 431, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 30}}, {"id": 437, "type": "call_expression", "text": "writeb(RTC_READ, ioaddr + RTC_CONTROL)", "parent": 346, "children": [438, 439], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 39}}, {"id": 438, "type": "identifier", "text": "writeb", "parent": 437, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 7}}, {"id": 439, "type": "argument_list", "text": "(RTC_READ, ioaddr + RTC_CONTROL)", "parent": 437, "children": [440, 441], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 39}}, {"id": 440, "type": "identifier", "text": "RTC_READ", "parent": 439, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 16}}, {"id": 441, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 439, "children": [442, 443, 444], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 38}}, {"id": 442, "type": "identifier", "text": "ioaddr", "parent": 441, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 24}}, {"id": 443, "type": "+", "text": "+", "parent": 441, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 26}}, {"id": 444, "type": "identifier", "text": "RTC_CONTROL", "parent": 441, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 38}}, {"id": 445, "type": "assignment_expression", "text": "second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK", "parent": 346, "children": [446, 447, 448], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 56}}, {"id": 446, "type": "identifier", "text": "second", "parent": 445, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 7}}, {"id": 447, "type": "=", "text": "=", "parent": 445, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 448, "type": "binary_expression", "text": "readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK", "parent": 445, "children": [449, 456], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 56}}, {"id": 449, "type": "call_expression", "text": "readb(ioaddr + RTC_SECONDS)", "parent": 448, "children": [450, 451], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 37}}, {"id": 450, "type": "identifier", "text": "readb", "parent": 449, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 15}}, {"id": 451, "type": "argument_list", "text": "(ioaddr + RTC_SECONDS)", "parent": 449, "children": [452], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 37}}, {"id": 452, "type": "binary_expression", "text": "ioaddr + RTC_SECONDS", "parent": 451, "children": [453, 454, 455], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 36}}, {"id": 453, "type": "identifier", "text": "ioaddr", "parent": 452, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 22}}, {"id": 454, "type": "+", "text": "+", "parent": 452, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 24}}, {"id": 455, "type": "identifier", "text": "RTC_SECONDS", "parent": 452, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 36}}, {"id": 456, "type": "identifier", "text": "RTC_SECONDS_MASK", "parent": 448, "children": [], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 56}}, {"id": 457, "type": "assignment_expression", "text": "minute = readb(ioaddr + RTC_MINUTES)", "parent": 346, "children": [458, 459, 460], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 37}}, {"id": 458, "type": "identifier", "text": "minute", "parent": 457, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 7}}, {"id": 459, "type": "=", "text": "=", "parent": 457, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 9}}, {"id": 460, "type": "call_expression", "text": "readb(ioaddr + RTC_MINUTES)", "parent": 457, "children": [461, 462], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 37}}, {"id": 461, "type": "identifier", "text": "readb", "parent": 460, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 15}}, {"id": 462, "type": "argument_list", "text": "(ioaddr + RTC_MINUTES)", "parent": 460, "children": [463], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 37}}, {"id": 463, "type": "binary_expression", "text": "ioaddr + RTC_MINUTES", "parent": 462, "children": [464, 465, 466], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 36}}, {"id": 464, "type": "identifier", "text": "ioaddr", "parent": 463, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 22}}, {"id": 465, "type": "+", "text": "+", "parent": 463, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 24}}, {"id": 466, "type": "identifier", "text": "RTC_MINUTES", "parent": 463, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 36}}, {"id": 467, "type": "assignment_expression", "text": "hour = readb(ioaddr + RTC_HOURS)", "parent": 346, "children": [468, 469, 470], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 33}}, {"id": 468, "type": "identifier", "text": "hour", "parent": 467, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 5}}, {"id": 469, "type": "=", "text": "=", "parent": 467, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 7}}, {"id": 470, "type": "call_expression", "text": "readb(ioaddr + RTC_HOURS)", "parent": 467, "children": [471, 472], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 33}}, {"id": 471, "type": "identifier", "text": "readb", "parent": 470, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 13}}, {"id": 472, "type": "argument_list", "text": "(ioaddr + RTC_HOURS)", "parent": 470, "children": [473], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 33}}, {"id": 473, "type": "binary_expression", "text": "ioaddr + RTC_HOURS", "parent": 472, "children": [474, 475, 476], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 32}}, {"id": 474, "type": "identifier", "text": "ioaddr", "parent": 473, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 20}}, {"id": 475, "type": "+", "text": "+", "parent": 473, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 22}}, {"id": 476, "type": "identifier", "text": "RTC_HOURS", "parent": 473, "children": [], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 32}}, {"id": 477, "type": "assignment_expression", "text": "day = readb(ioaddr + RTC_DATE)", "parent": 346, "children": [478, 479, 480], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 31}}, {"id": 478, "type": "identifier", "text": "day", "parent": 477, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 4}}, {"id": 479, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 6}}, {"id": 480, "type": "call_expression", "text": "readb(ioaddr + RTC_DATE)", "parent": 477, "children": [481, 482], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 31}}, {"id": 481, "type": "identifier", "text": "readb", "parent": 480, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 12}}, {"id": 482, "type": "argument_list", "text": "(ioaddr + RTC_DATE)", "parent": 480, "children": [483], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 31}}, {"id": 483, "type": "binary_expression", "text": "ioaddr + RTC_DATE", "parent": 482, "children": [484, 485, 486], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 30}}, {"id": 484, "type": "identifier", "text": "ioaddr", "parent": 483, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 19}}, {"id": 485, "type": "+", "text": "+", "parent": 483, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 486, "type": "identifier", "text": "RTC_DATE", "parent": 483, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 30}}, {"id": 487, "type": "assignment_expression", "text": "week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK", "parent": 346, "children": [488, 489, 490], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 46}}, {"id": 488, "type": "identifier", "text": "week", "parent": 487, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 5}}, {"id": 489, "type": "=", "text": "=", "parent": 487, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 7}}, {"id": 490, "type": "binary_expression", "text": "readb(ioaddr + RTC_DAY) & RTC_DAY_MASK", "parent": 487, "children": [491, 498], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 46}}, {"id": 491, "type": "call_expression", "text": "readb(ioaddr + RTC_DAY)", "parent": 490, "children": [492, 493], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 31}}, {"id": 492, "type": "identifier", "text": "readb", "parent": 491, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 13}}, {"id": 493, "type": "argument_list", "text": "(ioaddr + RTC_DAY)", "parent": 491, "children": [494], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 31}}, {"id": 494, "type": "binary_expression", "text": "ioaddr + RTC_DAY", "parent": 493, "children": [495, 496, 497], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 30}}, {"id": 495, "type": "identifier", "text": "ioaddr", "parent": 494, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 20}}, {"id": 496, "type": "+", "text": "+", "parent": 494, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 22}}, {"id": 497, "type": "identifier", "text": "RTC_DAY", "parent": 494, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 30}}, {"id": 498, "type": "identifier", "text": "RTC_DAY_MASK", "parent": 490, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 46}}, {"id": 499, "type": "assignment_expression", "text": "month = readb(ioaddr + RTC_MONTH)", "parent": 346, "children": [500, 501, 502], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 34}}, {"id": 500, "type": "identifier", "text": "month", "parent": 499, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 6}}, {"id": 501, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 8}}, {"id": 502, "type": "call_expression", "text": "readb(ioaddr + RTC_MONTH)", "parent": 499, "children": [503, 504], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 34}}, {"id": 503, "type": "identifier", "text": "readb", "parent": 502, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 14}}, {"id": 504, "type": "argument_list", "text": "(ioaddr + RTC_MONTH)", "parent": 502, "children": [505], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 34}}, {"id": 505, "type": "binary_expression", "text": "ioaddr + RTC_MONTH", "parent": 504, "children": [506, 507, 508], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 33}}, {"id": 506, "type": "identifier", "text": "ioaddr", "parent": 505, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 21}}, {"id": 507, "type": "+", "text": "+", "parent": 505, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 23}}, {"id": 508, "type": "identifier", "text": "RTC_MONTH", "parent": 505, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 33}}, {"id": 509, "type": "assignment_expression", "text": "year = readb(ioaddr + RTC_YEAR)", "parent": 346, "children": [510, 511, 512], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 32}}, {"id": 510, "type": "identifier", "text": "year", "parent": 509, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 5}}, {"id": 511, "type": "=", "text": "=", "parent": 509, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 7}}, {"id": 512, "type": "call_expression", "text": "readb(ioaddr + RTC_YEAR)", "parent": 509, "children": [513, 514], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 32}}, {"id": 513, "type": "identifier", "text": "readb", "parent": 512, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 13}}, {"id": 514, "type": "argument_list", "text": "(ioaddr + RTC_YEAR)", "parent": 512, "children": [515], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 32}}, {"id": 515, "type": "binary_expression", "text": "ioaddr + RTC_YEAR", "parent": 514, "children": [516, 517, 518], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 31}}, {"id": 516, "type": "identifier", "text": "ioaddr", "parent": 515, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 20}}, {"id": 517, "type": "+", "text": "+", "parent": 515, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 22}}, {"id": 518, "type": "identifier", "text": "RTC_YEAR", "parent": 515, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 31}}, {"id": 519, "type": "assignment_expression", "text": "century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK", "parent": 346, "children": [520, 521, 522], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 57}}, {"id": 520, "type": "identifier", "text": "century", "parent": 519, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 8}}, {"id": 521, "type": "=", "text": "=", "parent": 519, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 522, "type": "binary_expression", "text": "readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK", "parent": 519, "children": [523, 530], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 57}}, {"id": 523, "type": "call_expression", "text": "readb(ioaddr + RTC_CENTURY)", "parent": 522, "children": [524, 525], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 38}}, {"id": 524, "type": "identifier", "text": "readb", "parent": 523, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 16}}, {"id": 525, "type": "argument_list", "text": "(ioaddr + RTC_CENTURY)", "parent": 523, "children": [526], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 38}}, {"id": 526, "type": "binary_expression", "text": "ioaddr + RTC_CENTURY", "parent": 525, "children": [527, 528, 529], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 37}}, {"id": 527, "type": "identifier", "text": "ioaddr", "parent": 526, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 23}}, {"id": 528, "type": "+", "text": "+", "parent": 526, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 529, "type": "identifier", "text": "RTC_CENTURY", "parent": 526, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 37}}, {"id": 530, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 522, "children": [], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 57}}, {"id": 531, "type": "call_expression", "text": "writeb(0, ioaddr + RTC_CONTROL)", "parent": 346, "children": [532, 533], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 32}}, {"id": 532, "type": "identifier", "text": "writeb", "parent": 531, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 7}}, {"id": 533, "type": "argument_list", "text": "(0, ioaddr + RTC_CONTROL)", "parent": 531, "children": [534, 535], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 32}}, {"id": 534, "type": "number_literal", "text": "0", "parent": 533, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 9}}, {"id": 535, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 533, "children": [536, 537, 538], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 31}}, {"id": 536, "type": "identifier", "text": "ioaddr", "parent": 535, "children": [], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 17}}, {"id": 537, "type": "+", "text": "+", "parent": 535, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 538, "type": "identifier", "text": "RTC_CONTROL", "parent": 535, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 31}}, {"id": 539, "type": "assignment_expression", "text": "tm->tm_sec = BCD2BIN(second)", "parent": 346, "children": [540, 543, 544], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 29}}, {"id": 540, "type": "field_expression", "text": "tm->tm_sec", "parent": 539, "children": [541, 542], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 11}}, {"id": 541, "type": "identifier", "text": "tm", "parent": 540, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 3}}, {"id": 542, "type": "field_identifier", "text": "tm_sec", "parent": 540, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 11}}, {"id": 543, "type": "=", "text": "=", "parent": 539, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 13}}, {"id": 544, "type": "call_expression", "text": "BCD2BIN(second)", "parent": 539, "children": [545, 546], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 29}}, {"id": 545, "type": "identifier", "text": "BCD2BIN", "parent": 544, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 21}}, {"id": 546, "type": "argument_list", "text": "(second)", "parent": 544, "children": [547], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 29}}, {"id": 547, "type": "identifier", "text": "second", "parent": 546, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 28}}, {"id": 548, "type": "assignment_expression", "text": "tm->tm_min = BCD2BIN(minute)", "parent": 346, "children": [549, 552, 553], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 29}}, {"id": 549, "type": "field_expression", "text": "tm->tm_min", "parent": 548, "children": [550, 551], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 11}}, {"id": 550, "type": "identifier", "text": "tm", "parent": 549, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 3}}, {"id": 551, "type": "field_identifier", "text": "tm_min", "parent": 549, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 11}}, {"id": 552, "type": "=", "text": "=", "parent": 548, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 13}}, {"id": 553, "type": "call_expression", "text": "BCD2BIN(minute)", "parent": 548, "children": [554, 555], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 29}}, {"id": 554, "type": "identifier", "text": "BCD2BIN", "parent": 553, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 21}}, {"id": 555, "type": "argument_list", "text": "(minute)", "parent": 553, "children": [556], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 29}}, {"id": 556, "type": "identifier", "text": "minute", "parent": 555, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 28}}, {"id": 557, "type": "assignment_expression", "text": "tm->tm_hour = BCD2BIN(hour)", "parent": 346, "children": [558, 561, 562], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 28}}, {"id": 558, "type": "field_expression", "text": "tm->tm_hour", "parent": 557, "children": [559, 560], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 12}}, {"id": 559, "type": "identifier", "text": "tm", "parent": 558, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 3}}, {"id": 560, "type": "field_identifier", "text": "tm_hour", "parent": 558, "children": [], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 12}}, {"id": 561, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 14}}, {"id": 562, "type": "call_expression", "text": "BCD2BIN(hour)", "parent": 557, "children": [563, 564], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 28}}, {"id": 563, "type": "identifier", "text": "BCD2BIN", "parent": 562, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 22}}, {"id": 564, "type": "argument_list", "text": "(hour)", "parent": 562, "children": [565], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 28}}, {"id": 565, "type": "identifier", "text": "hour", "parent": 564, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 27}}, {"id": 566, "type": "assignment_expression", "text": "tm->tm_mday = BCD2BIN(day)", "parent": 346, "children": [567, 570, 571], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 27}}, {"id": 567, "type": "field_expression", "text": "tm->tm_mday", "parent": 566, "children": [568, 569], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 12}}, {"id": 568, "type": "identifier", "text": "tm", "parent": 567, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 3}}, {"id": 569, "type": "field_identifier", "text": "tm_mday", "parent": 567, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 12}}, {"id": 570, "type": "=", "text": "=", "parent": 566, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 14}}, {"id": 571, "type": "call_expression", "text": "BCD2BIN(day)", "parent": 566, "children": [572, 573], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 27}}, {"id": 572, "type": "identifier", "text": "BCD2BIN", "parent": 571, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 22}}, {"id": 573, "type": "argument_list", "text": "(day)", "parent": 571, "children": [574], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 27}}, {"id": 574, "type": "identifier", "text": "day", "parent": 573, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 26}}, {"id": 575, "type": "assignment_expression", "text": "tm->tm_wday = BCD2BIN(week)", "parent": 346, "children": [576, 579, 580], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 28}}, {"id": 576, "type": "field_expression", "text": "tm->tm_wday", "parent": 575, "children": [577, 578], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 12}}, {"id": 577, "type": "identifier", "text": "tm", "parent": 576, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 3}}, {"id": 578, "type": "field_identifier", "text": "tm_wday", "parent": 576, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 12}}, {"id": 579, "type": "=", "text": "=", "parent": 575, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 14}}, {"id": 580, "type": "call_expression", "text": "BCD2BIN(week)", "parent": 575, "children": [581, 582], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 28}}, {"id": 581, "type": "identifier", "text": "BCD2BIN", "parent": 580, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 22}}, {"id": 582, "type": "argument_list", "text": "(week)", "parent": 580, "children": [583], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 28}}, {"id": 583, "type": "identifier", "text": "week", "parent": 582, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 27}}, {"id": 584, "type": "assignment_expression", "text": "tm->tm_mon = BCD2BIN(month) - 1", "parent": 346, "children": [585, 588, 589], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 32}}, {"id": 585, "type": "field_expression", "text": "tm->tm_mon", "parent": 584, "children": [586, 587], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 11}}, {"id": 586, "type": "identifier", "text": "tm", "parent": 585, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 3}}, {"id": 587, "type": "field_identifier", "text": "tm_mon", "parent": 585, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 11}}, {"id": 588, "type": "=", "text": "=", "parent": 584, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 13}}, {"id": 589, "type": "binary_expression", "text": "BCD2BIN(month) - 1", "parent": 584, "children": [590, 594, 595], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 32}}, {"id": 590, "type": "call_expression", "text": "BCD2BIN(month)", "parent": 589, "children": [591, 592], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 28}}, {"id": 591, "type": "identifier", "text": "BCD2BIN", "parent": 590, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 21}}, {"id": 592, "type": "argument_list", "text": "(month)", "parent": 590, "children": [593], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 28}}, {"id": 593, "type": "identifier", "text": "month", "parent": 592, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 27}}, {"id": 594, "type": "-", "text": "-", "parent": 589, "children": [], "start_point": {"row": 113, "column": 29}, "end_point": {"row": 113, "column": 30}}, {"id": 595, "type": "number_literal", "text": "1", "parent": 589, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 32}}, {"id": 596, "type": "assignment_expression", "text": "tm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900", "parent": 346, "children": [597, 600, 601], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 60}}, {"id": 597, "type": "field_expression", "text": "tm->tm_year", "parent": 596, "children": [598, 599], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 12}}, {"id": 598, "type": "identifier", "text": "tm", "parent": 597, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 3}}, {"id": 599, "type": "field_identifier", "text": "tm_year", "parent": 597, "children": [], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 12}}, {"id": 600, "type": "=", "text": "=", "parent": 596, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 14}}, {"id": 601, "type": "binary_expression", "text": "BCD2BIN(year) + BCD2BIN(century) * 100 - 1900", "parent": 596, "children": [602, 615, 616], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 60}}, {"id": 602, "type": "binary_expression", "text": "BCD2BIN(year) + BCD2BIN(century) * 100", "parent": 601, "children": [603, 607, 608], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 53}}, {"id": 603, "type": "call_expression", "text": "BCD2BIN(year)", "parent": 602, "children": [604, 605], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 28}}, {"id": 604, "type": "identifier", "text": "BCD2BIN", "parent": 603, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 22}}, {"id": 605, "type": "argument_list", "text": "(year)", "parent": 603, "children": [606], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 28}}, {"id": 606, "type": "identifier", "text": "year", "parent": 605, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 27}}, {"id": 607, "type": "+", "text": "+", "parent": 602, "children": [], "start_point": {"row": 115, "column": 29}, "end_point": {"row": 115, "column": 30}}, {"id": 608, "type": "binary_expression", "text": "BCD2BIN(century) * 100", "parent": 602, "children": [609, 613, 614], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 53}}, {"id": 609, "type": "call_expression", "text": "BCD2BIN(century)", "parent": 608, "children": [610, 611], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 47}}, {"id": 610, "type": "identifier", "text": "BCD2BIN", "parent": 609, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 38}}, {"id": 611, "type": "argument_list", "text": "(century)", "parent": 609, "children": [612], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 47}}, {"id": 612, "type": "identifier", "text": "century", "parent": 611, "children": [], "start_point": {"row": 115, "column": 39}, "end_point": {"row": 115, "column": 46}}, {"id": 613, "type": "*", "text": "*", "parent": 608, "children": [], "start_point": {"row": 115, "column": 48}, "end_point": {"row": 115, "column": 49}}, {"id": 614, "type": "number_literal", "text": "100", "parent": 608, "children": [], "start_point": {"row": 115, "column": 50}, "end_point": {"row": 115, "column": 53}}, {"id": 615, "type": "-", "text": "-", "parent": 601, "children": [], "start_point": {"row": 115, "column": 54}, "end_point": {"row": 115, "column": 55}}, {"id": 616, "type": "number_literal", "text": "1900", "parent": 601, "children": [], "start_point": {"row": 115, "column": 56}, "end_point": {"row": 115, "column": 60}}, {"id": 617, "type": "if_statement", "text": "if (rtc_valid_tm(tm) < 0) {\n\t\tdev_err(dev, \"retrieved date/time is not valid.\\n\");\n\t\trtc_time_to_tm(0, tm);\n\t}", "parent": 346, "children": [618], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 120, "column": 2}}, {"id": 618, "type": "parenthesized_expression", "text": "(rtc_valid_tm(tm) < 0)", "parent": 617, "children": [619], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 26}}, {"id": 619, "type": "binary_expression", "text": "rtc_valid_tm(tm) < 0", "parent": 618, "children": [620, 624, 625], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 25}}, {"id": 620, "type": "call_expression", "text": "rtc_valid_tm(tm)", "parent": 619, "children": [621, 622], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 21}}, {"id": 621, "type": "identifier", "text": "rtc_valid_tm", "parent": 620, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 17}}, {"id": 622, "type": "argument_list", "text": "(tm)", "parent": 620, "children": [623], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 623, "type": "identifier", "text": "tm", "parent": 622, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 20}}, {"id": 624, "type": "<", "text": "<", "parent": 619, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 23}}, {"id": 625, "type": "number_literal", "text": "0", "parent": 619, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 25}}, {"id": 626, "type": "call_expression", "text": "dev_err(dev, \"retrieved date/time is not valid.\\n\")", "parent": 617, "children": [627, 628], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 53}}, {"id": 627, "type": "identifier", "text": "dev_err", "parent": 626, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 9}}, {"id": 628, "type": "argument_list", "text": "(dev, \"retrieved date/time is not valid.\\n\")", "parent": 626, "children": [629, 630], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 53}}, {"id": 629, "type": "identifier", "text": "dev", "parent": 628, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 13}}, {"id": 630, "type": "string_literal", "text": "\"retrieved date/time is not valid.\\n\"", "parent": 628, "children": [631], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 52}}, {"id": 631, "type": "escape_sequence", "text": "\\n", "parent": 630, "children": [], "start_point": {"row": 118, "column": 49}, "end_point": {"row": 118, "column": 51}}, {"id": 632, "type": "call_expression", "text": "rtc_time_to_tm(0, tm)", "parent": 617, "children": [633, 634], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 23}}, {"id": 633, "type": "identifier", "text": "rtc_time_to_tm", "parent": 632, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 16}}, {"id": 634, "type": "argument_list", "text": "(0, tm)", "parent": 632, "children": [635, 636], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 23}}, {"id": 635, "type": "number_literal", "text": "0", "parent": 634, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 18}}, {"id": 636, "type": "identifier", "text": "tm", "parent": 634, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 22}}, {"id": 637, "type": "return_statement", "text": "return 0;", "parent": 346, "children": [638], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 10}}, {"id": 638, "type": "number_literal", "text": "0", "parent": 637, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 9}}, {"id": 639, "type": "declaration", "text": "static const struct rtc_class_ops ds1742_rtc_ops = {\n\t.read_time\t= ds1742_rtc_read_time,\n\t.set_time\t= ds1742_rtc_set_time,\n};", "parent": null, "children": [640, 643], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 127, "column": 2}}, {"id": 640, "type": "struct_specifier", "text": "struct rtc_class_ops", "parent": 639, "children": [641, 642], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 33}}, {"id": 641, "type": "struct", "text": "struct", "parent": 640, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 19}}, {"id": 642, "type": "type_identifier", "text": "rtc_class_ops", "parent": 640, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 33}}, {"id": 643, "type": "init_declarator", "text": "ds1742_rtc_ops = {\n\t.read_time\t= ds1742_rtc_read_time,\n\t.set_time\t= ds1742_rtc_set_time,\n}", "parent": 639, "children": [644, 645, 646], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 127, "column": 1}}, {"id": 644, "type": "identifier", "text": "ds1742_rtc_ops", "parent": 643, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 48}}, {"id": 645, "type": "=", "text": "=", "parent": 643, "children": [], "start_point": {"row": 124, "column": 49}, "end_point": {"row": 124, "column": 50}}, {"id": 646, "type": "initializer_list", "text": "{\n\t.read_time\t= ds1742_rtc_read_time,\n\t.set_time\t= ds1742_rtc_set_time,\n}", "parent": 643, "children": [647, 652], "start_point": {"row": 124, "column": 51}, "end_point": {"row": 127, "column": 1}}, {"id": 647, "type": "initializer_pair", "text": ".read_time\t= ds1742_rtc_read_time", "parent": 646, "children": [648, 650, 651], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 34}}, {"id": 648, "type": "field_designator", "text": ".read_time", "parent": 647, "children": [649], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 11}}, {"id": 649, "type": "field_identifier", "text": "read_time", "parent": 648, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 11}}, {"id": 650, "type": "=", "text": "=", "parent": 647, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 13}}, {"id": 651, "type": "identifier", "text": "ds1742_rtc_read_time", "parent": 647, "children": [], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 34}}, {"id": 652, "type": "initializer_pair", "text": ".set_time\t= ds1742_rtc_set_time", "parent": 646, "children": [653, 655, 656], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 32}}, {"id": 653, "type": "field_designator", "text": ".set_time", "parent": 652, "children": [654], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 10}}, {"id": 654, "type": "field_identifier", "text": "set_time", "parent": 653, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 10}}, {"id": 655, "type": "=", "text": "=", "parent": 652, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 12}}, {"id": 656, "type": "identifier", "text": "ds1742_rtc_set_time", "parent": 652, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 32}}, {"id": 657, "type": "function_definition", "text": "static ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n\tstruct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_nvram;\n\tssize_t count;\n\n\tfor (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\t*buf++ = readb(ioaddr + pos++);\n\treturn count;\n}", "parent": null, "children": [658, 659], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 658, "type": "primitive_type", "text": "ssize_t", "parent": 657, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 14}}, {"id": 659, "type": "function_declarator", "text": "ds1742_nvram_read(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)", "parent": 657, "children": [660, 661], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 130, "column": 29}}, {"id": 660, "type": "identifier", "text": "ds1742_nvram_read", "parent": 659, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 32}}, {"id": 661, "type": "parameter_list", "text": "(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)", "parent": 659, "children": [662, 669, 674, 677], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 130, "column": 29}}, {"id": 662, "type": "parameter_declaration", "text": "struct kobject *kobj", "parent": 661, "children": [663, 666], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 53}}, {"id": 663, "type": "struct_specifier", "text": "struct kobject", "parent": 662, "children": [664, 665], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 47}}, {"id": 664, "type": "struct", "text": "struct", "parent": 663, "children": [], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 39}}, {"id": 665, "type": "type_identifier", "text": "kobject", "parent": 663, "children": [], "start_point": {"row": 129, "column": 40}, "end_point": {"row": 129, "column": 47}}, {"id": 666, "type": "pointer_declarator", "text": "*kobj", "parent": 662, "children": [667, 668], "start_point": {"row": 129, "column": 48}, "end_point": {"row": 129, "column": 53}}, {"id": 667, "type": "*", "text": "*", "parent": 666, "children": [], "start_point": {"row": 129, "column": 48}, "end_point": {"row": 129, "column": 49}}, {"id": 668, "type": "identifier", "text": "kobj", "parent": 666, "children": [], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 53}}, {"id": 669, "type": "parameter_declaration", "text": "char *buf", "parent": 661, "children": [670, 671], "start_point": {"row": 129, "column": 55}, "end_point": {"row": 129, "column": 64}}, {"id": 670, "type": "primitive_type", "text": "char", "parent": 669, "children": [], "start_point": {"row": 129, "column": 55}, "end_point": {"row": 129, "column": 59}}, {"id": 671, "type": "pointer_declarator", "text": "*buf", "parent": 669, "children": [672, 673], "start_point": {"row": 129, "column": 60}, "end_point": {"row": 129, "column": 64}}, {"id": 672, "type": "*", "text": "*", "parent": 671, "children": [], "start_point": {"row": 129, "column": 60}, "end_point": {"row": 129, "column": 61}}, {"id": 673, "type": "identifier", "text": "buf", "parent": 671, "children": [], "start_point": {"row": 129, "column": 61}, "end_point": {"row": 129, "column": 64}}, {"id": 674, "type": "parameter_declaration", "text": "loff_t pos", "parent": 661, "children": [675, 676], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 15}}, {"id": 675, "type": "type_identifier", "text": "loff_t", "parent": 674, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 11}}, {"id": 676, "type": "identifier", "text": "pos", "parent": 674, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 15}}, {"id": 677, "type": "parameter_declaration", "text": "size_t size", "parent": 661, "children": [678, 679], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 28}}, {"id": 678, "type": "primitive_type", "text": "size_t", "parent": 677, "children": [], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 23}}, {"id": 679, "type": "identifier", "text": "size", "parent": 677, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 28}}, {"id": 680, "type": "declaration", "text": "struct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));", "parent": 657, "children": [681, 684], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 133, "column": 62}}, {"id": 681, "type": "struct_specifier", "text": "struct platform_device", "parent": 680, "children": [682, 683], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 23}}, {"id": 682, "type": "struct", "text": "struct", "parent": 681, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 7}}, {"id": 683, "type": "type_identifier", "text": "platform_device", "parent": 681, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 23}}, {"id": 684, "type": "init_declarator", "text": "*pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj))", "parent": 680, "children": [685, 688, 689], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 133, "column": 61}}, {"id": 685, "type": "pointer_declarator", "text": "*pdev", "parent": 684, "children": [686, 687], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 29}}, {"id": 686, "type": "*", "text": "*", "parent": 685, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 25}}, {"id": 687, "type": "identifier", "text": "pdev", "parent": 685, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 29}}, {"id": 688, "type": "=", "text": "=", "parent": 684, "children": [], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 31}}, {"id": 689, "type": "call_expression", "text": "to_platform_device(container_of(kobj, struct device, kobj))", "parent": 684, "children": [690, 691], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 61}}, {"id": 690, "type": "identifier", "text": "to_platform_device", "parent": 689, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 20}}, {"id": 691, "type": "argument_list", "text": "(container_of(kobj, struct device, kobj))", "parent": 689, "children": [692], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 61}}, {"id": 692, "type": "call_expression", "text": "container_of(kobj, struct device, kobj)", "parent": 691, "children": [693, 694], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 60}}, {"id": 693, "type": "identifier", "text": "container_of", "parent": 692, "children": [], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 33}}, {"id": 694, "type": "argument_list", "text": "(kobj, struct device, kobj)", "parent": 692, "children": [695, 696, 697, 699], "start_point": {"row": 133, "column": 33}, "end_point": {"row": 133, "column": 60}}, {"id": 695, "type": "identifier", "text": "kobj", "parent": 694, "children": [], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 38}}, {"id": 696, "type": "identifier", "text": "struct", "parent": 694, "children": [], "start_point": {"row": 133, "column": 40}, "end_point": {"row": 133, "column": 46}}, {"id": 697, "type": "ERROR", "text": "device", "parent": 694, "children": [698], "start_point": {"row": 133, "column": 47}, "end_point": {"row": 133, "column": 53}}, {"id": 698, "type": "identifier", "text": "device", "parent": 697, "children": [], "start_point": {"row": 133, "column": 47}, "end_point": {"row": 133, "column": 53}}, {"id": 699, "type": "identifier", "text": "kobj", "parent": 694, "children": [], "start_point": {"row": 133, "column": 55}, "end_point": {"row": 133, "column": 59}}, {"id": 700, "type": "declaration", "text": "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);", "parent": 657, "children": [701, 704], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 58}}, {"id": 701, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 700, "children": [702, 703], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 21}}, {"id": 702, "type": "struct", "text": "struct", "parent": 701, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 7}}, {"id": 703, "type": "type_identifier", "text": "rtc_plat_data", "parent": 701, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 21}}, {"id": 704, "type": "init_declarator", "text": "*pdata = platform_get_drvdata(pdev)", "parent": 700, "children": [705, 708, 709], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 57}}, {"id": 705, "type": "pointer_declarator", "text": "*pdata", "parent": 704, "children": [706, 707], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 28}}, {"id": 706, "type": "*", "text": "*", "parent": 705, "children": [], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 23}}, {"id": 707, "type": "identifier", "text": "pdata", "parent": 705, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 28}}, {"id": 708, "type": "=", "text": "=", "parent": 704, "children": [], "start_point": {"row": 134, "column": 29}, "end_point": {"row": 134, "column": 30}}, {"id": 709, "type": "call_expression", "text": "platform_get_drvdata(pdev)", "parent": 704, "children": [710, 711], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 57}}, {"id": 710, "type": "identifier", "text": "platform_get_drvdata", "parent": 709, "children": [], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 51}}, {"id": 711, "type": "argument_list", "text": "(pdev)", "parent": 709, "children": [712], "start_point": {"row": 134, "column": 51}, "end_point": {"row": 134, "column": 57}}, {"id": 712, "type": "identifier", "text": "pdev", "parent": 711, "children": [], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 56}}, {"id": 713, "type": "declaration", "text": "void __iomem *ioaddr = pdata->ioaddr_nvram;", "parent": 657, "children": [714, 715, 717], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 44}}, {"id": 714, "type": "primitive_type", "text": "void", "parent": 713, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 5}}, {"id": 715, "type": "ERROR", "text": "__iomem", "parent": 713, "children": [716], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 13}}, {"id": 716, "type": "identifier", "text": "__iomem", "parent": 715, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 13}}, {"id": 717, "type": "init_declarator", "text": "*ioaddr = pdata->ioaddr_nvram", "parent": 713, "children": [718, 721, 722], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 43}}, {"id": 718, "type": "pointer_declarator", "text": "*ioaddr", "parent": 717, "children": [719, 720], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 21}}, {"id": 719, "type": "*", "text": "*", "parent": 718, "children": [], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 15}}, {"id": 720, "type": "identifier", "text": "ioaddr", "parent": 718, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 21}}, {"id": 721, "type": "=", "text": "=", "parent": 717, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 23}}, {"id": 722, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 717, "children": [723, 724], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 43}}, {"id": 723, "type": "identifier", "text": "pdata", "parent": 722, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 29}}, {"id": 724, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 722, "children": [], "start_point": {"row": 135, "column": 31}, "end_point": {"row": 135, "column": 43}}, {"id": 725, "type": "declaration", "text": "ssize_t count;", "parent": 657, "children": [726, 727], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 15}}, {"id": 726, "type": "primitive_type", "text": "ssize_t", "parent": 725, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 8}}, {"id": 727, "type": "identifier", "text": "count", "parent": 725, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 14}}, {"id": 728, "type": "for_statement", "text": "for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\t*buf++ = readb(ioaddr + pos++);", "parent": 657, "children": [729, 733, 745], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 139, "column": 33}}, {"id": 729, "type": "assignment_expression", "text": "count = 0", "parent": 728, "children": [730, 731, 732], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 15}}, {"id": 730, "type": "identifier", "text": "count", "parent": 729, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 11}}, {"id": 731, "type": "=", "text": "=", "parent": 729, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 13}}, {"id": 732, "type": "number_literal", "text": "0", "parent": 729, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 15}}, {"id": 733, "type": "binary_expression", "text": "size > 0 && pos < pdata->size_nvram", "parent": 728, "children": [734, 738, 739], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 52}}, {"id": 734, "type": "binary_expression", "text": "size > 0", "parent": 733, "children": [735, 736, 737], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 25}}, {"id": 735, "type": "identifier", "text": "size", "parent": 734, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 21}}, {"id": 736, "type": ">", "text": ">", "parent": 734, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 23}}, {"id": 737, "type": "number_literal", "text": "0", "parent": 734, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 25}}, {"id": 738, "type": "&&", "text": "&&", "parent": 733, "children": [], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 28}}, {"id": 739, "type": "binary_expression", "text": "pos < pdata->size_nvram", "parent": 733, "children": [740, 741, 742], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 52}}, {"id": 740, "type": "identifier", "text": "pos", "parent": 739, "children": [], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 32}}, {"id": 741, "type": "<", "text": "<", "parent": 739, "children": [], "start_point": {"row": 138, "column": 33}, "end_point": {"row": 138, "column": 34}}, {"id": 742, "type": "field_expression", "text": "pdata->size_nvram", "parent": 739, "children": [743, 744], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 52}}, {"id": 743, "type": "identifier", "text": "pdata", "parent": 742, "children": [], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 40}}, {"id": 744, "type": "field_identifier", "text": "size_nvram", "parent": 742, "children": [], "start_point": {"row": 138, "column": 42}, "end_point": {"row": 138, "column": 52}}, {"id": 745, "type": "comma_expression", "text": "count++, size--", "parent": 728, "children": [746, 749], "start_point": {"row": 138, "column": 54}, "end_point": {"row": 138, "column": 69}}, {"id": 746, "type": "update_expression", "text": "count++", "parent": 745, "children": [747, 748], "start_point": {"row": 138, "column": 54}, "end_point": {"row": 138, "column": 61}}, {"id": 747, "type": "identifier", "text": "count", "parent": 746, "children": [], "start_point": {"row": 138, "column": 54}, "end_point": {"row": 138, "column": 59}}, {"id": 748, "type": "++", "text": "++", "parent": 746, "children": [], "start_point": {"row": 138, "column": 59}, "end_point": {"row": 138, "column": 61}}, {"id": 749, "type": "update_expression", "text": "size--", "parent": 745, "children": [750, 751], "start_point": {"row": 138, "column": 63}, "end_point": {"row": 138, "column": 69}}, {"id": 750, "type": "identifier", "text": "size", "parent": 749, "children": [], "start_point": {"row": 138, "column": 63}, "end_point": {"row": 138, "column": 67}}, {"id": 751, "type": "--", "text": "--", "parent": 749, "children": [], "start_point": {"row": 138, "column": 67}, "end_point": {"row": 138, "column": 69}}, {"id": 752, "type": "assignment_expression", "text": "*buf++ = readb(ioaddr + pos++)", "parent": 728, "children": [753, 758, 759], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 32}}, {"id": 753, "type": "pointer_expression", "text": "*buf++", "parent": 752, "children": [754, 755], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 8}}, {"id": 754, "type": "*", "text": "*", "parent": 753, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 3}}, {"id": 755, "type": "update_expression", "text": "buf++", "parent": 753, "children": [756, 757], "start_point": {"row": 139, "column": 3}, "end_point": {"row": 139, "column": 8}}, {"id": 756, "type": "identifier", "text": "buf", "parent": 755, "children": [], "start_point": {"row": 139, "column": 3}, "end_point": {"row": 139, "column": 6}}, {"id": 757, "type": "++", "text": "++", "parent": 755, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 8}}, {"id": 758, "type": "=", "text": "=", "parent": 752, "children": [], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 10}}, {"id": 759, "type": "call_expression", "text": "readb(ioaddr + pos++)", "parent": 752, "children": [760, 761], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 32}}, {"id": 760, "type": "identifier", "text": "readb", "parent": 759, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 16}}, {"id": 761, "type": "argument_list", "text": "(ioaddr + pos++)", "parent": 759, "children": [762], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 32}}, {"id": 762, "type": "binary_expression", "text": "ioaddr + pos++", "parent": 761, "children": [763, 764, 765], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 31}}, {"id": 763, "type": "identifier", "text": "ioaddr", "parent": 762, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 23}}, {"id": 764, "type": "+", "text": "+", "parent": 762, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 25}}, {"id": 765, "type": "update_expression", "text": "pos++", "parent": 762, "children": [766, 767], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 31}}, {"id": 766, "type": "identifier", "text": "pos", "parent": 765, "children": [], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 29}}, {"id": 767, "type": "++", "text": "++", "parent": 765, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 31}}, {"id": 768, "type": "return_statement", "text": "return count;", "parent": 657, "children": [769], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 14}}, {"id": 769, "type": "identifier", "text": "count", "parent": 768, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 13}}, {"id": 770, "type": "function_definition", "text": "static ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n\tstruct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_nvram;\n\tssize_t count;\n\n\tfor (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\twriteb(*buf++, ioaddr + pos++);\n\treturn count;\n}", "parent": null, "children": [771, 772], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 155, "column": 1}}, {"id": 771, "type": "primitive_type", "text": "ssize_t", "parent": 770, "children": [], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 14}}, {"id": 772, "type": "function_declarator", "text": "ds1742_nvram_write(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)", "parent": 770, "children": [773, 774], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 144, "column": 30}}, {"id": 773, "type": "identifier", "text": "ds1742_nvram_write", "parent": 772, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 33}}, {"id": 774, "type": "parameter_list", "text": "(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)", "parent": 772, "children": [775, 782, 787, 790], "start_point": {"row": 143, "column": 33}, "end_point": {"row": 144, "column": 30}}, {"id": 775, "type": "parameter_declaration", "text": "struct kobject *kobj", "parent": 774, "children": [776, 779], "start_point": {"row": 143, "column": 34}, "end_point": {"row": 143, "column": 54}}, {"id": 776, "type": "struct_specifier", "text": "struct kobject", "parent": 775, "children": [777, 778], "start_point": {"row": 143, "column": 34}, "end_point": {"row": 143, "column": 48}}, {"id": 777, "type": "struct", "text": "struct", "parent": 776, "children": [], "start_point": {"row": 143, "column": 34}, "end_point": {"row": 143, "column": 40}}, {"id": 778, "type": "type_identifier", "text": "kobject", "parent": 776, "children": [], "start_point": {"row": 143, "column": 41}, "end_point": {"row": 143, "column": 48}}, {"id": 779, "type": "pointer_declarator", "text": "*kobj", "parent": 775, "children": [780, 781], "start_point": {"row": 143, "column": 49}, "end_point": {"row": 143, "column": 54}}, {"id": 780, "type": "*", "text": "*", "parent": 779, "children": [], "start_point": {"row": 143, "column": 49}, "end_point": {"row": 143, "column": 50}}, {"id": 781, "type": "identifier", "text": "kobj", "parent": 779, "children": [], "start_point": {"row": 143, "column": 50}, "end_point": {"row": 143, "column": 54}}, {"id": 782, "type": "parameter_declaration", "text": "char *buf", "parent": 774, "children": [783, 784], "start_point": {"row": 143, "column": 56}, "end_point": {"row": 143, "column": 65}}, {"id": 783, "type": "primitive_type", "text": "char", "parent": 782, "children": [], "start_point": {"row": 143, "column": 56}, "end_point": {"row": 143, "column": 60}}, {"id": 784, "type": "pointer_declarator", "text": "*buf", "parent": 782, "children": [785, 786], "start_point": {"row": 143, "column": 61}, "end_point": {"row": 143, "column": 65}}, {"id": 785, "type": "*", "text": "*", "parent": 784, "children": [], "start_point": {"row": 143, "column": 61}, "end_point": {"row": 143, "column": 62}}, {"id": 786, "type": "identifier", "text": "buf", "parent": 784, "children": [], "start_point": {"row": 143, "column": 62}, "end_point": {"row": 143, "column": 65}}, {"id": 787, "type": "parameter_declaration", "text": "loff_t pos", "parent": 774, "children": [788, 789], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 16}}, {"id": 788, "type": "type_identifier", "text": "loff_t", "parent": 787, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 12}}, {"id": 789, "type": "identifier", "text": "pos", "parent": 787, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 16}}, {"id": 790, "type": "parameter_declaration", "text": "size_t size", "parent": 774, "children": [791, 792], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 29}}, {"id": 791, "type": "primitive_type", "text": "size_t", "parent": 790, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 24}}, {"id": 792, "type": "identifier", "text": "size", "parent": 790, "children": [], "start_point": {"row": 144, "column": 25}, "end_point": {"row": 144, "column": 29}}, {"id": 793, "type": "declaration", "text": "struct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));", "parent": 770, "children": [794, 797], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 147, "column": 62}}, {"id": 794, "type": "struct_specifier", "text": "struct platform_device", "parent": 793, "children": [795, 796], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 23}}, {"id": 795, "type": "struct", "text": "struct", "parent": 794, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 7}}, {"id": 796, "type": "type_identifier", "text": "platform_device", "parent": 794, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 23}}, {"id": 797, "type": "init_declarator", "text": "*pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj))", "parent": 793, "children": [798, 801, 802], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 147, "column": 61}}, {"id": 798, "type": "pointer_declarator", "text": "*pdev", "parent": 797, "children": [799, 800], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 29}}, {"id": 799, "type": "*", "text": "*", "parent": 798, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 25}}, {"id": 800, "type": "identifier", "text": "pdev", "parent": 798, "children": [], "start_point": {"row": 146, "column": 25}, "end_point": {"row": 146, "column": 29}}, {"id": 801, "type": "=", "text": "=", "parent": 797, "children": [], "start_point": {"row": 146, "column": 30}, "end_point": {"row": 146, "column": 31}}, {"id": 802, "type": "call_expression", "text": "to_platform_device(container_of(kobj, struct device, kobj))", "parent": 797, "children": [803, 804], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 61}}, {"id": 803, "type": "identifier", "text": "to_platform_device", "parent": 802, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 20}}, {"id": 804, "type": "argument_list", "text": "(container_of(kobj, struct device, kobj))", "parent": 802, "children": [805], "start_point": {"row": 147, "column": 20}, "end_point": {"row": 147, "column": 61}}, {"id": 805, "type": "call_expression", "text": "container_of(kobj, struct device, kobj)", "parent": 804, "children": [806, 807], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 60}}, {"id": 806, "type": "identifier", "text": "container_of", "parent": 805, "children": [], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 33}}, {"id": 807, "type": "argument_list", "text": "(kobj, struct device, kobj)", "parent": 805, "children": [808, 809, 810, 812], "start_point": {"row": 147, "column": 33}, "end_point": {"row": 147, "column": 60}}, {"id": 808, "type": "identifier", "text": "kobj", "parent": 807, "children": [], "start_point": {"row": 147, "column": 34}, "end_point": {"row": 147, "column": 38}}, {"id": 809, "type": "identifier", "text": "struct", "parent": 807, "children": [], "start_point": {"row": 147, "column": 40}, "end_point": {"row": 147, "column": 46}}, {"id": 810, "type": "ERROR", "text": "device", "parent": 807, "children": [811], "start_point": {"row": 147, "column": 47}, "end_point": {"row": 147, "column": 53}}, {"id": 811, "type": "identifier", "text": "device", "parent": 810, "children": [], "start_point": {"row": 147, "column": 47}, "end_point": {"row": 147, "column": 53}}, {"id": 812, "type": "identifier", "text": "kobj", "parent": 807, "children": [], "start_point": {"row": 147, "column": 55}, "end_point": {"row": 147, "column": 59}}, {"id": 813, "type": "declaration", "text": "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);", "parent": 770, "children": [814, 817], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 58}}, {"id": 814, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 813, "children": [815, 816], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 21}}, {"id": 815, "type": "struct", "text": "struct", "parent": 814, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 7}}, {"id": 816, "type": "type_identifier", "text": "rtc_plat_data", "parent": 814, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 21}}, {"id": 817, "type": "init_declarator", "text": "*pdata = platform_get_drvdata(pdev)", "parent": 813, "children": [818, 821, 822], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 57}}, {"id": 818, "type": "pointer_declarator", "text": "*pdata", "parent": 817, "children": [819, 820], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 28}}, {"id": 819, "type": "*", "text": "*", "parent": 818, "children": [], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 23}}, {"id": 820, "type": "identifier", "text": "pdata", "parent": 818, "children": [], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 28}}, {"id": 821, "type": "=", "text": "=", "parent": 817, "children": [], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 30}}, {"id": 822, "type": "call_expression", "text": "platform_get_drvdata(pdev)", "parent": 817, "children": [823, 824], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 57}}, {"id": 823, "type": "identifier", "text": "platform_get_drvdata", "parent": 822, "children": [], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 51}}, {"id": 824, "type": "argument_list", "text": "(pdev)", "parent": 822, "children": [825], "start_point": {"row": 148, "column": 51}, "end_point": {"row": 148, "column": 57}}, {"id": 825, "type": "identifier", "text": "pdev", "parent": 824, "children": [], "start_point": {"row": 148, "column": 52}, "end_point": {"row": 148, "column": 56}}, {"id": 826, "type": "declaration", "text": "void __iomem *ioaddr = pdata->ioaddr_nvram;", "parent": 770, "children": [827, 828, 830], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 44}}, {"id": 827, "type": "primitive_type", "text": "void", "parent": 826, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 5}}, {"id": 828, "type": "ERROR", "text": "__iomem", "parent": 826, "children": [829], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 13}}, {"id": 829, "type": "identifier", "text": "__iomem", "parent": 828, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 13}}, {"id": 830, "type": "init_declarator", "text": "*ioaddr = pdata->ioaddr_nvram", "parent": 826, "children": [831, 834, 835], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 43}}, {"id": 831, "type": "pointer_declarator", "text": "*ioaddr", "parent": 830, "children": [832, 833], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 21}}, {"id": 832, "type": "*", "text": "*", "parent": 831, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 15}}, {"id": 833, "type": "identifier", "text": "ioaddr", "parent": 831, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 21}}, {"id": 834, "type": "=", "text": "=", "parent": 830, "children": [], "start_point": {"row": 149, "column": 22}, "end_point": {"row": 149, "column": 23}}, {"id": 835, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 830, "children": [836, 837], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 43}}, {"id": 836, "type": "identifier", "text": "pdata", "parent": 835, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 29}}, {"id": 837, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 835, "children": [], "start_point": {"row": 149, "column": 31}, "end_point": {"row": 149, "column": 43}}, {"id": 838, "type": "declaration", "text": "ssize_t count;", "parent": 770, "children": [839, 840], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 15}}, {"id": 839, "type": "primitive_type", "text": "ssize_t", "parent": 838, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 8}}, {"id": 840, "type": "identifier", "text": "count", "parent": 838, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 14}}, {"id": 841, "type": "for_statement", "text": "for (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\twriteb(*buf++, ioaddr + pos++);", "parent": 770, "children": [842, 846, 858], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 153, "column": 33}}, {"id": 842, "type": "assignment_expression", "text": "count = 0", "parent": 841, "children": [843, 844, 845], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 15}}, {"id": 843, "type": "identifier", "text": "count", "parent": 842, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 11}}, {"id": 844, "type": "=", "text": "=", "parent": 842, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 13}}, {"id": 845, "type": "number_literal", "text": "0", "parent": 842, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 846, "type": "binary_expression", "text": "size > 0 && pos < pdata->size_nvram", "parent": 841, "children": [847, 851, 852], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 52}}, {"id": 847, "type": "binary_expression", "text": "size > 0", "parent": 846, "children": [848, 849, 850], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 25}}, {"id": 848, "type": "identifier", "text": "size", "parent": 847, "children": [], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 21}}, {"id": 849, "type": ">", "text": ">", "parent": 847, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 23}}, {"id": 850, "type": "number_literal", "text": "0", "parent": 847, "children": [], "start_point": {"row": 152, "column": 24}, "end_point": {"row": 152, "column": 25}}, {"id": 851, "type": "&&", "text": "&&", "parent": 846, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 28}}, {"id": 852, "type": "binary_expression", "text": "pos < pdata->size_nvram", "parent": 846, "children": [853, 854, 855], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 52}}, {"id": 853, "type": "identifier", "text": "pos", "parent": 852, "children": [], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 32}}, {"id": 854, "type": "<", "text": "<", "parent": 852, "children": [], "start_point": {"row": 152, "column": 33}, "end_point": {"row": 152, "column": 34}}, {"id": 855, "type": "field_expression", "text": "pdata->size_nvram", "parent": 852, "children": [856, 857], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 52}}, {"id": 856, "type": "identifier", "text": "pdata", "parent": 855, "children": [], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 40}}, {"id": 857, "type": "field_identifier", "text": "size_nvram", "parent": 855, "children": [], "start_point": {"row": 152, "column": 42}, "end_point": {"row": 152, "column": 52}}, {"id": 858, "type": "comma_expression", "text": "count++, size--", "parent": 841, "children": [859, 862], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 69}}, {"id": 859, "type": "update_expression", "text": "count++", "parent": 858, "children": [860, 861], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 61}}, {"id": 860, "type": "identifier", "text": "count", "parent": 859, "children": [], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 59}}, {"id": 861, "type": "++", "text": "++", "parent": 859, "children": [], "start_point": {"row": 152, "column": 59}, "end_point": {"row": 152, "column": 61}}, {"id": 862, "type": "update_expression", "text": "size--", "parent": 858, "children": [863, 864], "start_point": {"row": 152, "column": 63}, "end_point": {"row": 152, "column": 69}}, {"id": 863, "type": "identifier", "text": "size", "parent": 862, "children": [], "start_point": {"row": 152, "column": 63}, "end_point": {"row": 152, "column": 67}}, {"id": 864, "type": "--", "text": "--", "parent": 862, "children": [], "start_point": {"row": 152, "column": 67}, "end_point": {"row": 152, "column": 69}}, {"id": 865, "type": "call_expression", "text": "writeb(*buf++, ioaddr + pos++)", "parent": 841, "children": [866, 867], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 32}}, {"id": 866, "type": "identifier", "text": "writeb", "parent": 865, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 8}}, {"id": 867, "type": "argument_list", "text": "(*buf++, ioaddr + pos++)", "parent": 865, "children": [868, 873], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 32}}, {"id": 868, "type": "pointer_expression", "text": "*buf++", "parent": 867, "children": [869, 870], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 15}}, {"id": 869, "type": "*", "text": "*", "parent": 868, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 10}}, {"id": 870, "type": "update_expression", "text": "buf++", "parent": 868, "children": [871, 872], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 15}}, {"id": 871, "type": "identifier", "text": "buf", "parent": 870, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 13}}, {"id": 872, "type": "++", "text": "++", "parent": 870, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 15}}, {"id": 873, "type": "binary_expression", "text": "ioaddr + pos++", "parent": 867, "children": [874, 875, 876], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 31}}, {"id": 874, "type": "identifier", "text": "ioaddr", "parent": 873, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 23}}, {"id": 875, "type": "+", "text": "+", "parent": 873, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 25}}, {"id": 876, "type": "update_expression", "text": "pos++", "parent": 873, "children": [877, 878], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 31}}, {"id": 877, "type": "identifier", "text": "pos", "parent": 876, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 29}}, {"id": 878, "type": "++", "text": "++", "parent": 876, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 31}}, {"id": 879, "type": "return_statement", "text": "return count;", "parent": 770, "children": [880], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 14}}, {"id": 880, "type": "identifier", "text": "count", "parent": 879, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 13}}, {"id": 881, "type": "declaration", "text": "static struct bin_attribute ds1742_nvram_attr = {\n\t.attr = {\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t},\n\t.read = ds1742_nvram_read,\n\t.write = ds1742_nvram_write,\n};", "parent": null, "children": [882, 885], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 165, "column": 2}}, {"id": 882, "type": "struct_specifier", "text": "struct bin_attribute", "parent": 881, "children": [883, 884], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 27}}, {"id": 883, "type": "struct", "text": "struct", "parent": 882, "children": [], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 13}}, {"id": 884, "type": "type_identifier", "text": "bin_attribute", "parent": 882, "children": [], "start_point": {"row": 157, "column": 14}, "end_point": {"row": 157, "column": 27}}, {"id": 885, "type": "init_declarator", "text": "ds1742_nvram_attr = {\n\t.attr = {\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t},\n\t.read = ds1742_nvram_read,\n\t.write = ds1742_nvram_write,\n}", "parent": 881, "children": [886, 887, 888], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 165, "column": 1}}, {"id": 886, "type": "identifier", "text": "ds1742_nvram_attr", "parent": 885, "children": [], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 45}}, {"id": 887, "type": "=", "text": "=", "parent": 885, "children": [], "start_point": {"row": 157, "column": 46}, "end_point": {"row": 157, "column": 47}}, {"id": 888, "type": "initializer_list", "text": "{\n\t.attr = {\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t},\n\t.read = ds1742_nvram_read,\n\t.write = ds1742_nvram_write,\n}", "parent": 885, "children": [889, 911, 916], "start_point": {"row": 157, "column": 48}, "end_point": {"row": 165, "column": 1}}, {"id": 889, "type": "initializer_pair", "text": ".attr = {\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t}", "parent": 888, "children": [890, 892, 893], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 162, "column": 2}}, {"id": 890, "type": "field_designator", "text": ".attr", "parent": 889, "children": [891], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 6}}, {"id": 891, "type": "field_identifier", "text": "attr", "parent": 890, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 6}}, {"id": 892, "type": "=", "text": "=", "parent": 889, "children": [], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 8}}, {"id": 893, "type": "initializer_list", "text": "{\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t}", "parent": 889, "children": [894, 899, 906], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 162, "column": 2}}, {"id": 894, "type": "initializer_pair", "text": ".name = \"nvram\"", "parent": 893, "children": [895, 897, 898], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 17}}, {"id": 895, "type": "field_designator", "text": ".name", "parent": 894, "children": [896], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 7}}, {"id": 896, "type": "field_identifier", "text": "name", "parent": 895, "children": [], "start_point": {"row": 159, "column": 3}, "end_point": {"row": 159, "column": 7}}, {"id": 897, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 9}}, {"id": 898, "type": "string_literal", "text": "\"nvram\"", "parent": 894, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 17}}, {"id": 899, "type": "initializer_pair", "text": ".mode = S_IRUGO | S_IWUGO", "parent": 893, "children": [900, 902, 903], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 27}}, {"id": 900, "type": "field_designator", "text": ".mode", "parent": 899, "children": [901], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 7}}, {"id": 901, "type": "field_identifier", "text": "mode", "parent": 900, "children": [], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 7}}, {"id": 902, "type": "=", "text": "=", "parent": 899, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 9}}, {"id": 903, "type": "binary_expression", "text": "S_IRUGO | S_IWUGO", "parent": 899, "children": [904, 905], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 27}}, {"id": 904, "type": "identifier", "text": "S_IRUGO", "parent": 903, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 17}}, {"id": 905, "type": "identifier", "text": "S_IWUGO", "parent": 903, "children": [], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 27}}, {"id": 906, "type": "initializer_pair", "text": ".owner = THIS_MODULE", "parent": 893, "children": [907, 909, 910], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 22}}, {"id": 907, "type": "field_designator", "text": ".owner", "parent": 906, "children": [908], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 8}}, {"id": 908, "type": "field_identifier", "text": "owner", "parent": 907, "children": [], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 8}}, {"id": 909, "type": "=", "text": "=", "parent": 906, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 10}}, {"id": 910, "type": "identifier", "text": "THIS_MODULE", "parent": 906, "children": [], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 22}}, {"id": 911, "type": "initializer_pair", "text": ".read = ds1742_nvram_read", "parent": 888, "children": [912, 914, 915], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 26}}, {"id": 912, "type": "field_designator", "text": ".read", "parent": 911, "children": [913], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 6}}, {"id": 913, "type": "field_identifier", "text": "read", "parent": 912, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 6}}, {"id": 914, "type": "=", "text": "=", "parent": 911, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 8}}, {"id": 915, "type": "identifier", "text": "ds1742_nvram_read", "parent": 911, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 26}}, {"id": 916, "type": "initializer_pair", "text": ".write = ds1742_nvram_write", "parent": 888, "children": [917, 919, 920], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 28}}, {"id": 917, "type": "field_designator", "text": ".write", "parent": 916, "children": [918], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 7}}, {"id": 918, "type": "field_identifier", "text": "write", "parent": 917, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 7}}, {"id": 919, "type": "=", "text": "=", "parent": 916, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 9}}, {"id": 920, "type": "identifier", "text": "ds1742_nvram_write", "parent": 916, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 28}}, {"id": 921, "type": "function_definition", "text": "static int __devinit ds1742_rtc_probe(struct platform_device *pdev)\n{\n\tstruct rtc_device *rtc;\n\tstruct resource *res;\n\tunsigned int cen, sec;\n\tstruct rtc_plat_data *pdata = NULL;\n\tvoid __iomem *ioaddr = NULL;\n\tint ret = 0;\n\n\tres = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n\tif (!res)\n\t\treturn -ENODEV;\n\tpdata = kzalloc(sizeof(*pdata), GFP_KERNEL);\n\tif (!pdata)\n\t\treturn -ENOMEM;\n\tpdata->size = res->end - res->start + 1;\n\tif (!request_mem_region(res->start, pdata->size, pdev->name)) {\n\t\tret = -EBUSY;\n\t\tgoto out;\n\t}\n\tpdata->baseaddr = res->start;\n\tioaddr = ioremap(pdata->baseaddr, pdata->size);\n\tif (!ioaddr) {\n\t\tret = -ENOMEM;\n\t\tgoto out;\n\t}\n\tpdata->ioaddr_nvram = ioaddr;\n\tpdata->size_nvram = pdata->size - RTC_SIZE;\n\tpdata->ioaddr_rtc = ioaddr + pdata->size_nvram;\n\n\t/* turn RTC on if it was not on */\n\tioaddr = pdata->ioaddr_rtc;\n\tsec = readb(ioaddr + RTC_SECONDS);\n\tif (sec & RTC_STOP) {\n\t\tsec &= RTC_SECONDS_MASK;\n\t\tcen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n\t\twriteb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\t\twriteb(sec, ioaddr + RTC_SECONDS);\n\t\twriteb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n\t}\n\tif (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n\t\tdev_warn(&pdev->dev, \"voltage-low detected.\\n\");\n\n\trtc = rtc_device_register(pdev->name, &pdev->dev,\n\t\t\t\t &ds1742_rtc_ops, THIS_MODULE);\n\tif (IS_ERR(rtc)) {\n\t\tret = PTR_ERR(rtc);\n\t\tgoto out;\n\t}\n\tpdata->rtc = rtc;\n\tpdata->last_jiffies = jiffies;\n\tplatform_set_drvdata(pdev, pdata);\n\tds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n\t\t\t\t pdata->size_nvram);\n\tret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n\tif (ret)\n\t\tgoto out;\n\treturn 0;\n out:\n\tif (pdata->rtc)\n\t\trtc_device_unregister(pdata->rtc);\n\tif (pdata->ioaddr_nvram)\n\t\tiounmap(pdata->ioaddr_nvram);\n\tif (pdata->baseaddr)\n\t\trelease_mem_region(pdata->baseaddr, pdata->size);\n\tkfree(pdata);\n\treturn ret;\n}", "parent": null, "children": [922, 923, 925], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 234, "column": 1}}, {"id": 922, "type": "primitive_type", "text": "int", "parent": 921, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 10}}, {"id": 923, "type": "ERROR", "text": "__devinit", "parent": 921, "children": [924], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 20}}, {"id": 924, "type": "identifier", "text": "__devinit", "parent": 923, "children": [], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 20}}, {"id": 925, "type": "function_declarator", "text": "ds1742_rtc_probe(struct platform_device *pdev)", "parent": 921, "children": [926, 927], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 67}}, {"id": 926, "type": "identifier", "text": "ds1742_rtc_probe", "parent": 925, "children": [], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 37}}, {"id": 927, "type": "parameter_list", "text": "(struct platform_device *pdev)", "parent": 925, "children": [928], "start_point": {"row": 167, "column": 37}, "end_point": {"row": 167, "column": 67}}, {"id": 928, "type": "parameter_declaration", "text": "struct platform_device *pdev", "parent": 927, "children": [929, 932], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 66}}, {"id": 929, "type": "struct_specifier", "text": "struct platform_device", "parent": 928, "children": [930, 931], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 60}}, {"id": 930, "type": "struct", "text": "struct", "parent": 929, "children": [], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 44}}, {"id": 931, "type": "type_identifier", "text": "platform_device", "parent": 929, "children": [], "start_point": {"row": 167, "column": 45}, "end_point": {"row": 167, "column": 60}}, {"id": 932, "type": "pointer_declarator", "text": "*pdev", "parent": 928, "children": [933, 934], "start_point": {"row": 167, "column": 61}, "end_point": {"row": 167, "column": 66}}, {"id": 933, "type": "*", "text": "*", "parent": 932, "children": [], "start_point": {"row": 167, "column": 61}, "end_point": {"row": 167, "column": 62}}, {"id": 934, "type": "identifier", "text": "pdev", "parent": 932, "children": [], "start_point": {"row": 167, "column": 62}, "end_point": {"row": 167, "column": 66}}, {"id": 935, "type": "declaration", "text": "struct rtc_device *rtc;", "parent": 921, "children": [936, 939], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 24}}, {"id": 936, "type": "struct_specifier", "text": "struct rtc_device", "parent": 935, "children": [937, 938], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 18}}, {"id": 937, "type": "struct", "text": "struct", "parent": 936, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 7}}, {"id": 938, "type": "type_identifier", "text": "rtc_device", "parent": 936, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 18}}, {"id": 939, "type": "pointer_declarator", "text": "*rtc", "parent": 935, "children": [940, 941], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 23}}, {"id": 940, "type": "*", "text": "*", "parent": 939, "children": [], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 20}}, {"id": 941, "type": "identifier", "text": "rtc", "parent": 939, "children": [], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 23}}, {"id": 942, "type": "declaration", "text": "struct resource *res;", "parent": 921, "children": [943, 946], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 22}}, {"id": 943, "type": "struct_specifier", "text": "struct resource", "parent": 942, "children": [944, 945], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 16}}, {"id": 944, "type": "struct", "text": "struct", "parent": 943, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 7}}, {"id": 945, "type": "type_identifier", "text": "resource", "parent": 943, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 16}}, {"id": 946, "type": "pointer_declarator", "text": "*res", "parent": 942, "children": [947, 948], "start_point": {"row": 170, "column": 17}, "end_point": {"row": 170, "column": 21}}, {"id": 947, "type": "*", "text": "*", "parent": 946, "children": [], "start_point": {"row": 170, "column": 17}, "end_point": {"row": 170, "column": 18}}, {"id": 948, "type": "identifier", "text": "res", "parent": 946, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 21}}, {"id": 949, "type": "declaration", "text": "unsigned int cen, sec;", "parent": 921, "children": [950, 953, 954], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 23}}, {"id": 950, "type": "sized_type_specifier", "text": "unsigned int", "parent": 949, "children": [951, 952], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 13}}, {"id": 951, "type": "unsigned", "text": "unsigned", "parent": 950, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 9}}, {"id": 952, "type": "primitive_type", "text": "int", "parent": 950, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 13}}, {"id": 953, "type": "identifier", "text": "cen", "parent": 949, "children": [], "start_point": {"row": 171, "column": 14}, "end_point": {"row": 171, "column": 17}}, {"id": 954, "type": "identifier", "text": "sec", "parent": 949, "children": [], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 22}}, {"id": 955, "type": "declaration", "text": "struct rtc_plat_data *pdata = NULL;", "parent": 921, "children": [956, 959], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 36}}, {"id": 956, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 955, "children": [957, 958], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 21}}, {"id": 957, "type": "struct", "text": "struct", "parent": 956, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 7}}, {"id": 958, "type": "type_identifier", "text": "rtc_plat_data", "parent": 956, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 21}}, {"id": 959, "type": "init_declarator", "text": "*pdata = NULL", "parent": 955, "children": [960, 963, 964], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 35}}, {"id": 960, "type": "pointer_declarator", "text": "*pdata", "parent": 959, "children": [961, 962], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 28}}, {"id": 961, "type": "*", "text": "*", "parent": 960, "children": [], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 23}}, {"id": 962, "type": "identifier", "text": "pdata", "parent": 960, "children": [], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 172, "column": 28}}, {"id": 963, "type": "=", "text": "=", "parent": 959, "children": [], "start_point": {"row": 172, "column": 29}, "end_point": {"row": 172, "column": 30}}, {"id": 964, "type": "null", "text": "NULL", "parent": 959, "children": [965], "start_point": {"row": 172, "column": 31}, "end_point": {"row": 172, "column": 35}}, {"id": 965, "type": "NULL", "text": "NULL", "parent": 964, "children": [], "start_point": {"row": 172, "column": 31}, "end_point": {"row": 172, "column": 35}}, {"id": 966, "type": "declaration", "text": "void __iomem *ioaddr = NULL;", "parent": 921, "children": [967, 968, 970], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 29}}, {"id": 967, "type": "primitive_type", "text": "void", "parent": 966, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 5}}, {"id": 968, "type": "ERROR", "text": "__iomem", "parent": 966, "children": [969], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 13}}, {"id": 969, "type": "identifier", "text": "__iomem", "parent": 968, "children": [], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 13}}, {"id": 970, "type": "init_declarator", "text": "*ioaddr = NULL", "parent": 966, "children": [971, 974, 975], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 28}}, {"id": 971, "type": "pointer_declarator", "text": "*ioaddr", "parent": 970, "children": [972, 973], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 21}}, {"id": 972, "type": "*", "text": "*", "parent": 971, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 973, "type": "identifier", "text": "ioaddr", "parent": 971, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 21}}, {"id": 974, "type": "=", "text": "=", "parent": 970, "children": [], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 23}}, {"id": 975, "type": "null", "text": "NULL", "parent": 970, "children": [976], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 28}}, {"id": 976, "type": "NULL", "text": "NULL", "parent": 975, "children": [], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 28}}, {"id": 977, "type": "declaration", "text": "int ret = 0;", "parent": 921, "children": [978, 979], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 13}}, {"id": 978, "type": "primitive_type", "text": "int", "parent": 977, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 4}}, {"id": 979, "type": "init_declarator", "text": "ret = 0", "parent": 977, "children": [980, 981, 982], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 12}}, {"id": 980, "type": "identifier", "text": "ret", "parent": 979, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 8}}, {"id": 981, "type": "=", "text": "=", "parent": 979, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 10}}, {"id": 982, "type": "number_literal", "text": "0", "parent": 979, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 12}}, {"id": 983, "type": "assignment_expression", "text": "res = platform_get_resource(pdev, IORESOURCE_MEM, 0)", "parent": 921, "children": [984, 985, 986], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 53}}, {"id": 984, "type": "identifier", "text": "res", "parent": 983, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 4}}, {"id": 985, "type": "=", "text": "=", "parent": 983, "children": [], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 6}}, {"id": 986, "type": "call_expression", "text": "platform_get_resource(pdev, IORESOURCE_MEM, 0)", "parent": 983, "children": [987, 988], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 53}}, {"id": 987, "type": "identifier", "text": "platform_get_resource", "parent": 986, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 28}}, {"id": 988, "type": "argument_list", "text": "(pdev, IORESOURCE_MEM, 0)", "parent": 986, "children": [989, 990, 991], "start_point": {"row": 176, "column": 28}, "end_point": {"row": 176, "column": 53}}, {"id": 989, "type": "identifier", "text": "pdev", "parent": 988, "children": [], "start_point": {"row": 176, "column": 29}, "end_point": {"row": 176, "column": 33}}, {"id": 990, "type": "identifier", "text": "IORESOURCE_MEM", "parent": 988, "children": [], "start_point": {"row": 176, "column": 35}, "end_point": {"row": 176, "column": 49}}, {"id": 991, "type": "number_literal", "text": "0", "parent": 988, "children": [], "start_point": {"row": 176, "column": 51}, "end_point": {"row": 176, "column": 52}}, {"id": 992, "type": "if_statement", "text": "if (!res)\n\t\treturn -ENODEV;", "parent": 921, "children": [993, 997], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 178, "column": 17}}, {"id": 993, "type": "parenthesized_expression", "text": "(!res)", "parent": 992, "children": [994], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 10}}, {"id": 994, "type": "unary_expression", "text": "!res", "parent": 993, "children": [995, 996], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 9}}, {"id": 995, "type": "!", "text": "!", "parent": 994, "children": [], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 6}}, {"id": 996, "type": "identifier", "text": "res", "parent": 994, "children": [], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 9}}, {"id": 997, "type": "return_statement", "text": "return -ENODEV;", "parent": 992, "children": [998], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 17}}, {"id": 998, "type": "unary_expression", "text": "-ENODEV", "parent": 997, "children": [999, 1000], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 16}}, {"id": 999, "type": "-", "text": "-", "parent": 998, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 10}}, {"id": 1000, "type": "identifier", "text": "ENODEV", "parent": 998, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 16}}, {"id": 1001, "type": "assignment_expression", "text": "pdata = kzalloc(sizeof(*pdata), GFP_KERNEL)", "parent": 921, "children": [1002, 1003, 1004], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 44}}, {"id": 1002, "type": "identifier", "text": "pdata", "parent": 1001, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 6}}, {"id": 1003, "type": "=", "text": "=", "parent": 1001, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 8}}, {"id": 1004, "type": "call_expression", "text": "kzalloc(sizeof(*pdata), GFP_KERNEL)", "parent": 1001, "children": [1005, 1006], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 44}}, {"id": 1005, "type": "identifier", "text": "kzalloc", "parent": 1004, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 16}}, {"id": 1006, "type": "argument_list", "text": "(sizeof(*pdata), GFP_KERNEL)", "parent": 1004, "children": [1007, 1012], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 44}}, {"id": 1007, "type": "sizeof_expression", "text": "sizeof(*pdata)", "parent": 1006, "children": [1008], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 31}}, {"id": 1008, "type": "parenthesized_expression", "text": "(*pdata)", "parent": 1007, "children": [1009], "start_point": {"row": 179, "column": 23}, "end_point": {"row": 179, "column": 31}}, {"id": 1009, "type": "pointer_expression", "text": "*pdata", "parent": 1008, "children": [1010, 1011], "start_point": {"row": 179, "column": 24}, "end_point": {"row": 179, "column": 30}}, {"id": 1010, "type": "*", "text": "*", "parent": 1009, "children": [], "start_point": {"row": 179, "column": 24}, "end_point": {"row": 179, "column": 25}}, {"id": 1011, "type": "identifier", "text": "pdata", "parent": 1009, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 30}}, {"id": 1012, "type": "identifier", "text": "GFP_KERNEL", "parent": 1006, "children": [], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 43}}, {"id": 1013, "type": "if_statement", "text": "if (!pdata)\n\t\treturn -ENOMEM;", "parent": 921, "children": [1014, 1018], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 181, "column": 17}}, {"id": 1014, "type": "parenthesized_expression", "text": "(!pdata)", "parent": 1013, "children": [1015], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 12}}, {"id": 1015, "type": "unary_expression", "text": "!pdata", "parent": 1014, "children": [1016, 1017], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 11}}, {"id": 1016, "type": "!", "text": "!", "parent": 1015, "children": [], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 6}}, {"id": 1017, "type": "identifier", "text": "pdata", "parent": 1015, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 11}}, {"id": 1018, "type": "return_statement", "text": "return -ENOMEM;", "parent": 1013, "children": [1019], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 17}}, {"id": 1019, "type": "unary_expression", "text": "-ENOMEM", "parent": 1018, "children": [1020, 1021], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 16}}, {"id": 1020, "type": "-", "text": "-", "parent": 1019, "children": [], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 10}}, {"id": 1021, "type": "identifier", "text": "ENOMEM", "parent": 1019, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 16}}, {"id": 1022, "type": "assignment_expression", "text": "pdata->size = res->end - res->start + 1", "parent": 921, "children": [1023, 1026, 1027], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 40}}, {"id": 1023, "type": "field_expression", "text": "pdata->size", "parent": 1022, "children": [1024, 1025], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 12}}, {"id": 1024, "type": "identifier", "text": "pdata", "parent": 1023, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 6}}, {"id": 1025, "type": "field_identifier", "text": "size", "parent": 1023, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 12}}, {"id": 1026, "type": "=", "text": "=", "parent": 1022, "children": [], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 14}}, {"id": 1027, "type": "binary_expression", "text": "res->end - res->start + 1", "parent": 1022, "children": [1028, 1035, 1036], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 40}}, {"id": 1028, "type": "binary_expression", "text": "res->end - res->start", "parent": 1027, "children": [1029, 1031, 1032], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 36}}, {"id": 1029, "type": "field_expression", "text": "res->end", "parent": 1028, "children": [1030], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 23}}, {"id": 1030, "type": "identifier", "text": "res", "parent": 1029, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 18}}, {"id": 1031, "type": "-", "text": "-", "parent": 1028, "children": [], "start_point": {"row": 182, "column": 24}, "end_point": {"row": 182, "column": 25}}, {"id": 1032, "type": "field_expression", "text": "res->start", "parent": 1028, "children": [1033, 1034], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 36}}, {"id": 1033, "type": "identifier", "text": "res", "parent": 1032, "children": [], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 29}}, {"id": 1034, "type": "field_identifier", "text": "start", "parent": 1032, "children": [], "start_point": {"row": 182, "column": 31}, "end_point": {"row": 182, "column": 36}}, {"id": 1035, "type": "+", "text": "+", "parent": 1027, "children": [], "start_point": {"row": 182, "column": 37}, "end_point": {"row": 182, "column": 38}}, {"id": 1036, "type": "number_literal", "text": "1", "parent": 1027, "children": [], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 40}}, {"id": 1037, "type": "if_statement", "text": "if (!request_mem_region(res->start, pdata->size, pdev->name)) {\n\t\tret = -EBUSY;\n\t\tgoto out;\n\t}", "parent": 921, "children": [1038], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 186, "column": 2}}, {"id": 1038, "type": "parenthesized_expression", "text": "(!request_mem_region(res->start, pdata->size, pdev->name))", "parent": 1037, "children": [1039], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 62}}, {"id": 1039, "type": "unary_expression", "text": "!request_mem_region(res->start, pdata->size, pdev->name)", "parent": 1038, "children": [1040, 1041], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 61}}, {"id": 1040, "type": "!", "text": "!", "parent": 1039, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 6}}, {"id": 1041, "type": "call_expression", "text": "request_mem_region(res->start, pdata->size, pdev->name)", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 61}}, {"id": 1042, "type": "identifier", "text": "request_mem_region", "parent": 1041, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 24}}, {"id": 1043, "type": "argument_list", "text": "(res->start, pdata->size, pdev->name)", "parent": 1041, "children": [1044, 1047, 1050], "start_point": {"row": 183, "column": 24}, "end_point": {"row": 183, "column": 61}}, {"id": 1044, "type": "field_expression", "text": "res->start", "parent": 1043, "children": [1045, 1046], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 35}}, {"id": 1045, "type": "identifier", "text": "res", "parent": 1044, "children": [], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 28}}, {"id": 1046, "type": "field_identifier", "text": "start", "parent": 1044, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 35}}, {"id": 1047, "type": "field_expression", "text": "pdata->size", "parent": 1043, "children": [1048, 1049], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 48}}, {"id": 1048, "type": "identifier", "text": "pdata", "parent": 1047, "children": [], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 42}}, {"id": 1049, "type": "field_identifier", "text": "size", "parent": 1047, "children": [], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 48}}, {"id": 1050, "type": "field_expression", "text": "pdev->name", "parent": 1043, "children": [1051, 1052], "start_point": {"row": 183, "column": 50}, "end_point": {"row": 183, "column": 60}}, {"id": 1051, "type": "identifier", "text": "pdev", "parent": 1050, "children": [], "start_point": {"row": 183, "column": 50}, "end_point": {"row": 183, "column": 54}}, {"id": 1052, "type": "field_identifier", "text": "name", "parent": 1050, "children": [], "start_point": {"row": 183, "column": 56}, "end_point": {"row": 183, "column": 60}}, {"id": 1053, "type": "assignment_expression", "text": "ret = -EBUSY", "parent": 1037, "children": [1054, 1055, 1056], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 14}}, {"id": 1054, "type": "identifier", "text": "ret", "parent": 1053, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 5}}, {"id": 1055, "type": "=", "text": "=", "parent": 1053, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 7}}, {"id": 1056, "type": "unary_expression", "text": "-EBUSY", "parent": 1053, "children": [1057, 1058], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 14}}, {"id": 1057, "type": "-", "text": "-", "parent": 1056, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 9}}, {"id": 1058, "type": "identifier", "text": "EBUSY", "parent": 1056, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 14}}, {"id": 1059, "type": "goto_statement", "text": "goto out;", "parent": 1037, "children": [1060, 1061], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 11}}, {"id": 1060, "type": "goto", "text": "goto", "parent": 1059, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 6}}, {"id": 1061, "type": "statement_identifier", "text": "out", "parent": 1059, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 10}}, {"id": 1062, "type": "assignment_expression", "text": "pdata->baseaddr = res->start", "parent": 921, "children": [1063, 1066, 1067], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 29}}, {"id": 1063, "type": "field_expression", "text": "pdata->baseaddr", "parent": 1062, "children": [1064, 1065], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 16}}, {"id": 1064, "type": "identifier", "text": "pdata", "parent": 1063, "children": [], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 6}}, {"id": 1065, "type": "field_identifier", "text": "baseaddr", "parent": 1063, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 16}}, {"id": 1066, "type": "=", "text": "=", "parent": 1062, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 18}}, {"id": 1067, "type": "field_expression", "text": "res->start", "parent": 1062, "children": [1068, 1069], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 29}}, {"id": 1068, "type": "identifier", "text": "res", "parent": 1067, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 22}}, {"id": 1069, "type": "field_identifier", "text": "start", "parent": 1067, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 29}}, {"id": 1070, "type": "assignment_expression", "text": "ioaddr = ioremap(pdata->baseaddr, pdata->size)", "parent": 921, "children": [1071, 1072, 1073], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 47}}, {"id": 1071, "type": "identifier", "text": "ioaddr", "parent": 1070, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 7}}, {"id": 1072, "type": "=", "text": "=", "parent": 1070, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 9}}, {"id": 1073, "type": "call_expression", "text": "ioremap(pdata->baseaddr, pdata->size)", "parent": 1070, "children": [1074, 1075], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 47}}, {"id": 1074, "type": "identifier", "text": "ioremap", "parent": 1073, "children": [], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 17}}, {"id": 1075, "type": "argument_list", "text": "(pdata->baseaddr, pdata->size)", "parent": 1073, "children": [1076, 1079], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 47}}, {"id": 1076, "type": "field_expression", "text": "pdata->baseaddr", "parent": 1075, "children": [1077, 1078], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 33}}, {"id": 1077, "type": "identifier", "text": "pdata", "parent": 1076, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 23}}, {"id": 1078, "type": "field_identifier", "text": "baseaddr", "parent": 1076, "children": [], "start_point": {"row": 188, "column": 25}, "end_point": {"row": 188, "column": 33}}, {"id": 1079, "type": "field_expression", "text": "pdata->size", "parent": 1075, "children": [1080, 1081], "start_point": {"row": 188, "column": 35}, "end_point": {"row": 188, "column": 46}}, {"id": 1080, "type": "identifier", "text": "pdata", "parent": 1079, "children": [], "start_point": {"row": 188, "column": 35}, "end_point": {"row": 188, "column": 40}}, {"id": 1081, "type": "field_identifier", "text": "size", "parent": 1079, "children": [], "start_point": {"row": 188, "column": 42}, "end_point": {"row": 188, "column": 46}}, {"id": 1082, "type": "if_statement", "text": "if (!ioaddr) {\n\t\tret = -ENOMEM;\n\t\tgoto out;\n\t}", "parent": 921, "children": [1083], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 192, "column": 2}}, {"id": 1083, "type": "parenthesized_expression", "text": "(!ioaddr)", "parent": 1082, "children": [1084], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 13}}, {"id": 1084, "type": "unary_expression", "text": "!ioaddr", "parent": 1083, "children": [1085, 1086], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 12}}, {"id": 1085, "type": "!", "text": "!", "parent": 1084, "children": [], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 6}}, {"id": 1086, "type": "identifier", "text": "ioaddr", "parent": 1084, "children": [], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 12}}, {"id": 1087, "type": "assignment_expression", "text": "ret = -ENOMEM", "parent": 1082, "children": [1088, 1089, 1090], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 15}}, {"id": 1088, "type": "identifier", "text": "ret", "parent": 1087, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 5}}, {"id": 1089, "type": "=", "text": "=", "parent": 1087, "children": [], "start_point": {"row": 190, "column": 6}, "end_point": {"row": 190, "column": 7}}, {"id": 1090, "type": "unary_expression", "text": "-ENOMEM", "parent": 1087, "children": [1091, 1092], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 15}}, {"id": 1091, "type": "-", "text": "-", "parent": 1090, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 9}}, {"id": 1092, "type": "identifier", "text": "ENOMEM", "parent": 1090, "children": [], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 15}}, {"id": 1093, "type": "goto_statement", "text": "goto out;", "parent": 1082, "children": [1094, 1095], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 11}}, {"id": 1094, "type": "goto", "text": "goto", "parent": 1093, "children": [], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 6}}, {"id": 1095, "type": "statement_identifier", "text": "out", "parent": 1093, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 10}}, {"id": 1096, "type": "assignment_expression", "text": "pdata->ioaddr_nvram = ioaddr", "parent": 921, "children": [1097, 1100, 1101], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 29}}, {"id": 1097, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 1096, "children": [1098, 1099], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 20}}, {"id": 1098, "type": "identifier", "text": "pdata", "parent": 1097, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 6}}, {"id": 1099, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 1097, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 20}}, {"id": 1100, "type": "=", "text": "=", "parent": 1096, "children": [], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 22}}, {"id": 1101, "type": "identifier", "text": "ioaddr", "parent": 1096, "children": [], "start_point": {"row": 193, "column": 23}, "end_point": {"row": 193, "column": 29}}, {"id": 1102, "type": "assignment_expression", "text": "pdata->size_nvram = pdata->size - RTC_SIZE", "parent": 921, "children": [1103, 1106, 1107], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 43}}, {"id": 1103, "type": "field_expression", "text": "pdata->size_nvram", "parent": 1102, "children": [1104, 1105], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 18}}, {"id": 1104, "type": "identifier", "text": "pdata", "parent": 1103, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 6}}, {"id": 1105, "type": "field_identifier", "text": "size_nvram", "parent": 1103, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 18}}, {"id": 1106, "type": "=", "text": "=", "parent": 1102, "children": [], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 20}}, {"id": 1107, "type": "binary_expression", "text": "pdata->size - RTC_SIZE", "parent": 1102, "children": [1108, 1111, 1112], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 43}}, {"id": 1108, "type": "field_expression", "text": "pdata->size", "parent": 1107, "children": [1109, 1110], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 32}}, {"id": 1109, "type": "identifier", "text": "pdata", "parent": 1108, "children": [], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 26}}, {"id": 1110, "type": "field_identifier", "text": "size", "parent": 1108, "children": [], "start_point": {"row": 194, "column": 28}, "end_point": {"row": 194, "column": 32}}, {"id": 1111, "type": "-", "text": "-", "parent": 1107, "children": [], "start_point": {"row": 194, "column": 33}, "end_point": {"row": 194, "column": 34}}, {"id": 1112, "type": "identifier", "text": "RTC_SIZE", "parent": 1107, "children": [], "start_point": {"row": 194, "column": 35}, "end_point": {"row": 194, "column": 43}}, {"id": 1113, "type": "assignment_expression", "text": "pdata->ioaddr_rtc = ioaddr + pdata->size_nvram", "parent": 921, "children": [1114, 1117, 1118], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 47}}, {"id": 1114, "type": "field_expression", "text": "pdata->ioaddr_rtc", "parent": 1113, "children": [1115, 1116], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 18}}, {"id": 1115, "type": "identifier", "text": "pdata", "parent": 1114, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 6}}, {"id": 1116, "type": "field_identifier", "text": "ioaddr_rtc", "parent": 1114, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 18}}, {"id": 1117, "type": "=", "text": "=", "parent": 1113, "children": [], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 20}}, {"id": 1118, "type": "binary_expression", "text": "ioaddr + pdata->size_nvram", "parent": 1113, "children": [1119, 1120, 1121], "start_point": {"row": 195, "column": 21}, "end_point": {"row": 195, "column": 47}}, {"id": 1119, "type": "identifier", "text": "ioaddr", "parent": 1118, "children": [], "start_point": {"row": 195, "column": 21}, "end_point": {"row": 195, "column": 27}}, {"id": 1120, "type": "+", "text": "+", "parent": 1118, "children": [], "start_point": {"row": 195, "column": 28}, "end_point": {"row": 195, "column": 29}}, {"id": 1121, "type": "field_expression", "text": "pdata->size_nvram", "parent": 1118, "children": [1122, 1123], "start_point": {"row": 195, "column": 30}, "end_point": {"row": 195, "column": 47}}, {"id": 1122, "type": "identifier", "text": "pdata", "parent": 1121, "children": [], "start_point": {"row": 195, "column": 30}, "end_point": {"row": 195, "column": 35}}, {"id": 1123, "type": "field_identifier", "text": "size_nvram", "parent": 1121, "children": [], "start_point": {"row": 195, "column": 37}, "end_point": {"row": 195, "column": 47}}, {"id": 1124, "type": "assignment_expression", "text": "ioaddr = pdata->ioaddr_rtc", "parent": 921, "children": [1125, 1126, 1127], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 27}}, {"id": 1125, "type": "identifier", "text": "ioaddr", "parent": 1124, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 7}}, {"id": 1126, "type": "=", "text": "=", "parent": 1124, "children": [], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 9}}, {"id": 1127, "type": "field_expression", "text": "pdata->ioaddr_rtc", "parent": 1124, "children": [1128, 1129], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 27}}, {"id": 1128, "type": "identifier", "text": "pdata", "parent": 1127, "children": [], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 15}}, {"id": 1129, "type": "field_identifier", "text": "ioaddr_rtc", "parent": 1127, "children": [], "start_point": {"row": 198, "column": 17}, "end_point": {"row": 198, "column": 27}}, {"id": 1130, "type": "assignment_expression", "text": "sec = readb(ioaddr + RTC_SECONDS)", "parent": 921, "children": [1131, 1132, 1133], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 34}}, {"id": 1131, "type": "identifier", "text": "sec", "parent": 1130, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 4}}, {"id": 1132, "type": "=", "text": "=", "parent": 1130, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 6}}, {"id": 1133, "type": "call_expression", "text": "readb(ioaddr + RTC_SECONDS)", "parent": 1130, "children": [1134, 1135], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 34}}, {"id": 1134, "type": "identifier", "text": "readb", "parent": 1133, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 12}}, {"id": 1135, "type": "argument_list", "text": "(ioaddr + RTC_SECONDS)", "parent": 1133, "children": [1136], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 199, "column": 34}}, {"id": 1136, "type": "binary_expression", "text": "ioaddr + RTC_SECONDS", "parent": 1135, "children": [1137, 1138, 1139], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 33}}, {"id": 1137, "type": "identifier", "text": "ioaddr", "parent": 1136, "children": [], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 19}}, {"id": 1138, "type": "+", "text": "+", "parent": 1136, "children": [], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 21}}, {"id": 1139, "type": "identifier", "text": "RTC_SECONDS", "parent": 1136, "children": [], "start_point": {"row": 199, "column": 22}, "end_point": {"row": 199, "column": 33}}, {"id": 1140, "type": "if_statement", "text": "if (sec & RTC_STOP) {\n\t\tsec &= RTC_SECONDS_MASK;\n\t\tcen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n\t\twriteb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\t\twriteb(sec, ioaddr + RTC_SECONDS);\n\t\twriteb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n\t}", "parent": 921, "children": [1141], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 206, "column": 2}}, {"id": 1141, "type": "parenthesized_expression", "text": "(sec & RTC_STOP)", "parent": 1140, "children": [1142], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 20}}, {"id": 1142, "type": "binary_expression", "text": "sec & RTC_STOP", "parent": 1141, "children": [1143, 1144], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 19}}, {"id": 1143, "type": "identifier", "text": "sec", "parent": 1142, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 8}}, {"id": 1144, "type": "identifier", "text": "RTC_STOP", "parent": 1142, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 19}}, {"id": 1145, "type": "assignment_expression", "text": "sec &= RTC_SECONDS_MASK", "parent": 1140, "children": [1146, 1147, 1148], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 201, "column": 25}}, {"id": 1146, "type": "identifier", "text": "sec", "parent": 1145, "children": [], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 201, "column": 5}}, {"id": 1147, "type": "&=", "text": "&=", "parent": 1145, "children": [], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 8}}, {"id": 1148, "type": "identifier", "text": "RTC_SECONDS_MASK", "parent": 1145, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 25}}, {"id": 1149, "type": "assignment_expression", "text": "cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK", "parent": 1140, "children": [1150, 1151, 1152], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 54}}, {"id": 1150, "type": "identifier", "text": "cen", "parent": 1149, "children": [], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 5}}, {"id": 1151, "type": "=", "text": "=", "parent": 1149, "children": [], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 7}}, {"id": 1152, "type": "binary_expression", "text": "readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK", "parent": 1149, "children": [1153, 1160], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 54}}, {"id": 1153, "type": "call_expression", "text": "readb(ioaddr + RTC_CENTURY)", "parent": 1152, "children": [1154, 1155], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 35}}, {"id": 1154, "type": "identifier", "text": "readb", "parent": 1153, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 13}}, {"id": 1155, "type": "argument_list", "text": "(ioaddr + RTC_CENTURY)", "parent": 1153, "children": [1156], "start_point": {"row": 202, "column": 13}, "end_point": {"row": 202, "column": 35}}, {"id": 1156, "type": "binary_expression", "text": "ioaddr + RTC_CENTURY", "parent": 1155, "children": [1157, 1158, 1159], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 34}}, {"id": 1157, "type": "identifier", "text": "ioaddr", "parent": 1156, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 20}}, {"id": 1158, "type": "+", "text": "+", "parent": 1156, "children": [], "start_point": {"row": 202, "column": 21}, "end_point": {"row": 202, "column": 22}}, {"id": 1159, "type": "identifier", "text": "RTC_CENTURY", "parent": 1156, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 34}}, {"id": 1160, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 1152, "children": [], "start_point": {"row": 202, "column": 38}, "end_point": {"row": 202, "column": 54}}, {"id": 1161, "type": "call_expression", "text": "writeb(RTC_WRITE, ioaddr + RTC_CONTROL)", "parent": 1140, "children": [1162, 1163], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 41}}, {"id": 1162, "type": "identifier", "text": "writeb", "parent": 1161, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 8}}, {"id": 1163, "type": "argument_list", "text": "(RTC_WRITE, ioaddr + RTC_CONTROL)", "parent": 1161, "children": [1164, 1165], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 41}}, {"id": 1164, "type": "identifier", "text": "RTC_WRITE", "parent": 1163, "children": [], "start_point": {"row": 203, "column": 9}, "end_point": {"row": 203, "column": 18}}, {"id": 1165, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 1163, "children": [1166, 1167, 1168], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 40}}, {"id": 1166, "type": "identifier", "text": "ioaddr", "parent": 1165, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 26}}, {"id": 1167, "type": "+", "text": "+", "parent": 1165, "children": [], "start_point": {"row": 203, "column": 27}, "end_point": {"row": 203, "column": 28}}, {"id": 1168, "type": "identifier", "text": "RTC_CONTROL", "parent": 1165, "children": [], "start_point": {"row": 203, "column": 29}, "end_point": {"row": 203, "column": 40}}, {"id": 1169, "type": "call_expression", "text": "writeb(sec, ioaddr + RTC_SECONDS)", "parent": 1140, "children": [1170, 1171], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 35}}, {"id": 1170, "type": "identifier", "text": "writeb", "parent": 1169, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 8}}, {"id": 1171, "type": "argument_list", "text": "(sec, ioaddr + RTC_SECONDS)", "parent": 1169, "children": [1172, 1173], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 35}}, {"id": 1172, "type": "identifier", "text": "sec", "parent": 1171, "children": [], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 12}}, {"id": 1173, "type": "binary_expression", "text": "ioaddr + RTC_SECONDS", "parent": 1171, "children": [1174, 1175, 1176], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 34}}, {"id": 1174, "type": "identifier", "text": "ioaddr", "parent": 1173, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 20}}, {"id": 1175, "type": "+", "text": "+", "parent": 1173, "children": [], "start_point": {"row": 204, "column": 21}, "end_point": {"row": 204, "column": 22}}, {"id": 1176, "type": "identifier", "text": "RTC_SECONDS", "parent": 1173, "children": [], "start_point": {"row": 204, "column": 23}, "end_point": {"row": 204, "column": 34}}, {"id": 1177, "type": "call_expression", "text": "writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)", "parent": 1140, "children": [1178, 1179], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 54}}, {"id": 1178, "type": "identifier", "text": "writeb", "parent": 1177, "children": [], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 8}}, {"id": 1179, "type": "argument_list", "text": "(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL)", "parent": 1177, "children": [1180, 1183], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 54}}, {"id": 1180, "type": "binary_expression", "text": "cen & RTC_CENTURY_MASK", "parent": 1179, "children": [1181, 1182], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 31}}, {"id": 1181, "type": "identifier", "text": "cen", "parent": 1180, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 12}}, {"id": 1182, "type": "identifier", "text": "RTC_CENTURY_MASK", "parent": 1180, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 31}}, {"id": 1183, "type": "binary_expression", "text": "ioaddr + RTC_CONTROL", "parent": 1179, "children": [1184, 1185, 1186], "start_point": {"row": 205, "column": 33}, "end_point": {"row": 205, "column": 53}}, {"id": 1184, "type": "identifier", "text": "ioaddr", "parent": 1183, "children": [], "start_point": {"row": 205, "column": 33}, "end_point": {"row": 205, "column": 39}}, {"id": 1185, "type": "+", "text": "+", "parent": 1183, "children": [], "start_point": {"row": 205, "column": 40}, "end_point": {"row": 205, "column": 41}}, {"id": 1186, "type": "identifier", "text": "RTC_CONTROL", "parent": 1183, "children": [], "start_point": {"row": 205, "column": 42}, "end_point": {"row": 205, "column": 53}}, {"id": 1187, "type": "if_statement", "text": "if (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n\t\tdev_warn(&pdev->dev, \"voltage-low detected.\\n\");", "parent": 921, "children": [1188], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 208, "column": 50}}, {"id": 1188, "type": "parenthesized_expression", "text": "(!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))", "parent": 1187, "children": [1189], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 48}}, {"id": 1189, "type": "unary_expression", "text": "!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)", "parent": 1188, "children": [1190, 1191], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 47}}, {"id": 1190, "type": "!", "text": "!", "parent": 1189, "children": [], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 6}}, {"id": 1191, "type": "parenthesized_expression", "text": "(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG)", "parent": 1189, "children": [1192], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 207, "column": 47}}, {"id": 1192, "type": "binary_expression", "text": "readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG", "parent": 1191, "children": [1193, 1200], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 46}}, {"id": 1193, "type": "call_expression", "text": "readb(ioaddr + RTC_DAY)", "parent": 1192, "children": [1194, 1195], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 30}}, {"id": 1194, "type": "identifier", "text": "readb", "parent": 1193, "children": [], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 12}}, {"id": 1195, "type": "argument_list", "text": "(ioaddr + RTC_DAY)", "parent": 1193, "children": [1196], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 30}}, {"id": 1196, "type": "binary_expression", "text": "ioaddr + RTC_DAY", "parent": 1195, "children": [1197, 1198, 1199], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 29}}, {"id": 1197, "type": "identifier", "text": "ioaddr", "parent": 1196, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 19}}, {"id": 1198, "type": "+", "text": "+", "parent": 1196, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 21}}, {"id": 1199, "type": "identifier", "text": "RTC_DAY", "parent": 1196, "children": [], "start_point": {"row": 207, "column": 22}, "end_point": {"row": 207, "column": 29}}, {"id": 1200, "type": "identifier", "text": "RTC_BATT_FLAG", "parent": 1192, "children": [], "start_point": {"row": 207, "column": 33}, "end_point": {"row": 207, "column": 46}}, {"id": 1201, "type": "call_expression", "text": "dev_warn(&pdev->dev, \"voltage-low detected.\\n\")", "parent": 1187, "children": [1202, 1203], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 49}}, {"id": 1202, "type": "identifier", "text": "dev_warn", "parent": 1201, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 10}}, {"id": 1203, "type": "argument_list", "text": "(&pdev->dev, \"voltage-low detected.\\n\")", "parent": 1201, "children": [1204, 1208], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 49}}, {"id": 1204, "type": "pointer_expression", "text": "&pdev->dev", "parent": 1203, "children": [1205], "start_point": {"row": 208, "column": 11}, "end_point": {"row": 208, "column": 21}}, {"id": 1205, "type": "field_expression", "text": "pdev->dev", "parent": 1204, "children": [1206, 1207], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 21}}, {"id": 1206, "type": "identifier", "text": "pdev", "parent": 1205, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 16}}, {"id": 1207, "type": "field_identifier", "text": "dev", "parent": 1205, "children": [], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 21}}, {"id": 1208, "type": "string_literal", "text": "\"voltage-low detected.\\n\"", "parent": 1203, "children": [1209], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 48}}, {"id": 1209, "type": "escape_sequence", "text": "\\n", "parent": 1208, "children": [], "start_point": {"row": 208, "column": 45}, "end_point": {"row": 208, "column": 47}}, {"id": 1210, "type": "assignment_expression", "text": "rtc = rtc_device_register(pdev->name, &pdev->dev,\n\t\t\t\t &ds1742_rtc_ops, THIS_MODULE)", "parent": 921, "children": [1211, 1212, 1213], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 211, "column": 35}}, {"id": 1211, "type": "identifier", "text": "rtc", "parent": 1210, "children": [], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 4}}, {"id": 1212, "type": "=", "text": "=", "parent": 1210, "children": [], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 6}}, {"id": 1213, "type": "call_expression", "text": "rtc_device_register(pdev->name, &pdev->dev,\n\t\t\t\t &ds1742_rtc_ops, THIS_MODULE)", "parent": 1210, "children": [1214, 1215], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 211, "column": 35}}, {"id": 1214, "type": "identifier", "text": "rtc_device_register", "parent": 1213, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 26}}, {"id": 1215, "type": "argument_list", "text": "(pdev->name, &pdev->dev,\n\t\t\t\t &ds1742_rtc_ops, THIS_MODULE)", "parent": 1213, "children": [1216, 1219, 1223, 1225], "start_point": {"row": 210, "column": 26}, "end_point": {"row": 211, "column": 35}}, {"id": 1216, "type": "field_expression", "text": "pdev->name", "parent": 1215, "children": [1217, 1218], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 37}}, {"id": 1217, "type": "identifier", "text": "pdev", "parent": 1216, "children": [], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 31}}, {"id": 1218, "type": "field_identifier", "text": "name", "parent": 1216, "children": [], "start_point": {"row": 210, "column": 33}, "end_point": {"row": 210, "column": 37}}, {"id": 1219, "type": "pointer_expression", "text": "&pdev->dev", "parent": 1215, "children": [1220], "start_point": {"row": 210, "column": 39}, "end_point": {"row": 210, "column": 49}}, {"id": 1220, "type": "field_expression", "text": "pdev->dev", "parent": 1219, "children": [1221, 1222], "start_point": {"row": 210, "column": 40}, "end_point": {"row": 210, "column": 49}}, {"id": 1221, "type": "identifier", "text": "pdev", "parent": 1220, "children": [], "start_point": {"row": 210, "column": 40}, "end_point": {"row": 210, "column": 44}}, {"id": 1222, "type": "field_identifier", "text": "dev", "parent": 1220, "children": [], "start_point": {"row": 210, "column": 46}, "end_point": {"row": 210, "column": 49}}, {"id": 1223, "type": "pointer_expression", "text": "&ds1742_rtc_ops", "parent": 1215, "children": [1224], "start_point": {"row": 211, "column": 6}, "end_point": {"row": 211, "column": 21}}, {"id": 1224, "type": "identifier", "text": "ds1742_rtc_ops", "parent": 1223, "children": [], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 21}}, {"id": 1225, "type": "identifier", "text": "THIS_MODULE", "parent": 1215, "children": [], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 34}}, {"id": 1226, "type": "if_statement", "text": "if (IS_ERR(rtc)) {\n\t\tret = PTR_ERR(rtc);\n\t\tgoto out;\n\t}", "parent": 921, "children": [1227], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 215, "column": 2}}, {"id": 1227, "type": "parenthesized_expression", "text": "(IS_ERR(rtc))", "parent": 1226, "children": [1228], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 17}}, {"id": 1228, "type": "call_expression", "text": "IS_ERR(rtc)", "parent": 1227, "children": [1229, 1230], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 16}}, {"id": 1229, "type": "identifier", "text": "IS_ERR", "parent": 1228, "children": [], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 11}}, {"id": 1230, "type": "argument_list", "text": "(rtc)", "parent": 1228, "children": [1231], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 16}}, {"id": 1231, "type": "identifier", "text": "rtc", "parent": 1230, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 15}}, {"id": 1232, "type": "assignment_expression", "text": "ret = PTR_ERR(rtc)", "parent": 1226, "children": [1233, 1234, 1235], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 20}}, {"id": 1233, "type": "identifier", "text": "ret", "parent": 1232, "children": [], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 5}}, {"id": 1234, "type": "=", "text": "=", "parent": 1232, "children": [], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 7}}, {"id": 1235, "type": "call_expression", "text": "PTR_ERR(rtc)", "parent": 1232, "children": [1236, 1237], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 20}}, {"id": 1236, "type": "identifier", "text": "PTR_ERR", "parent": 1235, "children": [], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 15}}, {"id": 1237, "type": "argument_list", "text": "(rtc)", "parent": 1235, "children": [1238], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 20}}, {"id": 1238, "type": "identifier", "text": "rtc", "parent": 1237, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 19}}, {"id": 1239, "type": "goto_statement", "text": "goto out;", "parent": 1226, "children": [1240, 1241], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 214, "column": 11}}, {"id": 1240, "type": "goto", "text": "goto", "parent": 1239, "children": [], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 214, "column": 6}}, {"id": 1241, "type": "statement_identifier", "text": "out", "parent": 1239, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 10}}, {"id": 1242, "type": "assignment_expression", "text": "pdata->rtc = rtc", "parent": 921, "children": [1243, 1246, 1247], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 17}}, {"id": 1243, "type": "field_expression", "text": "pdata->rtc", "parent": 1242, "children": [1244, 1245], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 11}}, {"id": 1244, "type": "identifier", "text": "pdata", "parent": 1243, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 6}}, {"id": 1245, "type": "field_identifier", "text": "rtc", "parent": 1243, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 11}}, {"id": 1246, "type": "=", "text": "=", "parent": 1242, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 13}}, {"id": 1247, "type": "identifier", "text": "rtc", "parent": 1242, "children": [], "start_point": {"row": 216, "column": 14}, "end_point": {"row": 216, "column": 17}}, {"id": 1248, "type": "assignment_expression", "text": "pdata->last_jiffies = jiffies", "parent": 921, "children": [1249, 1252, 1253], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 30}}, {"id": 1249, "type": "field_expression", "text": "pdata->last_jiffies", "parent": 1248, "children": [1250, 1251], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 20}}, {"id": 1250, "type": "identifier", "text": "pdata", "parent": 1249, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 6}}, {"id": 1251, "type": "field_identifier", "text": "last_jiffies", "parent": 1249, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 20}}, {"id": 1252, "type": "=", "text": "=", "parent": 1248, "children": [], "start_point": {"row": 217, "column": 21}, "end_point": {"row": 217, "column": 22}}, {"id": 1253, "type": "identifier", "text": "jiffies", "parent": 1248, "children": [], "start_point": {"row": 217, "column": 23}, "end_point": {"row": 217, "column": 30}}, {"id": 1254, "type": "call_expression", "text": "platform_set_drvdata(pdev, pdata)", "parent": 921, "children": [1255, 1256], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 34}}, {"id": 1255, "type": "identifier", "text": "platform_set_drvdata", "parent": 1254, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 21}}, {"id": 1256, "type": "argument_list", "text": "(pdev, pdata)", "parent": 1254, "children": [1257, 1258], "start_point": {"row": 218, "column": 21}, "end_point": {"row": 218, "column": 34}}, {"id": 1257, "type": "identifier", "text": "pdev", "parent": 1256, "children": [], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 26}}, {"id": 1258, "type": "identifier", "text": "pdata", "parent": 1256, "children": [], "start_point": {"row": 218, "column": 28}, "end_point": {"row": 218, "column": 33}}, {"id": 1259, "type": "assignment_expression", "text": "ds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n\t\t\t\t pdata->size_nvram)", "parent": 921, "children": [1260, 1263, 1264], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 220, "column": 27}}, {"id": 1260, "type": "field_expression", "text": "ds1742_nvram_attr.size", "parent": 1259, "children": [1261, 1262], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 23}}, {"id": 1261, "type": "identifier", "text": "ds1742_nvram_attr", "parent": 1260, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 18}}, {"id": 1262, "type": "field_identifier", "text": "size", "parent": 1260, "children": [], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 23}}, {"id": 1263, "type": "=", "text": "=", "parent": 1259, "children": [], "start_point": {"row": 219, "column": 24}, "end_point": {"row": 219, "column": 25}}, {"id": 1264, "type": "call_expression", "text": "max(ds1742_nvram_attr.size,\n\t\t\t\t pdata->size_nvram)", "parent": 1259, "children": [1265, 1266], "start_point": {"row": 219, "column": 26}, "end_point": {"row": 220, "column": 27}}, {"id": 1265, "type": "identifier", "text": "max", "parent": 1264, "children": [], "start_point": {"row": 219, "column": 26}, "end_point": {"row": 219, "column": 29}}, {"id": 1266, "type": "argument_list", "text": "(ds1742_nvram_attr.size,\n\t\t\t\t pdata->size_nvram)", "parent": 1264, "children": [1267, 1270], "start_point": {"row": 219, "column": 29}, "end_point": {"row": 220, "column": 27}}, {"id": 1267, "type": "field_expression", "text": "ds1742_nvram_attr.size", "parent": 1266, "children": [1268, 1269], "start_point": {"row": 219, "column": 30}, "end_point": {"row": 219, "column": 52}}, {"id": 1268, "type": "identifier", "text": "ds1742_nvram_attr", "parent": 1267, "children": [], "start_point": {"row": 219, "column": 30}, "end_point": {"row": 219, "column": 47}}, {"id": 1269, "type": "field_identifier", "text": "size", "parent": 1267, "children": [], "start_point": {"row": 219, "column": 48}, "end_point": {"row": 219, "column": 52}}, {"id": 1270, "type": "field_expression", "text": "pdata->size_nvram", "parent": 1266, "children": [1271, 1272], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 26}}, {"id": 1271, "type": "identifier", "text": "pdata", "parent": 1270, "children": [], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 14}}, {"id": 1272, "type": "field_identifier", "text": "size_nvram", "parent": 1270, "children": [], "start_point": {"row": 220, "column": 16}, "end_point": {"row": 220, "column": 26}}, {"id": 1273, "type": "assignment_expression", "text": "ret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)", "parent": 921, "children": [1274, 1275, 1276], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 65}}, {"id": 1274, "type": "identifier", "text": "ret", "parent": 1273, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 4}}, {"id": 1275, "type": "=", "text": "=", "parent": 1273, "children": [], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 6}}, {"id": 1276, "type": "call_expression", "text": "sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)", "parent": 1273, "children": [1277, 1278], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 65}}, {"id": 1277, "type": "identifier", "text": "sysfs_create_bin_file", "parent": 1276, "children": [], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 28}}, {"id": 1278, "type": "argument_list", "text": "(&pdev->dev.kobj, &ds1742_nvram_attr)", "parent": 1276, "children": [1279, 1285], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 221, "column": 65}}, {"id": 1279, "type": "pointer_expression", "text": "&pdev->dev.kobj", "parent": 1278, "children": [1280], "start_point": {"row": 221, "column": 29}, "end_point": {"row": 221, "column": 44}}, {"id": 1280, "type": "field_expression", "text": "pdev->dev.kobj", "parent": 1279, "children": [1281, 1284], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 44}}, {"id": 1281, "type": "field_expression", "text": "pdev->dev", "parent": 1280, "children": [1282, 1283], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 39}}, {"id": 1282, "type": "identifier", "text": "pdev", "parent": 1281, "children": [], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 34}}, {"id": 1283, "type": "field_identifier", "text": "dev", "parent": 1281, "children": [], "start_point": {"row": 221, "column": 36}, "end_point": {"row": 221, "column": 39}}, {"id": 1284, "type": "field_identifier", "text": "kobj", "parent": 1280, "children": [], "start_point": {"row": 221, "column": 40}, "end_point": {"row": 221, "column": 44}}, {"id": 1285, "type": "pointer_expression", "text": "&ds1742_nvram_attr", "parent": 1278, "children": [1286], "start_point": {"row": 221, "column": 46}, "end_point": {"row": 221, "column": 64}}, {"id": 1286, "type": "identifier", "text": "ds1742_nvram_attr", "parent": 1285, "children": [], "start_point": {"row": 221, "column": 47}, "end_point": {"row": 221, "column": 64}}, {"id": 1287, "type": "if_statement", "text": "if (ret)\n\t\tgoto out;", "parent": 921, "children": [1288, 1290], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 223, "column": 11}}, {"id": 1288, "type": "parenthesized_expression", "text": "(ret)", "parent": 1287, "children": [1289], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 9}}, {"id": 1289, "type": "identifier", "text": "ret", "parent": 1288, "children": [], "start_point": {"row": 222, "column": 5}, "end_point": {"row": 222, "column": 8}}, {"id": 1290, "type": "goto_statement", "text": "goto out;", "parent": 1287, "children": [1291, 1292], "start_point": {"row": 223, "column": 2}, "end_point": {"row": 223, "column": 11}}, {"id": 1291, "type": "goto", "text": "goto", "parent": 1290, "children": [], "start_point": {"row": 223, "column": 2}, "end_point": {"row": 223, "column": 6}}, {"id": 1292, "type": "statement_identifier", "text": "out", "parent": 1290, "children": [], "start_point": {"row": 223, "column": 7}, "end_point": {"row": 223, "column": 10}}, {"id": 1293, "type": "return_statement", "text": "return 0;", "parent": 921, "children": [1294], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 10}}, {"id": 1294, "type": "number_literal", "text": "0", "parent": 1293, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 9}}, {"id": 1295, "type": "labeled_statement", "text": "out:\n\tif (pdata->rtc)\n\t\trtc_device_unregister(pdata->rtc);", "parent": 921, "children": [1296, 1297], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 227, "column": 36}}, {"id": 1296, "type": "statement_identifier", "text": "out", "parent": 1295, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 4}}, {"id": 1297, "type": "if_statement", "text": "if (pdata->rtc)\n\t\trtc_device_unregister(pdata->rtc);", "parent": 1295, "children": [1298], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 227, "column": 36}}, {"id": 1298, "type": "parenthesized_expression", "text": "(pdata->rtc)", "parent": 1297, "children": [1299], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 16}}, {"id": 1299, "type": "field_expression", "text": "pdata->rtc", "parent": 1298, "children": [1300, 1301], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 15}}, {"id": 1300, "type": "identifier", "text": "pdata", "parent": 1299, "children": [], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 10}}, {"id": 1301, "type": "field_identifier", "text": "rtc", "parent": 1299, "children": [], "start_point": {"row": 226, "column": 12}, "end_point": {"row": 226, "column": 15}}, {"id": 1302, "type": "call_expression", "text": "rtc_device_unregister(pdata->rtc)", "parent": 1297, "children": [1303, 1304], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 35}}, {"id": 1303, "type": "identifier", "text": "rtc_device_unregister", "parent": 1302, "children": [], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 23}}, {"id": 1304, "type": "argument_list", "text": "(pdata->rtc)", "parent": 1302, "children": [1305], "start_point": {"row": 227, "column": 23}, "end_point": {"row": 227, "column": 35}}, {"id": 1305, "type": "field_expression", "text": "pdata->rtc", "parent": 1304, "children": [1306, 1307], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 34}}, {"id": 1306, "type": "identifier", "text": "pdata", "parent": 1305, "children": [], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 29}}, {"id": 1307, "type": "field_identifier", "text": "rtc", "parent": 1305, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 34}}, {"id": 1308, "type": "if_statement", "text": "if (pdata->ioaddr_nvram)\n\t\tiounmap(pdata->ioaddr_nvram);", "parent": 921, "children": [1309], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 229, "column": 31}}, {"id": 1309, "type": "parenthesized_expression", "text": "(pdata->ioaddr_nvram)", "parent": 1308, "children": [1310], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 25}}, {"id": 1310, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 1309, "children": [1311, 1312], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 24}}, {"id": 1311, "type": "identifier", "text": "pdata", "parent": 1310, "children": [], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 10}}, {"id": 1312, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 1310, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 24}}, {"id": 1313, "type": "call_expression", "text": "iounmap(pdata->ioaddr_nvram)", "parent": 1308, "children": [1314, 1315], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 30}}, {"id": 1314, "type": "identifier", "text": "iounmap", "parent": 1313, "children": [], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 9}}, {"id": 1315, "type": "argument_list", "text": "(pdata->ioaddr_nvram)", "parent": 1313, "children": [1316], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 30}}, {"id": 1316, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 1315, "children": [1317, 1318], "start_point": {"row": 229, "column": 10}, "end_point": {"row": 229, "column": 29}}, {"id": 1317, "type": "identifier", "text": "pdata", "parent": 1316, "children": [], "start_point": {"row": 229, "column": 10}, "end_point": {"row": 229, "column": 15}}, {"id": 1318, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 1316, "children": [], "start_point": {"row": 229, "column": 17}, "end_point": {"row": 229, "column": 29}}, {"id": 1319, "type": "if_statement", "text": "if (pdata->baseaddr)\n\t\trelease_mem_region(pdata->baseaddr, pdata->size);", "parent": 921, "children": [1320], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 231, "column": 51}}, {"id": 1320, "type": "parenthesized_expression", "text": "(pdata->baseaddr)", "parent": 1319, "children": [1321], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 21}}, {"id": 1321, "type": "field_expression", "text": "pdata->baseaddr", "parent": 1320, "children": [1322, 1323], "start_point": {"row": 230, "column": 5}, "end_point": {"row": 230, "column": 20}}, {"id": 1322, "type": "identifier", "text": "pdata", "parent": 1321, "children": [], "start_point": {"row": 230, "column": 5}, "end_point": {"row": 230, "column": 10}}, {"id": 1323, "type": "field_identifier", "text": "baseaddr", "parent": 1321, "children": [], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 20}}, {"id": 1324, "type": "call_expression", "text": "release_mem_region(pdata->baseaddr, pdata->size)", "parent": 1319, "children": [1325, 1326], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 50}}, {"id": 1325, "type": "identifier", "text": "release_mem_region", "parent": 1324, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 20}}, {"id": 1326, "type": "argument_list", "text": "(pdata->baseaddr, pdata->size)", "parent": 1324, "children": [1327, 1330], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 50}}, {"id": 1327, "type": "field_expression", "text": "pdata->baseaddr", "parent": 1326, "children": [1328, 1329], "start_point": {"row": 231, "column": 21}, "end_point": {"row": 231, "column": 36}}, {"id": 1328, "type": "identifier", "text": "pdata", "parent": 1327, "children": [], "start_point": {"row": 231, "column": 21}, "end_point": {"row": 231, "column": 26}}, {"id": 1329, "type": "field_identifier", "text": "baseaddr", "parent": 1327, "children": [], "start_point": {"row": 231, "column": 28}, "end_point": {"row": 231, "column": 36}}, {"id": 1330, "type": "field_expression", "text": "pdata->size", "parent": 1326, "children": [1331, 1332], "start_point": {"row": 231, "column": 38}, "end_point": {"row": 231, "column": 49}}, {"id": 1331, "type": "identifier", "text": "pdata", "parent": 1330, "children": [], "start_point": {"row": 231, "column": 38}, "end_point": {"row": 231, "column": 43}}, {"id": 1332, "type": "field_identifier", "text": "size", "parent": 1330, "children": [], "start_point": {"row": 231, "column": 45}, "end_point": {"row": 231, "column": 49}}, {"id": 1333, "type": "call_expression", "text": "kfree(pdata)", "parent": 921, "children": [1334, 1335], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 13}}, {"id": 1334, "type": "identifier", "text": "kfree", "parent": 1333, "children": [], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 6}}, {"id": 1335, "type": "argument_list", "text": "(pdata)", "parent": 1333, "children": [1336], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 13}}, {"id": 1336, "type": "identifier", "text": "pdata", "parent": 1335, "children": [], "start_point": {"row": 232, "column": 7}, "end_point": {"row": 232, "column": 12}}, {"id": 1337, "type": "return_statement", "text": "return ret;", "parent": 921, "children": [1338], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 12}}, {"id": 1338, "type": "identifier", "text": "ret", "parent": 1337, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 11}}, {"id": 1339, "type": "function_definition", "text": "static int __devexit ds1742_rtc_remove(struct platform_device *pdev)\n{\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\n\tsysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n\trtc_device_unregister(pdata->rtc);\n\tiounmap(pdata->ioaddr_nvram);\n\trelease_mem_region(pdata->baseaddr, pdata->size);\n\tkfree(pdata);\n\treturn 0;\n}", "parent": null, "children": [1340, 1341, 1343], "start_point": {"row": 236, "column": 0}, "end_point": {"row": 246, "column": 1}}, {"id": 1340, "type": "primitive_type", "text": "int", "parent": 1339, "children": [], "start_point": {"row": 236, "column": 7}, "end_point": {"row": 236, "column": 10}}, {"id": 1341, "type": "ERROR", "text": "__devexit", "parent": 1339, "children": [1342], "start_point": {"row": 236, "column": 11}, "end_point": {"row": 236, "column": 20}}, {"id": 1342, "type": "identifier", "text": "__devexit", "parent": 1341, "children": [], "start_point": {"row": 236, "column": 11}, "end_point": {"row": 236, "column": 20}}, {"id": 1343, "type": "function_declarator", "text": "ds1742_rtc_remove(struct platform_device *pdev)", "parent": 1339, "children": [1344, 1345], "start_point": {"row": 236, "column": 21}, "end_point": {"row": 236, "column": 68}}, {"id": 1344, "type": "identifier", "text": "ds1742_rtc_remove", "parent": 1343, "children": [], "start_point": {"row": 236, "column": 21}, "end_point": {"row": 236, "column": 38}}, {"id": 1345, "type": "parameter_list", "text": "(struct platform_device *pdev)", "parent": 1343, "children": [1346], "start_point": {"row": 236, "column": 38}, "end_point": {"row": 236, "column": 68}}, {"id": 1346, "type": "parameter_declaration", "text": "struct platform_device *pdev", "parent": 1345, "children": [1347, 1350], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 67}}, {"id": 1347, "type": "struct_specifier", "text": "struct platform_device", "parent": 1346, "children": [1348, 1349], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 61}}, {"id": 1348, "type": "struct", "text": "struct", "parent": 1347, "children": [], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 45}}, {"id": 1349, "type": "type_identifier", "text": "platform_device", "parent": 1347, "children": [], "start_point": {"row": 236, "column": 46}, "end_point": {"row": 236, "column": 61}}, {"id": 1350, "type": "pointer_declarator", "text": "*pdev", "parent": 1346, "children": [1351, 1352], "start_point": {"row": 236, "column": 62}, "end_point": {"row": 236, "column": 67}}, {"id": 1351, "type": "*", "text": "*", "parent": 1350, "children": [], "start_point": {"row": 236, "column": 62}, "end_point": {"row": 236, "column": 63}}, {"id": 1352, "type": "identifier", "text": "pdev", "parent": 1350, "children": [], "start_point": {"row": 236, "column": 63}, "end_point": {"row": 236, "column": 67}}, {"id": 1353, "type": "declaration", "text": "struct rtc_plat_data *pdata = platform_get_drvdata(pdev);", "parent": 1339, "children": [1354, 1357], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 58}}, {"id": 1354, "type": "struct_specifier", "text": "struct rtc_plat_data", "parent": 1353, "children": [1355, 1356], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 21}}, {"id": 1355, "type": "struct", "text": "struct", "parent": 1354, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 7}}, {"id": 1356, "type": "type_identifier", "text": "rtc_plat_data", "parent": 1354, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 21}}, {"id": 1357, "type": "init_declarator", "text": "*pdata = platform_get_drvdata(pdev)", "parent": 1353, "children": [1358, 1361, 1362], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 57}}, {"id": 1358, "type": "pointer_declarator", "text": "*pdata", "parent": 1357, "children": [1359, 1360], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 28}}, {"id": 1359, "type": "*", "text": "*", "parent": 1358, "children": [], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 23}}, {"id": 1360, "type": "identifier", "text": "pdata", "parent": 1358, "children": [], "start_point": {"row": 238, "column": 23}, "end_point": {"row": 238, "column": 28}}, {"id": 1361, "type": "=", "text": "=", "parent": 1357, "children": [], "start_point": {"row": 238, "column": 29}, "end_point": {"row": 238, "column": 30}}, {"id": 1362, "type": "call_expression", "text": "platform_get_drvdata(pdev)", "parent": 1357, "children": [1363, 1364], "start_point": {"row": 238, "column": 31}, "end_point": {"row": 238, "column": 57}}, {"id": 1363, "type": "identifier", "text": "platform_get_drvdata", "parent": 1362, "children": [], "start_point": {"row": 238, "column": 31}, "end_point": {"row": 238, "column": 51}}, {"id": 1364, "type": "argument_list", "text": "(pdev)", "parent": 1362, "children": [1365], "start_point": {"row": 238, "column": 51}, "end_point": {"row": 238, "column": 57}}, {"id": 1365, "type": "identifier", "text": "pdev", "parent": 1364, "children": [], "start_point": {"row": 238, "column": 52}, "end_point": {"row": 238, "column": 56}}, {"id": 1366, "type": "call_expression", "text": "sysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr)", "parent": 1339, "children": [1367, 1368], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 59}}, {"id": 1367, "type": "identifier", "text": "sysfs_remove_bin_file", "parent": 1366, "children": [], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 22}}, {"id": 1368, "type": "argument_list", "text": "(&pdev->dev.kobj, &ds1742_nvram_attr)", "parent": 1366, "children": [1369, 1375], "start_point": {"row": 240, "column": 22}, "end_point": {"row": 240, "column": 59}}, {"id": 1369, "type": "pointer_expression", "text": "&pdev->dev.kobj", "parent": 1368, "children": [1370], "start_point": {"row": 240, "column": 23}, "end_point": {"row": 240, "column": 38}}, {"id": 1370, "type": "field_expression", "text": "pdev->dev.kobj", "parent": 1369, "children": [1371, 1374], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 38}}, {"id": 1371, "type": "field_expression", "text": "pdev->dev", "parent": 1370, "children": [1372, 1373], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 33}}, {"id": 1372, "type": "identifier", "text": "pdev", "parent": 1371, "children": [], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 28}}, {"id": 1373, "type": "field_identifier", "text": "dev", "parent": 1371, "children": [], "start_point": {"row": 240, "column": 30}, "end_point": {"row": 240, "column": 33}}, {"id": 1374, "type": "field_identifier", "text": "kobj", "parent": 1370, "children": [], "start_point": {"row": 240, "column": 34}, "end_point": {"row": 240, "column": 38}}, {"id": 1375, "type": "pointer_expression", "text": "&ds1742_nvram_attr", "parent": 1368, "children": [1376], "start_point": {"row": 240, "column": 40}, "end_point": {"row": 240, "column": 58}}, {"id": 1376, "type": "identifier", "text": "ds1742_nvram_attr", "parent": 1375, "children": [], "start_point": {"row": 240, "column": 41}, "end_point": {"row": 240, "column": 58}}, {"id": 1377, "type": "call_expression", "text": "rtc_device_unregister(pdata->rtc)", "parent": 1339, "children": [1378, 1379], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 34}}, {"id": 1378, "type": "identifier", "text": "rtc_device_unregister", "parent": 1377, "children": [], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 22}}, {"id": 1379, "type": "argument_list", "text": "(pdata->rtc)", "parent": 1377, "children": [1380], "start_point": {"row": 241, "column": 22}, "end_point": {"row": 241, "column": 34}}, {"id": 1380, "type": "field_expression", "text": "pdata->rtc", "parent": 1379, "children": [1381, 1382], "start_point": {"row": 241, "column": 23}, "end_point": {"row": 241, "column": 33}}, {"id": 1381, "type": "identifier", "text": "pdata", "parent": 1380, "children": [], "start_point": {"row": 241, "column": 23}, "end_point": {"row": 241, "column": 28}}, {"id": 1382, "type": "field_identifier", "text": "rtc", "parent": 1380, "children": [], "start_point": {"row": 241, "column": 30}, "end_point": {"row": 241, "column": 33}}, {"id": 1383, "type": "call_expression", "text": "iounmap(pdata->ioaddr_nvram)", "parent": 1339, "children": [1384, 1385], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 29}}, {"id": 1384, "type": "identifier", "text": "iounmap", "parent": 1383, "children": [], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 8}}, {"id": 1385, "type": "argument_list", "text": "(pdata->ioaddr_nvram)", "parent": 1383, "children": [1386], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 29}}, {"id": 1386, "type": "field_expression", "text": "pdata->ioaddr_nvram", "parent": 1385, "children": [1387, 1388], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 28}}, {"id": 1387, "type": "identifier", "text": "pdata", "parent": 1386, "children": [], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 14}}, {"id": 1388, "type": "field_identifier", "text": "ioaddr_nvram", "parent": 1386, "children": [], "start_point": {"row": 242, "column": 16}, "end_point": {"row": 242, "column": 28}}, {"id": 1389, "type": "call_expression", "text": "release_mem_region(pdata->baseaddr, pdata->size)", "parent": 1339, "children": [1390, 1391], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 243, "column": 49}}, {"id": 1390, "type": "identifier", "text": "release_mem_region", "parent": 1389, "children": [], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 243, "column": 19}}, {"id": 1391, "type": "argument_list", "text": "(pdata->baseaddr, pdata->size)", "parent": 1389, "children": [1392, 1395], "start_point": {"row": 243, "column": 19}, "end_point": {"row": 243, "column": 49}}, {"id": 1392, "type": "field_expression", "text": "pdata->baseaddr", "parent": 1391, "children": [1393, 1394], "start_point": {"row": 243, "column": 20}, "end_point": {"row": 243, "column": 35}}, {"id": 1393, "type": "identifier", "text": "pdata", "parent": 1392, "children": [], "start_point": {"row": 243, "column": 20}, "end_point": {"row": 243, "column": 25}}, {"id": 1394, "type": "field_identifier", "text": "baseaddr", "parent": 1392, "children": [], "start_point": {"row": 243, "column": 27}, "end_point": {"row": 243, "column": 35}}, {"id": 1395, "type": "field_expression", "text": "pdata->size", "parent": 1391, "children": [1396, 1397], "start_point": {"row": 243, "column": 37}, "end_point": {"row": 243, "column": 48}}, {"id": 1396, "type": "identifier", "text": "pdata", "parent": 1395, "children": [], "start_point": {"row": 243, "column": 37}, "end_point": {"row": 243, "column": 42}}, {"id": 1397, "type": "field_identifier", "text": "size", "parent": 1395, "children": [], "start_point": {"row": 243, "column": 44}, "end_point": {"row": 243, "column": 48}}, {"id": 1398, "type": "call_expression", "text": "kfree(pdata)", "parent": 1339, "children": [1399, 1400], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 244, "column": 13}}, {"id": 1399, "type": "identifier", "text": "kfree", "parent": 1398, "children": [], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 244, "column": 6}}, {"id": 1400, "type": "argument_list", "text": "(pdata)", "parent": 1398, "children": [1401], "start_point": {"row": 244, "column": 6}, "end_point": {"row": 244, "column": 13}}, {"id": 1401, "type": "identifier", "text": "pdata", "parent": 1400, "children": [], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 12}}, {"id": 1402, "type": "return_statement", "text": "return 0;", "parent": 1339, "children": [1403], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 10}}, {"id": 1403, "type": "number_literal", "text": "0", "parent": 1402, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 9}}, {"id": 1404, "type": "declaration", "text": "static struct platform_driver ds1742_rtc_driver = {\n\t.probe\t\t= ds1742_rtc_probe,\n\t.remove\t\t= __devexit_p(ds1742_rtc_remove),\n\t.driver\t\t= {\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t},\n};", "parent": null, "children": [1405, 1408], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 255, "column": 2}}, {"id": 1405, "type": "struct_specifier", "text": "struct platform_driver", "parent": 1404, "children": [1406, 1407], "start_point": {"row": 248, "column": 7}, "end_point": {"row": 248, "column": 29}}, {"id": 1406, "type": "struct", "text": "struct", "parent": 1405, "children": [], "start_point": {"row": 248, "column": 7}, "end_point": {"row": 248, "column": 13}}, {"id": 1407, "type": "type_identifier", "text": "platform_driver", "parent": 1405, "children": [], "start_point": {"row": 248, "column": 14}, "end_point": {"row": 248, "column": 29}}, {"id": 1408, "type": "init_declarator", "text": "ds1742_rtc_driver = {\n\t.probe\t\t= ds1742_rtc_probe,\n\t.remove\t\t= __devexit_p(ds1742_rtc_remove),\n\t.driver\t\t= {\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t},\n}", "parent": 1404, "children": [1409, 1410, 1411], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 255, "column": 1}}, {"id": 1409, "type": "identifier", "text": "ds1742_rtc_driver", "parent": 1408, "children": [], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 248, "column": 47}}, {"id": 1410, "type": "=", "text": "=", "parent": 1408, "children": [], "start_point": {"row": 248, "column": 48}, "end_point": {"row": 248, "column": 49}}, {"id": 1411, "type": "initializer_list", "text": "{\n\t.probe\t\t= ds1742_rtc_probe,\n\t.remove\t\t= __devexit_p(ds1742_rtc_remove),\n\t.driver\t\t= {\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t},\n}", "parent": 1408, "children": [1412, 1417, 1425], "start_point": {"row": 248, "column": 50}, "end_point": {"row": 255, "column": 1}}, {"id": 1412, "type": "initializer_pair", "text": ".probe\t\t= ds1742_rtc_probe", "parent": 1411, "children": [1413, 1415, 1416], "start_point": {"row": 249, "column": 1}, "end_point": {"row": 249, "column": 27}}, {"id": 1413, "type": "field_designator", "text": ".probe", "parent": 1412, "children": [1414], "start_point": {"row": 249, "column": 1}, "end_point": {"row": 249, "column": 7}}, {"id": 1414, "type": "field_identifier", "text": "probe", "parent": 1413, "children": [], "start_point": {"row": 249, "column": 2}, "end_point": {"row": 249, "column": 7}}, {"id": 1415, "type": "=", "text": "=", "parent": 1412, "children": [], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 10}}, {"id": 1416, "type": "identifier", "text": "ds1742_rtc_probe", "parent": 1412, "children": [], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 249, "column": 27}}, {"id": 1417, "type": "initializer_pair", "text": ".remove\t\t= __devexit_p(ds1742_rtc_remove)", "parent": 1411, "children": [1418, 1420, 1421], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 42}}, {"id": 1418, "type": "field_designator", "text": ".remove", "parent": 1417, "children": [1419], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 8}}, {"id": 1419, "type": "field_identifier", "text": "remove", "parent": 1418, "children": [], "start_point": {"row": 250, "column": 2}, "end_point": {"row": 250, "column": 8}}, {"id": 1420, "type": "=", "text": "=", "parent": 1417, "children": [], "start_point": {"row": 250, "column": 10}, "end_point": {"row": 250, "column": 11}}, {"id": 1421, "type": "call_expression", "text": "__devexit_p(ds1742_rtc_remove)", "parent": 1417, "children": [1422, 1423], "start_point": {"row": 250, "column": 12}, "end_point": {"row": 250, "column": 42}}, {"id": 1422, "type": "identifier", "text": "__devexit_p", "parent": 1421, "children": [], "start_point": {"row": 250, "column": 12}, "end_point": {"row": 250, "column": 23}}, {"id": 1423, "type": "argument_list", "text": "(ds1742_rtc_remove)", "parent": 1421, "children": [1424], "start_point": {"row": 250, "column": 23}, "end_point": {"row": 250, "column": 42}}, {"id": 1424, "type": "identifier", "text": "ds1742_rtc_remove", "parent": 1423, "children": [], "start_point": {"row": 250, "column": 24}, "end_point": {"row": 250, "column": 41}}, {"id": 1425, "type": "initializer_pair", "text": ".driver\t\t= {\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t}", "parent": 1411, "children": [1426, 1428, 1429], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 254, "column": 2}}, {"id": 1426, "type": "field_designator", "text": ".driver", "parent": 1425, "children": [1427], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 8}}, {"id": 1427, "type": "field_identifier", "text": "driver", "parent": 1426, "children": [], "start_point": {"row": 251, "column": 2}, "end_point": {"row": 251, "column": 8}}, {"id": 1428, "type": "=", "text": "=", "parent": 1425, "children": [], "start_point": {"row": 251, "column": 10}, "end_point": {"row": 251, "column": 11}}, {"id": 1429, "type": "initializer_list", "text": "{\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t}", "parent": 1425, "children": [1430, 1435], "start_point": {"row": 251, "column": 12}, "end_point": {"row": 254, "column": 2}}, {"id": 1430, "type": "initializer_pair", "text": ".name\t= \"ds1742\"", "parent": 1429, "children": [1431, 1433, 1434], "start_point": {"row": 252, "column": 2}, "end_point": {"row": 252, "column": 18}}, {"id": 1431, "type": "field_designator", "text": ".name", "parent": 1430, "children": [1432], "start_point": {"row": 252, "column": 2}, "end_point": {"row": 252, "column": 7}}, {"id": 1432, "type": "field_identifier", "text": "name", "parent": 1431, "children": [], "start_point": {"row": 252, "column": 3}, "end_point": {"row": 252, "column": 7}}, {"id": 1433, "type": "=", "text": "=", "parent": 1430, "children": [], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 9}}, {"id": 1434, "type": "string_literal", "text": "\"ds1742\"", "parent": 1430, "children": [], "start_point": {"row": 252, "column": 10}, "end_point": {"row": 252, "column": 18}}, {"id": 1435, "type": "initializer_pair", "text": ".owner\t= THIS_MODULE", "parent": 1429, "children": [1436, 1438, 1439], "start_point": {"row": 253, "column": 2}, "end_point": {"row": 253, "column": 22}}, {"id": 1436, "type": "field_designator", "text": ".owner", "parent": 1435, "children": [1437], "start_point": {"row": 253, "column": 2}, "end_point": {"row": 253, "column": 8}}, {"id": 1437, "type": "field_identifier", "text": "owner", "parent": 1436, "children": [], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 8}}, {"id": 1438, "type": "=", "text": "=", "parent": 1435, "children": [], "start_point": {"row": 253, "column": 9}, "end_point": {"row": 253, "column": 10}}, {"id": 1439, "type": "identifier", "text": "THIS_MODULE", "parent": 1435, "children": [], "start_point": {"row": 253, "column": 11}, "end_point": {"row": 253, "column": 22}}, {"id": 1440, "type": "function_definition", "text": "static __init int ds1742_init(void)\n{\n\treturn platform_driver_register(&ds1742_rtc_driver);\n}", "parent": null, "children": [1441, 1442, 1444], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 260, "column": 1}}, {"id": 1441, "type": "type_identifier", "text": "__init", "parent": 1440, "children": [], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 13}}, {"id": 1442, "type": "ERROR", "text": "int", "parent": 1440, "children": [1443], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 17}}, {"id": 1443, "type": "identifier", "text": "int", "parent": 1442, "children": [], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 17}}, {"id": 1444, "type": "function_declarator", "text": "ds1742_init(void)", "parent": 1440, "children": [1445, 1446], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 35}}, {"id": 1445, "type": "identifier", "text": "ds1742_init", "parent": 1444, "children": [], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 29}}, {"id": 1446, "type": "parameter_list", "text": "(void)", "parent": 1444, "children": [1447], "start_point": {"row": 257, "column": 29}, "end_point": {"row": 257, "column": 35}}, {"id": 1447, "type": "parameter_declaration", "text": "void", "parent": 1446, "children": [1448], "start_point": {"row": 257, "column": 30}, "end_point": {"row": 257, "column": 34}}, {"id": 1448, "type": "primitive_type", "text": "void", "parent": 1447, "children": [], "start_point": {"row": 257, "column": 30}, "end_point": {"row": 257, "column": 34}}, {"id": 1449, "type": "return_statement", "text": "return platform_driver_register(&ds1742_rtc_driver);", "parent": 1440, "children": [1450], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 53}}, {"id": 1450, "type": "call_expression", "text": "platform_driver_register(&ds1742_rtc_driver)", "parent": 1449, "children": [1451, 1452], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 52}}, {"id": 1451, "type": "identifier", "text": "platform_driver_register", "parent": 1450, "children": [], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 32}}, {"id": 1452, "type": "argument_list", "text": "(&ds1742_rtc_driver)", "parent": 1450, "children": [1453], "start_point": {"row": 259, "column": 32}, "end_point": {"row": 259, "column": 52}}, {"id": 1453, "type": "pointer_expression", "text": "&ds1742_rtc_driver", "parent": 1452, "children": [1454], "start_point": {"row": 259, "column": 33}, "end_point": {"row": 259, "column": 51}}, {"id": 1454, "type": "identifier", "text": "ds1742_rtc_driver", "parent": 1453, "children": [], "start_point": {"row": 259, "column": 34}, "end_point": {"row": 259, "column": 51}}, {"id": 1455, "type": "function_definition", "text": "static __exit void ds1742_exit(void)\n{\n\treturn platform_driver_unregister(&ds1742_rtc_driver);\n}", "parent": null, "children": [1456, 1457, 1459], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 265, "column": 1}}, {"id": 1456, "type": "type_identifier", "text": "__exit", "parent": 1455, "children": [], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 13}}, {"id": 1457, "type": "ERROR", "text": "void", "parent": 1455, "children": [1458], "start_point": {"row": 262, "column": 14}, "end_point": {"row": 262, "column": 18}}, {"id": 1458, "type": "identifier", "text": "void", "parent": 1457, "children": [], "start_point": {"row": 262, "column": 14}, "end_point": {"row": 262, "column": 18}}, {"id": 1459, "type": "function_declarator", "text": "ds1742_exit(void)", "parent": 1455, "children": [1460, 1461], "start_point": {"row": 262, "column": 19}, "end_point": {"row": 262, "column": 36}}, {"id": 1460, "type": "identifier", "text": "ds1742_exit", "parent": 1459, "children": [], "start_point": {"row": 262, "column": 19}, "end_point": {"row": 262, "column": 30}}, {"id": 1461, "type": "parameter_list", "text": "(void)", "parent": 1459, "children": [1462], "start_point": {"row": 262, "column": 30}, "end_point": {"row": 262, "column": 36}}, {"id": 1462, "type": "parameter_declaration", "text": "void", "parent": 1461, "children": [1463], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 35}}, {"id": 1463, "type": "primitive_type", "text": "void", "parent": 1462, "children": [], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 35}}, {"id": 1464, "type": "return_statement", "text": "return platform_driver_unregister(&ds1742_rtc_driver);", "parent": 1455, "children": [1465], "start_point": {"row": 264, "column": 1}, "end_point": {"row": 264, "column": 55}}, {"id": 1465, "type": "call_expression", "text": "platform_driver_unregister(&ds1742_rtc_driver)", "parent": 1464, "children": [1466, 1467], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 54}}, {"id": 1466, "type": "identifier", "text": "platform_driver_unregister", "parent": 1465, "children": [], "start_point": {"row": 264, "column": 8}, "end_point": {"row": 264, "column": 34}}, {"id": 1467, "type": "argument_list", "text": "(&ds1742_rtc_driver)", "parent": 1465, "children": [1468], "start_point": {"row": 264, "column": 34}, "end_point": {"row": 264, "column": 54}}, {"id": 1468, "type": "pointer_expression", "text": "&ds1742_rtc_driver", "parent": 1467, "children": [1469], "start_point": {"row": 264, "column": 35}, "end_point": {"row": 264, "column": 53}}, {"id": 1469, "type": "identifier", "text": "ds1742_rtc_driver", "parent": 1468, "children": [], "start_point": {"row": 264, "column": 36}, "end_point": {"row": 264, "column": 53}}, {"id": 1470, "type": "call_expression", "text": "module_init(ds1742_init)", "parent": null, "children": [1471, 1472], "start_point": {"row": 267, "column": 0}, "end_point": {"row": 267, "column": 24}}, {"id": 1471, "type": "identifier", "text": "module_init", "parent": 1470, "children": [], "start_point": {"row": 267, "column": 0}, "end_point": {"row": 267, "column": 11}}, {"id": 1472, "type": "argument_list", "text": "(ds1742_init)", "parent": 1470, "children": [1473], "start_point": {"row": 267, "column": 11}, "end_point": {"row": 267, "column": 24}}, {"id": 1473, "type": "identifier", "text": "ds1742_init", "parent": 1472, "children": [], "start_point": {"row": 267, "column": 12}, "end_point": {"row": 267, "column": 23}}, {"id": 1474, "type": "call_expression", "text": "module_exit(ds1742_exit)", "parent": null, "children": [1475, 1476], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 268, "column": 24}}, {"id": 1475, "type": "identifier", "text": "module_exit", "parent": 1474, "children": [], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 268, "column": 11}}, {"id": 1476, "type": "argument_list", "text": "(ds1742_exit)", "parent": 1474, "children": [1477], "start_point": {"row": 268, "column": 11}, "end_point": {"row": 268, "column": 24}}, {"id": 1477, "type": "identifier", "text": "ds1742_exit", "parent": 1476, "children": [], "start_point": {"row": 268, "column": 12}, "end_point": {"row": 268, "column": 23}}, {"id": 1478, "type": "call_expression", "text": "MODULE_AUTHOR(\"<NAME> <<EMAIL>>\")", "parent": null, "children": [1479, 1480], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 270, "column": 33}}, {"id": 1479, "type": "identifier", "text": "MODULE_AUTHOR", "parent": 1478, "children": [], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 270, "column": 13}}, {"id": 1480, "type": "argument_list", "text": "(\"<NAME> <<EMAIL>>\")", "parent": 1478, "children": [1481], "start_point": {"row": 270, "column": 13}, "end_point": {"row": 270, "column": 33}}, {"id": 1481, "type": "string_literal", "text": "\"<NAME> <<EMAIL>>\"", "parent": 1480, "children": [], "start_point": {"row": 270, "column": 14}, "end_point": {"row": 270, "column": 32}}, {"id": 1482, "type": "call_expression", "text": "MODULE_DESCRIPTION(\"Dallas DS1742 RTC driver\")", "parent": null, "children": [1483, 1484], "start_point": {"row": 271, "column": 0}, "end_point": {"row": 271, "column": 46}}, {"id": 1483, "type": "identifier", "text": "MODULE_DESCRIPTION", "parent": 1482, "children": [], "start_point": {"row": 271, "column": 0}, "end_point": {"row": 271, "column": 18}}, {"id": 1484, "type": "argument_list", "text": "(\"Dallas DS1742 RTC driver\")", "parent": 1482, "children": [1485], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 271, "column": 46}}, {"id": 1485, "type": "string_literal", "text": "\"Dallas DS1742 RTC driver\"", "parent": 1484, "children": [], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 45}}, {"id": 1486, "type": "call_expression", "text": "MODULE_LICENSE(\"GPL\")", "parent": null, "children": [1487, 1488], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 21}}, {"id": 1487, "type": "identifier", "text": "MODULE_LICENSE", "parent": 1486, "children": [], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 14}}, {"id": 1488, "type": "argument_list", "text": "(\"GPL\")", "parent": 1486, "children": [1489], "start_point": {"row": 272, "column": 14}, "end_point": {"row": 272, "column": 21}}, {"id": 1489, "type": "string_literal", "text": "\"GPL\"", "parent": 1488, "children": [], "start_point": {"row": 272, "column": 15}, "end_point": {"row": 272, "column": 20}}, {"id": 1490, "type": "call_expression", "text": "MODULE_VERSION(DRV_VERSION)", "parent": null, "children": [1491, 1492], "start_point": {"row": 273, "column": 0}, "end_point": {"row": 273, "column": 27}}, {"id": 1491, "type": "identifier", "text": "MODULE_VERSION", "parent": 1490, "children": [], "start_point": {"row": 273, "column": 0}, "end_point": {"row": 273, "column": 14}}, {"id": 1492, "type": "argument_list", "text": "(DRV_VERSION)", "parent": 1490, "children": [1493], "start_point": {"row": 273, "column": 14}, "end_point": {"row": 273, "column": 27}}, {"id": 1493, "type": "identifier", "text": "DRV_VERSION", "parent": 1492, "children": [], "start_point": {"row": 273, "column": 15}, "end_point": {"row": 273, "column": 26}}]}, "node_categories": {"declarations": {"functions": [136, 138, 346, 348, 657, 659, 770, 772, 921, 925, 1339, 1343, 1440, 1444, 1455, 1459], "variables": [99, 106, 113, 120, 123, 126, 131, 141, 148, 155, 168, 181, 193, 351, 358, 365, 378, 391, 403, 414, 639, 662, 669, 674, 677, 680, 700, 713, 725, 775, 782, 787, 790, 793, 813, 826, 838, 881, 928, 935, 942, 949, 955, 966, 977, 1346, 1353, 1404, 1447, 1462], "classes": [96, 97, 100, 101, 142, 143, 149, 150, 156, 157, 169, 170, 352, 353, 359, 360, 366, 367, 379, 380, 640, 641, 663, 664, 681, 682, 701, 702, 776, 777, 794, 795, 814, 815, 882, 883, 929, 930, 936, 937, 943, 944, 956, 957, 1347, 1348, 1354, 1355, 1405, 1406], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [164, 177, 190, 199, 202, 203, 204, 205, 212, 216, 220, 223, 226, 227, 232, 236, 239, 242, 243, 248, 252, 255, 256, 259, 263, 267, 270, 273, 276, 280, 283, 286, 289, 293, 296, 299, 302, 306, 309, 310, 313, 317, 321, 324, 326, 327, 330, 334, 337, 340, 374, 387, 400, 420, 421, 422, 427, 432, 437, 441, 448, 449, 452, 460, 463, 470, 473, 480, 483, 490, 491, 494, 502, 505, 512, 515, 522, 523, 526, 531, 535, 540, 544, 549, 553, 558, 562, 567, 571, 576, 580, 585, 589, 590, 597, 601, 602, 603, 608, 609, 618, 619, 620, 626, 632, 689, 692, 709, 722, 733, 734, 739, 742, 745, 746, 749, 753, 755, 759, 762, 765, 802, 805, 822, 835, 846, 847, 852, 855, 858, 859, 862, 865, 868, 870, 873, 876, 903, 986, 993, 994, 998, 1004, 1007, 1008, 1009, 1014, 1015, 1019, 1023, 1027, 1028, 1029, 1032, 1038, 1039, 1041, 1044, 1047, 1050, 1056, 1063, 1067, 1073, 1076, 1079, 1083, 1084, 1090, 1097, 1103, 1107, 1108, 1114, 1118, 1121, 1127, 1133, 1136, 1141, 1142, 1152, 1153, 1156, 1161, 1165, 1169, 1173, 1177, 1180, 1183, 1188, 1189, 1191, 1192, 1193, 1196, 1201, 1204, 1205, 1213, 1216, 1219, 1220, 1223, 1227, 1228, 1235, 1243, 1249, 1254, 1260, 1264, 1267, 1270, 1276, 1279, 1280, 1281, 1285, 1288, 1298, 1299, 1302, 1305, 1309, 1310, 1313, 1316, 1320, 1321, 1324, 1327, 1330, 1333, 1362, 1366, 1369, 1370, 1371, 1375, 1377, 1380, 1383, 1386, 1389, 1392, 1395, 1398, 1421, 1450, 1453, 1465, 1468, 1470, 1474, 1478, 1482, 1486, 1490], "assignments": [196, 431, 445, 457, 467, 477, 487, 499, 509, 519, 539, 548, 557, 566, 575, 584, 596, 729, 752, 842, 983, 1001, 1022, 1053, 1062, 1070, 1087, 1096, 1102, 1113, 1124, 1130, 1145, 1149, 1210, 1232, 1242, 1248, 1259, 1273], "loops": [728, 841], "conditionals": [26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 105, 109, 112, 116, 119, 122, 125, 127, 130, 132, 135, 139, 144, 147, 151, 154, 158, 162, 165, 167, 171, 175, 178, 180, 184, 188, 191, 192, 194, 195, 197, 200, 206, 207, 213, 215, 217, 219, 221, 224, 228, 229, 233, 235, 237, 240, 244, 245, 249, 251, 253, 257, 260, 261, 262, 264, 266, 268, 271, 274, 275, 277, 279, 281, 284, 287, 288, 290, 292, 294, 297, 300, 301, 303, 305, 307, 311, 314, 315, 316, 318, 320, 322, 325, 328, 329, 331, 333, 335, 338, 339, 341, 343, 349, 354, 357, 361, 364, 368, 372, 375, 377, 381, 385, 388, 390, 394, 398, 401, 402, 404, 407, 408, 409, 410, 411, 412, 413, 415, 418, 419, 423, 424, 426, 428, 433, 434, 436, 438, 440, 442, 444, 446, 450, 453, 455, 456, 458, 461, 464, 466, 468, 471, 474, 476, 478, 481, 484, 486, 488, 492, 495, 497, 498, 500, 503, 506, 508, 510, 513, 516, 518, 520, 524, 527, 529, 530, 532, 536, 538, 541, 542, 545, 547, 550, 551, 554, 556, 559, 560, 563, 565, 568, 569, 572, 574, 577, 578, 581, 583, 586, 587, 591, 593, 598, 599, 604, 606, 610, 612, 617, 621, 623, 627, 629, 633, 636, 642, 644, 649, 651, 654, 656, 660, 665, 668, 673, 675, 676, 679, 683, 687, 690, 693, 695, 696, 698, 699, 703, 707, 710, 712, 716, 720, 723, 724, 727, 730, 735, 740, 743, 744, 747, 750, 756, 760, 763, 766, 769, 773, 778, 781, 786, 788, 789, 792, 796, 800, 803, 806, 808, 809, 811, 812, 816, 820, 823, 825, 829, 833, 836, 837, 840, 843, 848, 853, 856, 857, 860, 863, 866, 871, 874, 877, 880, 884, 886, 891, 896, 901, 904, 905, 908, 910, 913, 915, 918, 920, 924, 926, 931, 934, 938, 941, 945, 948, 950, 953, 954, 958, 962, 969, 973, 980, 984, 987, 989, 990, 992, 996, 1000, 1002, 1005, 1011, 1012, 1013, 1017, 1021, 1024, 1025, 1030, 1033, 1034, 1037, 1042, 1045, 1046, 1048, 1049, 1051, 1052, 1054, 1058, 1061, 1064, 1065, 1068, 1069, 1071, 1074, 1077, 1078, 1080, 1081, 1082, 1086, 1088, 1092, 1095, 1098, 1099, 1101, 1104, 1105, 1109, 1110, 1112, 1115, 1116, 1119, 1122, 1123, 1125, 1128, 1129, 1131, 1134, 1137, 1139, 1140, 1143, 1144, 1146, 1148, 1150, 1154, 1157, 1159, 1160, 1162, 1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, 1181, 1182, 1184, 1186, 1187, 1194, 1197, 1199, 1200, 1202, 1206, 1207, 1211, 1214, 1217, 1218, 1221, 1222, 1224, 1225, 1226, 1229, 1231, 1233, 1236, 1238, 1241, 1244, 1245, 1247, 1250, 1251, 1253, 1255, 1257, 1258, 1261, 1262, 1265, 1268, 1269, 1271, 1272, 1274, 1277, 1282, 1283, 1284, 1286, 1287, 1289, 1292, 1296, 1297, 1300, 1301, 1303, 1306, 1307, 1308, 1311, 1312, 1314, 1317, 1318, 1319, 1322, 1323, 1325, 1328, 1329, 1331, 1332, 1334, 1336, 1338, 1342, 1344, 1349, 1352, 1356, 1360, 1363, 1365, 1367, 1372, 1373, 1374, 1376, 1378, 1381, 1382, 1384, 1387, 1388, 1390, 1393, 1394, 1396, 1397, 1399, 1401, 1407, 1409, 1414, 1416, 1419, 1422, 1424, 1427, 1432, 1437, 1439, 1441, 1443, 1445, 1451, 1454, 1456, 1458, 1460, 1466, 1469, 1471, 1473, 1475, 1477, 1479, 1483, 1487, 1491, 1493], "returns": [344, 637, 768, 879, 997, 1018, 1293, 1337, 1402, 1449, 1464], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 209, 211, 231, 247, 345, 430, 534, 595, 614, 616, 625, 630, 635, 638, 732, 737, 845, 850, 898, 982, 991, 1036, 1208, 1294, 1403, 1434, 1481, 1485, 1489], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [648, 653, 890, 895, 900, 907, 912, 917, 1413, 1418, 1426, 1431, 1436]}}, "cross_language_map": {"function_declarations": [{"node_id": 136, "universal_type": "function", "name": "ds1742_rtc_set_time", "text_snippet": "static int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *p"}, {"node_id": 138, "universal_type": "function", "name": "rtc_time", "text_snippet": "ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)"}, {"node_id": 346, "universal_type": "function", "name": "ds1742_rtc_read_time", "text_snippet": "static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *"}, {"node_id": 348, "universal_type": "function", "name": "rtc_time", "text_snippet": "ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)"}, {"node_id": 657, "universal_type": "function", "name": "platform_device", "text_snippet": "static ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n\ts"}, {"node_id": 659, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_nvram_read(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)"}, {"node_id": 770, "universal_type": "function", "name": "platform_device", "text_snippet": "static ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n"}, {"node_id": 772, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_nvram_write(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)"}, {"node_id": 921, "universal_type": "function", "name": "__devinit", "text_snippet": "static int __devinit ds1742_rtc_probe(struct platform_device *pdev)\n{\n\tstruct rtc_device *rtc;\n\tstru"}, {"node_id": 925, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_rtc_probe(struct platform_device *pdev)"}, {"node_id": 1339, "universal_type": "function", "name": "__devexit", "text_snippet": "static int __devexit ds1742_rtc_remove(struct platform_device *pdev)\n{\n\tstruct rtc_plat_data *pdata "}, {"node_id": 1343, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_rtc_remove(struct platform_device *pdev)"}, {"node_id": 1440, "universal_type": "function", "name": "ds1742_init", "text_snippet": "static __init int ds1742_init(void)\n{\n\treturn platform_driver_register(&ds1742_rtc_driver);\n}"}, {"node_id": 1444, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_init(void)"}, {"node_id": 1455, "universal_type": "function", "name": "ds1742_exit", "text_snippet": "static __exit void ds1742_exit(void)\n{\n\treturn platform_driver_unregister(&ds1742_rtc_driver);\n}"}, {"node_id": 1459, "universal_type": "function", "name": "unknown", "text_snippet": "ds1742_exit(void)"}], "class_declarations": [{"node_id": 96, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data {\n\tstruct rtc_device *rtc;\n\tvoid __iomem *ioaddr_nvram;\n\tvoid __iomem *ioaddr_r"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 100, "universal_type": "class", "name": "rtc_device", "text_snippet": "struct rtc_device"}, {"node_id": 101, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 142, "universal_type": "class", "name": "device", "text_snippet": "struct device"}, {"node_id": 143, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 149, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 156, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 157, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 169, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 170, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 352, "universal_type": "class", "name": "device", "text_snippet": "struct device"}, {"node_id": 353, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 359, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 360, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 366, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 367, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 379, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 380, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 640, "universal_type": "class", "name": "rtc_class_ops", "text_snippet": "struct rtc_class_ops"}, {"node_id": 641, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 663, "universal_type": "class", "name": "kobject", "text_snippet": "struct kobject"}, {"node_id": 664, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 681, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 682, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 701, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 702, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 776, "universal_type": "class", "name": "kobject", "text_snippet": "struct kobject"}, {"node_id": 777, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 794, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 795, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 814, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 815, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 882, "universal_type": "class", "name": "bin_attribute", "text_snippet": "struct bin_attribute"}, {"node_id": 883, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 929, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 930, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 936, "universal_type": "class", "name": "rtc_device", "text_snippet": "struct rtc_device"}, {"node_id": 937, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 943, "universal_type": "class", "name": "resource", "text_snippet": "struct resource"}, {"node_id": 944, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 956, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 957, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1347, "universal_type": "class", "name": "platform_device", "text_snippet": "struct platform_device"}, {"node_id": 1348, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1354, "universal_type": "class", "name": "rtc_plat_data", "text_snippet": "struct rtc_plat_data"}, {"node_id": 1355, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1405, "universal_type": "class", "name": "platform_driver", "text_snippet": "struct platform_driver"}, {"node_id": 1406, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/bcd.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/init.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/kernel.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/delay.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/jiffies.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <linux/rtc.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <linux/platform_device.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <linux/io.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/*\n * An rtc driver for the Dallas DS1742\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n *\n * Copyright (C) 2006 <NAME> <<EMAIL>>\n * - nvram size determined from resource\n * - this ds1742 driver now supports ds1743.\n */\n\n#include <linux/bcd.h>\n#include <linux/init.h>\n#include <linux/kernel.h>\n#include <linux/delay.h>\n#include <linux/jiffies.h>\n#include <linux/rtc.h>\n#include <linux/platform_device.h>\n#include <linux/io.h>\n\n#define DRV_VERSION \"0.3\"\n\n#define RTC_SIZE\t\t8\n\n#define RTC_CONTROL\t\t0\n#define RTC_CENTURY\t\t0\n#define RTC_SECONDS\t\t1\n#define RTC_MINUTES\t\t2\n#define RTC_HOURS\t\t3\n#define RTC_DAY\t\t\t4\n#define RTC_DATE\t\t5\n#define RTC_MONTH\t\t6\n#define RTC_YEAR\t\t7\n\n#define RTC_CENTURY_MASK\t0x3f\n#define RTC_SECONDS_MASK\t0x7f\n#define RTC_DAY_MASK\t\t0x07\n\n/* Bits in the Control/Century register */\n#define RTC_WRITE\t\t0x80\n#define RTC_READ\t\t0x40\n\n/* Bits in the Seconds register */\n#define RTC_STOP\t\t0x80\n\n/* Bits in the Day register */\n#define RTC_BATT_FLAG\t\t0x80\n\nstruct rtc_plat_data {\n\tstruct rtc_device *rtc;\n\tvoid __iomem *ioaddr_nvram;\n\tvoid __iomem *ioaddr_rtc;\n\tsize_t size_nvram;\n\tsize_t size;\n\tunsigned long baseaddr;\n\tunsigned long last_jiffies;\n};\n\nstatic int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *pdev = to_platform_device(dev);\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_rtc;\n\tu8 century;\n\n\tcentury = BIN2BCD((tm->tm_year + 1900) / 100);\n\n\twriteb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\n\twriteb(BIN2BCD(tm->tm_year % 100), ioaddr + RTC_YEAR);\n\twriteb(BIN2BCD(tm->tm_mon + 1), ioaddr + RTC_MONTH);\n\twriteb(BIN2BCD(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY);\n\twriteb(BIN2BCD(tm->tm_mday), ioaddr + RTC_DATE);\n\twriteb(BIN2BCD(tm->tm_hour), ioaddr + RTC_HOURS);\n\twriteb(BIN2BCD(tm->tm_min), ioaddr + RTC_MINUTES);\n\twriteb(BIN2BCD(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS);\n\n\t/* RTC_CENTURY and RTC_CONTROL share same register */\n\twriteb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY);\n\twriteb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n\treturn 0;\n}\n\nstatic int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)\n{\n\tstruct platform_device *pdev = to_platform_device(dev);\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_rtc;\n\tunsigned int year, month, day, hour, minute, second, week;\n\tunsigned int century;\n\n\t/* give enough time to update RTC in case of continuous read */\n\tif (pdata->last_jiffies == jiffies)\n\t\tmsleep(1);\n\tpdata->last_jiffies = jiffies;\n\twriteb(RTC_READ, ioaddr + RTC_CONTROL);\n\tsecond = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK;\n\tminute = readb(ioaddr + RTC_MINUTES);\n\thour = readb(ioaddr + RTC_HOURS);\n\tday = readb(ioaddr + RTC_DATE);\n\tweek = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK;\n\tmonth = readb(ioaddr + RTC_MONTH);\n\tyear = readb(ioaddr + RTC_YEAR);\n\tcentury = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n\twriteb(0, ioaddr + RTC_CONTROL);\n\ttm->tm_sec = BCD2BIN(second);\n\ttm->tm_min = BCD2BIN(minute);\n\ttm->tm_hour = BCD2BIN(hour);\n\ttm->tm_mday = BCD2BIN(day);\n\ttm->tm_wday = BCD2BIN(week);\n\ttm->tm_mon = BCD2BIN(month) - 1;\n\t/* year is 1900 + tm->tm_year */\n\ttm->tm_year = BCD2BIN(year) + BCD2BIN(century) * 100 - 1900;\n\n\tif (rtc_valid_tm(tm) < 0) {\n\t\tdev_err(dev, \"retrieved date/time is not valid.\\n\");\n\t\trtc_time_to_tm(0, tm);\n\t}\n\treturn 0;\n}\n\nstatic const struct rtc_class_ops ds1742_rtc_ops = {\n\t.read_time\t= ds1742_rtc_read_time,\n\t.set_time\t= ds1742_rtc_set_time,\n};\n\nstatic ssize_t ds1742_nvram_read(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n\tstruct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_nvram;\n\tssize_t count;\n\n\tfor (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\t*buf++ = readb(ioaddr + pos++);\n\treturn count;\n}\n\nstatic ssize_t ds1742_nvram_write(struct kobject *kobj, char *buf,\n\t\t\t\t loff_t pos, size_t size)\n{\n\tstruct platform_device *pdev =\n\t\tto_platform_device(container_of(kobj, struct device, kobj));\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\tvoid __iomem *ioaddr = pdata->ioaddr_nvram;\n\tssize_t count;\n\n\tfor (count = 0; size > 0 && pos < pdata->size_nvram; count++, size--)\n\t\twriteb(*buf++, ioaddr + pos++);\n\treturn count;\n}\n\nstatic struct bin_attribute ds1742_nvram_attr = {\n\t.attr = {\n\t\t.name = \"nvram\",\n\t\t.mode = S_IRUGO | S_IWUGO,\n\t\t.owner = THIS_MODULE,\n\t},\n\t.read = ds1742_nvram_read,\n\t.write = ds1742_nvram_write,\n};\n\nstatic int __devinit ds1742_rtc_probe(struct platform_device *pdev)\n{\n\tstruct rtc_device *rtc;\n\tstruct resource *res;\n\tunsigned int cen, sec;\n\tstruct rtc_plat_data *pdata = NULL;\n\tvoid __iomem *ioaddr = NULL;\n\tint ret = 0;\n\n\tres = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n\tif (!res)\n\t\treturn -ENODEV;\n\tpdata = kzalloc(sizeof(*pdata), GFP_KERNEL);\n\tif (!pdata)\n\t\treturn -ENOMEM;\n\tpdata->size = res->end - res->start + 1;\n\tif (!request_mem_region(res->start, pdata->size, pdev->name)) {\n\t\tret = -EBUSY;\n\t\tgoto out;\n\t}\n\tpdata->baseaddr = res->start;\n\tioaddr = ioremap(pdata->baseaddr, pdata->size);\n\tif (!ioaddr) {\n\t\tret = -ENOMEM;\n\t\tgoto out;\n\t}\n\tpdata->ioaddr_nvram = ioaddr;\n\tpdata->size_nvram = pdata->size - RTC_SIZE;\n\tpdata->ioaddr_rtc = ioaddr + pdata->size_nvram;\n\n\t/* turn RTC on if it was not on */\n\tioaddr = pdata->ioaddr_rtc;\n\tsec = readb(ioaddr + RTC_SECONDS);\n\tif (sec & RTC_STOP) {\n\t\tsec &= RTC_SECONDS_MASK;\n\t\tcen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK;\n\t\twriteb(RTC_WRITE, ioaddr + RTC_CONTROL);\n\t\twriteb(sec, ioaddr + RTC_SECONDS);\n\t\twriteb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL);\n\t}\n\tif (!(readb(ioaddr + RTC_DAY) & RTC_BATT_FLAG))\n\t\tdev_warn(&pdev->dev, \"voltage-low detected.\\n\");\n\n\trtc = rtc_device_register(pdev->name, &pdev->dev,\n\t\t\t\t &ds1742_rtc_ops, THIS_MODULE);\n\tif (IS_ERR(rtc)) {\n\t\tret = PTR_ERR(rtc);\n\t\tgoto out;\n\t}\n\tpdata->rtc = rtc;\n\tpdata->last_jiffies = jiffies;\n\tplatform_set_drvdata(pdev, pdata);\n\tds1742_nvram_attr.size = max(ds1742_nvram_attr.size,\n\t\t\t\t pdata->size_nvram);\n\tret = sysfs_create_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n\tif (ret)\n\t\tgoto out;\n\treturn 0;\n out:\n\tif (pdata->rtc)\n\t\trtc_device_unregister(pdata->rtc);\n\tif (pdata->ioaddr_nvram)\n\t\tiounmap(pdata->ioaddr_nvram);\n\tif (pdata->baseaddr)\n\t\trelease_mem_region(pdata->baseaddr, pdata->size);\n\tkfree(pdata);\n\treturn ret;\n}\n\nstatic int __devexit ds1742_rtc_remove(struct platform_device *pdev)\n{\n\tstruct rtc_plat_data *pdata = platform_get_drvdata(pdev);\n\n\tsysfs_remove_bin_file(&pdev->dev.kobj, &ds1742_nvram_attr);\n\trtc_device_unregister(pdata->rtc);\n\tiounmap(pdata->ioaddr_nvram);\n\trelease_mem_region(pdata->baseaddr, pdata->size);\n\tkfree(pdata);\n\treturn 0;\n}\n\nstatic struct platform_driver ds1742_rtc_driver = {\n\t.probe\t\t= ds1742_rtc_probe,\n\t.remove\t\t= __devexit_p(ds1742_rtc_remove),\n\t.driver\t\t= {\n\t\t.name\t= \"ds1742\",\n\t\t.owner\t= THIS_MODULE,\n\t},\n};\n\nstatic __init int ds1742_init(void)\n{\n\treturn platform_driver_register(&ds1742_rtc_driver);\n}\n\nstatic __exit void ds1742_exit(void)\n{\n\treturn platform_driver_unregister(&ds1742_rtc_driver);\n}\n\nmodule_init(ds1742_init);\nmodule_exit(ds1742_exit);\n\nMODULE_AUTHOR(\"<NAME> <<EMAIL>>\");\nMODULE_DESCRIPTION(\"Dallas DS1742 RTC driver\");\nMODULE_LICENSE(\"GPL\");\nMODULE_VERSION(DRV_VERSION);\n"}
184
c
/* * Icon configuration file for Linux v2 on Athlon64, Solaris Studio compilers */ #define UNIX 1 #define LoadFunc /* no SysOpt: Linux getopt() is POSIX-compatible only if an envmt var is set */ /* CPU architecture */ #define IntBits 32 #define WordBits 64 #define Double #define StackAlign 16 #define NEED_UTIME /* a non-default datatype for SQLBindCol's 6th parameter */ #define SQL_LENORIND SQLLEN #define NoVFork 1 /* * This turns out to be a sore spot: needed on some, an error on others. * Want this to be a simple #ifdef, but the use of enums instead of #define's * means we can't tell which ones are defined. Boo! */ #if 0 #define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP #endif
29.61
23
(translation_unit) "/*\n * Icon configuration file for Linux v2 on Athlon64, Solaris Studio compilers\n */\n\n#define UNIX 1\n#define LoadFunc\n/* no SysOpt: Linux getopt() is POSIX-compatible only if an envmt var is set */\n\n/* CPU architecture */\n#define IntBits 32\n#define WordBits 64\n#define Double\n#define StackAlign 16\n#define NEED_UTIME\n/* a non-default datatype for SQLBindCol's 6th parameter */\n#define SQL_LENORIND SQLLEN\n\n#define NoVFork 1\n\n/*\n * This turns out to be a sore spot: needed on some, an error on others.\n * Want this to be a simple #ifdef, but the use of enums instead of #define's\n * means we can't tell which ones are defined. Boo!\n */\n#if 0\n#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n#endif\n" (comment) "/*\n * Icon configuration file for Linux v2 on Athlon64, Solaris Studio compilers\n */" (preproc_def) "#define UNIX 1\n" (#define) "#define" (identifier) "UNIX" (preproc_arg) "1" (preproc_def) "#define LoadFunc\n" (#define) "#define" (identifier) "LoadFunc" (comment) "/* no SysOpt: Linux getopt() is POSIX-compatible only if an envmt var is set */" (comment) "/* CPU architecture */" (preproc_def) "#define IntBits 32\n" (#define) "#define" (identifier) "IntBits" (preproc_arg) "32" (preproc_def) "#define WordBits 64\n" (#define) "#define" (identifier) "WordBits" (preproc_arg) "64" (preproc_def) "#define Double\n" (#define) "#define" (identifier) "Double" (preproc_def) "#define StackAlign 16\n" (#define) "#define" (identifier) "StackAlign" (preproc_arg) "16" (preproc_def) "#define NEED_UTIME\n" (#define) "#define" (identifier) "NEED_UTIME" (comment) "/* a non-default datatype for SQLBindCol's 6th parameter */" (preproc_def) "#define SQL_LENORIND SQLLEN\n" (#define) "#define" (identifier) "SQL_LENORIND" (preproc_arg) "SQLLEN" (preproc_def) "#define NoVFork 1\n" (#define) "#define" (identifier) "NoVFork" (preproc_arg) "1" (comment) "/*\n * This turns out to be a sore spot: needed on some, an error on others.\n * Want this to be a simple #ifdef, but the use of enums instead of #define's\n * means we can't tell which ones are defined. Boo!\n */" (preproc_if) "#if 0\n#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n#endif" (#if) "#if" (number_literal) "0" ( ) "\n" (preproc_def) "#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n" (#define) "#define" (identifier) "PTHREAD_MUTEX_RECURSIVE" (preproc_arg) "PTHREAD_MUTEX_RECURSIVE_NP" (#endif) "#endif"
48
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.61, "nodes": 42, "errors": 0, "source_hash": "a48656b36b7f8d7320977cd6877f7ff62f57c7fd0c439f73947b8d0da2f7a69b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define UNIX 1\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "UNIX", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 3, "type": "preproc_arg", "text": "1", "parent": 0, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 14}}, {"id": 4, "type": "preproc_def", "text": "#define LoadFunc\n", "parent": null, "children": [5, 6], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 6, "type": "identifier", "text": "LoadFunc", "parent": 4, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 16}}, {"id": 7, "type": "preproc_def", "text": "#define IntBits 32\n", "parent": null, "children": [8, 9, 10], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 9, "type": "identifier", "text": "IntBits", "parent": 7, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 10, "type": "preproc_arg", "text": "32", "parent": 7, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 18}}, {"id": 11, "type": "preproc_def", "text": "#define WordBits 64\n", "parent": null, "children": [12, 13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 13, "type": "identifier", "text": "WordBits", "parent": 11, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 16}}, {"id": 14, "type": "preproc_arg", "text": "64", "parent": 11, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 19}}, {"id": 15, "type": "preproc_def", "text": "#define Double\n", "parent": null, "children": [16, 17], "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": "Double", "parent": 15, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 18, "type": "preproc_def", "text": "#define StackAlign 16\n", "parent": null, "children": [19, 20, 21], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 20, "type": "identifier", "text": "StackAlign", "parent": 18, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 18}}, {"id": 21, "type": "preproc_arg", "text": "16", "parent": 18, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 21}}, {"id": 22, "type": "preproc_def", "text": "#define NEED_UTIME\n", "parent": null, "children": [23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 24, "type": "identifier", "text": "NEED_UTIME", "parent": 22, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 18}}, {"id": 25, "type": "preproc_def", "text": "#define SQL_LENORIND SQLLEN\n", "parent": null, "children": [26, 27, 28], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 27, "type": "identifier", "text": "SQL_LENORIND", "parent": 25, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 20}}, {"id": 28, "type": "preproc_arg", "text": "SQLLEN", "parent": 25, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 27}}, {"id": 29, "type": "preproc_def", "text": "#define NoVFork 1\n", "parent": null, "children": [30, 31, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 31, "type": "identifier", "text": "NoVFork", "parent": 29, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 15}}, {"id": 32, "type": "preproc_arg", "text": "1", "parent": 29, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 17}}, {"id": 33, "type": "preproc_if", "text": "#if 0\n#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n#endif", "parent": null, "children": [34, 35, 36, 37, 41], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 34, "type": "#if", "text": "#if", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 3}}, {"id": 35, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 5}}, {"id": 36, "type": "\n", "text": "\n", "parent": 33, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 25, "column": 0}}, {"id": 37, "type": "preproc_def", "text": "#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n", "parent": 33, "children": [38, 39, 40], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 39, "type": "identifier", "text": "PTHREAD_MUTEX_RECURSIVE", "parent": 37, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 31}}, {"id": 40, "type": "preproc_arg", "text": "PTHREAD_MUTEX_RECURSIVE_NP", "parent": 37, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 58}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 33, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 9, 13, 17, 20, 24, 27, 31, 33, 34, 39, 41], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [35], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * Icon configuration file for Linux v2 on Athlon64, Solaris Studio compilers\n */\n\n#define UNIX 1\n#define LoadFunc\n/* no SysOpt: Linux getopt() is POSIX-compatible only if an envmt var is set */\n\n/* CPU architecture */\n#define IntBits 32\n#define WordBits 64\n#define Double\n#define StackAlign 16\n#define NEED_UTIME\n/* a non-default datatype for SQLBindCol's 6th parameter */\n#define SQL_LENORIND SQLLEN\n\n#define NoVFork 1\n\n/*\n * This turns out to be a sore spot: needed on some, an error on others.\n * Want this to be a simple #ifdef, but the use of enums instead of #define's\n * means we can't tell which ones are defined. Boo!\n */\n#if 0\n#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP\n#endif\n"}
185
c
/* * drivers/video/tegra/dc/mipi_cal.h * * Copyright (c) 2012-2013, NVIDIA CORPORATION, All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__ #define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__ #include "mipi_cal_regs.h" struct tegra_mipi_cal { struct tegra_dc *dc; struct resource *res; struct resource *base_res; struct clk *clk; struct clk *fixed_clk; void __iomem *base; struct mutex lock; }; #ifdef CONFIG_TEGRA_MIPI_CAL static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal) { BUG_ON(IS_ERR_OR_NULL(mipi_cal)); clk_prepare_enable(mipi_cal->fixed_clk); clk_prepare_enable(mipi_cal->clk); } static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal) { BUG_ON(IS_ERR_OR_NULL(mipi_cal)); clk_disable_unprepare(mipi_cal->clk); clk_disable_unprepare(mipi_cal->fixed_clk); } /* reg is word offset */ static inline unsigned long tegra_mipi_cal_read( struct tegra_mipi_cal *mipi_cal, unsigned long reg) { BUG_ON(IS_ERR_OR_NULL(mipi_cal) || !tegra_is_clk_enabled(mipi_cal->clk)); return readl(mipi_cal->base + reg); } /* reg is word offset */ static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal, unsigned long val, unsigned long reg) { BUG_ON(IS_ERR_OR_NULL(mipi_cal) || !tegra_is_clk_enabled(mipi_cal->clk)); writel(val, mipi_cal->base + reg); } extern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc); extern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal); extern void tegra_mipi_cal_destroy(struct tegra_dc *dc); #else static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal) { /* dummy */ } static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal) { /* dummy */ } static inline unsigned long tegra_mipi_cal_read( struct tegra_mipi_cal *mipi_cal, unsigned long reg) { /* dummy */ return 0; } static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal, unsigned long val, unsigned long reg) { /* dummy */ } struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc) { /* dummy */ return NULL; } int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal) { /* dummy */ return 0; } void tegra_mipi_cal_destroy(struct tegra_dc *dc) { /* dummy */ } #endif #endif
26.98
99
(translation_unit) "/*\n * drivers/video/tegra/dc/mipi_cal.h\n *\n * Copyright (c) 2012-2013, NVIDIA CORPORATION, All rights reserved.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those terms.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */\n\n#ifndef __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n\n#include "mipi_cal_regs.h"\n\nstruct tegra_mipi_cal {\n struct tegra_dc *dc;\n struct resource *res;\n struct resource *base_res;\n struct clk *clk;\n struct clk *fixed_clk;\n void __iomem *base;\n struct mutex lock;\n};\n\n#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_prepare_enable(mipi_cal->fixed_clk);\n clk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_disable_unprepare(mipi_cal->clk);\n clk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n return readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n writel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n /* dummy */\n return 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n /* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n /* dummy */\n return NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n return 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n /* dummy */\n}\n#endif\n#endif\n" (comment) "/*\n * drivers/video/tegra/dc/mipi_cal.h\n *\n * Copyright (c) 2012-2013, NVIDIA CORPORATION, All rights reserved.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those terms.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */" (preproc_ifdef) "#ifndef __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n\n#include "mipi_cal_regs.h"\n\nstruct tegra_mipi_cal {\n struct tegra_dc *dc;\n struct resource *res;\n struct resource *base_res;\n struct clk *clk;\n struct clk *fixed_clk;\n void __iomem *base;\n struct mutex lock;\n};\n\n#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_prepare_enable(mipi_cal->fixed_clk);\n clk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_disable_unprepare(mipi_cal->clk);\n clk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n return readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n writel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n /* dummy */\n return 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n /* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n /* dummy */\n return NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n return 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n /* dummy */\n}\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "__DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__" (preproc_def) "#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n" (#define) "#define" (identifier) "__DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__" (preproc_include) "#include "mipi_cal_regs.h"\n" (#include) "#include" (string_literal) ""mipi_cal_regs.h"" (") """ (string_content) "mipi_cal_regs.h" (") """ (struct_specifier) "struct tegra_mipi_cal {\n struct tegra_dc *dc;\n struct resource *res;\n struct resource *base_res;\n struct clk *clk;\n struct clk *fixed_clk;\n void __iomem *base;\n struct mutex lock;\n}" (struct) "struct" (type_identifier) "tegra_mipi_cal" (field_declaration_list) "{\n struct tegra_dc *dc;\n struct resource *res;\n struct resource *base_res;\n struct clk *clk;\n struct clk *fixed_clk;\n void __iomem *base;\n struct mutex lock;\n}" ({) "{" (field_declaration) "struct tegra_dc *dc;" (struct_specifier) "struct tegra_dc" (struct) "struct" (type_identifier) "tegra_dc" (pointer_declarator) "*dc" (*) "*" (field_identifier) "dc" (;) ";" (field_declaration) "struct resource *res;" (struct_specifier) "struct resource" (struct) "struct" (type_identifier) "resource" (pointer_declarator) "*res" (*) "*" (field_identifier) "res" (;) ";" (field_declaration) "struct resource *base_res;" (struct_specifier) "struct resource" (struct) "struct" (type_identifier) "resource" (pointer_declarator) "*base_res" (*) "*" (field_identifier) "base_res" (;) ";" (field_declaration) "struct clk *clk;" (struct_specifier) "struct clk" (struct) "struct" (type_identifier) "clk" (pointer_declarator) "*clk" (*) "*" (field_identifier) "clk" (;) ";" (field_declaration) "struct clk *fixed_clk;" (struct_specifier) "struct clk" (struct) "struct" (type_identifier) "clk" (pointer_declarator) "*fixed_clk" (*) "*" (field_identifier) "fixed_clk" (;) ";" (field_declaration) "void __iomem *base;" (primitive_type) "void" (ERROR) "__iomem" (field_identifier) "__iomem" (pointer_declarator) "*base" (*) "*" (field_identifier) "base" (;) ";" (field_declaration) "struct mutex lock;" (struct_specifier) "struct mutex" (struct) "struct" (type_identifier) "mutex" (field_identifier) "lock" (;) ";" (}) "}" (;) ";" (preproc_ifdef) "#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_prepare_enable(mipi_cal->fixed_clk);\n clk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_disable_unprepare(mipi_cal->clk);\n clk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n return readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n writel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n /* dummy */\n return 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n /* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n /* dummy */\n return NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n return 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n /* dummy */\n}\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_TEGRA_MIPI_CAL" (function_definition) "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_prepare_enable(mipi_cal->fixed_clk);\n clk_prepare_enable(mipi_cal->clk);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_clk_enable" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (compound_statement) "{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_prepare_enable(mipi_cal->fixed_clk);\n clk_prepare_enable(mipi_cal->clk);\n}" ({) "{" (expression_statement) "BUG_ON(IS_ERR_OR_NULL(mipi_cal));" (call_expression) "BUG_ON(IS_ERR_OR_NULL(mipi_cal))" (identifier) "BUG_ON" (argument_list) "(IS_ERR_OR_NULL(mipi_cal))" (() "(" (call_expression) "IS_ERR_OR_NULL(mipi_cal)" (identifier) "IS_ERR_OR_NULL" (argument_list) "(mipi_cal)" (() "(" (identifier) "mipi_cal" ()) ")" ()) ")" (;) ";" (expression_statement) "clk_prepare_enable(mipi_cal->fixed_clk);" (call_expression) "clk_prepare_enable(mipi_cal->fixed_clk)" (identifier) "clk_prepare_enable" (argument_list) "(mipi_cal->fixed_clk)" (() "(" (field_expression) "mipi_cal->fixed_clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "fixed_clk" ()) ")" (;) ";" (expression_statement) "clk_prepare_enable(mipi_cal->clk);" (call_expression) "clk_prepare_enable(mipi_cal->clk)" (identifier) "clk_prepare_enable" (argument_list) "(mipi_cal->clk)" (() "(" (field_expression) "mipi_cal->clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "clk" ()) ")" (;) ";" (}) "}" (function_definition) "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_disable_unprepare(mipi_cal->clk);\n clk_disable_unprepare(mipi_cal->fixed_clk);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_clk_disable" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (compound_statement) "{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal));\n clk_disable_unprepare(mipi_cal->clk);\n clk_disable_unprepare(mipi_cal->fixed_clk);\n}" ({) "{" (expression_statement) "BUG_ON(IS_ERR_OR_NULL(mipi_cal));" (call_expression) "BUG_ON(IS_ERR_OR_NULL(mipi_cal))" (identifier) "BUG_ON" (argument_list) "(IS_ERR_OR_NULL(mipi_cal))" (() "(" (call_expression) "IS_ERR_OR_NULL(mipi_cal)" (identifier) "IS_ERR_OR_NULL" (argument_list) "(mipi_cal)" (() "(" (identifier) "mipi_cal" ()) ")" ()) ")" (;) ";" (expression_statement) "clk_disable_unprepare(mipi_cal->clk);" (call_expression) "clk_disable_unprepare(mipi_cal->clk)" (identifier) "clk_disable_unprepare" (argument_list) "(mipi_cal->clk)" (() "(" (field_expression) "mipi_cal->clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "clk" ()) ")" (;) ";" (expression_statement) "clk_disable_unprepare(mipi_cal->fixed_clk);" (call_expression) "clk_disable_unprepare(mipi_cal->fixed_clk)" (identifier) "clk_disable_unprepare" (argument_list) "(mipi_cal->fixed_clk)" (() "(" (field_expression) "mipi_cal->fixed_clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "fixed_clk" ()) ")" (;) ";" (}) "}" (comment) "/* reg is word offset */" (function_definition) "static inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n return readl(mipi_cal->base + reg);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (function_declarator) "tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)" (identifier) "tegra_mipi_cal_read" (parameter_list) "(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" (,) "," (parameter_declaration) "unsigned long reg" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "reg" ()) ")" (compound_statement) "{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n return readl(mipi_cal->base + reg);\n}" ({) "{" (expression_statement) "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));" (call_expression) "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk))" (identifier) "BUG_ON" (argument_list) "(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk))" (() "(" (binary_expression) "IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk)" (call_expression) "IS_ERR_OR_NULL(mipi_cal)" (identifier) "IS_ERR_OR_NULL" (argument_list) "(mipi_cal)" (() "(" (identifier) "mipi_cal" ()) ")" (||) "||" (unary_expression) "!tegra_is_clk_enabled(mipi_cal->clk)" (!) "!" (call_expression) "tegra_is_clk_enabled(mipi_cal->clk)" (identifier) "tegra_is_clk_enabled" (argument_list) "(mipi_cal->clk)" (() "(" (field_expression) "mipi_cal->clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "clk" ()) ")" ()) ")" (;) ";" (return_statement) "return readl(mipi_cal->base + reg);" (return) "return" (call_expression) "readl(mipi_cal->base + reg)" (identifier) "readl" (argument_list) "(mipi_cal->base + reg)" (() "(" (binary_expression) "mipi_cal->base + reg" (field_expression) "mipi_cal->base" (identifier) "mipi_cal" (->) "->" (field_identifier) "base" (+) "+" (identifier) "reg" ()) ")" (;) ";" (}) "}" (comment) "/* reg is word offset */" (function_definition) "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n writel(val, mipi_cal->base + reg);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)" (identifier) "tegra_mipi_cal_write" (parameter_list) "(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" (,) "," (parameter_declaration) "unsigned long val" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "val" (,) "," (parameter_declaration) "unsigned long reg" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "reg" ()) ")" (compound_statement) "{\n BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));\n writel(val, mipi_cal->base + reg);\n}" ({) "{" (expression_statement) "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk));" (call_expression) "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk))" (identifier) "BUG_ON" (argument_list) "(IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk))" (() "(" (binary_expression) "IS_ERR_OR_NULL(mipi_cal) ||\n !tegra_is_clk_enabled(mipi_cal->clk)" (call_expression) "IS_ERR_OR_NULL(mipi_cal)" (identifier) "IS_ERR_OR_NULL" (argument_list) "(mipi_cal)" (() "(" (identifier) "mipi_cal" ()) ")" (||) "||" (unary_expression) "!tegra_is_clk_enabled(mipi_cal->clk)" (!) "!" (call_expression) "tegra_is_clk_enabled(mipi_cal->clk)" (identifier) "tegra_is_clk_enabled" (argument_list) "(mipi_cal->clk)" (() "(" (field_expression) "mipi_cal->clk" (identifier) "mipi_cal" (->) "->" (field_identifier) "clk" ()) ")" ()) ")" (;) ";" (expression_statement) "writel(val, mipi_cal->base + reg);" (call_expression) "writel(val, mipi_cal->base + reg)" (identifier) "writel" (argument_list) "(val, mipi_cal->base + reg)" (() "(" (identifier) "val" (,) "," (binary_expression) "mipi_cal->base + reg" (field_expression) "mipi_cal->base" (identifier) "mipi_cal" (->) "->" (field_identifier) "base" (+) "+" (identifier) "reg" ()) ")" (;) ";" (}) "}" (declaration) "extern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*tegra_mipi_cal_init_sw(struct tegra_dc *dc)" (*) "*" (function_declarator) "tegra_mipi_cal_init_sw(struct tegra_dc *dc)" (identifier) "tegra_mipi_cal_init_sw" (parameter_list) "(struct tegra_dc *dc)" (() "(" (parameter_declaration) "struct tegra_dc *dc" (struct_specifier) "struct tegra_dc" (struct) "struct" (type_identifier) "tegra_dc" (pointer_declarator) "*dc" (*) "*" (identifier) "dc" ()) ")" (;) ";" (declaration) "extern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_init_hw" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (;) ";" (declaration) "extern void tegra_mipi_cal_destroy(struct tegra_dc *dc);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_destroy(struct tegra_dc *dc)" (identifier) "tegra_mipi_cal_destroy" (parameter_list) "(struct tegra_dc *dc)" (() "(" (parameter_declaration) "struct tegra_dc *dc" (struct_specifier) "struct tegra_dc" (struct) "struct" (type_identifier) "tegra_dc" (pointer_declarator) "*dc" (*) "*" (identifier) "dc" ()) ")" (;) ";" (preproc_else) "#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n /* dummy */\n return 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n /* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n /* dummy */\n return NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n return 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n /* dummy */\n}" (#else) "#else" (function_definition) "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_clk_enable" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (compound_statement) "{\n /* dummy */\n}" ({) "{" (comment) "/* dummy */" (}) "}" (function_definition) "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_clk_disable" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (compound_statement) "{\n /* dummy */\n}" ({) "{" (comment) "/* dummy */" (}) "}" (function_definition) "static inline unsigned long tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)\n{\n /* dummy */\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (function_declarator) "tegra_mipi_cal_read(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)" (identifier) "tegra_mipi_cal_read" (parameter_list) "(\n struct tegra_mipi_cal *mipi_cal,\n unsigned long reg)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" (,) "," (parameter_declaration) "unsigned long reg" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "reg" ()) ")" (compound_statement) "{\n /* dummy */\n return 0;\n}" ({) "{" (comment) "/* dummy */" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)\n{\n /* dummy */\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)" (identifier) "tegra_mipi_cal_write" (parameter_list) "(struct tegra_mipi_cal *mipi_cal,\n unsigned long val,\n unsigned long reg)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" (,) "," (parameter_declaration) "unsigned long val" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "val" (,) "," (parameter_declaration) "unsigned long reg" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "reg" ()) ")" (compound_statement) "{\n /* dummy */\n}" ({) "{" (comment) "/* dummy */" (}) "}" (function_definition) "struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n /* dummy */\n return NULL;\n}" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*tegra_mipi_cal_init_sw(struct tegra_dc *dc)" (*) "*" (function_declarator) "tegra_mipi_cal_init_sw(struct tegra_dc *dc)" (identifier) "tegra_mipi_cal_init_sw" (parameter_list) "(struct tegra_dc *dc)" (() "(" (parameter_declaration) "struct tegra_dc *dc" (struct_specifier) "struct tegra_dc" (struct) "struct" (type_identifier) "tegra_dc" (pointer_declarator) "*dc" (*) "*" (identifier) "dc" ()) ")" (compound_statement) "{\n /* dummy */\n return NULL;\n}" ({) "{" (comment) "/* dummy */" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n /* dummy */\n return 0;\n}" (primitive_type) "int" (function_declarator) "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)" (identifier) "tegra_mipi_cal_init_hw" (parameter_list) "(struct tegra_mipi_cal *mipi_cal)" (() "(" (parameter_declaration) "struct tegra_mipi_cal *mipi_cal" (struct_specifier) "struct tegra_mipi_cal" (struct) "struct" (type_identifier) "tegra_mipi_cal" (pointer_declarator) "*mipi_cal" (*) "*" (identifier) "mipi_cal" ()) ")" (compound_statement) "{\n /* dummy */\n return 0;\n}" ({) "{" (comment) "/* dummy */" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n /* dummy */\n}" (primitive_type) "void" (function_declarator) "tegra_mipi_cal_destroy(struct tegra_dc *dc)" (identifier) "tegra_mipi_cal_destroy" (parameter_list) "(struct tegra_dc *dc)" (() "(" (parameter_declaration) "struct tegra_dc *dc" (struct_specifier) "struct tegra_dc" (struct) "struct" (type_identifier) "tegra_dc" (pointer_declarator) "*dc" (*) "*" (identifier) "dc" ()) ")" (compound_statement) "{\n /* dummy */\n}" ({) "{" (comment) "/* dummy */" (}) "}" (#endif) "#endif" (#endif) "#endif"
575
1
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 26.98, "nodes": 397, "errors": 0, "source_hash": "af1aab232292516fd12d697d314c2701cacace7b5ea02ac9d4b6f413c594b58f", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n\n#include \"mipi_cal_regs.h\"\n\nstruct tegra_mipi_cal {\n\tstruct tegra_dc *dc;\n\tstruct resource *res;\n\tstruct resource *base_res;\n\tstruct clk *clk;\n\tstruct clk *fixed_clk;\n\tvoid __iomem *base;\n\tstruct mutex lock;\n};\n\n#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_prepare_enable(mipi_cal->fixed_clk);\n\tclk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_disable_unprepare(mipi_cal->clk);\n\tclk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\treturn readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\twritel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 59, 396], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 112, "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": "__DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 45}}, {"id": 3, "type": "preproc_def", "text": "#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_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": "__DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 45}}, {"id": 6, "type": "preproc_include", "text": "#include \"mipi_cal_regs.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"mipi_cal_regs.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 9, "type": "struct_specifier", "text": "struct tegra_mipi_cal {\n\tstruct tegra_dc *dc;\n\tstruct resource *res;\n\tstruct resource *base_res;\n\tstruct clk *clk;\n\tstruct clk *fixed_clk;\n\tvoid __iomem *base;\n\tstruct mutex lock;\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 9, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 21}}, {"id": 12, "type": "field_declaration", "text": "struct tegra_dc *dc;", "parent": 9, "children": [13, 16], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 21}}, {"id": 13, "type": "struct_specifier", "text": "struct tegra_dc", "parent": 12, "children": [14, 15], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 16}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 7}}, {"id": 15, "type": "type_identifier", "text": "tegra_dc", "parent": 13, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 16, "type": "pointer_declarator", "text": "*dc", "parent": 12, "children": [17, 18], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 20}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 18}}, {"id": 18, "type": "field_identifier", "text": "dc", "parent": 16, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 20}}, {"id": 19, "type": "field_declaration", "text": "struct resource *res;", "parent": 9, "children": [20, 23], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 22}}, {"id": 20, "type": "struct_specifier", "text": "struct resource", "parent": 19, "children": [21, 22], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 16}}, {"id": 21, "type": "struct", "text": "struct", "parent": 20, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 22, "type": "type_identifier", "text": "resource", "parent": 20, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 16}}, {"id": 23, "type": "pointer_declarator", "text": "*res", "parent": 19, "children": [24, 25], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 25, "type": "field_identifier", "text": "res", "parent": 23, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 21}}, {"id": 26, "type": "field_declaration", "text": "struct resource *base_res;", "parent": 9, "children": [27, 30], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 27}}, {"id": 27, "type": "struct_specifier", "text": "struct resource", "parent": 26, "children": [28, 29], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 16}}, {"id": 28, "type": "struct", "text": "struct", "parent": 27, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 29, "type": "type_identifier", "text": "resource", "parent": 27, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 16}}, {"id": 30, "type": "pointer_declarator", "text": "*base_res", "parent": 26, "children": [31, 32], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 26}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 32, "type": "field_identifier", "text": "base_res", "parent": 30, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 26}}, {"id": 33, "type": "field_declaration", "text": "struct clk *clk;", "parent": 9, "children": [34, 37], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 17}}, {"id": 34, "type": "struct_specifier", "text": "struct clk", "parent": 33, "children": [35, 36], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 11}}, {"id": 35, "type": "struct", "text": "struct", "parent": 34, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 36, "type": "type_identifier", "text": "clk", "parent": 34, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 11}}, {"id": 37, "type": "pointer_declarator", "text": "*clk", "parent": 33, "children": [38, 39], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 39, "type": "field_identifier", "text": "clk", "parent": 37, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 16}}, {"id": 40, "type": "field_declaration", "text": "struct clk *fixed_clk;", "parent": 9, "children": [41, 44], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 23}}, {"id": 41, "type": "struct_specifier", "text": "struct clk", "parent": 40, "children": [42, 43], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 11}}, {"id": 42, "type": "struct", "text": "struct", "parent": 41, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 7}}, {"id": 43, "type": "type_identifier", "text": "clk", "parent": 41, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 44, "type": "pointer_declarator", "text": "*fixed_clk", "parent": 40, "children": [45, 46], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 46, "type": "field_identifier", "text": "fixed_clk", "parent": 44, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 22}}, {"id": 47, "type": "field_declaration", "text": "void __iomem *base;", "parent": 9, "children": [48, 49, 51], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 20}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 49, "type": "ERROR", "text": "__iomem", "parent": 47, "children": [50], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 13}}, {"id": 50, "type": "field_identifier", "text": "__iomem", "parent": 49, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 13}}, {"id": 51, "type": "pointer_declarator", "text": "*base", "parent": 47, "children": [52, 53], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 19}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 53, "type": "field_identifier", "text": "base", "parent": 51, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 19}}, {"id": 54, "type": "field_declaration", "text": "struct mutex lock;", "parent": 9, "children": [55, 58], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 19}}, {"id": 55, "type": "struct_specifier", "text": "struct mutex", "parent": 54, "children": [56, 57], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 13}}, {"id": 56, "type": "struct", "text": "struct", "parent": 55, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 7}}, {"id": 57, "type": "type_identifier", "text": "mutex", "parent": 55, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 58, "type": "field_identifier", "text": "lock", "parent": 54, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 59, "type": "preproc_ifdef", "text": "#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_prepare_enable(mipi_cal->fixed_clk);\n\tclk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_disable_unprepare(mipi_cal->clk);\n\tclk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\treturn readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\twritel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}\n#endif", "parent": 0, "children": [60, 61, 62, 95, 128, 176, 227, 245, 259, 273, 395], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 111, "column": 6}}, {"id": 60, "type": "#ifdef", "text": "#ifdef", "parent": 59, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 61, "type": "identifier", "text": "CONFIG_TEGRA_MIPI_CAL", "parent": 59, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 28}}, {"id": 62, "type": "function_definition", "text": "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_prepare_enable(mipi_cal->fixed_clk);\n\tclk_prepare_enable(mipi_cal->clk);\n}", "parent": 59, "children": [63, 65, 66], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 63, "type": "storage_class_specifier", "text": "inline", "parent": 62, "children": [64], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 13}}, {"id": 64, "type": "inline", "text": "inline", "parent": 63, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 13}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 18}}, {"id": 66, "type": "function_declarator", "text": "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)", "parent": 62, "children": [67, 68], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 77}}, {"id": 67, "type": "identifier", "text": "tegra_mipi_cal_clk_enable", "parent": 66, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 44}}, {"id": 68, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 66, "children": [69], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 77}}, {"id": 69, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 68, "children": [70, 73], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 76}}, {"id": 70, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 69, "children": [71, 72], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 66}}, {"id": 71, "type": "struct", "text": "struct", "parent": 70, "children": [], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 51}}, {"id": 72, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 70, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 66}}, {"id": 73, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 69, "children": [74, 75], "start_point": {"row": 32, "column": 67}, "end_point": {"row": 32, "column": 76}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 32, "column": 67}, "end_point": {"row": 32, "column": 68}}, {"id": 75, "type": "identifier", "text": "mipi_cal", "parent": 73, "children": [], "start_point": {"row": 32, "column": 68}, "end_point": {"row": 32, "column": 76}}, {"id": 76, "type": "call_expression", "text": "BUG_ON(IS_ERR_OR_NULL(mipi_cal))", "parent": 62, "children": [77, 78], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 33}}, {"id": 77, "type": "identifier", "text": "BUG_ON", "parent": 76, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 7}}, {"id": 78, "type": "argument_list", "text": "(IS_ERR_OR_NULL(mipi_cal))", "parent": 76, "children": [79], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 33}}, {"id": 79, "type": "call_expression", "text": "IS_ERR_OR_NULL(mipi_cal)", "parent": 78, "children": [80, 81], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 32}}, {"id": 80, "type": "identifier", "text": "IS_ERR_OR_NULL", "parent": 79, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 22}}, {"id": 81, "type": "argument_list", "text": "(mipi_cal)", "parent": 79, "children": [82], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 32}}, {"id": 82, "type": "identifier", "text": "mipi_cal", "parent": 81, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 31}}, {"id": 83, "type": "call_expression", "text": "clk_prepare_enable(mipi_cal->fixed_clk)", "parent": 62, "children": [84, 85], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 40}}, {"id": 84, "type": "identifier", "text": "clk_prepare_enable", "parent": 83, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 19}}, {"id": 85, "type": "argument_list", "text": "(mipi_cal->fixed_clk)", "parent": 83, "children": [86], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 40}}, {"id": 86, "type": "field_expression", "text": "mipi_cal->fixed_clk", "parent": 85, "children": [87, 88], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 39}}, {"id": 87, "type": "identifier", "text": "mipi_cal", "parent": 86, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 28}}, {"id": 88, "type": "field_identifier", "text": "fixed_clk", "parent": 86, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 39}}, {"id": 89, "type": "call_expression", "text": "clk_prepare_enable(mipi_cal->clk)", "parent": 62, "children": [90, 91], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 34}}, {"id": 90, "type": "identifier", "text": "clk_prepare_enable", "parent": 89, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 19}}, {"id": 91, "type": "argument_list", "text": "(mipi_cal->clk)", "parent": 89, "children": [92], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 34}}, {"id": 92, "type": "field_expression", "text": "mipi_cal->clk", "parent": 91, "children": [93, 94], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 33}}, {"id": 93, "type": "identifier", "text": "mipi_cal", "parent": 92, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 28}}, {"id": 94, "type": "field_identifier", "text": "clk", "parent": 92, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 33}}, {"id": 95, "type": "function_definition", "text": "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_disable_unprepare(mipi_cal->clk);\n\tclk_disable_unprepare(mipi_cal->fixed_clk);\n}", "parent": 59, "children": [96, 98, 99], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 96, "type": "storage_class_specifier", "text": "inline", "parent": 95, "children": [97], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 97, "type": "inline", "text": "inline", "parent": 96, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 18}}, {"id": 99, "type": "function_declarator", "text": "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)", "parent": 95, "children": [100, 101], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 78}}, {"id": 100, "type": "identifier", "text": "tegra_mipi_cal_clk_disable", "parent": 99, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 45}}, {"id": 101, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 99, "children": [102], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 78}}, {"id": 102, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 101, "children": [103, 106], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 77}}, {"id": 103, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 102, "children": [104, 105], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 67}}, {"id": 104, "type": "struct", "text": "struct", "parent": 103, "children": [], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 52}}, {"id": 105, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 103, "children": [], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 39, "column": 67}}, {"id": 106, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 102, "children": [107, 108], "start_point": {"row": 39, "column": 68}, "end_point": {"row": 39, "column": 77}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 39, "column": 68}, "end_point": {"row": 39, "column": 69}}, {"id": 108, "type": "identifier", "text": "mipi_cal", "parent": 106, "children": [], "start_point": {"row": 39, "column": 69}, "end_point": {"row": 39, "column": 77}}, {"id": 109, "type": "call_expression", "text": "BUG_ON(IS_ERR_OR_NULL(mipi_cal))", "parent": 95, "children": [110, 111], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 33}}, {"id": 110, "type": "identifier", "text": "BUG_ON", "parent": 109, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 111, "type": "argument_list", "text": "(IS_ERR_OR_NULL(mipi_cal))", "parent": 109, "children": [112], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 33}}, {"id": 112, "type": "call_expression", "text": "IS_ERR_OR_NULL(mipi_cal)", "parent": 111, "children": [113, 114], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 32}}, {"id": 113, "type": "identifier", "text": "IS_ERR_OR_NULL", "parent": 112, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 22}}, {"id": 114, "type": "argument_list", "text": "(mipi_cal)", "parent": 112, "children": [115], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 32}}, {"id": 115, "type": "identifier", "text": "mipi_cal", "parent": 114, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 31}}, {"id": 116, "type": "call_expression", "text": "clk_disable_unprepare(mipi_cal->clk)", "parent": 95, "children": [117, 118], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 37}}, {"id": 117, "type": "identifier", "text": "clk_disable_unprepare", "parent": 116, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 22}}, {"id": 118, "type": "argument_list", "text": "(mipi_cal->clk)", "parent": 116, "children": [119], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 37}}, {"id": 119, "type": "field_expression", "text": "mipi_cal->clk", "parent": 118, "children": [120, 121], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 36}}, {"id": 120, "type": "identifier", "text": "mipi_cal", "parent": 119, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 31}}, {"id": 121, "type": "field_identifier", "text": "clk", "parent": 119, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 36}}, {"id": 122, "type": "call_expression", "text": "clk_disable_unprepare(mipi_cal->fixed_clk)", "parent": 95, "children": [123, 124], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 43}}, {"id": 123, "type": "identifier", "text": "clk_disable_unprepare", "parent": 122, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 22}}, {"id": 124, "type": "argument_list", "text": "(mipi_cal->fixed_clk)", "parent": 122, "children": [125], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 43}}, {"id": 125, "type": "field_expression", "text": "mipi_cal->fixed_clk", "parent": 124, "children": [126, 127], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 42}}, {"id": 126, "type": "identifier", "text": "mipi_cal", "parent": 125, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 31}}, {"id": 127, "type": "field_identifier", "text": "fixed_clk", "parent": 125, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 42}}, {"id": 128, "type": "function_definition", "text": "static inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\treturn readl(mipi_cal->base + reg);\n}", "parent": 59, "children": [129, 131, 134], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 129, "type": "storage_class_specifier", "text": "inline", "parent": 128, "children": [130], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 13}}, {"id": 130, "type": "inline", "text": "inline", "parent": 129, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 13}}, {"id": 131, "type": "sized_type_specifier", "text": "unsigned long", "parent": 128, "children": [132, 133], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 27}}, {"id": 132, "type": "unsigned", "text": "unsigned", "parent": 131, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 22}}, {"id": 133, "type": "long", "text": "long", "parent": 131, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 27}}, {"id": 134, "type": "function_declarator", "text": "tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)", "parent": 128, "children": [135, 136], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 49, "column": 23}}, {"id": 135, "type": "identifier", "text": "tegra_mipi_cal_read", "parent": 134, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 47}}, {"id": 136, "type": "parameter_list", "text": "(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)", "parent": 134, "children": [137, 144], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 49, "column": 23}}, {"id": 137, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 136, "children": [138, 141], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 36}}, {"id": 138, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 137, "children": [139, 140], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 26}}, {"id": 139, "type": "struct", "text": "struct", "parent": 138, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 11}}, {"id": 140, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 138, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 26}}, {"id": 141, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 137, "children": [142, 143], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 36}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 28}}, {"id": 143, "type": "identifier", "text": "mipi_cal", "parent": 141, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 36}}, {"id": 144, "type": "parameter_declaration", "text": "unsigned long reg", "parent": 136, "children": [145, 148], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 22}}, {"id": 145, "type": "sized_type_specifier", "text": "unsigned long", "parent": 144, "children": [146, 147], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 18}}, {"id": 146, "type": "unsigned", "text": "unsigned", "parent": 145, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 13}}, {"id": 147, "type": "long", "text": "long", "parent": 145, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 148, "type": "identifier", "text": "reg", "parent": 144, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 22}}, {"id": 149, "type": "call_expression", "text": "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk))", "parent": 128, "children": [150, 151], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 52, "column": 39}}, {"id": 150, "type": "identifier", "text": "BUG_ON", "parent": 149, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 7}}, {"id": 151, "type": "argument_list", "text": "(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk))", "parent": 149, "children": [152], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 52, "column": 39}}, {"id": 152, "type": "binary_expression", "text": "IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk)", "parent": 151, "children": [153, 157, 158], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 52, "column": 38}}, {"id": 153, "type": "call_expression", "text": "IS_ERR_OR_NULL(mipi_cal)", "parent": 152, "children": [154, 155], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 32}}, {"id": 154, "type": "identifier", "text": "IS_ERR_OR_NULL", "parent": 153, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 22}}, {"id": 155, "type": "argument_list", "text": "(mipi_cal)", "parent": 153, "children": [156], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 32}}, {"id": 156, "type": "identifier", "text": "mipi_cal", "parent": 155, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 31}}, {"id": 157, "type": "||", "text": "||", "parent": 152, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 35}}, {"id": 158, "type": "unary_expression", "text": "!tegra_is_clk_enabled(mipi_cal->clk)", "parent": 152, "children": [159, 160], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 38}}, {"id": 159, "type": "!", "text": "!", "parent": 158, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 3}}, {"id": 160, "type": "call_expression", "text": "tegra_is_clk_enabled(mipi_cal->clk)", "parent": 158, "children": [161, 162], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 38}}, {"id": 161, "type": "identifier", "text": "tegra_is_clk_enabled", "parent": 160, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 23}}, {"id": 162, "type": "argument_list", "text": "(mipi_cal->clk)", "parent": 160, "children": [163], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 38}}, {"id": 163, "type": "field_expression", "text": "mipi_cal->clk", "parent": 162, "children": [164, 165], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 37}}, {"id": 164, "type": "identifier", "text": "mipi_cal", "parent": 163, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 32}}, {"id": 165, "type": "field_identifier", "text": "clk", "parent": 163, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 37}}, {"id": 166, "type": "return_statement", "text": "return readl(mipi_cal->base + reg);", "parent": 128, "children": [167], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 36}}, {"id": 167, "type": "call_expression", "text": "readl(mipi_cal->base + reg)", "parent": 166, "children": [168, 169], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 35}}, {"id": 168, "type": "identifier", "text": "readl", "parent": 167, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 13}}, {"id": 169, "type": "argument_list", "text": "(mipi_cal->base + reg)", "parent": 167, "children": [170], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 35}}, {"id": 170, "type": "binary_expression", "text": "mipi_cal->base + reg", "parent": 169, "children": [171, 174, 175], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 34}}, {"id": 171, "type": "field_expression", "text": "mipi_cal->base", "parent": 170, "children": [172, 173], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 28}}, {"id": 172, "type": "identifier", "text": "mipi_cal", "parent": 171, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 22}}, {"id": 173, "type": "field_identifier", "text": "base", "parent": 171, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 28}}, {"id": 174, "type": "+", "text": "+", "parent": 170, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 30}}, {"id": 175, "type": "identifier", "text": "reg", "parent": 170, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 34}}, {"id": 176, "type": "function_definition", "text": "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\twritel(val, mipi_cal->base + reg);\n}", "parent": 59, "children": [177, 179, 180], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 177, "type": "storage_class_specifier", "text": "inline", "parent": 176, "children": [178], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 178, "type": "inline", "text": "inline", "parent": 177, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 18}}, {"id": 180, "type": "function_declarator", "text": "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)", "parent": 176, "children": [181, 182], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 59, "column": 25}}, {"id": 181, "type": "identifier", "text": "tegra_mipi_cal_write", "parent": 180, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 39}}, {"id": 182, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)", "parent": 180, "children": [183, 190, 195], "start_point": {"row": 57, "column": 39}, "end_point": {"row": 59, "column": 25}}, {"id": 183, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 182, "children": [184, 187], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 71}}, {"id": 184, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 183, "children": [185, 186], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 61}}, {"id": 185, "type": "struct", "text": "struct", "parent": 184, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 46}}, {"id": 186, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 184, "children": [], "start_point": {"row": 57, "column": 47}, "end_point": {"row": 57, "column": 61}}, {"id": 187, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 183, "children": [188, 189], "start_point": {"row": 57, "column": 62}, "end_point": {"row": 57, "column": 71}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 57, "column": 62}, "end_point": {"row": 57, "column": 63}}, {"id": 189, "type": "identifier", "text": "mipi_cal", "parent": 187, "children": [], "start_point": {"row": 57, "column": 63}, "end_point": {"row": 57, "column": 71}}, {"id": 190, "type": "parameter_declaration", "text": "unsigned long val", "parent": 182, "children": [191, 194], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 24}}, {"id": 191, "type": "sized_type_specifier", "text": "unsigned long", "parent": 190, "children": [192, 193], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 20}}, {"id": 192, "type": "unsigned", "text": "unsigned", "parent": 191, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 15}}, {"id": 193, "type": "long", "text": "long", "parent": 191, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 20}}, {"id": 194, "type": "identifier", "text": "val", "parent": 190, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 24}}, {"id": 195, "type": "parameter_declaration", "text": "unsigned long reg", "parent": 182, "children": [196, 199], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 24}}, {"id": 196, "type": "sized_type_specifier", "text": "unsigned long", "parent": 195, "children": [197, 198], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 20}}, {"id": 197, "type": "unsigned", "text": "unsigned", "parent": 196, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 15}}, {"id": 198, "type": "long", "text": "long", "parent": 196, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 20}}, {"id": 199, "type": "identifier", "text": "reg", "parent": 195, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 24}}, {"id": 200, "type": "call_expression", "text": "BUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk))", "parent": 176, "children": [201, 202], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 62, "column": 39}}, {"id": 201, "type": "identifier", "text": "BUG_ON", "parent": 200, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 7}}, {"id": 202, "type": "argument_list", "text": "(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk))", "parent": 200, "children": [203], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 62, "column": 39}}, {"id": 203, "type": "binary_expression", "text": "IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk)", "parent": 202, "children": [204, 208, 209], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 62, "column": 38}}, {"id": 204, "type": "call_expression", "text": "IS_ERR_OR_NULL(mipi_cal)", "parent": 203, "children": [205, 206], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 32}}, {"id": 205, "type": "identifier", "text": "IS_ERR_OR_NULL", "parent": 204, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 22}}, {"id": 206, "type": "argument_list", "text": "(mipi_cal)", "parent": 204, "children": [207], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 32}}, {"id": 207, "type": "identifier", "text": "mipi_cal", "parent": 206, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 31}}, {"id": 208, "type": "||", "text": "||", "parent": 203, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 35}}, {"id": 209, "type": "unary_expression", "text": "!tegra_is_clk_enabled(mipi_cal->clk)", "parent": 203, "children": [210, 211], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 38}}, {"id": 210, "type": "!", "text": "!", "parent": 209, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 3}}, {"id": 211, "type": "call_expression", "text": "tegra_is_clk_enabled(mipi_cal->clk)", "parent": 209, "children": [212, 213], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 38}}, {"id": 212, "type": "identifier", "text": "tegra_is_clk_enabled", "parent": 211, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 23}}, {"id": 213, "type": "argument_list", "text": "(mipi_cal->clk)", "parent": 211, "children": [214], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 38}}, {"id": 214, "type": "field_expression", "text": "mipi_cal->clk", "parent": 213, "children": [215, 216], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 37}}, {"id": 215, "type": "identifier", "text": "mipi_cal", "parent": 214, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 32}}, {"id": 216, "type": "field_identifier", "text": "clk", "parent": 214, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 37}}, {"id": 217, "type": "call_expression", "text": "writel(val, mipi_cal->base + reg)", "parent": 176, "children": [218, 219], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 34}}, {"id": 218, "type": "identifier", "text": "writel", "parent": 217, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 219, "type": "argument_list", "text": "(val, mipi_cal->base + reg)", "parent": 217, "children": [220, 221], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 34}}, {"id": 220, "type": "identifier", "text": "val", "parent": 219, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 11}}, {"id": 221, "type": "binary_expression", "text": "mipi_cal->base + reg", "parent": 219, "children": [222, 225, 226], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 33}}, {"id": 222, "type": "field_expression", "text": "mipi_cal->base", "parent": 221, "children": [223, 224], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 27}}, {"id": 223, "type": "identifier", "text": "mipi_cal", "parent": 222, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 21}}, {"id": 224, "type": "field_identifier", "text": "base", "parent": 222, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 27}}, {"id": 225, "type": "+", "text": "+", "parent": 221, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 29}}, {"id": 226, "type": "identifier", "text": "reg", "parent": 221, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 33}}, {"id": 227, "type": "declaration", "text": "extern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);", "parent": 59, "children": [228, 230, 233], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 74}}, {"id": 228, "type": "storage_class_specifier", "text": "extern", "parent": 227, "children": [229], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 229, "type": "extern", "text": "extern", "parent": 228, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 230, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 227, "children": [231, 232], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 28}}, {"id": 231, "type": "struct", "text": "struct", "parent": 230, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 13}}, {"id": 232, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 230, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 28}}, {"id": 233, "type": "pointer_declarator", "text": "*tegra_mipi_cal_init_sw(struct tegra_dc *dc)", "parent": 227, "children": [234, 235], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 73}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 30}}, {"id": 235, "type": "function_declarator", "text": "tegra_mipi_cal_init_sw(struct tegra_dc *dc)", "parent": 233, "children": [236, 237], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 73}}, {"id": 236, "type": "identifier", "text": "tegra_mipi_cal_init_sw", "parent": 235, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 52}}, {"id": 237, "type": "parameter_list", "text": "(struct tegra_dc *dc)", "parent": 235, "children": [238], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 73}}, {"id": 238, "type": "parameter_declaration", "text": "struct tegra_dc *dc", "parent": 237, "children": [239, 242], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 72}}, {"id": 239, "type": "struct_specifier", "text": "struct tegra_dc", "parent": 238, "children": [240, 241], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 68}}, {"id": 240, "type": "struct", "text": "struct", "parent": 239, "children": [], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 59}}, {"id": 241, "type": "type_identifier", "text": "tegra_dc", "parent": 239, "children": [], "start_point": {"row": 66, "column": 60}, "end_point": {"row": 66, "column": 68}}, {"id": 242, "type": "pointer_declarator", "text": "*dc", "parent": 238, "children": [243, 244], "start_point": {"row": 66, "column": 69}, "end_point": {"row": 66, "column": 72}}, {"id": 243, "type": "*", "text": "*", "parent": 242, "children": [], "start_point": {"row": 66, "column": 69}, "end_point": {"row": 66, "column": 70}}, {"id": 244, "type": "identifier", "text": "dc", "parent": 242, "children": [], "start_point": {"row": 66, "column": 70}, "end_point": {"row": 66, "column": 72}}, {"id": 245, "type": "declaration", "text": "extern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);", "parent": 59, "children": [246, 248, 249], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 67}}, {"id": 246, "type": "storage_class_specifier", "text": "extern", "parent": 245, "children": [247], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 247, "type": "extern", "text": "extern", "parent": 246, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 248, "type": "primitive_type", "text": "int", "parent": 245, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 10}}, {"id": 249, "type": "function_declarator", "text": "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)", "parent": 245, "children": [250, 251], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 66}}, {"id": 250, "type": "identifier", "text": "tegra_mipi_cal_init_hw", "parent": 249, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 33}}, {"id": 251, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 249, "children": [252], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 66}}, {"id": 252, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 251, "children": [253, 256], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 65}}, {"id": 253, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 252, "children": [254, 255], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 55}}, {"id": 254, "type": "struct", "text": "struct", "parent": 253, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 40}}, {"id": 255, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 253, "children": [], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 55}}, {"id": 256, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 252, "children": [257, 258], "start_point": {"row": 67, "column": 56}, "end_point": {"row": 67, "column": 65}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 67, "column": 56}, "end_point": {"row": 67, "column": 57}}, {"id": 258, "type": "identifier", "text": "mipi_cal", "parent": 256, "children": [], "start_point": {"row": 67, "column": 57}, "end_point": {"row": 67, "column": 65}}, {"id": 259, "type": "declaration", "text": "extern void tegra_mipi_cal_destroy(struct tegra_dc *dc);", "parent": 59, "children": [260, 262, 263], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 56}}, {"id": 260, "type": "storage_class_specifier", "text": "extern", "parent": 259, "children": [261], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 261, "type": "extern", "text": "extern", "parent": 260, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 262, "type": "primitive_type", "text": "void", "parent": 259, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 11}}, {"id": 263, "type": "function_declarator", "text": "tegra_mipi_cal_destroy(struct tegra_dc *dc)", "parent": 259, "children": [264, 265], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 55}}, {"id": 264, "type": "identifier", "text": "tegra_mipi_cal_destroy", "parent": 263, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 34}}, {"id": 265, "type": "parameter_list", "text": "(struct tegra_dc *dc)", "parent": 263, "children": [266], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 55}}, {"id": 266, "type": "parameter_declaration", "text": "struct tegra_dc *dc", "parent": 265, "children": [267, 270], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 54}}, {"id": 267, "type": "struct_specifier", "text": "struct tegra_dc", "parent": 266, "children": [268, 269], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 50}}, {"id": 268, "type": "struct", "text": "struct", "parent": 267, "children": [], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 41}}, {"id": 269, "type": "type_identifier", "text": "tegra_dc", "parent": 267, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 50}}, {"id": 270, "type": "pointer_declarator", "text": "*dc", "parent": 266, "children": [271, 272], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 54}}, {"id": 271, "type": "*", "text": "*", "parent": 270, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 52}}, {"id": 272, "type": "identifier", "text": "dc", "parent": 270, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 54}}, {"id": 273, "type": "preproc_else", "text": "#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}", "parent": 59, "children": [274, 275, 289, 303, 326, 350, 369, 383], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 274, "type": "#else", "text": "#else", "parent": 273, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 5}}, {"id": 275, "type": "function_definition", "text": "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}", "parent": 273, "children": [276, 278, 279], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 276, "type": "storage_class_specifier", "text": "inline", "parent": 275, "children": [277], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 13}}, {"id": 277, "type": "inline", "text": "inline", "parent": 276, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 13}}, {"id": 278, "type": "primitive_type", "text": "void", "parent": 275, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 18}}, {"id": 279, "type": "function_declarator", "text": "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)", "parent": 275, "children": [280, 281], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 77}}, {"id": 280, "type": "identifier", "text": "tegra_mipi_cal_clk_enable", "parent": 279, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 44}}, {"id": 281, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 279, "children": [282], "start_point": {"row": 70, "column": 44}, "end_point": {"row": 70, "column": 77}}, {"id": 282, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 281, "children": [283, 286], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 76}}, {"id": 283, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 282, "children": [284, 285], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 66}}, {"id": 284, "type": "struct", "text": "struct", "parent": 283, "children": [], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 51}}, {"id": 285, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 283, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 66}}, {"id": 286, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 282, "children": [287, 288], "start_point": {"row": 70, "column": 67}, "end_point": {"row": 70, "column": 76}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 70, "column": 67}, "end_point": {"row": 70, "column": 68}}, {"id": 288, "type": "identifier", "text": "mipi_cal", "parent": 286, "children": [], "start_point": {"row": 70, "column": 68}, "end_point": {"row": 70, "column": 76}}, {"id": 289, "type": "function_definition", "text": "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}", "parent": 273, "children": [290, 292, 293], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 290, "type": "storage_class_specifier", "text": "inline", "parent": 289, "children": [291], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 13}}, {"id": 291, "type": "inline", "text": "inline", "parent": 290, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 13}}, {"id": 292, "type": "primitive_type", "text": "void", "parent": 289, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 18}}, {"id": 293, "type": "function_declarator", "text": "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)", "parent": 289, "children": [294, 295], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 78}}, {"id": 294, "type": "identifier", "text": "tegra_mipi_cal_clk_disable", "parent": 293, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 45}}, {"id": 295, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 293, "children": [296], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 78}}, {"id": 296, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 295, "children": [297, 300], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 77}}, {"id": 297, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 296, "children": [298, 299], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 67}}, {"id": 298, "type": "struct", "text": "struct", "parent": 297, "children": [], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 52}}, {"id": 299, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 297, "children": [], "start_point": {"row": 75, "column": 53}, "end_point": {"row": 75, "column": 67}}, {"id": 300, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 296, "children": [301, 302], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 77}}, {"id": 301, "type": "*", "text": "*", "parent": 300, "children": [], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 69}}, {"id": 302, "type": "identifier", "text": "mipi_cal", "parent": 300, "children": [], "start_point": {"row": 75, "column": 69}, "end_point": {"row": 75, "column": 77}}, {"id": 303, "type": "function_definition", "text": "static inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n\treturn 0;\n}", "parent": 273, "children": [304, 306, 309], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 86, "column": 1}}, {"id": 304, "type": "storage_class_specifier", "text": "inline", "parent": 303, "children": [305], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 305, "type": "inline", "text": "inline", "parent": 304, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 306, "type": "sized_type_specifier", "text": "unsigned long", "parent": 303, "children": [307, 308], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 27}}, {"id": 307, "type": "unsigned", "text": "unsigned", "parent": 306, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 22}}, {"id": 308, "type": "long", "text": "long", "parent": 306, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 27}}, {"id": 309, "type": "function_declarator", "text": "tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)", "parent": 303, "children": [310, 311], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 82, "column": 24}}, {"id": 310, "type": "identifier", "text": "tegra_mipi_cal_read", "parent": 309, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 47}}, {"id": 311, "type": "parameter_list", "text": "(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)", "parent": 309, "children": [312, 319], "start_point": {"row": 80, "column": 47}, "end_point": {"row": 82, "column": 24}}, {"id": 312, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 311, "children": [313, 316], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 37}}, {"id": 313, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 312, "children": [314, 315], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 27}}, {"id": 314, "type": "struct", "text": "struct", "parent": 313, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 12}}, {"id": 315, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 313, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 27}}, {"id": 316, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 312, "children": [317, 318], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 37}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 29}}, {"id": 318, "type": "identifier", "text": "mipi_cal", "parent": 316, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 37}}, {"id": 319, "type": "parameter_declaration", "text": "unsigned long reg", "parent": 311, "children": [320, 323], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 23}}, {"id": 320, "type": "sized_type_specifier", "text": "unsigned long", "parent": 319, "children": [321, 322], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 19}}, {"id": 321, "type": "unsigned", "text": "unsigned", "parent": 320, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 14}}, {"id": 322, "type": "long", "text": "long", "parent": 320, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 19}}, {"id": 323, "type": "identifier", "text": "reg", "parent": 319, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 23}}, {"id": 324, "type": "return_statement", "text": "return 0;", "parent": 303, "children": [325], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 10}}, {"id": 325, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 9}}, {"id": 326, "type": "function_definition", "text": "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n}", "parent": 273, "children": [327, 329, 330], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 327, "type": "storage_class_specifier", "text": "inline", "parent": 326, "children": [328], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 13}}, {"id": 328, "type": "inline", "text": "inline", "parent": 327, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 13}}, {"id": 329, "type": "primitive_type", "text": "void", "parent": 326, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 18}}, {"id": 330, "type": "function_declarator", "text": "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)", "parent": 326, "children": [331, 332], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 90, "column": 24}}, {"id": 331, "type": "identifier", "text": "tegra_mipi_cal_write", "parent": 330, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 39}}, {"id": 332, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)", "parent": 330, "children": [333, 340, 345], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 90, "column": 24}}, {"id": 333, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 332, "children": [334, 337], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 71}}, {"id": 334, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 333, "children": [335, 336], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 61}}, {"id": 335, "type": "struct", "text": "struct", "parent": 334, "children": [], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 46}}, {"id": 336, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 334, "children": [], "start_point": {"row": 88, "column": 47}, "end_point": {"row": 88, "column": 61}}, {"id": 337, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 333, "children": [338, 339], "start_point": {"row": 88, "column": 62}, "end_point": {"row": 88, "column": 71}}, {"id": 338, "type": "*", "text": "*", "parent": 337, "children": [], "start_point": {"row": 88, "column": 62}, "end_point": {"row": 88, "column": 63}}, {"id": 339, "type": "identifier", "text": "mipi_cal", "parent": 337, "children": [], "start_point": {"row": 88, "column": 63}, "end_point": {"row": 88, "column": 71}}, {"id": 340, "type": "parameter_declaration", "text": "unsigned long val", "parent": 332, "children": [341, 344], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 23}}, {"id": 341, "type": "sized_type_specifier", "text": "unsigned long", "parent": 340, "children": [342, 343], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 19}}, {"id": 342, "type": "unsigned", "text": "unsigned", "parent": 341, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 14}}, {"id": 343, "type": "long", "text": "long", "parent": 341, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 19}}, {"id": 344, "type": "identifier", "text": "val", "parent": 340, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 23}}, {"id": 345, "type": "parameter_declaration", "text": "unsigned long reg", "parent": 332, "children": [346, 349], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 23}}, {"id": 346, "type": "sized_type_specifier", "text": "unsigned long", "parent": 345, "children": [347, 348], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 19}}, {"id": 347, "type": "unsigned", "text": "unsigned", "parent": 346, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 14}}, {"id": 348, "type": "long", "text": "long", "parent": 346, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 19}}, {"id": 349, "type": "identifier", "text": "reg", "parent": 345, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 23}}, {"id": 350, "type": "function_definition", "text": "struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}", "parent": 273, "children": [351, 354], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 351, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 350, "children": [352, 353], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 21}}, {"id": 352, "type": "struct", "text": "struct", "parent": 351, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 353, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 351, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 21}}, {"id": 354, "type": "pointer_declarator", "text": "*tegra_mipi_cal_init_sw(struct tegra_dc *dc)", "parent": 350, "children": [355, 356], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 66}}, {"id": 355, "type": "*", "text": "*", "parent": 354, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 23}}, {"id": 356, "type": "function_declarator", "text": "tegra_mipi_cal_init_sw(struct tegra_dc *dc)", "parent": 354, "children": [357, 358], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 66}}, {"id": 357, "type": "identifier", "text": "tegra_mipi_cal_init_sw", "parent": 356, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 45}}, {"id": 358, "type": "parameter_list", "text": "(struct tegra_dc *dc)", "parent": 356, "children": [359], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 66}}, {"id": 359, "type": "parameter_declaration", "text": "struct tegra_dc *dc", "parent": 358, "children": [360, 363], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 65}}, {"id": 360, "type": "struct_specifier", "text": "struct tegra_dc", "parent": 359, "children": [361, 362], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 61}}, {"id": 361, "type": "struct", "text": "struct", "parent": 360, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 52}}, {"id": 362, "type": "type_identifier", "text": "tegra_dc", "parent": 360, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 61}}, {"id": 363, "type": "pointer_declarator", "text": "*dc", "parent": 359, "children": [364, 365], "start_point": {"row": 95, "column": 62}, "end_point": {"row": 95, "column": 65}}, {"id": 364, "type": "*", "text": "*", "parent": 363, "children": [], "start_point": {"row": 95, "column": 62}, "end_point": {"row": 95, "column": 63}}, {"id": 365, "type": "identifier", "text": "dc", "parent": 363, "children": [], "start_point": {"row": 95, "column": 63}, "end_point": {"row": 95, "column": 65}}, {"id": 366, "type": "return_statement", "text": "return NULL;", "parent": 350, "children": [367], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 13}}, {"id": 367, "type": "null", "text": "NULL", "parent": 366, "children": [368], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 12}}, {"id": 368, "type": "NULL", "text": "NULL", "parent": 367, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 12}}, {"id": 369, "type": "function_definition", "text": "int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}", "parent": 273, "children": [370, 371], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 370, "type": "primitive_type", "text": "int", "parent": 369, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 3}}, {"id": 371, "type": "function_declarator", "text": "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)", "parent": 369, "children": [372, 373], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 59}}, {"id": 372, "type": "identifier", "text": "tegra_mipi_cal_init_hw", "parent": 371, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 26}}, {"id": 373, "type": "parameter_list", "text": "(struct tegra_mipi_cal *mipi_cal)", "parent": 371, "children": [374], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 59}}, {"id": 374, "type": "parameter_declaration", "text": "struct tegra_mipi_cal *mipi_cal", "parent": 373, "children": [375, 378], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 58}}, {"id": 375, "type": "struct_specifier", "text": "struct tegra_mipi_cal", "parent": 374, "children": [376, 377], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 48}}, {"id": 376, "type": "struct", "text": "struct", "parent": 375, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 33}}, {"id": 377, "type": "type_identifier", "text": "tegra_mipi_cal", "parent": 375, "children": [], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 48}}, {"id": 378, "type": "pointer_declarator", "text": "*mipi_cal", "parent": 374, "children": [379, 380], "start_point": {"row": 101, "column": 49}, "end_point": {"row": 101, "column": 58}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 101, "column": 49}, "end_point": {"row": 101, "column": 50}}, {"id": 380, "type": "identifier", "text": "mipi_cal", "parent": 378, "children": [], "start_point": {"row": 101, "column": 50}, "end_point": {"row": 101, "column": 58}}, {"id": 381, "type": "return_statement", "text": "return 0;", "parent": 369, "children": [382], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 10}}, {"id": 382, "type": "number_literal", "text": "0", "parent": 381, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 383, "type": "function_definition", "text": "void tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}", "parent": 273, "children": [384, 385], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 384, "type": "primitive_type", "text": "void", "parent": 383, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 4}}, {"id": 385, "type": "function_declarator", "text": "tegra_mipi_cal_destroy(struct tegra_dc *dc)", "parent": 383, "children": [386, 387], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 48}}, {"id": 386, "type": "identifier", "text": "tegra_mipi_cal_destroy", "parent": 385, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 27}}, {"id": 387, "type": "parameter_list", "text": "(struct tegra_dc *dc)", "parent": 385, "children": [388], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 48}}, {"id": 388, "type": "parameter_declaration", "text": "struct tegra_dc *dc", "parent": 387, "children": [389, 392], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 47}}, {"id": 389, "type": "struct_specifier", "text": "struct tegra_dc", "parent": 388, "children": [390, 391], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 43}}, {"id": 390, "type": "struct", "text": "struct", "parent": 389, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 34}}, {"id": 391, "type": "type_identifier", "text": "tegra_dc", "parent": 389, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 43}}, {"id": 392, "type": "pointer_declarator", "text": "*dc", "parent": 388, "children": [393, 394], "start_point": {"row": 107, "column": 44}, "end_point": {"row": 107, "column": 47}}, {"id": 393, "type": "*", "text": "*", "parent": 392, "children": [], "start_point": {"row": 107, "column": 44}, "end_point": {"row": 107, "column": 45}}, {"id": 394, "type": "identifier", "text": "dc", "parent": 392, "children": [], "start_point": {"row": 107, "column": 45}, "end_point": {"row": 107, "column": 47}}, {"id": 395, "type": "#endif", "text": "#endif", "parent": 59, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 6}}, {"id": 396, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 6}}]}, "node_categories": {"declarations": {"functions": [62, 66, 95, 99, 128, 134, 176, 180, 235, 249, 263, 275, 279, 289, 293, 303, 309, 326, 330, 350, 356, 369, 371, 383, 385], "variables": [12, 19, 26, 33, 40, 47, 54, 69, 102, 137, 144, 183, 190, 195, 227, 238, 245, 252, 259, 266, 282, 296, 312, 319, 333, 340, 345, 359, 374, 388], "classes": [9, 10, 13, 14, 20, 21, 27, 28, 34, 35, 41, 42, 55, 56, 63, 70, 71, 96, 103, 104, 129, 138, 139, 177, 184, 185, 228, 230, 231, 239, 240, 246, 253, 254, 260, 267, 268, 276, 283, 284, 290, 297, 298, 304, 313, 314, 327, 334, 335, 351, 352, 360, 361, 375, 376, 389, 390], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [76, 79, 83, 86, 89, 92, 109, 112, 116, 119, 122, 125, 149, 152, 153, 158, 160, 163, 167, 170, 171, 200, 203, 204, 209, 211, 214, 217, 221, 222], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 15, 18, 22, 25, 29, 32, 36, 39, 43, 46, 50, 53, 57, 58, 59, 60, 61, 67, 72, 75, 77, 80, 82, 84, 87, 88, 90, 93, 94, 100, 105, 108, 110, 113, 115, 117, 120, 121, 123, 126, 127, 131, 135, 140, 143, 145, 148, 150, 154, 156, 161, 164, 165, 168, 172, 173, 175, 181, 186, 189, 191, 194, 196, 199, 201, 205, 207, 212, 215, 216, 218, 220, 223, 224, 226, 232, 236, 241, 244, 250, 255, 258, 264, 269, 272, 280, 285, 288, 294, 299, 302, 306, 310, 315, 318, 320, 323, 331, 336, 339, 341, 344, 346, 349, 353, 357, 362, 365, 372, 377, 380, 386, 391, 394, 395, 396], "returns": [166, 324, 366, 381], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 325, 382], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 62, "universal_type": "function", "name": "tegra_mipi_cal_clk_enable", "text_snippet": "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NU"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 95, "universal_type": "function", "name": "tegra_mipi_cal_clk_disable", "text_snippet": "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_N"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 128, "universal_type": "function", "name": "tegra_mipi_cal", "text_snippet": "static inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned"}, {"node_id": 134, "universal_type": "function", "name": "tegra_mipi_cal", "text_snippet": "tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)"}, {"node_id": 176, "universal_type": "function", "name": "tegra_mipi_cal_write", "text_snippet": "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_init_sw(struct tegra_dc *dc)"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_destroy(struct tegra_dc *dc)"}, {"node_id": 275, "universal_type": "function", "name": "tegra_mipi_cal_clk_enable", "text_snippet": "static inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}"}, {"node_id": 279, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 289, "universal_type": "function", "name": "tegra_mipi_cal_clk_disable", "text_snippet": "static inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}"}, {"node_id": 293, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 303, "universal_type": "function", "name": "tegra_mipi_cal", "text_snippet": "static inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsign"}, {"node_id": 309, "universal_type": "function", "name": "tegra_mipi_cal", "text_snippet": "tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)"}, {"node_id": 326, "universal_type": "function", "name": "tegra_mipi_cal_write", "text_snippet": "static inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t"}, {"node_id": 330, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long r"}, {"node_id": 350, "universal_type": "function", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}"}, {"node_id": 356, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_init_sw(struct tegra_dc *dc)"}, {"node_id": 369, "universal_type": "function", "name": "tegra_mipi_cal_init_hw", "text_snippet": "int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}"}, {"node_id": 371, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)"}, {"node_id": 383, "universal_type": "function", "name": "tegra_mipi_cal_destroy", "text_snippet": "void tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}"}, {"node_id": 385, "universal_type": "function", "name": "unknown", "text_snippet": "tegra_mipi_cal_destroy(struct tegra_dc *dc)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal {\n\tstruct tegra_dc *dc;\n\tstruct resource *res;\n\tstruct resource *base_res;\n\tst"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 13, "universal_type": "class", "name": "tegra_dc", "text_snippet": "struct tegra_dc"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 20, "universal_type": "class", "name": "resource", "text_snippet": "struct resource"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 27, "universal_type": "class", "name": "resource", "text_snippet": "struct resource"}, {"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 34, "universal_type": "class", "name": "clk", "text_snippet": "struct clk"}, {"node_id": 35, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 41, "universal_type": "class", "name": "clk", "text_snippet": "struct clk"}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 55, "universal_type": "class", "name": "mutex", "text_snippet": "struct mutex"}, {"node_id": 56, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 63, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 70, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 71, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 96, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 103, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 129, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 138, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 139, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 177, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 184, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 185, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 228, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 230, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 231, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 239, "universal_type": "class", "name": "tegra_dc", "text_snippet": "struct tegra_dc"}, {"node_id": 240, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 246, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 253, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 254, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 260, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 267, "universal_type": "class", "name": "tegra_dc", "text_snippet": "struct tegra_dc"}, {"node_id": 268, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 276, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 283, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 284, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 290, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 297, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 298, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 304, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 313, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 314, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 327, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 334, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 335, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 351, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 352, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 360, "universal_type": "class", "name": "tegra_dc", "text_snippet": "struct tegra_dc"}, {"node_id": 361, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 375, "universal_type": "class", "name": "tegra_mipi_cal", "text_snippet": "struct tegra_mipi_cal"}, {"node_id": 376, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 389, "universal_type": "class", "name": "tegra_dc", "text_snippet": "struct tegra_dc"}, {"node_id": 390, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"mipi_cal_regs.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * drivers/video/tegra/dc/mipi_cal.h\n *\n * Copyright (c) 2012-2013, NVIDIA CORPORATION, All rights reserved.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those terms.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n */\n\n#ifndef __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n#define __DRIVERS_VIDEO_TEGRA_DC_MIPI_CAL_H__\n\n#include \"mipi_cal_regs.h\"\n\nstruct tegra_mipi_cal {\n\tstruct tegra_dc *dc;\n\tstruct resource *res;\n\tstruct resource *base_res;\n\tstruct clk *clk;\n\tstruct clk *fixed_clk;\n\tvoid __iomem *base;\n\tstruct mutex lock;\n};\n\n#ifdef CONFIG_TEGRA_MIPI_CAL\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_prepare_enable(mipi_cal->fixed_clk);\n\tclk_prepare_enable(mipi_cal->clk);\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal));\n\tclk_disable_unprepare(mipi_cal->clk);\n\tclk_disable_unprepare(mipi_cal->fixed_clk);\n}\n\n/* reg is word offset */\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\treturn readl(mipi_cal->base + reg);\n}\n\n/* reg is word offset */\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\t\tunsigned long reg)\n{\n\tBUG_ON(IS_ERR_OR_NULL(mipi_cal) ||\n\t\t!tegra_is_clk_enabled(mipi_cal->clk));\n\twritel(val, mipi_cal->base + reg);\n}\n\nextern struct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc);\nextern int tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal);\nextern void tegra_mipi_cal_destroy(struct tegra_dc *dc);\n#else\nstatic inline void tegra_mipi_cal_clk_enable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline void tegra_mipi_cal_clk_disable(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n}\n\nstatic inline unsigned long tegra_mipi_cal_read(\n\t\t\t\t\t\tstruct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nstatic inline void tegra_mipi_cal_write(struct tegra_mipi_cal *mipi_cal,\n\t\t\t\t\t\tunsigned long val,\n\t\t\t\t\t\tunsigned long reg)\n{\n\t/* dummy */\n}\n\nstruct tegra_mipi_cal *tegra_mipi_cal_init_sw(struct tegra_dc *dc)\n{\n\t/* dummy */\n\treturn NULL;\n}\n\nint tegra_mipi_cal_init_hw(struct tegra_mipi_cal *mipi_cal)\n{\n\t/* dummy */\n\treturn 0;\n}\n\nvoid tegra_mipi_cal_destroy(struct tegra_dc *dc)\n{\n\t/* dummy */\n}\n#endif\n#endif\n"}
186
c
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // license: HDF5Application/license.txt // // Main author: <NAME>, https://github.com/msandre // /** @file hdf5_nodal_solution_step_variables_io.h * @brief Methods for storing and retrieving the storage layout for nodal variables in an HDF5 file. */ #if !defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED) #define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED // System includes #include <string> // External includes // Project includes #include "includes/define.h" #include "includes/model_part.h" #include "containers/variables_list.h" // Application includes #include "hdf5_application_define.h" namespace Kratos { namespace HDF5 { class File; namespace Internals { ///@addtogroup HDF5Application ///@{ void WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart); void ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart); void WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize); void ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart); ///@} addtogroup } // namespace Internals. } // namespace HDF5. } // namespace Kratos. #endif // KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED defined
33.07
43
(translation_unit) "// | / |\n// ' / __| _` | __| _ \ __|\n// . \ | ( | | ( |\__ `\n// _|\_\_| \__,_|\__|\___/ ____/\n// Multi-Physics\n//\n// License: BSD License\n// license: HDF5Application/license.txt\n//\n// Main author: <NAME>, https://github.com/msandre\n//\n\n/** @file hdf5_nodal_solution_step_variables_io.h\n * @brief Methods for storing and retrieving the storage layout for nodal variables in an HDF5 file.\n */\n\n#if !defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)\n#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n\n// System includes\n#include <string>\n\n// External includes\n\n// Project includes\n#include "includes/define.h"\n#include "includes/model_part.h"\n#include "containers/variables_list.h"\n\n// Application includes\n#include "hdf5_application_define.h"\n\nnamespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n} // namespace Kratos.\n\n#endif // KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED defined\n" (comment) "// | / |" (comment) "// ' / __| _` | __| _ \ __|" (comment) "// . \ | ( | | ( |\__ `" (comment) "// _|\_\_| \__,_|\__|\___/ ____/" (comment) "// Multi-Physics" (comment) "//" (comment) "// License: BSD License" (comment) "// license: HDF5Application/license.txt" (comment) "//" (comment) "// Main author: <NAME>, https://github.com/msandre" (comment) "//" (comment) "/** @file hdf5_nodal_solution_step_variables_io.h\n * @brief Methods for storing and retrieving the storage layout for nodal variables in an HDF5 file.\n */" (preproc_if) "#if !defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)\n#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n\n// System includes\n#include <string>\n\n// External includes\n\n// Project includes\n#include "includes/define.h"\n#include "includes/model_part.h"\n#include "containers/variables_list.h"\n\n// Application includes\n#include "hdf5_application_define.h"\n\nnamespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n} // namespace Kratos.\n\n#endif" (#if) "#if" (unary_expression) "!defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)" (!) "!" (preproc_defined) "defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)" (defined) "defined" (() "(" (identifier) "KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED" ()) ")" ( ) "\n" (preproc_def) "#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n" (#define) "#define" (identifier) "KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED" (comment) "// System includes" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (comment) "// External includes" (comment) "// Project includes" (preproc_include) "#include "includes/define.h"\n" (#include) "#include" (string_literal) ""includes/define.h"" (") """ (string_content) "includes/define.h" (") """ (preproc_include) "#include "includes/model_part.h"\n" (#include) "#include" (string_literal) ""includes/model_part.h"" (") """ (string_content) "includes/model_part.h" (") """ (preproc_include) "#include "containers/variables_list.h"\n" (#include) "#include" (string_literal) ""containers/variables_list.h"" (") """ (string_content) "containers/variables_list.h" (") """ (comment) "// Application includes" (preproc_include) "#include "hdf5_application_define.h"\n" (#include) "#include" (string_literal) ""hdf5_application_define.h"" (") """ (string_content) "hdf5_application_define.h" (") """ (function_definition) "namespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n}" (type_identifier) "namespace" (identifier) "Kratos" (compound_statement) "{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n}" ({) "{" (function_definition) "namespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n}" (type_identifier) "namespace" (identifier) "HDF5" (compound_statement) "{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n}" ({) "{" (declaration) "class File;" (type_identifier) "class" (identifier) "File" (;) ";" (function_definition) "namespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n}" (type_identifier) "namespace" (identifier) "Internals" (compound_statement) "{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n}" ({) "{" (comment) "///@addtogroup HDF5Application" (comment) "///@{" (declaration) "void WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);" (primitive_type) "void" (function_declarator) "WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart)" (identifier) "WriteVariablesList" (parameter_list) "(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart)" (() "(" (parameter_declaration) "File& rFile" (type_identifier) "File" (ERROR) "&" (&) "&" (identifier) "rFile" (,) "," (parameter_declaration) "std::string const& rPrefix" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "rPrefix" (,) "," (parameter_declaration) "ModelPart const& rModelPart" (type_identifier) "ModelPart" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "rModelPart" ()) ")" (;) ";" (declaration) "void ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);" (primitive_type) "void" (function_declarator) "ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)" (identifier) "ReadAndAssignVariablesList" (parameter_list) "(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)" (() "(" (parameter_declaration) "File& rFile" (type_identifier) "File" (ERROR) "&" (&) "&" (identifier) "rFile" (,) "," (parameter_declaration) "std::string const& rPrefix" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "rPrefix" (,) "," (parameter_declaration) "ModelPart& rModelPart" (type_identifier) "ModelPart" (ERROR) "&" (&) "&" (identifier) "rModelPart" ()) ")" (;) ";" (declaration) "void WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);" (primitive_type) "void" (function_declarator) "WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize)" (identifier) "WriteBufferSize" (parameter_list) "(File& rFile, std::string const& rPrefix, int BufferSize)" (() "(" (parameter_declaration) "File& rFile" (type_identifier) "File" (ERROR) "&" (&) "&" (identifier) "rFile" (,) "," (parameter_declaration) "std::string const& rPrefix" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "rPrefix" (,) "," (parameter_declaration) "int BufferSize" (primitive_type) "int" (identifier) "BufferSize" ()) ")" (;) ";" (declaration) "void ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);" (primitive_type) "void" (function_declarator) "ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)" (identifier) "ReadAndAssignBufferSize" (parameter_list) "(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)" (() "(" (parameter_declaration) "File& rFile" (type_identifier) "File" (ERROR) "&" (&) "&" (identifier) "rFile" (,) "," (parameter_declaration) "std::string const& rPrefix" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "rPrefix" (,) "," (parameter_declaration) "ModelPart& rModelPart" (type_identifier) "ModelPart" (ERROR) "&" (&) "&" (identifier) "rModelPart" ()) ")" (;) ";" (comment) "///@} addtogroup" (}) "}" (comment) "// namespace Internals." (}) "}" (comment) "// namespace HDF5." (}) "}" (comment) "// namespace Kratos." (#endif) "#endif" (comment) "// KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED defined"
203
11
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.07, "nodes": 102, "errors": 0, "source_hash": "7b527d478089f713b66ba2e8aaaf4cfed2dda60b6f0e6f4e05d613054809254f", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)\n#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n\n// System includes\n#include <string>\n\n// External includes\n\n// Project includes\n#include \"includes/define.h\"\n#include \"includes/model_part.h\"\n#include \"containers/variables_list.h\"\n\n// Application includes\n#include \"hdf5_application_define.h\"\n\nnamespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n} // namespace Kratos.\n\n#endif", "parent": null, "children": [1, 2, 7, 8, 11, 14, 17, 20, 23, 26, 101], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 1, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 3}}, {"id": 2, "type": "unary_expression", "text": "!defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)", "parent": 0, "children": [3, 4], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 69}}, {"id": 3, "type": "!", "text": "!", "parent": 2, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 4, "type": "preproc_defined", "text": "defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)", "parent": 2, "children": [5, 6], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 69}}, {"id": 5, "type": "defined", "text": "defined", "parent": 4, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 12}}, {"id": 6, "type": "identifier", "text": "KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED", "parent": 4, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 68}}, {"id": 7, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 16, "column": 69}, "end_point": {"row": 17, "column": 0}}, {"id": 8, "type": "preproc_def", "text": "#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n", "parent": 0, "children": [9, 10], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 10, "type": "identifier", "text": "KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED", "parent": 8, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 63}}, {"id": 11, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [12, 13], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<string>", "parent": 11, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 14, "type": "preproc_include", "text": "#include \"includes/define.h\"\n", "parent": 0, "children": [15, 16], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 16, "type": "string_literal", "text": "\"includes/define.h\"", "parent": 14, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 28}}, {"id": 17, "type": "preproc_include", "text": "#include \"includes/model_part.h\"\n", "parent": 0, "children": [18, 19], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 19, "type": "string_literal", "text": "\"includes/model_part.h\"", "parent": 17, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 32}}, {"id": 20, "type": "preproc_include", "text": "#include \"containers/variables_list.h\"\n", "parent": 0, "children": [21, 22], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 22, "type": "string_literal", "text": "\"containers/variables_list.h\"", "parent": 20, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 38}}, {"id": 23, "type": "preproc_include", "text": "#include \"hdf5_application_define.h\"\n", "parent": 0, "children": [24, 25], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 25, "type": "string_literal", "text": "\"hdf5_application_define.h\"", "parent": 23, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 36}}, {"id": 26, "type": "function_definition", "text": "namespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n}", "parent": 0, "children": [27, 28], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 27, "type": "type_identifier", "text": "namespace", "parent": 26, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 9}}, {"id": 28, "type": "identifier", "text": "Kratos", "parent": 26, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 16}}, {"id": 29, "type": "function_definition", "text": "namespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n}", "parent": 26, "children": [30, 31], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 30, "type": "type_identifier", "text": "namespace", "parent": 29, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 9}}, {"id": 31, "type": "identifier", "text": "HDF5", "parent": 29, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 32, "type": "declaration", "text": "class File;", "parent": 29, "children": [33], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 11}}, {"id": 33, "type": "identifier", "text": "File", "parent": 32, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 10}}, {"id": 34, "type": "function_definition", "text": "namespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n}", "parent": 29, "children": [35, 36], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 35, "type": "type_identifier", "text": "namespace", "parent": 34, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 9}}, {"id": 36, "type": "identifier", "text": "Internals", "parent": 34, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 19}}, {"id": 37, "type": "declaration", "text": "void WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);", "parent": 34, "children": [38, 39], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 94}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 39, "type": "function_declarator", "text": "WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart)", "parent": 37, "children": [40, 41], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 93}}, {"id": 40, "type": "identifier", "text": "WriteVariablesList", "parent": 39, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 23}}, {"id": 41, "type": "parameter_list", "text": "(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart)", "parent": 39, "children": [42, 45, 50], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 93}}, {"id": 42, "type": "parameter_declaration", "text": "File& rFile", "parent": 41, "children": [43, 44], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 35}}, {"id": 43, "type": "type_identifier", "text": "File", "parent": 42, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 28}}, {"id": 44, "type": "identifier", "text": "rFile", "parent": 42, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 35}}, {"id": 45, "type": "parameter_declaration", "text": "std::string const& rPrefix", "parent": 41, "children": [46, 47, 49], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 63}}, {"id": 46, "type": "type_identifier", "text": "std", "parent": 45, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 40}}, {"id": 47, "type": "ERROR", "text": "::string const&", "parent": 45, "children": [48], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 55}}, {"id": 48, "type": "identifier", "text": "string", "parent": 47, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 48}}, {"id": 49, "type": "identifier", "text": "rPrefix", "parent": 45, "children": [], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 63}}, {"id": 50, "type": "parameter_declaration", "text": "ModelPart const& rModelPart", "parent": 41, "children": [51, 52], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 92}}, {"id": 51, "type": "type_identifier", "text": "ModelPart", "parent": 50, "children": [], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 74}}, {"id": 52, "type": "identifier", "text": "rModelPart", "parent": 50, "children": [], "start_point": {"row": 44, "column": 82}, "end_point": {"row": 44, "column": 92}}, {"id": 53, "type": "declaration", "text": "void ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);", "parent": 34, "children": [54, 55], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 96}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 55, "type": "function_declarator", "text": "ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)", "parent": 53, "children": [56, 57], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 95}}, {"id": 56, "type": "identifier", "text": "ReadAndAssignVariablesList", "parent": 55, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 31}}, {"id": 57, "type": "parameter_list", "text": "(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)", "parent": 55, "children": [58, 61, 66], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 95}}, {"id": 58, "type": "parameter_declaration", "text": "File& rFile", "parent": 57, "children": [59, 60], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 43}}, {"id": 59, "type": "type_identifier", "text": "File", "parent": 58, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 36}}, {"id": 60, "type": "identifier", "text": "rFile", "parent": 58, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 43}}, {"id": 61, "type": "parameter_declaration", "text": "std::string const& rPrefix", "parent": 57, "children": [62, 63, 65], "start_point": {"row": 46, "column": 45}, "end_point": {"row": 46, "column": 71}}, {"id": 62, "type": "type_identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 46, "column": 45}, "end_point": {"row": 46, "column": 48}}, {"id": 63, "type": "ERROR", "text": "::string const&", "parent": 61, "children": [64], "start_point": {"row": 46, "column": 48}, "end_point": {"row": 46, "column": 63}}, {"id": 64, "type": "identifier", "text": "string", "parent": 63, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 56}}, {"id": 65, "type": "identifier", "text": "rPrefix", "parent": 61, "children": [], "start_point": {"row": 46, "column": 64}, "end_point": {"row": 46, "column": 71}}, {"id": 66, "type": "parameter_declaration", "text": "ModelPart& rModelPart", "parent": 57, "children": [67, 68], "start_point": {"row": 46, "column": 73}, "end_point": {"row": 46, "column": 94}}, {"id": 67, "type": "type_identifier", "text": "ModelPart", "parent": 66, "children": [], "start_point": {"row": 46, "column": 73}, "end_point": {"row": 46, "column": 82}}, {"id": 68, "type": "identifier", "text": "rModelPart", "parent": 66, "children": [], "start_point": {"row": 46, "column": 84}, "end_point": {"row": 46, "column": 94}}, {"id": 69, "type": "declaration", "text": "void WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);", "parent": 34, "children": [70, 71], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 78}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 4}}, {"id": 71, "type": "function_declarator", "text": "WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize)", "parent": 69, "children": [72, 73], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 77}}, {"id": 72, "type": "identifier", "text": "WriteBufferSize", "parent": 71, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 20}}, {"id": 73, "type": "parameter_list", "text": "(File& rFile, std::string const& rPrefix, int BufferSize)", "parent": 71, "children": [74, 77, 82], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 77}}, {"id": 74, "type": "parameter_declaration", "text": "File& rFile", "parent": 73, "children": [75, 76], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 32}}, {"id": 75, "type": "type_identifier", "text": "File", "parent": 74, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 25}}, {"id": 76, "type": "identifier", "text": "rFile", "parent": 74, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 32}}, {"id": 77, "type": "parameter_declaration", "text": "std::string const& rPrefix", "parent": 73, "children": [78, 79, 81], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 60}}, {"id": 78, "type": "type_identifier", "text": "std", "parent": 77, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 37}}, {"id": 79, "type": "ERROR", "text": "::string const&", "parent": 77, "children": [80], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 52}}, {"id": 80, "type": "identifier", "text": "string", "parent": 79, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 45}}, {"id": 81, "type": "identifier", "text": "rPrefix", "parent": 77, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 60}}, {"id": 82, "type": "parameter_declaration", "text": "int BufferSize", "parent": 73, "children": [83, 84], "start_point": {"row": 48, "column": 62}, "end_point": {"row": 48, "column": 76}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 48, "column": 62}, "end_point": {"row": 48, "column": 65}}, {"id": 84, "type": "identifier", "text": "BufferSize", "parent": 82, "children": [], "start_point": {"row": 48, "column": 66}, "end_point": {"row": 48, "column": 76}}, {"id": 85, "type": "declaration", "text": "void ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);", "parent": 34, "children": [86, 87], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 93}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 4}}, {"id": 87, "type": "function_declarator", "text": "ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)", "parent": 85, "children": [88, 89], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 92}}, {"id": 88, "type": "identifier", "text": "ReadAndAssignBufferSize", "parent": 87, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 28}}, {"id": 89, "type": "parameter_list", "text": "(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)", "parent": 87, "children": [90, 93, 98], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 92}}, {"id": 90, "type": "parameter_declaration", "text": "File& rFile", "parent": 89, "children": [91, 92], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 40}}, {"id": 91, "type": "type_identifier", "text": "File", "parent": 90, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 33}}, {"id": 92, "type": "identifier", "text": "rFile", "parent": 90, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 40}}, {"id": 93, "type": "parameter_declaration", "text": "std::string const& rPrefix", "parent": 89, "children": [94, 95, 97], "start_point": {"row": 50, "column": 42}, "end_point": {"row": 50, "column": 68}}, {"id": 94, "type": "type_identifier", "text": "std", "parent": 93, "children": [], "start_point": {"row": 50, "column": 42}, "end_point": {"row": 50, "column": 45}}, {"id": 95, "type": "ERROR", "text": "::string const&", "parent": 93, "children": [96], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 60}}, {"id": 96, "type": "identifier", "text": "string", "parent": 95, "children": [], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 53}}, {"id": 97, "type": "identifier", "text": "rPrefix", "parent": 93, "children": [], "start_point": {"row": 50, "column": 61}, "end_point": {"row": 50, "column": 68}}, {"id": 98, "type": "parameter_declaration", "text": "ModelPart& rModelPart", "parent": 89, "children": [99, 100], "start_point": {"row": 50, "column": 70}, "end_point": {"row": 50, "column": 91}}, {"id": 99, "type": "type_identifier", "text": "ModelPart", "parent": 98, "children": [], "start_point": {"row": 50, "column": 70}, "end_point": {"row": 50, "column": 79}}, {"id": 100, "type": "identifier", "text": "rModelPart", "parent": 98, "children": [], "start_point": {"row": 50, "column": 81}, "end_point": {"row": 50, "column": 91}}, {"id": 101, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}]}, "node_categories": {"declarations": {"functions": [26, 29, 34, 39, 55, 71, 87], "variables": [32, 37, 42, 45, 50, 53, 58, 61, 66, 69, 74, 77, 82, 85, 90, 93, 98], "classes": [], "imports": [11, 12, 14, 15, 17, 18, 20, 21, 23, 24], "modules": [], "enums": []}, "statements": {"expressions": [2], "assignments": [], "loops": [], "conditionals": [0, 1, 6, 10, 27, 28, 30, 31, 33, 35, 36, 40, 43, 44, 46, 48, 49, 51, 52, 56, 59, 60, 62, 64, 65, 67, 68, 72, 75, 76, 78, 80, 81, 84, 88, 91, 92, 94, 96, 97, 99, 100, 101], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [13, 16, 19, 22, 25], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "File;", "text_snippet": "namespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Applicati"}, {"node_id": 29, "universal_type": "function", "name": "File;", "text_snippet": "namespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid Writ"}, {"node_id": 34, "universal_type": "function", "name": "WriteVariablesList", "text_snippet": "namespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart)"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)"}, {"node_id": 71, "universal_type": "function", "name": "BufferSize)", "text_snippet": "WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart)"}], "class_declarations": [], "import_statements": [{"node_id": 11, "text": "#include <string>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include \"includes/define.h\"\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include \"includes/model_part.h\"\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include \"containers/variables_list.h\"\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include \"hdf5_application_define.h\"\n"}, {"node_id": 24, "text": "#include"}]}, "original_source_code": "// | / |\n// ' / __| _` | __| _ \\ __|\n// . \\ | ( | | ( |\\__ `\n// _|\\_\\_| \\__,_|\\__|\\___/ ____/\n// Multi-Physics\n//\n// License:\t\t BSD License\n//\t\t\t\t\t license: HDF5Application/license.txt\n//\n// Main author: <NAME>, https://github.com/msandre\n//\n\n/** @file hdf5_nodal_solution_step_variables_io.h\n * @brief Methods for storing and retrieving the storage layout for nodal variables in an HDF5 file.\n */\n\n#if !defined(KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED)\n#define KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED\n\n// System includes\n#include <string>\n\n// External includes\n\n// Project includes\n#include \"includes/define.h\"\n#include \"includes/model_part.h\"\n#include \"containers/variables_list.h\"\n\n// Application includes\n#include \"hdf5_application_define.h\"\n\nnamespace Kratos\n{\nnamespace HDF5\n{\n\nclass File;\n\nnamespace Internals\n{\n///@addtogroup HDF5Application\n///@{\n\nvoid WriteVariablesList(File& rFile, std::string const& rPrefix, ModelPart const& rModelPart);\n\nvoid ReadAndAssignVariablesList(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\nvoid WriteBufferSize(File& rFile, std::string const& rPrefix, int BufferSize);\n\nvoid ReadAndAssignBufferSize(File& rFile, std::string const& rPrefix, ModelPart& rModelPart);\n\n///@} addtogroup\n} // namespace Internals.\n} // namespace HDF5.\n} // namespace Kratos.\n\n#endif // KRATOS_HDF5_NODAL_SOLUTION_STEP_VARIABLES_IO_H_INCLUDED defined\n"}
187
c
// SPDX-License-Identifier: GPL-2.0+ /* * WORK Microwave work_92105 board support * * (C) Copyright 2014 DENX Software Engineering GmbH * Written-by: <NAME> <<EMAIL>> */ #include <common.h> #include <init.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> #include <asm/arch/cpu.h> #include <asm/arch/clk.h> #include <asm/arch/emc.h> #include <asm/arch/wdt.h> #include <asm/gpio.h> #include <spl.h> #include "work_92105_display.h" DECLARE_GLOBAL_DATA_PTR; static struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE; static struct wdt_regs *wdt = (struct wdt_regs *)WDT_BASE; void reset_periph(void) { setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG); writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl); udelay(150); writel(0, &wdt->mctrl); clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG); } int board_early_init_f(void) { /* initialize serial port for console */ lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART); /* enable I2C, SSP, MAC, NAND */ lpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */ lpc32xx_ssp_init(); lpc32xx_mac_init(); lpc32xx_mlc_nand_init(); /* Display must wait until after relocation and devices init */ return 0; } #define GPO_19 115 int board_early_init_r(void) { /* Set NAND !WP to 1 through GPO_19 */ gpio_request(GPO_19, "NAND_nWP"); gpio_direction_output(GPO_19, 1); #ifdef CONFIG_DEPRECATED /* initialize display */ work_92105_display_init(); #endif return 0; } int board_init(void) { reset_periph(); /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; return 0; } int dram_init(void) { gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_SIZE); return 0; }
24.86
66
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * WORK Microwave work_92105 board support\n *\n * (C) Copyright 2014 DENX Software Engineering GmbH\n * Written-by: <NAME> <<EMAIL>>\n */\n\n#include <common.h>\n#include <init.h>\n#include <asm/io.h>\n#include <asm/arch/sys_proto.h>\n#include <asm/arch/cpu.h>\n#include <asm/arch/clk.h>\n#include <asm/arch/emc.h>\n#include <asm/arch/wdt.h>\n#include <asm/gpio.h>\n#include <spl.h>\n#include "work_92105_display.h"\n\nDECLARE_GLOBAL_DATA_PTR;\n\nstatic struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;\nstatic struct wdt_regs *wdt = (struct wdt_regs *)WDT_BASE;\n\nvoid reset_periph(void)\n{\n setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);\n udelay(150);\n writel(0, &wdt->mctrl);\n clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n}\n\nint board_early_init_f(void)\n{\n /* initialize serial port for console */\n lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);\n /* enable I2C, SSP, MAC, NAND */\n lpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */\n lpc32xx_ssp_init();\n lpc32xx_mac_init();\n lpc32xx_mlc_nand_init();\n /* Display must wait until after relocation and devices init */\n return 0;\n}\n\n#define GPO_19 115\n\nint board_early_init_r(void)\n{\n /* Set NAND !WP to 1 through GPO_19 */\n gpio_request(GPO_19, "NAND_nWP");\n gpio_direction_output(GPO_19, 1);\n\n#ifdef CONFIG_DEPRECATED\n /* initialize display */\n work_92105_display_init();\n#endif\n\n return 0;\n}\n\nint board_init(void)\n{\n reset_periph();\n /* adress of boot parameters */\n gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;\n\n return 0;\n}\n\nint dram_init(void)\n{\n gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE);\n\n return 0;\n}\n" (comment) "// SPDX-License-Identifier: GPL-2.0+" (comment) "/*\n * WORK Microwave work_92105 board support\n *\n * (C) Copyright 2014 DENX Software Engineering GmbH\n * Written-by: <NAME> <<EMAIL>>\n */" (preproc_include) "#include <common.h>\n" (#include) "#include" (system_lib_string) "<common.h>" (preproc_include) "#include <init.h>\n" (#include) "#include" (system_lib_string) "<init.h>" (preproc_include) "#include <asm/io.h>\n" (#include) "#include" (system_lib_string) "<asm/io.h>" (preproc_include) "#include <asm/arch/sys_proto.h>\n" (#include) "#include" (system_lib_string) "<asm/arch/sys_proto.h>" (preproc_include) "#include <asm/arch/cpu.h>\n" (#include) "#include" (system_lib_string) "<asm/arch/cpu.h>" (preproc_include) "#include <asm/arch/clk.h>\n" (#include) "#include" (system_lib_string) "<asm/arch/clk.h>" (preproc_include) "#include <asm/arch/emc.h>\n" (#include) "#include" (system_lib_string) "<asm/arch/emc.h>" (preproc_include) "#include <asm/arch/wdt.h>\n" (#include) "#include" (system_lib_string) "<asm/arch/wdt.h>" (preproc_include) "#include <asm/gpio.h>\n" (#include) "#include" (system_lib_string) "<asm/gpio.h>" (preproc_include) "#include <spl.h>\n" (#include) "#include" (system_lib_string) "<spl.h>" (preproc_include) "#include "work_92105_display.h"\n" (#include) "#include" (string_literal) ""work_92105_display.h"" (") """ (string_content) "work_92105_display.h" (") """ (expression_statement) "DECLARE_GLOBAL_DATA_PTR;" (identifier) "DECLARE_GLOBAL_DATA_PTR" (;) ";" (declaration) "static struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct clk_pm_regs" (struct) "struct" (type_identifier) "clk_pm_regs" (init_declarator) "*clk = (struct clk_pm_regs *)CLK_PM_BASE" (pointer_declarator) "*clk" (*) "*" (identifier) "clk" (=) "=" (cast_expression) "(struct clk_pm_regs *)CLK_PM_BASE" (() "(" (type_descriptor) "struct clk_pm_regs *" (struct_specifier) "struct clk_pm_regs" (struct) "struct" (type_identifier) "clk_pm_regs" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "CLK_PM_BASE" (;) ";" (declaration) "static struct wdt_regs *wdt = (struct wdt_regs *)WDT_BASE;" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct wdt_regs" (struct) "struct" (type_identifier) "wdt_regs" (init_declarator) "*wdt = (struct wdt_regs *)WDT_BASE" (pointer_declarator) "*wdt" (*) "*" (identifier) "wdt" (=) "=" (cast_expression) "(struct wdt_regs *)WDT_BASE" (() "(" (type_descriptor) "struct wdt_regs *" (struct_specifier) "struct wdt_regs" (struct) "struct" (type_identifier) "wdt_regs" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "WDT_BASE" (;) ";" (function_definition) "void reset_periph(void)\n{\n setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);\n udelay(150);\n writel(0, &wdt->mctrl);\n clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n}" (primitive_type) "void" (function_declarator) "reset_periph(void)" (identifier) "reset_periph" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);\n udelay(150);\n writel(0, &wdt->mctrl);\n clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n}" ({) "{" (expression_statement) "setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);" (call_expression) "setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)" (identifier) "setbits_le32" (argument_list) "(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)" (() "(" (pointer_expression) "&clk->timclk_ctrl" (&) "&" (field_expression) "clk->timclk_ctrl" (identifier) "clk" (->) "->" (field_identifier) "timclk_ctrl" (,) "," (identifier) "CLK_TIMCLK_WATCHDOG" ()) ")" (;) ";" (expression_statement) "writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);" (call_expression) "writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl)" (identifier) "writel" (argument_list) "(WDTIM_MCTRL_RESFRC1, &wdt->mctrl)" (() "(" (identifier) "WDTIM_MCTRL_RESFRC1" (,) "," (pointer_expression) "&wdt->mctrl" (&) "&" (field_expression) "wdt->mctrl" (identifier) "wdt" (->) "->" (field_identifier) "mctrl" ()) ")" (;) ";" (expression_statement) "udelay(150);" (call_expression) "udelay(150)" (identifier) "udelay" (argument_list) "(150)" (() "(" (number_literal) "150" ()) ")" (;) ";" (expression_statement) "writel(0, &wdt->mctrl);" (call_expression) "writel(0, &wdt->mctrl)" (identifier) "writel" (argument_list) "(0, &wdt->mctrl)" (() "(" (number_literal) "0" (,) "," (pointer_expression) "&wdt->mctrl" (&) "&" (field_expression) "wdt->mctrl" (identifier) "wdt" (->) "->" (field_identifier) "mctrl" ()) ")" (;) ";" (expression_statement) "clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);" (call_expression) "clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)" (identifier) "clrbits_le32" (argument_list) "(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)" (() "(" (pointer_expression) "&clk->timclk_ctrl" (&) "&" (field_expression) "clk->timclk_ctrl" (identifier) "clk" (->) "->" (field_identifier) "timclk_ctrl" (,) "," (identifier) "CLK_TIMCLK_WATCHDOG" ()) ")" (;) ";" (}) "}" (function_definition) "int board_early_init_f(void)\n{\n /* initialize serial port for console */\n lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);\n /* enable I2C, SSP, MAC, NAND */\n lpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */\n lpc32xx_ssp_init();\n lpc32xx_mac_init();\n lpc32xx_mlc_nand_init();\n /* Display must wait until after relocation and devices init */\n return 0;\n}" (primitive_type) "int" (function_declarator) "board_early_init_f(void)" (identifier) "board_early_init_f" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n /* initialize serial port for console */\n lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);\n /* enable I2C, SSP, MAC, NAND */\n lpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */\n lpc32xx_ssp_init();\n lpc32xx_mac_init();\n lpc32xx_mlc_nand_init();\n /* Display must wait until after relocation and devices init */\n return 0;\n}" ({) "{" (comment) "/* initialize serial port for console */" (expression_statement) "lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);" (call_expression) "lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART)" (identifier) "lpc32xx_uart_init" (argument_list) "(CONFIG_SYS_LPC32XX_UART)" (() "(" (identifier) "CONFIG_SYS_LPC32XX_UART" ()) ")" (;) ";" (comment) "/* enable I2C, SSP, MAC, NAND */" (expression_statement) "lpc32xx_i2c_init(1);" (call_expression) "lpc32xx_i2c_init(1)" (identifier) "lpc32xx_i2c_init" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (comment) "/* only I2C1 has devices, I2C2 has none */" (expression_statement) "lpc32xx_ssp_init();" (call_expression) "lpc32xx_ssp_init()" (identifier) "lpc32xx_ssp_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "lpc32xx_mac_init();" (call_expression) "lpc32xx_mac_init()" (identifier) "lpc32xx_mac_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "lpc32xx_mlc_nand_init();" (call_expression) "lpc32xx_mlc_nand_init()" (identifier) "lpc32xx_mlc_nand_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Display must wait until after relocation and devices init */" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (preproc_def) "#define GPO_19 115\n" (#define) "#define" (identifier) "GPO_19" (preproc_arg) "115" (function_definition) "int board_early_init_r(void)\n{\n /* Set NAND !WP to 1 through GPO_19 */\n gpio_request(GPO_19, "NAND_nWP");\n gpio_direction_output(GPO_19, 1);\n\n#ifdef CONFIG_DEPRECATED\n /* initialize display */\n work_92105_display_init();\n#endif\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "board_early_init_r(void)" (identifier) "board_early_init_r" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n /* Set NAND !WP to 1 through GPO_19 */\n gpio_request(GPO_19, "NAND_nWP");\n gpio_direction_output(GPO_19, 1);\n\n#ifdef CONFIG_DEPRECATED\n /* initialize display */\n work_92105_display_init();\n#endif\n\n return 0;\n}" ({) "{" (comment) "/* Set NAND !WP to 1 through GPO_19 */" (expression_statement) "gpio_request(GPO_19, "NAND_nWP");" (call_expression) "gpio_request(GPO_19, "NAND_nWP")" (identifier) "gpio_request" (argument_list) "(GPO_19, "NAND_nWP")" (() "(" (identifier) "GPO_19" (,) "," (string_literal) ""NAND_nWP"" (") """ (string_content) "NAND_nWP" (") """ ()) ")" (;) ";" (expression_statement) "gpio_direction_output(GPO_19, 1);" (call_expression) "gpio_direction_output(GPO_19, 1)" (identifier) "gpio_direction_output" (argument_list) "(GPO_19, 1)" (() "(" (identifier) "GPO_19" (,) "," (number_literal) "1" ()) ")" (;) ";" (preproc_ifdef) "#ifdef CONFIG_DEPRECATED\n /* initialize display */\n work_92105_display_init();\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_DEPRECATED" (comment) "/* initialize display */" (expression_statement) "work_92105_display_init();" (call_expression) "work_92105_display_init()" (identifier) "work_92105_display_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int board_init(void)\n{\n reset_periph();\n /* adress of boot parameters */\n gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "board_init(void)" (identifier) "board_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n reset_periph();\n /* adress of boot parameters */\n gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;\n\n return 0;\n}" ({) "{" (expression_statement) "reset_periph();" (call_expression) "reset_periph()" (identifier) "reset_periph" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* adress of boot parameters */" (expression_statement) "gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;" (assignment_expression) "gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100" (field_expression) "gd->bd->bi_boot_params" (field_expression) "gd->bd" (identifier) "gd" (->) "->" (field_identifier) "bd" (->) "->" (field_identifier) "bi_boot_params" (=) "=" (binary_expression) "CONFIG_SYS_SDRAM_BASE + 0x100" (identifier) "CONFIG_SYS_SDRAM_BASE" (+) "+" (number_literal) "0x100" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int dram_init(void)\n{\n gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "dram_init(void)" (identifier) "dram_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE);\n\n return 0;\n}" ({) "{" (expression_statement) "gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE);" (assignment_expression) "gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE)" (field_expression) "gd->ram_size" (identifier) "gd" (->) "->" (field_identifier) "ram_size" (=) "=" (call_expression) "get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE)" (identifier) "get_ram_size" (argument_list) "((void *)CONFIG_SYS_SDRAM_BASE,\n CONFIG_SYS_SDRAM_SIZE)" (() "(" (cast_expression) "(void *)CONFIG_SYS_SDRAM_BASE" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "CONFIG_SYS_SDRAM_BASE" (,) "," (identifier) "CONFIG_SYS_SDRAM_SIZE" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
357
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 24.86, "nodes": 214, "errors": 0, "source_hash": "d7208fa06cfb7ea754686e4cccc0a34d40cde7c886cc325c3ea5321f615111a0", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <common.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": "<common.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <init.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": "<init.h>", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <asm/io.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": "<asm/io.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <asm/arch/sys_proto.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": "system_lib_string", "text": "<asm/arch/sys_proto.h>", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 31}}, {"id": 12, "type": "preproc_include", "text": "#include <asm/arch/cpu.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<asm/arch/cpu.h>", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <asm/arch/clk.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<asm/arch/clk.h>", "parent": 15, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 25}}, {"id": 18, "type": "preproc_include", "text": "#include <asm/arch/emc.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<asm/arch/emc.h>", "parent": 18, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 25}}, {"id": 21, "type": "preproc_include", "text": "#include <asm/arch/wdt.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<asm/arch/wdt.h>", "parent": 21, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 25}}, {"id": 24, "type": "preproc_include", "text": "#include <asm/gpio.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<asm/gpio.h>", "parent": 24, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 27, "type": "preproc_include", "text": "#include <spl.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<spl.h>", "parent": 27, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 16}}, {"id": 30, "type": "preproc_include", "text": "#include \"work_92105_display.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"work_92105_display.h\"", "parent": 30, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 33, "type": "identifier", "text": "DECLARE_GLOBAL_DATA_PTR", "parent": null, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 23}}, {"id": 34, "type": "declaration", "text": "static struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;", "parent": null, "children": [35, 38], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 67}}, {"id": 35, "type": "struct_specifier", "text": "struct clk_pm_regs", "parent": 34, "children": [36, 37], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 25}}, {"id": 36, "type": "struct", "text": "struct", "parent": 35, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 37, "type": "type_identifier", "text": "clk_pm_regs", "parent": 35, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 25}}, {"id": 38, "type": "init_declarator", "text": "*clk = (struct clk_pm_regs *)CLK_PM_BASE", "parent": 34, "children": [39, 42, 43], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 66}}, {"id": 39, "type": "pointer_declarator", "text": "*clk", "parent": 38, "children": [40, 41], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 30}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 41, "type": "identifier", "text": "clk", "parent": 39, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 30}}, {"id": 42, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 43, "type": "cast_expression", "text": "(struct clk_pm_regs *)CLK_PM_BASE", "parent": 38, "children": [44, 50], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 66}}, {"id": 44, "type": "type_descriptor", "text": "struct clk_pm_regs *", "parent": 43, "children": [45, 48], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 54}}, {"id": 45, "type": "struct_specifier", "text": "struct clk_pm_regs", "parent": 44, "children": [46, 47], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 52}}, {"id": 46, "type": "struct", "text": "struct", "parent": 45, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 40}}, {"id": 47, "type": "type_identifier", "text": "clk_pm_regs", "parent": 45, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 52}}, {"id": 48, "type": "abstract_pointer_declarator", "text": "*", "parent": 44, "children": [49], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 54}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 54}}, {"id": 50, "type": "identifier", "text": "CLK_PM_BASE", "parent": 43, "children": [], "start_point": {"row": 22, "column": 55}, "end_point": {"row": 22, "column": 66}}, {"id": 51, "type": "declaration", "text": "static struct wdt_regs *wdt = (struct wdt_regs *)WDT_BASE;", "parent": null, "children": [52, 55], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 59}}, {"id": 52, "type": "struct_specifier", "text": "struct wdt_regs", "parent": 51, "children": [53, 54], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 22}}, {"id": 53, "type": "struct", "text": "struct", "parent": 52, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 13}}, {"id": 54, "type": "type_identifier", "text": "wdt_regs", "parent": 52, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 22}}, {"id": 55, "type": "init_declarator", "text": "*wdt = (struct wdt_regs *)WDT_BASE", "parent": 51, "children": [56, 59, 60], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 58}}, {"id": 56, "type": "pointer_declarator", "text": "*wdt", "parent": 55, "children": [57, 58], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 28}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 25}}, {"id": 58, "type": "identifier", "text": "wdt", "parent": 56, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 28}}, {"id": 59, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 60, "type": "cast_expression", "text": "(struct wdt_regs *)WDT_BASE", "parent": 55, "children": [61, 67], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 58}}, {"id": 61, "type": "type_descriptor", "text": "struct wdt_regs *", "parent": 60, "children": [62, 65], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 49}}, {"id": 62, "type": "struct_specifier", "text": "struct wdt_regs", "parent": 61, "children": [63, 64], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 47}}, {"id": 63, "type": "struct", "text": "struct", "parent": 62, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 38}}, {"id": 64, "type": "type_identifier", "text": "wdt_regs", "parent": 62, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 47}}, {"id": 65, "type": "abstract_pointer_declarator", "text": "*", "parent": 61, "children": [66], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 49}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 49}}, {"id": 67, "type": "identifier", "text": "WDT_BASE", "parent": 60, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 58}}, {"id": 68, "type": "function_definition", "text": "void reset_periph(void)\n{\n\tsetbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n\twritel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);\n\tudelay(150);\n\twritel(0, &wdt->mctrl);\n\tclrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n}", "parent": null, "children": [69, 70], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 70, "type": "function_declarator", "text": "reset_periph(void)", "parent": 68, "children": [71, 72], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 23}}, {"id": 71, "type": "identifier", "text": "reset_periph", "parent": 70, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 17}}, {"id": 72, "type": "parameter_list", "text": "(void)", "parent": 70, "children": [73], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 23}}, {"id": 73, "type": "parameter_declaration", "text": "void", "parent": 72, "children": [74], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 22}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 22}}, {"id": 75, "type": "call_expression", "text": "setbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)", "parent": 68, "children": [76, 77], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 53}}, {"id": 76, "type": "identifier", "text": "setbits_le32", "parent": 75, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 13}}, {"id": 77, "type": "argument_list", "text": "(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)", "parent": 75, "children": [78, 82], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 53}}, {"id": 78, "type": "pointer_expression", "text": "&clk->timclk_ctrl", "parent": 77, "children": [79], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 31}}, {"id": 79, "type": "field_expression", "text": "clk->timclk_ctrl", "parent": 78, "children": [80, 81], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 31}}, {"id": 80, "type": "identifier", "text": "clk", "parent": 79, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 18}}, {"id": 81, "type": "field_identifier", "text": "timclk_ctrl", "parent": 79, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 31}}, {"id": 82, "type": "identifier", "text": "CLK_TIMCLK_WATCHDOG", "parent": 77, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 52}}, {"id": 83, "type": "call_expression", "text": "writel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl)", "parent": 68, "children": [84, 85], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 41}}, {"id": 84, "type": "identifier", "text": "writel", "parent": 83, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 7}}, {"id": 85, "type": "argument_list", "text": "(WDTIM_MCTRL_RESFRC1, &wdt->mctrl)", "parent": 83, "children": [86, 87], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 41}}, {"id": 86, "type": "identifier", "text": "WDTIM_MCTRL_RESFRC1", "parent": 85, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 27}}, {"id": 87, "type": "pointer_expression", "text": "&wdt->mctrl", "parent": 85, "children": [88], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 40}}, {"id": 88, "type": "field_expression", "text": "wdt->mctrl", "parent": 87, "children": [89, 90], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 40}}, {"id": 89, "type": "identifier", "text": "wdt", "parent": 88, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 33}}, {"id": 90, "type": "field_identifier", "text": "mctrl", "parent": 88, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 40}}, {"id": 91, "type": "call_expression", "text": "udelay(150)", "parent": 68, "children": [92, 93], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 12}}, {"id": 92, "type": "identifier", "text": "udelay", "parent": 91, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 93, "type": "argument_list", "text": "(150)", "parent": 91, "children": [94], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 12}}, {"id": 94, "type": "number_literal", "text": "150", "parent": 93, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 11}}, {"id": 95, "type": "call_expression", "text": "writel(0, &wdt->mctrl)", "parent": 68, "children": [96, 97], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 23}}, {"id": 96, "type": "identifier", "text": "writel", "parent": 95, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 97, "type": "argument_list", "text": "(0, &wdt->mctrl)", "parent": 95, "children": [98, 99], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 23}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 97, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 99, "type": "pointer_expression", "text": "&wdt->mctrl", "parent": 97, "children": [100], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 22}}, {"id": 100, "type": "field_expression", "text": "wdt->mctrl", "parent": 99, "children": [101, 102], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 22}}, {"id": 101, "type": "identifier", "text": "wdt", "parent": 100, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 15}}, {"id": 102, "type": "field_identifier", "text": "mctrl", "parent": 100, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 22}}, {"id": 103, "type": "call_expression", "text": "clrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)", "parent": 68, "children": [104, 105], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 53}}, {"id": 104, "type": "identifier", "text": "clrbits_le32", "parent": 103, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 13}}, {"id": 105, "type": "argument_list", "text": "(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG)", "parent": 103, "children": [106, 110], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 53}}, {"id": 106, "type": "pointer_expression", "text": "&clk->timclk_ctrl", "parent": 105, "children": [107], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 31}}, {"id": 107, "type": "field_expression", "text": "clk->timclk_ctrl", "parent": 106, "children": [108, 109], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 31}}, {"id": 108, "type": "identifier", "text": "clk", "parent": 107, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 18}}, {"id": 109, "type": "field_identifier", "text": "timclk_ctrl", "parent": 107, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 31}}, {"id": 110, "type": "identifier", "text": "CLK_TIMCLK_WATCHDOG", "parent": 105, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 52}}, {"id": 111, "type": "function_definition", "text": "int board_early_init_f(void)\n{\n\t/* initialize serial port for console */\n\tlpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);\n\t/* enable I2C, SSP, MAC, NAND */\n\tlpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */\n\tlpc32xx_ssp_init();\n\tlpc32xx_mac_init();\n\tlpc32xx_mlc_nand_init();\n\t/* Display must wait until after relocation and devices init */\n\treturn 0;\n}", "parent": null, "children": [112, 113], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 3}}, {"id": 113, "type": "function_declarator", "text": "board_early_init_f(void)", "parent": 111, "children": [114, 115], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 28}}, {"id": 114, "type": "identifier", "text": "board_early_init_f", "parent": 113, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 22}}, {"id": 115, "type": "parameter_list", "text": "(void)", "parent": 113, "children": [116], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 28}}, {"id": 116, "type": "parameter_declaration", "text": "void", "parent": 115, "children": [117], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 27}}, {"id": 117, "type": "primitive_type", "text": "void", "parent": 116, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 27}}, {"id": 118, "type": "call_expression", "text": "lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART)", "parent": 111, "children": [119, 120], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 43}}, {"id": 119, "type": "identifier", "text": "lpc32xx_uart_init", "parent": 118, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 18}}, {"id": 120, "type": "argument_list", "text": "(CONFIG_SYS_LPC32XX_UART)", "parent": 118, "children": [121], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 43}}, {"id": 121, "type": "identifier", "text": "CONFIG_SYS_LPC32XX_UART", "parent": 120, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 42}}, {"id": 122, "type": "call_expression", "text": "lpc32xx_i2c_init(1)", "parent": 111, "children": [123, 124], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 20}}, {"id": 123, "type": "identifier", "text": "lpc32xx_i2c_init", "parent": 122, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 17}}, {"id": 124, "type": "argument_list", "text": "(1)", "parent": 122, "children": [125], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 20}}, {"id": 125, "type": "number_literal", "text": "1", "parent": 124, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 126, "type": "call_expression", "text": "lpc32xx_ssp_init()", "parent": 111, "children": [127, 128], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 19}}, {"id": 127, "type": "identifier", "text": "lpc32xx_ssp_init", "parent": 126, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 17}}, {"id": 128, "type": "argument_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 19}}, {"id": 129, "type": "call_expression", "text": "lpc32xx_mac_init()", "parent": 111, "children": [130, 131], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 130, "type": "identifier", "text": "lpc32xx_mac_init", "parent": 129, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 17}}, {"id": 131, "type": "argument_list", "text": "()", "parent": 129, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 132, "type": "call_expression", "text": "lpc32xx_mlc_nand_init()", "parent": 111, "children": [133, 134], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 24}}, {"id": 133, "type": "identifier", "text": "lpc32xx_mlc_nand_init", "parent": 132, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 22}}, {"id": 134, "type": "argument_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 24}}, {"id": 135, "type": "return_statement", "text": "return 0;", "parent": 111, "children": [136], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 10}}, {"id": 136, "type": "number_literal", "text": "0", "parent": 135, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 137, "type": "preproc_def", "text": "#define GPO_19 115\n", "parent": null, "children": [138, 139, 140], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 138, "type": "#define", "text": "#define", "parent": 137, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 139, "type": "identifier", "text": "GPO_19", "parent": 137, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 140, "type": "preproc_arg", "text": "115", "parent": 137, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 18}}, {"id": 141, "type": "function_definition", "text": "int board_early_init_r(void)\n{\n\t/* Set NAND !WP to 1 through GPO_19 */\n\tgpio_request(GPO_19, \"NAND_nWP\");\n\tgpio_direction_output(GPO_19, 1);\n\n#ifdef CONFIG_DEPRECATED\n\t/* initialize display */\n\twork_92105_display_init();\n#endif\n\n\treturn 0;\n}", "parent": null, "children": [142, 143], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 143, "type": "function_declarator", "text": "board_early_init_r(void)", "parent": 141, "children": [144, 145], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 28}}, {"id": 144, "type": "identifier", "text": "board_early_init_r", "parent": 143, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 22}}, {"id": 145, "type": "parameter_list", "text": "(void)", "parent": 143, "children": [146], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 28}}, {"id": 146, "type": "parameter_declaration", "text": "void", "parent": 145, "children": [147], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 27}}, {"id": 147, "type": "primitive_type", "text": "void", "parent": 146, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 27}}, {"id": 148, "type": "call_expression", "text": "gpio_request(GPO_19, \"NAND_nWP\")", "parent": 141, "children": [149, 150], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 33}}, {"id": 149, "type": "identifier", "text": "gpio_request", "parent": 148, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 13}}, {"id": 150, "type": "argument_list", "text": "(GPO_19, \"NAND_nWP\")", "parent": 148, "children": [151, 152], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 33}}, {"id": 151, "type": "identifier", "text": "GPO_19", "parent": 150, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 20}}, {"id": 152, "type": "string_literal", "text": "\"NAND_nWP\"", "parent": 150, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 32}}, {"id": 153, "type": "call_expression", "text": "gpio_direction_output(GPO_19, 1)", "parent": 141, "children": [154, 155], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 33}}, {"id": 154, "type": "identifier", "text": "gpio_direction_output", "parent": 153, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 22}}, {"id": 155, "type": "argument_list", "text": "(GPO_19, 1)", "parent": 153, "children": [156, 157], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 33}}, {"id": 156, "type": "identifier", "text": "GPO_19", "parent": 155, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 29}}, {"id": 157, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 158, "type": "preproc_ifdef", "text": "#ifdef CONFIG_DEPRECATED\n\t/* initialize display */\n\twork_92105_display_init();\n#endif", "parent": 141, "children": [159, 160, 164], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 159, "type": "#ifdef", "text": "#ifdef", "parent": 158, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 160, "type": "identifier", "text": "CONFIG_DEPRECATED", "parent": 158, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 24}}, {"id": 161, "type": "call_expression", "text": "work_92105_display_init()", "parent": 158, "children": [162, 163], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 26}}, {"id": 162, "type": "identifier", "text": "work_92105_display_init", "parent": 161, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 24}}, {"id": 163, "type": "argument_list", "text": "()", "parent": 161, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 26}}, {"id": 164, "type": "#endif", "text": "#endif", "parent": 158, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 165, "type": "return_statement", "text": "return 0;", "parent": 141, "children": [166], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 10}}, {"id": 166, "type": "number_literal", "text": "0", "parent": 165, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 167, "type": "function_definition", "text": "int board_init(void)\n{\n\treset_periph();\n\t/* adress of boot parameters */\n\tgd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;\n\n\treturn 0;\n}", "parent": null, "children": [168, 169], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 3}}, {"id": 169, "type": "function_declarator", "text": "board_init(void)", "parent": 167, "children": [170, 171], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 20}}, {"id": 170, "type": "identifier", "text": "board_init", "parent": 169, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 14}}, {"id": 171, "type": "parameter_list", "text": "(void)", "parent": 169, "children": [172], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 20}}, {"id": 172, "type": "parameter_declaration", "text": "void", "parent": 171, "children": [173], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 19}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 19}}, {"id": 174, "type": "call_expression", "text": "reset_periph()", "parent": 167, "children": [175, 176], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 15}}, {"id": 175, "type": "identifier", "text": "reset_periph", "parent": 174, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 13}}, {"id": 176, "type": "argument_list", "text": "()", "parent": 174, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 15}}, {"id": 177, "type": "assignment_expression", "text": "gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100", "parent": 167, "children": [178, 183, 184], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 56}}, {"id": 178, "type": "field_expression", "text": "gd->bd->bi_boot_params", "parent": 177, "children": [179, 182], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 23}}, {"id": 179, "type": "field_expression", "text": "gd->bd", "parent": 178, "children": [180, 181], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 7}}, {"id": 180, "type": "identifier", "text": "gd", "parent": 179, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 3}}, {"id": 181, "type": "field_identifier", "text": "bd", "parent": 179, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 7}}, {"id": 182, "type": "field_identifier", "text": "bi_boot_params", "parent": 178, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 23}}, {"id": 183, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 26}}, {"id": 184, "type": "binary_expression", "text": "CONFIG_SYS_SDRAM_BASE + 0x100", "parent": 177, "children": [185, 186, 187], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 56}}, {"id": 185, "type": "identifier", "text": "CONFIG_SYS_SDRAM_BASE", "parent": 184, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 48}}, {"id": 186, "type": "+", "text": "+", "parent": 184, "children": [], "start_point": {"row": 67, "column": 49}, "end_point": {"row": 67, "column": 50}}, {"id": 187, "type": "number_literal", "text": "0x100", "parent": 184, "children": [], "start_point": {"row": 67, "column": 51}, "end_point": {"row": 67, "column": 56}}, {"id": 188, "type": "return_statement", "text": "return 0;", "parent": 167, "children": [189], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 10}}, {"id": 189, "type": "number_literal", "text": "0", "parent": 188, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 190, "type": "function_definition", "text": "int dram_init(void)\n{\n\tgd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS_SDRAM_SIZE);\n\n\treturn 0;\n}", "parent": null, "children": [191, 192], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 190, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 3}}, {"id": 192, "type": "function_declarator", "text": "dram_init(void)", "parent": 190, "children": [193, 194], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 19}}, {"id": 193, "type": "identifier", "text": "dram_init", "parent": 192, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 13}}, {"id": 194, "type": "parameter_list", "text": "(void)", "parent": 192, "children": [195], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 19}}, {"id": 195, "type": "parameter_declaration", "text": "void", "parent": 194, "children": [196], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 18}}, {"id": 196, "type": "primitive_type", "text": "void", "parent": 195, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 18}}, {"id": 197, "type": "assignment_expression", "text": "gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS_SDRAM_SIZE)", "parent": 190, "children": [198, 201, 202], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 75, "column": 30}}, {"id": 198, "type": "field_expression", "text": "gd->ram_size", "parent": 197, "children": [199, 200], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 13}}, {"id": 199, "type": "identifier", "text": "gd", "parent": 198, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 3}}, {"id": 200, "type": "field_identifier", "text": "ram_size", "parent": 198, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 13}}, {"id": 201, "type": "=", "text": "=", "parent": 197, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 202, "type": "call_expression", "text": "get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS_SDRAM_SIZE)", "parent": 197, "children": [203, 204], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 75, "column": 30}}, {"id": 203, "type": "identifier", "text": "get_ram_size", "parent": 202, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 28}}, {"id": 204, "type": "argument_list", "text": "((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS_SDRAM_SIZE)", "parent": 202, "children": [205, 211], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 75, "column": 30}}, {"id": 205, "type": "cast_expression", "text": "(void *)CONFIG_SYS_SDRAM_BASE", "parent": 204, "children": [206, 210], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 58}}, {"id": 206, "type": "type_descriptor", "text": "void *", "parent": 205, "children": [207, 208], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 36}}, {"id": 207, "type": "primitive_type", "text": "void", "parent": 206, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 34}}, {"id": 208, "type": "abstract_pointer_declarator", "text": "*", "parent": 206, "children": [209], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 210, "type": "identifier", "text": "CONFIG_SYS_SDRAM_BASE", "parent": 205, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 58}}, {"id": 211, "type": "identifier", "text": "CONFIG_SYS_SDRAM_SIZE", "parent": 204, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 29}}, {"id": 212, "type": "return_statement", "text": "return 0;", "parent": 190, "children": [213], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 213, "type": "number_literal", "text": "0", "parent": 212, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}]}, "node_categories": {"declarations": {"functions": [68, 70, 111, 113, 141, 143, 167, 169, 190, 192], "variables": [34, 51, 73, 116, 146, 172, 195], "classes": [35, 36, 45, 46, 52, 53, 62, 63], "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": [43, 60, 75, 78, 79, 83, 87, 88, 91, 95, 99, 100, 103, 106, 107, 118, 122, 126, 129, 132, 148, 153, 161, 174, 178, 179, 184, 198, 202, 205], "assignments": [177, 197], "loops": [], "conditionals": [33, 37, 41, 47, 50, 54, 58, 64, 67, 71, 76, 80, 81, 82, 84, 86, 89, 90, 92, 96, 101, 102, 104, 108, 109, 110, 114, 119, 121, 123, 127, 130, 133, 139, 144, 149, 151, 154, 156, 158, 159, 160, 162, 164, 170, 175, 180, 181, 182, 185, 193, 199, 200, 203, 210, 211], "returns": [135, 165, 188, 212], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 94, 98, 125, 136, 152, 157, 166, 187, 189, 213], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 68, "universal_type": "function", "name": "reset_periph", "text_snippet": "void reset_periph(void)\n{\n\tsetbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n\twritel(WDTIM_MCTRL"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "reset_periph(void)"}, {"node_id": 111, "universal_type": "function", "name": "board_early_init_f", "text_snippet": "int board_early_init_f(void)\n{\n\t/* initialize serial port for console */\n\tlpc32xx_uart_init(CONFIG_S"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "board_early_init_f(void)"}, {"node_id": 141, "universal_type": "function", "name": "board_early_init_r", "text_snippet": "int board_early_init_r(void)\n{\n\t/* Set NAND !WP to 1 through GPO_19 */\n\tgpio_request(GPO_19, \"NAND_n"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "board_early_init_r(void)"}, {"node_id": 167, "universal_type": "function", "name": "board_init", "text_snippet": "int board_init(void)\n{\n\treset_periph();\n\t/* adress of boot parameters */\n\tgd->bd->bi_boot_params = "}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "board_init(void)"}, {"node_id": 190, "universal_type": "function", "name": "dram_init", "text_snippet": "int dram_init(void)\n{\n\tgd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "dram_init(void)"}], "class_declarations": [{"node_id": 35, "universal_type": "class", "name": "clk_pm_regs", "text_snippet": "struct clk_pm_regs"}, {"node_id": 36, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 45, "universal_type": "class", "name": "clk_pm_regs", "text_snippet": "struct clk_pm_regs"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 52, "universal_type": "class", "name": "wdt_regs", "text_snippet": "struct wdt_regs"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 62, "universal_type": "class", "name": "wdt_regs", "text_snippet": "struct wdt_regs"}, {"node_id": 63, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <common.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <init.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <asm/io.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <asm/arch/sys_proto.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <asm/arch/cpu.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <asm/arch/clk.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <asm/arch/emc.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <asm/arch/wdt.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <asm/gpio.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <spl.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"work_92105_display.h\"\n"}, {"node_id": 31, "text": "#include"}]}, "original_source_code": "// SPDX-License-Identifier: GPL-2.0+\n/*\n * WORK Microwave work_92105 board support\n *\n * (C) Copyright 2014 DENX Software Engineering GmbH\n * Written-by: <NAME> <<EMAIL>>\n */\n\n#include <common.h>\n#include <init.h>\n#include <asm/io.h>\n#include <asm/arch/sys_proto.h>\n#include <asm/arch/cpu.h>\n#include <asm/arch/clk.h>\n#include <asm/arch/emc.h>\n#include <asm/arch/wdt.h>\n#include <asm/gpio.h>\n#include <spl.h>\n#include \"work_92105_display.h\"\n\nDECLARE_GLOBAL_DATA_PTR;\n\nstatic struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;\nstatic struct wdt_regs *wdt = (struct wdt_regs *)WDT_BASE;\n\nvoid reset_periph(void)\n{\n\tsetbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n\twritel(WDTIM_MCTRL_RESFRC1, &wdt->mctrl);\n\tudelay(150);\n\twritel(0, &wdt->mctrl);\n\tclrbits_le32(&clk->timclk_ctrl, CLK_TIMCLK_WATCHDOG);\n}\n\nint board_early_init_f(void)\n{\n\t/* initialize serial port for console */\n\tlpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);\n\t/* enable I2C, SSP, MAC, NAND */\n\tlpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */\n\tlpc32xx_ssp_init();\n\tlpc32xx_mac_init();\n\tlpc32xx_mlc_nand_init();\n\t/* Display must wait until after relocation and devices init */\n\treturn 0;\n}\n\n#define GPO_19 115\n\nint board_early_init_r(void)\n{\n\t/* Set NAND !WP to 1 through GPO_19 */\n\tgpio_request(GPO_19, \"NAND_nWP\");\n\tgpio_direction_output(GPO_19, 1);\n\n#ifdef CONFIG_DEPRECATED\n\t/* initialize display */\n\twork_92105_display_init();\n#endif\n\n\treturn 0;\n}\n\nint board_init(void)\n{\n\treset_periph();\n\t/* adress of boot parameters */\n\tgd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;\n\n\treturn 0;\n}\n\nint dram_init(void)\n{\n\tgd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,\n\t\t\t\t CONFIG_SYS_SDRAM_SIZE);\n\n\treturn 0;\n}\n"}
188
c
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H #include "e_mod_physics_cfdata.h" typedef struct _Mod Mod; struct _Mod { E_Module *module; E_Config_DD *conf_edd; E_Config_DD *conf_match_edd; Config *conf; E_Config_Dialog *config_dialog; }; extern Mod *_physics_mod; EAPI extern E_Module_Api e_modapi; EAPI void *e_modapi_init(E_Module *m); EAPI int e_modapi_shutdown(E_Module *m); EAPI int e_modapi_save(E_Module *m); EAPI int e_modapi_info(E_Module *m); void _e_mod_config_new(E_Module *m); void _e_mod_config_free(E_Module *m); E_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__); #endif
30.18
22
(translation_unit) "#ifndef E_MOD_MAIN_H\n#define E_MOD_MAIN_H\n\n#include "e_mod_physics_cfdata.h"\n\ntypedef struct _Mod Mod;\n\nstruct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n};\n\nextern Mod *_physics_mod;\n\nEAPI extern E_Module_Api e_modapi;\n\nEAPI void *e_modapi_init(E_Module *m);\nEAPI int e_modapi_shutdown(E_Module *m);\nEAPI int e_modapi_save(E_Module *m);\nEAPI int e_modapi_info(E_Module *m);\n\nvoid _e_mod_config_new(E_Module *m);\nvoid _e_mod_config_free(E_Module *m);\n\nE_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);\n\n#endif\n" (preproc_ifdef) "#ifndef E_MOD_MAIN_H\n#define E_MOD_MAIN_H\n\n#include "e_mod_physics_cfdata.h"\n\ntypedef struct _Mod Mod;\n\nstruct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n};\n\nextern Mod *_physics_mod;\n\nEAPI extern E_Module_Api e_modapi;\n\nEAPI void *e_modapi_init(E_Module *m);\nEAPI int e_modapi_shutdown(E_Module *m);\nEAPI int e_modapi_save(E_Module *m);\nEAPI int e_modapi_info(E_Module *m);\n\nvoid _e_mod_config_new(E_Module *m);\nvoid _e_mod_config_free(E_Module *m);\n\nE_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);\n\n#endif" (#ifndef) "#ifndef" (identifier) "E_MOD_MAIN_H" (preproc_def) "#define E_MOD_MAIN_H\n" (#define) "#define" (identifier) "E_MOD_MAIN_H" (preproc_include) "#include "e_mod_physics_cfdata.h"\n" (#include) "#include" (string_literal) ""e_mod_physics_cfdata.h"" (") """ (string_content) "e_mod_physics_cfdata.h" (") """ (type_definition) "typedef struct _Mod Mod;" (typedef) "typedef" (struct_specifier) "struct _Mod" (struct) "struct" (type_identifier) "_Mod" (type_identifier) "Mod" (;) ";" (struct_specifier) "struct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n}" (struct) "struct" (type_identifier) "_Mod" (field_declaration_list) "{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n}" ({) "{" (field_declaration) "E_Module *module;" (type_identifier) "E_Module" (pointer_declarator) "*module" (*) "*" (field_identifier) "module" (;) ";" (field_declaration) "E_Config_DD *conf_edd;" (type_identifier) "E_Config_DD" (pointer_declarator) "*conf_edd" (*) "*" (field_identifier) "conf_edd" (;) ";" (field_declaration) "E_Config_DD *conf_match_edd;" (type_identifier) "E_Config_DD" (pointer_declarator) "*conf_match_edd" (*) "*" (field_identifier) "conf_match_edd" (;) ";" (field_declaration) "Config *conf;" (type_identifier) "Config" (pointer_declarator) "*conf" (*) "*" (field_identifier) "conf" (;) ";" (field_declaration) "E_Config_Dialog *config_dialog;" (type_identifier) "E_Config_Dialog" (pointer_declarator) "*config_dialog" (*) "*" (field_identifier) "config_dialog" (;) ";" (}) "}" (;) ";" (declaration) "extern Mod *_physics_mod;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Mod" (pointer_declarator) "*_physics_mod" (*) "*" (identifier) "_physics_mod" (;) ";" (declaration) "EAPI extern E_Module_Api e_modapi;" (type_identifier) "EAPI" (storage_class_specifier) "extern" (extern) "extern" (identifier) "E_Module_Api" (ERROR) "e_modapi" (identifier) "e_modapi" (;) ";" (declaration) "EAPI void *e_modapi_init(E_Module *m);" (type_identifier) "EAPI" (ERROR) "void" (identifier) "void" (pointer_declarator) "*e_modapi_init(E_Module *m)" (*) "*" (function_declarator) "e_modapi_init(E_Module *m)" (identifier) "e_modapi_init" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "EAPI int e_modapi_shutdown(E_Module *m);" (type_identifier) "EAPI" (ERROR) "int" (identifier) "int" (function_declarator) "e_modapi_shutdown(E_Module *m)" (identifier) "e_modapi_shutdown" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "EAPI int e_modapi_save(E_Module *m);" (type_identifier) "EAPI" (ERROR) "int" (identifier) "int" (function_declarator) "e_modapi_save(E_Module *m)" (identifier) "e_modapi_save" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "EAPI int e_modapi_info(E_Module *m);" (type_identifier) "EAPI" (ERROR) "int" (identifier) "int" (function_declarator) "e_modapi_info(E_Module *m)" (identifier) "e_modapi_info" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "void _e_mod_config_new(E_Module *m);" (primitive_type) "void" (function_declarator) "_e_mod_config_new(E_Module *m)" (identifier) "_e_mod_config_new" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "void _e_mod_config_free(E_Module *m);" (primitive_type) "void" (function_declarator) "_e_mod_config_free(E_Module *m)" (identifier) "_e_mod_config_free" (parameter_list) "(E_Module *m)" (() "(" (parameter_declaration) "E_Module *m" (type_identifier) "E_Module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "E_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);" (type_identifier) "E_Config_Dialog" (pointer_declarator) "*e_int_config_physics_module(E_Container *con, const char *params __UNUSED__)" (*) "*" (function_declarator) "e_int_config_physics_module(E_Container *con, const char *params __UNUSED__)" (identifier) "e_int_config_physics_module" (parameter_list) "(E_Container *con, const char *params __UNUSED__)" (() "(" (parameter_declaration) "E_Container *con" (type_identifier) "E_Container" (pointer_declarator) "*con" (*) "*" (identifier) "con" (,) "," (parameter_declaration) "const char *params __UNUSED__" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*params __UNUSED__" (*) "*" (ERROR) "params" (identifier) "params" (identifier) "__UNUSED__" ()) ")" (;) ";" (#endif) "#endif"
187
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.18, "nodes": 147, "errors": 0, "source_hash": "2da7d040b56207e776848f6d84f01ed95bbc80da2cb2f42622996354b24f60b4", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E_MOD_MAIN_H\n#define E_MOD_MAIN_H\n\n#include \"e_mod_physics_cfdata.h\"\n\ntypedef struct _Mod Mod;\n\nstruct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n};\n\nextern Mod *_physics_mod;\n\nEAPI extern E_Module_Api e_modapi;\n\nEAPI void *e_modapi_init(E_Module *m);\nEAPI int e_modapi_shutdown(E_Module *m);\nEAPI int e_modapi_save(E_Module *m);\nEAPI int e_modapi_info(E_Module *m);\n\nvoid _e_mod_config_new(E_Module *m);\nvoid _e_mod_config_free(E_Module *m);\n\nE_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 15, 43, 50, 57, 71, 83, 95, 107, 117, 127, 146], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "E_MOD_MAIN_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define E_MOD_MAIN_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "E_MOD_MAIN_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"e_mod_physics_cfdata.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": "\"e_mod_physics_cfdata.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 33}}, {"id": 9, "type": "type_definition", "text": "typedef struct _Mod Mod;", "parent": 0, "children": [10, 11, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 27}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "struct_specifier", "text": "struct _Mod", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 19}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 13, "type": "type_identifier", "text": "_Mod", "parent": 11, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 19}}, {"id": 14, "type": "type_identifier", "text": "Mod", "parent": 9, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 26}}, {"id": 15, "type": "struct_specifier", "text": "struct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "_Mod", "parent": 15, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 18, "type": "field_declaration", "text": "E_Module *module;", "parent": 15, "children": [19, 20], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 27}}, {"id": 19, "type": "type_identifier", "text": "E_Module", "parent": 18, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 11}}, {"id": 20, "type": "pointer_declarator", "text": "*module", "parent": 18, "children": [21, 22], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 26}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 20}}, {"id": 22, "type": "field_identifier", "text": "module", "parent": 20, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 26}}, {"id": 23, "type": "field_declaration", "text": "E_Config_DD *conf_edd;", "parent": 15, "children": [24, 25], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 29}}, {"id": 24, "type": "type_identifier", "text": "E_Config_DD", "parent": 23, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 14}}, {"id": 25, "type": "pointer_declarator", "text": "*conf_edd", "parent": 23, "children": [26, 27], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 28}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 20}}, {"id": 27, "type": "field_identifier", "text": "conf_edd", "parent": 25, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 28}}, {"id": 28, "type": "field_declaration", "text": "E_Config_DD *conf_match_edd;", "parent": 15, "children": [29, 30], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 35}}, {"id": 29, "type": "type_identifier", "text": "E_Config_DD", "parent": 28, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 14}}, {"id": 30, "type": "pointer_declarator", "text": "*conf_match_edd", "parent": 28, "children": [31, 32], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 34}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 32, "type": "field_identifier", "text": "conf_match_edd", "parent": 30, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 34}}, {"id": 33, "type": "field_declaration", "text": "Config *conf;", "parent": 15, "children": [34, 35], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 25}}, {"id": 34, "type": "type_identifier", "text": "Config", "parent": 33, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 9}}, {"id": 35, "type": "pointer_declarator", "text": "*conf", "parent": 33, "children": [36, 37], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 24}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 37, "type": "field_identifier", "text": "conf", "parent": 35, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 24}}, {"id": 38, "type": "field_declaration", "text": "E_Config_Dialog *config_dialog;", "parent": 15, "children": [39, 40], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 34}}, {"id": 39, "type": "type_identifier", "text": "E_Config_Dialog", "parent": 38, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 18}}, {"id": 40, "type": "pointer_declarator", "text": "*config_dialog", "parent": 38, "children": [41, 42], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 33}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 42, "type": "field_identifier", "text": "config_dialog", "parent": 40, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 33}}, {"id": 43, "type": "declaration", "text": "extern Mod *_physics_mod;", "parent": 0, "children": [44, 46, 47], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 25}}, {"id": 44, "type": "storage_class_specifier", "text": "extern", "parent": 43, "children": [45], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 45, "type": "extern", "text": "extern", "parent": 44, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 46, "type": "type_identifier", "text": "Mod", "parent": 43, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 10}}, {"id": 47, "type": "pointer_declarator", "text": "*_physics_mod", "parent": 43, "children": [48, 49], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 24}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 49, "type": "identifier", "text": "_physics_mod", "parent": 47, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 24}}, {"id": 50, "type": "declaration", "text": "EAPI extern E_Module_Api e_modapi;", "parent": 0, "children": [51, 52, 54, 55], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 34}}, {"id": 51, "type": "type_identifier", "text": "EAPI", "parent": 50, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 52, "type": "storage_class_specifier", "text": "extern", "parent": 50, "children": [53], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 11}}, {"id": 53, "type": "extern", "text": "extern", "parent": 52, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 11}}, {"id": 54, "type": "identifier", "text": "E_Module_Api", "parent": 50, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 24}}, {"id": 55, "type": "ERROR", "text": "e_modapi", "parent": 50, "children": [56], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 33}}, {"id": 56, "type": "identifier", "text": "e_modapi", "parent": 55, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 33}}, {"id": 57, "type": "declaration", "text": "EAPI void *e_modapi_init(E_Module *m);", "parent": 0, "children": [58, 59, 61], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 38}}, {"id": 58, "type": "type_identifier", "text": "EAPI", "parent": 57, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 59, "type": "ERROR", "text": "void", "parent": 57, "children": [60], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 9}}, {"id": 60, "type": "identifier", "text": "void", "parent": 59, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 9}}, {"id": 61, "type": "pointer_declarator", "text": "*e_modapi_init(E_Module *m)", "parent": 57, "children": [62, 63], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 37}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 63, "type": "function_declarator", "text": "e_modapi_init(E_Module *m)", "parent": 61, "children": [64, 65], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 37}}, {"id": 64, "type": "identifier", "text": "e_modapi_init", "parent": 63, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 24}}, {"id": 65, "type": "parameter_list", "text": "(E_Module *m)", "parent": 63, "children": [66], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 37}}, {"id": 66, "type": "parameter_declaration", "text": "E_Module *m", "parent": 65, "children": [67, 68], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 36}}, {"id": 67, "type": "type_identifier", "text": "E_Module", "parent": 66, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 33}}, {"id": 68, "type": "pointer_declarator", "text": "*m", "parent": 66, "children": [69, 70], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 36}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 70, "type": "identifier", "text": "m", "parent": 68, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 71, "type": "declaration", "text": "EAPI int e_modapi_shutdown(E_Module *m);", "parent": 0, "children": [72, 73, 75], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 42}}, {"id": 72, "type": "type_identifier", "text": "EAPI", "parent": 71, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 73, "type": "ERROR", "text": "int", "parent": 71, "children": [74], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 8}}, {"id": 74, "type": "identifier", "text": "int", "parent": 73, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 8}}, {"id": 75, "type": "function_declarator", "text": "e_modapi_shutdown(E_Module *m)", "parent": 71, "children": [76, 77], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 41}}, {"id": 76, "type": "identifier", "text": "e_modapi_shutdown", "parent": 75, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 28}}, {"id": 77, "type": "parameter_list", "text": "(E_Module *m)", "parent": 75, "children": [78], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 41}}, {"id": 78, "type": "parameter_declaration", "text": "E_Module *m", "parent": 77, "children": [79, 80], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 40}}, {"id": 79, "type": "type_identifier", "text": "E_Module", "parent": 78, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 37}}, {"id": 80, "type": "pointer_declarator", "text": "*m", "parent": 78, "children": [81, 82], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 40}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 39}}, {"id": 82, "type": "identifier", "text": "m", "parent": 80, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 40}}, {"id": 83, "type": "declaration", "text": "EAPI int e_modapi_save(E_Module *m);", "parent": 0, "children": [84, 85, 87], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 38}}, {"id": 84, "type": "type_identifier", "text": "EAPI", "parent": 83, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 85, "type": "ERROR", "text": "int", "parent": 83, "children": [86], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 8}}, {"id": 86, "type": "identifier", "text": "int", "parent": 85, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 8}}, {"id": 87, "type": "function_declarator", "text": "e_modapi_save(E_Module *m)", "parent": 83, "children": [88, 89], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 37}}, {"id": 88, "type": "identifier", "text": "e_modapi_save", "parent": 87, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 24}}, {"id": 89, "type": "parameter_list", "text": "(E_Module *m)", "parent": 87, "children": [90], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 37}}, {"id": 90, "type": "parameter_declaration", "text": "E_Module *m", "parent": 89, "children": [91, 92], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 36}}, {"id": 91, "type": "type_identifier", "text": "E_Module", "parent": 90, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 33}}, {"id": 92, "type": "pointer_declarator", "text": "*m", "parent": 90, "children": [93, 94], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 36}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 35}}, {"id": 94, "type": "identifier", "text": "m", "parent": 92, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 36}}, {"id": 95, "type": "declaration", "text": "EAPI int e_modapi_info(E_Module *m);", "parent": 0, "children": [96, 97, 99], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 38}}, {"id": 96, "type": "type_identifier", "text": "EAPI", "parent": 95, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 97, "type": "ERROR", "text": "int", "parent": 95, "children": [98], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 8}}, {"id": 98, "type": "identifier", "text": "int", "parent": 97, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 8}}, {"id": 99, "type": "function_declarator", "text": "e_modapi_info(E_Module *m)", "parent": 95, "children": [100, 101], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 37}}, {"id": 100, "type": "identifier", "text": "e_modapi_info", "parent": 99, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 24}}, {"id": 101, "type": "parameter_list", "text": "(E_Module *m)", "parent": 99, "children": [102], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 37}}, {"id": 102, "type": "parameter_declaration", "text": "E_Module *m", "parent": 101, "children": [103, 104], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 36}}, {"id": 103, "type": "type_identifier", "text": "E_Module", "parent": 102, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 33}}, {"id": 104, "type": "pointer_declarator", "text": "*m", "parent": 102, "children": [105, 106], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 36}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 106, "type": "identifier", "text": "m", "parent": 104, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 36}}, {"id": 107, "type": "declaration", "text": "void _e_mod_config_new(E_Module *m);", "parent": 0, "children": [108, 109], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 42}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 109, "type": "function_declarator", "text": "_e_mod_config_new(E_Module *m)", "parent": 107, "children": [110, 111], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 41}}, {"id": 110, "type": "identifier", "text": "_e_mod_config_new", "parent": 109, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 28}}, {"id": 111, "type": "parameter_list", "text": "(E_Module *m)", "parent": 109, "children": [112], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 41}}, {"id": 112, "type": "parameter_declaration", "text": "E_Module *m", "parent": 111, "children": [113, 114], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 40}}, {"id": 113, "type": "type_identifier", "text": "E_Module", "parent": 112, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 37}}, {"id": 114, "type": "pointer_declarator", "text": "*m", "parent": 112, "children": [115, 116], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 40}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 39}}, {"id": 116, "type": "identifier", "text": "m", "parent": 114, "children": [], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 40}}, {"id": 117, "type": "declaration", "text": "void _e_mod_config_free(E_Module *m);", "parent": 0, "children": [118, 119], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 43}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 4}}, {"id": 119, "type": "function_declarator", "text": "_e_mod_config_free(E_Module *m)", "parent": 117, "children": [120, 121], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 42}}, {"id": 120, "type": "identifier", "text": "_e_mod_config_free", "parent": 119, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 29}}, {"id": 121, "type": "parameter_list", "text": "(E_Module *m)", "parent": 119, "children": [122], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 42}}, {"id": 122, "type": "parameter_declaration", "text": "E_Module *m", "parent": 121, "children": [123, 124], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 41}}, {"id": 123, "type": "type_identifier", "text": "E_Module", "parent": 122, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 38}}, {"id": 124, "type": "pointer_declarator", "text": "*m", "parent": 122, "children": [125, 126], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 41}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 40}}, {"id": 126, "type": "identifier", "text": "m", "parent": 124, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 41}}, {"id": 127, "type": "declaration", "text": "E_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);", "parent": 0, "children": [128, 129], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 94}}, {"id": 128, "type": "type_identifier", "text": "E_Config_Dialog", "parent": 127, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 15}}, {"id": 129, "type": "pointer_declarator", "text": "*e_int_config_physics_module(E_Container *con, const char *params __UNUSED__)", "parent": 127, "children": [130, 131], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 93}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 17}}, {"id": 131, "type": "function_declarator", "text": "e_int_config_physics_module(E_Container *con, const char *params __UNUSED__)", "parent": 129, "children": [132, 133], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 93}}, {"id": 132, "type": "identifier", "text": "e_int_config_physics_module", "parent": 131, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 44}}, {"id": 133, "type": "parameter_list", "text": "(E_Container *con, const char *params __UNUSED__)", "parent": 131, "children": [134, 139], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 93}}, {"id": 134, "type": "parameter_declaration", "text": "E_Container *con", "parent": 133, "children": [135, 136], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 61}}, {"id": 135, "type": "type_identifier", "text": "E_Container", "parent": 134, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 56}}, {"id": 136, "type": "pointer_declarator", "text": "*con", "parent": 134, "children": [137, 138], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 61}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 58}}, {"id": 138, "type": "identifier", "text": "con", "parent": 136, "children": [], "start_point": {"row": 30, "column": 58}, "end_point": {"row": 30, "column": 61}}, {"id": 139, "type": "parameter_declaration", "text": "const char *params __UNUSED__", "parent": 133, "children": [140, 141], "start_point": {"row": 30, "column": 63}, "end_point": {"row": 30, "column": 92}}, {"id": 140, "type": "primitive_type", "text": "char", "parent": 139, "children": [], "start_point": {"row": 30, "column": 69}, "end_point": {"row": 30, "column": 73}}, {"id": 141, "type": "pointer_declarator", "text": "*params __UNUSED__", "parent": 139, "children": [142, 143, 145], "start_point": {"row": 30, "column": 74}, "end_point": {"row": 30, "column": 92}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 30, "column": 74}, "end_point": {"row": 30, "column": 75}}, {"id": 143, "type": "ERROR", "text": "params", "parent": 141, "children": [144], "start_point": {"row": 30, "column": 75}, "end_point": {"row": 30, "column": 81}}, {"id": 144, "type": "identifier", "text": "params", "parent": 143, "children": [], "start_point": {"row": 30, "column": 75}, "end_point": {"row": 30, "column": 81}}, {"id": 145, "type": "identifier", "text": "__UNUSED__", "parent": 141, "children": [], "start_point": {"row": 30, "column": 82}, "end_point": {"row": 30, "column": 92}}, {"id": 146, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}]}, "node_categories": {"declarations": {"functions": [63, 75, 87, 99, 109, 119, 131], "variables": [9, 18, 23, 28, 33, 38, 43, 50, 57, 66, 71, 78, 83, 90, 95, 102, 107, 112, 117, 122, 127, 134, 139], "classes": [11, 12, 15, 16, 44, 52], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 17, 19, 22, 24, 27, 29, 32, 34, 37, 39, 42, 46, 49, 51, 54, 56, 58, 60, 64, 67, 70, 72, 74, 76, 79, 82, 84, 86, 88, 91, 94, 96, 98, 100, 103, 106, 110, 113, 116, 120, 123, 126, 128, 132, 135, 138, 144, 145, 146], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "e_modapi_init(E_Module *m)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "e_modapi_shutdown(E_Module *m)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "e_modapi_save(E_Module *m)"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "e_modapi_info(E_Module *m)"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "_e_mod_config_new(E_Module *m)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "_e_mod_config_free(E_Module *m)"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "e_int_config_physics_module(E_Container *con, const char *params __UNUSED__)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "_Mod", "text_snippet": "struct _Mod"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 15, "universal_type": "class", "name": "_Mod", "text_snippet": "struct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_ma"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 44, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"e_mod_physics_cfdata.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef E_MOD_MAIN_H\n#define E_MOD_MAIN_H\n\n#include \"e_mod_physics_cfdata.h\"\n\ntypedef struct _Mod Mod;\n\nstruct _Mod\n{\n E_Module *module;\n\n E_Config_DD *conf_edd;\n E_Config_DD *conf_match_edd;\n Config *conf;\n\n E_Config_Dialog *config_dialog;\n};\n\nextern Mod *_physics_mod;\n\nEAPI extern E_Module_Api e_modapi;\n\nEAPI void *e_modapi_init(E_Module *m);\nEAPI int e_modapi_shutdown(E_Module *m);\nEAPI int e_modapi_save(E_Module *m);\nEAPI int e_modapi_info(E_Module *m);\n\nvoid _e_mod_config_new(E_Module *m);\nvoid _e_mod_config_free(E_Module *m);\n\nE_Config_Dialog *e_int_config_physics_module(E_Container *con, const char *params __UNUSED__);\n\n#endif\n"}
189
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MTLModel.h" #import "NSSecureCoding.h" @class NSString; @interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding> { NSString *_localIdentifier; NSString *_localizedTitle; } + (unsigned long long)storageBehaviorForPropertyWithKey:(id)arg1; + (id)JSONKeyPathsByPropertyKey; + (BOOL)supportsSecureCoding; @property(readonly, copy, nonatomic) NSString *localizedTitle; // @synthesize localizedTitle=_localizedTitle; @property(readonly, copy, nonatomic) NSString *localIdentifier; // @synthesize localIdentifier=_localIdentifier; - (void).cxx_destruct; - (id)initWithLocalIdentifier:(id)arg1 localizedTitle:(id)arg2; @end
36
21
(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 "MTLModel.h"\n\n#import "NSSecureCoding.h"\n\n@class NSString;\n\n@interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding>\n{\n NSString *_localIdentifier;\n NSString *_localizedTitle;\n}\n\n+ (unsigned long long)storageBehaviorForPropertyWithKey:(id)arg1;\n+ (id)JSONKeyPathsByPropertyKey;\n+ (BOOL)supportsSecureCoding;\n@property(readonly, copy, nonatomic) NSString *localizedTitle; // @synthesize localizedTitle=_localizedTitle;\n@property(readonly, copy, nonatomic) NSString *localIdentifier; // @synthesize localIdentifier=_localIdentifier;\n- (void).cxx_destruct;\n- (id)initWithLocalIdentifier:(id)arg1 localizedTitle:(id)arg2;\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 "MTLModel.h"\n" (preproc_directive) "#import" (preproc_arg) ""MTLModel.h"" (preproc_call) "#import "NSSecureCoding.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSSecureCoding.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSString;" (type_identifier) "class" (identifier) "NSString" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding>\n{\n NSString *_localIdentifier;\n NSString *_localizedTitle;\n}" (type_identifier) "interface" (identifier) "WFPHAssetCollectionDescriptor" (ERROR) ": MTLModel <NSSecureCoding>" (:) ":" (identifier) "MTLModel" (<) "<" (identifier) "NSSecureCoding" (>) ">" (compound_statement) "{\n NSString *_localIdentifier;\n NSString *_localizedTitle;\n}" ({) "{" (declaration) "NSString *_localIdentifier;" (type_identifier) "NSString" (pointer_declarator) "*_localIdentifier" (*) "*" (identifier) "_localIdentifier" (;) ";" (declaration) "NSString *_localizedTitle;" (type_identifier) "NSString" (pointer_declarator) "*_localizedTitle" (*) "*" (identifier) "_localizedTitle" (;) ";" (}) "}" (expression_statement) "+ (unsigned long long)storageBehaviorForPropertyWithKey:(id)arg1;" (unary_expression) "+ (unsigned long long)storageBehaviorForPropertyWithKey" (+) "+" (cast_expression) "(unsigned long long)storageBehaviorForPropertyWithKey" (() "(" (type_descriptor) "unsigned long long" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" ()) ")" (identifier) "storageBehaviorForPropertyWithKey" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)JSONKeyPathsByPropertyKey;" (unary_expression) "+ (id)JSONKeyPathsByPropertyKey" (+) "+" (cast_expression) "(id)JSONKeyPathsByPropertyKey" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "JSONKeyPathsByPropertyKey" (;) ";" (expression_statement) "+ (BOOL)supportsSecureCoding;" (unary_expression) "+ (BOOL)supportsSecureCoding" (+) "+" (cast_expression) "(BOOL)supportsSecureCoding" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "supportsSecureCoding" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, copy, nonatomic)" (call_expression) "property(readonly, copy, nonatomic)" (identifier) "property" (argument_list) "(readonly, copy, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *localizedTitle;" (type_identifier) "NSString" (pointer_declarator) "*localizedTitle" (*) "*" (identifier) "localizedTitle" (;) ";" (comment) "// @synthesize localizedTitle=_localizedTitle;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, copy, nonatomic)" (call_expression) "property(readonly, copy, nonatomic)" (identifier) "property" (argument_list) "(readonly, copy, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *localIdentifier;" (type_identifier) "NSString" (pointer_declarator) "*localIdentifier" (*) "*" (identifier) "localIdentifier" (;) ";" (comment) "// @synthesize localIdentifier=_localIdentifier;" (expression_statement) "- (void).cxx_destruct;" (unary_expression) "- (void).cxx_destruct" (-) "-" (cast_expression) "(void).cxx_destruct" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (ERROR) "." (.) "." (identifier) "cxx_destruct" (;) ";" (ERROR) "- (id)initWithLocalIdentifier:(id)" (unary_expression) "- (id)initWithLocalIdentifier" (-) "-" (cast_expression) "(id)initWithLocalIdentifier" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithLocalIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 localizedTitle:(id)arg2;" (type_identifier) "arg1" (identifier) "localizedTitle" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
165
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.0, "nodes": 102, "errors": 0, "source_hash": "6778524fc598cc690c72375ee8b19bd44542c68671487ba3a0d56f2a64cd0111", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MTLModel.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": "\"MTLModel.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 3, "type": "preproc_call", "text": "#import \"NSSecureCoding.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": "\"NSSecureCoding.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 6, "type": "ERROR", "text": "@", "parent": null, "children": [7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 7, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 8, "type": "declaration", "text": "class NSString;", "parent": null, "children": [9], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 16}}, {"id": 9, "type": "identifier", "text": "NSString", "parent": 8, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 15}}, {"id": 10, "type": "ERROR", "text": "@", "parent": null, "children": [11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "function_definition", "text": "interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding>\n{\n NSString *_localIdentifier;\n NSString *_localizedTitle;\n}", "parent": null, "children": [13, 14, 15], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "interface", "parent": 12, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 14, "type": "identifier", "text": "WFPHAssetCollectionDescriptor", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 40}}, {"id": 15, "type": "ERROR", "text": ": MTLModel <NSSecureCoding>", "parent": 12, "children": [16, 17, 18, 19], "start_point": {"row": 12, "column": 41}, "end_point": {"row": 12, "column": 68}}, {"id": 16, "type": "identifier", "text": "MTLModel", "parent": 15, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 51}}, {"id": 17, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 12, "column": 52}, "end_point": {"row": 12, "column": 53}}, {"id": 18, "type": "identifier", "text": "NSSecureCoding", "parent": 15, "children": [], "start_point": {"row": 12, "column": 53}, "end_point": {"row": 12, "column": 67}}, {"id": 19, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 12, "column": 67}, "end_point": {"row": 12, "column": 68}}, {"id": 20, "type": "declaration", "text": "NSString *_localIdentifier;", "parent": 12, "children": [21, 22], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 31}}, {"id": 21, "type": "type_identifier", "text": "NSString", "parent": 20, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 22, "type": "pointer_declarator", "text": "*_localIdentifier", "parent": 20, "children": [23, 24], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 30}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 24, "type": "identifier", "text": "_localIdentifier", "parent": 22, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 30}}, {"id": 25, "type": "declaration", "text": "NSString *_localizedTitle;", "parent": 12, "children": [26, 27], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 30}}, {"id": 26, "type": "type_identifier", "text": "NSString", "parent": 25, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 12}}, {"id": 27, "type": "pointer_declarator", "text": "*_localizedTitle", "parent": 25, "children": [28, 29], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 29}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 29, "type": "identifier", "text": "_localizedTitle", "parent": 27, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 29}}, {"id": 30, "type": "unary_expression", "text": "+ (unsigned long long)storageBehaviorForPropertyWithKey", "parent": null, "children": [31, 32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 55}}, {"id": 31, "type": "+", "text": "+", "parent": 30, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 32, "type": "cast_expression", "text": "(unsigned long long)storageBehaviorForPropertyWithKey", "parent": 30, "children": [33, 38], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 55}}, {"id": 33, "type": "type_descriptor", "text": "unsigned long long", "parent": 32, "children": [34], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 34, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 35, "type": "unsigned", "text": "unsigned", "parent": 34, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 11}}, {"id": 36, "type": "long", "text": "long", "parent": 34, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 37, "type": "long", "text": "long", "parent": 34, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 21}}, {"id": 38, "type": "identifier", "text": "storageBehaviorForPropertyWithKey", "parent": 32, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 55}}, {"id": 39, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [40, 41], "start_point": {"row": 18, "column": 55}, "end_point": {"row": 18, "column": 64}}, {"id": 40, "type": "identifier", "text": "id", "parent": 39, "children": [], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 59}}, {"id": 41, "type": "identifier", "text": "arg1", "parent": 39, "children": [], "start_point": {"row": 18, "column": 60}, "end_point": {"row": 18, "column": 64}}, {"id": 42, "type": "unary_expression", "text": "+ (id)JSONKeyPathsByPropertyKey", "parent": null, "children": [43, 44], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 31}}, {"id": 43, "type": "+", "text": "+", "parent": 42, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 44, "type": "cast_expression", "text": "(id)JSONKeyPathsByPropertyKey", "parent": 42, "children": [45, 47], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 31}}, {"id": 45, "type": "type_descriptor", "text": "id", "parent": 44, "children": [46], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 46, "type": "type_identifier", "text": "id", "parent": 45, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 47, "type": "identifier", "text": "JSONKeyPathsByPropertyKey", "parent": 44, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 31}}, {"id": 48, "type": "unary_expression", "text": "+ (BOOL)supportsSecureCoding", "parent": null, "children": [49, 50], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 28}}, {"id": 49, "type": "+", "text": "+", "parent": 48, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 50, "type": "cast_expression", "text": "(BOOL)supportsSecureCoding", "parent": 48, "children": [51, 53], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 28}}, {"id": 51, "type": "type_descriptor", "text": "BOOL", "parent": 50, "children": [52], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 52, "type": "type_identifier", "text": "BOOL", "parent": 51, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 53, "type": "identifier", "text": "supportsSecureCoding", "parent": 50, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 54, "type": "ERROR", "text": "@", "parent": null, "children": [55], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 55, "type": "ERROR", "text": "@", "parent": 54, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 56, "type": "call_expression", "text": "property(readonly, copy, nonatomic)", "parent": null, "children": [57, 58], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 36}}, {"id": 57, "type": "identifier", "text": "property", "parent": 56, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 58, "type": "argument_list", "text": "(readonly, copy, nonatomic)", "parent": 56, "children": [59, 60, 61], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 36}}, {"id": 59, "type": "identifier", "text": "readonly", "parent": 58, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 18}}, {"id": 60, "type": "identifier", "text": "copy", "parent": 58, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 24}}, {"id": 61, "type": "identifier", "text": "nonatomic", "parent": 58, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 35}}, {"id": 62, "type": "declaration", "text": "NSString *localizedTitle;", "parent": null, "children": [63, 64], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 62}}, {"id": 63, "type": "type_identifier", "text": "NSString", "parent": 62, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 45}}, {"id": 64, "type": "pointer_declarator", "text": "*localizedTitle", "parent": 62, "children": [65, 66], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 61}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 47}}, {"id": 66, "type": "identifier", "text": "localizedTitle", "parent": 64, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 61}}, {"id": 67, "type": "ERROR", "text": "@", "parent": null, "children": [68], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 68, "type": "ERROR", "text": "@", "parent": 67, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 69, "type": "call_expression", "text": "property(readonly, copy, nonatomic)", "parent": null, "children": [70, 71], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 36}}, {"id": 70, "type": "identifier", "text": "property", "parent": 69, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 71, "type": "argument_list", "text": "(readonly, copy, nonatomic)", "parent": 69, "children": [72, 73, 74], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 36}}, {"id": 72, "type": "identifier", "text": "readonly", "parent": 71, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 18}}, {"id": 73, "type": "identifier", "text": "copy", "parent": 71, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 24}}, {"id": 74, "type": "identifier", "text": "nonatomic", "parent": 71, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 35}}, {"id": 75, "type": "declaration", "text": "NSString *localIdentifier;", "parent": null, "children": [76, 77], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 63}}, {"id": 76, "type": "type_identifier", "text": "NSString", "parent": 75, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 45}}, {"id": 77, "type": "pointer_declarator", "text": "*localIdentifier", "parent": 75, "children": [78, 79], "start_point": {"row": 22, "column": 46}, "end_point": {"row": 22, "column": 62}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 22, "column": 46}, "end_point": {"row": 22, "column": 47}}, {"id": 79, "type": "identifier", "text": "localIdentifier", "parent": 77, "children": [], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 62}}, {"id": 80, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [81, 82], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 21}}, {"id": 81, "type": "-", "text": "-", "parent": 80, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 82, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 80, "children": [83, 85], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 21}}, {"id": 83, "type": "type_descriptor", "text": "void", "parent": 82, "children": [84], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 85, "type": "identifier", "text": "cxx_destruct", "parent": 82, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 86, "type": "ERROR", "text": "- (id)initWithLocalIdentifier:(id)", "parent": null, "children": [87, 93], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 34}}, {"id": 87, "type": "unary_expression", "text": "- (id)initWithLocalIdentifier", "parent": 86, "children": [88, 89], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 29}}, {"id": 88, "type": "-", "text": "-", "parent": 87, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 89, "type": "cast_expression", "text": "(id)initWithLocalIdentifier", "parent": 87, "children": [90, 92], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 29}}, {"id": 90, "type": "type_descriptor", "text": "id", "parent": 89, "children": [91], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 91, "type": "type_identifier", "text": "id", "parent": 90, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 92, "type": "identifier", "text": "initWithLocalIdentifier", "parent": 89, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 29}}, {"id": 93, "type": "identifier", "text": "id", "parent": 86, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 94, "type": "declaration", "text": "arg1 localizedTitle:(id)arg2;", "parent": null, "children": [95, 96, 97], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 63}}, {"id": 95, "type": "type_identifier", "text": "arg1", "parent": 94, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 38}}, {"id": 96, "type": "identifier", "text": "localizedTitle", "parent": 94, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 53}}, {"id": 97, "type": "ERROR", "text": ":(id)arg2", "parent": 94, "children": [98, 99], "start_point": {"row": 24, "column": 53}, "end_point": {"row": 24, "column": 62}}, {"id": 98, "type": "identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 57}}, {"id": 99, "type": "identifier", "text": "arg2", "parent": 97, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 62}}, {"id": 100, "type": "ERROR", "text": "@", "parent": null, "children": [101], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 101, "type": "ERROR", "text": "@", "parent": 100, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [8, 20, 25, 62, 75, 94], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [30, 32, 42, 44, 48, 50, 56, 69, 80, 82, 87, 89], "assignments": [], "loops": [], "conditionals": [9, 13, 14, 16, 18, 21, 24, 26, 29, 34, 38, 40, 41, 46, 47, 52, 53, 57, 59, 60, 61, 63, 66, 70, 72, 73, 74, 76, 79, 85, 91, 92, 93, 95, 96, 98, 99], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "WFPHAssetCollectionDescriptor", "text_snippet": "interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding>\n{\n NSString *_localIdentifier"}], "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 \"MTLModel.h\"\n\n#import \"NSSecureCoding.h\"\n\n@class NSString;\n\n@interface WFPHAssetCollectionDescriptor : MTLModel <NSSecureCoding>\n{\n NSString *_localIdentifier;\n NSString *_localizedTitle;\n}\n\n+ (unsigned long long)storageBehaviorForPropertyWithKey:(id)arg1;\n+ (id)JSONKeyPathsByPropertyKey;\n+ (BOOL)supportsSecureCoding;\n@property(readonly, copy, nonatomic) NSString *localizedTitle; // @synthesize localizedTitle=_localizedTitle;\n@property(readonly, copy, nonatomic) NSString *localIdentifier; // @synthesize localIdentifier=_localIdentifier;\n- (void).cxx_destruct;\n- (id)initWithLocalIdentifier:(id)arg1 localizedTitle:(id)arg2;\n\n@end\n\n"}
190
c
// // RCCallViewWrapper.h // rongcloud_call_wrapper_plugin // // Created by <NAME> on 2021/12/13. // #import <Foundation/Foundation.h> #import <Flutter/Flutter.h> NS_ASSUME_NONNULL_BEGIN @class RCCallIWFlutterView; @interface RCCallView : NSObject - (RCCallIWFlutterView *)view; @end @interface RCCallViewWrapper : NSObject <FlutterPlugin> + (instancetype)sharedInstance; - (RCCallView *)getView:(NSInteger)viewId; @end NS_ASSUME_NONNULL_END
23.72
18
(translation_unit) "//\n// RCCallViewWrapper.h\n// rongcloud_call_wrapper_plugin\n//\n// Created by <NAME> on 2021/12/13.\n//\n\n#import <Foundation/Foundation.h>\n#import <Flutter/Flutter.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class RCCallIWFlutterView;\n\n@interface RCCallView : NSObject\n\n- (RCCallIWFlutterView *)view;\n\n@end\n\n@interface RCCallViewWrapper : NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance;\n\n- (RCCallView *)getView:(NSInteger)viewId;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// RCCallViewWrapper.h" (comment) "// rongcloud_call_wrapper_plugin" (comment) "//" (comment) "// Created by <NAME> on 2021/12/13." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import <Flutter/Flutter.h>\n" (preproc_directive) "#import" (preproc_arg) "<Flutter/Flutter.h>" (declaration) "NS_ASSUME_NONNULL_BEGIN\n\n@class RCCallIWFlutterView;" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (ERROR) "@class" (ERROR) "@" (identifier) "class" (identifier) "RCCallIWFlutterView" (;) ";" (ERROR) "@interface RCCallView : NSObject" (ERROR) "@" (type_identifier) "interface" (identifier) "RCCallView" (:) ":" (identifier) "NSObject" (expression_statement) "- (RCCallIWFlutterView *)view;" (unary_expression) "- (RCCallIWFlutterView *)view" (-) "-" (cast_expression) "(RCCallIWFlutterView *)view" (() "(" (type_descriptor) "RCCallIWFlutterView *" (type_identifier) "RCCallIWFlutterView" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "view" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\n@interface" (type_identifier) "end" (ERROR) "@" (ERROR) "@" (identifier) "interface" (;) "" (labeled_statement) "RCCallViewWrapper : NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance;" (statement_identifier) "RCCallViewWrapper" (:) ":" (expression_statement) "NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance;" (binary_expression) "NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance" (binary_expression) "NSObject <FlutterPlugin" (identifier) "NSObject" (<) "<" (identifier) "FlutterPlugin" (>) ">" (unary_expression) "+ (instancetype)sharedInstance" (+) "+" (cast_expression) "(instancetype)sharedInstance" (() "(" (type_descriptor) "instancetype" (type_identifier) "instancetype" ()) ")" (identifier) "sharedInstance" (;) ";" (expression_statement) "- (RCCallView *)getView:(NSInteger)viewId;" (unary_expression) "- (RCCallView *)getView" (-) "-" (cast_expression) "(RCCallView *)getView" (() "(" (type_descriptor) "RCCallView *" (type_identifier) "RCCallView" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "getView" (ERROR) ":(NSInteger)viewId" (:) ":" (() "(" (identifier) "NSInteger" ()) ")" (identifier) "viewId" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) ""
89
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.72, "nodes": 59, "errors": 0, "source_hash": "40cf67d724deba625a8e2ffca431dcfe084654c702a33a24cd537536cdd01b3a", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import <Flutter/Flutter.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": "<Flutter/Flutter.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 6, "type": "declaration", "text": "NS_ASSUME_NONNULL_BEGIN\n\n@class RCCallIWFlutterView;", "parent": null, "children": [7, 8, 10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 27}}, {"id": 7, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 8, "type": "ERROR", "text": "@class", "parent": 6, "children": [9], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "identifier", "text": "RCCallIWFlutterView", "parent": 6, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 26}}, {"id": 11, "type": "ERROR", "text": "@interface RCCallView : NSObject", "parent": null, "children": [12, 13, 14, 15], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 12, "type": "ERROR", "text": "@", "parent": 11, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "interface", "parent": 11, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 14, "type": "identifier", "text": "RCCallView", "parent": 11, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 21}}, {"id": 15, "type": "identifier", "text": "NSObject", "parent": 11, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 16, "type": "unary_expression", "text": "- (RCCallIWFlutterView *)view", "parent": null, "children": [17, 18], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 29}}, {"id": 17, "type": "-", "text": "-", "parent": 16, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 18, "type": "cast_expression", "text": "(RCCallIWFlutterView *)view", "parent": 16, "children": [19, 23], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 29}}, {"id": 19, "type": "type_descriptor", "text": "RCCallIWFlutterView *", "parent": 18, "children": [20, 21], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 24}}, {"id": 20, "type": "type_identifier", "text": "RCCallIWFlutterView", "parent": 19, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 22}}, {"id": 21, "type": "abstract_pointer_declarator", "text": "*", "parent": 19, "children": [22], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 24}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 24}}, {"id": 23, "type": "identifier", "text": "view", "parent": 18, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 29}}, {"id": 24, "type": "ERROR", "text": "@", "parent": null, "children": [25], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 25, "type": "ERROR", "text": "@", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 26, "type": "declaration", "text": "end\n\n@interface", "parent": null, "children": [27, 29], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 27, "type": "ERROR", "text": "@", "parent": 26, "children": [28], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 28, "type": "ERROR", "text": "@", "parent": 27, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 29, "type": "identifier", "text": "interface", "parent": 26, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 30, "type": "labeled_statement", "text": "RCCallViewWrapper : NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance;", "parent": null, "children": [31], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 22, "column": 31}}, {"id": 31, "type": "statement_identifier", "text": "RCCallViewWrapper", "parent": 30, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 28}}, {"id": 32, "type": "binary_expression", "text": "NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance", "parent": 30, "children": [33, 37, 38], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 22, "column": 30}}, {"id": 33, "type": "binary_expression", "text": "NSObject <FlutterPlugin", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 54}}, {"id": 34, "type": "identifier", "text": "NSObject", "parent": 33, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 39}}, {"id": 35, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 41}}, {"id": 36, "type": "identifier", "text": "FlutterPlugin", "parent": 33, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 54}}, {"id": 37, "type": ">", "text": ">", "parent": 32, "children": [], "start_point": {"row": 20, "column": 54}, "end_point": {"row": 20, "column": 55}}, {"id": 38, "type": "unary_expression", "text": "+ (instancetype)sharedInstance", "parent": 32, "children": [39, 40], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 30}}, {"id": 39, "type": "+", "text": "+", "parent": 38, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 40, "type": "cast_expression", "text": "(instancetype)sharedInstance", "parent": 38, "children": [41, 43], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 30}}, {"id": 41, "type": "type_descriptor", "text": "instancetype", "parent": 40, "children": [42], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 15}}, {"id": 42, "type": "type_identifier", "text": "instancetype", "parent": 41, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 15}}, {"id": 43, "type": "identifier", "text": "sharedInstance", "parent": 40, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 30}}, {"id": 44, "type": "unary_expression", "text": "- (RCCallView *)getView", "parent": null, "children": [45, 46], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 23}}, {"id": 45, "type": "-", "text": "-", "parent": 44, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 46, "type": "cast_expression", "text": "(RCCallView *)getView", "parent": 44, "children": [47, 51], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 23}}, {"id": 47, "type": "type_descriptor", "text": "RCCallView *", "parent": 46, "children": [48, 49], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 48, "type": "type_identifier", "text": "RCCallView", "parent": 47, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 13}}, {"id": 49, "type": "abstract_pointer_declarator", "text": "*", "parent": 47, "children": [50], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 51, "type": "identifier", "text": "getView", "parent": 46, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 23}}, {"id": 52, "type": "ERROR", "text": ":(NSInteger)viewId", "parent": null, "children": [53, 54], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 41}}, {"id": 53, "type": "identifier", "text": "NSInteger", "parent": 52, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 34}}, {"id": 54, "type": "identifier", "text": "viewId", "parent": 52, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 41}}, {"id": 55, "type": "ERROR", "text": "@", "parent": null, "children": [56], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 56, "type": "ERROR", "text": "@", "parent": 55, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 57, "type": "declaration", "text": "end\n\nNS_ASSUME_NONNULL_END", "parent": null, "children": [58], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 28, "column": 21}}, {"id": 58, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 57, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 26, 57], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 18, 32, 33, 38, 40, 44, 46], "assignments": [], "loops": [], "conditionals": [7, 10, 13, 14, 15, 20, 23, 29, 31, 34, 36, 42, 43, 48, 51, 53, 54, 58], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// RCCallViewWrapper.h\n// rongcloud_call_wrapper_plugin\n//\n// Created by <NAME> on 2021/12/13.\n//\n\n#import <Foundation/Foundation.h>\n#import <Flutter/Flutter.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class RCCallIWFlutterView;\n\n@interface RCCallView : NSObject\n\n- (RCCallIWFlutterView *)view;\n\n@end\n\n@interface RCCallViewWrapper : NSObject <FlutterPlugin>\n\n+ (instancetype)sharedInstance;\n\n- (RCCallView *)getView:(NSInteger)viewId;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
191
c
{% extends "oyCMMapi_s_.template.h" %} {% block ChildMembers %} {{ block.super }} /* Include "CMMapi5.members.h" { */ {% include "CMMapi5.members.h" %} /* } Include "CMMapi5.members.h" */ {% endblock %}
28
7
(translation_unit) "{% extends "oyCMMapi_s_.template.h" %}\n\n{% block ChildMembers %}\n{{ block.super }}\n/* Include "CMMapi5.members.h" { */\n{% include "CMMapi5.members.h" %}\n/* } Include "CMMapi5.members.h" */\n{% endblock %}\n" (compound_statement) "{% extends "oyCMMapi_s_.template.h" %}" ({) "{" (ERROR) "% extends "oyCMMapi_s_.template.h" %" (%) "%" (concatenated_string) "extends "oyCMMapi_s_.template.h"" (identifier) "extends" (string_literal) ""oyCMMapi_s_.template.h"" (") """ (string_content) "oyCMMapi_s_.template.h" (") """ (%) "%" (}) "}" (compound_statement) "{% block ChildMembers %}" ({) "{" (ERROR) "% block ChildMembers %" (%) "%" (type_identifier) "block" (identifier) "ChildMembers" (%) "%" (}) "}" (compound_statement) "{{ block.super }}" ({) "{" (compound_statement) "{ block.super }" ({) "{" (expression_statement) "block.super" (field_expression) "block.super" (identifier) "block" (.) "." (field_identifier) "super" (;) "" (}) "}" (}) "}" (comment) "/* Include "CMMapi5.members.h" { */" (compound_statement) "{% include "CMMapi5.members.h" %}" ({) "{" (ERROR) "% include "CMMapi5.members.h" %" (%) "%" (concatenated_string) "include "CMMapi5.members.h"" (identifier) "include" (string_literal) ""CMMapi5.members.h"" (") """ (string_content) "CMMapi5.members.h" (") """ (%) "%" (}) "}" (comment) "/* } Include "CMMapi5.members.h" */" (compound_statement) "{% endblock %}" ({) "{" (ERROR) "% endblock %" (%) "%" (identifier) "endblock" (%) "%" (}) "}"
54
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.0, "nodes": 24, "errors": 0, "source_hash": "35be0081333905aee2355b1991e1cade9d686437186a0218b178d97d127c48f7", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "% extends \"oyCMMapi_s_.template.h\" %", "parent": null, "children": [1, 2, 5], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 37}}, {"id": 1, "type": "%", "text": "%", "parent": 0, "children": [], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 2}}, {"id": 2, "type": "concatenated_string", "text": "extends \"oyCMMapi_s_.template.h\"", "parent": 0, "children": [3, 4], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 35}}, {"id": 3, "type": "identifier", "text": "extends", "parent": 2, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 4, "type": "string_literal", "text": "\"oyCMMapi_s_.template.h\"", "parent": 2, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 35}}, {"id": 5, "type": "%", "text": "%", "parent": 0, "children": [], "start_point": {"row": 0, "column": 36}, "end_point": {"row": 0, "column": 37}}, {"id": 6, "type": "ERROR", "text": "% block ChildMembers %", "parent": null, "children": [7, 8, 9, 10], "start_point": {"row": 2, "column": 1}, "end_point": {"row": 2, "column": 23}}, {"id": 7, "type": "%", "text": "%", "parent": 6, "children": [], "start_point": {"row": 2, "column": 1}, "end_point": {"row": 2, "column": 2}}, {"id": 8, "type": "type_identifier", "text": "block", "parent": 6, "children": [], "start_point": {"row": 2, "column": 3}, "end_point": {"row": 2, "column": 8}}, {"id": 9, "type": "identifier", "text": "ChildMembers", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 21}}, {"id": 10, "type": "%", "text": "%", "parent": 6, "children": [], "start_point": {"row": 2, "column": 22}, "end_point": {"row": 2, "column": 23}}, {"id": 11, "type": "field_expression", "text": "block.super", "parent": null, "children": [12, 13], "start_point": {"row": 3, "column": 3}, "end_point": {"row": 3, "column": 14}}, {"id": 12, "type": "identifier", "text": "block", "parent": 11, "children": [], "start_point": {"row": 3, "column": 3}, "end_point": {"row": 3, "column": 8}}, {"id": 13, "type": "field_identifier", "text": "super", "parent": 11, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 14}}, {"id": 14, "type": "ERROR", "text": "% include \"CMMapi5.members.h\" %", "parent": null, "children": [15, 16, 19], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 32}}, {"id": 15, "type": "%", "text": "%", "parent": 14, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 2}}, {"id": 16, "type": "concatenated_string", "text": "include \"CMMapi5.members.h\"", "parent": 14, "children": [17, 18], "start_point": {"row": 5, "column": 3}, "end_point": {"row": 5, "column": 30}}, {"id": 17, "type": "identifier", "text": "include", "parent": 16, "children": [], "start_point": {"row": 5, "column": 3}, "end_point": {"row": 5, "column": 10}}, {"id": 18, "type": "string_literal", "text": "\"CMMapi5.members.h\"", "parent": 16, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 30}}, {"id": 19, "type": "%", "text": "%", "parent": 14, "children": [], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 32}}, {"id": 20, "type": "ERROR", "text": "% endblock %", "parent": null, "children": [21, 22, 23], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 13}}, {"id": 21, "type": "%", "text": "%", "parent": 20, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 2}}, {"id": 22, "type": "identifier", "text": "endblock", "parent": 20, "children": [], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 11}}, {"id": 23, "type": "%", "text": "%", "parent": 20, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11], "assignments": [], "loops": [], "conditionals": [3, 8, 9, 12, 13, 17, 22], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 4, 16, 18], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "{% extends \"oyCMMapi_s_.template.h\" %}\n\n{% block ChildMembers %}\n{{ block.super }}\n/* Include \"CMMapi5.members.h\" { */\n{% include \"CMMapi5.members.h\" %}\n/* } Include \"CMMapi5.members.h\" */\n{% endblock %}\n"}
192
c
#ifndef _LINDENB_IO_STDIOSTREAMBUF_H #define _LINDENB_IO_STDIOSTREAMBUF_H #include <string> #include <iostream> #include <stdexcept> #include <zlib.h> #include <streambuf> #include <cstdlib> #include <cstring> #include <cassert> #include <zlib.h> #include "lindenb/lang/throw.h" namespace lindenb { namespace io { /** * buffer reading a gz file */ class gzinbuf : public public lindenb::io::istreambuf { private: gzFile* source; void _close() { if(source!=NULL) { ::gzclose(source); source=NULL; } } public: gzinbuf(const char *path,int buff_size=BUFSIZ): lindenb::io::istreambuf(buff_size), source(NULL) { std::errno=0; source=::gzopen(path,"rb"); if(source==NULL) { THROW("failed to open \"" << path<< "\" (" << std::strerror(errno) << ")."); } } virtual ~gzinbuf() { _close(); } virtual int underflow ( ) { if(source==NULL) return EOF; int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,); if(nRead<0) { throw std::runtime_error("I/O error"); } else if(nRead==0) { _close(); return EOF; } this->buffer_size=(unsigned int)nRead; setg( (char*)this->buffer, (char*)&this->buffer[1], (char*)&this->buffer[this->buffer_size] ); return this->buffer_size==0?EOF:this->buffer[0]; } }; }}//namespaces #endif
18.62
73
(translation_unit) "#ifndef _LINDENB_IO_STDIOSTREAMBUF_H\n#define _LINDENB_IO_STDIOSTREAMBUF_H\n#include <string>\n#include <iostream>\n#include <stdexcept>\n#include <zlib.h>\n#include <streambuf>\n#include <cstdlib>\n#include <cstring>\n#include <cassert>\n#include <zlib.h>\n#include "lindenb/lang/throw.h"\n\nnamespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n };\n\n}}//namespaces\n\n#endif\n" (preproc_ifdef) "#ifndef _LINDENB_IO_STDIOSTREAMBUF_H\n#define _LINDENB_IO_STDIOSTREAMBUF_H\n#include <string>\n#include <iostream>\n#include <stdexcept>\n#include <zlib.h>\n#include <streambuf>\n#include <cstdlib>\n#include <cstring>\n#include <cassert>\n#include <zlib.h>\n#include "lindenb/lang/throw.h"\n\nnamespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n };\n\n}}//namespaces\n\n#endif" (#ifndef) "#ifndef" (identifier) "_LINDENB_IO_STDIOSTREAMBUF_H" (preproc_def) "#define _LINDENB_IO_STDIOSTREAMBUF_H\n" (#define) "#define" (identifier) "_LINDENB_IO_STDIOSTREAMBUF_H" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <stdexcept>\n" (#include) "#include" (system_lib_string) "<stdexcept>" (preproc_include) "#include <zlib.h>\n" (#include) "#include" (system_lib_string) "<zlib.h>" (preproc_include) "#include <streambuf>\n" (#include) "#include" (system_lib_string) "<streambuf>" (preproc_include) "#include <cstdlib>\n" (#include) "#include" (system_lib_string) "<cstdlib>" (preproc_include) "#include <cstring>\n" (#include) "#include" (system_lib_string) "<cstring>" (preproc_include) "#include <cassert>\n" (#include) "#include" (system_lib_string) "<cassert>" (preproc_include) "#include <zlib.h>\n" (#include) "#include" (system_lib_string) "<zlib.h>" (preproc_include) "#include "lindenb/lang/throw.h"\n" (#include) "#include" (string_literal) ""lindenb/lang/throw.h"" (") """ (string_content) "lindenb/lang/throw.h" (") """ (function_definition) "namespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n };\n\n}" (type_identifier) "namespace" (identifier) "lindenb" (compound_statement) "{ namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n };\n\n}" ({) "{" (function_definition) "namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n }" (type_identifier) "namespace" (identifier) "io" (compound_statement) "{\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }\n \n virtual ~gzinbuf()\n {\n _close();\n }\n \n \n virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }\n }" ({) "{" (comment) "/**\n * buffer reading a gz file\n */" (function_definition) "class gzinbuf : public public lindenb::io::istreambuf\n {\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }" (type_identifier) "class" (ERROR) "gzinbuf : public public lindenb::io::" (identifier) "gzinbuf" (:) ":" (identifier) "public" (identifier) "public" (identifier) "lindenb" (:) ":" (:) ":" (identifier) "io" (:) ":" (:) ":" (identifier) "istreambuf" (compound_statement) "{\n private:\n gzFile* source;\n \n void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }\n \n public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;\n source=::gzopen(path,"rb");\n if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }\n }" ({) "{" (labeled_statement) "private:\n gzFile* source;" (statement_identifier) "private" (:) ":" (declaration) "gzFile* source;" (type_identifier) "gzFile" (pointer_declarator) "* source" (*) "*" (identifier) "source" (;) ";" (function_definition) "void _close()\n {\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }" (primitive_type) "void" (function_declarator) "_close()" (identifier) "_close" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }\n }" ({) "{" (if_statement) "if(source!=NULL)\n {\n ::gzclose(source);\n source=NULL;\n }" (if) "if" (parenthesized_expression) "(source!=NULL)" (() "(" (binary_expression) "source!=NULL" (identifier) "source" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n ::gzclose(source);\n source=NULL;\n }" ({) "{" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "gzclose(source);" (call_expression) "gzclose(source)" (identifier) "gzclose" (argument_list) "(source)" (() "(" (identifier) "source" ()) ")" (;) ";" (expression_statement) "source=NULL;" (assignment_expression) "source=NULL" (identifier) "source" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (labeled_statement) "public:\n gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;" (statement_identifier) "public" (:) ":" (declaration) "gzinbuf(const char *path,int buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size),\n source(NULL)\n {\n std::errno=0;" (macro_type_specifier) "gzinbuf(const char *" (identifier) "gzinbuf" (() "(" (type_descriptor) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "path" (,) "," (ERROR) "int" (identifier) "int" (init_declarator) "buff_size=BUFSIZ):\n lindenb::io::istreambuf(buff_size)" (identifier) "buff_size" (=) "=" (ERROR) "BUFSIZ):\n lindenb::io::" (identifier) "BUFSIZ" ()) ")" (:) ":" (identifier) "lindenb" (:) ":" (:) ":" (identifier) "io" (:) ":" (:) ":" (call_expression) "istreambuf(buff_size)" (identifier) "istreambuf" (argument_list) "(buff_size)" (() "(" (identifier) "buff_size" ()) ")" (,) "," (init_declarator) "source(NULL)\n {\n std::errno=0" (function_declarator) "source(NULL)" (identifier) "source" (parameter_list) "(NULL)" (() "(" (parameter_declaration) "NULL" (type_identifier) "NULL" ()) ")" (ERROR) "{\n std::errno" ({) "{" (identifier) "std" (:) ":" (:) ":" (identifier) "errno" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "source=::gzopen(path,"rb");" (assignment_expression) "source=::gzopen(path,"rb")" (identifier) "source" (=) "=" (ERROR) "::" (:) ":" (:) ":" (call_expression) "gzopen(path,"rb")" (identifier) "gzopen" (argument_list) "(path,"rb")" (() "(" (identifier) "path" (,) "," (string_literal) ""rb"" (") """ (string_content) "rb" (") """ ()) ")" (;) ";" (if_statement) "if(source==NULL)\n {\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }" (if) "if" (parenthesized_expression) "(source==NULL)" (() "(" (binary_expression) "source==NULL" (identifier) "source" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");\n }" ({) "{" (expression_statement) "THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").");" (call_expression) "THROW("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").")" (identifier) "THROW" (argument_list) "("failed to open \"" << path<< "\" ("\n << std::strerror(errno) << ").")" (() "(" (ERROR) ""failed to open \"" << path<< "\" ("\n << std::" (binary_expression) ""failed to open \"" << path<< "\" ("\n << std" (binary_expression) ""failed to open \"" << path<< "\" ("" (binary_expression) ""failed to open \"" << path" (string_literal) ""failed to open \""" (") """ (string_content) "failed to open " (escape_sequence) "\"" (") """ (<<) "<<" (identifier) "path" (<<) "<<" (string_literal) ""\" ("" (") """ (escape_sequence) "\"" (string_content) " (" (") """ (<<) "<<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "strerror(errno) << ")."" (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" (<<) "<<" (string_literal) "")."" (") """ (string_content) ")." (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "virtual ~gzinbuf()\n {\n _close();\n }" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "gzinbuf()" (identifier) "gzinbuf" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n _close();\n }" ({) "{" (expression_statement) "_close();" (call_expression) "_close()" (identifier) "_close" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "virtual int underflow ( )\n {\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "underflow ( )" (identifier) "underflow" (parameter_list) "( )" (() "(" ()) ")" (compound_statement) "{\n if(source==NULL) return EOF;\n int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }\n this->buffer_size=(unsigned int)nRead;\n setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );\n return this->buffer_size==0?EOF:this->buffer[0];\n }" ({) "{" (if_statement) "if(source==NULL) return EOF;" (if) "if" (parenthesized_expression) "(source==NULL)" (() "(" (binary_expression) "source==NULL" (identifier) "source" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return EOF;" (return) "return" (identifier) "EOF" (;) ";" (declaration) "int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);" (primitive_type) "int" (init_declarator) "nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,)" (identifier) "nRead" (=) "=" (ERROR) "::" (:) ":" (:) ":" (call_expression) "gzread(this->source,(void*)this->buffer,this->buffer_capacity,)" (identifier) "gzread" (argument_list) "(this->source,(void*)this->buffer,this->buffer_capacity,)" (() "(" (field_expression) "this->source" (identifier) "this" (->) "->" (field_identifier) "source" (,) "," (cast_expression) "(void*)this->buffer" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "this->buffer" (identifier) "this" (->) "->" (field_identifier) "buffer" (,) "," (field_expression) "this->buffer_capacity" (identifier) "this" (->) "->" (field_identifier) "buffer_capacity" (,) "," (identifier) "" ()) ")" (;) ";" (if_statement) "if(nRead<0)\n {\n throw std::runtime_error("I/O error");\n }\n else if(nRead==0)\n {\n _close();\n return EOF;\n }" (if) "if" (parenthesized_expression) "(nRead<0)" (() "(" (binary_expression) "nRead<0" (identifier) "nRead" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n throw std::runtime_error("I/O error");\n }" ({) "{" (ERROR) "throw std::runtime_error(" (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "runtime_error" (() "(" (expression_statement) ""I/O error");" (string_literal) ""I/O error"" (") """ (string_content) "I/O error" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if(nRead==0)\n {\n _close();\n return EOF;\n }" (else) "else" (if_statement) "if(nRead==0)\n {\n _close();\n return EOF;\n }" (if) "if" (parenthesized_expression) "(nRead==0)" (() "(" (binary_expression) "nRead==0" (identifier) "nRead" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n _close();\n return EOF;\n }" ({) "{" (expression_statement) "_close();" (call_expression) "_close()" (identifier) "_close" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return EOF;" (return) "return" (identifier) "EOF" (;) ";" (}) "}" (expression_statement) "this->buffer_size=(unsigned int)nRead;" (assignment_expression) "this->buffer_size=(unsigned int)nRead" (field_expression) "this->buffer_size" (identifier) "this" (->) "->" (field_identifier) "buffer_size" (=) "=" (cast_expression) "(unsigned int)nRead" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "nRead" (;) ";" (expression_statement) "setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n );" (call_expression) "setg( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n )" (identifier) "setg" (argument_list) "( (char*)this->buffer,\n (char*)&this->buffer[1],\n (char*)&this->buffer[this->buffer_size]\n )" (() "(" (cast_expression) "(char*)this->buffer" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "this->buffer" (identifier) "this" (->) "->" (field_identifier) "buffer" (,) "," (cast_expression) "(char*)&this->buffer[1]" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&this->buffer[1]" (&) "&" (subscript_expression) "this->buffer[1]" (field_expression) "this->buffer" (identifier) "this" (->) "->" (field_identifier) "buffer" ([) "[" (number_literal) "1" (]) "]" (,) "," (cast_expression) "(char*)&this->buffer[this->buffer_size]" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&this->buffer[this->buffer_size]" (&) "&" (subscript_expression) "this->buffer[this->buffer_size]" (field_expression) "this->buffer" (identifier) "this" (->) "->" (field_identifier) "buffer" ([) "[" (field_expression) "this->buffer_size" (identifier) "this" (->) "->" (field_identifier) "buffer_size" (]) "]" ()) ")" (;) ";" (return_statement) "return this->buffer_size==0?EOF:this->buffer[0];" (return) "return" (conditional_expression) "this->buffer_size==0?EOF:this->buffer[0]" (binary_expression) "this->buffer_size==0" (field_expression) "this->buffer_size" (identifier) "this" (->) "->" (field_identifier) "buffer_size" (==) "==" (number_literal) "0" (?) "?" (identifier) "EOF" (:) ":" (subscript_expression) "this->buffer[0]" (field_expression) "this->buffer" (identifier) "this" (->) "->" (field_identifier) "buffer" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (ERROR) "}" (}) "}" (comment) "//namespaces" (#endif) "#endif"
483
14
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 18.62, "nodes": 280, "errors": 0, "source_hash": "b7d86ff331878ead2d84d0b15166d8c9fa9c981946c09675c25a2923056cebcb", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _LINDENB_IO_STDIOSTREAMBUF_H\n#define _LINDENB_IO_STDIOSTREAMBUF_H\n#include <string>\n#include <iostream>\n#include <stdexcept>\n#include <zlib.h>\n#include <streambuf>\n#include <cstdlib>\n#include <cstring>\n#include <cassert>\n#include <zlib.h>\n#include \"lindenb/lang/throw.h\"\n\nnamespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}\n\t\n\tpublic:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;\n\t\t\tsource=::gzopen(path,\"rb\");\n\t\t\tif(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\tvirtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}\n\t\t\n\t\t\n\t\tvirtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n\t\t\tif(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}\n\t\t\tthis->buffer_size=(unsigned int)nRead;\n\t\t\tsetg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t);\n\t\t\treturn this->buffer_size==0?EOF:this->buffer[0];\n\t\t\t}\n\t};\n\n}}//namespaces\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 279], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 76, "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": "_LINDENB_IO_STDIOSTREAMBUF_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 36}}, {"id": 3, "type": "preproc_def", "text": "#define _LINDENB_IO_STDIOSTREAMBUF_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": "_LINDENB_IO_STDIOSTREAMBUF_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 36}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<iostream>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <stdexcept>\n", "parent": 0, "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": "<stdexcept>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include <zlib.h>\n", "parent": 0, "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": "<zlib.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <streambuf>\n", "parent": 0, "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": "<streambuf>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include <cstdlib>\n", "parent": 0, "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": "<cstdlib>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 24, "type": "preproc_include", "text": "#include <cstring>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<cstring>", "parent": 24, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include <cassert>\n", "parent": 0, "children": [28, 29], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<cassert>", "parent": 27, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 30, "type": "preproc_include", "text": "#include <zlib.h>\n", "parent": 0, "children": [31, 32], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<zlib.h>", "parent": 30, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 33, "type": "preproc_include", "text": "#include \"lindenb/lang/throw.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"lindenb/lang/throw.h\"", "parent": 33, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 31}}, {"id": 36, "type": "function_definition", "text": "namespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}\n\t\n\tpublic:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;\n\t\t\tsource=::gzopen(path,\"rb\");\n\t\t\tif(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\tvirtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}\n\t\t\n\t\t\n\t\tvirtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n\t\t\tif(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}\n\t\t\tthis->buffer_size=(unsigned int)nRead;\n\t\t\tsetg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t);\n\t\t\treturn this->buffer_size==0?EOF:this->buffer[0];\n\t\t\t}\n\t};\n\n}", "parent": 0, "children": [37, 38], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 37, "type": "type_identifier", "text": "namespace", "parent": 36, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 38, "type": "identifier", "text": "lindenb", "parent": 36, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 17}}, {"id": 39, "type": "function_definition", "text": "namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}\n\t\n\tpublic:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;\n\t\t\tsource=::gzopen(path,\"rb\");\n\t\t\tif(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\tvirtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}\n\t\t\n\t\t\n\t\tvirtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n\t\t\tif(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}\n\t\t\tthis->buffer_size=(unsigned int)nRead;\n\t\t\tsetg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t);\n\t\t\treturn this->buffer_size==0?EOF:this->buffer[0];\n\t\t\t}\n\t}", "parent": 36, "children": [40, 41], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 72, "column": 2}}, {"id": 40, "type": "type_identifier", "text": "namespace", "parent": 39, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 29}}, {"id": 41, "type": "identifier", "text": "io", "parent": 39, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 32}}, {"id": 42, "type": "function_definition", "text": "class gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}\n\t\n\tpublic:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;\n\t\t\tsource=::gzopen(path,\"rb\");\n\t\t\tif(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}\n\t\t\t}", "parent": 39, "children": [43, 47], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 43, "type": "ERROR", "text": "gzinbuf : public public lindenb::io::", "parent": 42, "children": [44, 45, 46], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 43}}, {"id": 44, "type": "identifier", "text": "gzinbuf", "parent": 43, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 13}}, {"id": 45, "type": "identifier", "text": "lindenb", "parent": 43, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 37}}, {"id": 46, "type": "identifier", "text": "io", "parent": 43, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 41}}, {"id": 47, "type": "identifier", "text": "istreambuf", "parent": 42, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 53}}, {"id": 48, "type": "labeled_statement", "text": "private:\n\t\tgzFile* source;", "parent": 42, "children": [49], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 17}}, {"id": 49, "type": "declaration", "text": "gzFile* source;", "parent": 48, "children": [50, 51], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 17}}, {"id": 50, "type": "type_identifier", "text": "gzFile", "parent": 49, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 51, "type": "pointer_declarator", "text": "* source", "parent": 49, "children": [52, 53], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 53, "type": "identifier", "text": "source", "parent": 51, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 16}}, {"id": 54, "type": "function_definition", "text": "void _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}", "parent": 42, "children": [55, 56], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 30, "column": 4}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 56, "type": "function_declarator", "text": "_close()", "parent": 54, "children": [57, 58], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 15}}, {"id": 57, "type": "identifier", "text": "_close", "parent": 56, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 13}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 15}}, {"id": 59, "type": "if_statement", "text": "if(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}", "parent": 54, "children": [60], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 60, "type": "parenthesized_expression", "text": "(source!=NULL)", "parent": 59, "children": [61], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 19}}, {"id": 61, "type": "binary_expression", "text": "source!=NULL", "parent": 60, "children": [62, 63, 64], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 18}}, {"id": 62, "type": "identifier", "text": "source", "parent": 61, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 63, "type": "!=", "text": "!=", "parent": 61, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 14}}, {"id": 64, "type": "null", "text": "NULL", "parent": 61, "children": [65], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 18}}, {"id": 65, "type": "NULL", "text": "NULL", "parent": 64, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 18}}, {"id": 66, "type": "call_expression", "text": "gzclose(source)", "parent": 59, "children": [67, 68], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 21}}, {"id": 67, "type": "identifier", "text": "gzclose", "parent": 66, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 13}}, {"id": 68, "type": "argument_list", "text": "(source)", "parent": 66, "children": [69], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 21}}, {"id": 69, "type": "identifier", "text": "source", "parent": 68, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 20}}, {"id": 70, "type": "assignment_expression", "text": "source=NULL", "parent": 59, "children": [71, 72, 73], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 15}}, {"id": 71, "type": "identifier", "text": "source", "parent": 70, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 73, "type": "null", "text": "NULL", "parent": 70, "children": [74], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 15}}, {"id": 74, "type": "NULL", "text": "NULL", "parent": 73, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 15}}, {"id": 75, "type": "labeled_statement", "text": "public:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;", "parent": 42, "children": [76], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 37, "column": 16}}, {"id": 76, "type": "declaration", "text": "gzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;", "parent": 75, "children": [77, 83, 84, 86, 97], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 37, "column": 16}}, {"id": 77, "type": "macro_type_specifier", "text": "gzinbuf(const char *", "parent": 76, "children": [78, 79], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 22}}, {"id": 78, "type": "identifier", "text": "gzinbuf", "parent": 77, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 9}}, {"id": 79, "type": "type_descriptor", "text": "const char *", "parent": 77, "children": [80, 81], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 22}}, {"id": 80, "type": "primitive_type", "text": "char", "parent": 79, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 81, "type": "abstract_pointer_declarator", "text": "*", "parent": 79, "children": [82], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 83, "type": "identifier", "text": "path", "parent": 76, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 84, "type": "ERROR", "text": "int", "parent": 76, "children": [85], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 30}}, {"id": 85, "type": "identifier", "text": "int", "parent": 84, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 30}}, {"id": 86, "type": "init_declarator", "text": "buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size)", "parent": 76, "children": [87, 88, 89, 93], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 34, "column": 37}}, {"id": 87, "type": "identifier", "text": "buff_size", "parent": 86, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 40}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 33, "column": 40}, "end_point": {"row": 33, "column": 41}}, {"id": 89, "type": "ERROR", "text": "BUFSIZ):\n\t\t\tlindenb::io::", "parent": 86, "children": [90, 91, 92], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 34, "column": 16}}, {"id": 90, "type": "identifier", "text": "BUFSIZ", "parent": 89, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 47}}, {"id": 91, "type": "identifier", "text": "lindenb", "parent": 89, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 10}}, {"id": 92, "type": "identifier", "text": "io", "parent": 89, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 14}}, {"id": 93, "type": "call_expression", "text": "istreambuf(buff_size)", "parent": 86, "children": [94, 95], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 37}}, {"id": 94, "type": "identifier", "text": "istreambuf", "parent": 93, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 26}}, {"id": 95, "type": "argument_list", "text": "(buff_size)", "parent": 93, "children": [96], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 37}}, {"id": 96, "type": "identifier", "text": "buff_size", "parent": 95, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 36}}, {"id": 97, "type": "init_declarator", "text": "source(NULL)\n\t\t\t{\n\t\t\tstd::errno=0", "parent": 76, "children": [98, 103, 106, 107], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 37, "column": 15}}, {"id": 98, "type": "function_declarator", "text": "source(NULL)", "parent": 97, "children": [99, 100], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 15}}, {"id": 99, "type": "identifier", "text": "source", "parent": 98, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 9}}, {"id": 100, "type": "parameter_list", "text": "(NULL)", "parent": 98, "children": [101], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 15}}, {"id": 101, "type": "parameter_declaration", "text": "NULL", "parent": 100, "children": [102], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 14}}, {"id": 102, "type": "type_identifier", "text": "NULL", "parent": 101, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 14}}, {"id": 103, "type": "ERROR", "text": "{\n\t\t\tstd::errno", "parent": 97, "children": [104, 105], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 37, "column": 13}}, {"id": 104, "type": "identifier", "text": "std", "parent": 103, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 6}}, {"id": 105, "type": "identifier", "text": "errno", "parent": 103, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 13}}, {"id": 106, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 97, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 108, "type": "assignment_expression", "text": "source=::gzopen(path,\"rb\")", "parent": 42, "children": [109, 110, 111], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 29}}, {"id": 109, "type": "identifier", "text": "source", "parent": 108, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 9}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 111, "type": "call_expression", "text": "gzopen(path,\"rb\")", "parent": 108, "children": [112, 113], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 29}}, {"id": 112, "type": "identifier", "text": "gzopen", "parent": 111, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 113, "type": "argument_list", "text": "(path,\"rb\")", "parent": 111, "children": [114, 115], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 29}}, {"id": 114, "type": "identifier", "text": "path", "parent": 113, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 23}}, {"id": 115, "type": "string_literal", "text": "\"rb\"", "parent": 113, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 28}}, {"id": 116, "type": "if_statement", "text": "if(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}", "parent": 42, "children": [117], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 43, "column": 5}}, {"id": 117, "type": "parenthesized_expression", "text": "(source==NULL)", "parent": 116, "children": [118], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 19}}, {"id": 118, "type": "binary_expression", "text": "source==NULL", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 18}}, {"id": 119, "type": "identifier", "text": "source", "parent": 118, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 12}}, {"id": 120, "type": "==", "text": "==", "parent": 118, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 14}}, {"id": 121, "type": "null", "text": "NULL", "parent": 118, "children": [122], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 18}}, {"id": 122, "type": "NULL", "text": "NULL", "parent": 121, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 18}}, {"id": 123, "type": "call_expression", "text": "THROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\")", "parent": 116, "children": [124, 125], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 42, "column": 72}}, {"id": 124, "type": "identifier", "text": "THROW", "parent": 123, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 125, "type": "argument_list", "text": "(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\")", "parent": 123, "children": [126, 139], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 42, "column": 72}}, {"id": 126, "type": "ERROR", "text": "\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::", "parent": 125, "children": [127], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 42, "column": 48}}, {"id": 127, "type": "binary_expression", "text": "\"failed to open \\\"\" << path<< \"\\\" (\"\n << std", "parent": 126, "children": [128, 137, 138], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 42, "column": 46}}, {"id": 128, "type": "binary_expression", "text": "\"failed to open \\\"\" << path<< \"\\\" (\"", "parent": 127, "children": [129, 134, 135], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 46}}, {"id": 129, "type": "binary_expression", "text": "\"failed to open \\\"\" << path", "parent": 128, "children": [130, 132, 133], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 37}}, {"id": 130, "type": "string_literal", "text": "\"failed to open \\\"\"", "parent": 129, "children": [131], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 29}}, {"id": 131, "type": "escape_sequence", "text": "\\\"", "parent": 130, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 28}}, {"id": 132, "type": "<<", "text": "<<", "parent": 129, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 32}}, {"id": 133, "type": "identifier", "text": "path", "parent": 129, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 37}}, {"id": 134, "type": "<<", "text": "<<", "parent": 128, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 39}}, {"id": 135, "type": "string_literal", "text": "\"\\\" (\"", "parent": 128, "children": [136], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 46}}, {"id": 136, "type": "escape_sequence", "text": "\\\"", "parent": 135, "children": [], "start_point": {"row": 41, "column": 41}, "end_point": {"row": 41, "column": 43}}, {"id": 137, "type": "<<", "text": "<<", "parent": 127, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 42}}, {"id": 138, "type": "identifier", "text": "std", "parent": 127, "children": [], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 46}}, {"id": 139, "type": "binary_expression", "text": "strerror(errno) << \").\"", "parent": 125, "children": [140, 144, 145], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 71}}, {"id": 140, "type": "call_expression", "text": "strerror(errno)", "parent": 139, "children": [141, 142], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 63}}, {"id": 141, "type": "identifier", "text": "strerror", "parent": 140, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 56}}, {"id": 142, "type": "argument_list", "text": "(errno)", "parent": 140, "children": [143], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 63}}, {"id": 143, "type": "identifier", "text": "errno", "parent": 142, "children": [], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 62}}, {"id": 144, "type": "<<", "text": "<<", "parent": 139, "children": [], "start_point": {"row": 42, "column": 64}, "end_point": {"row": 42, "column": 66}}, {"id": 145, "type": "string_literal", "text": "\").\"", "parent": 139, "children": [], "start_point": {"row": 42, "column": 67}, "end_point": {"row": 42, "column": 71}}, {"id": 146, "type": "function_definition", "text": "virtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}", "parent": 39, "children": [147, 148, 150], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 49, "column": 4}}, {"id": 147, "type": "type_identifier", "text": "virtual", "parent": 146, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 148, "type": "ERROR", "text": "~", "parent": 146, "children": [149], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 149, "type": "~", "text": "~", "parent": 148, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 150, "type": "function_declarator", "text": "gzinbuf()", "parent": 146, "children": [151, 152], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 20}}, {"id": 151, "type": "identifier", "text": "gzinbuf", "parent": 150, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 18}}, {"id": 152, "type": "parameter_list", "text": "()", "parent": 150, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 20}}, {"id": 153, "type": "call_expression", "text": "_close()", "parent": 146, "children": [154, 155], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 11}}, {"id": 154, "type": "identifier", "text": "_close", "parent": 153, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 9}}, {"id": 155, "type": "argument_list", "text": "()", "parent": 153, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 11}}, {"id": 156, "type": "function_definition", "text": "virtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n\t\t\tif(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}\n\t\t\tthis->buffer_size=(unsigned int)nRead;\n\t\t\tsetg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t);\n\t\t\treturn this->buffer_size==0?EOF:this->buffer[0];\n\t\t\t}", "parent": 39, "children": [157, 158, 160], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 71, "column": 4}}, {"id": 157, "type": "type_identifier", "text": "virtual", "parent": 156, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 158, "type": "ERROR", "text": "int", "parent": 156, "children": [159], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 13}}, {"id": 159, "type": "identifier", "text": "int", "parent": 158, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 13}}, {"id": 160, "type": "function_declarator", "text": "underflow ( )", "parent": 156, "children": [161, 162], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 27}}, {"id": 161, "type": "identifier", "text": "underflow", "parent": 160, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 23}}, {"id": 162, "type": "parameter_list", "text": "( )", "parent": 160, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 27}}, {"id": 163, "type": "if_statement", "text": "if(source==NULL) return EOF;", "parent": 156, "children": [164, 170], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 31}}, {"id": 164, "type": "parenthesized_expression", "text": "(source==NULL)", "parent": 163, "children": [165], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 19}}, {"id": 165, "type": "binary_expression", "text": "source==NULL", "parent": 164, "children": [166, 167, 168], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 18}}, {"id": 166, "type": "identifier", "text": "source", "parent": 165, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 12}}, {"id": 167, "type": "==", "text": "==", "parent": 165, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 14}}, {"id": 168, "type": "null", "text": "NULL", "parent": 165, "children": [169], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 169, "type": "NULL", "text": "NULL", "parent": 168, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 170, "type": "return_statement", "text": "return EOF;", "parent": 163, "children": [171], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 31}}, {"id": 171, "type": "identifier", "text": "EOF", "parent": 170, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 30}}, {"id": 172, "type": "declaration", "text": "int nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);", "parent": 156, "children": [173, 174], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 80}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 6}}, {"id": 174, "type": "init_declarator", "text": "nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,)", "parent": 172, "children": [175, 176, 177], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 79}}, {"id": 175, "type": "identifier", "text": "nRead", "parent": 174, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 12}}, {"id": 176, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 177, "type": "call_expression", "text": "gzread(this->source,(void*)this->buffer,this->buffer_capacity,)", "parent": 174, "children": [178, 179], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 79}}, {"id": 178, "type": "identifier", "text": "gzread", "parent": 177, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 22}}, {"id": 179, "type": "argument_list", "text": "(this->source,(void*)this->buffer,this->buffer_capacity,)", "parent": 177, "children": [180, 183, 191, 194], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 79}}, {"id": 180, "type": "field_expression", "text": "this->source", "parent": 179, "children": [181, 182], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 35}}, {"id": 181, "type": "identifier", "text": "this", "parent": 180, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 27}}, {"id": 182, "type": "field_identifier", "text": "source", "parent": 180, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 35}}, {"id": 183, "type": "cast_expression", "text": "(void*)this->buffer", "parent": 179, "children": [184, 188], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 55}}, {"id": 184, "type": "type_descriptor", "text": "void*", "parent": 183, "children": [185, 186], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 42}}, {"id": 185, "type": "primitive_type", "text": "void", "parent": 184, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 41}}, {"id": 186, "type": "abstract_pointer_declarator", "text": "*", "parent": 184, "children": [187], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 42}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 42}}, {"id": 188, "type": "field_expression", "text": "this->buffer", "parent": 183, "children": [189, 190], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 55}}, {"id": 189, "type": "identifier", "text": "this", "parent": 188, "children": [], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 47}}, {"id": 190, "type": "field_identifier", "text": "buffer", "parent": 188, "children": [], "start_point": {"row": 55, "column": 49}, "end_point": {"row": 55, "column": 55}}, {"id": 191, "type": "field_expression", "text": "this->buffer_capacity", "parent": 179, "children": [192, 193], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 77}}, {"id": 192, "type": "identifier", "text": "this", "parent": 191, "children": [], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 60}}, {"id": 193, "type": "field_identifier", "text": "buffer_capacity", "parent": 191, "children": [], "start_point": {"row": 55, "column": 62}, "end_point": {"row": 55, "column": 77}}, {"id": 194, "type": "identifier", "text": "", "parent": 179, "children": [], "start_point": {"row": 55, "column": 78}, "end_point": {"row": 55, "column": 78}}, {"id": 195, "type": "if_statement", "text": "if(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}", "parent": 156, "children": [196, 206], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 64, "column": 5}}, {"id": 196, "type": "parenthesized_expression", "text": "(nRead<0)", "parent": 195, "children": [197], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 14}}, {"id": 197, "type": "binary_expression", "text": "nRead<0", "parent": 196, "children": [198, 199, 200], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 13}}, {"id": 198, "type": "identifier", "text": "nRead", "parent": 197, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 11}}, {"id": 199, "type": "<", "text": "<", "parent": 197, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 200, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 201, "type": "ERROR", "text": "throw std::runtime_error(", "parent": 195, "children": [202, 204], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 30}}, {"id": 202, "type": "ERROR", "text": "std::", "parent": 201, "children": [203], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 16}}, {"id": 203, "type": "identifier", "text": "std", "parent": 202, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 14}}, {"id": 204, "type": "identifier", "text": "runtime_error", "parent": 201, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 29}}, {"id": 205, "type": "string_literal", "text": "\"I/O error\"", "parent": 195, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 41}}, {"id": 206, "type": "else_clause", "text": "else if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}", "parent": 195, "children": [207], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 64, "column": 5}}, {"id": 207, "type": "if_statement", "text": "if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}", "parent": 206, "children": [208], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 64, "column": 5}}, {"id": 208, "type": "parenthesized_expression", "text": "(nRead==0)", "parent": 207, "children": [209], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 20}}, {"id": 209, "type": "binary_expression", "text": "nRead==0", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 19}}, {"id": 210, "type": "identifier", "text": "nRead", "parent": 209, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 16}}, {"id": 211, "type": "==", "text": "==", "parent": 209, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 18}}, {"id": 212, "type": "number_literal", "text": "0", "parent": 209, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 213, "type": "call_expression", "text": "_close()", "parent": 207, "children": [214, 215], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 12}}, {"id": 214, "type": "identifier", "text": "_close", "parent": 213, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 10}}, {"id": 215, "type": "argument_list", "text": "()", "parent": 213, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 12}}, {"id": 216, "type": "return_statement", "text": "return EOF;", "parent": 207, "children": [217], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 15}}, {"id": 217, "type": "identifier", "text": "EOF", "parent": 216, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 14}}, {"id": 218, "type": "assignment_expression", "text": "this->buffer_size=(unsigned int)nRead", "parent": 156, "children": [219, 222, 223], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 40}}, {"id": 219, "type": "field_expression", "text": "this->buffer_size", "parent": 218, "children": [220, 221], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 20}}, {"id": 220, "type": "identifier", "text": "this", "parent": 219, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 221, "type": "field_identifier", "text": "buffer_size", "parent": 219, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 20}}, {"id": 222, "type": "=", "text": "=", "parent": 218, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 21}}, {"id": 223, "type": "cast_expression", "text": "(unsigned int)nRead", "parent": 218, "children": [224, 228], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 40}}, {"id": 224, "type": "type_descriptor", "text": "unsigned int", "parent": 223, "children": [225], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 34}}, {"id": 225, "type": "sized_type_specifier", "text": "unsigned int", "parent": 224, "children": [226, 227], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 34}}, {"id": 226, "type": "unsigned", "text": "unsigned", "parent": 225, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 30}}, {"id": 227, "type": "primitive_type", "text": "int", "parent": 225, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 34}}, {"id": 228, "type": "identifier", "text": "nRead", "parent": 223, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 40}}, {"id": 229, "type": "call_expression", "text": "setg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t)", "parent": 156, "children": [230, 231], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 69, "column": 5}}, {"id": 230, "type": "identifier", "text": "setg", "parent": 229, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 7}}, {"id": 231, "type": "argument_list", "text": "(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t)", "parent": 229, "children": [232, 240, 251], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 69, "column": 5}}, {"id": 232, "type": "cast_expression", "text": "(char*)this->buffer", "parent": 231, "children": [233, 237], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 28}}, {"id": 233, "type": "type_descriptor", "text": "char*", "parent": 232, "children": [234, 235], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 15}}, {"id": 234, "type": "primitive_type", "text": "char", "parent": 233, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 14}}, {"id": 235, "type": "abstract_pointer_declarator", "text": "*", "parent": 233, "children": [236], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 236, "type": "*", "text": "*", "parent": 235, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 237, "type": "field_expression", "text": "this->buffer", "parent": 232, "children": [238, 239], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 28}}, {"id": 238, "type": "identifier", "text": "this", "parent": 237, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 20}}, {"id": 239, "type": "field_identifier", "text": "buffer", "parent": 237, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 28}}, {"id": 240, "type": "cast_expression", "text": "(char*)&this->buffer[1]", "parent": 231, "children": [241, 245], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 27}}, {"id": 241, "type": "type_descriptor", "text": "char*", "parent": 240, "children": [242, 243], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 10}}, {"id": 242, "type": "primitive_type", "text": "char", "parent": 241, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 9}}, {"id": 243, "type": "abstract_pointer_declarator", "text": "*", "parent": 241, "children": [244], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 245, "type": "pointer_expression", "text": "&this->buffer[1]", "parent": 240, "children": [246], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 27}}, {"id": 246, "type": "subscript_expression", "text": "this->buffer[1]", "parent": 245, "children": [247, 250], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 27}}, {"id": 247, "type": "field_expression", "text": "this->buffer", "parent": 246, "children": [248, 249], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 24}}, {"id": 248, "type": "identifier", "text": "this", "parent": 247, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 16}}, {"id": 249, "type": "field_identifier", "text": "buffer", "parent": 247, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 24}}, {"id": 250, "type": "number_literal", "text": "1", "parent": 246, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 26}}, {"id": 251, "type": "cast_expression", "text": "(char*)&this->buffer[this->buffer_size]", "parent": 231, "children": [252, 256], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 43}}, {"id": 252, "type": "type_descriptor", "text": "char*", "parent": 251, "children": [253, 254], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 10}}, {"id": 253, "type": "primitive_type", "text": "char", "parent": 252, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 9}}, {"id": 254, "type": "abstract_pointer_declarator", "text": "*", "parent": 252, "children": [255], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 10}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 10}}, {"id": 256, "type": "pointer_expression", "text": "&this->buffer[this->buffer_size]", "parent": 251, "children": [257], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 43}}, {"id": 257, "type": "subscript_expression", "text": "this->buffer[this->buffer_size]", "parent": 256, "children": [258, 261], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 43}}, {"id": 258, "type": "field_expression", "text": "this->buffer", "parent": 257, "children": [259, 260], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 24}}, {"id": 259, "type": "identifier", "text": "this", "parent": 258, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 16}}, {"id": 260, "type": "field_identifier", "text": "buffer", "parent": 258, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 24}}, {"id": 261, "type": "field_expression", "text": "this->buffer_size", "parent": 257, "children": [262, 263], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 42}}, {"id": 262, "type": "identifier", "text": "this", "parent": 261, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 29}}, {"id": 263, "type": "field_identifier", "text": "buffer_size", "parent": 261, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 42}}, {"id": 264, "type": "return_statement", "text": "return this->buffer_size==0?EOF:this->buffer[0];", "parent": 156, "children": [265], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 51}}, {"id": 265, "type": "conditional_expression", "text": "this->buffer_size==0?EOF:this->buffer[0]", "parent": 264, "children": [266, 272, 273, 274], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 50}}, {"id": 266, "type": "binary_expression", "text": "this->buffer_size==0", "parent": 265, "children": [267, 270, 271], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 30}}, {"id": 267, "type": "field_expression", "text": "this->buffer_size", "parent": 266, "children": [268, 269], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 27}}, {"id": 268, "type": "identifier", "text": "this", "parent": 267, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 14}}, {"id": 269, "type": "field_identifier", "text": "buffer_size", "parent": 267, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 27}}, {"id": 270, "type": "==", "text": "==", "parent": 266, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 29}}, {"id": 271, "type": "number_literal", "text": "0", "parent": 266, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 30}}, {"id": 272, "type": "?", "text": "?", "parent": 265, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 31}}, {"id": 273, "type": "identifier", "text": "EOF", "parent": 265, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 34}}, {"id": 274, "type": "subscript_expression", "text": "this->buffer[0]", "parent": 265, "children": [275, 278], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 50}}, {"id": 275, "type": "field_expression", "text": "this->buffer", "parent": 274, "children": [276, 277], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 47}}, {"id": 276, "type": "identifier", "text": "this", "parent": 275, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 39}}, {"id": 277, "type": "field_identifier", "text": "buffer", "parent": 275, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 47}}, {"id": 278, "type": "number_literal", "text": "0", "parent": 274, "children": [], "start_point": {"row": 70, "column": 48}, "end_point": {"row": 70, "column": 49}}, {"id": 279, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36, 39, 42, 54, 56, 98, 146, 150, 156, 160], "variables": [49, 76, 101, 172], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": []}, "statements": {"expressions": [60, 61, 66, 93, 111, 117, 118, 123, 127, 128, 129, 139, 140, 153, 164, 165, 177, 180, 183, 188, 191, 196, 197, 208, 209, 213, 219, 223, 229, 232, 237, 240, 245, 246, 247, 251, 256, 257, 258, 261, 266, 267, 274, 275], "assignments": [70, 108, 218], "loops": [], "conditionals": [0, 1, 2, 5, 37, 38, 40, 41, 44, 45, 46, 47, 50, 53, 57, 59, 62, 67, 69, 71, 77, 78, 83, 85, 87, 90, 91, 92, 94, 96, 99, 102, 104, 105, 109, 112, 114, 116, 119, 124, 133, 138, 141, 143, 147, 151, 154, 157, 159, 161, 163, 166, 171, 175, 178, 181, 182, 189, 190, 192, 193, 194, 195, 198, 203, 204, 207, 210, 214, 217, 220, 221, 225, 228, 230, 238, 239, 248, 249, 259, 260, 262, 263, 265, 268, 269, 273, 276, 277, 279], "returns": [170, 216, 264], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 107, 115, 130, 135, 145, 200, 205, 212, 250, 271, 278], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "gzinbuf", "text_snippet": "namespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public publi"}, {"node_id": 39, "universal_type": "function", "name": "gzinbuf", "text_snippet": "namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istre"}, {"node_id": 42, "universal_type": "function", "name": "gzinbuf", "text_snippet": "class gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _clos"}, {"node_id": 54, "universal_type": "function", "name": "_close", "text_snippet": "void _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "_close()"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "source(NULL)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "gzinbuf()"}, {"node_id": 156, "universal_type": "function", "name": "underflow", "text_snippet": "virtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,("}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "underflow ( )"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <iostream>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <stdexcept>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <zlib.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <streambuf>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <cstdlib>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <cstring>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <cassert>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <zlib.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"lindenb/lang/throw.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "#ifndef _LINDENB_IO_STDIOSTREAMBUF_H\n#define _LINDENB_IO_STDIOSTREAMBUF_H\n#include <string>\n#include <iostream>\n#include <stdexcept>\n#include <zlib.h>\n#include <streambuf>\n#include <cstdlib>\n#include <cstring>\n#include <cassert>\n#include <zlib.h>\n#include \"lindenb/lang/throw.h\"\n\nnamespace lindenb { namespace io {\n\n/**\n * buffer reading a gz file\n */\nclass gzinbuf : public public lindenb::io::istreambuf\n\t{\n\tprivate:\n\t\tgzFile* source;\n\t\t\n\t\tvoid _close()\n\t\t\t{\n\t\t\tif(source!=NULL)\n\t\t\t\t{\n\t\t\t\t::gzclose(source);\n\t\t\t\tsource=NULL;\n\t\t\t\t}\n\t\t\t}\n\t\n\tpublic:\n\t\tgzinbuf(const char *path,int buff_size=BUFSIZ):\n\t\t\tlindenb::io::istreambuf(buff_size),\n\t\t\tsource(NULL)\n\t\t\t{\n\t\t\tstd::errno=0;\n\t\t\tsource=::gzopen(path,\"rb\");\n\t\t\tif(source==NULL)\n\t\t\t\t{\n\t\t\t\tTHROW(\"failed to open \\\"\" << path<< \"\\\" (\"\n << std::strerror(errno) << \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\tvirtual ~gzinbuf()\n\t\t\t{\n\t\t\t_close();\n\t\t\t}\n\t\t\n\t\t\n\t\tvirtual int underflow ( )\n\t\t\t{\n\t\t\tif(source==NULL) return EOF;\n\t\t\tint nRead= ::gzread(this->source,(void*)this->buffer,this->buffer_capacity,);\n\t\t\tif(nRead<0)\n\t\t\t\t{\n\t\t\t\t throw std::runtime_error(\"I/O error\");\n\t\t\t\t}\n\t\t\telse if(nRead==0)\n\t\t\t\t{\n\t\t\t\t_close();\n\t\t\t\treturn EOF;\n\t\t\t\t}\n\t\t\tthis->buffer_size=(unsigned int)nRead;\n\t\t\tsetg(\t(char*)this->buffer,\n\t\t\t\t(char*)&this->buffer[1],\n\t\t\t\t(char*)&this->buffer[this->buffer_size]\n\t\t\t\t);\n\t\t\treturn this->buffer_size==0?EOF:this->buffer[0];\n\t\t\t}\n\t};\n\n}}//namespaces\n\n#endif\n"}
193
c
// // WJHShouldTerminateToken.h // WJHShouldTerminate // // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> /** A token returned when pausing application termination via -[WJHShouldTerminate pauseTermination]. */ @interface WJHShouldTerminateToken : NSObject /* Use the token to cancel the original process termination request. This method can be called at any time, from any thread. */ - (void)cancel; /* Use the token to resume the original process termination request. This method can be called at any time, from any thread. @note If the token deallocs before issuing either a cancel or resume, it will automatically resume the termination in its dealloc method. */ - (void)resume; @end
31.13
23
(translation_unit) "//\n// WJHShouldTerminateToken.h\n// WJHShouldTerminate\n//\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n A token returned when pausing application termination via -[WJHShouldTerminate pauseTermination].\n */\n@interface WJHShouldTerminateToken : NSObject\n\n/*\n Use the token to cancel the original process termination request.\n\n This method can be called at any time, from any thread.\n */\n- (void)cancel;\n\n/*\n Use the token to resume the original process termination request.\n\n This method can be called at any time, from any thread.\n\n @note If the token deallocs before issuing either a cancel or resume, it will automatically resume the termination in its dealloc method.\n */\n- (void)resume;\n\n@end\n" (comment) "//" (comment) "// WJHShouldTerminateToken.h" (comment) "// WJHShouldTerminate" (comment) "//" (comment) "// Copyright (c) 2015 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (comment) "/**\n A token returned when pausing application termination via -[WJHShouldTerminate pauseTermination].\n */" (ERROR) "@interface WJHShouldTerminateToken : NSObject" (ERROR) "@" (type_identifier) "interface" (identifier) "WJHShouldTerminateToken" (:) ":" (identifier) "NSObject" (comment) "/*\n Use the token to cancel the original process termination request.\n\n This method can be called at any time, from any thread.\n */" (expression_statement) "- (void)cancel;" (unary_expression) "- (void)cancel" (-) "-" (cast_expression) "(void)cancel" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "cancel" (;) ";" (comment) "/*\n Use the token to resume the original process termination request.\n\n This method can be called at any time, from any thread.\n\n @note If the token deallocs before issuing either a cancel or resume, it will automatically resume the termination in its dealloc method.\n */" (expression_statement) "- (void)resume;" (unary_expression) "- (void)resume" (-) "-" (cast_expression) "(void)resume" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "resume" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
44
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.13, "nodes": 22, "errors": 0, "source_hash": "cc595178561e88786b6fc1e511d39e775d7914bc4b303ff2bfbbfbe1a596a45f", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 33}}, {"id": 3, "type": "ERROR", "text": "@interface WJHShouldTerminateToken : NSObject", "parent": null, "children": [4, 5, 6, 7], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 45}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 6, "type": "identifier", "text": "WJHShouldTerminateToken", "parent": 3, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 34}}, {"id": 7, "type": "identifier", "text": "NSObject", "parent": 3, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 45}}, {"id": 8, "type": "unary_expression", "text": "- (void)cancel", "parent": null, "children": [9, 10], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 14}}, {"id": 9, "type": "-", "text": "-", "parent": 8, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 10, "type": "cast_expression", "text": "(void)cancel", "parent": 8, "children": [11, 13], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 14}}, {"id": 11, "type": "type_descriptor", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 13, "type": "identifier", "text": "cancel", "parent": 10, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 14, "type": "unary_expression", "text": "- (void)resume", "parent": null, "children": [15, 16], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 14}}, {"id": 15, "type": "-", "text": "-", "parent": 14, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "(void)resume", "parent": 14, "children": [17, 19], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 14}}, {"id": 17, "type": "type_descriptor", "text": "void", "parent": 16, "children": [18], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 19, "type": "identifier", "text": "resume", "parent": 16, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 20, "type": "ERROR", "text": "@", "parent": null, "children": [21], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 21, "type": "ERROR", "text": "@", "parent": 20, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [8, 10, 14, 16], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 13, 19], "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// WJHShouldTerminateToken.h\n// WJHShouldTerminate\n//\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n A token returned when pausing application termination via -[WJHShouldTerminate pauseTermination].\n */\n@interface WJHShouldTerminateToken : NSObject\n\n/*\n Use the token to cancel the original process termination request.\n\n This method can be called at any time, from any thread.\n */\n- (void)cancel;\n\n/*\n Use the token to resume the original process termination request.\n\n This method can be called at any time, from any thread.\n\n @note If the token deallocs before issuing either a cancel or resume, it will automatically resume the termination in its dealloc method.\n */\n- (void)resume;\n\n@end\n"}
194
c
/* * Author: <NAME>, Finland 2013-2016 * * This file is part of Kunquat. * * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ * * To the extent possible under law, Kunquat Affirmers have waived all * copyright and related or neighboring rights to Kunquat. */ #include <kunquat/testing.h> #include <debug/assert.h> #include <mathnum/common.h> #include <memory.h> #include <stdint.h> void kqt_fake_out_of_memory(long steps) { memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX)); return; } long kqt_get_memory_alloc_count(void) { return memory_get_alloc_count(); } void kqt_suppress_assert_messages(void) { assert_suppress_messages(); return; }
20.64
33
(translation_unit) "/*\n * Author: <NAME>, Finland 2013-2016\n *\n * This file is part of Kunquat.\n *\n * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/\n *\n * To the extent possible under law, Kunquat Affirmers have waived all\n * copyright and related or neighboring rights to Kunquat.\n */\n\n\n#include <kunquat/testing.h>\n\n#include <debug/assert.h>\n#include <mathnum/common.h>\n#include <memory.h>\n\n#include <stdint.h>\n\n\nvoid kqt_fake_out_of_memory(long steps)\n{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));\n return;\n}\n\n\nlong kqt_get_memory_alloc_count(void)\n{\n return memory_get_alloc_count();\n}\n\n\nvoid kqt_suppress_assert_messages(void)\n{\n assert_suppress_messages();\n return;\n}\n\n\n" (comment) "/*\n * Author: <NAME>, Finland 2013-2016\n *\n * This file is part of Kunquat.\n *\n * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/\n *\n * To the extent possible under law, Kunquat Affirmers have waived all\n * copyright and related or neighboring rights to Kunquat.\n */" (preproc_include) "#include <kunquat/testing.h>\n" (#include) "#include" (system_lib_string) "<kunquat/testing.h>" (preproc_include) "#include <debug/assert.h>\n" (#include) "#include" (system_lib_string) "<debug/assert.h>" (preproc_include) "#include <mathnum/common.h>\n" (#include) "#include" (system_lib_string) "<mathnum/common.h>" (preproc_include) "#include <memory.h>\n" (#include) "#include" (system_lib_string) "<memory.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (function_definition) "void kqt_fake_out_of_memory(long steps)\n{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));\n return;\n}" (primitive_type) "void" (function_declarator) "kqt_fake_out_of_memory(long steps)" (identifier) "kqt_fake_out_of_memory" (parameter_list) "(long steps)" (() "(" (parameter_declaration) "long steps" (sized_type_specifier) "long" (long) "long" (identifier) "steps" ()) ")" (compound_statement) "{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));\n return;\n}" ({) "{" (expression_statement) "memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));" (call_expression) "memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX))" (identifier) "memory_fake_out_of_memory" (argument_list) "((int32_t)clamp(steps, INT32_MIN, INT32_MAX))" (() "(" (cast_expression) "(int32_t)clamp(steps, INT32_MIN, INT32_MAX)" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" (call_expression) "clamp(steps, INT32_MIN, INT32_MAX)" (identifier) "clamp" (argument_list) "(steps, INT32_MIN, INT32_MAX)" (() "(" (identifier) "steps" (,) "," (identifier) "INT32_MIN" (,) "," (identifier) "INT32_MAX" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (function_definition) "long kqt_get_memory_alloc_count(void)\n{\n return memory_get_alloc_count();\n}" (sized_type_specifier) "long" (long) "long" (function_declarator) "kqt_get_memory_alloc_count(void)" (identifier) "kqt_get_memory_alloc_count" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return memory_get_alloc_count();\n}" ({) "{" (return_statement) "return memory_get_alloc_count();" (return) "return" (call_expression) "memory_get_alloc_count()" (identifier) "memory_get_alloc_count" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void kqt_suppress_assert_messages(void)\n{\n assert_suppress_messages();\n return;\n}" (primitive_type) "void" (function_declarator) "kqt_suppress_assert_messages(void)" (identifier) "kqt_suppress_assert_messages" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n assert_suppress_messages();\n return;\n}" ({) "{" (expression_statement) "assert_suppress_messages();" (call_expression) "assert_suppress_messages()" (identifier) "assert_suppress_messages" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}"
99
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.64, "nodes": 60, "errors": 0, "source_hash": "492b4bca3e3d65e7185e141938b6592f088effc8dc0f3782cc170f535208a759", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <kunquat/testing.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<kunquat/testing.h>", "parent": 0, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 28}}, {"id": 3, "type": "preproc_include", "text": "#include <debug/assert.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<debug/assert.h>", "parent": 3, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <mathnum/common.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<mathnum/common.h>", "parent": 6, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include <memory.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<memory.h>", "parent": 9, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdint.h>", "parent": 12, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 15, "type": "function_definition", "text": "void kqt_fake_out_of_memory(long steps)\n{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));\n return;\n}", "parent": null, "children": [16, 17], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "kqt_fake_out_of_memory(long steps)", "parent": 15, "children": [18, 19], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 39}}, {"id": 18, "type": "identifier", "text": "kqt_fake_out_of_memory", "parent": 17, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 27}}, {"id": 19, "type": "parameter_list", "text": "(long steps)", "parent": 17, "children": [20], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 39}}, {"id": 20, "type": "parameter_declaration", "text": "long steps", "parent": 19, "children": [21, 23], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 38}}, {"id": 21, "type": "sized_type_specifier", "text": "long", "parent": 20, "children": [22], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 22, "type": "long", "text": "long", "parent": 21, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 23, "type": "identifier", "text": "steps", "parent": 20, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 38}}, {"id": 24, "type": "call_expression", "text": "memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX))", "parent": 15, "children": [25, 26], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 74}}, {"id": 25, "type": "identifier", "text": "memory_fake_out_of_memory", "parent": 24, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 29}}, {"id": 26, "type": "argument_list", "text": "((int32_t)clamp(steps, INT32_MIN, INT32_MAX))", "parent": 24, "children": [27], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 74}}, {"id": 27, "type": "cast_expression", "text": "(int32_t)clamp(steps, INT32_MIN, INT32_MAX)", "parent": 26, "children": [28, 30], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 73}}, {"id": 28, "type": "type_descriptor", "text": "int32_t", "parent": 27, "children": [29], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 38}}, {"id": 29, "type": "primitive_type", "text": "int32_t", "parent": 28, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 38}}, {"id": 30, "type": "call_expression", "text": "clamp(steps, INT32_MIN, INT32_MAX)", "parent": 27, "children": [31, 32], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 73}}, {"id": 31, "type": "identifier", "text": "clamp", "parent": 30, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 44}}, {"id": 32, "type": "argument_list", "text": "(steps, INT32_MIN, INT32_MAX)", "parent": 30, "children": [33, 34, 35], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 73}}, {"id": 33, "type": "identifier", "text": "steps", "parent": 32, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 50}}, {"id": 34, "type": "identifier", "text": "INT32_MIN", "parent": 32, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 61}}, {"id": 35, "type": "identifier", "text": "INT32_MAX", "parent": 32, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 72}}, {"id": 36, "type": "return_statement", "text": "return;", "parent": 15, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 37, "type": "function_definition", "text": "long kqt_get_memory_alloc_count(void)\n{\n return memory_get_alloc_count();\n}", "parent": null, "children": [38, 40], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 38, "type": "sized_type_specifier", "text": "long", "parent": 37, "children": [39], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 39, "type": "long", "text": "long", "parent": 38, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 40, "type": "function_declarator", "text": "kqt_get_memory_alloc_count(void)", "parent": 37, "children": [41, 42], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 37}}, {"id": 41, "type": "identifier", "text": "kqt_get_memory_alloc_count", "parent": 40, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 31}}, {"id": 42, "type": "parameter_list", "text": "(void)", "parent": 40, "children": [43], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 37}}, {"id": 43, "type": "parameter_declaration", "text": "void", "parent": 42, "children": [44], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 36}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 36}}, {"id": 45, "type": "return_statement", "text": "return memory_get_alloc_count();", "parent": 37, "children": [46], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 36}}, {"id": 46, "type": "call_expression", "text": "memory_get_alloc_count()", "parent": 45, "children": [47, 48], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 35}}, {"id": 47, "type": "identifier", "text": "memory_get_alloc_count", "parent": 46, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 33}}, {"id": 48, "type": "argument_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 35}}, {"id": 49, "type": "function_definition", "text": "void kqt_suppress_assert_messages(void)\n{\n assert_suppress_messages();\n return;\n}", "parent": null, "children": [50, 51], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 51, "type": "function_declarator", "text": "kqt_suppress_assert_messages(void)", "parent": 49, "children": [52, 53], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 39}}, {"id": 52, "type": "identifier", "text": "kqt_suppress_assert_messages", "parent": 51, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 33}}, {"id": 53, "type": "parameter_list", "text": "(void)", "parent": 51, "children": [54], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 39}}, {"id": 54, "type": "parameter_declaration", "text": "void", "parent": 53, "children": [55], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 38}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 38}}, {"id": 56, "type": "call_expression", "text": "assert_suppress_messages()", "parent": 49, "children": [57, 58], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 30}}, {"id": 57, "type": "identifier", "text": "assert_suppress_messages", "parent": 56, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 28}}, {"id": 58, "type": "argument_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 30}}, {"id": 59, "type": "return_statement", "text": "return;", "parent": 49, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 11}}]}, "node_categories": {"declarations": {"functions": [15, 17, 37, 40, 49, 51], "variables": [20, 43, 54], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [24, 27, 30, 46, 56], "assignments": [], "loops": [], "conditionals": [18, 21, 23, 25, 31, 33, 34, 35, 38, 41, 47, 52, 57], "returns": [36, 45, 59], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "kqt_fake_out_of_memory", "text_snippet": "void kqt_fake_out_of_memory(long steps)\n{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "kqt_fake_out_of_memory(long steps)"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "long kqt_get_memory_alloc_count(void)\n{\n return memory_get_alloc_count();\n}"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "kqt_get_memory_alloc_count(void)"}, {"node_id": 49, "universal_type": "function", "name": "kqt_suppress_assert_messages", "text_snippet": "void kqt_suppress_assert_messages(void)\n{\n assert_suppress_messages();\n return;\n}"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "kqt_suppress_assert_messages(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <kunquat/testing.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <debug/assert.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <mathnum/common.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memory.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <stdint.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "\n\n/*\n * Author: <NAME>, Finland 2013-2016\n *\n * This file is part of Kunquat.\n *\n * CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/\n *\n * To the extent possible under law, Kunquat Affirmers have waived all\n * copyright and related or neighboring rights to Kunquat.\n */\n\n\n#include <kunquat/testing.h>\n\n#include <debug/assert.h>\n#include <mathnum/common.h>\n#include <memory.h>\n\n#include <stdint.h>\n\n\nvoid kqt_fake_out_of_memory(long steps)\n{\n memory_fake_out_of_memory((int32_t)clamp(steps, INT32_MIN, INT32_MAX));\n return;\n}\n\n\nlong kqt_get_memory_alloc_count(void)\n{\n return memory_get_alloc_count();\n}\n\n\nvoid kqt_suppress_assert_messages(void)\n{\n assert_suppress_messages();\n return;\n}\n\n\n"}
195
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef jsgcinlines_h #define jsgcinlines_h #include "jsgc.h" #include "gc/GCTrace.h" #include "gc/Zone.h" namespace js { namespace gc { static inline AllocKind GetGCObjectKind(const Class* clasp) { if (clasp == FunctionClassPtr) return AllocKind::FUNCTION; uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp); if (clasp->flags & JSCLASS_HAS_PRIVATE) nslots++; return GetGCObjectKind(nslots); } inline void GCRuntime::poke() { poked = true; #ifdef JS_GC_ZEAL /* Schedule a GC to happen "soon" after a GC poke. */ if (zealMode == ZealPokeValue) nextScheduled = 1; #endif } class ArenaIter { ArenaHeader* aheader; ArenaHeader* unsweptHeader; ArenaHeader* sweptHeader; public: ArenaIter() { aheader = nullptr; unsweptHeader = nullptr; sweptHeader = nullptr; } ArenaIter(JS::Zone* zone, AllocKind kind) { init(zone, kind); } void init(JS::Zone* zone, AllocKind kind) { aheader = zone->arenas.getFirstArena(kind); unsweptHeader = zone->arenas.getFirstArenaToSweep(kind); sweptHeader = zone->arenas.getFirstSweptArena(kind); if (!unsweptHeader) { unsweptHeader = sweptHeader; sweptHeader = nullptr; } if (!aheader) { aheader = unsweptHeader; unsweptHeader = sweptHeader; sweptHeader = nullptr; } } bool done() const { return !aheader; } ArenaHeader* get() const { return aheader; } void next() { MOZ_ASSERT(!done()); aheader = aheader->next; if (!aheader) { aheader = unsweptHeader; unsweptHeader = sweptHeader; sweptHeader = nullptr; } } }; class ArenaCellIterImpl { // These three are set in initUnsynchronized(). size_t firstThingOffset; size_t thingSize; #ifdef DEBUG bool isInited; #endif // These three are set in reset() (which is called by init()). FreeSpan span; uintptr_t thing; uintptr_t limit; // Upon entry, |thing| points to any thing (free or used) and finds the // first used thing, which may be |thing|. void moveForwardIfFree() { MOZ_ASSERT(!done()); MOZ_ASSERT(thing); // Note: if |span| is empty, this test will fail, which is what we want // -- |span| being empty means that we're past the end of the last free // thing, all the remaining things in the arena are used, and we'll // never need to move forward. if (thing == span.first) { thing = span.last + thingSize; span = *span.nextSpan(); } } public: ArenaCellIterImpl() : firstThingOffset(0) // Squelch , thingSize(0) // warnings , limit(0) { } void initUnsynchronized(ArenaHeader* aheader) { AllocKind kind = aheader->getAllocKind(); #ifdef DEBUG isInited = true; #endif firstThingOffset = Arena::firstThingOffset(kind); thingSize = Arena::thingSize(kind); reset(aheader); } void init(ArenaHeader* aheader) { #ifdef DEBUG AllocKind kind = aheader->getAllocKind(); MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind)); #endif initUnsynchronized(aheader); } // Use this to move from an Arena of a particular kind to another Arena of // the same kind. void reset(ArenaHeader* aheader) { MOZ_ASSERT(isInited); span = aheader->getFirstFreeSpan(); uintptr_t arenaAddr = aheader->arenaAddress(); thing = arenaAddr + firstThingOffset; limit = arenaAddr + ArenaSize; moveForwardIfFree(); } bool done() const { return thing == limit; } TenuredCell* getCell() const { MOZ_ASSERT(!done()); return reinterpret_cast<TenuredCell*>(thing); } template<typename T> T* get() const { MOZ_ASSERT(!done()); return static_cast<T*>(getCell()); } void next() { MOZ_ASSERT(!done()); thing += thingSize; if (thing < limit) moveForwardIfFree(); } }; template<> JSObject* ArenaCellIterImpl::get<JSObject>() const; class ArenaCellIterUnderGC : public ArenaCellIterImpl { public: explicit ArenaCellIterUnderGC(ArenaHeader* aheader) { MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy()); init(aheader); } }; class ArenaCellIterUnderFinalize : public ArenaCellIterImpl { public: explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) { initUnsynchronized(aheader); } }; class ZoneCellIterImpl { ArenaIter arenaIter; ArenaCellIterImpl cellIter; protected: ZoneCellIterImpl() {} void init(JS::Zone* zone, AllocKind kind) { MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind)); arenaIter.init(zone, kind); if (!arenaIter.done()) cellIter.init(arenaIter.get()); } public: bool done() const { return arenaIter.done(); } template<typename T> T* get() const { MOZ_ASSERT(!done()); return cellIter.get<T>(); } Cell* getCell() const { MOZ_ASSERT(!done()); return cellIter.getCell(); } void next() { MOZ_ASSERT(!done()); cellIter.next(); if (cellIter.done()) { MOZ_ASSERT(!arenaIter.done()); arenaIter.next(); if (!arenaIter.done()) cellIter.reset(arenaIter.get()); } } }; class ZoneCellIterUnderGC : public ZoneCellIterImpl { public: ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) { MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty()); MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy()); init(zone, kind); } }; class ZoneCellIter : public ZoneCellIterImpl { JS::AutoAssertNoAlloc noAlloc; ArenaLists* lists; AllocKind kind; public: ZoneCellIter(JS::Zone* zone, AllocKind kind) : lists(&zone->arenas), kind(kind) { JSRuntime* rt = zone->runtimeFromMainThread(); /* * We have a single-threaded runtime, so there's no need to protect * against other threads iterating or allocating. However, we do have * background finalization; we have to wait for this to finish if it's * currently active. */ if (IsBackgroundFinalized(kind) && zone->arenas.needBackgroundFinalizeWait(kind)) { rt->gc.waitBackgroundSweepEnd(); } /* Evict the nursery before iterating so we can see all things. */ rt->gc.evictNursery(); if (lists->isSynchronizedFreeList(kind)) { lists = nullptr; } else { MOZ_ASSERT(!rt->isHeapBusy()); lists->copyFreeListToArena(kind); } /* Assert that no GCs can occur while a ZoneCellIter is live. */ noAlloc.disallowAlloc(rt); init(zone, kind); } ~ZoneCellIter() { if (lists) lists->clearFreeListInArena(kind); } }; class GCZonesIter { private: ZonesIter zone; public: explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms) : zone(rt, selector) { if (!zone->isCollecting()) next(); } bool done() const { return zone.done(); } void next() { MOZ_ASSERT(!done()); do { zone.next(); } while (!zone.done() && !zone->isCollectingFromAnyThread()); } JS::Zone* get() const { MOZ_ASSERT(!done()); return zone; } operator JS::Zone*() const { return get(); } JS::Zone* operator->() const { return get(); } }; typedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter; /* Iterates over all zones in the current zone group. */ class GCZoneGroupIter { private: JS::Zone* current; public: explicit GCZoneGroupIter(JSRuntime* rt) { MOZ_ASSERT(rt->isHeapBusy()); current = rt->gc.getCurrentZoneGroup(); } bool done() const { return !current; } void next() { MOZ_ASSERT(!done()); current = current->nextNodeInGroup(); } JS::Zone* get() const { MOZ_ASSERT(!done()); return current; } operator JS::Zone*() const { return get(); } JS::Zone* operator->() const { return get(); } }; typedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter; } /* namespace gc */ } /* namespace js */ #endif /* jsgcinlines_h */
28.11
305
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n * vim: set ts=8 sts=4 et sw=4 tw=99:\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n#ifndef jsgcinlines_h\n#define jsgcinlines_h\n\n#include "jsgc.h"\n\n#include "gc/GCTrace.h"\n#include "gc/Zone.h"\n\nnamespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n};\n\nclass ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n};\n\nclass ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }\n};\n\nclass ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n};\n\nclass GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;\n\n/* Iterates over all zones in the current zone group. */\nclass GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;\n\n} /* namespace gc */\n} /* namespace js */\n\n#endif /* jsgcinlines_h */\n" (comment) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n * vim: set ts=8 sts=4 et sw=4 tw=99:\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */" (preproc_ifdef) "#ifndef jsgcinlines_h\n#define jsgcinlines_h\n\n#include "jsgc.h"\n\n#include "gc/GCTrace.h"\n#include "gc/Zone.h"\n\nnamespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n};\n\nclass ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n};\n\nclass ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }\n};\n\nclass ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n};\n\nclass GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;\n\n/* Iterates over all zones in the current zone group. */\nclass GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;\n\n} /* namespace gc */\n} /* namespace js */\n\n#endif" (#ifndef) "#ifndef" (identifier) "jsgcinlines_h" (preproc_def) "#define jsgcinlines_h\n" (#define) "#define" (identifier) "jsgcinlines_h" (preproc_include) "#include "jsgc.h"\n" (#include) "#include" (string_literal) ""jsgc.h"" (") """ (string_content) "jsgc.h" (") """ (preproc_include) "#include "gc/GCTrace.h"\n" (#include) "#include" (string_literal) ""gc/GCTrace.h"" (") """ (string_content) "gc/GCTrace.h" (") """ (preproc_include) "#include "gc/Zone.h"\n" (#include) "#include" (string_literal) ""gc/Zone.h"" (") """ (string_content) "gc/Zone.h" (") """ (function_definition) "namespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n}" (type_identifier) "namespace" (identifier) "js" (compound_statement) "{\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n}" ({) "{" (function_definition) "namespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n}" (type_identifier) "namespace" (identifier) "gc" (compound_statement) "{\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n}" ({) "{" (function_definition) "static inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "AllocKind" (function_declarator) "GetGCObjectKind(const Class* clasp)" (identifier) "GetGCObjectKind" (parameter_list) "(const Class* clasp)" (() "(" (parameter_declaration) "const Class* clasp" (type_qualifier) "const" (const) "const" (type_identifier) "Class" (pointer_declarator) "* clasp" (*) "*" (identifier) "clasp" ()) ")" (compound_statement) "{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}" ({) "{" (if_statement) "if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;" (if) "if" (parenthesized_expression) "(clasp == FunctionClassPtr)" (() "(" (binary_expression) "clasp == FunctionClassPtr" (identifier) "clasp" (==) "==" (identifier) "FunctionClassPtr" ()) ")" (return_statement) "return AllocKind::FUNCTION;" (return) "return" (identifier) "AllocKind" (ERROR) "::FUNCTION" (:) ":" (:) ":" (identifier) "FUNCTION" (;) ";" (declaration) "uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);" (primitive_type) "uint32_t" (init_declarator) "nslots = JSCLASS_RESERVED_SLOTS(clasp)" (identifier) "nslots" (=) "=" (call_expression) "JSCLASS_RESERVED_SLOTS(clasp)" (identifier) "JSCLASS_RESERVED_SLOTS" (argument_list) "(clasp)" (() "(" (identifier) "clasp" ()) ")" (;) ";" (if_statement) "if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;" (if) "if" (parenthesized_expression) "(clasp->flags & JSCLASS_HAS_PRIVATE)" (() "(" (binary_expression) "clasp->flags & JSCLASS_HAS_PRIVATE" (field_expression) "clasp->flags" (identifier) "clasp" (->) "->" (field_identifier) "flags" (&) "&" (identifier) "JSCLASS_HAS_PRIVATE" ()) ")" (expression_statement) "nslots++;" (update_expression) "nslots++" (identifier) "nslots" (++) "++" (;) ";" (return_statement) "return GetGCObjectKind(nslots);" (return) "return" (call_expression) "GetGCObjectKind(nslots)" (identifier) "GetGCObjectKind" (argument_list) "(nslots)" (() "(" (identifier) "nslots" ()) ")" (;) ";" (}) "}" (function_definition) "inline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (ERROR) "GCRuntime::" (identifier) "GCRuntime" (:) ":" (:) ":" (function_declarator) "poke()" (identifier) "poke" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}" ({) "{" (expression_statement) "poked = true;" (assignment_expression) "poked = true" (identifier) "poked" (=) "=" (true) "true" (;) ";" (preproc_ifdef) "#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "soon" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif" (#ifdef) "#ifdef" (identifier) "JS_GC_ZEAL" (comment) "/* Schedule a GC to happen "soon" after a GC poke. */" (if_statement) "if (zealMode == ZealPokeValue)\n nextScheduled = 1;" (if) "if" (parenthesized_expression) "(zealMode == ZealPokeValue)" (() "(" (binary_expression) "zealMode == ZealPokeValue" (identifier) "zealMode" (==) "==" (identifier) "ZealPokeValue" ()) ")" (expression_statement) "nextScheduled = 1;" (assignment_expression) "nextScheduled = 1" (identifier) "nextScheduled" (=) "=" (number_literal) "1" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "class ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }" (type_identifier) "class" (identifier) "ArenaIter" (compound_statement) "{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }" ({) "{" (declaration) "ArenaHeader* aheader;" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" (;) ";" (declaration) "ArenaHeader* unsweptHeader;" (type_identifier) "ArenaHeader" (pointer_declarator) "* unsweptHeader" (*) "*" (identifier) "unsweptHeader" (;) ";" (declaration) "ArenaHeader* sweptHeader;" (type_identifier) "ArenaHeader" (pointer_declarator) "* sweptHeader" (*) "*" (identifier) "sweptHeader" (;) ";" (labeled_statement) "public:\n ArenaIter()" (statement_identifier) "public" (:) ":" (expression_statement) "ArenaIter()" (call_expression) "ArenaIter()" (identifier) "ArenaIter" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }" ({) "{" (expression_statement) "aheader = nullptr;" (assignment_expression) "aheader = nullptr" (identifier) "aheader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (expression_statement) "unsweptHeader = nullptr;" (assignment_expression) "unsweptHeader = nullptr" (identifier) "unsweptHeader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (expression_statement) "sweptHeader = nullptr;" (assignment_expression) "sweptHeader = nullptr" (identifier) "sweptHeader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (labeled_statement) "ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);" (statement_identifier) "ArenaIter" (ERROR) "(JS:" (() "(" (type_descriptor) "JS" (type_identifier) "JS" (:) ":" (:) ":" (declaration) "Zone* zone, AllocKind kind) {\n init(zone, kind);" (type_identifier) "Zone" (pointer_declarator) "* zone" (*) "*" (identifier) "zone" (,) "," (ERROR) "AllocKind kind) {" (identifier) "AllocKind" (identifier) "kind" ()) ")" ({) "{" (function_declarator) "init(zone, kind)" (identifier) "init" (parameter_list) "(zone, kind)" (() "(" (parameter_declaration) "zone" (type_identifier) "zone" (,) "," (parameter_declaration) "kind" (type_identifier) "kind" ()) ")" (;) ";" (}) "}" (function_definition) "void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }" (primitive_type) "void" (function_declarator) "init(JS::Zone* zone, AllocKind kind)" (identifier) "init" (parameter_list) "(JS::Zone* zone, AllocKind kind)" (() "(" (parameter_declaration) "JS::Zone* zone" (type_identifier) "JS" (ERROR) "::Zone" (:) ":" (:) ":" (identifier) "Zone" (pointer_declarator) "* zone" (*) "*" (identifier) "zone" (,) "," (parameter_declaration) "AllocKind kind" (type_identifier) "AllocKind" (identifier) "kind" ()) ")" (compound_statement) "{\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }" ({) "{" (expression_statement) "aheader = zone->arenas.getFirstArena(kind);" (assignment_expression) "aheader = zone->arenas.getFirstArena(kind)" (identifier) "aheader" (=) "=" (call_expression) "zone->arenas.getFirstArena(kind)" (field_expression) "zone->arenas.getFirstArena" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "getFirstArena" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (expression_statement) "unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);" (assignment_expression) "unsweptHeader = zone->arenas.getFirstArenaToSweep(kind)" (identifier) "unsweptHeader" (=) "=" (call_expression) "zone->arenas.getFirstArenaToSweep(kind)" (field_expression) "zone->arenas.getFirstArenaToSweep" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "getFirstArenaToSweep" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (expression_statement) "sweptHeader = zone->arenas.getFirstSweptArena(kind);" (assignment_expression) "sweptHeader = zone->arenas.getFirstSweptArena(kind)" (identifier) "sweptHeader" (=) "=" (call_expression) "zone->arenas.getFirstSweptArena(kind)" (field_expression) "zone->arenas.getFirstSweptArena" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "getFirstSweptArena" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (if_statement) "if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" (if) "if" (parenthesized_expression) "(!unsweptHeader)" (() "(" (unary_expression) "!unsweptHeader" (!) "!" (identifier) "unsweptHeader" ()) ")" (compound_statement) "{\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" ({) "{" (expression_statement) "unsweptHeader = sweptHeader;" (assignment_expression) "unsweptHeader = sweptHeader" (identifier) "unsweptHeader" (=) "=" (identifier) "sweptHeader" (;) ";" (expression_statement) "sweptHeader = nullptr;" (assignment_expression) "sweptHeader = nullptr" (identifier) "sweptHeader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (if_statement) "if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" (if) "if" (parenthesized_expression) "(!aheader)" (() "(" (unary_expression) "!aheader" (!) "!" (identifier) "aheader" ()) ")" (compound_statement) "{\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" ({) "{" (expression_statement) "aheader = unsweptHeader;" (assignment_expression) "aheader = unsweptHeader" (identifier) "aheader" (=) "=" (identifier) "unsweptHeader" (;) ";" (expression_statement) "unsweptHeader = sweptHeader;" (assignment_expression) "unsweptHeader = sweptHeader" (identifier) "unsweptHeader" (=) "=" (identifier) "sweptHeader" (;) ";" (expression_statement) "sweptHeader = nullptr;" (assignment_expression) "sweptHeader = nullptr" (identifier) "sweptHeader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (}) "}" (ERROR) "bool done() const" (primitive_type) "bool" (function_declarator) "done()" (identifier) "done" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return !aheader;\n }" ({) "{" (return_statement) "return !aheader;" (return) "return" (unary_expression) "!aheader" (!) "!" (identifier) "aheader" (;) ";" (}) "}" (function_definition) "ArenaHeader* get() const {\n return aheader;\n }" (type_identifier) "ArenaHeader" (pointer_declarator) "* get() const" (*) "*" (function_declarator) "get() const" (identifier) "get" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return aheader;\n }" ({) "{" (return_statement) "return aheader;" (return) "return" (identifier) "aheader" (;) ";" (}) "}" (function_definition) "void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }" (primitive_type) "void" (function_declarator) "next()" (identifier) "next" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "aheader = aheader->next;" (assignment_expression) "aheader = aheader->next" (identifier) "aheader" (=) "=" (field_expression) "aheader->next" (identifier) "aheader" (->) "->" (field_identifier) "next" (;) ";" (if_statement) "if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" (if) "if" (parenthesized_expression) "(!aheader)" (() "(" (unary_expression) "!aheader" (!) "!" (identifier) "aheader" ()) ")" (compound_statement) "{\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }" ({) "{" (expression_statement) "aheader = unsweptHeader;" (assignment_expression) "aheader = unsweptHeader" (identifier) "aheader" (=) "=" (identifier) "unsweptHeader" (;) ";" (expression_statement) "unsweptHeader = sweptHeader;" (assignment_expression) "unsweptHeader = sweptHeader" (identifier) "unsweptHeader" (=) "=" (identifier) "sweptHeader" (;) ";" (expression_statement) "sweptHeader = nullptr;" (assignment_expression) "sweptHeader = nullptr" (identifier) "sweptHeader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n}" (type_identifier) "class" (identifier) "ArenaCellIterImpl" (compound_statement) "{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n}" ({) "{" (comment) "// These three are set in initUnsynchronized()." (declaration) "size_t firstThingOffset;" (primitive_type) "size_t" (identifier) "firstThingOffset" (;) ";" (declaration) "size_t thingSize;" (primitive_type) "size_t" (identifier) "thingSize" (;) ";" (preproc_ifdef) "#ifdef DEBUG\n bool isInited;\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG" (declaration) "bool isInited;" (primitive_type) "bool" (identifier) "isInited" (;) ";" (#endif) "#endif" (comment) "// These three are set in reset() (which is called by init())." (declaration) "FreeSpan span;" (type_identifier) "FreeSpan" (identifier) "span" (;) ";" (declaration) "uintptr_t thing;" (primitive_type) "uintptr_t" (identifier) "thing" (;) ";" (declaration) "uintptr_t limit;" (primitive_type) "uintptr_t" (identifier) "limit" (;) ";" (comment) "// Upon entry, |thing| points to any thing (free or used) and finds the" (comment) "// first used thing, which may be |thing|." (function_definition) "void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }" (primitive_type) "void" (function_declarator) "moveForwardIfFree()" (identifier) "moveForwardIfFree" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "MOZ_ASSERT(thing);" (call_expression) "MOZ_ASSERT(thing)" (identifier) "MOZ_ASSERT" (argument_list) "(thing)" (() "(" (identifier) "thing" ()) ")" (;) ";" (comment) "// Note: if |span| is empty, this test will fail, which is what we want" (comment) "// -- |span| being empty means that we're past the end of the last free" (comment) "// thing, all the remaining things in the arena are used, and we'll" (comment) "// never need to move forward." (if_statement) "if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }" (if) "if" (parenthesized_expression) "(thing == span.first)" (() "(" (binary_expression) "thing == span.first" (identifier) "thing" (==) "==" (field_expression) "span.first" (identifier) "span" (.) "." (field_identifier) "first" ()) ")" (compound_statement) "{\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }" ({) "{" (expression_statement) "thing = span.last + thingSize;" (assignment_expression) "thing = span.last + thingSize" (identifier) "thing" (=) "=" (binary_expression) "span.last + thingSize" (field_expression) "span.last" (identifier) "span" (.) "." (field_identifier) "last" (+) "+" (identifier) "thingSize" (;) ";" (expression_statement) "span = *span.nextSpan();" (assignment_expression) "span = *span.nextSpan()" (identifier) "span" (=) "=" (pointer_expression) "*span.nextSpan()" (*) "*" (call_expression) "span.nextSpan()" (field_expression) "span.nextSpan" (identifier) "span" (.) "." (field_identifier) "nextSpan" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (labeled_statement) "public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)" (statement_identifier) "public" (ERROR) ":\n ArenaCellIterImpl()" (:) ":" (call_expression) "ArenaCellIterImpl()" (identifier) "ArenaCellIterImpl" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)" (comma_expression) "firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)" (call_expression) "firstThingOffset(0)" (identifier) "firstThingOffset" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (comment) "// Squelch" (,) "," (comma_expression) "thingSize(0) // warnings\n , limit(0)" (call_expression) "thingSize(0)" (identifier) "thingSize" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (comment) "// warnings" (,) "," (call_expression) "limit(0)" (identifier) "limit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) "" (compound_statement) "{\n }" ({) "{" (}) "}" (function_definition) "void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }" (primitive_type) "void" (function_declarator) "initUnsynchronized(ArenaHeader* aheader)" (identifier) "initUnsynchronized" (parameter_list) "(ArenaHeader* aheader)" (() "(" (parameter_declaration) "ArenaHeader* aheader" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" ()) ")" (compound_statement) "{\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }" ({) "{" (declaration) "AllocKind kind = aheader->getAllocKind();" (type_identifier) "AllocKind" (init_declarator) "kind = aheader->getAllocKind()" (identifier) "kind" (=) "=" (call_expression) "aheader->getAllocKind()" (field_expression) "aheader->getAllocKind" (identifier) "aheader" (->) "->" (field_identifier) "getAllocKind" (argument_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef DEBUG\n isInited = true;\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG" (expression_statement) "isInited = true;" (assignment_expression) "isInited = true" (identifier) "isInited" (=) "=" (true) "true" (;) ";" (#endif) "#endif" (ERROR) "firstThingOffset = Arena::" (assignment_expression) "firstThingOffset = Arena" (identifier) "firstThingOffset" (=) "=" (identifier) "Arena" (:) ":" (:) ":" (expression_statement) "firstThingOffset(kind);" (call_expression) "firstThingOffset(kind)" (identifier) "firstThingOffset" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (ERROR) "thingSize = Arena::" (assignment_expression) "thingSize = Arena" (identifier) "thingSize" (=) "=" (identifier) "Arena" (:) ":" (:) ":" (expression_statement) "thingSize(kind);" (call_expression) "thingSize(kind)" (identifier) "thingSize" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (expression_statement) "reset(aheader);" (call_expression) "reset(aheader)" (identifier) "reset" (argument_list) "(aheader)" (() "(" (identifier) "aheader" ()) ")" (;) ";" (}) "}" (function_definition) "void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }" (primitive_type) "void" (function_declarator) "init(ArenaHeader* aheader)" (identifier) "init" (parameter_list) "(ArenaHeader* aheader)" (() "(" (parameter_declaration) "ArenaHeader* aheader" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" ()) ")" (compound_statement) "{\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }" ({) "{" (preproc_ifdef) "#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG" (declaration) "AllocKind kind = aheader->getAllocKind();" (type_identifier) "AllocKind" (init_declarator) "kind = aheader->getAllocKind()" (identifier) "kind" (=) "=" (call_expression) "aheader->getAllocKind()" (field_expression) "aheader->getAllocKind" (identifier) "aheader" (->) "->" (field_identifier) "getAllocKind" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));" (call_expression) "MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind))" (identifier) "MOZ_ASSERT" (argument_list) "(aheader->zone->arenas.isSynchronizedFreeList(kind))" (() "(" (call_expression) "aheader->zone->arenas.isSynchronizedFreeList(kind)" (field_expression) "aheader->zone->arenas.isSynchronizedFreeList" (field_expression) "aheader->zone->arenas" (field_expression) "aheader->zone" (identifier) "aheader" (->) "->" (field_identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "isSynchronizedFreeList" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "initUnsynchronized(aheader);" (call_expression) "initUnsynchronized(aheader)" (identifier) "initUnsynchronized" (argument_list) "(aheader)" (() "(" (identifier) "aheader" ()) ")" (;) ";" (}) "}" (comment) "// Use this to move from an Arena of a particular kind to another Arena of" (comment) "// the same kind." (function_definition) "void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }" (primitive_type) "void" (function_declarator) "reset(ArenaHeader* aheader)" (identifier) "reset" (parameter_list) "(ArenaHeader* aheader)" (() "(" (parameter_declaration) "ArenaHeader* aheader" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" ()) ")" (compound_statement) "{\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(isInited);" (call_expression) "MOZ_ASSERT(isInited)" (identifier) "MOZ_ASSERT" (argument_list) "(isInited)" (() "(" (identifier) "isInited" ()) ")" (;) ";" (expression_statement) "span = aheader->getFirstFreeSpan();" (assignment_expression) "span = aheader->getFirstFreeSpan()" (identifier) "span" (=) "=" (call_expression) "aheader->getFirstFreeSpan()" (field_expression) "aheader->getFirstFreeSpan" (identifier) "aheader" (->) "->" (field_identifier) "getFirstFreeSpan" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "uintptr_t arenaAddr = aheader->arenaAddress();" (primitive_type) "uintptr_t" (init_declarator) "arenaAddr = aheader->arenaAddress()" (identifier) "arenaAddr" (=) "=" (call_expression) "aheader->arenaAddress()" (field_expression) "aheader->arenaAddress" (identifier) "aheader" (->) "->" (field_identifier) "arenaAddress" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "thing = arenaAddr + firstThingOffset;" (assignment_expression) "thing = arenaAddr + firstThingOffset" (identifier) "thing" (=) "=" (binary_expression) "arenaAddr + firstThingOffset" (identifier) "arenaAddr" (+) "+" (identifier) "firstThingOffset" (;) ";" (expression_statement) "limit = arenaAddr + ArenaSize;" (assignment_expression) "limit = arenaAddr + ArenaSize" (identifier) "limit" (=) "=" (binary_expression) "arenaAddr + ArenaSize" (identifier) "arenaAddr" (+) "+" (identifier) "ArenaSize" (;) ";" (expression_statement) "moveForwardIfFree();" (call_expression) "moveForwardIfFree()" (identifier) "moveForwardIfFree" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "bool done() const" (primitive_type) "bool" (function_declarator) "done()" (identifier) "done" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return thing == limit;\n }" ({) "{" (return_statement) "return thing == limit;" (return) "return" (binary_expression) "thing == limit" (identifier) "thing" (==) "==" (identifier) "limit" (;) ";" (}) "}" (function_definition) "TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }" (type_identifier) "TenuredCell" (pointer_declarator) "* getCell() const" (*) "*" (function_declarator) "getCell() const" (identifier) "getCell" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return reinterpret_cast<TenuredCell*>(thing);" (return) "return" (binary_expression) "reinterpret_cast<TenuredCell*>(thing)" (binary_expression) "reinterpret_cast<TenuredCell" (identifier) "reinterpret_cast" (<) "<" (identifier) "TenuredCell" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(thing)" (() "(" (identifier) "thing" ()) ")" (;) ";" (}) "}" (ERROR) "template<typename T> T* get() const" (binary_expression) "template<typename T> T* get()" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (binary_expression) "T* get()" (identifier) "T" (*) "*" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return static_cast<T*>(getCell());" (return) "return" (binary_expression) "static_cast<T*>(getCell())" (binary_expression) "static_cast<T" (identifier) "static_cast" (<) "<" (identifier) "T" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(getCell())" (() "(" (call_expression) "getCell()" (identifier) "getCell" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }" (primitive_type) "void" (function_declarator) "next()" (identifier) "next" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "thing += thingSize;" (assignment_expression) "thing += thingSize" (identifier) "thing" (+=) "+=" (identifier) "thingSize" (;) ";" (if_statement) "if (thing < limit)\n moveForwardIfFree();" (if) "if" (parenthesized_expression) "(thing < limit)" (() "(" (binary_expression) "thing < limit" (identifier) "thing" (<) "<" (identifier) "limit" ()) ")" (expression_statement) "moveForwardIfFree();" (call_expression) "moveForwardIfFree()" (identifier) "moveForwardIfFree" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "template<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;" (binary_expression) "template<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const" (binary_expression) "template<>\nJSObject*\nArenaCellIterImpl::get<JSObject" (binary_expression) "template<>\nJSObject*\nArenaCellIterImpl" (identifier) "template" (<) "<" (ERROR) ">" (>) ">" (binary_expression) "JSObject*\nArenaCellIterImpl" (identifier) "JSObject" (*) "*" (identifier) "ArenaCellIterImpl" (ERROR) "::get" (:) ":" (:) ":" (identifier) "get" (<) "<" (identifier) "JSObject" (>) ">" (cast_expression) "() const" (() "(" (type_descriptor) "" (type_identifier) "" ()) ")" (identifier) "const" (;) ";" (function_definition) "class ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n}" (type_identifier) "class" (identifier) "ArenaCellIterUnderGC" (ERROR) ": public ArenaCellIterImpl" (:) ":" (identifier) "public" (identifier) "ArenaCellIterImpl" (compound_statement) "{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n}" ({) "{" (labeled_statement) "public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }" (statement_identifier) "public" (:) ":" (ERROR) "explicit ArenaCellIterUnderGC(ArenaHeader* aheader)" (type_identifier) "explicit" (function_declarator) "ArenaCellIterUnderGC(ArenaHeader* aheader)" (identifier) "ArenaCellIterUnderGC" (parameter_list) "(ArenaHeader* aheader)" (() "(" (parameter_declaration) "ArenaHeader* aheader" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" ()) ")" (compound_statement) "{\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }" ({) "{" (expression_statement) "MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());" (call_expression) "MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy())" (identifier) "MOZ_ASSERT" (argument_list) "(aheader->zone->runtimeFromAnyThread()->isHeapBusy())" (() "(" (call_expression) "aheader->zone->runtimeFromAnyThread()->isHeapBusy()" (field_expression) "aheader->zone->runtimeFromAnyThread()->isHeapBusy" (call_expression) "aheader->zone->runtimeFromAnyThread()" (field_expression) "aheader->zone->runtimeFromAnyThread" (field_expression) "aheader->zone" (identifier) "aheader" (->) "->" (field_identifier) "zone" (->) "->" (field_identifier) "runtimeFromAnyThread" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "isHeapBusy" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "init(aheader);" (call_expression) "init(aheader)" (identifier) "init" (argument_list) "(aheader)" (() "(" (identifier) "aheader" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }" (type_identifier) "class" (identifier) "ArenaCellIterUnderFinalize" (ERROR) ": public ArenaCellIterImpl" (:) ":" (identifier) "public" (identifier) "ArenaCellIterImpl" (compound_statement) "{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }" ({) "{" (labeled_statement) "public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);" (statement_identifier) "public" (:) ":" (declaration) "explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);" (type_identifier) "explicit" (ERROR) "ArenaCellIterUnderFinalize(ArenaHeader* aheader) {" (function_declarator) "ArenaCellIterUnderFinalize(ArenaHeader* aheader)" (identifier) "ArenaCellIterUnderFinalize" (parameter_list) "(ArenaHeader* aheader)" (() "(" (parameter_declaration) "ArenaHeader* aheader" (type_identifier) "ArenaHeader" (pointer_declarator) "* aheader" (*) "*" (identifier) "aheader" ()) ")" ({) "{" (function_declarator) "initUnsynchronized(aheader)" (identifier) "initUnsynchronized" (parameter_list) "(aheader)" (() "(" (parameter_declaration) "aheader" (type_identifier) "aheader" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n}" (type_identifier) "class" (identifier) "ZoneCellIterImpl" (compound_statement) "{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n}" ({) "{" (declaration) "ArenaIter arenaIter;" (type_identifier) "ArenaIter" (identifier) "arenaIter" (;) ";" (declaration) "ArenaCellIterImpl cellIter;" (type_identifier) "ArenaCellIterImpl" (identifier) "cellIter" (;) ";" (labeled_statement) "protected:\n ZoneCellIterImpl()" (statement_identifier) "protected" (:) ":" (expression_statement) "ZoneCellIterImpl()" (call_expression) "ZoneCellIterImpl()" (identifier) "ZoneCellIterImpl" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }" (primitive_type) "void" (function_declarator) "init(JS::Zone* zone, AllocKind kind)" (identifier) "init" (parameter_list) "(JS::Zone* zone, AllocKind kind)" (() "(" (parameter_declaration) "JS::Zone* zone" (type_identifier) "JS" (ERROR) "::Zone" (:) ":" (:) ":" (identifier) "Zone" (pointer_declarator) "* zone" (*) "*" (identifier) "zone" (,) "," (parameter_declaration) "AllocKind kind" (type_identifier) "AllocKind" (identifier) "kind" ()) ")" (compound_statement) "{\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }" ({) "{" (expression_statement) "MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));" (call_expression) "MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind))" (identifier) "MOZ_ASSERT" (argument_list) "(zone->arenas.isSynchronizedFreeList(kind))" (() "(" (call_expression) "zone->arenas.isSynchronizedFreeList(kind)" (field_expression) "zone->arenas.isSynchronizedFreeList" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "isSynchronizedFreeList" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" ()) ")" (;) ";" (expression_statement) "arenaIter.init(zone, kind);" (call_expression) "arenaIter.init(zone, kind)" (field_expression) "arenaIter.init" (identifier) "arenaIter" (.) "." (field_identifier) "init" (argument_list) "(zone, kind)" (() "(" (identifier) "zone" (,) "," (identifier) "kind" ()) ")" (;) ";" (if_statement) "if (!arenaIter.done())\n cellIter.init(arenaIter.get());" (if) "if" (parenthesized_expression) "(!arenaIter.done())" (() "(" (unary_expression) "!arenaIter.done()" (!) "!" (call_expression) "arenaIter.done()" (field_expression) "arenaIter.done" (identifier) "arenaIter" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (expression_statement) "cellIter.init(arenaIter.get());" (call_expression) "cellIter.init(arenaIter.get())" (field_expression) "cellIter.init" (identifier) "cellIter" (.) "." (field_identifier) "init" (argument_list) "(arenaIter.get())" (() "(" (call_expression) "arenaIter.get()" (field_expression) "arenaIter.get" (identifier) "arenaIter" (.) "." (field_identifier) "get" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (labeled_statement) "public:\n bool done() const {\n return arenaIter.done();\n }" (statement_identifier) "public" (:) ":" (ERROR) "bool done() const" (primitive_type) "bool" (function_declarator) "done() const" (identifier) "done" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return arenaIter.done();\n }" ({) "{" (return_statement) "return arenaIter.done();" (return) "return" (call_expression) "arenaIter.done()" (field_expression) "arenaIter.done" (identifier) "arenaIter" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "template<typename T> T* get() const" (binary_expression) "template<typename T> T* get()" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (binary_expression) "T* get()" (identifier) "T" (*) "*" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return cellIter.get<T>();" (return) "return" (binary_expression) "cellIter.get<T>()" (binary_expression) "cellIter.get<T" (field_expression) "cellIter.get" (identifier) "cellIter" (.) "." (field_identifier) "get" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (}) "}" (function_definition) "Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }" (type_identifier) "Cell" (pointer_declarator) "* getCell() const" (*) "*" (function_declarator) "getCell() const" (identifier) "getCell" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return cellIter.getCell();" (return) "return" (call_expression) "cellIter.getCell()" (field_expression) "cellIter.getCell" (identifier) "cellIter" (.) "." (field_identifier) "getCell" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }" (primitive_type) "void" (function_declarator) "next()" (identifier) "next" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "cellIter.next();" (call_expression) "cellIter.next()" (field_expression) "cellIter.next" (identifier) "cellIter" (.) "." (field_identifier) "next" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }" (if) "if" (parenthesized_expression) "(cellIter.done())" (() "(" (call_expression) "cellIter.done()" (field_expression) "cellIter.done" (identifier) "cellIter" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!arenaIter.done());" (call_expression) "MOZ_ASSERT(!arenaIter.done())" (identifier) "MOZ_ASSERT" (argument_list) "(!arenaIter.done())" (() "(" (unary_expression) "!arenaIter.done()" (!) "!" (call_expression) "arenaIter.done()" (field_expression) "arenaIter.done" (identifier) "arenaIter" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "arenaIter.next();" (call_expression) "arenaIter.next()" (field_expression) "arenaIter.next" (identifier) "arenaIter" (.) "." (field_identifier) "next" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (!arenaIter.done())\n cellIter.reset(arenaIter.get());" (if) "if" (parenthesized_expression) "(!arenaIter.done())" (() "(" (unary_expression) "!arenaIter.done()" (!) "!" (call_expression) "arenaIter.done()" (field_expression) "arenaIter.done" (identifier) "arenaIter" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (expression_statement) "cellIter.reset(arenaIter.get());" (call_expression) "cellIter.reset(arenaIter.get())" (field_expression) "cellIter.reset" (identifier) "cellIter" (.) "." (field_identifier) "reset" (argument_list) "(arenaIter.get())" (() "(" (call_expression) "arenaIter.get()" (field_expression) "arenaIter.get" (identifier) "arenaIter" (.) "." (field_identifier) "get" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }" (type_identifier) "class" (identifier) "ZoneCellIterUnderGC" (ERROR) ": public ZoneCellIterImpl" (:) ":" (identifier) "public" (identifier) "ZoneCellIterImpl" (compound_statement) "{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }" ({) "{" (labeled_statement) "public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());" (statement_identifier) "public" (:) ":" (expression_statement) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());" (call_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty()" (field_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty" (field_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery" (field_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc" (call_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()" (field_expression) "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread" (identifier) "ZoneCellIterUnderGC" (ERROR) "(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone" (() "(" (type_descriptor) "JS" (type_identifier) "JS" (:) ":" (:) ":" (type_identifier) "Zone" (pointer_declarator) "* zone" (*) "*" (identifier) "zone" (,) "," (ERROR) "AllocKind kind) {" (identifier) "AllocKind" (identifier) "kind" ()) ")" ({) "{" (identifier) "MOZ_ASSERT" (() "(" (identifier) "zone" (->) "->" (field_identifier) "runtimeFromAnyThread" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "gc" (.) "." (field_identifier) "nursery" (.) "." (field_identifier) "isEmpty" (argument_list) "()" (() "(" ()) ")" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());" (call_expression) "MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy())" (identifier) "MOZ_ASSERT" (argument_list) "(zone->runtimeFromAnyThread()->isHeapBusy())" (() "(" (call_expression) "zone->runtimeFromAnyThread()->isHeapBusy()" (field_expression) "zone->runtimeFromAnyThread()->isHeapBusy" (call_expression) "zone->runtimeFromAnyThread()" (field_expression) "zone->runtimeFromAnyThread" (identifier) "zone" (->) "->" (field_identifier) "runtimeFromAnyThread" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "isHeapBusy" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "init(zone, kind);" (call_expression) "init(zone, kind)" (identifier) "init" (argument_list) "(zone, kind)" (() "(" (identifier) "zone" (,) "," (identifier) "kind" ()) ")" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n}" (type_identifier) "class" (ERROR) "ZoneCellIter : public" (identifier) "ZoneCellIter" (:) ":" (identifier) "public" (identifier) "ZoneCellIterImpl" (compound_statement) "{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n}" ({) "{" (labeled_statement) "JS::AutoAssertNoAlloc noAlloc;" (statement_identifier) "JS" (:) ":" (ERROR) ":" (:) ":" (declaration) "AutoAssertNoAlloc noAlloc;" (type_identifier) "AutoAssertNoAlloc" (identifier) "noAlloc" (;) ";" (declaration) "ArenaLists* lists;" (type_identifier) "ArenaLists" (pointer_declarator) "* lists" (*) "*" (identifier) "lists" (;) ";" (declaration) "AllocKind kind;" (type_identifier) "AllocKind" (identifier) "kind" (;) ";" (labeled_statement) "public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)" (statement_identifier) "public" (:) ":" (labeled_statement) "ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)" (statement_identifier) "ZoneCellIter" (ERROR) "(JS::Zone* zone, AllocKind kind)" (() "(" (type_descriptor) "JS" (type_identifier) "JS" (:) ":" (:) ":" (type_identifier) "Zone" (pointer_declarator) "* zone" (*) "*" (identifier) "zone" (,) "," (identifier) "AllocKind" (identifier) "kind" ()) ")" (:) ":" (expression_statement) "lists(&zone->arenas),\n kind(kind)" (comma_expression) "lists(&zone->arenas),\n kind(kind)" (call_expression) "lists(&zone->arenas)" (identifier) "lists" (argument_list) "(&zone->arenas)" (() "(" (pointer_expression) "&zone->arenas" (&) "&" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" ()) ")" (,) "," (call_expression) "kind(kind)" (identifier) "kind" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) "" (compound_statement) "{\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }" ({) "{" (declaration) "JSRuntime* rt = zone->runtimeFromMainThread();" (type_identifier) "JSRuntime" (init_declarator) "* rt = zone->runtimeFromMainThread()" (pointer_declarator) "* rt" (*) "*" (identifier) "rt" (=) "=" (call_expression) "zone->runtimeFromMainThread()" (field_expression) "zone->runtimeFromMainThread" (identifier) "zone" (->) "->" (field_identifier) "runtimeFromMainThread" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */" (if_statement) "if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }" (if) "if" (parenthesized_expression) "(IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))" (() "(" (binary_expression) "IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind)" (call_expression) "IsBackgroundFinalized(kind)" (identifier) "IsBackgroundFinalized" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (&&) "&&" (call_expression) "zone->arenas.needBackgroundFinalizeWait(kind)" (field_expression) "zone->arenas.needBackgroundFinalizeWait" (field_expression) "zone->arenas" (identifier) "zone" (->) "->" (field_identifier) "arenas" (.) "." (field_identifier) "needBackgroundFinalizeWait" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" ()) ")" (compound_statement) "{\n rt->gc.waitBackgroundSweepEnd();\n }" ({) "{" (expression_statement) "rt->gc.waitBackgroundSweepEnd();" (call_expression) "rt->gc.waitBackgroundSweepEnd()" (field_expression) "rt->gc.waitBackgroundSweepEnd" (field_expression) "rt->gc" (identifier) "rt" (->) "->" (field_identifier) "gc" (.) "." (field_identifier) "waitBackgroundSweepEnd" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/* Evict the nursery before iterating so we can see all things. */" (expression_statement) "rt->gc.evictNursery();" (call_expression) "rt->gc.evictNursery()" (field_expression) "rt->gc.evictNursery" (field_expression) "rt->gc" (identifier) "rt" (->) "->" (field_identifier) "gc" (.) "." (field_identifier) "evictNursery" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }" (if) "if" (parenthesized_expression) "(lists->isSynchronizedFreeList(kind))" (() "(" (call_expression) "lists->isSynchronizedFreeList(kind)" (field_expression) "lists->isSynchronizedFreeList" (identifier) "lists" (->) "->" (field_identifier) "isSynchronizedFreeList" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" ()) ")" (compound_statement) "{\n lists = nullptr;\n }" ({) "{" (expression_statement) "lists = nullptr;" (assignment_expression) "lists = nullptr" (identifier) "lists" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (else_clause) "else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }" (else) "else" (compound_statement) "{\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!rt->isHeapBusy());" (call_expression) "MOZ_ASSERT(!rt->isHeapBusy())" (identifier) "MOZ_ASSERT" (argument_list) "(!rt->isHeapBusy())" (() "(" (unary_expression) "!rt->isHeapBusy()" (!) "!" (call_expression) "rt->isHeapBusy()" (field_expression) "rt->isHeapBusy" (identifier) "rt" (->) "->" (field_identifier) "isHeapBusy" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "lists->copyFreeListToArena(kind);" (call_expression) "lists->copyFreeListToArena(kind)" (field_expression) "lists->copyFreeListToArena" (identifier) "lists" (->) "->" (field_identifier) "copyFreeListToArena" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (}) "}" (comment) "/* Assert that no GCs can occur while a ZoneCellIter is live. */" (expression_statement) "noAlloc.disallowAlloc(rt);" (call_expression) "noAlloc.disallowAlloc(rt)" (field_expression) "noAlloc.disallowAlloc" (identifier) "noAlloc" (.) "." (field_identifier) "disallowAlloc" (argument_list) "(rt)" (() "(" (identifier) "rt" ()) ")" (;) ";" (expression_statement) "init(zone, kind);" (call_expression) "init(zone, kind)" (identifier) "init" (argument_list) "(zone, kind)" (() "(" (identifier) "zone" (,) "," (identifier) "kind" ()) ")" (;) ";" (}) "}" (expression_statement) "~ZoneCellIter()" (unary_expression) "~ZoneCellIter()" (~) "~" (call_expression) "ZoneCellIter()" (identifier) "ZoneCellIter" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n if (lists)\n lists->clearFreeListInArena(kind);\n }" ({) "{" (if_statement) "if (lists)\n lists->clearFreeListInArena(kind);" (if) "if" (parenthesized_expression) "(lists)" (() "(" (identifier) "lists" ()) ")" (expression_statement) "lists->clearFreeListInArena(kind);" (call_expression) "lists->clearFreeListInArena(kind)" (field_expression) "lists->clearFreeListInArena" (identifier) "lists" (->) "->" (field_identifier) "clearFreeListInArena" (argument_list) "(kind)" (() "(" (identifier) "kind" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}" (type_identifier) "class" (identifier) "GCZonesIter" (compound_statement) "{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}" ({) "{" (labeled_statement) "private:\n ZonesIter zone;" (statement_identifier) "private" (:) ":" (declaration) "ZonesIter zone;" (type_identifier) "ZonesIter" (identifier) "zone" (;) ";" (labeled_statement) "public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }" (statement_identifier) "public" (:) ":" (ERROR) "explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)" (type_identifier) "explicit" (function_declarator) "GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)" (identifier) "GCZonesIter" (parameter_list) "(JSRuntime* rt, ZoneSelector selector = WithAtoms)" (() "(" (parameter_declaration) "JSRuntime* rt" (type_identifier) "JSRuntime" (pointer_declarator) "* rt" (*) "*" (identifier) "rt" (,) "," (parameter_declaration) "ZoneSelector selector = WithAtoms" (type_identifier) "ZoneSelector" (ERROR) "selector =" (identifier) "selector" (=) "=" (identifier) "WithAtoms" ()) ")" (ERROR) ":" (:) ":" (call_expression) "zone(rt, selector)" (identifier) "zone" (argument_list) "(rt, selector)" (() "(" (identifier) "rt" (,) "," (identifier) "selector" ()) ")" (compound_statement) "{\n if (!zone->isCollecting())\n next();\n }" ({) "{" (if_statement) "if (!zone->isCollecting())\n next();" (if) "if" (parenthesized_expression) "(!zone->isCollecting())" (() "(" (unary_expression) "!zone->isCollecting()" (!) "!" (call_expression) "zone->isCollecting()" (field_expression) "zone->isCollecting" (identifier) "zone" (->) "->" (field_identifier) "isCollecting" (argument_list) "()" (() "(" ()) ")" ()) ")" (expression_statement) "next();" (call_expression) "next()" (identifier) "next" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "bool done() const" (primitive_type) "bool" (function_declarator) "done()" (identifier) "done" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return zone.done(); }" ({) "{" (return_statement) "return zone.done();" (return) "return" (call_expression) "zone.done()" (field_expression) "zone.done" (identifier) "zone" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }" (primitive_type) "void" (function_declarator) "next()" (identifier) "next" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (do_statement) "do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());" (do) "do" (compound_statement) "{\n zone.next();\n }" ({) "{" (expression_statement) "zone.next();" (call_expression) "zone.next()" (field_expression) "zone.next" (identifier) "zone" (.) "." (field_identifier) "next" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(!zone.done() && !zone->isCollectingFromAnyThread())" (() "(" (binary_expression) "!zone.done() && !zone->isCollectingFromAnyThread()" (unary_expression) "!zone.done()" (!) "!" (call_expression) "zone.done()" (field_expression) "zone.done" (identifier) "zone" (.) "." (field_identifier) "done" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (unary_expression) "!zone->isCollectingFromAnyThread()" (!) "!" (call_expression) "zone->isCollectingFromAnyThread()" (field_expression) "zone->isCollectingFromAnyThread" (identifier) "zone" (->) "->" (field_identifier) "isCollectingFromAnyThread" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (labeled_statement) "JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }" (statement_identifier) "JS" (:) ":" (ERROR) ":Zone* get() const" (:) ":" (type_identifier) "Zone" (pointer_declarator) "* get() const" (*) "*" (function_declarator) "get() const" (identifier) "get" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return zone;\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return zone;" (return) "return" (identifier) "zone" (;) ";" (}) "}" (function_definition) "operator JS::Zone*() const { return get(); }" (type_identifier) "operator" (ERROR) "JS::Zone" (identifier) "JS" (:) ":" (:) ":" (identifier) "Zone" (pointer_declarator) "*() const" (*) "*" (ERROR) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "" (compound_statement) "{ return get(); }" ({) "{" (return_statement) "return get();" (return) "return" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "JS::Zone* operator->() const { return get(); }" (statement_identifier) "JS" (:) ":" (ERROR) ":Zone* operator->() const" (:) ":" (binary_expression) "Zone* operator->()" (identifier) "Zone" (*) "*" (call_expression) "operator->()" (field_expression) "operator->" (identifier) "operator" (->) "->" (field_identifier) "" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return get(); }" ({) "{" (return_statement) "return get();" (return) "return" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;" (typedef) "typedef" (type_identifier) "CompartmentsIterT" (ERROR) "<GCZonesIter>" (<) "<" (type_identifier) "GCZonesIter" (>) ">" (type_identifier) "GCCompartmentsIter" (;) ";" (comment) "/* Iterates over all zones in the current zone group. */" (function_definition) "class GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}" (type_identifier) "class" (identifier) "GCZoneGroupIter" (compound_statement) "{\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}" ({) "{" (labeled_statement) "private:\n JS::Zone* current;" (statement_identifier) "private" (:) ":" (labeled_statement) "JS::Zone* current;" (statement_identifier) "JS" (:) ":" (ERROR) ":" (:) ":" (declaration) "Zone* current;" (type_identifier) "Zone" (pointer_declarator) "* current" (*) "*" (identifier) "current" (;) ";" (labeled_statement) "public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }" (statement_identifier) "public" (:) ":" (ERROR) "explicit GCZoneGroupIter(JSRuntime* rt)" (type_identifier) "explicit" (function_declarator) "GCZoneGroupIter(JSRuntime* rt)" (identifier) "GCZoneGroupIter" (parameter_list) "(JSRuntime* rt)" (() "(" (parameter_declaration) "JSRuntime* rt" (type_identifier) "JSRuntime" (pointer_declarator) "* rt" (*) "*" (identifier) "rt" ()) ")" (compound_statement) "{\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(rt->isHeapBusy());" (call_expression) "MOZ_ASSERT(rt->isHeapBusy())" (identifier) "MOZ_ASSERT" (argument_list) "(rt->isHeapBusy())" (() "(" (call_expression) "rt->isHeapBusy()" (field_expression) "rt->isHeapBusy" (identifier) "rt" (->) "->" (field_identifier) "isHeapBusy" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "current = rt->gc.getCurrentZoneGroup();" (assignment_expression) "current = rt->gc.getCurrentZoneGroup()" (identifier) "current" (=) "=" (call_expression) "rt->gc.getCurrentZoneGroup()" (field_expression) "rt->gc.getCurrentZoneGroup" (field_expression) "rt->gc" (identifier) "rt" (->) "->" (field_identifier) "gc" (.) "." (field_identifier) "getCurrentZoneGroup" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "bool done() const" (primitive_type) "bool" (function_declarator) "done()" (identifier) "done" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return !current; }" ({) "{" (return_statement) "return !current;" (return) "return" (unary_expression) "!current" (!) "!" (identifier) "current" (;) ";" (}) "}" (function_definition) "void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }" (primitive_type) "void" (function_declarator) "next()" (identifier) "next" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "current = current->nextNodeInGroup();" (assignment_expression) "current = current->nextNodeInGroup()" (identifier) "current" (=) "=" (call_expression) "current->nextNodeInGroup()" (field_expression) "current->nextNodeInGroup" (identifier) "current" (->) "->" (field_identifier) "nextNodeInGroup" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }" (statement_identifier) "JS" (:) ":" (ERROR) ":Zone* get() const" (:) ":" (type_identifier) "Zone" (pointer_declarator) "* get() const" (*) "*" (function_declarator) "get() const" (identifier) "get" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n MOZ_ASSERT(!done());\n return current;\n }" ({) "{" (expression_statement) "MOZ_ASSERT(!done());" (call_expression) "MOZ_ASSERT(!done())" (identifier) "MOZ_ASSERT" (argument_list) "(!done())" (() "(" (unary_expression) "!done()" (!) "!" (call_expression) "done()" (identifier) "done" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return current;" (return) "return" (identifier) "current" (;) ";" (}) "}" (function_definition) "operator JS::Zone*() const { return get(); }" (type_identifier) "operator" (ERROR) "JS::Zone" (identifier) "JS" (:) ":" (:) ":" (identifier) "Zone" (pointer_declarator) "*() const" (*) "*" (ERROR) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "" (compound_statement) "{ return get(); }" ({) "{" (return_statement) "return get();" (return) "return" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "JS::Zone* operator->() const { return get(); }" (statement_identifier) "JS" (:) ":" (ERROR) ":Zone* operator->() const" (:) ":" (binary_expression) "Zone* operator->()" (identifier) "Zone" (*) "*" (call_expression) "operator->()" (field_expression) "operator->" (identifier) "operator" (->) "->" (field_identifier) "" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return get(); }" ({) "{" (return_statement) "return get();" (return) "return" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;" (typedef) "typedef" (type_identifier) "CompartmentsIterT" (ERROR) "<GCZoneGroupIter>" (<) "<" (type_identifier) "GCZoneGroupIter" (>) ">" (type_identifier) "GCCompartmentGroupIter" (;) ";" (ERROR) "} /* namespace gc */\n}" (}) "}" (comment) "/* namespace gc */" (}) "}" (comment) "/* namespace js */" (#endif) "#endif" (comment) "/* jsgcinlines_h */"
2,313
50
{"language": "c", "success": true, "metadata": {"lines": 305, "avg_line_length": 28.11, "nodes": 1326, "errors": 0, "source_hash": "e12f951cf535284029d40cb3f3cffb7c5fafd0fabcd4acaf4f44a8d32bc1b706", "categorized_nodes": 915}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef jsgcinlines_h\n#define jsgcinlines_h\n\n#include \"jsgc.h\"\n\n#include \"gc/GCTrace.h\"\n#include \"gc/Zone.h\"\n\nnamespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n};\n\nclass ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n};\n\nclass ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }\n};\n\nclass ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n};\n\nclass GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;\n\n/* Iterates over all zones in the current zone group. */\nclass GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;\n\n} /* namespace gc */\n} /* namespace js */\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 683, 873, 920, 1058, 1192, 1200, 1316, 1324, 1325], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 364, "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": "jsgcinlines_h", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define jsgcinlines_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": "jsgcinlines_h", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"jsgc.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": "\"jsgc.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"gc/GCTrace.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": "\"gc/GCTrace.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 23}}, {"id": 12, "type": "preproc_include", "text": "#include \"gc/Zone.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"gc/Zone.h\"", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 20}}, {"id": 15, "type": "function_definition", "text": "namespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 198, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 17, "type": "identifier", "text": "js", "parent": 15, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 12}}, {"id": 18, "type": "function_definition", "text": "namespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n}", "parent": 15, "children": [19, 20], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 20, "type": "identifier", "text": "gc", "parent": 18, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 12}}, {"id": 21, "type": "function_definition", "text": "static inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}", "parent": 18, "children": [22, 24, 25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 22, "type": "storage_class_specifier", "text": "inline", "parent": 21, "children": [23], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 23, "type": "inline", "text": "inline", "parent": 22, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 24, "type": "type_identifier", "text": "AllocKind", "parent": 21, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 23}}, {"id": 25, "type": "function_declarator", "text": "GetGCObjectKind(const Class* clasp)", "parent": 21, "children": [26, 27], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 35}}, {"id": 26, "type": "identifier", "text": "GetGCObjectKind", "parent": 25, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 15}}, {"id": 27, "type": "parameter_list", "text": "(const Class* clasp)", "parent": 25, "children": [28], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 35}}, {"id": 28, "type": "parameter_declaration", "text": "const Class* clasp", "parent": 27, "children": [29, 30], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 34}}, {"id": 29, "type": "type_identifier", "text": "Class", "parent": 28, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 27}}, {"id": 30, "type": "pointer_declarator", "text": "* clasp", "parent": 28, "children": [31, 32], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 34}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 28}}, {"id": 32, "type": "identifier", "text": "clasp", "parent": 30, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 34}}, {"id": 33, "type": "if_statement", "text": "if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;", "parent": 21, "children": [34, 39], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 21, "column": 35}}, {"id": 34, "type": "parenthesized_expression", "text": "(clasp == FunctionClassPtr)", "parent": 33, "children": [35], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 34}}, {"id": 35, "type": "binary_expression", "text": "clasp == FunctionClassPtr", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 33}}, {"id": 36, "type": "identifier", "text": "clasp", "parent": 35, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 37, "type": "==", "text": "==", "parent": 35, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 16}}, {"id": 38, "type": "identifier", "text": "FunctionClassPtr", "parent": 35, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 33}}, {"id": 39, "type": "return_statement", "text": "return AllocKind::FUNCTION;", "parent": 33, "children": [40, 41], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 35}}, {"id": 40, "type": "identifier", "text": "AllocKind", "parent": 39, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 24}}, {"id": 41, "type": "ERROR", "text": "::FUNCTION", "parent": 39, "children": [42], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 34}}, {"id": 42, "type": "identifier", "text": "FUNCTION", "parent": 41, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 34}}, {"id": 43, "type": "declaration", "text": "uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);", "parent": 21, "children": [44, 45], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 52}}, {"id": 44, "type": "primitive_type", "text": "uint32_t", "parent": 43, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 45, "type": "init_declarator", "text": "nslots = JSCLASS_RESERVED_SLOTS(clasp)", "parent": 43, "children": [46, 47, 48], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 51}}, {"id": 46, "type": "identifier", "text": "nslots", "parent": 45, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 19}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 48, "type": "call_expression", "text": "JSCLASS_RESERVED_SLOTS(clasp)", "parent": 45, "children": [49, 50], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 51}}, {"id": 49, "type": "identifier", "text": "JSCLASS_RESERVED_SLOTS", "parent": 48, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 44}}, {"id": 50, "type": "argument_list", "text": "(clasp)", "parent": 48, "children": [51], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 51}}, {"id": 51, "type": "identifier", "text": "clasp", "parent": 50, "children": [], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 50}}, {"id": 52, "type": "if_statement", "text": "if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;", "parent": 21, "children": [53], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 24, "column": 17}}, {"id": 53, "type": "parenthesized_expression", "text": "(clasp->flags & JSCLASS_HAS_PRIVATE)", "parent": 52, "children": [54], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 43}}, {"id": 54, "type": "binary_expression", "text": "clasp->flags & JSCLASS_HAS_PRIVATE", "parent": 53, "children": [55, 58], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 42}}, {"id": 55, "type": "field_expression", "text": "clasp->flags", "parent": 54, "children": [56, 57], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 56, "type": "identifier", "text": "clasp", "parent": 55, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 13}}, {"id": 57, "type": "field_identifier", "text": "flags", "parent": 55, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 20}}, {"id": 58, "type": "identifier", "text": "JSCLASS_HAS_PRIVATE", "parent": 54, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 42}}, {"id": 59, "type": "update_expression", "text": "nslots++", "parent": 52, "children": [60, 61], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 16}}, {"id": 60, "type": "identifier", "text": "nslots", "parent": 59, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 14}}, {"id": 61, "type": "++", "text": "++", "parent": 59, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 16}}, {"id": 62, "type": "return_statement", "text": "return GetGCObjectKind(nslots);", "parent": 21, "children": [63], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 35}}, {"id": 63, "type": "call_expression", "text": "GetGCObjectKind(nslots)", "parent": 62, "children": [64, 65], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 34}}, {"id": 64, "type": "identifier", "text": "GetGCObjectKind", "parent": 63, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 26}}, {"id": 65, "type": "argument_list", "text": "(nslots)", "parent": 63, "children": [66], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 34}}, {"id": 66, "type": "identifier", "text": "nslots", "parent": 65, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 33}}, {"id": 67, "type": "function_definition", "text": "inline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}", "parent": 18, "children": [68, 70, 71, 73], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 68, "type": "storage_class_specifier", "text": "inline", "parent": 67, "children": [69], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 69, "type": "inline", "text": "inline", "parent": 68, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 11}}, {"id": 71, "type": "ERROR", "text": "GCRuntime::", "parent": 67, "children": [72], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 11}}, {"id": 72, "type": "identifier", "text": "GCRuntime", "parent": 71, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 9}}, {"id": 73, "type": "function_declarator", "text": "poke()", "parent": 67, "children": [74, 75], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 17}}, {"id": 74, "type": "identifier", "text": "poke", "parent": 73, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 15}}, {"id": 75, "type": "parameter_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 76, "type": "assignment_expression", "text": "poked = true", "parent": 67, "children": [77, 78, 79], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 16}}, {"id": 77, "type": "identifier", "text": "poked", "parent": 76, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 9}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 11}}, {"id": 79, "type": "true", "text": "true", "parent": 76, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 16}}, {"id": 80, "type": "preproc_ifdef", "text": "#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif", "parent": 67, "children": [81, 82, 83, 93], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 81, "type": "#ifdef", "text": "#ifdef", "parent": 80, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 82, "type": "identifier", "text": "JS_GC_ZEAL", "parent": 80, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 17}}, {"id": 83, "type": "if_statement", "text": "if (zealMode == ZealPokeValue)\n nextScheduled = 1;", "parent": 80, "children": [84], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 36, "column": 26}}, {"id": 84, "type": "parenthesized_expression", "text": "(zealMode == ZealPokeValue)", "parent": 83, "children": [85], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 34}}, {"id": 85, "type": "binary_expression", "text": "zealMode == ZealPokeValue", "parent": 84, "children": [86, 87, 88], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 33}}, {"id": 86, "type": "identifier", "text": "zealMode", "parent": 85, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 16}}, {"id": 87, "type": "==", "text": "==", "parent": 85, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 19}}, {"id": 88, "type": "identifier", "text": "ZealPokeValue", "parent": 85, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 33}}, {"id": 89, "type": "assignment_expression", "text": "nextScheduled = 1", "parent": 83, "children": [90, 91, 92], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 25}}, {"id": 90, "type": "identifier", "text": "nextScheduled", "parent": 89, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 21}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 23}}, {"id": 92, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 25}}, {"id": 93, "type": "#endif", "text": "#endif", "parent": 80, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 94, "type": "function_definition", "text": "class ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }", "parent": 18, "children": [95], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 55, "column": 5}}, {"id": 95, "type": "identifier", "text": "ArenaIter", "parent": 94, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 15}}, {"id": 96, "type": "declaration", "text": "ArenaHeader* aheader;", "parent": 94, "children": [97, 98], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 25}}, {"id": 97, "type": "type_identifier", "text": "ArenaHeader", "parent": 96, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 98, "type": "pointer_declarator", "text": "* aheader", "parent": 96, "children": [99, 100], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 24}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 16}}, {"id": 100, "type": "identifier", "text": "aheader", "parent": 98, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 24}}, {"id": 101, "type": "declaration", "text": "ArenaHeader* unsweptHeader;", "parent": 94, "children": [102, 103], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 31}}, {"id": 102, "type": "type_identifier", "text": "ArenaHeader", "parent": 101, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 15}}, {"id": 103, "type": "pointer_declarator", "text": "* unsweptHeader", "parent": 101, "children": [104, 105], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 30}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 105, "type": "identifier", "text": "unsweptHeader", "parent": 103, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 30}}, {"id": 106, "type": "declaration", "text": "ArenaHeader* sweptHeader;", "parent": 94, "children": [107, 108], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 29}}, {"id": 107, "type": "type_identifier", "text": "ArenaHeader", "parent": 106, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 15}}, {"id": 108, "type": "pointer_declarator", "text": "* sweptHeader", "parent": 106, "children": [109, 110], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 28}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 110, "type": "identifier", "text": "sweptHeader", "parent": 108, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 28}}, {"id": 111, "type": "labeled_statement", "text": "public:\n ArenaIter()", "parent": 94, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 47, "column": 15}}, {"id": 112, "type": "call_expression", "text": "ArenaIter()", "parent": 111, "children": [113, 114], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 15}}, {"id": 113, "type": "identifier", "text": "ArenaIter", "parent": 112, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 114, "type": "argument_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 15}}, {"id": 115, "type": "assignment_expression", "text": "aheader = nullptr", "parent": 94, "children": [116, 117, 118], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 25}}, {"id": 116, "type": "identifier", "text": "aheader", "parent": 115, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 15}}, {"id": 117, "type": "=", "text": "=", "parent": 115, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 17}}, {"id": 118, "type": "null", "text": "nullptr", "parent": 115, "children": [119], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 25}}, {"id": 119, "type": "nullptr", "text": "nullptr", "parent": 118, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 25}}, {"id": 120, "type": "assignment_expression", "text": "unsweptHeader = nullptr", "parent": 94, "children": [121, 122, 123], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 31}}, {"id": 121, "type": "identifier", "text": "unsweptHeader", "parent": 120, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 21}}, {"id": 122, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 123, "type": "null", "text": "nullptr", "parent": 120, "children": [124], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 31}}, {"id": 124, "type": "nullptr", "text": "nullptr", "parent": 123, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 31}}, {"id": 125, "type": "assignment_expression", "text": "sweptHeader = nullptr", "parent": 94, "children": [126, 127, 128], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 29}}, {"id": 126, "type": "identifier", "text": "sweptHeader", "parent": 125, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 19}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 21}}, {"id": 128, "type": "null", "text": "nullptr", "parent": 125, "children": [129], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 29}}, {"id": 129, "type": "nullptr", "text": "nullptr", "parent": 128, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 29}}, {"id": 130, "type": "labeled_statement", "text": "ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);", "parent": 94, "children": [131, 132, 135], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 54, "column": 25}}, {"id": 131, "type": "statement_identifier", "text": "ArenaIter", "parent": 130, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 13}}, {"id": 132, "type": "ERROR", "text": "(JS:", "parent": 130, "children": [133], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 17}}, {"id": 133, "type": "type_descriptor", "text": "JS", "parent": 132, "children": [134], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 134, "type": "type_identifier", "text": "JS", "parent": 133, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 135, "type": "declaration", "text": "Zone* zone, AllocKind kind) {\n init(zone, kind);", "parent": 130, "children": [136, 137, 140, 143], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 54, "column": 25}}, {"id": 136, "type": "type_identifier", "text": "Zone", "parent": 135, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 22}}, {"id": 137, "type": "pointer_declarator", "text": "* zone", "parent": 135, "children": [138, 139], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 28}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 23}}, {"id": 139, "type": "identifier", "text": "zone", "parent": 137, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 28}}, {"id": 140, "type": "ERROR", "text": "AllocKind kind) {", "parent": 135, "children": [141, 142], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 47}}, {"id": 141, "type": "identifier", "text": "AllocKind", "parent": 140, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 39}}, {"id": 142, "type": "identifier", "text": "kind", "parent": 140, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 44}}, {"id": 143, "type": "function_declarator", "text": "init(zone, kind)", "parent": 135, "children": [144, 145], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 24}}, {"id": 144, "type": "identifier", "text": "init", "parent": 143, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 145, "type": "parameter_list", "text": "(zone, kind)", "parent": 143, "children": [146, 148], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 24}}, {"id": 146, "type": "parameter_declaration", "text": "zone", "parent": 145, "children": [147], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 17}}, {"id": 147, "type": "type_identifier", "text": "zone", "parent": 146, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 17}}, {"id": 148, "type": "parameter_declaration", "text": "kind", "parent": 145, "children": [149], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 23}}, {"id": 149, "type": "type_identifier", "text": "kind", "parent": 148, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 23}}, {"id": 150, "type": "function_definition", "text": "void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }", "parent": 18, "children": [151, 152], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 151, "type": "primitive_type", "text": "void", "parent": 150, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 152, "type": "function_declarator", "text": "init(JS::Zone* zone, AllocKind kind)", "parent": 150, "children": [153, 154], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 45}}, {"id": 153, "type": "identifier", "text": "init", "parent": 152, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 13}}, {"id": 154, "type": "parameter_list", "text": "(JS::Zone* zone, AllocKind kind)", "parent": 152, "children": [155, 162], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 45}}, {"id": 155, "type": "parameter_declaration", "text": "JS::Zone* zone", "parent": 154, "children": [156, 157, 159], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 28}}, {"id": 156, "type": "type_identifier", "text": "JS", "parent": 155, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 16}}, {"id": 157, "type": "ERROR", "text": "::Zone", "parent": 155, "children": [158], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 22}}, {"id": 158, "type": "identifier", "text": "Zone", "parent": 157, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 159, "type": "pointer_declarator", "text": "* zone", "parent": 155, "children": [160, 161], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 28}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 23}}, {"id": 161, "type": "identifier", "text": "zone", "parent": 159, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 28}}, {"id": 162, "type": "parameter_declaration", "text": "AllocKind kind", "parent": 154, "children": [163, 164], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 44}}, {"id": 163, "type": "type_identifier", "text": "AllocKind", "parent": 162, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 39}}, {"id": 164, "type": "identifier", "text": "kind", "parent": 162, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 44}}, {"id": 165, "type": "assignment_expression", "text": "aheader = zone->arenas.getFirstArena(kind)", "parent": 150, "children": [166, 167, 168], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 50}}, {"id": 166, "type": "identifier", "text": "aheader", "parent": 165, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 167, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 17}}, {"id": 168, "type": "call_expression", "text": "zone->arenas.getFirstArena(kind)", "parent": 165, "children": [169, 174], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 50}}, {"id": 169, "type": "field_expression", "text": "zone->arenas.getFirstArena", "parent": 168, "children": [170, 173], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 44}}, {"id": 170, "type": "field_expression", "text": "zone->arenas", "parent": 169, "children": [171, 172], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 30}}, {"id": 171, "type": "identifier", "text": "zone", "parent": 170, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 22}}, {"id": 172, "type": "field_identifier", "text": "arenas", "parent": 170, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 30}}, {"id": 173, "type": "field_identifier", "text": "getFirstArena", "parent": 169, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 44}}, {"id": 174, "type": "argument_list", "text": "(kind)", "parent": 168, "children": [175], "start_point": {"row": 58, "column": 44}, "end_point": {"row": 58, "column": 50}}, {"id": 175, "type": "identifier", "text": "kind", "parent": 174, "children": [], "start_point": {"row": 58, "column": 45}, "end_point": {"row": 58, "column": 49}}, {"id": 176, "type": "assignment_expression", "text": "unsweptHeader = zone->arenas.getFirstArenaToSweep(kind)", "parent": 150, "children": [177, 178, 179], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 63}}, {"id": 177, "type": "identifier", "text": "unsweptHeader", "parent": 176, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 21}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 23}}, {"id": 179, "type": "call_expression", "text": "zone->arenas.getFirstArenaToSweep(kind)", "parent": 176, "children": [180, 185], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 63}}, {"id": 180, "type": "field_expression", "text": "zone->arenas.getFirstArenaToSweep", "parent": 179, "children": [181, 184], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 57}}, {"id": 181, "type": "field_expression", "text": "zone->arenas", "parent": 180, "children": [182, 183], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 36}}, {"id": 182, "type": "identifier", "text": "zone", "parent": 181, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 28}}, {"id": 183, "type": "field_identifier", "text": "arenas", "parent": 181, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 36}}, {"id": 184, "type": "field_identifier", "text": "getFirstArenaToSweep", "parent": 180, "children": [], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 57}}, {"id": 185, "type": "argument_list", "text": "(kind)", "parent": 179, "children": [186], "start_point": {"row": 59, "column": 57}, "end_point": {"row": 59, "column": 63}}, {"id": 186, "type": "identifier", "text": "kind", "parent": 185, "children": [], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 59, "column": 62}}, {"id": 187, "type": "assignment_expression", "text": "sweptHeader = zone->arenas.getFirstSweptArena(kind)", "parent": 150, "children": [188, 189, 190], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 59}}, {"id": 188, "type": "identifier", "text": "sweptHeader", "parent": 187, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 19}}, {"id": 189, "type": "=", "text": "=", "parent": 187, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 190, "type": "call_expression", "text": "zone->arenas.getFirstSweptArena(kind)", "parent": 187, "children": [191, 196], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 59}}, {"id": 191, "type": "field_expression", "text": "zone->arenas.getFirstSweptArena", "parent": 190, "children": [192, 195], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 53}}, {"id": 192, "type": "field_expression", "text": "zone->arenas", "parent": 191, "children": [193, 194], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 34}}, {"id": 193, "type": "identifier", "text": "zone", "parent": 192, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 26}}, {"id": 194, "type": "field_identifier", "text": "arenas", "parent": 192, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 34}}, {"id": 195, "type": "field_identifier", "text": "getFirstSweptArena", "parent": 191, "children": [], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 53}}, {"id": 196, "type": "argument_list", "text": "(kind)", "parent": 190, "children": [197], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 59}}, {"id": 197, "type": "identifier", "text": "kind", "parent": 196, "children": [], "start_point": {"row": 60, "column": 54}, "end_point": {"row": 60, "column": 58}}, {"id": 198, "type": "if_statement", "text": "if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }", "parent": 150, "children": [199], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 199, "type": "parenthesized_expression", "text": "(!unsweptHeader)", "parent": 198, "children": [200], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 27}}, {"id": 200, "type": "unary_expression", "text": "!unsweptHeader", "parent": 199, "children": [201, 202], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 26}}, {"id": 201, "type": "!", "text": "!", "parent": 200, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 13}}, {"id": 202, "type": "identifier", "text": "unsweptHeader", "parent": 200, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 26}}, {"id": 203, "type": "assignment_expression", "text": "unsweptHeader = sweptHeader", "parent": 198, "children": [204, 205, 206], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 39}}, {"id": 204, "type": "identifier", "text": "unsweptHeader", "parent": 203, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 25}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 27}}, {"id": 206, "type": "identifier", "text": "sweptHeader", "parent": 203, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 39}}, {"id": 207, "type": "assignment_expression", "text": "sweptHeader = nullptr", "parent": 198, "children": [208, 209, 210], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 33}}, {"id": 208, "type": "identifier", "text": "sweptHeader", "parent": 207, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 23}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 210, "type": "null", "text": "nullptr", "parent": 207, "children": [211], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 33}}, {"id": 211, "type": "nullptr", "text": "nullptr", "parent": 210, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 33}}, {"id": 212, "type": "if_statement", "text": "if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }", "parent": 150, "children": [213], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 213, "type": "parenthesized_expression", "text": "(!aheader)", "parent": 212, "children": [214], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 21}}, {"id": 214, "type": "unary_expression", "text": "!aheader", "parent": 213, "children": [215, 216], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 20}}, {"id": 215, "type": "!", "text": "!", "parent": 214, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 216, "type": "identifier", "text": "aheader", "parent": 214, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 20}}, {"id": 217, "type": "assignment_expression", "text": "aheader = unsweptHeader", "parent": 212, "children": [218, 219, 220], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 35}}, {"id": 218, "type": "identifier", "text": "aheader", "parent": 217, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 19}}, {"id": 219, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 21}}, {"id": 220, "type": "identifier", "text": "unsweptHeader", "parent": 217, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 35}}, {"id": 221, "type": "assignment_expression", "text": "unsweptHeader = sweptHeader", "parent": 212, "children": [222, 223, 224], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 39}}, {"id": 222, "type": "identifier", "text": "unsweptHeader", "parent": 221, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 25}}, {"id": 223, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 27}}, {"id": 224, "type": "identifier", "text": "sweptHeader", "parent": 221, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 39}}, {"id": 225, "type": "assignment_expression", "text": "sweptHeader = nullptr", "parent": 212, "children": [226, 227, 228], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 33}}, {"id": 226, "type": "identifier", "text": "sweptHeader", "parent": 225, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 23}}, {"id": 227, "type": "=", "text": "=", "parent": 225, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 228, "type": "null", "text": "nullptr", "parent": 225, "children": [229], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 33}}, {"id": 229, "type": "nullptr", "text": "nullptr", "parent": 228, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 33}}, {"id": 230, "type": "ERROR", "text": "bool done() const", "parent": 18, "children": [231, 232], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 21}}, {"id": 231, "type": "primitive_type", "text": "bool", "parent": 230, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 232, "type": "function_declarator", "text": "done()", "parent": 230, "children": [233, 234], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 15}}, {"id": 233, "type": "identifier", "text": "done", "parent": 232, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 13}}, {"id": 234, "type": "parameter_list", "text": "()", "parent": 232, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 15}}, {"id": 235, "type": "return_statement", "text": "return !aheader;", "parent": 18, "children": [236], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 24}}, {"id": 236, "type": "unary_expression", "text": "!aheader", "parent": 235, "children": [237, 238], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 23}}, {"id": 237, "type": "!", "text": "!", "parent": 236, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 16}}, {"id": 238, "type": "identifier", "text": "aheader", "parent": 236, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 23}}, {"id": 239, "type": "function_definition", "text": "ArenaHeader* get() const {\n return aheader;\n }", "parent": 18, "children": [240, 241], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 78, "column": 5}}, {"id": 240, "type": "type_identifier", "text": "ArenaHeader", "parent": 239, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 15}}, {"id": 241, "type": "pointer_declarator", "text": "* get() const", "parent": 239, "children": [242, 243], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 28}}, {"id": 242, "type": "*", "text": "*", "parent": 241, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 16}}, {"id": 243, "type": "function_declarator", "text": "get() const", "parent": 241, "children": [244, 245], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 28}}, {"id": 244, "type": "identifier", "text": "get", "parent": 243, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 20}}, {"id": 245, "type": "parameter_list", "text": "()", "parent": 243, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 22}}, {"id": 246, "type": "return_statement", "text": "return aheader;", "parent": 239, "children": [247], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 23}}, {"id": 247, "type": "identifier", "text": "aheader", "parent": 246, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 22}}, {"id": 248, "type": "function_definition", "text": "void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }", "parent": 18, "children": [249, 250], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 249, "type": "primitive_type", "text": "void", "parent": 248, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 250, "type": "function_declarator", "text": "next()", "parent": 248, "children": [251, 252], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 251, "type": "identifier", "text": "next", "parent": 250, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 13}}, {"id": 252, "type": "parameter_list", "text": "()", "parent": 250, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 15}}, {"id": 253, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 248, "children": [254, 255], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 27}}, {"id": 254, "type": "identifier", "text": "MOZ_ASSERT", "parent": 253, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 18}}, {"id": 255, "type": "argument_list", "text": "(!done())", "parent": 253, "children": [256], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 27}}, {"id": 256, "type": "unary_expression", "text": "!done()", "parent": 255, "children": [257, 258], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 26}}, {"id": 257, "type": "!", "text": "!", "parent": 256, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 258, "type": "call_expression", "text": "done()", "parent": 256, "children": [259, 260], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 26}}, {"id": 259, "type": "identifier", "text": "done", "parent": 258, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 24}}, {"id": 260, "type": "argument_list", "text": "()", "parent": 258, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 26}}, {"id": 261, "type": "assignment_expression", "text": "aheader = aheader->next", "parent": 248, "children": [262, 263, 264], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 31}}, {"id": 262, "type": "identifier", "text": "aheader", "parent": 261, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 15}}, {"id": 263, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 17}}, {"id": 264, "type": "field_expression", "text": "aheader->next", "parent": 261, "children": [265, 266], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 31}}, {"id": 265, "type": "identifier", "text": "aheader", "parent": 264, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 25}}, {"id": 266, "type": "field_identifier", "text": "next", "parent": 264, "children": [], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 31}}, {"id": 267, "type": "if_statement", "text": "if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }", "parent": 248, "children": [268], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 268, "type": "parenthesized_expression", "text": "(!aheader)", "parent": 267, "children": [269], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 21}}, {"id": 269, "type": "unary_expression", "text": "!aheader", "parent": 268, "children": [270, 271], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 20}}, {"id": 270, "type": "!", "text": "!", "parent": 269, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 271, "type": "identifier", "text": "aheader", "parent": 269, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 20}}, {"id": 272, "type": "assignment_expression", "text": "aheader = unsweptHeader", "parent": 267, "children": [273, 274, 275], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 35}}, {"id": 273, "type": "identifier", "text": "aheader", "parent": 272, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 19}}, {"id": 274, "type": "=", "text": "=", "parent": 272, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 21}}, {"id": 275, "type": "identifier", "text": "unsweptHeader", "parent": 272, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 35}}, {"id": 276, "type": "assignment_expression", "text": "unsweptHeader = sweptHeader", "parent": 267, "children": [277, 278, 279], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 39}}, {"id": 277, "type": "identifier", "text": "unsweptHeader", "parent": 276, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 25}}, {"id": 278, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 27}}, {"id": 279, "type": "identifier", "text": "sweptHeader", "parent": 276, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 39}}, {"id": 280, "type": "assignment_expression", "text": "sweptHeader = nullptr", "parent": 267, "children": [281, 282, 283], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 33}}, {"id": 281, "type": "identifier", "text": "sweptHeader", "parent": 280, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 23}}, {"id": 282, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 25}}, {"id": 283, "type": "null", "text": "nullptr", "parent": 280, "children": [284], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 33}}, {"id": 284, "type": "nullptr", "text": "nullptr", "parent": 283, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 33}}, {"id": 285, "type": "function_definition", "text": "class ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n}", "parent": 15, "children": [286], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 177, "column": 1}}, {"id": 286, "type": "identifier", "text": "ArenaCellIterImpl", "parent": 285, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 23}}, {"id": 287, "type": "declaration", "text": "size_t firstThingOffset;", "parent": 285, "children": [288, 289], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 28}}, {"id": 288, "type": "primitive_type", "text": "size_t", "parent": 287, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 10}}, {"id": 289, "type": "identifier", "text": "firstThingOffset", "parent": 287, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 27}}, {"id": 290, "type": "declaration", "text": "size_t thingSize;", "parent": 285, "children": [291, 292], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 21}}, {"id": 291, "type": "primitive_type", "text": "size_t", "parent": 290, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 10}}, {"id": 292, "type": "identifier", "text": "thingSize", "parent": 290, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 20}}, {"id": 293, "type": "preproc_ifdef", "text": "#ifdef DEBUG\n bool isInited;\n#endif", "parent": 285, "children": [294, 295, 296, 299], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 294, "type": "#ifdef", "text": "#ifdef", "parent": 293, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 295, "type": "identifier", "text": "DEBUG", "parent": 293, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 12}}, {"id": 296, "type": "declaration", "text": "bool isInited;", "parent": 293, "children": [297, 298], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 18}}, {"id": 297, "type": "primitive_type", "text": "bool", "parent": 296, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 8}}, {"id": 298, "type": "identifier", "text": "isInited", "parent": 296, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 17}}, {"id": 299, "type": "#endif", "text": "#endif", "parent": 293, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 300, "type": "declaration", "text": "FreeSpan span;", "parent": 285, "children": [301, 302], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 18}}, {"id": 301, "type": "type_identifier", "text": "FreeSpan", "parent": 300, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 12}}, {"id": 302, "type": "identifier", "text": "span", "parent": 300, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 17}}, {"id": 303, "type": "declaration", "text": "uintptr_t thing;", "parent": 285, "children": [304, 305], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 20}}, {"id": 304, "type": "primitive_type", "text": "uintptr_t", "parent": 303, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 13}}, {"id": 305, "type": "identifier", "text": "thing", "parent": 303, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 19}}, {"id": 306, "type": "declaration", "text": "uintptr_t limit;", "parent": 285, "children": [307, 308], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 20}}, {"id": 307, "type": "primitive_type", "text": "uintptr_t", "parent": 306, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 13}}, {"id": 308, "type": "identifier", "text": "limit", "parent": 306, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 19}}, {"id": 309, "type": "function_definition", "text": "void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }", "parent": 285, "children": [310, 311], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 118, "column": 5}}, {"id": 310, "type": "primitive_type", "text": "void", "parent": 309, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 311, "type": "function_declarator", "text": "moveForwardIfFree()", "parent": 309, "children": [312, 313], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 28}}, {"id": 312, "type": "identifier", "text": "moveForwardIfFree", "parent": 311, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 26}}, {"id": 313, "type": "parameter_list", "text": "()", "parent": 311, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 28}}, {"id": 314, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 309, "children": [315, 316], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 27}}, {"id": 315, "type": "identifier", "text": "MOZ_ASSERT", "parent": 314, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 18}}, {"id": 316, "type": "argument_list", "text": "(!done())", "parent": 314, "children": [317], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 27}}, {"id": 317, "type": "unary_expression", "text": "!done()", "parent": 316, "children": [318, 319], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 26}}, {"id": 318, "type": "!", "text": "!", "parent": 317, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 20}}, {"id": 319, "type": "call_expression", "text": "done()", "parent": 317, "children": [320, 321], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 26}}, {"id": 320, "type": "identifier", "text": "done", "parent": 319, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 24}}, {"id": 321, "type": "argument_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 26}}, {"id": 322, "type": "call_expression", "text": "MOZ_ASSERT(thing)", "parent": 309, "children": [323, 324], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 25}}, {"id": 323, "type": "identifier", "text": "MOZ_ASSERT", "parent": 322, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 18}}, {"id": 324, "type": "argument_list", "text": "(thing)", "parent": 322, "children": [325], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 25}}, {"id": 325, "type": "identifier", "text": "thing", "parent": 324, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 24}}, {"id": 326, "type": "if_statement", "text": "if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }", "parent": 309, "children": [327], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 117, "column": 9}}, {"id": 327, "type": "parenthesized_expression", "text": "(thing == span.first)", "parent": 326, "children": [328], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 32}}, {"id": 328, "type": "binary_expression", "text": "thing == span.first", "parent": 327, "children": [329, 330, 331], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 31}}, {"id": 329, "type": "identifier", "text": "thing", "parent": 328, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 17}}, {"id": 330, "type": "==", "text": "==", "parent": 328, "children": [], "start_point": {"row": 114, "column": 18}, "end_point": {"row": 114, "column": 20}}, {"id": 331, "type": "field_expression", "text": "span.first", "parent": 328, "children": [332, 333], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 31}}, {"id": 332, "type": "identifier", "text": "span", "parent": 331, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 25}}, {"id": 333, "type": "field_identifier", "text": "first", "parent": 331, "children": [], "start_point": {"row": 114, "column": 26}, "end_point": {"row": 114, "column": 31}}, {"id": 334, "type": "assignment_expression", "text": "thing = span.last + thingSize", "parent": 326, "children": [335, 336, 337], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 41}}, {"id": 335, "type": "identifier", "text": "thing", "parent": 334, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 17}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 19}}, {"id": 337, "type": "binary_expression", "text": "span.last + thingSize", "parent": 334, "children": [338, 341, 342], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 41}}, {"id": 338, "type": "field_expression", "text": "span.last", "parent": 337, "children": [339, 340], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 29}}, {"id": 339, "type": "identifier", "text": "span", "parent": 338, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 24}}, {"id": 340, "type": "field_identifier", "text": "last", "parent": 338, "children": [], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 29}}, {"id": 341, "type": "+", "text": "+", "parent": 337, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 31}}, {"id": 342, "type": "identifier", "text": "thingSize", "parent": 337, "children": [], "start_point": {"row": 115, "column": 32}, "end_point": {"row": 115, "column": 41}}, {"id": 343, "type": "assignment_expression", "text": "span = *span.nextSpan()", "parent": 326, "children": [344, 345, 346], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 35}}, {"id": 344, "type": "identifier", "text": "span", "parent": 343, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 16}}, {"id": 345, "type": "=", "text": "=", "parent": 343, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 18}}, {"id": 346, "type": "pointer_expression", "text": "*span.nextSpan()", "parent": 343, "children": [347, 348], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 35}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 20}}, {"id": 348, "type": "call_expression", "text": "span.nextSpan()", "parent": 346, "children": [349, 352], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 35}}, {"id": 349, "type": "field_expression", "text": "span.nextSpan", "parent": 348, "children": [350, 351], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 33}}, {"id": 350, "type": "identifier", "text": "span", "parent": 349, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 24}}, {"id": 351, "type": "field_identifier", "text": "nextSpan", "parent": 349, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 33}}, {"id": 352, "type": "argument_list", "text": "()", "parent": 348, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 35}}, {"id": 353, "type": "labeled_statement", "text": "public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)", "parent": 285, "children": [354], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 124, "column": 16}}, {"id": 354, "type": "ERROR", "text": ":\n ArenaCellIterImpl()", "parent": 353, "children": [355], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 121, "column": 23}}, {"id": 355, "type": "call_expression", "text": "ArenaCellIterImpl()", "parent": 354, "children": [356, 357], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 23}}, {"id": 356, "type": "identifier", "text": "ArenaCellIterImpl", "parent": 355, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 21}}, {"id": 357, "type": "argument_list", "text": "()", "parent": 355, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 23}}, {"id": 358, "type": "comma_expression", "text": "firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)", "parent": 353, "children": [359, 363], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 124, "column": 16}}, {"id": 359, "type": "call_expression", "text": "firstThingOffset(0)", "parent": 358, "children": [360, 361], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 27}}, {"id": 360, "type": "identifier", "text": "firstThingOffset", "parent": 359, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 24}}, {"id": 361, "type": "argument_list", "text": "(0)", "parent": 359, "children": [362], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 27}}, {"id": 362, "type": "number_literal", "text": "0", "parent": 361, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 26}}, {"id": 363, "type": "comma_expression", "text": "thingSize(0) // warnings\n , limit(0)", "parent": 358, "children": [364, 368], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 124, "column": 16}}, {"id": 364, "type": "call_expression", "text": "thingSize(0)", "parent": 363, "children": [365, 366], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 20}}, {"id": 365, "type": "identifier", "text": "thingSize", "parent": 364, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 17}}, {"id": 366, "type": "argument_list", "text": "(0)", "parent": 364, "children": [367], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 20}}, {"id": 367, "type": "number_literal", "text": "0", "parent": 366, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 19}}, {"id": 368, "type": "call_expression", "text": "limit(0)", "parent": 363, "children": [369, 370], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 16}}, {"id": 369, "type": "identifier", "text": "limit", "parent": 368, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 13}}, {"id": 370, "type": "argument_list", "text": "(0)", "parent": 368, "children": [371], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 16}}, {"id": 371, "type": "number_literal", "text": "0", "parent": 370, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 15}}, {"id": 372, "type": "function_definition", "text": "void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }", "parent": 285, "children": [373, 374], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 136, "column": 5}}, {"id": 373, "type": "primitive_type", "text": "void", "parent": 372, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 374, "type": "function_declarator", "text": "initUnsynchronized(ArenaHeader* aheader)", "parent": 372, "children": [375, 376], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 49}}, {"id": 375, "type": "identifier", "text": "initUnsynchronized", "parent": 374, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 27}}, {"id": 376, "type": "parameter_list", "text": "(ArenaHeader* aheader)", "parent": 374, "children": [377], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 49}}, {"id": 377, "type": "parameter_declaration", "text": "ArenaHeader* aheader", "parent": 376, "children": [378, 379], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 48}}, {"id": 378, "type": "type_identifier", "text": "ArenaHeader", "parent": 377, "children": [], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 39}}, {"id": 379, "type": "pointer_declarator", "text": "* aheader", "parent": 377, "children": [380, 381], "start_point": {"row": 128, "column": 39}, "end_point": {"row": 128, "column": 48}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 128, "column": 39}, "end_point": {"row": 128, "column": 40}}, {"id": 381, "type": "identifier", "text": "aheader", "parent": 379, "children": [], "start_point": {"row": 128, "column": 41}, "end_point": {"row": 128, "column": 48}}, {"id": 382, "type": "declaration", "text": "AllocKind kind = aheader->getAllocKind();", "parent": 372, "children": [383, 384], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 49}}, {"id": 383, "type": "type_identifier", "text": "AllocKind", "parent": 382, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 17}}, {"id": 384, "type": "init_declarator", "text": "kind = aheader->getAllocKind()", "parent": 382, "children": [385, 386, 387], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 48}}, {"id": 385, "type": "identifier", "text": "kind", "parent": 384, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 22}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 24}}, {"id": 387, "type": "call_expression", "text": "aheader->getAllocKind()", "parent": 384, "children": [388, 391], "start_point": {"row": 129, "column": 25}, "end_point": {"row": 129, "column": 48}}, {"id": 388, "type": "field_expression", "text": "aheader->getAllocKind", "parent": 387, "children": [389, 390], "start_point": {"row": 129, "column": 25}, "end_point": {"row": 129, "column": 46}}, {"id": 389, "type": "identifier", "text": "aheader", "parent": 388, "children": [], "start_point": {"row": 129, "column": 25}, "end_point": {"row": 129, "column": 32}}, {"id": 390, "type": "field_identifier", "text": "getAllocKind", "parent": 388, "children": [], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 46}}, {"id": 391, "type": "argument_list", "text": "()", "parent": 387, "children": [], "start_point": {"row": 129, "column": 46}, "end_point": {"row": 129, "column": 48}}, {"id": 392, "type": "preproc_ifdef", "text": "#ifdef DEBUG\n isInited = true;\n#endif", "parent": 372, "children": [393, 394, 399], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 132, "column": 6}}, {"id": 393, "type": "#ifdef", "text": "#ifdef", "parent": 392, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 6}}, {"id": 394, "type": "identifier", "text": "DEBUG", "parent": 392, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 12}}, {"id": 395, "type": "assignment_expression", "text": "isInited = true", "parent": 392, "children": [396, 397, 398], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 23}}, {"id": 396, "type": "identifier", "text": "isInited", "parent": 395, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 16}}, {"id": 397, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 18}}, {"id": 398, "type": "true", "text": "true", "parent": 395, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 23}}, {"id": 399, "type": "#endif", "text": "#endif", "parent": 392, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 6}}, {"id": 400, "type": "ERROR", "text": "firstThingOffset = Arena::", "parent": 372, "children": [401], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 34}}, {"id": 401, "type": "assignment_expression", "text": "firstThingOffset = Arena", "parent": 400, "children": [402, 403, 404], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 32}}, {"id": 402, "type": "identifier", "text": "firstThingOffset", "parent": 401, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 24}}, {"id": 403, "type": "=", "text": "=", "parent": 401, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 26}}, {"id": 404, "type": "identifier", "text": "Arena", "parent": 401, "children": [], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 133, "column": 32}}, {"id": 405, "type": "call_expression", "text": "firstThingOffset(kind)", "parent": 372, "children": [406, 407], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 56}}, {"id": 406, "type": "identifier", "text": "firstThingOffset", "parent": 405, "children": [], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 50}}, {"id": 407, "type": "argument_list", "text": "(kind)", "parent": 405, "children": [408], "start_point": {"row": 133, "column": 50}, "end_point": {"row": 133, "column": 56}}, {"id": 408, "type": "identifier", "text": "kind", "parent": 407, "children": [], "start_point": {"row": 133, "column": 51}, "end_point": {"row": 133, "column": 55}}, {"id": 409, "type": "ERROR", "text": "thingSize = Arena::", "parent": 372, "children": [410], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 27}}, {"id": 410, "type": "assignment_expression", "text": "thingSize = Arena", "parent": 409, "children": [411, 412, 413], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 25}}, {"id": 411, "type": "identifier", "text": "thingSize", "parent": 410, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 17}}, {"id": 412, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 19}}, {"id": 413, "type": "identifier", "text": "Arena", "parent": 410, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 25}}, {"id": 414, "type": "call_expression", "text": "thingSize(kind)", "parent": 372, "children": [415, 416], "start_point": {"row": 134, "column": 27}, "end_point": {"row": 134, "column": 42}}, {"id": 415, "type": "identifier", "text": "thingSize", "parent": 414, "children": [], "start_point": {"row": 134, "column": 27}, "end_point": {"row": 134, "column": 36}}, {"id": 416, "type": "argument_list", "text": "(kind)", "parent": 414, "children": [417], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 42}}, {"id": 417, "type": "identifier", "text": "kind", "parent": 416, "children": [], "start_point": {"row": 134, "column": 37}, "end_point": {"row": 134, "column": 41}}, {"id": 418, "type": "call_expression", "text": "reset(aheader)", "parent": 372, "children": [419, 420], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 22}}, {"id": 419, "type": "identifier", "text": "reset", "parent": 418, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 13}}, {"id": 420, "type": "argument_list", "text": "(aheader)", "parent": 418, "children": [421], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 22}}, {"id": 421, "type": "identifier", "text": "aheader", "parent": 420, "children": [], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 21}}, {"id": 422, "type": "function_definition", "text": "void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }", "parent": 285, "children": [423, 424], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 144, "column": 5}}, {"id": 423, "type": "primitive_type", "text": "void", "parent": 422, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 8}}, {"id": 424, "type": "function_declarator", "text": "init(ArenaHeader* aheader)", "parent": 422, "children": [425, 426], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 35}}, {"id": 425, "type": "identifier", "text": "init", "parent": 424, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 13}}, {"id": 426, "type": "parameter_list", "text": "(ArenaHeader* aheader)", "parent": 424, "children": [427], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 35}}, {"id": 427, "type": "parameter_declaration", "text": "ArenaHeader* aheader", "parent": 426, "children": [428, 429], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 34}}, {"id": 428, "type": "type_identifier", "text": "ArenaHeader", "parent": 427, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 25}}, {"id": 429, "type": "pointer_declarator", "text": "* aheader", "parent": 427, "children": [430, 431], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 34}}, {"id": 430, "type": "*", "text": "*", "parent": 429, "children": [], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 26}}, {"id": 431, "type": "identifier", "text": "aheader", "parent": 429, "children": [], "start_point": {"row": 138, "column": 27}, "end_point": {"row": 138, "column": 34}}, {"id": 432, "type": "preproc_ifdef", "text": "#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif", "parent": 422, "children": [433, 434, 435, 458], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 433, "type": "#ifdef", "text": "#ifdef", "parent": 432, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 6}}, {"id": 434, "type": "identifier", "text": "DEBUG", "parent": 432, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 12}}, {"id": 435, "type": "declaration", "text": "AllocKind kind = aheader->getAllocKind();", "parent": 432, "children": [436, 437], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 49}}, {"id": 436, "type": "type_identifier", "text": "AllocKind", "parent": 435, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 17}}, {"id": 437, "type": "init_declarator", "text": "kind = aheader->getAllocKind()", "parent": 435, "children": [438, 439, 440], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 48}}, {"id": 438, "type": "identifier", "text": "kind", "parent": 437, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 22}}, {"id": 439, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 24}}, {"id": 440, "type": "call_expression", "text": "aheader->getAllocKind()", "parent": 437, "children": [441, 444], "start_point": {"row": 140, "column": 25}, "end_point": {"row": 140, "column": 48}}, {"id": 441, "type": "field_expression", "text": "aheader->getAllocKind", "parent": 440, "children": [442, 443], "start_point": {"row": 140, "column": 25}, "end_point": {"row": 140, "column": 46}}, {"id": 442, "type": "identifier", "text": "aheader", "parent": 441, "children": [], "start_point": {"row": 140, "column": 25}, "end_point": {"row": 140, "column": 32}}, {"id": 443, "type": "field_identifier", "text": "getAllocKind", "parent": 441, "children": [], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 46}}, {"id": 444, "type": "argument_list", "text": "()", "parent": 440, "children": [], "start_point": {"row": 140, "column": 46}, "end_point": {"row": 140, "column": 48}}, {"id": 445, "type": "call_expression", "text": "MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind))", "parent": 432, "children": [446, 447], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 70}}, {"id": 446, "type": "identifier", "text": "MOZ_ASSERT", "parent": 445, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 18}}, {"id": 447, "type": "argument_list", "text": "(aheader->zone->arenas.isSynchronizedFreeList(kind))", "parent": 445, "children": [448], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 70}}, {"id": 448, "type": "call_expression", "text": "aheader->zone->arenas.isSynchronizedFreeList(kind)", "parent": 447, "children": [449, 456], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 69}}, {"id": 449, "type": "field_expression", "text": "aheader->zone->arenas.isSynchronizedFreeList", "parent": 448, "children": [450, 455], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 63}}, {"id": 450, "type": "field_expression", "text": "aheader->zone->arenas", "parent": 449, "children": [451, 454], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 40}}, {"id": 451, "type": "field_expression", "text": "aheader->zone", "parent": 450, "children": [452, 453], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 32}}, {"id": 452, "type": "identifier", "text": "aheader", "parent": 451, "children": [], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 26}}, {"id": 453, "type": "field_identifier", "text": "zone", "parent": 451, "children": [], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 32}}, {"id": 454, "type": "field_identifier", "text": "arenas", "parent": 450, "children": [], "start_point": {"row": 141, "column": 34}, "end_point": {"row": 141, "column": 40}}, {"id": 455, "type": "field_identifier", "text": "isSynchronizedFreeList", "parent": 449, "children": [], "start_point": {"row": 141, "column": 41}, "end_point": {"row": 141, "column": 63}}, {"id": 456, "type": "argument_list", "text": "(kind)", "parent": 448, "children": [457], "start_point": {"row": 141, "column": 63}, "end_point": {"row": 141, "column": 69}}, {"id": 457, "type": "identifier", "text": "kind", "parent": 456, "children": [], "start_point": {"row": 141, "column": 64}, "end_point": {"row": 141, "column": 68}}, {"id": 458, "type": "#endif", "text": "#endif", "parent": 432, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 459, "type": "call_expression", "text": "initUnsynchronized(aheader)", "parent": 422, "children": [460, 461], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 35}}, {"id": 460, "type": "identifier", "text": "initUnsynchronized", "parent": 459, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 26}}, {"id": 461, "type": "argument_list", "text": "(aheader)", "parent": 459, "children": [462], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 35}}, {"id": 462, "type": "identifier", "text": "aheader", "parent": 461, "children": [], "start_point": {"row": 143, "column": 27}, "end_point": {"row": 143, "column": 34}}, {"id": 463, "type": "function_definition", "text": "void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }", "parent": 285, "children": [464, 465], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 155, "column": 5}}, {"id": 464, "type": "primitive_type", "text": "void", "parent": 463, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 8}}, {"id": 465, "type": "function_declarator", "text": "reset(ArenaHeader* aheader)", "parent": 463, "children": [466, 467], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 36}}, {"id": 466, "type": "identifier", "text": "reset", "parent": 465, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 14}}, {"id": 467, "type": "parameter_list", "text": "(ArenaHeader* aheader)", "parent": 465, "children": [468], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 36}}, {"id": 468, "type": "parameter_declaration", "text": "ArenaHeader* aheader", "parent": 467, "children": [469, 470], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 35}}, {"id": 469, "type": "type_identifier", "text": "ArenaHeader", "parent": 468, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 26}}, {"id": 470, "type": "pointer_declarator", "text": "* aheader", "parent": 468, "children": [471, 472], "start_point": {"row": 148, "column": 26}, "end_point": {"row": 148, "column": 35}}, {"id": 471, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 148, "column": 26}, "end_point": {"row": 148, "column": 27}}, {"id": 472, "type": "identifier", "text": "aheader", "parent": 470, "children": [], "start_point": {"row": 148, "column": 28}, "end_point": {"row": 148, "column": 35}}, {"id": 473, "type": "call_expression", "text": "MOZ_ASSERT(isInited)", "parent": 463, "children": [474, 475], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 28}}, {"id": 474, "type": "identifier", "text": "MOZ_ASSERT", "parent": 473, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 18}}, {"id": 475, "type": "argument_list", "text": "(isInited)", "parent": 473, "children": [476], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 28}}, {"id": 476, "type": "identifier", "text": "isInited", "parent": 475, "children": [], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 27}}, {"id": 477, "type": "assignment_expression", "text": "span = aheader->getFirstFreeSpan()", "parent": 463, "children": [478, 479, 480], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 42}}, {"id": 478, "type": "identifier", "text": "span", "parent": 477, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 12}}, {"id": 479, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 14}}, {"id": 480, "type": "call_expression", "text": "aheader->getFirstFreeSpan()", "parent": 477, "children": [481, 484], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 42}}, {"id": 481, "type": "field_expression", "text": "aheader->getFirstFreeSpan", "parent": 480, "children": [482, 483], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 40}}, {"id": 482, "type": "identifier", "text": "aheader", "parent": 481, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 22}}, {"id": 483, "type": "field_identifier", "text": "getFirstFreeSpan", "parent": 481, "children": [], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 40}}, {"id": 484, "type": "argument_list", "text": "()", "parent": 480, "children": [], "start_point": {"row": 150, "column": 40}, "end_point": {"row": 150, "column": 42}}, {"id": 485, "type": "declaration", "text": "uintptr_t arenaAddr = aheader->arenaAddress();", "parent": 463, "children": [486, 487], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 54}}, {"id": 486, "type": "primitive_type", "text": "uintptr_t", "parent": 485, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 17}}, {"id": 487, "type": "init_declarator", "text": "arenaAddr = aheader->arenaAddress()", "parent": 485, "children": [488, 489, 490], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 53}}, {"id": 488, "type": "identifier", "text": "arenaAddr", "parent": 487, "children": [], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 27}}, {"id": 489, "type": "=", "text": "=", "parent": 487, "children": [], "start_point": {"row": 151, "column": 28}, "end_point": {"row": 151, "column": 29}}, {"id": 490, "type": "call_expression", "text": "aheader->arenaAddress()", "parent": 487, "children": [491, 494], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 53}}, {"id": 491, "type": "field_expression", "text": "aheader->arenaAddress", "parent": 490, "children": [492, 493], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 51}}, {"id": 492, "type": "identifier", "text": "aheader", "parent": 491, "children": [], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 37}}, {"id": 493, "type": "field_identifier", "text": "arenaAddress", "parent": 491, "children": [], "start_point": {"row": 151, "column": 39}, "end_point": {"row": 151, "column": 51}}, {"id": 494, "type": "argument_list", "text": "()", "parent": 490, "children": [], "start_point": {"row": 151, "column": 51}, "end_point": {"row": 151, "column": 53}}, {"id": 495, "type": "assignment_expression", "text": "thing = arenaAddr + firstThingOffset", "parent": 463, "children": [496, 497, 498], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 44}}, {"id": 496, "type": "identifier", "text": "thing", "parent": 495, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 13}}, {"id": 497, "type": "=", "text": "=", "parent": 495, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 498, "type": "binary_expression", "text": "arenaAddr + firstThingOffset", "parent": 495, "children": [499, 500, 501], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 44}}, {"id": 499, "type": "identifier", "text": "arenaAddr", "parent": 498, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 25}}, {"id": 500, "type": "+", "text": "+", "parent": 498, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 27}}, {"id": 501, "type": "identifier", "text": "firstThingOffset", "parent": 498, "children": [], "start_point": {"row": 152, "column": 28}, "end_point": {"row": 152, "column": 44}}, {"id": 502, "type": "assignment_expression", "text": "limit = arenaAddr + ArenaSize", "parent": 463, "children": [503, 504, 505], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 37}}, {"id": 503, "type": "identifier", "text": "limit", "parent": 502, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 13}}, {"id": 504, "type": "=", "text": "=", "parent": 502, "children": [], "start_point": {"row": 153, "column": 14}, "end_point": {"row": 153, "column": 15}}, {"id": 505, "type": "binary_expression", "text": "arenaAddr + ArenaSize", "parent": 502, "children": [506, 507, 508], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 37}}, {"id": 506, "type": "identifier", "text": "arenaAddr", "parent": 505, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 25}}, {"id": 507, "type": "+", "text": "+", "parent": 505, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 27}}, {"id": 508, "type": "identifier", "text": "ArenaSize", "parent": 505, "children": [], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 37}}, {"id": 509, "type": "call_expression", "text": "moveForwardIfFree()", "parent": 463, "children": [510, 511], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 27}}, {"id": 510, "type": "identifier", "text": "moveForwardIfFree", "parent": 509, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 25}}, {"id": 511, "type": "argument_list", "text": "()", "parent": 509, "children": [], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 27}}, {"id": 512, "type": "ERROR", "text": "bool done() const", "parent": 285, "children": [513, 514], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 21}}, {"id": 513, "type": "primitive_type", "text": "bool", "parent": 512, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 8}}, {"id": 514, "type": "function_declarator", "text": "done()", "parent": 512, "children": [515, 516], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 15}}, {"id": 515, "type": "identifier", "text": "done", "parent": 514, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 13}}, {"id": 516, "type": "parameter_list", "text": "()", "parent": 514, "children": [], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 15}}, {"id": 517, "type": "return_statement", "text": "return thing == limit;", "parent": 285, "children": [518], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 30}}, {"id": 518, "type": "binary_expression", "text": "thing == limit", "parent": 517, "children": [519, 520, 521], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 29}}, {"id": 519, "type": "identifier", "text": "thing", "parent": 518, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 20}}, {"id": 520, "type": "==", "text": "==", "parent": 518, "children": [], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 23}}, {"id": 521, "type": "identifier", "text": "limit", "parent": 518, "children": [], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 29}}, {"id": 522, "type": "function_definition", "text": "TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }", "parent": 285, "children": [523, 524], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 164, "column": 5}}, {"id": 523, "type": "type_identifier", "text": "TenuredCell", "parent": 522, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 15}}, {"id": 524, "type": "pointer_declarator", "text": "* getCell() const", "parent": 522, "children": [525, 526], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 32}}, {"id": 525, "type": "*", "text": "*", "parent": 524, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 16}}, {"id": 526, "type": "function_declarator", "text": "getCell() const", "parent": 524, "children": [527, 528], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 32}}, {"id": 527, "type": "identifier", "text": "getCell", "parent": 526, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 24}}, {"id": 528, "type": "parameter_list", "text": "()", "parent": 526, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 26}}, {"id": 529, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 522, "children": [530, 531], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 27}}, {"id": 530, "type": "identifier", "text": "MOZ_ASSERT", "parent": 529, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 18}}, {"id": 531, "type": "argument_list", "text": "(!done())", "parent": 529, "children": [532], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 27}}, {"id": 532, "type": "unary_expression", "text": "!done()", "parent": 531, "children": [533, 534], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 26}}, {"id": 533, "type": "!", "text": "!", "parent": 532, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 20}}, {"id": 534, "type": "call_expression", "text": "done()", "parent": 532, "children": [535, 536], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 26}}, {"id": 535, "type": "identifier", "text": "done", "parent": 534, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 24}}, {"id": 536, "type": "argument_list", "text": "()", "parent": 534, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 26}}, {"id": 537, "type": "return_statement", "text": "return reinterpret_cast<TenuredCell*>(thing);", "parent": 522, "children": [538], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 53}}, {"id": 538, "type": "binary_expression", "text": "reinterpret_cast<TenuredCell*>(thing)", "parent": 537, "children": [539, 543, 545, 546], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 52}}, {"id": 539, "type": "binary_expression", "text": "reinterpret_cast<TenuredCell", "parent": 538, "children": [540, 541, 542], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 43}}, {"id": 540, "type": "identifier", "text": "reinterpret_cast", "parent": 539, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 31}}, {"id": 541, "type": "<", "text": "<", "parent": 539, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 32}}, {"id": 542, "type": "identifier", "text": "TenuredCell", "parent": 539, "children": [], "start_point": {"row": 163, "column": 32}, "end_point": {"row": 163, "column": 43}}, {"id": 543, "type": "ERROR", "text": "*", "parent": 538, "children": [544], "start_point": {"row": 163, "column": 43}, "end_point": {"row": 163, "column": 44}}, {"id": 544, "type": "*", "text": "*", "parent": 543, "children": [], "start_point": {"row": 163, "column": 43}, "end_point": {"row": 163, "column": 44}}, {"id": 545, "type": ">", "text": ">", "parent": 538, "children": [], "start_point": {"row": 163, "column": 44}, "end_point": {"row": 163, "column": 45}}, {"id": 546, "type": "parenthesized_expression", "text": "(thing)", "parent": 538, "children": [547], "start_point": {"row": 163, "column": 45}, "end_point": {"row": 163, "column": 52}}, {"id": 547, "type": "identifier", "text": "thing", "parent": 546, "children": [], "start_point": {"row": 163, "column": 46}, "end_point": {"row": 163, "column": 51}}, {"id": 548, "type": "ERROR", "text": "template<typename T> T* get() const", "parent": 285, "children": [549], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 39}}, {"id": 549, "type": "binary_expression", "text": "template<typename T> T* get()", "parent": 548, "children": [550, 554, 556, 557], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 33}}, {"id": 550, "type": "binary_expression", "text": "template<typename", "parent": 549, "children": [551, 552, 553], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 21}}, {"id": 551, "type": "identifier", "text": "template", "parent": 550, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 12}}, {"id": 552, "type": "<", "text": "<", "parent": 550, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 13}}, {"id": 553, "type": "identifier", "text": "typename", "parent": 550, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 21}}, {"id": 554, "type": "ERROR", "text": "T", "parent": 549, "children": [555], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 23}}, {"id": 555, "type": "identifier", "text": "T", "parent": 554, "children": [], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 23}}, {"id": 556, "type": ">", "text": ">", "parent": 549, "children": [], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 24}}, {"id": 557, "type": "binary_expression", "text": "T* get()", "parent": 549, "children": [558, 559, 560], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 33}}, {"id": 558, "type": "identifier", "text": "T", "parent": 557, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 26}}, {"id": 559, "type": "*", "text": "*", "parent": 557, "children": [], "start_point": {"row": 166, "column": 26}, "end_point": {"row": 166, "column": 27}}, {"id": 560, "type": "call_expression", "text": "get()", "parent": 557, "children": [561, 562], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 33}}, {"id": 561, "type": "identifier", "text": "get", "parent": 560, "children": [], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 31}}, {"id": 562, "type": "argument_list", "text": "()", "parent": 560, "children": [], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 33}}, {"id": 563, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 285, "children": [564, 565], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 27}}, {"id": 564, "type": "identifier", "text": "MOZ_ASSERT", "parent": 563, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 18}}, {"id": 565, "type": "argument_list", "text": "(!done())", "parent": 563, "children": [566], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 167, "column": 27}}, {"id": 566, "type": "unary_expression", "text": "!done()", "parent": 565, "children": [567, 568], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 26}}, {"id": 567, "type": "!", "text": "!", "parent": 566, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 20}}, {"id": 568, "type": "call_expression", "text": "done()", "parent": 566, "children": [569, 570], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 26}}, {"id": 569, "type": "identifier", "text": "done", "parent": 568, "children": [], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 24}}, {"id": 570, "type": "argument_list", "text": "()", "parent": 568, "children": [], "start_point": {"row": 167, "column": 24}, "end_point": {"row": 167, "column": 26}}, {"id": 571, "type": "return_statement", "text": "return static_cast<T*>(getCell());", "parent": 285, "children": [572], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 42}}, {"id": 572, "type": "binary_expression", "text": "static_cast<T*>(getCell())", "parent": 571, "children": [573, 577, 579, 580], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 41}}, {"id": 573, "type": "binary_expression", "text": "static_cast<T", "parent": 572, "children": [574, 575, 576], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 28}}, {"id": 574, "type": "identifier", "text": "static_cast", "parent": 573, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 26}}, {"id": 575, "type": "<", "text": "<", "parent": 573, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 27}}, {"id": 576, "type": "identifier", "text": "T", "parent": 573, "children": [], "start_point": {"row": 168, "column": 27}, "end_point": {"row": 168, "column": 28}}, {"id": 577, "type": "ERROR", "text": "*", "parent": 572, "children": [578], "start_point": {"row": 168, "column": 28}, "end_point": {"row": 168, "column": 29}}, {"id": 578, "type": "*", "text": "*", "parent": 577, "children": [], "start_point": {"row": 168, "column": 28}, "end_point": {"row": 168, "column": 29}}, {"id": 579, "type": ">", "text": ">", "parent": 572, "children": [], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 30}}, {"id": 580, "type": "parenthesized_expression", "text": "(getCell())", "parent": 572, "children": [581], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 41}}, {"id": 581, "type": "call_expression", "text": "getCell()", "parent": 580, "children": [582, 583], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 40}}, {"id": 582, "type": "identifier", "text": "getCell", "parent": 581, "children": [], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 38}}, {"id": 583, "type": "argument_list", "text": "()", "parent": 581, "children": [], "start_point": {"row": 168, "column": 38}, "end_point": {"row": 168, "column": 40}}, {"id": 584, "type": "function_definition", "text": "void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }", "parent": 285, "children": [585, 586], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 176, "column": 5}}, {"id": 585, "type": "primitive_type", "text": "void", "parent": 584, "children": [], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 8}}, {"id": 586, "type": "function_declarator", "text": "next()", "parent": 584, "children": [587, 588], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 15}}, {"id": 587, "type": "identifier", "text": "next", "parent": 586, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 13}}, {"id": 588, "type": "parameter_list", "text": "()", "parent": 586, "children": [], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 15}}, {"id": 589, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 584, "children": [590, 591], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 27}}, {"id": 590, "type": "identifier", "text": "MOZ_ASSERT", "parent": 589, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 18}}, {"id": 591, "type": "argument_list", "text": "(!done())", "parent": 589, "children": [592], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 27}}, {"id": 592, "type": "unary_expression", "text": "!done()", "parent": 591, "children": [593, 594], "start_point": {"row": 172, "column": 19}, "end_point": {"row": 172, "column": 26}}, {"id": 593, "type": "!", "text": "!", "parent": 592, "children": [], "start_point": {"row": 172, "column": 19}, "end_point": {"row": 172, "column": 20}}, {"id": 594, "type": "call_expression", "text": "done()", "parent": 592, "children": [595, 596], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 26}}, {"id": 595, "type": "identifier", "text": "done", "parent": 594, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 24}}, {"id": 596, "type": "argument_list", "text": "()", "parent": 594, "children": [], "start_point": {"row": 172, "column": 24}, "end_point": {"row": 172, "column": 26}}, {"id": 597, "type": "assignment_expression", "text": "thing += thingSize", "parent": 584, "children": [598, 599, 600], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 26}}, {"id": 598, "type": "identifier", "text": "thing", "parent": 597, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 13}}, {"id": 599, "type": "+=", "text": "+=", "parent": 597, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 16}}, {"id": 600, "type": "identifier", "text": "thingSize", "parent": 597, "children": [], "start_point": {"row": 173, "column": 17}, "end_point": {"row": 173, "column": 26}}, {"id": 601, "type": "if_statement", "text": "if (thing < limit)\n moveForwardIfFree();", "parent": 584, "children": [602], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 175, "column": 32}}, {"id": 602, "type": "parenthesized_expression", "text": "(thing < limit)", "parent": 601, "children": [603], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 26}}, {"id": 603, "type": "binary_expression", "text": "thing < limit", "parent": 602, "children": [604, 605, 606], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 25}}, {"id": 604, "type": "identifier", "text": "thing", "parent": 603, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 17}}, {"id": 605, "type": "<", "text": "<", "parent": 603, "children": [], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 19}}, {"id": 606, "type": "identifier", "text": "limit", "parent": 603, "children": [], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 25}}, {"id": 607, "type": "call_expression", "text": "moveForwardIfFree()", "parent": 601, "children": [608, 609], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 31}}, {"id": 608, "type": "identifier", "text": "moveForwardIfFree", "parent": 607, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 29}}, {"id": 609, "type": "argument_list", "text": "()", "parent": 607, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 31}}, {"id": 610, "type": "binary_expression", "text": "template<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const", "parent": 15, "children": [611, 625, 626], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 181, "column": 40}}, {"id": 611, "type": "binary_expression", "text": "template<>\nJSObject*\nArenaCellIterImpl::get<JSObject", "parent": 610, "children": [612, 621, 623, 624], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 181, "column": 31}}, {"id": 612, "type": "binary_expression", "text": "template<>\nJSObject*\nArenaCellIterImpl", "parent": 611, "children": [613, 614, 615, 617], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 181, "column": 17}}, {"id": 613, "type": "identifier", "text": "template", "parent": 612, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 8}}, {"id": 614, "type": "<", "text": "<", "parent": 612, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 9}}, {"id": 615, "type": "ERROR", "text": ">", "parent": 612, "children": [616], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 10}}, {"id": 616, "type": ">", "text": ">", "parent": 615, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 10}}, {"id": 617, "type": "binary_expression", "text": "JSObject*\nArenaCellIterImpl", "parent": 612, "children": [618, 619, 620], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 181, "column": 17}}, {"id": 618, "type": "identifier", "text": "JSObject", "parent": 617, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 8}}, {"id": 619, "type": "*", "text": "*", "parent": 617, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 9}}, {"id": 620, "type": "identifier", "text": "ArenaCellIterImpl", "parent": 617, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 17}}, {"id": 621, "type": "ERROR", "text": "::get", "parent": 611, "children": [622], "start_point": {"row": 181, "column": 17}, "end_point": {"row": 181, "column": 22}}, {"id": 622, "type": "identifier", "text": "get", "parent": 621, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 22}}, {"id": 623, "type": "<", "text": "<", "parent": 611, "children": [], "start_point": {"row": 181, "column": 22}, "end_point": {"row": 181, "column": 23}}, {"id": 624, "type": "identifier", "text": "JSObject", "parent": 611, "children": [], "start_point": {"row": 181, "column": 23}, "end_point": {"row": 181, "column": 31}}, {"id": 625, "type": ">", "text": ">", "parent": 610, "children": [], "start_point": {"row": 181, "column": 31}, "end_point": {"row": 181, "column": 32}}, {"id": 626, "type": "cast_expression", "text": "() const", "parent": 610, "children": [627], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 181, "column": 40}}, {"id": 627, "type": "type_descriptor", "text": "", "parent": 626, "children": [628], "start_point": {"row": 181, "column": 33}, "end_point": {"row": 181, "column": 33}}, {"id": 628, "type": "type_identifier", "text": "", "parent": 627, "children": [], "start_point": {"row": 181, "column": 33}, "end_point": {"row": 181, "column": 33}}, {"id": 629, "type": "function_definition", "text": "class ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n}", "parent": 15, "children": [630, 631], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 190, "column": 1}}, {"id": 630, "type": "identifier", "text": "ArenaCellIterUnderGC", "parent": 629, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 26}}, {"id": 631, "type": "ERROR", "text": ": public ArenaCellIterImpl", "parent": 629, "children": [632], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 53}}, {"id": 632, "type": "identifier", "text": "ArenaCellIterImpl", "parent": 631, "children": [], "start_point": {"row": 183, "column": 36}, "end_point": {"row": 183, "column": 53}}, {"id": 633, "type": "labeled_statement", "text": "public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }", "parent": 629, "children": [634], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 189, "column": 5}}, {"id": 634, "type": "ERROR", "text": "explicit ArenaCellIterUnderGC(ArenaHeader* aheader)", "parent": 633, "children": [635, 636], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 55}}, {"id": 635, "type": "type_identifier", "text": "explicit", "parent": 634, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 12}}, {"id": 636, "type": "function_declarator", "text": "ArenaCellIterUnderGC(ArenaHeader* aheader)", "parent": 634, "children": [637, 638], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 55}}, {"id": 637, "type": "identifier", "text": "ArenaCellIterUnderGC", "parent": 636, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 33}}, {"id": 638, "type": "parameter_list", "text": "(ArenaHeader* aheader)", "parent": 636, "children": [639], "start_point": {"row": 186, "column": 33}, "end_point": {"row": 186, "column": 55}}, {"id": 639, "type": "parameter_declaration", "text": "ArenaHeader* aheader", "parent": 638, "children": [640, 641], "start_point": {"row": 186, "column": 34}, "end_point": {"row": 186, "column": 54}}, {"id": 640, "type": "type_identifier", "text": "ArenaHeader", "parent": 639, "children": [], "start_point": {"row": 186, "column": 34}, "end_point": {"row": 186, "column": 45}}, {"id": 641, "type": "pointer_declarator", "text": "* aheader", "parent": 639, "children": [642, 643], "start_point": {"row": 186, "column": 45}, "end_point": {"row": 186, "column": 54}}, {"id": 642, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 186, "column": 45}, "end_point": {"row": 186, "column": 46}}, {"id": 643, "type": "identifier", "text": "aheader", "parent": 641, "children": [], "start_point": {"row": 186, "column": 47}, "end_point": {"row": 186, "column": 54}}, {"id": 644, "type": "call_expression", "text": "MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy())", "parent": 633, "children": [645, 646], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 71}}, {"id": 645, "type": "identifier", "text": "MOZ_ASSERT", "parent": 644, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 18}}, {"id": 646, "type": "argument_list", "text": "(aheader->zone->runtimeFromAnyThread()->isHeapBusy())", "parent": 644, "children": [647], "start_point": {"row": 187, "column": 18}, "end_point": {"row": 187, "column": 71}}, {"id": 647, "type": "call_expression", "text": "aheader->zone->runtimeFromAnyThread()->isHeapBusy()", "parent": 646, "children": [648, 657], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 70}}, {"id": 648, "type": "field_expression", "text": "aheader->zone->runtimeFromAnyThread()->isHeapBusy", "parent": 647, "children": [649, 656], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 68}}, {"id": 649, "type": "call_expression", "text": "aheader->zone->runtimeFromAnyThread()", "parent": 648, "children": [650, 655], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 56}}, {"id": 650, "type": "field_expression", "text": "aheader->zone->runtimeFromAnyThread", "parent": 649, "children": [651, 654], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 54}}, {"id": 651, "type": "field_expression", "text": "aheader->zone", "parent": 650, "children": [652, 653], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 32}}, {"id": 652, "type": "identifier", "text": "aheader", "parent": 651, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 26}}, {"id": 653, "type": "field_identifier", "text": "zone", "parent": 651, "children": [], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 32}}, {"id": 654, "type": "field_identifier", "text": "runtimeFromAnyThread", "parent": 650, "children": [], "start_point": {"row": 187, "column": 34}, "end_point": {"row": 187, "column": 54}}, {"id": 655, "type": "argument_list", "text": "()", "parent": 649, "children": [], "start_point": {"row": 187, "column": 54}, "end_point": {"row": 187, "column": 56}}, {"id": 656, "type": "field_identifier", "text": "isHeapBusy", "parent": 648, "children": [], "start_point": {"row": 187, "column": 58}, "end_point": {"row": 187, "column": 68}}, {"id": 657, "type": "argument_list", "text": "()", "parent": 647, "children": [], "start_point": {"row": 187, "column": 68}, "end_point": {"row": 187, "column": 70}}, {"id": 658, "type": "call_expression", "text": "init(aheader)", "parent": 633, "children": [659, 660], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 21}}, {"id": 659, "type": "identifier", "text": "init", "parent": 658, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 12}}, {"id": 660, "type": "argument_list", "text": "(aheader)", "parent": 658, "children": [661], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 21}}, {"id": 661, "type": "identifier", "text": "aheader", "parent": 660, "children": [], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 20}}, {"id": 662, "type": "function_definition", "text": "class ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }", "parent": 15, "children": [663, 664], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 197, "column": 5}}, {"id": 663, "type": "identifier", "text": "ArenaCellIterUnderFinalize", "parent": 662, "children": [], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 32}}, {"id": 664, "type": "ERROR", "text": ": public ArenaCellIterImpl", "parent": 662, "children": [665], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 59}}, {"id": 665, "type": "identifier", "text": "ArenaCellIterImpl", "parent": 664, "children": [], "start_point": {"row": 192, "column": 42}, "end_point": {"row": 192, "column": 59}}, {"id": 666, "type": "labeled_statement", "text": "public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);", "parent": 662, "children": [667], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 196, "column": 36}}, {"id": 667, "type": "declaration", "text": "explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);", "parent": 666, "children": [668, 669, 678], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 196, "column": 36}}, {"id": 668, "type": "type_identifier", "text": "explicit", "parent": 667, "children": [], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 12}}, {"id": 669, "type": "ERROR", "text": "ArenaCellIterUnderFinalize(ArenaHeader* aheader) {", "parent": 667, "children": [670], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 63}}, {"id": 670, "type": "function_declarator", "text": "ArenaCellIterUnderFinalize(ArenaHeader* aheader)", "parent": 669, "children": [671, 672], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 61}}, {"id": 671, "type": "identifier", "text": "ArenaCellIterUnderFinalize", "parent": 670, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 39}}, {"id": 672, "type": "parameter_list", "text": "(ArenaHeader* aheader)", "parent": 670, "children": [673], "start_point": {"row": 195, "column": 39}, "end_point": {"row": 195, "column": 61}}, {"id": 673, "type": "parameter_declaration", "text": "ArenaHeader* aheader", "parent": 672, "children": [674, 675], "start_point": {"row": 195, "column": 40}, "end_point": {"row": 195, "column": 60}}, {"id": 674, "type": "type_identifier", "text": "ArenaHeader", "parent": 673, "children": [], "start_point": {"row": 195, "column": 40}, "end_point": {"row": 195, "column": 51}}, {"id": 675, "type": "pointer_declarator", "text": "* aheader", "parent": 673, "children": [676, 677], "start_point": {"row": 195, "column": 51}, "end_point": {"row": 195, "column": 60}}, {"id": 676, "type": "*", "text": "*", "parent": 675, "children": [], "start_point": {"row": 195, "column": 51}, "end_point": {"row": 195, "column": 52}}, {"id": 677, "type": "identifier", "text": "aheader", "parent": 675, "children": [], "start_point": {"row": 195, "column": 53}, "end_point": {"row": 195, "column": 60}}, {"id": 678, "type": "function_declarator", "text": "initUnsynchronized(aheader)", "parent": 667, "children": [679, 680], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 35}}, {"id": 679, "type": "identifier", "text": "initUnsynchronized", "parent": 678, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 26}}, {"id": 680, "type": "parameter_list", "text": "(aheader)", "parent": 678, "children": [681], "start_point": {"row": 196, "column": 26}, "end_point": {"row": 196, "column": 35}}, {"id": 681, "type": "parameter_declaration", "text": "aheader", "parent": 680, "children": [682], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 34}}, {"id": 682, "type": "type_identifier", "text": "aheader", "parent": 681, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 34}}, {"id": 683, "type": "function_definition", "text": "class ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n}", "parent": 0, "children": [684], "start_point": {"row": 200, "column": 0}, "end_point": {"row": 240, "column": 1}}, {"id": 684, "type": "identifier", "text": "ZoneCellIterImpl", "parent": 683, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 22}}, {"id": 685, "type": "declaration", "text": "ArenaIter arenaIter;", "parent": 683, "children": [686, 687], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 24}}, {"id": 686, "type": "type_identifier", "text": "ArenaIter", "parent": 685, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 13}}, {"id": 687, "type": "identifier", "text": "arenaIter", "parent": 685, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 23}}, {"id": 688, "type": "declaration", "text": "ArenaCellIterImpl cellIter;", "parent": 683, "children": [689, 690], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 31}}, {"id": 689, "type": "type_identifier", "text": "ArenaCellIterImpl", "parent": 688, "children": [], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 21}}, {"id": 690, "type": "identifier", "text": "cellIter", "parent": 688, "children": [], "start_point": {"row": 203, "column": 22}, "end_point": {"row": 203, "column": 30}}, {"id": 691, "type": "labeled_statement", "text": "protected:\n ZoneCellIterImpl()", "parent": 683, "children": [], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 206, "column": 22}}, {"id": 692, "type": "call_expression", "text": "ZoneCellIterImpl()", "parent": 691, "children": [693, 694], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 22}}, {"id": 693, "type": "identifier", "text": "ZoneCellIterImpl", "parent": 692, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 20}}, {"id": 694, "type": "argument_list", "text": "()", "parent": 692, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 22}}, {"id": 695, "type": "function_definition", "text": "void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }", "parent": 683, "children": [696, 697], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 213, "column": 5}}, {"id": 696, "type": "primitive_type", "text": "void", "parent": 695, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 8}}, {"id": 697, "type": "function_declarator", "text": "init(JS::Zone* zone, AllocKind kind)", "parent": 695, "children": [698, 699], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 45}}, {"id": 698, "type": "identifier", "text": "init", "parent": 697, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 13}}, {"id": 699, "type": "parameter_list", "text": "(JS::Zone* zone, AllocKind kind)", "parent": 697, "children": [700, 707], "start_point": {"row": 208, "column": 13}, "end_point": {"row": 208, "column": 45}}, {"id": 700, "type": "parameter_declaration", "text": "JS::Zone* zone", "parent": 699, "children": [701, 702, 704], "start_point": {"row": 208, "column": 14}, "end_point": {"row": 208, "column": 28}}, {"id": 701, "type": "type_identifier", "text": "JS", "parent": 700, "children": [], "start_point": {"row": 208, "column": 14}, "end_point": {"row": 208, "column": 16}}, {"id": 702, "type": "ERROR", "text": "::Zone", "parent": 700, "children": [703], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 22}}, {"id": 703, "type": "identifier", "text": "Zone", "parent": 702, "children": [], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 22}}, {"id": 704, "type": "pointer_declarator", "text": "* zone", "parent": 700, "children": [705, 706], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 28}}, {"id": 705, "type": "*", "text": "*", "parent": 704, "children": [], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 23}}, {"id": 706, "type": "identifier", "text": "zone", "parent": 704, "children": [], "start_point": {"row": 208, "column": 24}, "end_point": {"row": 208, "column": 28}}, {"id": 707, "type": "parameter_declaration", "text": "AllocKind kind", "parent": 699, "children": [708, 709], "start_point": {"row": 208, "column": 30}, "end_point": {"row": 208, "column": 44}}, {"id": 708, "type": "type_identifier", "text": "AllocKind", "parent": 707, "children": [], "start_point": {"row": 208, "column": 30}, "end_point": {"row": 208, "column": 39}}, {"id": 709, "type": "identifier", "text": "kind", "parent": 707, "children": [], "start_point": {"row": 208, "column": 40}, "end_point": {"row": 208, "column": 44}}, {"id": 710, "type": "call_expression", "text": "MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind))", "parent": 695, "children": [711, 712], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 61}}, {"id": 711, "type": "identifier", "text": "MOZ_ASSERT", "parent": 710, "children": [], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 18}}, {"id": 712, "type": "argument_list", "text": "(zone->arenas.isSynchronizedFreeList(kind))", "parent": 710, "children": [713], "start_point": {"row": 209, "column": 18}, "end_point": {"row": 209, "column": 61}}, {"id": 713, "type": "call_expression", "text": "zone->arenas.isSynchronizedFreeList(kind)", "parent": 712, "children": [714, 719], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 60}}, {"id": 714, "type": "field_expression", "text": "zone->arenas.isSynchronizedFreeList", "parent": 713, "children": [715, 718], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 54}}, {"id": 715, "type": "field_expression", "text": "zone->arenas", "parent": 714, "children": [716, 717], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 31}}, {"id": 716, "type": "identifier", "text": "zone", "parent": 715, "children": [], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 23}}, {"id": 717, "type": "field_identifier", "text": "arenas", "parent": 715, "children": [], "start_point": {"row": 209, "column": 25}, "end_point": {"row": 209, "column": 31}}, {"id": 718, "type": "field_identifier", "text": "isSynchronizedFreeList", "parent": 714, "children": [], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 54}}, {"id": 719, "type": "argument_list", "text": "(kind)", "parent": 713, "children": [720], "start_point": {"row": 209, "column": 54}, "end_point": {"row": 209, "column": 60}}, {"id": 720, "type": "identifier", "text": "kind", "parent": 719, "children": [], "start_point": {"row": 209, "column": 55}, "end_point": {"row": 209, "column": 59}}, {"id": 721, "type": "call_expression", "text": "arenaIter.init(zone, kind)", "parent": 695, "children": [722, 725], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 34}}, {"id": 722, "type": "field_expression", "text": "arenaIter.init", "parent": 721, "children": [723, 724], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 22}}, {"id": 723, "type": "identifier", "text": "arenaIter", "parent": 722, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 17}}, {"id": 724, "type": "field_identifier", "text": "init", "parent": 722, "children": [], "start_point": {"row": 210, "column": 18}, "end_point": {"row": 210, "column": 22}}, {"id": 725, "type": "argument_list", "text": "(zone, kind)", "parent": 721, "children": [726, 727], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 34}}, {"id": 726, "type": "identifier", "text": "zone", "parent": 725, "children": [], "start_point": {"row": 210, "column": 23}, "end_point": {"row": 210, "column": 27}}, {"id": 727, "type": "identifier", "text": "kind", "parent": 725, "children": [], "start_point": {"row": 210, "column": 29}, "end_point": {"row": 210, "column": 33}}, {"id": 728, "type": "if_statement", "text": "if (!arenaIter.done())\n cellIter.init(arenaIter.get());", "parent": 695, "children": [729], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 212, "column": 43}}, {"id": 729, "type": "parenthesized_expression", "text": "(!arenaIter.done())", "parent": 728, "children": [730], "start_point": {"row": 211, "column": 11}, "end_point": {"row": 211, "column": 30}}, {"id": 730, "type": "unary_expression", "text": "!arenaIter.done()", "parent": 729, "children": [731, 732], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 29}}, {"id": 731, "type": "!", "text": "!", "parent": 730, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 13}}, {"id": 732, "type": "call_expression", "text": "arenaIter.done()", "parent": 730, "children": [733, 736], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 29}}, {"id": 733, "type": "field_expression", "text": "arenaIter.done", "parent": 732, "children": [734, 735], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 27}}, {"id": 734, "type": "identifier", "text": "arenaIter", "parent": 733, "children": [], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 22}}, {"id": 735, "type": "field_identifier", "text": "done", "parent": 733, "children": [], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 27}}, {"id": 736, "type": "argument_list", "text": "()", "parent": 732, "children": [], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 29}}, {"id": 737, "type": "call_expression", "text": "cellIter.init(arenaIter.get())", "parent": 728, "children": [738, 741], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 42}}, {"id": 738, "type": "field_expression", "text": "cellIter.init", "parent": 737, "children": [739, 740], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 25}}, {"id": 739, "type": "identifier", "text": "cellIter", "parent": 738, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 20}}, {"id": 740, "type": "field_identifier", "text": "init", "parent": 738, "children": [], "start_point": {"row": 212, "column": 21}, "end_point": {"row": 212, "column": 25}}, {"id": 741, "type": "argument_list", "text": "(arenaIter.get())", "parent": 737, "children": [742], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 42}}, {"id": 742, "type": "call_expression", "text": "arenaIter.get()", "parent": 741, "children": [743, 746], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 41}}, {"id": 743, "type": "field_expression", "text": "arenaIter.get", "parent": 742, "children": [744, 745], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 39}}, {"id": 744, "type": "identifier", "text": "arenaIter", "parent": 743, "children": [], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 35}}, {"id": 745, "type": "field_identifier", "text": "get", "parent": 743, "children": [], "start_point": {"row": 212, "column": 36}, "end_point": {"row": 212, "column": 39}}, {"id": 746, "type": "argument_list", "text": "()", "parent": 742, "children": [], "start_point": {"row": 212, "column": 39}, "end_point": {"row": 212, "column": 41}}, {"id": 747, "type": "labeled_statement", "text": "public:\n bool done() const {\n return arenaIter.done();\n }", "parent": 683, "children": [748], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 218, "column": 5}}, {"id": 748, "type": "ERROR", "text": "bool done() const", "parent": 747, "children": [749, 750], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 21}}, {"id": 749, "type": "primitive_type", "text": "bool", "parent": 748, "children": [], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 8}}, {"id": 750, "type": "function_declarator", "text": "done() const", "parent": 748, "children": [751, 752], "start_point": {"row": 216, "column": 9}, "end_point": {"row": 216, "column": 21}}, {"id": 751, "type": "identifier", "text": "done", "parent": 750, "children": [], "start_point": {"row": 216, "column": 9}, "end_point": {"row": 216, "column": 13}}, {"id": 752, "type": "parameter_list", "text": "()", "parent": 750, "children": [], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 15}}, {"id": 753, "type": "return_statement", "text": "return arenaIter.done();", "parent": 747, "children": [754], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 32}}, {"id": 754, "type": "call_expression", "text": "arenaIter.done()", "parent": 753, "children": [755, 758], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 31}}, {"id": 755, "type": "field_expression", "text": "arenaIter.done", "parent": 754, "children": [756, 757], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 29}}, {"id": 756, "type": "identifier", "text": "arenaIter", "parent": 755, "children": [], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 24}}, {"id": 757, "type": "field_identifier", "text": "done", "parent": 755, "children": [], "start_point": {"row": 217, "column": 25}, "end_point": {"row": 217, "column": 29}}, {"id": 758, "type": "argument_list", "text": "()", "parent": 754, "children": [], "start_point": {"row": 217, "column": 29}, "end_point": {"row": 217, "column": 31}}, {"id": 759, "type": "ERROR", "text": "template<typename T> T* get() const", "parent": 683, "children": [760], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 39}}, {"id": 760, "type": "binary_expression", "text": "template<typename T> T* get()", "parent": 759, "children": [761, 765, 767, 768], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 33}}, {"id": 761, "type": "binary_expression", "text": "template<typename", "parent": 760, "children": [762, 763, 764], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 21}}, {"id": 762, "type": "identifier", "text": "template", "parent": 761, "children": [], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 12}}, {"id": 763, "type": "<", "text": "<", "parent": 761, "children": [], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 13}}, {"id": 764, "type": "identifier", "text": "typename", "parent": 761, "children": [], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 21}}, {"id": 765, "type": "ERROR", "text": "T", "parent": 760, "children": [766], "start_point": {"row": 220, "column": 22}, "end_point": {"row": 220, "column": 23}}, {"id": 766, "type": "identifier", "text": "T", "parent": 765, "children": [], "start_point": {"row": 220, "column": 22}, "end_point": {"row": 220, "column": 23}}, {"id": 767, "type": ">", "text": ">", "parent": 760, "children": [], "start_point": {"row": 220, "column": 23}, "end_point": {"row": 220, "column": 24}}, {"id": 768, "type": "binary_expression", "text": "T* get()", "parent": 760, "children": [769, 770, 771], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 33}}, {"id": 769, "type": "identifier", "text": "T", "parent": 768, "children": [], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 26}}, {"id": 770, "type": "*", "text": "*", "parent": 768, "children": [], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 27}}, {"id": 771, "type": "call_expression", "text": "get()", "parent": 768, "children": [772, 773], "start_point": {"row": 220, "column": 28}, "end_point": {"row": 220, "column": 33}}, {"id": 772, "type": "identifier", "text": "get", "parent": 771, "children": [], "start_point": {"row": 220, "column": 28}, "end_point": {"row": 220, "column": 31}}, {"id": 773, "type": "argument_list", "text": "()", "parent": 771, "children": [], "start_point": {"row": 220, "column": 31}, "end_point": {"row": 220, "column": 33}}, {"id": 774, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 683, "children": [775, 776], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 27}}, {"id": 775, "type": "identifier", "text": "MOZ_ASSERT", "parent": 774, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 18}}, {"id": 776, "type": "argument_list", "text": "(!done())", "parent": 774, "children": [777], "start_point": {"row": 221, "column": 18}, "end_point": {"row": 221, "column": 27}}, {"id": 777, "type": "unary_expression", "text": "!done()", "parent": 776, "children": [778, 779], "start_point": {"row": 221, "column": 19}, "end_point": {"row": 221, "column": 26}}, {"id": 778, "type": "!", "text": "!", "parent": 777, "children": [], "start_point": {"row": 221, "column": 19}, "end_point": {"row": 221, "column": 20}}, {"id": 779, "type": "call_expression", "text": "done()", "parent": 777, "children": [780, 781], "start_point": {"row": 221, "column": 20}, "end_point": {"row": 221, "column": 26}}, {"id": 780, "type": "identifier", "text": "done", "parent": 779, "children": [], "start_point": {"row": 221, "column": 20}, "end_point": {"row": 221, "column": 24}}, {"id": 781, "type": "argument_list", "text": "()", "parent": 779, "children": [], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 26}}, {"id": 782, "type": "return_statement", "text": "return cellIter.get<T>();", "parent": 683, "children": [783], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 33}}, {"id": 783, "type": "binary_expression", "text": "cellIter.get<T>()", "parent": 782, "children": [784, 790, 791], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 32}}, {"id": 784, "type": "binary_expression", "text": "cellIter.get<T", "parent": 783, "children": [785, 788, 789], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 29}}, {"id": 785, "type": "field_expression", "text": "cellIter.get", "parent": 784, "children": [786, 787], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 27}}, {"id": 786, "type": "identifier", "text": "cellIter", "parent": 785, "children": [], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 23}}, {"id": 787, "type": "field_identifier", "text": "get", "parent": 785, "children": [], "start_point": {"row": 222, "column": 24}, "end_point": {"row": 222, "column": 27}}, {"id": 788, "type": "<", "text": "<", "parent": 784, "children": [], "start_point": {"row": 222, "column": 27}, "end_point": {"row": 222, "column": 28}}, {"id": 789, "type": "identifier", "text": "T", "parent": 784, "children": [], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 29}}, {"id": 790, "type": ">", "text": ">", "parent": 783, "children": [], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 30}}, {"id": 791, "type": "parenthesized_expression", "text": "()", "parent": 783, "children": [792], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 32}}, {"id": 792, "type": "identifier", "text": "", "parent": 791, "children": [], "start_point": {"row": 222, "column": 31}, "end_point": {"row": 222, "column": 31}}, {"id": 793, "type": "function_definition", "text": "Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }", "parent": 683, "children": [794, 795], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 228, "column": 5}}, {"id": 794, "type": "type_identifier", "text": "Cell", "parent": 793, "children": [], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 8}}, {"id": 795, "type": "pointer_declarator", "text": "* getCell() const", "parent": 793, "children": [796, 797], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 25}}, {"id": 796, "type": "*", "text": "*", "parent": 795, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 9}}, {"id": 797, "type": "function_declarator", "text": "getCell() const", "parent": 795, "children": [798, 799], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 25}}, {"id": 798, "type": "identifier", "text": "getCell", "parent": 797, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 17}}, {"id": 799, "type": "parameter_list", "text": "()", "parent": 797, "children": [], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 19}}, {"id": 800, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 793, "children": [801, 802], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 27}}, {"id": 801, "type": "identifier", "text": "MOZ_ASSERT", "parent": 800, "children": [], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 18}}, {"id": 802, "type": "argument_list", "text": "(!done())", "parent": 800, "children": [803], "start_point": {"row": 226, "column": 18}, "end_point": {"row": 226, "column": 27}}, {"id": 803, "type": "unary_expression", "text": "!done()", "parent": 802, "children": [804, 805], "start_point": {"row": 226, "column": 19}, "end_point": {"row": 226, "column": 26}}, {"id": 804, "type": "!", "text": "!", "parent": 803, "children": [], "start_point": {"row": 226, "column": 19}, "end_point": {"row": 226, "column": 20}}, {"id": 805, "type": "call_expression", "text": "done()", "parent": 803, "children": [806, 807], "start_point": {"row": 226, "column": 20}, "end_point": {"row": 226, "column": 26}}, {"id": 806, "type": "identifier", "text": "done", "parent": 805, "children": [], "start_point": {"row": 226, "column": 20}, "end_point": {"row": 226, "column": 24}}, {"id": 807, "type": "argument_list", "text": "()", "parent": 805, "children": [], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 26}}, {"id": 808, "type": "return_statement", "text": "return cellIter.getCell();", "parent": 793, "children": [809], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 34}}, {"id": 809, "type": "call_expression", "text": "cellIter.getCell()", "parent": 808, "children": [810, 813], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 33}}, {"id": 810, "type": "field_expression", "text": "cellIter.getCell", "parent": 809, "children": [811, 812], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 31}}, {"id": 811, "type": "identifier", "text": "cellIter", "parent": 810, "children": [], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 23}}, {"id": 812, "type": "field_identifier", "text": "getCell", "parent": 810, "children": [], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 31}}, {"id": 813, "type": "argument_list", "text": "()", "parent": 809, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 33}}, {"id": 814, "type": "function_definition", "text": "void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }", "parent": 683, "children": [815, 816], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 239, "column": 5}}, {"id": 815, "type": "primitive_type", "text": "void", "parent": 814, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 8}}, {"id": 816, "type": "function_declarator", "text": "next()", "parent": 814, "children": [817, 818], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 15}}, {"id": 817, "type": "identifier", "text": "next", "parent": 816, "children": [], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 13}}, {"id": 818, "type": "parameter_list", "text": "()", "parent": 816, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 15}}, {"id": 819, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 814, "children": [820, 821], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 27}}, {"id": 820, "type": "identifier", "text": "MOZ_ASSERT", "parent": 819, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 18}}, {"id": 821, "type": "argument_list", "text": "(!done())", "parent": 819, "children": [822], "start_point": {"row": 231, "column": 18}, "end_point": {"row": 231, "column": 27}}, {"id": 822, "type": "unary_expression", "text": "!done()", "parent": 821, "children": [823, 824], "start_point": {"row": 231, "column": 19}, "end_point": {"row": 231, "column": 26}}, {"id": 823, "type": "!", "text": "!", "parent": 822, "children": [], "start_point": {"row": 231, "column": 19}, "end_point": {"row": 231, "column": 20}}, {"id": 824, "type": "call_expression", "text": "done()", "parent": 822, "children": [825, 826], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 26}}, {"id": 825, "type": "identifier", "text": "done", "parent": 824, "children": [], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 24}}, {"id": 826, "type": "argument_list", "text": "()", "parent": 824, "children": [], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 26}}, {"id": 827, "type": "call_expression", "text": "cellIter.next()", "parent": 814, "children": [828, 831], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 23}}, {"id": 828, "type": "field_expression", "text": "cellIter.next", "parent": 827, "children": [829, 830], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 21}}, {"id": 829, "type": "identifier", "text": "cellIter", "parent": 828, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 16}}, {"id": 830, "type": "field_identifier", "text": "next", "parent": 828, "children": [], "start_point": {"row": 232, "column": 17}, "end_point": {"row": 232, "column": 21}}, {"id": 831, "type": "argument_list", "text": "()", "parent": 827, "children": [], "start_point": {"row": 232, "column": 21}, "end_point": {"row": 232, "column": 23}}, {"id": 832, "type": "if_statement", "text": "if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }", "parent": 814, "children": [833], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 238, "column": 9}}, {"id": 833, "type": "parenthesized_expression", "text": "(cellIter.done())", "parent": 832, "children": [834], "start_point": {"row": 233, "column": 11}, "end_point": {"row": 233, "column": 28}}, {"id": 834, "type": "call_expression", "text": "cellIter.done()", "parent": 833, "children": [835, 838], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 27}}, {"id": 835, "type": "field_expression", "text": "cellIter.done", "parent": 834, "children": [836, 837], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 25}}, {"id": 836, "type": "identifier", "text": "cellIter", "parent": 835, "children": [], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 20}}, {"id": 837, "type": "field_identifier", "text": "done", "parent": 835, "children": [], "start_point": {"row": 233, "column": 21}, "end_point": {"row": 233, "column": 25}}, {"id": 838, "type": "argument_list", "text": "()", "parent": 834, "children": [], "start_point": {"row": 233, "column": 25}, "end_point": {"row": 233, "column": 27}}, {"id": 839, "type": "call_expression", "text": "MOZ_ASSERT(!arenaIter.done())", "parent": 832, "children": [840, 841], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 41}}, {"id": 840, "type": "identifier", "text": "MOZ_ASSERT", "parent": 839, "children": [], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 22}}, {"id": 841, "type": "argument_list", "text": "(!arenaIter.done())", "parent": 839, "children": [842], "start_point": {"row": 234, "column": 22}, "end_point": {"row": 234, "column": 41}}, {"id": 842, "type": "unary_expression", "text": "!arenaIter.done()", "parent": 841, "children": [843, 844], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 40}}, {"id": 843, "type": "!", "text": "!", "parent": 842, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 24}}, {"id": 844, "type": "call_expression", "text": "arenaIter.done()", "parent": 842, "children": [845, 848], "start_point": {"row": 234, "column": 24}, "end_point": {"row": 234, "column": 40}}, {"id": 845, "type": "field_expression", "text": "arenaIter.done", "parent": 844, "children": [846, 847], "start_point": {"row": 234, "column": 24}, "end_point": {"row": 234, "column": 38}}, {"id": 846, "type": "identifier", "text": "arenaIter", "parent": 845, "children": [], "start_point": {"row": 234, "column": 24}, "end_point": {"row": 234, "column": 33}}, {"id": 847, "type": "field_identifier", "text": "done", "parent": 845, "children": [], "start_point": {"row": 234, "column": 34}, "end_point": {"row": 234, "column": 38}}, {"id": 848, "type": "argument_list", "text": "()", "parent": 844, "children": [], "start_point": {"row": 234, "column": 38}, "end_point": {"row": 234, "column": 40}}, {"id": 849, "type": "call_expression", "text": "arenaIter.next()", "parent": 832, "children": [850, 853], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 28}}, {"id": 850, "type": "field_expression", "text": "arenaIter.next", "parent": 849, "children": [851, 852], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 26}}, {"id": 851, "type": "identifier", "text": "arenaIter", "parent": 850, "children": [], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 21}}, {"id": 852, "type": "field_identifier", "text": "next", "parent": 850, "children": [], "start_point": {"row": 235, "column": 22}, "end_point": {"row": 235, "column": 26}}, {"id": 853, "type": "argument_list", "text": "()", "parent": 849, "children": [], "start_point": {"row": 235, "column": 26}, "end_point": {"row": 235, "column": 28}}, {"id": 854, "type": "if_statement", "text": "if (!arenaIter.done())\n cellIter.reset(arenaIter.get());", "parent": 832, "children": [855], "start_point": {"row": 236, "column": 12}, "end_point": {"row": 237, "column": 48}}, {"id": 855, "type": "parenthesized_expression", "text": "(!arenaIter.done())", "parent": 854, "children": [856], "start_point": {"row": 236, "column": 15}, "end_point": {"row": 236, "column": 34}}, {"id": 856, "type": "unary_expression", "text": "!arenaIter.done()", "parent": 855, "children": [857, 858], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 33}}, {"id": 857, "type": "!", "text": "!", "parent": 856, "children": [], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 17}}, {"id": 858, "type": "call_expression", "text": "arenaIter.done()", "parent": 856, "children": [859, 862], "start_point": {"row": 236, "column": 17}, "end_point": {"row": 236, "column": 33}}, {"id": 859, "type": "field_expression", "text": "arenaIter.done", "parent": 858, "children": [860, 861], "start_point": {"row": 236, "column": 17}, "end_point": {"row": 236, "column": 31}}, {"id": 860, "type": "identifier", "text": "arenaIter", "parent": 859, "children": [], "start_point": {"row": 236, "column": 17}, "end_point": {"row": 236, "column": 26}}, {"id": 861, "type": "field_identifier", "text": "done", "parent": 859, "children": [], "start_point": {"row": 236, "column": 27}, "end_point": {"row": 236, "column": 31}}, {"id": 862, "type": "argument_list", "text": "()", "parent": 858, "children": [], "start_point": {"row": 236, "column": 31}, "end_point": {"row": 236, "column": 33}}, {"id": 863, "type": "call_expression", "text": "cellIter.reset(arenaIter.get())", "parent": 854, "children": [864, 867], "start_point": {"row": 237, "column": 16}, "end_point": {"row": 237, "column": 47}}, {"id": 864, "type": "field_expression", "text": "cellIter.reset", "parent": 863, "children": [865, 866], "start_point": {"row": 237, "column": 16}, "end_point": {"row": 237, "column": 30}}, {"id": 865, "type": "identifier", "text": "cellIter", "parent": 864, "children": [], "start_point": {"row": 237, "column": 16}, "end_point": {"row": 237, "column": 24}}, {"id": 866, "type": "field_identifier", "text": "reset", "parent": 864, "children": [], "start_point": {"row": 237, "column": 25}, "end_point": {"row": 237, "column": 30}}, {"id": 867, "type": "argument_list", "text": "(arenaIter.get())", "parent": 863, "children": [868], "start_point": {"row": 237, "column": 30}, "end_point": {"row": 237, "column": 47}}, {"id": 868, "type": "call_expression", "text": "arenaIter.get()", "parent": 867, "children": [869, 872], "start_point": {"row": 237, "column": 31}, "end_point": {"row": 237, "column": 46}}, {"id": 869, "type": "field_expression", "text": "arenaIter.get", "parent": 868, "children": [870, 871], "start_point": {"row": 237, "column": 31}, "end_point": {"row": 237, "column": 44}}, {"id": 870, "type": "identifier", "text": "arenaIter", "parent": 869, "children": [], "start_point": {"row": 237, "column": 31}, "end_point": {"row": 237, "column": 40}}, {"id": 871, "type": "field_identifier", "text": "get", "parent": 869, "children": [], "start_point": {"row": 237, "column": 41}, "end_point": {"row": 237, "column": 44}}, {"id": 872, "type": "argument_list", "text": "()", "parent": 868, "children": [], "start_point": {"row": 237, "column": 44}, "end_point": {"row": 237, "column": 46}}, {"id": 873, "type": "function_definition", "text": "class ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }", "parent": 0, "children": [874, 875], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 249, "column": 5}}, {"id": 874, "type": "identifier", "text": "ZoneCellIterUnderGC", "parent": 873, "children": [], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 242, "column": 25}}, {"id": 875, "type": "ERROR", "text": ": public ZoneCellIterImpl", "parent": 873, "children": [876], "start_point": {"row": 242, "column": 26}, "end_point": {"row": 242, "column": 51}}, {"id": 876, "type": "identifier", "text": "ZoneCellIterImpl", "parent": 875, "children": [], "start_point": {"row": 242, "column": 35}, "end_point": {"row": 242, "column": 51}}, {"id": 877, "type": "labeled_statement", "text": "public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());", "parent": 873, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 246, "column": 71}}, {"id": 878, "type": "call_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty()", "parent": 877, "children": [879, 902], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 69}}, {"id": 879, "type": "field_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty", "parent": 878, "children": [880, 901], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 67}}, {"id": 880, "type": "field_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery", "parent": 879, "children": [881, 900], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 59}}, {"id": 881, "type": "field_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc", "parent": 880, "children": [882, 899], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 51}}, {"id": 882, "type": "call_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()", "parent": 881, "children": [883, 898], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 47}}, {"id": 883, "type": "field_expression", "text": "ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread", "parent": 882, "children": [884, 885, 897], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 246, "column": 45}}, {"id": 884, "type": "identifier", "text": "ZoneCellIterUnderGC", "parent": 883, "children": [], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 23}}, {"id": 885, "type": "ERROR", "text": "(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone", "parent": 883, "children": [886, 888, 889, 892, 895, 896], "start_point": {"row": 245, "column": 23}, "end_point": {"row": 246, "column": 23}}, {"id": 886, "type": "type_descriptor", "text": "JS", "parent": 885, "children": [887], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 26}}, {"id": 887, "type": "type_identifier", "text": "JS", "parent": 886, "children": [], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 26}}, {"id": 888, "type": "type_identifier", "text": "Zone", "parent": 885, "children": [], "start_point": {"row": 245, "column": 28}, "end_point": {"row": 245, "column": 32}}, {"id": 889, "type": "pointer_declarator", "text": "* zone", "parent": 885, "children": [890, 891], "start_point": {"row": 245, "column": 32}, "end_point": {"row": 245, "column": 38}}, {"id": 890, "type": "*", "text": "*", "parent": 889, "children": [], "start_point": {"row": 245, "column": 32}, "end_point": {"row": 245, "column": 33}}, {"id": 891, "type": "identifier", "text": "zone", "parent": 889, "children": [], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 38}}, {"id": 892, "type": "ERROR", "text": "AllocKind kind) {", "parent": 885, "children": [893, 894], "start_point": {"row": 245, "column": 40}, "end_point": {"row": 245, "column": 57}}, {"id": 893, "type": "identifier", "text": "AllocKind", "parent": 892, "children": [], "start_point": {"row": 245, "column": 40}, "end_point": {"row": 245, "column": 49}}, {"id": 894, "type": "identifier", "text": "kind", "parent": 892, "children": [], "start_point": {"row": 245, "column": 50}, "end_point": {"row": 245, "column": 54}}, {"id": 895, "type": "identifier", "text": "MOZ_ASSERT", "parent": 885, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 18}}, {"id": 896, "type": "identifier", "text": "zone", "parent": 885, "children": [], "start_point": {"row": 246, "column": 19}, "end_point": {"row": 246, "column": 23}}, {"id": 897, "type": "field_identifier", "text": "runtimeFromAnyThread", "parent": 883, "children": [], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 45}}, {"id": 898, "type": "argument_list", "text": "()", "parent": 882, "children": [], "start_point": {"row": 246, "column": 45}, "end_point": {"row": 246, "column": 47}}, {"id": 899, "type": "field_identifier", "text": "gc", "parent": 881, "children": [], "start_point": {"row": 246, "column": 49}, "end_point": {"row": 246, "column": 51}}, {"id": 900, "type": "field_identifier", "text": "nursery", "parent": 880, "children": [], "start_point": {"row": 246, "column": 52}, "end_point": {"row": 246, "column": 59}}, {"id": 901, "type": "field_identifier", "text": "isEmpty", "parent": 879, "children": [], "start_point": {"row": 246, "column": 60}, "end_point": {"row": 246, "column": 67}}, {"id": 902, "type": "argument_list", "text": "()", "parent": 878, "children": [], "start_point": {"row": 246, "column": 67}, "end_point": {"row": 246, "column": 69}}, {"id": 903, "type": "call_expression", "text": "MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy())", "parent": 873, "children": [904, 905], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 62}}, {"id": 904, "type": "identifier", "text": "MOZ_ASSERT", "parent": 903, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 18}}, {"id": 905, "type": "argument_list", "text": "(zone->runtimeFromAnyThread()->isHeapBusy())", "parent": 903, "children": [906], "start_point": {"row": 247, "column": 18}, "end_point": {"row": 247, "column": 62}}, {"id": 906, "type": "call_expression", "text": "zone->runtimeFromAnyThread()->isHeapBusy()", "parent": 905, "children": [907, 914], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 61}}, {"id": 907, "type": "field_expression", "text": "zone->runtimeFromAnyThread()->isHeapBusy", "parent": 906, "children": [908, 913], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 59}}, {"id": 908, "type": "call_expression", "text": "zone->runtimeFromAnyThread()", "parent": 907, "children": [909, 912], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 47}}, {"id": 909, "type": "field_expression", "text": "zone->runtimeFromAnyThread", "parent": 908, "children": [910, 911], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 45}}, {"id": 910, "type": "identifier", "text": "zone", "parent": 909, "children": [], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 23}}, {"id": 911, "type": "field_identifier", "text": "runtimeFromAnyThread", "parent": 909, "children": [], "start_point": {"row": 247, "column": 25}, "end_point": {"row": 247, "column": 45}}, {"id": 912, "type": "argument_list", "text": "()", "parent": 908, "children": [], "start_point": {"row": 247, "column": 45}, "end_point": {"row": 247, "column": 47}}, {"id": 913, "type": "field_identifier", "text": "isHeapBusy", "parent": 907, "children": [], "start_point": {"row": 247, "column": 49}, "end_point": {"row": 247, "column": 59}}, {"id": 914, "type": "argument_list", "text": "()", "parent": 906, "children": [], "start_point": {"row": 247, "column": 59}, "end_point": {"row": 247, "column": 61}}, {"id": 915, "type": "call_expression", "text": "init(zone, kind)", "parent": 873, "children": [916, 917], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 24}}, {"id": 916, "type": "identifier", "text": "init", "parent": 915, "children": [], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 12}}, {"id": 917, "type": "argument_list", "text": "(zone, kind)", "parent": 915, "children": [918, 919], "start_point": {"row": 248, "column": 12}, "end_point": {"row": 248, "column": 24}}, {"id": 918, "type": "identifier", "text": "zone", "parent": 917, "children": [], "start_point": {"row": 248, "column": 13}, "end_point": {"row": 248, "column": 17}}, {"id": 919, "type": "identifier", "text": "kind", "parent": 917, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 23}}, {"id": 920, "type": "function_definition", "text": "class ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n}", "parent": 0, "children": [921, 923], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 297, "column": 1}}, {"id": 921, "type": "ERROR", "text": "ZoneCellIter : public", "parent": 920, "children": [922], "start_point": {"row": 252, "column": 6}, "end_point": {"row": 252, "column": 27}}, {"id": 922, "type": "identifier", "text": "ZoneCellIter", "parent": 921, "children": [], "start_point": {"row": 252, "column": 6}, "end_point": {"row": 252, "column": 18}}, {"id": 923, "type": "identifier", "text": "ZoneCellIterImpl", "parent": 920, "children": [], "start_point": {"row": 252, "column": 28}, "end_point": {"row": 252, "column": 44}}, {"id": 924, "type": "labeled_statement", "text": "JS::AutoAssertNoAlloc noAlloc;", "parent": 920, "children": [925, 926], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 34}}, {"id": 925, "type": "statement_identifier", "text": "JS", "parent": 924, "children": [], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 6}}, {"id": 926, "type": "declaration", "text": "AutoAssertNoAlloc noAlloc;", "parent": 924, "children": [927, 928], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 34}}, {"id": 927, "type": "type_identifier", "text": "AutoAssertNoAlloc", "parent": 926, "children": [], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 25}}, {"id": 928, "type": "identifier", "text": "noAlloc", "parent": 926, "children": [], "start_point": {"row": 254, "column": 26}, "end_point": {"row": 254, "column": 33}}, {"id": 929, "type": "declaration", "text": "ArenaLists* lists;", "parent": 920, "children": [930, 931], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 22}}, {"id": 930, "type": "type_identifier", "text": "ArenaLists", "parent": 929, "children": [], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 14}}, {"id": 931, "type": "pointer_declarator", "text": "* lists", "parent": 929, "children": [932, 933], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 21}}, {"id": 932, "type": "*", "text": "*", "parent": 931, "children": [], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 15}}, {"id": 933, "type": "identifier", "text": "lists", "parent": 931, "children": [], "start_point": {"row": 255, "column": 16}, "end_point": {"row": 255, "column": 21}}, {"id": 934, "type": "declaration", "text": "AllocKind kind;", "parent": 920, "children": [935, 936], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 19}}, {"id": 935, "type": "type_identifier", "text": "AllocKind", "parent": 934, "children": [], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 13}}, {"id": 936, "type": "identifier", "text": "kind", "parent": 934, "children": [], "start_point": {"row": 256, "column": 14}, "end_point": {"row": 256, "column": 18}}, {"id": 937, "type": "labeled_statement", "text": "public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)", "parent": 920, "children": [938], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 261, "column": 18}}, {"id": 938, "type": "labeled_statement", "text": "ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)", "parent": 937, "children": [939, 940], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 261, "column": 18}}, {"id": 939, "type": "statement_identifier", "text": "ZoneCellIter", "parent": 938, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 16}}, {"id": 940, "type": "ERROR", "text": "(JS::Zone* zone, AllocKind kind)", "parent": 938, "children": [941, 943, 944, 947, 948], "start_point": {"row": 259, "column": 16}, "end_point": {"row": 259, "column": 48}}, {"id": 941, "type": "type_descriptor", "text": "JS", "parent": 940, "children": [942], "start_point": {"row": 259, "column": 17}, "end_point": {"row": 259, "column": 19}}, {"id": 942, "type": "type_identifier", "text": "JS", "parent": 941, "children": [], "start_point": {"row": 259, "column": 17}, "end_point": {"row": 259, "column": 19}}, {"id": 943, "type": "type_identifier", "text": "Zone", "parent": 940, "children": [], "start_point": {"row": 259, "column": 21}, "end_point": {"row": 259, "column": 25}}, {"id": 944, "type": "pointer_declarator", "text": "* zone", "parent": 940, "children": [945, 946], "start_point": {"row": 259, "column": 25}, "end_point": {"row": 259, "column": 31}}, {"id": 945, "type": "*", "text": "*", "parent": 944, "children": [], "start_point": {"row": 259, "column": 25}, "end_point": {"row": 259, "column": 26}}, {"id": 946, "type": "identifier", "text": "zone", "parent": 944, "children": [], "start_point": {"row": 259, "column": 27}, "end_point": {"row": 259, "column": 31}}, {"id": 947, "type": "identifier", "text": "AllocKind", "parent": 940, "children": [], "start_point": {"row": 259, "column": 33}, "end_point": {"row": 259, "column": 42}}, {"id": 948, "type": "identifier", "text": "kind", "parent": 940, "children": [], "start_point": {"row": 259, "column": 43}, "end_point": {"row": 259, "column": 47}}, {"id": 949, "type": "comma_expression", "text": "lists(&zone->arenas),\n kind(kind)", "parent": 938, "children": [950, 957], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 261, "column": 18}}, {"id": 950, "type": "call_expression", "text": "lists(&zone->arenas)", "parent": 949, "children": [951, 952], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 28}}, {"id": 951, "type": "identifier", "text": "lists", "parent": 950, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 13}}, {"id": 952, "type": "argument_list", "text": "(&zone->arenas)", "parent": 950, "children": [953], "start_point": {"row": 260, "column": 13}, "end_point": {"row": 260, "column": 28}}, {"id": 953, "type": "pointer_expression", "text": "&zone->arenas", "parent": 952, "children": [954], "start_point": {"row": 260, "column": 14}, "end_point": {"row": 260, "column": 27}}, {"id": 954, "type": "field_expression", "text": "zone->arenas", "parent": 953, "children": [955, 956], "start_point": {"row": 260, "column": 15}, "end_point": {"row": 260, "column": 27}}, {"id": 955, "type": "identifier", "text": "zone", "parent": 954, "children": [], "start_point": {"row": 260, "column": 15}, "end_point": {"row": 260, "column": 19}}, {"id": 956, "type": "field_identifier", "text": "arenas", "parent": 954, "children": [], "start_point": {"row": 260, "column": 21}, "end_point": {"row": 260, "column": 27}}, {"id": 957, "type": "call_expression", "text": "kind(kind)", "parent": 949, "children": [958, 959], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 18}}, {"id": 958, "type": "identifier", "text": "kind", "parent": 957, "children": [], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 12}}, {"id": 959, "type": "argument_list", "text": "(kind)", "parent": 957, "children": [960], "start_point": {"row": 261, "column": 12}, "end_point": {"row": 261, "column": 18}}, {"id": 960, "type": "identifier", "text": "kind", "parent": 959, "children": [], "start_point": {"row": 261, "column": 13}, "end_point": {"row": 261, "column": 17}}, {"id": 961, "type": "declaration", "text": "JSRuntime* rt = zone->runtimeFromMainThread();", "parent": 920, "children": [962, 963], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 54}}, {"id": 962, "type": "type_identifier", "text": "JSRuntime", "parent": 961, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 17}}, {"id": 963, "type": "init_declarator", "text": "* rt = zone->runtimeFromMainThread()", "parent": 961, "children": [964, 967, 968], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 53}}, {"id": 964, "type": "pointer_declarator", "text": "* rt", "parent": 963, "children": [965, 966], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 21}}, {"id": 965, "type": "*", "text": "*", "parent": 964, "children": [], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 18}}, {"id": 966, "type": "identifier", "text": "rt", "parent": 964, "children": [], "start_point": {"row": 263, "column": 19}, "end_point": {"row": 263, "column": 21}}, {"id": 967, "type": "=", "text": "=", "parent": 963, "children": [], "start_point": {"row": 263, "column": 22}, "end_point": {"row": 263, "column": 23}}, {"id": 968, "type": "call_expression", "text": "zone->runtimeFromMainThread()", "parent": 963, "children": [969, 972], "start_point": {"row": 263, "column": 24}, "end_point": {"row": 263, "column": 53}}, {"id": 969, "type": "field_expression", "text": "zone->runtimeFromMainThread", "parent": 968, "children": [970, 971], "start_point": {"row": 263, "column": 24}, "end_point": {"row": 263, "column": 51}}, {"id": 970, "type": "identifier", "text": "zone", "parent": 969, "children": [], "start_point": {"row": 263, "column": 24}, "end_point": {"row": 263, "column": 28}}, {"id": 971, "type": "field_identifier", "text": "runtimeFromMainThread", "parent": 969, "children": [], "start_point": {"row": 263, "column": 30}, "end_point": {"row": 263, "column": 51}}, {"id": 972, "type": "argument_list", "text": "()", "parent": 968, "children": [], "start_point": {"row": 263, "column": 51}, "end_point": {"row": 263, "column": 53}}, {"id": 973, "type": "if_statement", "text": "if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }", "parent": 920, "children": [974], "start_point": {"row": 271, "column": 8}, "end_point": {"row": 275, "column": 9}}, {"id": 974, "type": "parenthesized_expression", "text": "(IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))", "parent": 973, "children": [975], "start_point": {"row": 271, "column": 11}, "end_point": {"row": 272, "column": 58}}, {"id": 975, "type": "binary_expression", "text": "IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind)", "parent": 974, "children": [976, 980, 981], "start_point": {"row": 271, "column": 12}, "end_point": {"row": 272, "column": 57}}, {"id": 976, "type": "call_expression", "text": "IsBackgroundFinalized(kind)", "parent": 975, "children": [977, 978], "start_point": {"row": 271, "column": 12}, "end_point": {"row": 271, "column": 39}}, {"id": 977, "type": "identifier", "text": "IsBackgroundFinalized", "parent": 976, "children": [], "start_point": {"row": 271, "column": 12}, "end_point": {"row": 271, "column": 33}}, {"id": 978, "type": "argument_list", "text": "(kind)", "parent": 976, "children": [979], "start_point": {"row": 271, "column": 33}, "end_point": {"row": 271, "column": 39}}, {"id": 979, "type": "identifier", "text": "kind", "parent": 978, "children": [], "start_point": {"row": 271, "column": 34}, "end_point": {"row": 271, "column": 38}}, {"id": 980, "type": "&&", "text": "&&", "parent": 975, "children": [], "start_point": {"row": 271, "column": 40}, "end_point": {"row": 271, "column": 42}}, {"id": 981, "type": "call_expression", "text": "zone->arenas.needBackgroundFinalizeWait(kind)", "parent": 975, "children": [982, 987], "start_point": {"row": 272, "column": 12}, "end_point": {"row": 272, "column": 57}}, {"id": 982, "type": "field_expression", "text": "zone->arenas.needBackgroundFinalizeWait", "parent": 981, "children": [983, 986], "start_point": {"row": 272, "column": 12}, "end_point": {"row": 272, "column": 51}}, {"id": 983, "type": "field_expression", "text": "zone->arenas", "parent": 982, "children": [984, 985], "start_point": {"row": 272, "column": 12}, "end_point": {"row": 272, "column": 24}}, {"id": 984, "type": "identifier", "text": "zone", "parent": 983, "children": [], "start_point": {"row": 272, "column": 12}, "end_point": {"row": 272, "column": 16}}, {"id": 985, "type": "field_identifier", "text": "arenas", "parent": 983, "children": [], "start_point": {"row": 272, "column": 18}, "end_point": {"row": 272, "column": 24}}, {"id": 986, "type": "field_identifier", "text": "needBackgroundFinalizeWait", "parent": 982, "children": [], "start_point": {"row": 272, "column": 25}, "end_point": {"row": 272, "column": 51}}, {"id": 987, "type": "argument_list", "text": "(kind)", "parent": 981, "children": [988], "start_point": {"row": 272, "column": 51}, "end_point": {"row": 272, "column": 57}}, {"id": 988, "type": "identifier", "text": "kind", "parent": 987, "children": [], "start_point": {"row": 272, "column": 52}, "end_point": {"row": 272, "column": 56}}, {"id": 989, "type": "call_expression", "text": "rt->gc.waitBackgroundSweepEnd()", "parent": 973, "children": [990, 995], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 43}}, {"id": 990, "type": "field_expression", "text": "rt->gc.waitBackgroundSweepEnd", "parent": 989, "children": [991, 994], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 41}}, {"id": 991, "type": "field_expression", "text": "rt->gc", "parent": 990, "children": [992, 993], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 18}}, {"id": 992, "type": "identifier", "text": "rt", "parent": 991, "children": [], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 14}}, {"id": 993, "type": "field_identifier", "text": "gc", "parent": 991, "children": [], "start_point": {"row": 274, "column": 16}, "end_point": {"row": 274, "column": 18}}, {"id": 994, "type": "field_identifier", "text": "waitBackgroundSweepEnd", "parent": 990, "children": [], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 41}}, {"id": 995, "type": "argument_list", "text": "()", "parent": 989, "children": [], "start_point": {"row": 274, "column": 41}, "end_point": {"row": 274, "column": 43}}, {"id": 996, "type": "call_expression", "text": "rt->gc.evictNursery()", "parent": 920, "children": [997, 1002], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 29}}, {"id": 997, "type": "field_expression", "text": "rt->gc.evictNursery", "parent": 996, "children": [998, 1001], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 27}}, {"id": 998, "type": "field_expression", "text": "rt->gc", "parent": 997, "children": [999, 1000], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 14}}, {"id": 999, "type": "identifier", "text": "rt", "parent": 998, "children": [], "start_point": {"row": 278, "column": 8}, "end_point": {"row": 278, "column": 10}}, {"id": 1000, "type": "field_identifier", "text": "gc", "parent": 998, "children": [], "start_point": {"row": 278, "column": 12}, "end_point": {"row": 278, "column": 14}}, {"id": 1001, "type": "field_identifier", "text": "evictNursery", "parent": 997, "children": [], "start_point": {"row": 278, "column": 15}, "end_point": {"row": 278, "column": 27}}, {"id": 1002, "type": "argument_list", "text": "()", "parent": 996, "children": [], "start_point": {"row": 278, "column": 27}, "end_point": {"row": 278, "column": 29}}, {"id": 1003, "type": "if_statement", "text": "if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }", "parent": 920, "children": [1004, 1016], "start_point": {"row": 280, "column": 8}, "end_point": {"row": 285, "column": 9}}, {"id": 1004, "type": "parenthesized_expression", "text": "(lists->isSynchronizedFreeList(kind))", "parent": 1003, "children": [1005], "start_point": {"row": 280, "column": 11}, "end_point": {"row": 280, "column": 48}}, {"id": 1005, "type": "call_expression", "text": "lists->isSynchronizedFreeList(kind)", "parent": 1004, "children": [1006, 1009], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 47}}, {"id": 1006, "type": "field_expression", "text": "lists->isSynchronizedFreeList", "parent": 1005, "children": [1007, 1008], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 41}}, {"id": 1007, "type": "identifier", "text": "lists", "parent": 1006, "children": [], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 17}}, {"id": 1008, "type": "field_identifier", "text": "isSynchronizedFreeList", "parent": 1006, "children": [], "start_point": {"row": 280, "column": 19}, "end_point": {"row": 280, "column": 41}}, {"id": 1009, "type": "argument_list", "text": "(kind)", "parent": 1005, "children": [1010], "start_point": {"row": 280, "column": 41}, "end_point": {"row": 280, "column": 47}}, {"id": 1010, "type": "identifier", "text": "kind", "parent": 1009, "children": [], "start_point": {"row": 280, "column": 42}, "end_point": {"row": 280, "column": 46}}, {"id": 1011, "type": "assignment_expression", "text": "lists = nullptr", "parent": 1003, "children": [1012, 1013, 1014], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 27}}, {"id": 1012, "type": "identifier", "text": "lists", "parent": 1011, "children": [], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 17}}, {"id": 1013, "type": "=", "text": "=", "parent": 1011, "children": [], "start_point": {"row": 281, "column": 18}, "end_point": {"row": 281, "column": 19}}, {"id": 1014, "type": "null", "text": "nullptr", "parent": 1011, "children": [1015], "start_point": {"row": 281, "column": 20}, "end_point": {"row": 281, "column": 27}}, {"id": 1015, "type": "nullptr", "text": "nullptr", "parent": 1014, "children": [], "start_point": {"row": 281, "column": 20}, "end_point": {"row": 281, "column": 27}}, {"id": 1016, "type": "else_clause", "text": "else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }", "parent": 1003, "children": [], "start_point": {"row": 282, "column": 10}, "end_point": {"row": 285, "column": 9}}, {"id": 1017, "type": "call_expression", "text": "MOZ_ASSERT(!rt->isHeapBusy())", "parent": 1016, "children": [1018, 1019], "start_point": {"row": 283, "column": 12}, "end_point": {"row": 283, "column": 41}}, {"id": 1018, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1017, "children": [], "start_point": {"row": 283, "column": 12}, "end_point": {"row": 283, "column": 22}}, {"id": 1019, "type": "argument_list", "text": "(!rt->isHeapBusy())", "parent": 1017, "children": [1020], "start_point": {"row": 283, "column": 22}, "end_point": {"row": 283, "column": 41}}, {"id": 1020, "type": "unary_expression", "text": "!rt->isHeapBusy()", "parent": 1019, "children": [1021, 1022], "start_point": {"row": 283, "column": 23}, "end_point": {"row": 283, "column": 40}}, {"id": 1021, "type": "!", "text": "!", "parent": 1020, "children": [], "start_point": {"row": 283, "column": 23}, "end_point": {"row": 283, "column": 24}}, {"id": 1022, "type": "call_expression", "text": "rt->isHeapBusy()", "parent": 1020, "children": [1023, 1026], "start_point": {"row": 283, "column": 24}, "end_point": {"row": 283, "column": 40}}, {"id": 1023, "type": "field_expression", "text": "rt->isHeapBusy", "parent": 1022, "children": [1024, 1025], "start_point": {"row": 283, "column": 24}, "end_point": {"row": 283, "column": 38}}, {"id": 1024, "type": "identifier", "text": "rt", "parent": 1023, "children": [], "start_point": {"row": 283, "column": 24}, "end_point": {"row": 283, "column": 26}}, {"id": 1025, "type": "field_identifier", "text": "isHeapBusy", "parent": 1023, "children": [], "start_point": {"row": 283, "column": 28}, "end_point": {"row": 283, "column": 38}}, {"id": 1026, "type": "argument_list", "text": "()", "parent": 1022, "children": [], "start_point": {"row": 283, "column": 38}, "end_point": {"row": 283, "column": 40}}, {"id": 1027, "type": "call_expression", "text": "lists->copyFreeListToArena(kind)", "parent": 1016, "children": [1028, 1031], "start_point": {"row": 284, "column": 12}, "end_point": {"row": 284, "column": 44}}, {"id": 1028, "type": "field_expression", "text": "lists->copyFreeListToArena", "parent": 1027, "children": [1029, 1030], "start_point": {"row": 284, "column": 12}, "end_point": {"row": 284, "column": 38}}, {"id": 1029, "type": "identifier", "text": "lists", "parent": 1028, "children": [], "start_point": {"row": 284, "column": 12}, "end_point": {"row": 284, "column": 17}}, {"id": 1030, "type": "field_identifier", "text": "copyFreeListToArena", "parent": 1028, "children": [], "start_point": {"row": 284, "column": 19}, "end_point": {"row": 284, "column": 38}}, {"id": 1031, "type": "argument_list", "text": "(kind)", "parent": 1027, "children": [1032], "start_point": {"row": 284, "column": 38}, "end_point": {"row": 284, "column": 44}}, {"id": 1032, "type": "identifier", "text": "kind", "parent": 1031, "children": [], "start_point": {"row": 284, "column": 39}, "end_point": {"row": 284, "column": 43}}, {"id": 1033, "type": "call_expression", "text": "noAlloc.disallowAlloc(rt)", "parent": 920, "children": [1034, 1037], "start_point": {"row": 288, "column": 8}, "end_point": {"row": 288, "column": 33}}, {"id": 1034, "type": "field_expression", "text": "noAlloc.disallowAlloc", "parent": 1033, "children": [1035, 1036], "start_point": {"row": 288, "column": 8}, "end_point": {"row": 288, "column": 29}}, {"id": 1035, "type": "identifier", "text": "noAlloc", "parent": 1034, "children": [], "start_point": {"row": 288, "column": 8}, "end_point": {"row": 288, "column": 15}}, {"id": 1036, "type": "field_identifier", "text": "disallowAlloc", "parent": 1034, "children": [], "start_point": {"row": 288, "column": 16}, "end_point": {"row": 288, "column": 29}}, {"id": 1037, "type": "argument_list", "text": "(rt)", "parent": 1033, "children": [1038], "start_point": {"row": 288, "column": 29}, "end_point": {"row": 288, "column": 33}}, {"id": 1038, "type": "identifier", "text": "rt", "parent": 1037, "children": [], "start_point": {"row": 288, "column": 30}, "end_point": {"row": 288, "column": 32}}, {"id": 1039, "type": "call_expression", "text": "init(zone, kind)", "parent": 920, "children": [1040, 1041], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 24}}, {"id": 1040, "type": "identifier", "text": "init", "parent": 1039, "children": [], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 12}}, {"id": 1041, "type": "argument_list", "text": "(zone, kind)", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 290, "column": 12}, "end_point": {"row": 290, "column": 24}}, {"id": 1042, "type": "identifier", "text": "zone", "parent": 1041, "children": [], "start_point": {"row": 290, "column": 13}, "end_point": {"row": 290, "column": 17}}, {"id": 1043, "type": "identifier", "text": "kind", "parent": 1041, "children": [], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 23}}, {"id": 1044, "type": "unary_expression", "text": "~ZoneCellIter()", "parent": 920, "children": [1045, 1046], "start_point": {"row": 293, "column": 4}, "end_point": {"row": 293, "column": 19}}, {"id": 1045, "type": "~", "text": "~", "parent": 1044, "children": [], "start_point": {"row": 293, "column": 4}, "end_point": {"row": 293, "column": 5}}, {"id": 1046, "type": "call_expression", "text": "ZoneCellIter()", "parent": 1044, "children": [1047, 1048], "start_point": {"row": 293, "column": 5}, "end_point": {"row": 293, "column": 19}}, {"id": 1047, "type": "identifier", "text": "ZoneCellIter", "parent": 1046, "children": [], "start_point": {"row": 293, "column": 5}, "end_point": {"row": 293, "column": 17}}, {"id": 1048, "type": "argument_list", "text": "()", "parent": 1046, "children": [], "start_point": {"row": 293, "column": 17}, "end_point": {"row": 293, "column": 19}}, {"id": 1049, "type": "if_statement", "text": "if (lists)\n lists->clearFreeListInArena(kind);", "parent": 920, "children": [1050], "start_point": {"row": 294, "column": 8}, "end_point": {"row": 295, "column": 46}}, {"id": 1050, "type": "parenthesized_expression", "text": "(lists)", "parent": 1049, "children": [1051], "start_point": {"row": 294, "column": 11}, "end_point": {"row": 294, "column": 18}}, {"id": 1051, "type": "identifier", "text": "lists", "parent": 1050, "children": [], "start_point": {"row": 294, "column": 12}, "end_point": {"row": 294, "column": 17}}, {"id": 1052, "type": "call_expression", "text": "lists->clearFreeListInArena(kind)", "parent": 1049, "children": [1053, 1056], "start_point": {"row": 295, "column": 12}, "end_point": {"row": 295, "column": 45}}, {"id": 1053, "type": "field_expression", "text": "lists->clearFreeListInArena", "parent": 1052, "children": [1054, 1055], "start_point": {"row": 295, "column": 12}, "end_point": {"row": 295, "column": 39}}, {"id": 1054, "type": "identifier", "text": "lists", "parent": 1053, "children": [], "start_point": {"row": 295, "column": 12}, "end_point": {"row": 295, "column": 17}}, {"id": 1055, "type": "field_identifier", "text": "clearFreeListInArena", "parent": 1053, "children": [], "start_point": {"row": 295, "column": 19}, "end_point": {"row": 295, "column": 39}}, {"id": 1056, "type": "argument_list", "text": "(kind)", "parent": 1052, "children": [1057], "start_point": {"row": 295, "column": 39}, "end_point": {"row": 295, "column": 45}}, {"id": 1057, "type": "identifier", "text": "kind", "parent": 1056, "children": [], "start_point": {"row": 295, "column": 40}, "end_point": {"row": 295, "column": 44}}, {"id": 1058, "type": "function_definition", "text": "class GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}", "parent": 0, "children": [1059], "start_point": {"row": 299, "column": 0}, "end_point": {"row": 328, "column": 1}}, {"id": 1059, "type": "identifier", "text": "GCZonesIter", "parent": 1058, "children": [], "start_point": {"row": 299, "column": 6}, "end_point": {"row": 299, "column": 17}}, {"id": 1060, "type": "labeled_statement", "text": "private:\n ZonesIter zone;", "parent": 1058, "children": [1061], "start_point": {"row": 301, "column": 2}, "end_point": {"row": 302, "column": 19}}, {"id": 1061, "type": "declaration", "text": "ZonesIter zone;", "parent": 1060, "children": [1062, 1063], "start_point": {"row": 302, "column": 4}, "end_point": {"row": 302, "column": 19}}, {"id": 1062, "type": "type_identifier", "text": "ZonesIter", "parent": 1061, "children": [], "start_point": {"row": 302, "column": 4}, "end_point": {"row": 302, "column": 13}}, {"id": 1063, "type": "identifier", "text": "zone", "parent": 1061, "children": [], "start_point": {"row": 302, "column": 14}, "end_point": {"row": 302, "column": 18}}, {"id": 1064, "type": "labeled_statement", "text": "public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }", "parent": 1058, "children": [1065], "start_point": {"row": 304, "column": 2}, "end_point": {"row": 310, "column": 5}}, {"id": 1065, "type": "ERROR", "text": "explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)", "parent": 1064, "children": [1066, 1067], "start_point": {"row": 305, "column": 4}, "end_point": {"row": 306, "column": 26}}, {"id": 1066, "type": "type_identifier", "text": "explicit", "parent": 1065, "children": [], "start_point": {"row": 305, "column": 4}, "end_point": {"row": 305, "column": 12}}, {"id": 1067, "type": "function_declarator", "text": "GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)", "parent": 1065, "children": [1068, 1069, 1081], "start_point": {"row": 305, "column": 13}, "end_point": {"row": 306, "column": 26}}, {"id": 1068, "type": "identifier", "text": "GCZonesIter", "parent": 1067, "children": [], "start_point": {"row": 305, "column": 13}, "end_point": {"row": 305, "column": 24}}, {"id": 1069, "type": "parameter_list", "text": "(JSRuntime* rt, ZoneSelector selector = WithAtoms)", "parent": 1067, "children": [1070, 1075], "start_point": {"row": 305, "column": 24}, "end_point": {"row": 305, "column": 74}}, {"id": 1070, "type": "parameter_declaration", "text": "JSRuntime* rt", "parent": 1069, "children": [1071, 1072], "start_point": {"row": 305, "column": 25}, "end_point": {"row": 305, "column": 38}}, {"id": 1071, "type": "type_identifier", "text": "JSRuntime", "parent": 1070, "children": [], "start_point": {"row": 305, "column": 25}, "end_point": {"row": 305, "column": 34}}, {"id": 1072, "type": "pointer_declarator", "text": "* rt", "parent": 1070, "children": [1073, 1074], "start_point": {"row": 305, "column": 34}, "end_point": {"row": 305, "column": 38}}, {"id": 1073, "type": "*", "text": "*", "parent": 1072, "children": [], "start_point": {"row": 305, "column": 34}, "end_point": {"row": 305, "column": 35}}, {"id": 1074, "type": "identifier", "text": "rt", "parent": 1072, "children": [], "start_point": {"row": 305, "column": 36}, "end_point": {"row": 305, "column": 38}}, {"id": 1075, "type": "parameter_declaration", "text": "ZoneSelector selector = WithAtoms", "parent": 1069, "children": [1076, 1077, 1080], "start_point": {"row": 305, "column": 40}, "end_point": {"row": 305, "column": 73}}, {"id": 1076, "type": "type_identifier", "text": "ZoneSelector", "parent": 1075, "children": [], "start_point": {"row": 305, "column": 40}, "end_point": {"row": 305, "column": 52}}, {"id": 1077, "type": "ERROR", "text": "selector =", "parent": 1075, "children": [1078, 1079], "start_point": {"row": 305, "column": 53}, "end_point": {"row": 305, "column": 63}}, {"id": 1078, "type": "identifier", "text": "selector", "parent": 1077, "children": [], "start_point": {"row": 305, "column": 53}, "end_point": {"row": 305, "column": 61}}, {"id": 1079, "type": "=", "text": "=", "parent": 1077, "children": [], "start_point": {"row": 305, "column": 62}, "end_point": {"row": 305, "column": 63}}, {"id": 1080, "type": "identifier", "text": "WithAtoms", "parent": 1075, "children": [], "start_point": {"row": 305, "column": 64}, "end_point": {"row": 305, "column": 73}}, {"id": 1081, "type": "call_expression", "text": "zone(rt, selector)", "parent": 1067, "children": [1082, 1083], "start_point": {"row": 306, "column": 8}, "end_point": {"row": 306, "column": 26}}, {"id": 1082, "type": "identifier", "text": "zone", "parent": 1081, "children": [], "start_point": {"row": 306, "column": 8}, "end_point": {"row": 306, "column": 12}}, {"id": 1083, "type": "argument_list", "text": "(rt, selector)", "parent": 1081, "children": [1084, 1085], "start_point": {"row": 306, "column": 12}, "end_point": {"row": 306, "column": 26}}, {"id": 1084, "type": "identifier", "text": "rt", "parent": 1083, "children": [], "start_point": {"row": 306, "column": 13}, "end_point": {"row": 306, "column": 15}}, {"id": 1085, "type": "identifier", "text": "selector", "parent": 1083, "children": [], "start_point": {"row": 306, "column": 17}, "end_point": {"row": 306, "column": 25}}, {"id": 1086, "type": "if_statement", "text": "if (!zone->isCollecting())\n next();", "parent": 1064, "children": [1087], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 309, "column": 19}}, {"id": 1087, "type": "parenthesized_expression", "text": "(!zone->isCollecting())", "parent": 1086, "children": [1088], "start_point": {"row": 308, "column": 11}, "end_point": {"row": 308, "column": 34}}, {"id": 1088, "type": "unary_expression", "text": "!zone->isCollecting()", "parent": 1087, "children": [1089, 1090], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 33}}, {"id": 1089, "type": "!", "text": "!", "parent": 1088, "children": [], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 13}}, {"id": 1090, "type": "call_expression", "text": "zone->isCollecting()", "parent": 1088, "children": [1091, 1094], "start_point": {"row": 308, "column": 13}, "end_point": {"row": 308, "column": 33}}, {"id": 1091, "type": "field_expression", "text": "zone->isCollecting", "parent": 1090, "children": [1092, 1093], "start_point": {"row": 308, "column": 13}, "end_point": {"row": 308, "column": 31}}, {"id": 1092, "type": "identifier", "text": "zone", "parent": 1091, "children": [], "start_point": {"row": 308, "column": 13}, "end_point": {"row": 308, "column": 17}}, {"id": 1093, "type": "field_identifier", "text": "isCollecting", "parent": 1091, "children": [], "start_point": {"row": 308, "column": 19}, "end_point": {"row": 308, "column": 31}}, {"id": 1094, "type": "argument_list", "text": "()", "parent": 1090, "children": [], "start_point": {"row": 308, "column": 31}, "end_point": {"row": 308, "column": 33}}, {"id": 1095, "type": "call_expression", "text": "next()", "parent": 1086, "children": [1096, 1097], "start_point": {"row": 309, "column": 12}, "end_point": {"row": 309, "column": 18}}, {"id": 1096, "type": "identifier", "text": "next", "parent": 1095, "children": [], "start_point": {"row": 309, "column": 12}, "end_point": {"row": 309, "column": 16}}, {"id": 1097, "type": "argument_list", "text": "()", "parent": 1095, "children": [], "start_point": {"row": 309, "column": 16}, "end_point": {"row": 309, "column": 18}}, {"id": 1098, "type": "ERROR", "text": "bool done() const", "parent": 1058, "children": [1099, 1100], "start_point": {"row": 312, "column": 4}, "end_point": {"row": 312, "column": 21}}, {"id": 1099, "type": "primitive_type", "text": "bool", "parent": 1098, "children": [], "start_point": {"row": 312, "column": 4}, "end_point": {"row": 312, "column": 8}}, {"id": 1100, "type": "function_declarator", "text": "done()", "parent": 1098, "children": [1101, 1102], "start_point": {"row": 312, "column": 9}, "end_point": {"row": 312, "column": 15}}, {"id": 1101, "type": "identifier", "text": "done", "parent": 1100, "children": [], "start_point": {"row": 312, "column": 9}, "end_point": {"row": 312, "column": 13}}, {"id": 1102, "type": "parameter_list", "text": "()", "parent": 1100, "children": [], "start_point": {"row": 312, "column": 13}, "end_point": {"row": 312, "column": 15}}, {"id": 1103, "type": "return_statement", "text": "return zone.done();", "parent": 1058, "children": [1104], "start_point": {"row": 312, "column": 24}, "end_point": {"row": 312, "column": 43}}, {"id": 1104, "type": "call_expression", "text": "zone.done()", "parent": 1103, "children": [1105, 1108], "start_point": {"row": 312, "column": 31}, "end_point": {"row": 312, "column": 42}}, {"id": 1105, "type": "field_expression", "text": "zone.done", "parent": 1104, "children": [1106, 1107], "start_point": {"row": 312, "column": 31}, "end_point": {"row": 312, "column": 40}}, {"id": 1106, "type": "identifier", "text": "zone", "parent": 1105, "children": [], "start_point": {"row": 312, "column": 31}, "end_point": {"row": 312, "column": 35}}, {"id": 1107, "type": "field_identifier", "text": "done", "parent": 1105, "children": [], "start_point": {"row": 312, "column": 36}, "end_point": {"row": 312, "column": 40}}, {"id": 1108, "type": "argument_list", "text": "()", "parent": 1104, "children": [], "start_point": {"row": 312, "column": 40}, "end_point": {"row": 312, "column": 42}}, {"id": 1109, "type": "function_definition", "text": "void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }", "parent": 1058, "children": [1110, 1111], "start_point": {"row": 314, "column": 4}, "end_point": {"row": 319, "column": 5}}, {"id": 1110, "type": "primitive_type", "text": "void", "parent": 1109, "children": [], "start_point": {"row": 314, "column": 4}, "end_point": {"row": 314, "column": 8}}, {"id": 1111, "type": "function_declarator", "text": "next()", "parent": 1109, "children": [1112, 1113], "start_point": {"row": 314, "column": 9}, "end_point": {"row": 314, "column": 15}}, {"id": 1112, "type": "identifier", "text": "next", "parent": 1111, "children": [], "start_point": {"row": 314, "column": 9}, "end_point": {"row": 314, "column": 13}}, {"id": 1113, "type": "parameter_list", "text": "()", "parent": 1111, "children": [], "start_point": {"row": 314, "column": 13}, "end_point": {"row": 314, "column": 15}}, {"id": 1114, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 1109, "children": [1115, 1116], "start_point": {"row": 315, "column": 8}, "end_point": {"row": 315, "column": 27}}, {"id": 1115, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1114, "children": [], "start_point": {"row": 315, "column": 8}, "end_point": {"row": 315, "column": 18}}, {"id": 1116, "type": "argument_list", "text": "(!done())", "parent": 1114, "children": [1117], "start_point": {"row": 315, "column": 18}, "end_point": {"row": 315, "column": 27}}, {"id": 1117, "type": "unary_expression", "text": "!done()", "parent": 1116, "children": [1118, 1119], "start_point": {"row": 315, "column": 19}, "end_point": {"row": 315, "column": 26}}, {"id": 1118, "type": "!", "text": "!", "parent": 1117, "children": [], "start_point": {"row": 315, "column": 19}, "end_point": {"row": 315, "column": 20}}, {"id": 1119, "type": "call_expression", "text": "done()", "parent": 1117, "children": [1120, 1121], "start_point": {"row": 315, "column": 20}, "end_point": {"row": 315, "column": 26}}, {"id": 1120, "type": "identifier", "text": "done", "parent": 1119, "children": [], "start_point": {"row": 315, "column": 20}, "end_point": {"row": 315, "column": 24}}, {"id": 1121, "type": "argument_list", "text": "()", "parent": 1119, "children": [], "start_point": {"row": 315, "column": 24}, "end_point": {"row": 315, "column": 26}}, {"id": 1122, "type": "do_statement", "text": "do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());", "parent": 1109, "children": [1128], "start_point": {"row": 316, "column": 8}, "end_point": {"row": 318, "column": 69}}, {"id": 1123, "type": "call_expression", "text": "zone.next()", "parent": 1122, "children": [1124, 1127], "start_point": {"row": 317, "column": 12}, "end_point": {"row": 317, "column": 23}}, {"id": 1124, "type": "field_expression", "text": "zone.next", "parent": 1123, "children": [1125, 1126], "start_point": {"row": 317, "column": 12}, "end_point": {"row": 317, "column": 21}}, {"id": 1125, "type": "identifier", "text": "zone", "parent": 1124, "children": [], "start_point": {"row": 317, "column": 12}, "end_point": {"row": 317, "column": 16}}, {"id": 1126, "type": "field_identifier", "text": "next", "parent": 1124, "children": [], "start_point": {"row": 317, "column": 17}, "end_point": {"row": 317, "column": 21}}, {"id": 1127, "type": "argument_list", "text": "()", "parent": 1123, "children": [], "start_point": {"row": 317, "column": 21}, "end_point": {"row": 317, "column": 23}}, {"id": 1128, "type": "parenthesized_expression", "text": "(!zone.done() && !zone->isCollectingFromAnyThread())", "parent": 1122, "children": [1129], "start_point": {"row": 318, "column": 16}, "end_point": {"row": 318, "column": 68}}, {"id": 1129, "type": "binary_expression", "text": "!zone.done() && !zone->isCollectingFromAnyThread()", "parent": 1128, "children": [1130, 1137, 1138], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 67}}, {"id": 1130, "type": "unary_expression", "text": "!zone.done()", "parent": 1129, "children": [1131, 1132], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 29}}, {"id": 1131, "type": "!", "text": "!", "parent": 1130, "children": [], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 18}}, {"id": 1132, "type": "call_expression", "text": "zone.done()", "parent": 1130, "children": [1133, 1136], "start_point": {"row": 318, "column": 18}, "end_point": {"row": 318, "column": 29}}, {"id": 1133, "type": "field_expression", "text": "zone.done", "parent": 1132, "children": [1134, 1135], "start_point": {"row": 318, "column": 18}, "end_point": {"row": 318, "column": 27}}, {"id": 1134, "type": "identifier", "text": "zone", "parent": 1133, "children": [], "start_point": {"row": 318, "column": 18}, "end_point": {"row": 318, "column": 22}}, {"id": 1135, "type": "field_identifier", "text": "done", "parent": 1133, "children": [], "start_point": {"row": 318, "column": 23}, "end_point": {"row": 318, "column": 27}}, {"id": 1136, "type": "argument_list", "text": "()", "parent": 1132, "children": [], "start_point": {"row": 318, "column": 27}, "end_point": {"row": 318, "column": 29}}, {"id": 1137, "type": "&&", "text": "&&", "parent": 1129, "children": [], "start_point": {"row": 318, "column": 30}, "end_point": {"row": 318, "column": 32}}, {"id": 1138, "type": "unary_expression", "text": "!zone->isCollectingFromAnyThread()", "parent": 1129, "children": [1139, 1140], "start_point": {"row": 318, "column": 33}, "end_point": {"row": 318, "column": 67}}, {"id": 1139, "type": "!", "text": "!", "parent": 1138, "children": [], "start_point": {"row": 318, "column": 33}, "end_point": {"row": 318, "column": 34}}, {"id": 1140, "type": "call_expression", "text": "zone->isCollectingFromAnyThread()", "parent": 1138, "children": [1141, 1144], "start_point": {"row": 318, "column": 34}, "end_point": {"row": 318, "column": 67}}, {"id": 1141, "type": "field_expression", "text": "zone->isCollectingFromAnyThread", "parent": 1140, "children": [1142, 1143], "start_point": {"row": 318, "column": 34}, "end_point": {"row": 318, "column": 65}}, {"id": 1142, "type": "identifier", "text": "zone", "parent": 1141, "children": [], "start_point": {"row": 318, "column": 34}, "end_point": {"row": 318, "column": 38}}, {"id": 1143, "type": "field_identifier", "text": "isCollectingFromAnyThread", "parent": 1141, "children": [], "start_point": {"row": 318, "column": 40}, "end_point": {"row": 318, "column": 65}}, {"id": 1144, "type": "argument_list", "text": "()", "parent": 1140, "children": [], "start_point": {"row": 318, "column": 65}, "end_point": {"row": 318, "column": 67}}, {"id": 1145, "type": "labeled_statement", "text": "JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }", "parent": 1058, "children": [1146, 1147], "start_point": {"row": 321, "column": 4}, "end_point": {"row": 324, "column": 5}}, {"id": 1146, "type": "statement_identifier", "text": "JS", "parent": 1145, "children": [], "start_point": {"row": 321, "column": 4}, "end_point": {"row": 321, "column": 6}}, {"id": 1147, "type": "ERROR", "text": ":Zone* get() const", "parent": 1145, "children": [1148, 1149], "start_point": {"row": 321, "column": 7}, "end_point": {"row": 321, "column": 25}}, {"id": 1148, "type": "type_identifier", "text": "Zone", "parent": 1147, "children": [], "start_point": {"row": 321, "column": 8}, "end_point": {"row": 321, "column": 12}}, {"id": 1149, "type": "pointer_declarator", "text": "* get() const", "parent": 1147, "children": [1150, 1151], "start_point": {"row": 321, "column": 12}, "end_point": {"row": 321, "column": 25}}, {"id": 1150, "type": "*", "text": "*", "parent": 1149, "children": [], "start_point": {"row": 321, "column": 12}, "end_point": {"row": 321, "column": 13}}, {"id": 1151, "type": "function_declarator", "text": "get() const", "parent": 1149, "children": [1152, 1153], "start_point": {"row": 321, "column": 14}, "end_point": {"row": 321, "column": 25}}, {"id": 1152, "type": "identifier", "text": "get", "parent": 1151, "children": [], "start_point": {"row": 321, "column": 14}, "end_point": {"row": 321, "column": 17}}, {"id": 1153, "type": "parameter_list", "text": "()", "parent": 1151, "children": [], "start_point": {"row": 321, "column": 17}, "end_point": {"row": 321, "column": 19}}, {"id": 1154, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 1145, "children": [1155, 1156], "start_point": {"row": 322, "column": 8}, "end_point": {"row": 322, "column": 27}}, {"id": 1155, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1154, "children": [], "start_point": {"row": 322, "column": 8}, "end_point": {"row": 322, "column": 18}}, {"id": 1156, "type": "argument_list", "text": "(!done())", "parent": 1154, "children": [1157], "start_point": {"row": 322, "column": 18}, "end_point": {"row": 322, "column": 27}}, {"id": 1157, "type": "unary_expression", "text": "!done()", "parent": 1156, "children": [1158, 1159], "start_point": {"row": 322, "column": 19}, "end_point": {"row": 322, "column": 26}}, {"id": 1158, "type": "!", "text": "!", "parent": 1157, "children": [], "start_point": {"row": 322, "column": 19}, "end_point": {"row": 322, "column": 20}}, {"id": 1159, "type": "call_expression", "text": "done()", "parent": 1157, "children": [1160, 1161], "start_point": {"row": 322, "column": 20}, "end_point": {"row": 322, "column": 26}}, {"id": 1160, "type": "identifier", "text": "done", "parent": 1159, "children": [], "start_point": {"row": 322, "column": 20}, "end_point": {"row": 322, "column": 24}}, {"id": 1161, "type": "argument_list", "text": "()", "parent": 1159, "children": [], "start_point": {"row": 322, "column": 24}, "end_point": {"row": 322, "column": 26}}, {"id": 1162, "type": "return_statement", "text": "return zone;", "parent": 1145, "children": [1163], "start_point": {"row": 323, "column": 8}, "end_point": {"row": 323, "column": 20}}, {"id": 1163, "type": "identifier", "text": "zone", "parent": 1162, "children": [], "start_point": {"row": 323, "column": 15}, "end_point": {"row": 323, "column": 19}}, {"id": 1164, "type": "function_definition", "text": "operator JS::Zone*() const { return get(); }", "parent": 1058, "children": [1165, 1166, 1169], "start_point": {"row": 326, "column": 4}, "end_point": {"row": 326, "column": 48}}, {"id": 1165, "type": "type_identifier", "text": "operator", "parent": 1164, "children": [], "start_point": {"row": 326, "column": 4}, "end_point": {"row": 326, "column": 12}}, {"id": 1166, "type": "ERROR", "text": "JS::Zone", "parent": 1164, "children": [1167, 1168], "start_point": {"row": 326, "column": 13}, "end_point": {"row": 326, "column": 21}}, {"id": 1167, "type": "identifier", "text": "JS", "parent": 1166, "children": [], "start_point": {"row": 326, "column": 13}, "end_point": {"row": 326, "column": 15}}, {"id": 1168, "type": "identifier", "text": "Zone", "parent": 1166, "children": [], "start_point": {"row": 326, "column": 17}, "end_point": {"row": 326, "column": 21}}, {"id": 1169, "type": "pointer_declarator", "text": "*() const", "parent": 1164, "children": [1170, 1171, 1172], "start_point": {"row": 326, "column": 21}, "end_point": {"row": 326, "column": 30}}, {"id": 1170, "type": "*", "text": "*", "parent": 1169, "children": [], "start_point": {"row": 326, "column": 21}, "end_point": {"row": 326, "column": 22}}, {"id": 1171, "type": "ERROR", "text": "()", "parent": 1169, "children": [], "start_point": {"row": 326, "column": 22}, "end_point": {"row": 326, "column": 24}}, {"id": 1172, "type": "identifier", "text": "", "parent": 1169, "children": [], "start_point": {"row": 326, "column": 30}, "end_point": {"row": 326, "column": 30}}, {"id": 1173, "type": "return_statement", "text": "return get();", "parent": 1164, "children": [1174], "start_point": {"row": 326, "column": 33}, "end_point": {"row": 326, "column": 46}}, {"id": 1174, "type": "call_expression", "text": "get()", "parent": 1173, "children": [1175, 1176], "start_point": {"row": 326, "column": 40}, "end_point": {"row": 326, "column": 45}}, {"id": 1175, "type": "identifier", "text": "get", "parent": 1174, "children": [], "start_point": {"row": 326, "column": 40}, "end_point": {"row": 326, "column": 43}}, {"id": 1176, "type": "argument_list", "text": "()", "parent": 1174, "children": [], "start_point": {"row": 326, "column": 43}, "end_point": {"row": 326, "column": 45}}, {"id": 1177, "type": "labeled_statement", "text": "JS::Zone* operator->() const { return get(); }", "parent": 1058, "children": [1178, 1179], "start_point": {"row": 327, "column": 4}, "end_point": {"row": 327, "column": 50}}, {"id": 1178, "type": "statement_identifier", "text": "JS", "parent": 1177, "children": [], "start_point": {"row": 327, "column": 4}, "end_point": {"row": 327, "column": 6}}, {"id": 1179, "type": "ERROR", "text": ":Zone* operator->() const", "parent": 1177, "children": [1180], "start_point": {"row": 327, "column": 7}, "end_point": {"row": 327, "column": 32}}, {"id": 1180, "type": "binary_expression", "text": "Zone* operator->()", "parent": 1179, "children": [1181, 1182, 1183], "start_point": {"row": 327, "column": 8}, "end_point": {"row": 327, "column": 26}}, {"id": 1181, "type": "identifier", "text": "Zone", "parent": 1180, "children": [], "start_point": {"row": 327, "column": 8}, "end_point": {"row": 327, "column": 12}}, {"id": 1182, "type": "*", "text": "*", "parent": 1180, "children": [], "start_point": {"row": 327, "column": 12}, "end_point": {"row": 327, "column": 13}}, {"id": 1183, "type": "call_expression", "text": "operator->()", "parent": 1180, "children": [1184, 1187], "start_point": {"row": 327, "column": 14}, "end_point": {"row": 327, "column": 26}}, {"id": 1184, "type": "field_expression", "text": "operator->", "parent": 1183, "children": [1185, 1186], "start_point": {"row": 327, "column": 14}, "end_point": {"row": 327, "column": 24}}, {"id": 1185, "type": "identifier", "text": "operator", "parent": 1184, "children": [], "start_point": {"row": 327, "column": 14}, "end_point": {"row": 327, "column": 22}}, {"id": 1186, "type": "field_identifier", "text": "", "parent": 1184, "children": [], "start_point": {"row": 327, "column": 24}, "end_point": {"row": 327, "column": 24}}, {"id": 1187, "type": "argument_list", "text": "()", "parent": 1183, "children": [], "start_point": {"row": 327, "column": 24}, "end_point": {"row": 327, "column": 26}}, {"id": 1188, "type": "return_statement", "text": "return get();", "parent": 1177, "children": [1189], "start_point": {"row": 327, "column": 35}, "end_point": {"row": 327, "column": 48}}, {"id": 1189, "type": "call_expression", "text": "get()", "parent": 1188, "children": [1190, 1191], "start_point": {"row": 327, "column": 42}, "end_point": {"row": 327, "column": 47}}, {"id": 1190, "type": "identifier", "text": "get", "parent": 1189, "children": [], "start_point": {"row": 327, "column": 42}, "end_point": {"row": 327, "column": 45}}, {"id": 1191, "type": "argument_list", "text": "()", "parent": 1189, "children": [], "start_point": {"row": 327, "column": 45}, "end_point": {"row": 327, "column": 47}}, {"id": 1192, "type": "type_definition", "text": "typedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;", "parent": 0, "children": [1193, 1194, 1195, 1199], "start_point": {"row": 330, "column": 0}, "end_point": {"row": 330, "column": 58}}, {"id": 1193, "type": "typedef", "text": "typedef", "parent": 1192, "children": [], "start_point": {"row": 330, "column": 0}, "end_point": {"row": 330, "column": 7}}, {"id": 1194, "type": "type_identifier", "text": "CompartmentsIterT", "parent": 1192, "children": [], "start_point": {"row": 330, "column": 8}, "end_point": {"row": 330, "column": 25}}, {"id": 1195, "type": "ERROR", "text": "<GCZonesIter>", "parent": 1192, "children": [1196, 1197, 1198], "start_point": {"row": 330, "column": 25}, "end_point": {"row": 330, "column": 38}}, {"id": 1196, "type": "<", "text": "<", "parent": 1195, "children": [], "start_point": {"row": 330, "column": 25}, "end_point": {"row": 330, "column": 26}}, {"id": 1197, "type": "type_identifier", "text": "GCZonesIter", "parent": 1195, "children": [], "start_point": {"row": 330, "column": 26}, "end_point": {"row": 330, "column": 37}}, {"id": 1198, "type": ">", "text": ">", "parent": 1195, "children": [], "start_point": {"row": 330, "column": 37}, "end_point": {"row": 330, "column": 38}}, {"id": 1199, "type": "type_identifier", "text": "GCCompartmentsIter", "parent": 1192, "children": [], "start_point": {"row": 330, "column": 39}, "end_point": {"row": 330, "column": 57}}, {"id": 1200, "type": "function_definition", "text": "class GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n}", "parent": 0, "children": [1201], "start_point": {"row": 333, "column": 0}, "end_point": {"row": 357, "column": 1}}, {"id": 1201, "type": "identifier", "text": "GCZoneGroupIter", "parent": 1200, "children": [], "start_point": {"row": 333, "column": 6}, "end_point": {"row": 333, "column": 21}}, {"id": 1202, "type": "labeled_statement", "text": "private:\n JS::Zone* current;", "parent": 1200, "children": [1203], "start_point": {"row": 334, "column": 2}, "end_point": {"row": 335, "column": 22}}, {"id": 1203, "type": "labeled_statement", "text": "JS::Zone* current;", "parent": 1202, "children": [1204, 1205], "start_point": {"row": 335, "column": 4}, "end_point": {"row": 335, "column": 22}}, {"id": 1204, "type": "statement_identifier", "text": "JS", "parent": 1203, "children": [], "start_point": {"row": 335, "column": 4}, "end_point": {"row": 335, "column": 6}}, {"id": 1205, "type": "declaration", "text": "Zone* current;", "parent": 1203, "children": [1206, 1207], "start_point": {"row": 335, "column": 8}, "end_point": {"row": 335, "column": 22}}, {"id": 1206, "type": "type_identifier", "text": "Zone", "parent": 1205, "children": [], "start_point": {"row": 335, "column": 8}, "end_point": {"row": 335, "column": 12}}, {"id": 1207, "type": "pointer_declarator", "text": "* current", "parent": 1205, "children": [1208, 1209], "start_point": {"row": 335, "column": 12}, "end_point": {"row": 335, "column": 21}}, {"id": 1208, "type": "*", "text": "*", "parent": 1207, "children": [], "start_point": {"row": 335, "column": 12}, "end_point": {"row": 335, "column": 13}}, {"id": 1209, "type": "identifier", "text": "current", "parent": 1207, "children": [], "start_point": {"row": 335, "column": 14}, "end_point": {"row": 335, "column": 21}}, {"id": 1210, "type": "labeled_statement", "text": "public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }", "parent": 1200, "children": [1211], "start_point": {"row": 337, "column": 2}, "end_point": {"row": 341, "column": 5}}, {"id": 1211, "type": "ERROR", "text": "explicit GCZoneGroupIter(JSRuntime* rt)", "parent": 1210, "children": [1212, 1213], "start_point": {"row": 338, "column": 4}, "end_point": {"row": 338, "column": 43}}, {"id": 1212, "type": "type_identifier", "text": "explicit", "parent": 1211, "children": [], "start_point": {"row": 338, "column": 4}, "end_point": {"row": 338, "column": 12}}, {"id": 1213, "type": "function_declarator", "text": "GCZoneGroupIter(JSRuntime* rt)", "parent": 1211, "children": [1214, 1215], "start_point": {"row": 338, "column": 13}, "end_point": {"row": 338, "column": 43}}, {"id": 1214, "type": "identifier", "text": "GCZoneGroupIter", "parent": 1213, "children": [], "start_point": {"row": 338, "column": 13}, "end_point": {"row": 338, "column": 28}}, {"id": 1215, "type": "parameter_list", "text": "(JSRuntime* rt)", "parent": 1213, "children": [1216], "start_point": {"row": 338, "column": 28}, "end_point": {"row": 338, "column": 43}}, {"id": 1216, "type": "parameter_declaration", "text": "JSRuntime* rt", "parent": 1215, "children": [1217, 1218], "start_point": {"row": 338, "column": 29}, "end_point": {"row": 338, "column": 42}}, {"id": 1217, "type": "type_identifier", "text": "JSRuntime", "parent": 1216, "children": [], "start_point": {"row": 338, "column": 29}, "end_point": {"row": 338, "column": 38}}, {"id": 1218, "type": "pointer_declarator", "text": "* rt", "parent": 1216, "children": [1219, 1220], "start_point": {"row": 338, "column": 38}, "end_point": {"row": 338, "column": 42}}, {"id": 1219, "type": "*", "text": "*", "parent": 1218, "children": [], "start_point": {"row": 338, "column": 38}, "end_point": {"row": 338, "column": 39}}, {"id": 1220, "type": "identifier", "text": "rt", "parent": 1218, "children": [], "start_point": {"row": 338, "column": 40}, "end_point": {"row": 338, "column": 42}}, {"id": 1221, "type": "call_expression", "text": "MOZ_ASSERT(rt->isHeapBusy())", "parent": 1210, "children": [1222, 1223], "start_point": {"row": 339, "column": 8}, "end_point": {"row": 339, "column": 36}}, {"id": 1222, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1221, "children": [], "start_point": {"row": 339, "column": 8}, "end_point": {"row": 339, "column": 18}}, {"id": 1223, "type": "argument_list", "text": "(rt->isHeapBusy())", "parent": 1221, "children": [1224], "start_point": {"row": 339, "column": 18}, "end_point": {"row": 339, "column": 36}}, {"id": 1224, "type": "call_expression", "text": "rt->isHeapBusy()", "parent": 1223, "children": [1225, 1228], "start_point": {"row": 339, "column": 19}, "end_point": {"row": 339, "column": 35}}, {"id": 1225, "type": "field_expression", "text": "rt->isHeapBusy", "parent": 1224, "children": [1226, 1227], "start_point": {"row": 339, "column": 19}, "end_point": {"row": 339, "column": 33}}, {"id": 1226, "type": "identifier", "text": "rt", "parent": 1225, "children": [], "start_point": {"row": 339, "column": 19}, "end_point": {"row": 339, "column": 21}}, {"id": 1227, "type": "field_identifier", "text": "isHeapBusy", "parent": 1225, "children": [], "start_point": {"row": 339, "column": 23}, "end_point": {"row": 339, "column": 33}}, {"id": 1228, "type": "argument_list", "text": "()", "parent": 1224, "children": [], "start_point": {"row": 339, "column": 33}, "end_point": {"row": 339, "column": 35}}, {"id": 1229, "type": "assignment_expression", "text": "current = rt->gc.getCurrentZoneGroup()", "parent": 1210, "children": [1230, 1231, 1232], "start_point": {"row": 340, "column": 8}, "end_point": {"row": 340, "column": 46}}, {"id": 1230, "type": "identifier", "text": "current", "parent": 1229, "children": [], "start_point": {"row": 340, "column": 8}, "end_point": {"row": 340, "column": 15}}, {"id": 1231, "type": "=", "text": "=", "parent": 1229, "children": [], "start_point": {"row": 340, "column": 16}, "end_point": {"row": 340, "column": 17}}, {"id": 1232, "type": "call_expression", "text": "rt->gc.getCurrentZoneGroup()", "parent": 1229, "children": [1233, 1238], "start_point": {"row": 340, "column": 18}, "end_point": {"row": 340, "column": 46}}, {"id": 1233, "type": "field_expression", "text": "rt->gc.getCurrentZoneGroup", "parent": 1232, "children": [1234, 1237], "start_point": {"row": 340, "column": 18}, "end_point": {"row": 340, "column": 44}}, {"id": 1234, "type": "field_expression", "text": "rt->gc", "parent": 1233, "children": [1235, 1236], "start_point": {"row": 340, "column": 18}, "end_point": {"row": 340, "column": 24}}, {"id": 1235, "type": "identifier", "text": "rt", "parent": 1234, "children": [], "start_point": {"row": 340, "column": 18}, "end_point": {"row": 340, "column": 20}}, {"id": 1236, "type": "field_identifier", "text": "gc", "parent": 1234, "children": [], "start_point": {"row": 340, "column": 22}, "end_point": {"row": 340, "column": 24}}, {"id": 1237, "type": "field_identifier", "text": "getCurrentZoneGroup", "parent": 1233, "children": [], "start_point": {"row": 340, "column": 25}, "end_point": {"row": 340, "column": 44}}, {"id": 1238, "type": "argument_list", "text": "()", "parent": 1232, "children": [], "start_point": {"row": 340, "column": 44}, "end_point": {"row": 340, "column": 46}}, {"id": 1239, "type": "ERROR", "text": "bool done() const", "parent": 1200, "children": [1240, 1241], "start_point": {"row": 343, "column": 4}, "end_point": {"row": 343, "column": 21}}, {"id": 1240, "type": "primitive_type", "text": "bool", "parent": 1239, "children": [], "start_point": {"row": 343, "column": 4}, "end_point": {"row": 343, "column": 8}}, {"id": 1241, "type": "function_declarator", "text": "done()", "parent": 1239, "children": [1242, 1243], "start_point": {"row": 343, "column": 9}, "end_point": {"row": 343, "column": 15}}, {"id": 1242, "type": "identifier", "text": "done", "parent": 1241, "children": [], "start_point": {"row": 343, "column": 9}, "end_point": {"row": 343, "column": 13}}, {"id": 1243, "type": "parameter_list", "text": "()", "parent": 1241, "children": [], "start_point": {"row": 343, "column": 13}, "end_point": {"row": 343, "column": 15}}, {"id": 1244, "type": "return_statement", "text": "return !current;", "parent": 1200, "children": [1245], "start_point": {"row": 343, "column": 24}, "end_point": {"row": 343, "column": 40}}, {"id": 1245, "type": "unary_expression", "text": "!current", "parent": 1244, "children": [1246, 1247], "start_point": {"row": 343, "column": 31}, "end_point": {"row": 343, "column": 39}}, {"id": 1246, "type": "!", "text": "!", "parent": 1245, "children": [], "start_point": {"row": 343, "column": 31}, "end_point": {"row": 343, "column": 32}}, {"id": 1247, "type": "identifier", "text": "current", "parent": 1245, "children": [], "start_point": {"row": 343, "column": 32}, "end_point": {"row": 343, "column": 39}}, {"id": 1248, "type": "function_definition", "text": "void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }", "parent": 1200, "children": [1249, 1250], "start_point": {"row": 345, "column": 4}, "end_point": {"row": 348, "column": 5}}, {"id": 1249, "type": "primitive_type", "text": "void", "parent": 1248, "children": [], "start_point": {"row": 345, "column": 4}, "end_point": {"row": 345, "column": 8}}, {"id": 1250, "type": "function_declarator", "text": "next()", "parent": 1248, "children": [1251, 1252], "start_point": {"row": 345, "column": 9}, "end_point": {"row": 345, "column": 15}}, {"id": 1251, "type": "identifier", "text": "next", "parent": 1250, "children": [], "start_point": {"row": 345, "column": 9}, "end_point": {"row": 345, "column": 13}}, {"id": 1252, "type": "parameter_list", "text": "()", "parent": 1250, "children": [], "start_point": {"row": 345, "column": 13}, "end_point": {"row": 345, "column": 15}}, {"id": 1253, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 1248, "children": [1254, 1255], "start_point": {"row": 346, "column": 8}, "end_point": {"row": 346, "column": 27}}, {"id": 1254, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1253, "children": [], "start_point": {"row": 346, "column": 8}, "end_point": {"row": 346, "column": 18}}, {"id": 1255, "type": "argument_list", "text": "(!done())", "parent": 1253, "children": [1256], "start_point": {"row": 346, "column": 18}, "end_point": {"row": 346, "column": 27}}, {"id": 1256, "type": "unary_expression", "text": "!done()", "parent": 1255, "children": [1257, 1258], "start_point": {"row": 346, "column": 19}, "end_point": {"row": 346, "column": 26}}, {"id": 1257, "type": "!", "text": "!", "parent": 1256, "children": [], "start_point": {"row": 346, "column": 19}, "end_point": {"row": 346, "column": 20}}, {"id": 1258, "type": "call_expression", "text": "done()", "parent": 1256, "children": [1259, 1260], "start_point": {"row": 346, "column": 20}, "end_point": {"row": 346, "column": 26}}, {"id": 1259, "type": "identifier", "text": "done", "parent": 1258, "children": [], "start_point": {"row": 346, "column": 20}, "end_point": {"row": 346, "column": 24}}, {"id": 1260, "type": "argument_list", "text": "()", "parent": 1258, "children": [], "start_point": {"row": 346, "column": 24}, "end_point": {"row": 346, "column": 26}}, {"id": 1261, "type": "assignment_expression", "text": "current = current->nextNodeInGroup()", "parent": 1248, "children": [1262, 1263, 1264], "start_point": {"row": 347, "column": 8}, "end_point": {"row": 347, "column": 44}}, {"id": 1262, "type": "identifier", "text": "current", "parent": 1261, "children": [], "start_point": {"row": 347, "column": 8}, "end_point": {"row": 347, "column": 15}}, {"id": 1263, "type": "=", "text": "=", "parent": 1261, "children": [], "start_point": {"row": 347, "column": 16}, "end_point": {"row": 347, "column": 17}}, {"id": 1264, "type": "call_expression", "text": "current->nextNodeInGroup()", "parent": 1261, "children": [1265, 1268], "start_point": {"row": 347, "column": 18}, "end_point": {"row": 347, "column": 44}}, {"id": 1265, "type": "field_expression", "text": "current->nextNodeInGroup", "parent": 1264, "children": [1266, 1267], "start_point": {"row": 347, "column": 18}, "end_point": {"row": 347, "column": 42}}, {"id": 1266, "type": "identifier", "text": "current", "parent": 1265, "children": [], "start_point": {"row": 347, "column": 18}, "end_point": {"row": 347, "column": 25}}, {"id": 1267, "type": "field_identifier", "text": "nextNodeInGroup", "parent": 1265, "children": [], "start_point": {"row": 347, "column": 27}, "end_point": {"row": 347, "column": 42}}, {"id": 1268, "type": "argument_list", "text": "()", "parent": 1264, "children": [], "start_point": {"row": 347, "column": 42}, "end_point": {"row": 347, "column": 44}}, {"id": 1269, "type": "labeled_statement", "text": "JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }", "parent": 1200, "children": [1270, 1271], "start_point": {"row": 350, "column": 4}, "end_point": {"row": 353, "column": 5}}, {"id": 1270, "type": "statement_identifier", "text": "JS", "parent": 1269, "children": [], "start_point": {"row": 350, "column": 4}, "end_point": {"row": 350, "column": 6}}, {"id": 1271, "type": "ERROR", "text": ":Zone* get() const", "parent": 1269, "children": [1272, 1273], "start_point": {"row": 350, "column": 7}, "end_point": {"row": 350, "column": 25}}, {"id": 1272, "type": "type_identifier", "text": "Zone", "parent": 1271, "children": [], "start_point": {"row": 350, "column": 8}, "end_point": {"row": 350, "column": 12}}, {"id": 1273, "type": "pointer_declarator", "text": "* get() const", "parent": 1271, "children": [1274, 1275], "start_point": {"row": 350, "column": 12}, "end_point": {"row": 350, "column": 25}}, {"id": 1274, "type": "*", "text": "*", "parent": 1273, "children": [], "start_point": {"row": 350, "column": 12}, "end_point": {"row": 350, "column": 13}}, {"id": 1275, "type": "function_declarator", "text": "get() const", "parent": 1273, "children": [1276, 1277], "start_point": {"row": 350, "column": 14}, "end_point": {"row": 350, "column": 25}}, {"id": 1276, "type": "identifier", "text": "get", "parent": 1275, "children": [], "start_point": {"row": 350, "column": 14}, "end_point": {"row": 350, "column": 17}}, {"id": 1277, "type": "parameter_list", "text": "()", "parent": 1275, "children": [], "start_point": {"row": 350, "column": 17}, "end_point": {"row": 350, "column": 19}}, {"id": 1278, "type": "call_expression", "text": "MOZ_ASSERT(!done())", "parent": 1269, "children": [1279, 1280], "start_point": {"row": 351, "column": 8}, "end_point": {"row": 351, "column": 27}}, {"id": 1279, "type": "identifier", "text": "MOZ_ASSERT", "parent": 1278, "children": [], "start_point": {"row": 351, "column": 8}, "end_point": {"row": 351, "column": 18}}, {"id": 1280, "type": "argument_list", "text": "(!done())", "parent": 1278, "children": [1281], "start_point": {"row": 351, "column": 18}, "end_point": {"row": 351, "column": 27}}, {"id": 1281, "type": "unary_expression", "text": "!done()", "parent": 1280, "children": [1282, 1283], "start_point": {"row": 351, "column": 19}, "end_point": {"row": 351, "column": 26}}, {"id": 1282, "type": "!", "text": "!", "parent": 1281, "children": [], "start_point": {"row": 351, "column": 19}, "end_point": {"row": 351, "column": 20}}, {"id": 1283, "type": "call_expression", "text": "done()", "parent": 1281, "children": [1284, 1285], "start_point": {"row": 351, "column": 20}, "end_point": {"row": 351, "column": 26}}, {"id": 1284, "type": "identifier", "text": "done", "parent": 1283, "children": [], "start_point": {"row": 351, "column": 20}, "end_point": {"row": 351, "column": 24}}, {"id": 1285, "type": "argument_list", "text": "()", "parent": 1283, "children": [], "start_point": {"row": 351, "column": 24}, "end_point": {"row": 351, "column": 26}}, {"id": 1286, "type": "return_statement", "text": "return current;", "parent": 1269, "children": [1287], "start_point": {"row": 352, "column": 8}, "end_point": {"row": 352, "column": 23}}, {"id": 1287, "type": "identifier", "text": "current", "parent": 1286, "children": [], "start_point": {"row": 352, "column": 15}, "end_point": {"row": 352, "column": 22}}, {"id": 1288, "type": "function_definition", "text": "operator JS::Zone*() const { return get(); }", "parent": 1200, "children": [1289, 1290, 1293], "start_point": {"row": 355, "column": 4}, "end_point": {"row": 355, "column": 48}}, {"id": 1289, "type": "type_identifier", "text": "operator", "parent": 1288, "children": [], "start_point": {"row": 355, "column": 4}, "end_point": {"row": 355, "column": 12}}, {"id": 1290, "type": "ERROR", "text": "JS::Zone", "parent": 1288, "children": [1291, 1292], "start_point": {"row": 355, "column": 13}, "end_point": {"row": 355, "column": 21}}, {"id": 1291, "type": "identifier", "text": "JS", "parent": 1290, "children": [], "start_point": {"row": 355, "column": 13}, "end_point": {"row": 355, "column": 15}}, {"id": 1292, "type": "identifier", "text": "Zone", "parent": 1290, "children": [], "start_point": {"row": 355, "column": 17}, "end_point": {"row": 355, "column": 21}}, {"id": 1293, "type": "pointer_declarator", "text": "*() const", "parent": 1288, "children": [1294, 1295, 1296], "start_point": {"row": 355, "column": 21}, "end_point": {"row": 355, "column": 30}}, {"id": 1294, "type": "*", "text": "*", "parent": 1293, "children": [], "start_point": {"row": 355, "column": 21}, "end_point": {"row": 355, "column": 22}}, {"id": 1295, "type": "ERROR", "text": "()", "parent": 1293, "children": [], "start_point": {"row": 355, "column": 22}, "end_point": {"row": 355, "column": 24}}, {"id": 1296, "type": "identifier", "text": "", "parent": 1293, "children": [], "start_point": {"row": 355, "column": 30}, "end_point": {"row": 355, "column": 30}}, {"id": 1297, "type": "return_statement", "text": "return get();", "parent": 1288, "children": [1298], "start_point": {"row": 355, "column": 33}, "end_point": {"row": 355, "column": 46}}, {"id": 1298, "type": "call_expression", "text": "get()", "parent": 1297, "children": [1299, 1300], "start_point": {"row": 355, "column": 40}, "end_point": {"row": 355, "column": 45}}, {"id": 1299, "type": "identifier", "text": "get", "parent": 1298, "children": [], "start_point": {"row": 355, "column": 40}, "end_point": {"row": 355, "column": 43}}, {"id": 1300, "type": "argument_list", "text": "()", "parent": 1298, "children": [], "start_point": {"row": 355, "column": 43}, "end_point": {"row": 355, "column": 45}}, {"id": 1301, "type": "labeled_statement", "text": "JS::Zone* operator->() const { return get(); }", "parent": 1200, "children": [1302, 1303], "start_point": {"row": 356, "column": 4}, "end_point": {"row": 356, "column": 50}}, {"id": 1302, "type": "statement_identifier", "text": "JS", "parent": 1301, "children": [], "start_point": {"row": 356, "column": 4}, "end_point": {"row": 356, "column": 6}}, {"id": 1303, "type": "ERROR", "text": ":Zone* operator->() const", "parent": 1301, "children": [1304], "start_point": {"row": 356, "column": 7}, "end_point": {"row": 356, "column": 32}}, {"id": 1304, "type": "binary_expression", "text": "Zone* operator->()", "parent": 1303, "children": [1305, 1306, 1307], "start_point": {"row": 356, "column": 8}, "end_point": {"row": 356, "column": 26}}, {"id": 1305, "type": "identifier", "text": "Zone", "parent": 1304, "children": [], "start_point": {"row": 356, "column": 8}, "end_point": {"row": 356, "column": 12}}, {"id": 1306, "type": "*", "text": "*", "parent": 1304, "children": [], "start_point": {"row": 356, "column": 12}, "end_point": {"row": 356, "column": 13}}, {"id": 1307, "type": "call_expression", "text": "operator->()", "parent": 1304, "children": [1308, 1311], "start_point": {"row": 356, "column": 14}, "end_point": {"row": 356, "column": 26}}, {"id": 1308, "type": "field_expression", "text": "operator->", "parent": 1307, "children": [1309, 1310], "start_point": {"row": 356, "column": 14}, "end_point": {"row": 356, "column": 24}}, {"id": 1309, "type": "identifier", "text": "operator", "parent": 1308, "children": [], "start_point": {"row": 356, "column": 14}, "end_point": {"row": 356, "column": 22}}, {"id": 1310, "type": "field_identifier", "text": "", "parent": 1308, "children": [], "start_point": {"row": 356, "column": 24}, "end_point": {"row": 356, "column": 24}}, {"id": 1311, "type": "argument_list", "text": "()", "parent": 1307, "children": [], "start_point": {"row": 356, "column": 24}, "end_point": {"row": 356, "column": 26}}, {"id": 1312, "type": "return_statement", "text": "return get();", "parent": 1301, "children": [1313], "start_point": {"row": 356, "column": 35}, "end_point": {"row": 356, "column": 48}}, {"id": 1313, "type": "call_expression", "text": "get()", "parent": 1312, "children": [1314, 1315], "start_point": {"row": 356, "column": 42}, "end_point": {"row": 356, "column": 47}}, {"id": 1314, "type": "identifier", "text": "get", "parent": 1313, "children": [], "start_point": {"row": 356, "column": 42}, "end_point": {"row": 356, "column": 45}}, {"id": 1315, "type": "argument_list", "text": "()", "parent": 1313, "children": [], "start_point": {"row": 356, "column": 45}, "end_point": {"row": 356, "column": 47}}, {"id": 1316, "type": "type_definition", "text": "typedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;", "parent": 0, "children": [1317, 1318, 1319, 1323], "start_point": {"row": 359, "column": 0}, "end_point": {"row": 359, "column": 66}}, {"id": 1317, "type": "typedef", "text": "typedef", "parent": 1316, "children": [], "start_point": {"row": 359, "column": 0}, "end_point": {"row": 359, "column": 7}}, {"id": 1318, "type": "type_identifier", "text": "CompartmentsIterT", "parent": 1316, "children": [], "start_point": {"row": 359, "column": 8}, "end_point": {"row": 359, "column": 25}}, {"id": 1319, "type": "ERROR", "text": "<GCZoneGroupIter>", "parent": 1316, "children": [1320, 1321, 1322], "start_point": {"row": 359, "column": 25}, "end_point": {"row": 359, "column": 42}}, {"id": 1320, "type": "<", "text": "<", "parent": 1319, "children": [], "start_point": {"row": 359, "column": 25}, "end_point": {"row": 359, "column": 26}}, {"id": 1321, "type": "type_identifier", "text": "GCZoneGroupIter", "parent": 1319, "children": [], "start_point": {"row": 359, "column": 26}, "end_point": {"row": 359, "column": 41}}, {"id": 1322, "type": ">", "text": ">", "parent": 1319, "children": [], "start_point": {"row": 359, "column": 41}, "end_point": {"row": 359, "column": 42}}, {"id": 1323, "type": "type_identifier", "text": "GCCompartmentGroupIter", "parent": 1316, "children": [], "start_point": {"row": 359, "column": 43}, "end_point": {"row": 359, "column": 65}}, {"id": 1324, "type": "ERROR", "text": "} /* namespace gc */\n}", "parent": 0, "children": [], "start_point": {"row": 361, "column": 0}, "end_point": {"row": 362, "column": 1}}, {"id": 1325, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 364, "column": 0}, "end_point": {"row": 364, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 21, 25, 67, 73, 94, 143, 150, 152, 232, 239, 243, 248, 250, 285, 309, 311, 372, 374, 422, 424, 463, 465, 514, 522, 526, 584, 586, 629, 636, 662, 670, 678, 683, 695, 697, 750, 793, 797, 814, 816, 873, 920, 1058, 1067, 1100, 1109, 1111, 1151, 1164, 1200, 1213, 1241, 1248, 1250, 1275, 1288], "variables": [28, 43, 96, 101, 106, 135, 146, 148, 155, 162, 287, 290, 296, 300, 303, 306, 377, 382, 427, 435, 468, 485, 639, 667, 673, 681, 685, 688, 700, 707, 926, 929, 934, 961, 1061, 1070, 1075, 1192, 1205, 1216, 1316], "classes": [22, 68], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [34, 35, 48, 53, 54, 55, 59, 63, 84, 85, 112, 168, 169, 170, 179, 180, 181, 190, 191, 192, 199, 200, 213, 214, 236, 253, 256, 258, 264, 268, 269, 314, 317, 319, 322, 327, 328, 331, 337, 338, 346, 348, 349, 355, 358, 359, 363, 364, 368, 387, 388, 405, 414, 418, 440, 441, 445, 448, 449, 450, 451, 459, 473, 480, 481, 490, 491, 498, 505, 509, 518, 529, 532, 534, 538, 539, 546, 549, 550, 557, 560, 563, 566, 568, 572, 573, 580, 581, 589, 592, 594, 602, 603, 607, 610, 611, 612, 617, 626, 644, 647, 648, 649, 650, 651, 658, 692, 710, 713, 714, 715, 721, 722, 729, 730, 732, 733, 737, 738, 742, 743, 754, 755, 760, 761, 768, 771, 774, 777, 779, 783, 784, 785, 791, 800, 803, 805, 809, 810, 819, 822, 824, 827, 828, 833, 834, 835, 839, 842, 844, 845, 849, 850, 855, 856, 858, 859, 863, 864, 868, 869, 878, 879, 880, 881, 882, 883, 903, 906, 907, 908, 909, 915, 949, 950, 953, 954, 957, 968, 969, 974, 975, 976, 981, 982, 983, 989, 990, 991, 996, 997, 998, 1004, 1005, 1006, 1017, 1020, 1022, 1023, 1027, 1028, 1033, 1034, 1039, 1044, 1046, 1050, 1052, 1053, 1081, 1087, 1088, 1090, 1091, 1095, 1104, 1105, 1114, 1117, 1119, 1123, 1124, 1128, 1129, 1130, 1132, 1133, 1138, 1140, 1141, 1154, 1157, 1159, 1174, 1180, 1183, 1184, 1189, 1221, 1224, 1225, 1232, 1233, 1234, 1245, 1253, 1256, 1258, 1264, 1265, 1278, 1281, 1283, 1298, 1304, 1307, 1308, 1313], "assignments": [76, 89, 115, 120, 125, 165, 176, 187, 203, 207, 217, 221, 225, 261, 272, 276, 280, 334, 343, 395, 401, 410, 477, 495, 502, 597, 1011, 1229, 1261], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 24, 26, 29, 32, 33, 36, 38, 40, 42, 46, 49, 51, 52, 56, 57, 58, 60, 64, 66, 72, 74, 77, 80, 81, 82, 83, 86, 88, 90, 93, 95, 97, 100, 102, 105, 107, 110, 113, 116, 121, 126, 131, 134, 136, 139, 141, 142, 144, 147, 149, 153, 156, 158, 161, 163, 164, 166, 171, 172, 173, 175, 177, 182, 183, 184, 186, 188, 193, 194, 195, 197, 198, 202, 204, 206, 208, 212, 216, 218, 220, 222, 224, 226, 233, 238, 240, 244, 247, 251, 254, 259, 262, 265, 266, 267, 271, 273, 275, 277, 279, 281, 286, 289, 292, 293, 294, 295, 298, 299, 301, 302, 305, 308, 312, 315, 320, 323, 325, 326, 329, 332, 333, 335, 339, 340, 342, 344, 350, 351, 356, 360, 365, 369, 375, 378, 381, 383, 385, 389, 390, 392, 393, 394, 396, 399, 402, 404, 406, 408, 411, 413, 415, 417, 419, 421, 425, 428, 431, 432, 433, 434, 436, 438, 442, 443, 446, 452, 453, 454, 455, 457, 458, 460, 462, 466, 469, 472, 474, 476, 478, 482, 483, 488, 492, 493, 496, 499, 501, 503, 506, 508, 510, 515, 519, 521, 523, 527, 530, 535, 540, 542, 547, 551, 553, 555, 558, 561, 564, 569, 574, 576, 582, 587, 590, 595, 598, 600, 601, 604, 606, 608, 613, 618, 620, 622, 624, 628, 630, 632, 635, 637, 640, 643, 645, 652, 653, 654, 656, 659, 661, 663, 665, 668, 671, 674, 677, 679, 682, 684, 686, 687, 689, 690, 693, 698, 701, 703, 706, 708, 709, 711, 716, 717, 718, 720, 723, 724, 726, 727, 728, 734, 735, 739, 740, 744, 745, 751, 756, 757, 762, 764, 766, 769, 772, 775, 780, 786, 787, 789, 792, 794, 798, 801, 806, 811, 812, 817, 820, 825, 829, 830, 832, 836, 837, 840, 846, 847, 851, 852, 854, 860, 861, 865, 866, 870, 871, 874, 876, 884, 887, 888, 891, 893, 894, 895, 896, 897, 899, 900, 901, 904, 910, 911, 913, 916, 918, 919, 922, 923, 925, 927, 928, 930, 933, 935, 936, 939, 942, 943, 946, 947, 948, 951, 955, 956, 958, 960, 962, 966, 970, 971, 973, 977, 979, 984, 985, 986, 988, 992, 993, 994, 999, 1000, 1001, 1003, 1007, 1008, 1010, 1012, 1018, 1024, 1025, 1029, 1030, 1032, 1035, 1036, 1038, 1040, 1042, 1043, 1047, 1049, 1051, 1054, 1055, 1057, 1059, 1062, 1063, 1066, 1068, 1071, 1074, 1076, 1078, 1080, 1082, 1084, 1085, 1086, 1092, 1093, 1096, 1101, 1106, 1107, 1112, 1115, 1120, 1125, 1126, 1134, 1135, 1142, 1143, 1146, 1148, 1152, 1155, 1160, 1163, 1165, 1167, 1168, 1172, 1175, 1178, 1181, 1185, 1186, 1190, 1194, 1197, 1199, 1201, 1204, 1206, 1209, 1212, 1214, 1217, 1220, 1222, 1226, 1227, 1230, 1235, 1236, 1237, 1242, 1247, 1251, 1254, 1259, 1262, 1266, 1267, 1270, 1272, 1276, 1279, 1284, 1287, 1289, 1291, 1292, 1296, 1299, 1302, 1305, 1309, 1310, 1314, 1318, 1321, 1323, 1325], "returns": [39, 62, 235, 246, 517, 537, 571, 753, 782, 808, 1103, 1162, 1173, 1188, 1244, 1286, 1297, 1312], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 92, 362, 367, 371], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "GCRuntime::poke", "text_snippet": "namespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if "}, {"node_id": 18, "universal_type": "function", "name": "GCRuntime::poke", "text_snippet": "namespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == Funct"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "static inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n "}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "GetGCObjectKind(const Class* clasp)"}, {"node_id": 67, "universal_type": "function", "name": "GCRuntime::poke", "text_snippet": "inline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen "}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "poke()"}, {"node_id": 94, "universal_type": "function", "name": "ArenaIter", "text_snippet": "class ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHe"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "init(zone, kind)"}, {"node_id": 150, "universal_type": "function", "name": "init", "text_snippet": "void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n "}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "init(JS::Zone* zone, AllocKind kind)"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "done()"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "ArenaHeader* get() const {\n return aheader;\n }"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "get() const"}, {"node_id": 248, "universal_type": "function", "name": "next", "text_snippet": "void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "next()"}, {"node_id": 285, "universal_type": "function", "name": "ArenaCellIterImpl", "text_snippet": "class ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingO"}, {"node_id": 309, "universal_type": "function", "name": "moveForwardIfFree", "text_snippet": "void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: "}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": "moveForwardIfFree()"}, {"node_id": 372, "universal_type": "function", "name": "initUnsynchronized", "text_snippet": "void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#i"}, {"node_id": 374, "universal_type": "function", "name": "unknown", "text_snippet": "initUnsynchronized(ArenaHeader* aheader)"}, {"node_id": 422, "universal_type": "function", "name": "init", "text_snippet": "void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n "}, {"node_id": 424, "universal_type": "function", "name": "unknown", "text_snippet": "init(ArenaHeader* aheader)"}, {"node_id": 463, "universal_type": "function", "name": "reset", "text_snippet": "void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFre"}, {"node_id": 465, "universal_type": "function", "name": "unknown", "text_snippet": "reset(ArenaHeader* aheader)"}, {"node_id": 514, "universal_type": "function", "name": "unknown", "text_snippet": "done()"}, {"node_id": 522, "universal_type": "function", "name": "unknown", "text_snippet": "TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredC"}, {"node_id": 526, "universal_type": "function", "name": "unknown", "text_snippet": "getCell() const"}, {"node_id": 584, "universal_type": "function", "name": "next", "text_snippet": "void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n "}, {"node_id": 586, "universal_type": "function", "name": "unknown", "text_snippet": "next()"}, {"node_id": 629, "universal_type": "function", "name": "ArenaCellIterUnderGC", "text_snippet": "class ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC("}, {"node_id": 636, "universal_type": "function", "name": "unknown", "text_snippet": "ArenaCellIterUnderGC(ArenaHeader* aheader)"}, {"node_id": 662, "universal_type": "function", "name": "ArenaCellIterUnderFinalize", "text_snippet": "class ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUn"}, {"node_id": 670, "universal_type": "function", "name": "unknown", "text_snippet": "ArenaCellIterUnderFinalize(ArenaHeader* aheader)"}, {"node_id": 678, "universal_type": "function", "name": "unknown", "text_snippet": "initUnsynchronized(aheader)"}, {"node_id": 683, "universal_type": "function", "name": "ZoneCellIterImpl", "text_snippet": "class ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n "}, {"node_id": 695, "universal_type": "function", "name": "init", "text_snippet": "void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(k"}, {"node_id": 697, "universal_type": "function", "name": "unknown", "text_snippet": "init(JS::Zone* zone, AllocKind kind)"}, {"node_id": 750, "universal_type": "function", "name": "unknown", "text_snippet": "done() const"}, {"node_id": 793, "universal_type": "function", "name": "unknown", "text_snippet": "Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }"}, {"node_id": 797, "universal_type": "function", "name": "unknown", "text_snippet": "getCell() const"}, {"node_id": 814, "universal_type": "function", "name": "next", "text_snippet": "void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n "}, {"node_id": 816, "universal_type": "function", "name": "unknown", "text_snippet": "next()"}, {"node_id": 873, "universal_type": "function", "name": "ZoneCellIterUnderGC", "text_snippet": "class ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zo"}, {"node_id": 920, "universal_type": "function", "name": "ZoneCellIter", "text_snippet": "class ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* li"}, {"node_id": 1058, "universal_type": "function", "name": "GCZonesIter", "text_snippet": "class GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt"}, {"node_id": 1067, "universal_type": "function", "name": "unknown", "text_snippet": "GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)"}, {"node_id": 1100, "universal_type": "function", "name": "unknown", "text_snippet": "done()"}, {"node_id": 1109, "universal_type": "function", "name": "next", "text_snippet": "void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!z"}, {"node_id": 1111, "universal_type": "function", "name": "unknown", "text_snippet": "next()"}, {"node_id": 1151, "universal_type": "function", "name": "unknown", "text_snippet": "get() const"}, {"node_id": 1164, "universal_type": "function", "name": "unknown", "text_snippet": "operator JS::Zone*() const { return get(); }"}, {"node_id": 1200, "universal_type": "function", "name": "GCZoneGroupIter", "text_snippet": "class GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JS"}, {"node_id": 1213, "universal_type": "function", "name": "unknown", "text_snippet": "GCZoneGroupIter(JSRuntime* rt)"}, {"node_id": 1241, "universal_type": "function", "name": "unknown", "text_snippet": "done()"}, {"node_id": 1248, "universal_type": "function", "name": "next", "text_snippet": "void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }"}, {"node_id": 1250, "universal_type": "function", "name": "unknown", "text_snippet": "next()"}, {"node_id": 1275, "universal_type": "function", "name": "unknown", "text_snippet": "get() const"}, {"node_id": 1288, "universal_type": "function", "name": "unknown", "text_snippet": "operator JS::Zone*() const { return get(); }"}], "class_declarations": [{"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"jsgc.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"gc/GCTrace.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"gc/Zone.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n * vim: set ts=8 sts=4 et sw=4 tw=99:\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n#ifndef jsgcinlines_h\n#define jsgcinlines_h\n\n#include \"jsgc.h\"\n\n#include \"gc/GCTrace.h\"\n#include \"gc/Zone.h\"\n\nnamespace js {\nnamespace gc {\n\nstatic inline AllocKind\nGetGCObjectKind(const Class* clasp)\n{\n if (clasp == FunctionClassPtr)\n return AllocKind::FUNCTION;\n uint32_t nslots = JSCLASS_RESERVED_SLOTS(clasp);\n if (clasp->flags & JSCLASS_HAS_PRIVATE)\n nslots++;\n return GetGCObjectKind(nslots);\n}\n\ninline void\nGCRuntime::poke()\n{\n poked = true;\n\n#ifdef JS_GC_ZEAL\n /* Schedule a GC to happen \"soon\" after a GC poke. */\n if (zealMode == ZealPokeValue)\n nextScheduled = 1;\n#endif\n}\n\nclass ArenaIter\n{\n ArenaHeader* aheader;\n ArenaHeader* unsweptHeader;\n ArenaHeader* sweptHeader;\n\n public:\n ArenaIter() {\n aheader = nullptr;\n unsweptHeader = nullptr;\n sweptHeader = nullptr;\n }\n\n ArenaIter(JS::Zone* zone, AllocKind kind) {\n init(zone, kind);\n }\n\n void init(JS::Zone* zone, AllocKind kind) {\n aheader = zone->arenas.getFirstArena(kind);\n unsweptHeader = zone->arenas.getFirstArenaToSweep(kind);\n sweptHeader = zone->arenas.getFirstSweptArena(kind);\n if (!unsweptHeader) {\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n\n bool done() const {\n return !aheader;\n }\n\n ArenaHeader* get() const {\n return aheader;\n }\n\n void next() {\n MOZ_ASSERT(!done());\n aheader = aheader->next;\n if (!aheader) {\n aheader = unsweptHeader;\n unsweptHeader = sweptHeader;\n sweptHeader = nullptr;\n }\n }\n};\n\nclass ArenaCellIterImpl\n{\n // These three are set in initUnsynchronized().\n size_t firstThingOffset;\n size_t thingSize;\n#ifdef DEBUG\n bool isInited;\n#endif\n\n // These three are set in reset() (which is called by init()).\n FreeSpan span;\n uintptr_t thing;\n uintptr_t limit;\n\n // Upon entry, |thing| points to any thing (free or used) and finds the\n // first used thing, which may be |thing|.\n void moveForwardIfFree() {\n MOZ_ASSERT(!done());\n MOZ_ASSERT(thing);\n // Note: if |span| is empty, this test will fail, which is what we want\n // -- |span| being empty means that we're past the end of the last free\n // thing, all the remaining things in the arena are used, and we'll\n // never need to move forward.\n if (thing == span.first) {\n thing = span.last + thingSize;\n span = *span.nextSpan();\n }\n }\n\n public:\n ArenaCellIterImpl()\n : firstThingOffset(0) // Squelch\n , thingSize(0) // warnings\n , limit(0)\n {\n }\n\n void initUnsynchronized(ArenaHeader* aheader) {\n AllocKind kind = aheader->getAllocKind();\n#ifdef DEBUG\n isInited = true;\n#endif\n firstThingOffset = Arena::firstThingOffset(kind);\n thingSize = Arena::thingSize(kind);\n reset(aheader);\n }\n\n void init(ArenaHeader* aheader) {\n#ifdef DEBUG\n AllocKind kind = aheader->getAllocKind();\n MOZ_ASSERT(aheader->zone->arenas.isSynchronizedFreeList(kind));\n#endif\n initUnsynchronized(aheader);\n }\n\n // Use this to move from an Arena of a particular kind to another Arena of\n // the same kind.\n void reset(ArenaHeader* aheader) {\n MOZ_ASSERT(isInited);\n span = aheader->getFirstFreeSpan();\n uintptr_t arenaAddr = aheader->arenaAddress();\n thing = arenaAddr + firstThingOffset;\n limit = arenaAddr + ArenaSize;\n moveForwardIfFree();\n }\n\n bool done() const {\n return thing == limit;\n }\n\n TenuredCell* getCell() const {\n MOZ_ASSERT(!done());\n return reinterpret_cast<TenuredCell*>(thing);\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return static_cast<T*>(getCell());\n }\n\n void next() {\n MOZ_ASSERT(!done());\n thing += thingSize;\n if (thing < limit)\n moveForwardIfFree();\n }\n};\n\ntemplate<>\nJSObject*\nArenaCellIterImpl::get<JSObject>() const;\n\nclass ArenaCellIterUnderGC : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderGC(ArenaHeader* aheader) {\n MOZ_ASSERT(aheader->zone->runtimeFromAnyThread()->isHeapBusy());\n init(aheader);\n }\n};\n\nclass ArenaCellIterUnderFinalize : public ArenaCellIterImpl\n{\n public:\n explicit ArenaCellIterUnderFinalize(ArenaHeader* aheader) {\n initUnsynchronized(aheader);\n }\n};\n\nclass ZoneCellIterImpl\n{\n ArenaIter arenaIter;\n ArenaCellIterImpl cellIter;\n\n protected:\n ZoneCellIterImpl() {}\n\n void init(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->arenas.isSynchronizedFreeList(kind));\n arenaIter.init(zone, kind);\n if (!arenaIter.done())\n cellIter.init(arenaIter.get());\n }\n\n public:\n bool done() const {\n return arenaIter.done();\n }\n\n template<typename T> T* get() const {\n MOZ_ASSERT(!done());\n return cellIter.get<T>();\n }\n\n Cell* getCell() const {\n MOZ_ASSERT(!done());\n return cellIter.getCell();\n }\n\n void next() {\n MOZ_ASSERT(!done());\n cellIter.next();\n if (cellIter.done()) {\n MOZ_ASSERT(!arenaIter.done());\n arenaIter.next();\n if (!arenaIter.done())\n cellIter.reset(arenaIter.get());\n }\n }\n};\n\nclass ZoneCellIterUnderGC : public ZoneCellIterImpl\n{\n public:\n ZoneCellIterUnderGC(JS::Zone* zone, AllocKind kind) {\n MOZ_ASSERT(zone->runtimeFromAnyThread()->gc.nursery.isEmpty());\n MOZ_ASSERT(zone->runtimeFromAnyThread()->isHeapBusy());\n init(zone, kind);\n }\n};\n\nclass ZoneCellIter : public ZoneCellIterImpl\n{\n JS::AutoAssertNoAlloc noAlloc;\n ArenaLists* lists;\n AllocKind kind;\n\n public:\n ZoneCellIter(JS::Zone* zone, AllocKind kind)\n : lists(&zone->arenas),\n kind(kind)\n {\n JSRuntime* rt = zone->runtimeFromMainThread();\n\n /*\n * We have a single-threaded runtime, so there's no need to protect\n * against other threads iterating or allocating. However, we do have\n * background finalization; we have to wait for this to finish if it's\n * currently active.\n */\n if (IsBackgroundFinalized(kind) &&\n zone->arenas.needBackgroundFinalizeWait(kind))\n {\n rt->gc.waitBackgroundSweepEnd();\n }\n\n /* Evict the nursery before iterating so we can see all things. */\n rt->gc.evictNursery();\n\n if (lists->isSynchronizedFreeList(kind)) {\n lists = nullptr;\n } else {\n MOZ_ASSERT(!rt->isHeapBusy());\n lists->copyFreeListToArena(kind);\n }\n\n /* Assert that no GCs can occur while a ZoneCellIter is live. */\n noAlloc.disallowAlloc(rt);\n\n init(zone, kind);\n }\n\n ~ZoneCellIter() {\n if (lists)\n lists->clearFreeListInArena(kind);\n }\n};\n\nclass GCZonesIter\n{\n private:\n ZonesIter zone;\n\n public:\n explicit GCZonesIter(JSRuntime* rt, ZoneSelector selector = WithAtoms)\n : zone(rt, selector)\n {\n if (!zone->isCollecting())\n next();\n }\n\n bool done() const { return zone.done(); }\n\n void next() {\n MOZ_ASSERT(!done());\n do {\n zone.next();\n } while (!zone.done() && !zone->isCollectingFromAnyThread());\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return zone;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZonesIter> GCCompartmentsIter;\n\n/* Iterates over all zones in the current zone group. */\nclass GCZoneGroupIter {\n private:\n JS::Zone* current;\n\n public:\n explicit GCZoneGroupIter(JSRuntime* rt) {\n MOZ_ASSERT(rt->isHeapBusy());\n current = rt->gc.getCurrentZoneGroup();\n }\n\n bool done() const { return !current; }\n\n void next() {\n MOZ_ASSERT(!done());\n current = current->nextNodeInGroup();\n }\n\n JS::Zone* get() const {\n MOZ_ASSERT(!done());\n return current;\n }\n\n operator JS::Zone*() const { return get(); }\n JS::Zone* operator->() const { return get(); }\n};\n\ntypedef CompartmentsIterT<GCZoneGroupIter> GCCompartmentGroupIter;\n\n} /* namespace gc */\n} /* namespace js */\n\n#endif /* jsgcinlines_h */\n"}
196
c
#ifndef EN_COMBO_RELATION_FINDER_H #define EN_COMBO_RELATION_FINDER_H // Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/limits.h" #include "Generic/common/Symbol.h" #include "Generic/common/UTF8OutputStream.h" class Parse; class Mention; class MentionSet; class ValueMentionSet; class EntitySet; class EntityType; class PropositionSet; class P1Decoder; class RelationObservation; class RelMentionSet; class RelMention; class DTTagSet; class VectorModel; class PatternMatcherModel; class TreeModel; class MaxEntModel; class PotentialRelationInstance; class SymbolHash; class PropTreeLinks; class SentenceTheory; #include "Generic/discTagger/DTFeature.h" class EnglishComboRelationFinder { public: EnglishComboRelationFinder(); ~EnglishComboRelationFinder(); void cleanup(); void resetForNewSentence(); static UTF8OutputStream _debugStream; static bool DEBUG; RelMentionSet *getRelationTheory(EntitySet *entitySet, SentenceTheory *sentTheory, const Parse *parse, MentionSet *mentionSet, ValueMentionSet *valueMentionSet, PropositionSet *propSet, const PropTreeLinks* ptLinks=0); void allowMentionSetChanges() { _allow_mention_set_changes = true; } void disallowMentionSetChanges() { _allow_mention_set_changes = false; } private: P1Decoder *_p1Decoder; P1Decoder *_p1SecondaryDecoder; MaxEntModel *_maxentDecoder; double *_maxentTagScores; VectorModel *_vectorModel; TreeModel *_treeModel; DTTagSet *_tagSet; DTTagSet *_maxentTagSet; DTFeature::FeatureWeightMap *_p1Weights; DTFeature::FeatureWeightMap *_p1SecondaryWeights; DTFeature::FeatureWeightMap *_maxentWeights; class DTFeatureTypeSet *_featureTypes; class DTFeatureTypeSet *_p1SecondaryFeatureTypes; RelationObservation *_observation; PotentialRelationInstance *_inst; int _currentSentenceIndex; SymbolHash *_facOrgWords; void loadSymbolHash(SymbolHash *hash, const char* file); Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second); RelMention *_relations[MAX_SENTENCE_RELATIONS]; int _n_relations; void addRelation(const Mention *first, const Mention *second, Symbol type, float score); void findMentionSetChanges(MentionSet *mentionSet); void tryForcingRelations(MentionSet *mentionSet); /** Return a float indicating whether the given answer should probably have its order * reversed. If this score is greater than 0, then switch the two realtion args. */ float shouldBeReversedScore(Symbol answer); bool shouldBeReversed(Symbol answer); bool tryFakeTypeRelation(MentionSet *mentionSet, const Mention *possMention, EntityType possibleType, Symbol *acceptableTypes); //bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, // const Mention *possMention, // EntityType possibleType); bool _skip_special_case_answer; Symbol findSpecialCaseRelation(MentionSet *mentionSet); static Symbol NO_RELATION_SYM; bool _allow_mention_set_changes; double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, Symbol answer, RelationObservation *obs); bool _use_correct_answers; }; #endif
29.66
109
(translation_unit) "#ifndef EN_COMBO_RELATION_FINDER_H \n#define EN_COMBO_RELATION_FINDER_H \n \n// Copyright 2008 by BBN Technologies Corp. \n// All Rights Reserved. \n \n#include "Generic/common/limits.h" \n#include "Generic/common/Symbol.h" \n#include "Generic/common/UTF8OutputStream.h" \n \nclass Parse; \nclass Mention; \nclass MentionSet; \nclass ValueMentionSet; \nclass EntitySet; \nclass EntityType; \nclass PropositionSet; \nclass P1Decoder; \nclass RelationObservation; \nclass RelMentionSet; \nclass RelMention; \nclass DTTagSet; \nclass VectorModel; \nclass PatternMatcherModel; \nclass TreeModel; \nclass MaxEntModel; \nclass PotentialRelationInstance; \nclass SymbolHash; \nclass PropTreeLinks; \nclass SentenceTheory; \n#include "Generic/discTagger/DTFeature.h" \n \nclass EnglishComboRelationFinder { \npublic: \n EnglishComboRelationFinder(); \n ~EnglishComboRelationFinder(); \n void cleanup(); \n \n void resetForNewSentence(); \n \n static UTF8OutputStream _debugStream; \n static bool DEBUG; \n \n RelMentionSet *getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0); \n \n void allowMentionSetChanges() { _allow_mention_set_changes = true; } \n void disallowMentionSetChanges() { _allow_mention_set_changes = false; } \n \nprivate: \n \n P1Decoder *_p1Decoder; \n P1Decoder *_p1SecondaryDecoder; \n MaxEntModel *_maxentDecoder; \n double *_maxentTagScores; \n VectorModel *_vectorModel; \n TreeModel *_treeModel; \n DTTagSet *_tagSet; \n DTTagSet *_maxentTagSet; \n DTFeature::FeatureWeightMap *_p1Weights; \n DTFeature::FeatureWeightMap *_p1SecondaryWeights; \n DTFeature::FeatureWeightMap *_maxentWeights; \n class DTFeatureTypeSet *_featureTypes; \n class DTFeatureTypeSet *_p1SecondaryFeatureTypes; \n RelationObservation *_observation; \n PotentialRelationInstance *_inst; \n int _currentSentenceIndex; \n \n SymbolHash *_facOrgWords; \n void loadSymbolHash(SymbolHash *hash, const char* file); \n Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second); \n \n RelMention *_relations[MAX_SENTENCE_RELATIONS]; \n int _n_relations; \n void addRelation(const Mention *first, const Mention *second, Symbol type, float score); \n void findMentionSetChanges(MentionSet *mentionSet); \n void tryForcingRelations(MentionSet *mentionSet); \n \n /** Return a float indicating whether the given answer should probably have its order \n * reversed. If this score is greater than 0, then switch the two realtion args. */ \n float shouldBeReversedScore(Symbol answer); \n bool shouldBeReversed(Symbol answer); \n \n bool tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes); \n //bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, \n // const Mention *possMention, \n // EntityType possibleType); \n \n bool _skip_special_case_answer; \n Symbol findSpecialCaseRelation(MentionSet *mentionSet); \n static Symbol NO_RELATION_SYM; \n \n bool _allow_mention_set_changes; \n \n double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs); \n \n bool _use_correct_answers; \n}; \n \n \n#endif \n \n" (preproc_ifdef) "#ifndef EN_COMBO_RELATION_FINDER_H \n#define EN_COMBO_RELATION_FINDER_H \n \n// Copyright 2008 by BBN Technologies Corp. \n// All Rights Reserved. \n \n#include "Generic/common/limits.h" \n#include "Generic/common/Symbol.h" \n#include "Generic/common/UTF8OutputStream.h" \n \nclass Parse; \nclass Mention; \nclass MentionSet; \nclass ValueMentionSet; \nclass EntitySet; \nclass EntityType; \nclass PropositionSet; \nclass P1Decoder; \nclass RelationObservation; \nclass RelMentionSet; \nclass RelMention; \nclass DTTagSet; \nclass VectorModel; \nclass PatternMatcherModel; \nclass TreeModel; \nclass MaxEntModel; \nclass PotentialRelationInstance; \nclass SymbolHash; \nclass PropTreeLinks; \nclass SentenceTheory; \n#include "Generic/discTagger/DTFeature.h" \n \nclass EnglishComboRelationFinder { \npublic: \n EnglishComboRelationFinder(); \n ~EnglishComboRelationFinder(); \n void cleanup(); \n \n void resetForNewSentence(); \n \n static UTF8OutputStream _debugStream; \n static bool DEBUG; \n \n RelMentionSet *getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0); \n \n void allowMentionSetChanges() { _allow_mention_set_changes = true; } \n void disallowMentionSetChanges() { _allow_mention_set_changes = false; } \n \nprivate: \n \n P1Decoder *_p1Decoder; \n P1Decoder *_p1SecondaryDecoder; \n MaxEntModel *_maxentDecoder; \n double *_maxentTagScores; \n VectorModel *_vectorModel; \n TreeModel *_treeModel; \n DTTagSet *_tagSet; \n DTTagSet *_maxentTagSet; \n DTFeature::FeatureWeightMap *_p1Weights; \n DTFeature::FeatureWeightMap *_p1SecondaryWeights; \n DTFeature::FeatureWeightMap *_maxentWeights; \n class DTFeatureTypeSet *_featureTypes; \n class DTFeatureTypeSet *_p1SecondaryFeatureTypes; \n RelationObservation *_observation; \n PotentialRelationInstance *_inst; \n int _currentSentenceIndex; \n \n SymbolHash *_facOrgWords; \n void loadSymbolHash(SymbolHash *hash, const char* file); \n Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second); \n \n RelMention *_relations[MAX_SENTENCE_RELATIONS]; \n int _n_relations; \n void addRelation(const Mention *first, const Mention *second, Symbol type, float score); \n void findMentionSetChanges(MentionSet *mentionSet); \n void tryForcingRelations(MentionSet *mentionSet); \n \n /** Return a float indicating whether the given answer should probably have its order \n * reversed. If this score is greater than 0, then switch the two realtion args. */ \n float shouldBeReversedScore(Symbol answer); \n bool shouldBeReversed(Symbol answer); \n \n bool tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes); \n //bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, \n // const Mention *possMention, \n // EntityType possibleType); \n \n bool _skip_special_case_answer; \n Symbol findSpecialCaseRelation(MentionSet *mentionSet); \n static Symbol NO_RELATION_SYM; \n \n bool _allow_mention_set_changes; \n \n double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs); \n \n bool _use_correct_answers; \n}; \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "EN_COMBO_RELATION_FINDER_H" (preproc_def) "#define EN_COMBO_RELATION_FINDER_H \n" (#define) "#define" (identifier) "EN_COMBO_RELATION_FINDER_H" (comment) "// Copyright 2008 by BBN Technologies Corp. " (comment) "// All Rights Reserved. " (preproc_include) "#include "Generic/common/limits.h" \n" (#include) "#include" (string_literal) ""Generic/common/limits.h"" (") """ (string_content) "Generic/common/limits.h" (") """ (preproc_include) "#include "Generic/common/Symbol.h" \n" (#include) "#include" (string_literal) ""Generic/common/Symbol.h"" (") """ (string_content) "Generic/common/Symbol.h" (") """ (preproc_include) "#include "Generic/common/UTF8OutputStream.h" \n" (#include) "#include" (string_literal) ""Generic/common/UTF8OutputStream.h"" (") """ (string_content) "Generic/common/UTF8OutputStream.h" (") """ (declaration) "class Parse;" (type_identifier) "class" (identifier) "Parse" (;) ";" (declaration) "class Mention;" (type_identifier) "class" (identifier) "Mention" (;) ";" (declaration) "class MentionSet;" (type_identifier) "class" (identifier) "MentionSet" (;) ";" (declaration) "class ValueMentionSet;" (type_identifier) "class" (identifier) "ValueMentionSet" (;) ";" (declaration) "class EntitySet;" (type_identifier) "class" (identifier) "EntitySet" (;) ";" (declaration) "class EntityType;" (type_identifier) "class" (identifier) "EntityType" (;) ";" (declaration) "class PropositionSet;" (type_identifier) "class" (identifier) "PropositionSet" (;) ";" (declaration) "class P1Decoder;" (type_identifier) "class" (identifier) "P1Decoder" (;) ";" (declaration) "class RelationObservation;" (type_identifier) "class" (identifier) "RelationObservation" (;) ";" (declaration) "class RelMentionSet;" (type_identifier) "class" (identifier) "RelMentionSet" (;) ";" (declaration) "class RelMention;" (type_identifier) "class" (identifier) "RelMention" (;) ";" (declaration) "class DTTagSet;" (type_identifier) "class" (identifier) "DTTagSet" (;) ";" (declaration) "class VectorModel;" (type_identifier) "class" (identifier) "VectorModel" (;) ";" (declaration) "class PatternMatcherModel;" (type_identifier) "class" (identifier) "PatternMatcherModel" (;) ";" (declaration) "class TreeModel;" (type_identifier) "class" (identifier) "TreeModel" (;) ";" (declaration) "class MaxEntModel;" (type_identifier) "class" (identifier) "MaxEntModel" (;) ";" (declaration) "class PotentialRelationInstance;" (type_identifier) "class" (identifier) "PotentialRelationInstance" (;) ";" (declaration) "class SymbolHash;" (type_identifier) "class" (identifier) "SymbolHash" (;) ";" (declaration) "class PropTreeLinks;" (type_identifier) "class" (identifier) "PropTreeLinks" (;) ";" (declaration) "class SentenceTheory;" (type_identifier) "class" (identifier) "SentenceTheory" (;) ";" (preproc_include) "#include "Generic/discTagger/DTFeature.h" \n" (#include) "#include" (string_literal) ""Generic/discTagger/DTFeature.h"" (") """ (string_content) "Generic/discTagger/DTFeature.h" (") """ (function_definition) "class EnglishComboRelationFinder { \npublic: \n EnglishComboRelationFinder(); \n ~EnglishComboRelationFinder(); \n void cleanup(); \n \n void resetForNewSentence(); \n \n static UTF8OutputStream _debugStream; \n static bool DEBUG; \n \n RelMentionSet *getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0); \n \n void allowMentionSetChanges() { _allow_mention_set_changes = true; } \n void disallowMentionSetChanges() { _allow_mention_set_changes = false; } \n \nprivate: \n \n P1Decoder *_p1Decoder; \n P1Decoder *_p1SecondaryDecoder; \n MaxEntModel *_maxentDecoder; \n double *_maxentTagScores; \n VectorModel *_vectorModel; \n TreeModel *_treeModel; \n DTTagSet *_tagSet; \n DTTagSet *_maxentTagSet; \n DTFeature::FeatureWeightMap *_p1Weights; \n DTFeature::FeatureWeightMap *_p1SecondaryWeights; \n DTFeature::FeatureWeightMap *_maxentWeights; \n class DTFeatureTypeSet *_featureTypes; \n class DTFeatureTypeSet *_p1SecondaryFeatureTypes; \n RelationObservation *_observation; \n PotentialRelationInstance *_inst; \n int _currentSentenceIndex; \n \n SymbolHash *_facOrgWords; \n void loadSymbolHash(SymbolHash *hash, const char* file); \n Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second); \n \n RelMention *_relations[MAX_SENTENCE_RELATIONS]; \n int _n_relations; \n void addRelation(const Mention *first, const Mention *second, Symbol type, float score); \n void findMentionSetChanges(MentionSet *mentionSet); \n void tryForcingRelations(MentionSet *mentionSet); \n \n /** Return a float indicating whether the given answer should probably have its order \n * reversed. If this score is greater than 0, then switch the two realtion args. */ \n float shouldBeReversedScore(Symbol answer); \n bool shouldBeReversed(Symbol answer); \n \n bool tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes); \n //bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, \n // const Mention *possMention, \n // EntityType possibleType); \n \n bool _skip_special_case_answer; \n Symbol findSpecialCaseRelation(MentionSet *mentionSet); \n static Symbol NO_RELATION_SYM; \n \n bool _allow_mention_set_changes; \n \n double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs); \n \n bool _use_correct_answers; \n}" (type_identifier) "class" (identifier) "EnglishComboRelationFinder" (compound_statement) "{ \npublic: \n EnglishComboRelationFinder(); \n ~EnglishComboRelationFinder(); \n void cleanup(); \n \n void resetForNewSentence(); \n \n static UTF8OutputStream _debugStream; \n static bool DEBUG; \n \n RelMentionSet *getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0); \n \n void allowMentionSetChanges() { _allow_mention_set_changes = true; } \n void disallowMentionSetChanges() { _allow_mention_set_changes = false; } \n \nprivate: \n \n P1Decoder *_p1Decoder; \n P1Decoder *_p1SecondaryDecoder; \n MaxEntModel *_maxentDecoder; \n double *_maxentTagScores; \n VectorModel *_vectorModel; \n TreeModel *_treeModel; \n DTTagSet *_tagSet; \n DTTagSet *_maxentTagSet; \n DTFeature::FeatureWeightMap *_p1Weights; \n DTFeature::FeatureWeightMap *_p1SecondaryWeights; \n DTFeature::FeatureWeightMap *_maxentWeights; \n class DTFeatureTypeSet *_featureTypes; \n class DTFeatureTypeSet *_p1SecondaryFeatureTypes; \n RelationObservation *_observation; \n PotentialRelationInstance *_inst; \n int _currentSentenceIndex; \n \n SymbolHash *_facOrgWords; \n void loadSymbolHash(SymbolHash *hash, const char* file); \n Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second); \n \n RelMention *_relations[MAX_SENTENCE_RELATIONS]; \n int _n_relations; \n void addRelation(const Mention *first, const Mention *second, Symbol type, float score); \n void findMentionSetChanges(MentionSet *mentionSet); \n void tryForcingRelations(MentionSet *mentionSet); \n \n /** Return a float indicating whether the given answer should probably have its order \n * reversed. If this score is greater than 0, then switch the two realtion args. */ \n float shouldBeReversedScore(Symbol answer); \n bool shouldBeReversed(Symbol answer); \n \n bool tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes); \n //bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, \n // const Mention *possMention, \n // EntityType possibleType); \n \n bool _skip_special_case_answer; \n Symbol findSpecialCaseRelation(MentionSet *mentionSet); \n static Symbol NO_RELATION_SYM; \n \n bool _allow_mention_set_changes; \n \n double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs); \n \n bool _use_correct_answers; \n}" ({) "{" (labeled_statement) "public: \n EnglishComboRelationFinder();" (statement_identifier) "public" (:) ":" (expression_statement) "EnglishComboRelationFinder();" (call_expression) "EnglishComboRelationFinder()" (identifier) "EnglishComboRelationFinder" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~EnglishComboRelationFinder();" (unary_expression) "~EnglishComboRelationFinder()" (~) "~" (call_expression) "EnglishComboRelationFinder()" (identifier) "EnglishComboRelationFinder" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void cleanup();" (primitive_type) "void" (function_declarator) "cleanup()" (identifier) "cleanup" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void resetForNewSentence();" (primitive_type) "void" (function_declarator) "resetForNewSentence()" (identifier) "resetForNewSentence" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static UTF8OutputStream _debugStream;" (storage_class_specifier) "static" (static) "static" (type_identifier) "UTF8OutputStream" (identifier) "_debugStream" (;) ";" (declaration) "static bool DEBUG;" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (identifier) "DEBUG" (;) ";" (declaration) "RelMentionSet *getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0);" (type_identifier) "RelMentionSet" (init_declarator) "*getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks=0" (pointer_declarator) "*getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks" (*) "*" (function_declarator) "getRelationTheory(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks" (identifier) "getRelationTheory" (parameter_list) "(EntitySet *entitySet, \n SentenceTheory *sentTheory, \n const Parse *parse, \n MentionSet *mentionSet, \n ValueMentionSet *valueMentionSet, \n PropositionSet *propSet, \n const PropTreeLinks* ptLinks" (() "(" (parameter_declaration) "EntitySet *entitySet" (type_identifier) "EntitySet" (pointer_declarator) "*entitySet" (*) "*" (identifier) "entitySet" (,) "," (parameter_declaration) "SentenceTheory *sentTheory" (type_identifier) "SentenceTheory" (pointer_declarator) "*sentTheory" (*) "*" (identifier) "sentTheory" (,) "," (parameter_declaration) "const Parse *parse" (type_qualifier) "const" (const) "const" (type_identifier) "Parse" (pointer_declarator) "*parse" (*) "*" (identifier) "parse" (,) "," (parameter_declaration) "MentionSet *mentionSet" (type_identifier) "MentionSet" (pointer_declarator) "*mentionSet" (*) "*" (identifier) "mentionSet" (,) "," (parameter_declaration) "ValueMentionSet *valueMentionSet" (type_identifier) "ValueMentionSet" (pointer_declarator) "*valueMentionSet" (*) "*" (identifier) "valueMentionSet" (,) "," (parameter_declaration) "PropositionSet *propSet" (type_identifier) "PropositionSet" (pointer_declarator) "*propSet" (*) "*" (identifier) "propSet" (,) "," (parameter_declaration) "const PropTreeLinks* ptLinks" (type_qualifier) "const" (const) "const" (type_identifier) "PropTreeLinks" (pointer_declarator) "* ptLinks" (*) "*" (identifier) "ptLinks" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (function_definition) "void allowMentionSetChanges() { _allow_mention_set_changes = true; }" (primitive_type) "void" (function_declarator) "allowMentionSetChanges()" (identifier) "allowMentionSetChanges" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ _allow_mention_set_changes = true; }" ({) "{" (expression_statement) "_allow_mention_set_changes = true;" (assignment_expression) "_allow_mention_set_changes = true" (identifier) "_allow_mention_set_changes" (=) "=" (true) "true" (;) ";" (}) "}" (function_definition) "void disallowMentionSetChanges() { _allow_mention_set_changes = false; }" (primitive_type) "void" (function_declarator) "disallowMentionSetChanges()" (identifier) "disallowMentionSetChanges" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ _allow_mention_set_changes = false; }" ({) "{" (expression_statement) "_allow_mention_set_changes = false;" (assignment_expression) "_allow_mention_set_changes = false" (identifier) "_allow_mention_set_changes" (=) "=" (false) "false" (;) ";" (}) "}" (labeled_statement) "private: \n \n P1Decoder *_p1Decoder;" (statement_identifier) "private" (:) ":" (declaration) "P1Decoder *_p1Decoder;" (type_identifier) "P1Decoder" (pointer_declarator) "*_p1Decoder" (*) "*" (identifier) "_p1Decoder" (;) ";" (declaration) "P1Decoder *_p1SecondaryDecoder;" (type_identifier) "P1Decoder" (pointer_declarator) "*_p1SecondaryDecoder" (*) "*" (identifier) "_p1SecondaryDecoder" (;) ";" (declaration) "MaxEntModel *_maxentDecoder;" (type_identifier) "MaxEntModel" (pointer_declarator) "*_maxentDecoder" (*) "*" (identifier) "_maxentDecoder" (;) ";" (declaration) "double *_maxentTagScores;" (primitive_type) "double" (pointer_declarator) "*_maxentTagScores" (*) "*" (identifier) "_maxentTagScores" (;) ";" (declaration) "VectorModel *_vectorModel;" (type_identifier) "VectorModel" (pointer_declarator) "*_vectorModel" (*) "*" (identifier) "_vectorModel" (;) ";" (declaration) "TreeModel *_treeModel;" (type_identifier) "TreeModel" (pointer_declarator) "*_treeModel" (*) "*" (identifier) "_treeModel" (;) ";" (declaration) "DTTagSet *_tagSet;" (type_identifier) "DTTagSet" (pointer_declarator) "*_tagSet" (*) "*" (identifier) "_tagSet" (;) ";" (declaration) "DTTagSet *_maxentTagSet;" (type_identifier) "DTTagSet" (pointer_declarator) "*_maxentTagSet" (*) "*" (identifier) "_maxentTagSet" (;) ";" (labeled_statement) "DTFeature::FeatureWeightMap *_p1Weights;" (statement_identifier) "DTFeature" (:) ":" (ERROR) ":" (:) ":" (declaration) "FeatureWeightMap *_p1Weights;" (type_identifier) "FeatureWeightMap" (pointer_declarator) "*_p1Weights" (*) "*" (identifier) "_p1Weights" (;) ";" (labeled_statement) "DTFeature::FeatureWeightMap *_p1SecondaryWeights;" (statement_identifier) "DTFeature" (:) ":" (ERROR) ":" (:) ":" (declaration) "FeatureWeightMap *_p1SecondaryWeights;" (type_identifier) "FeatureWeightMap" (pointer_declarator) "*_p1SecondaryWeights" (*) "*" (identifier) "_p1SecondaryWeights" (;) ";" (labeled_statement) "DTFeature::FeatureWeightMap *_maxentWeights;" (statement_identifier) "DTFeature" (:) ":" (ERROR) ":" (:) ":" (declaration) "FeatureWeightMap *_maxentWeights;" (type_identifier) "FeatureWeightMap" (pointer_declarator) "*_maxentWeights" (*) "*" (identifier) "_maxentWeights" (;) ";" (declaration) "class DTFeatureTypeSet" (type_identifier) "class" (identifier) "DTFeatureTypeSet" (;) "" (expression_statement) "*_featureTypes;" (pointer_expression) "*_featureTypes" (*) "*" (identifier) "_featureTypes" (;) ";" (declaration) "class DTFeatureTypeSet" (type_identifier) "class" (identifier) "DTFeatureTypeSet" (;) "" (expression_statement) "*_p1SecondaryFeatureTypes;" (pointer_expression) "*_p1SecondaryFeatureTypes" (*) "*" (identifier) "_p1SecondaryFeatureTypes" (;) ";" (declaration) "RelationObservation *_observation;" (type_identifier) "RelationObservation" (pointer_declarator) "*_observation" (*) "*" (identifier) "_observation" (;) ";" (declaration) "PotentialRelationInstance *_inst;" (type_identifier) "PotentialRelationInstance" (pointer_declarator) "*_inst" (*) "*" (identifier) "_inst" (;) ";" (declaration) "int _currentSentenceIndex;" (primitive_type) "int" (identifier) "_currentSentenceIndex" (;) ";" (declaration) "SymbolHash *_facOrgWords;" (type_identifier) "SymbolHash" (pointer_declarator) "*_facOrgWords" (*) "*" (identifier) "_facOrgWords" (;) ";" (declaration) "void loadSymbolHash(SymbolHash *hash, const char* file);" (primitive_type) "void" (function_declarator) "loadSymbolHash(SymbolHash *hash, const char* file)" (identifier) "loadSymbolHash" (parameter_list) "(SymbolHash *hash, const char* file)" (() "(" (parameter_declaration) "SymbolHash *hash" (type_identifier) "SymbolHash" (pointer_declarator) "*hash" (*) "*" (identifier) "hash" (,) "," (parameter_declaration) "const char* file" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* file" (*) "*" (identifier) "file" ()) ")" (;) ";" (declaration) "Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second);" (type_identifier) "Symbol" (function_declarator) "fixEthnicityEtcRelation(const Mention *first, const Mention *second)" (identifier) "fixEthnicityEtcRelation" (parameter_list) "(const Mention *first, const Mention *second)" (() "(" (parameter_declaration) "const Mention *first" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "*first" (*) "*" (identifier) "first" (,) "," (parameter_declaration) "const Mention *second" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "*second" (*) "*" (identifier) "second" ()) ")" (;) ";" (declaration) "RelMention *_relations[MAX_SENTENCE_RELATIONS];" (type_identifier) "RelMention" (pointer_declarator) "*_relations[MAX_SENTENCE_RELATIONS]" (*) "*" (array_declarator) "_relations[MAX_SENTENCE_RELATIONS]" (identifier) "_relations" ([) "[" (identifier) "MAX_SENTENCE_RELATIONS" (]) "]" (;) ";" (declaration) "int _n_relations;" (primitive_type) "int" (identifier) "_n_relations" (;) ";" (declaration) "void addRelation(const Mention *first, const Mention *second, Symbol type, float score);" (primitive_type) "void" (function_declarator) "addRelation(const Mention *first, const Mention *second, Symbol type, float score)" (identifier) "addRelation" (parameter_list) "(const Mention *first, const Mention *second, Symbol type, float score)" (() "(" (parameter_declaration) "const Mention *first" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "*first" (*) "*" (identifier) "first" (,) "," (parameter_declaration) "const Mention *second" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "*second" (*) "*" (identifier) "second" (,) "," (parameter_declaration) "Symbol type" (type_identifier) "Symbol" (identifier) "type" (,) "," (parameter_declaration) "float score" (primitive_type) "float" (identifier) "score" ()) ")" (;) ";" (declaration) "void findMentionSetChanges(MentionSet *mentionSet);" (primitive_type) "void" (function_declarator) "findMentionSetChanges(MentionSet *mentionSet)" (identifier) "findMentionSetChanges" (parameter_list) "(MentionSet *mentionSet)" (() "(" (parameter_declaration) "MentionSet *mentionSet" (type_identifier) "MentionSet" (pointer_declarator) "*mentionSet" (*) "*" (identifier) "mentionSet" ()) ")" (;) ";" (declaration) "void tryForcingRelations(MentionSet *mentionSet);" (primitive_type) "void" (function_declarator) "tryForcingRelations(MentionSet *mentionSet)" (identifier) "tryForcingRelations" (parameter_list) "(MentionSet *mentionSet)" (() "(" (parameter_declaration) "MentionSet *mentionSet" (type_identifier) "MentionSet" (pointer_declarator) "*mentionSet" (*) "*" (identifier) "mentionSet" ()) ")" (;) ";" (comment) "/** Return a float indicating whether the given answer should probably have its order \n * reversed. If this score is greater than 0, then switch the two realtion args. */" (declaration) "float shouldBeReversedScore(Symbol answer);" (primitive_type) "float" (function_declarator) "shouldBeReversedScore(Symbol answer)" (identifier) "shouldBeReversedScore" (parameter_list) "(Symbol answer)" (() "(" (parameter_declaration) "Symbol answer" (type_identifier) "Symbol" (identifier) "answer" ()) ")" (;) ";" (declaration) "bool shouldBeReversed(Symbol answer);" (primitive_type) "bool" (function_declarator) "shouldBeReversed(Symbol answer)" (identifier) "shouldBeReversed" (parameter_list) "(Symbol answer)" (() "(" (parameter_declaration) "Symbol answer" (type_identifier) "Symbol" (identifier) "answer" ()) ")" (;) ";" (declaration) "bool tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes);" (primitive_type) "bool" (function_declarator) "tryFakeTypeRelation(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes)" (identifier) "tryFakeTypeRelation" (parameter_list) "(MentionSet *mentionSet, \n const Mention *possMention, \n EntityType possibleType, Symbol *acceptableTypes)" (() "(" (parameter_declaration) "MentionSet *mentionSet" (type_identifier) "MentionSet" (pointer_declarator) "*mentionSet" (*) "*" (identifier) "mentionSet" (,) "," (parameter_declaration) "const Mention *possMention" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "*possMention" (*) "*" (identifier) "possMention" (,) "," (parameter_declaration) "EntityType possibleType" (type_identifier) "EntityType" (identifier) "possibleType" (,) "," (parameter_declaration) "Symbol *acceptableTypes" (type_identifier) "Symbol" (pointer_declarator) "*acceptableTypes" (*) "*" (identifier) "acceptableTypes" ()) ")" (;) ";" (comment) "//bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet, " (comment) "// const Mention *possMention, " (comment) "// EntityType possibleType); " (declaration) "bool _skip_special_case_answer;" (primitive_type) "bool" (identifier) "_skip_special_case_answer" (;) ";" (declaration) "Symbol findSpecialCaseRelation(MentionSet *mentionSet);" (type_identifier) "Symbol" (function_declarator) "findSpecialCaseRelation(MentionSet *mentionSet)" (identifier) "findSpecialCaseRelation" (parameter_list) "(MentionSet *mentionSet)" (() "(" (parameter_declaration) "MentionSet *mentionSet" (type_identifier) "MentionSet" (pointer_declarator) "*mentionSet" (*) "*" (identifier) "mentionSet" ()) ")" (;) ";" (declaration) "static Symbol NO_RELATION_SYM;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Symbol" (identifier) "NO_RELATION_SYM" (;) ";" (declaration) "bool _allow_mention_set_changes;" (primitive_type) "bool" (identifier) "_allow_mention_set_changes" (;) ";" (declaration) "double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs);" (primitive_type) "double" (function_declarator) "calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs)" (identifier) "calculateConfidenceScore" (parameter_list) "(const Mention* mention1, const Mention* mention2, float reversed_score, \n Symbol answer, RelationObservation *obs)" (() "(" (parameter_declaration) "const Mention* mention1" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "* mention1" (*) "*" (identifier) "mention1" (,) "," (parameter_declaration) "const Mention* mention2" (type_qualifier) "const" (const) "const" (type_identifier) "Mention" (pointer_declarator) "* mention2" (*) "*" (identifier) "mention2" (,) "," (parameter_declaration) "float reversed_score" (primitive_type) "float" (identifier) "reversed_score" (,) "," (parameter_declaration) "Symbol answer" (type_identifier) "Symbol" (identifier) "answer" (,) "," (parameter_declaration) "RelationObservation *obs" (type_identifier) "RelationObservation" (pointer_declarator) "*obs" (*) "*" (identifier) "obs" ()) ")" (;) ";" (declaration) "bool _use_correct_answers;" (primitive_type) "bool" (identifier) "_use_correct_answers" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
625
4
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 29.66, "nodes": 407, "errors": 0, "source_hash": "9d078a37054ea60a3a128cc0bf0443c348ba2baec4138a16383e1d6b0159dc7d", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EN_COMBO_RELATION_FINDER_H\r\n#define EN_COMBO_RELATION_FINDER_H\r\n\r\n// Copyright 2008 by BBN Technologies Corp.\r\n// All Rights Reserved.\r\n\r\n#include \"Generic/common/limits.h\"\r\n#include \"Generic/common/Symbol.h\"\r\n#include \"Generic/common/UTF8OutputStream.h\"\r\n\r\nclass Parse;\r\nclass Mention;\r\nclass MentionSet;\r\nclass ValueMentionSet;\r\nclass EntitySet;\r\nclass EntityType;\r\nclass PropositionSet;\r\nclass P1Decoder;\r\nclass RelationObservation;\r\nclass RelMentionSet;\r\nclass RelMention;\r\nclass DTTagSet;\r\nclass VectorModel;\r\nclass PatternMatcherModel;\r\nclass TreeModel;\r\nclass MaxEntModel;\r\nclass PotentialRelationInstance;\r\nclass SymbolHash;\r\nclass PropTreeLinks;\r\nclass SentenceTheory;\r\n#include \"Generic/discTagger/DTFeature.h\"\r\n\r\nclass EnglishComboRelationFinder {\r\npublic:\r\n\tEnglishComboRelationFinder();\r\n\t~EnglishComboRelationFinder();\r\n\tvoid cleanup();\r\n\r\n\tvoid resetForNewSentence();\r\n\r\n\tstatic UTF8OutputStream _debugStream;\r\n\tstatic bool DEBUG;\r\n\r\n\tRelMentionSet *getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks=0);\r\n\r\n\tvoid allowMentionSetChanges() { _allow_mention_set_changes = true; }\r\n\tvoid disallowMentionSetChanges() { _allow_mention_set_changes = false; }\r\n\r\nprivate:\r\n\r\n\tP1Decoder *_p1Decoder;\r\n\tP1Decoder *_p1SecondaryDecoder;\r\n\tMaxEntModel *_maxentDecoder;\r\n\tdouble *_maxentTagScores;\r\n\tVectorModel *_vectorModel;\r\n\tTreeModel *_treeModel;\r\n\tDTTagSet *_tagSet;\r\n\tDTTagSet *_maxentTagSet;\r\n\tDTFeature::FeatureWeightMap *_p1Weights;\r\n\tDTFeature::FeatureWeightMap *_p1SecondaryWeights;\r\n\tDTFeature::FeatureWeightMap *_maxentWeights;\r\n\tclass DTFeatureTypeSet *_featureTypes;\r\n\tclass DTFeatureTypeSet *_p1SecondaryFeatureTypes;\r\n\tRelationObservation *_observation;\r\n\tPotentialRelationInstance *_inst;\r\n\tint _currentSentenceIndex;\r\n\r\n\tSymbolHash *_facOrgWords;\r\n\tvoid loadSymbolHash(SymbolHash *hash, const char* file);\r\n\tSymbol fixEthnicityEtcRelation(const Mention *first, const Mention *second);\r\n\r\n\tRelMention *_relations[MAX_SENTENCE_RELATIONS];\r\n\tint _n_relations;\r\n\tvoid addRelation(const Mention *first, const Mention *second, Symbol type, float score);\r\n\tvoid findMentionSetChanges(MentionSet *mentionSet);\r\n\tvoid tryForcingRelations(MentionSet *mentionSet);\r\n\r\n\t/** Return a float indicating whether the given answer should probably have its order\r\n\t * reversed. If this score is greater than 0, then switch the two realtion args. */\r\n\tfloat shouldBeReversedScore(Symbol answer);\r\n\tbool shouldBeReversed(Symbol answer);\r\n\r\n\tbool tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes);\r\n\t//bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet,\r\n\t//\tconst Mention *possMention,\r\n\t//\tEntityType possibleType);\r\n\r\n\tbool _skip_special_case_answer;\r\n\tSymbol findSpecialCaseRelation(MentionSet *mentionSet);\r\n\tstatic Symbol NO_RELATION_SYM;\r\n\r\n\tbool _allow_mention_set_changes;\r\n\r\n\tdouble calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs);\r\n\r\n\tbool _use_correct_answers;\r\n};\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 58, 406], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 108, "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": "EN_COMBO_RELATION_FINDER_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define EN_COMBO_RELATION_FINDER_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": "EN_COMBO_RELATION_FINDER_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include \"Generic/common/limits.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": "\"Generic/common/limits.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 34}}, {"id": 9, "type": "preproc_include", "text": "#include \"Generic/common/Symbol.h\"\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"Generic/common/Symbol.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 34}}, {"id": 12, "type": "preproc_include", "text": "#include \"Generic/common/UTF8OutputStream.h\"\r\n", "parent": 0, "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": "\"Generic/common/UTF8OutputStream.h\"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 44}}, {"id": 15, "type": "declaration", "text": "class Parse;", "parent": 0, "children": [16], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 12}}, {"id": 16, "type": "identifier", "text": "Parse", "parent": 15, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 17, "type": "declaration", "text": "class Mention;", "parent": 0, "children": [18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 14}}, {"id": 18, "type": "identifier", "text": "Mention", "parent": 17, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 13}}, {"id": 19, "type": "declaration", "text": "class MentionSet;", "parent": 0, "children": [20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 17}}, {"id": 20, "type": "identifier", "text": "MentionSet", "parent": 19, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 16}}, {"id": 21, "type": "declaration", "text": "class ValueMentionSet;", "parent": 0, "children": [22], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 22}}, {"id": 22, "type": "identifier", "text": "ValueMentionSet", "parent": 21, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 21}}, {"id": 23, "type": "declaration", "text": "class EntitySet;", "parent": 0, "children": [24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 16}}, {"id": 24, "type": "identifier", "text": "EntitySet", "parent": 23, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 15}}, {"id": 25, "type": "declaration", "text": "class EntityType;", "parent": 0, "children": [26], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 17}}, {"id": 26, "type": "identifier", "text": "EntityType", "parent": 25, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 16}}, {"id": 27, "type": "declaration", "text": "class PropositionSet;", "parent": 0, "children": [28], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 21}}, {"id": 28, "type": "identifier", "text": "PropositionSet", "parent": 27, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 20}}, {"id": 29, "type": "declaration", "text": "class P1Decoder;", "parent": 0, "children": [30], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 16}}, {"id": 30, "type": "identifier", "text": "P1Decoder", "parent": 29, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 15}}, {"id": 31, "type": "declaration", "text": "class RelationObservation;", "parent": 0, "children": [32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 26}}, {"id": 32, "type": "identifier", "text": "RelationObservation", "parent": 31, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 25}}, {"id": 33, "type": "declaration", "text": "class RelMentionSet;", "parent": 0, "children": [34], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 20}}, {"id": 34, "type": "identifier", "text": "RelMentionSet", "parent": 33, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 19}}, {"id": 35, "type": "declaration", "text": "class RelMention;", "parent": 0, "children": [36], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 17}}, {"id": 36, "type": "identifier", "text": "RelMention", "parent": 35, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 16}}, {"id": 37, "type": "declaration", "text": "class DTTagSet;", "parent": 0, "children": [38], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 15}}, {"id": 38, "type": "identifier", "text": "DTTagSet", "parent": 37, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 14}}, {"id": 39, "type": "declaration", "text": "class VectorModel;", "parent": 0, "children": [40], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 18}}, {"id": 40, "type": "identifier", "text": "VectorModel", "parent": 39, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 17}}, {"id": 41, "type": "declaration", "text": "class PatternMatcherModel;", "parent": 0, "children": [42], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 26}}, {"id": 42, "type": "identifier", "text": "PatternMatcherModel", "parent": 41, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 25}}, {"id": 43, "type": "declaration", "text": "class TreeModel;", "parent": 0, "children": [44], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 16}}, {"id": 44, "type": "identifier", "text": "TreeModel", "parent": 43, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 15}}, {"id": 45, "type": "declaration", "text": "class MaxEntModel;", "parent": 0, "children": [46], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 18}}, {"id": 46, "type": "identifier", "text": "MaxEntModel", "parent": 45, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 17}}, {"id": 47, "type": "declaration", "text": "class PotentialRelationInstance;", "parent": 0, "children": [48], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 32}}, {"id": 48, "type": "identifier", "text": "PotentialRelationInstance", "parent": 47, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 31}}, {"id": 49, "type": "declaration", "text": "class SymbolHash;", "parent": 0, "children": [50], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 17}}, {"id": 50, "type": "identifier", "text": "SymbolHash", "parent": 49, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 16}}, {"id": 51, "type": "declaration", "text": "class PropTreeLinks;", "parent": 0, "children": [52], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 20}}, {"id": 52, "type": "identifier", "text": "PropTreeLinks", "parent": 51, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 19}}, {"id": 53, "type": "declaration", "text": "class SentenceTheory;", "parent": 0, "children": [54], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 21}}, {"id": 54, "type": "identifier", "text": "SentenceTheory", "parent": 53, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 20}}, {"id": 55, "type": "preproc_include", "text": "#include \"Generic/discTagger/DTFeature.h\"\r\n", "parent": 0, "children": [56, 57], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 56, "type": "#include", "text": "#include", "parent": 55, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 57, "type": "string_literal", "text": "\"Generic/discTagger/DTFeature.h\"", "parent": 55, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 41}}, {"id": 58, "type": "function_definition", "text": "class EnglishComboRelationFinder {\r\npublic:\r\n\tEnglishComboRelationFinder();\r\n\t~EnglishComboRelationFinder();\r\n\tvoid cleanup();\r\n\r\n\tvoid resetForNewSentence();\r\n\r\n\tstatic UTF8OutputStream _debugStream;\r\n\tstatic bool DEBUG;\r\n\r\n\tRelMentionSet *getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks=0);\r\n\r\n\tvoid allowMentionSetChanges() { _allow_mention_set_changes = true; }\r\n\tvoid disallowMentionSetChanges() { _allow_mention_set_changes = false; }\r\n\r\nprivate:\r\n\r\n\tP1Decoder *_p1Decoder;\r\n\tP1Decoder *_p1SecondaryDecoder;\r\n\tMaxEntModel *_maxentDecoder;\r\n\tdouble *_maxentTagScores;\r\n\tVectorModel *_vectorModel;\r\n\tTreeModel *_treeModel;\r\n\tDTTagSet *_tagSet;\r\n\tDTTagSet *_maxentTagSet;\r\n\tDTFeature::FeatureWeightMap *_p1Weights;\r\n\tDTFeature::FeatureWeightMap *_p1SecondaryWeights;\r\n\tDTFeature::FeatureWeightMap *_maxentWeights;\r\n\tclass DTFeatureTypeSet *_featureTypes;\r\n\tclass DTFeatureTypeSet *_p1SecondaryFeatureTypes;\r\n\tRelationObservation *_observation;\r\n\tPotentialRelationInstance *_inst;\r\n\tint _currentSentenceIndex;\r\n\r\n\tSymbolHash *_facOrgWords;\r\n\tvoid loadSymbolHash(SymbolHash *hash, const char* file);\r\n\tSymbol fixEthnicityEtcRelation(const Mention *first, const Mention *second);\r\n\r\n\tRelMention *_relations[MAX_SENTENCE_RELATIONS];\r\n\tint _n_relations;\r\n\tvoid addRelation(const Mention *first, const Mention *second, Symbol type, float score);\r\n\tvoid findMentionSetChanges(MentionSet *mentionSet);\r\n\tvoid tryForcingRelations(MentionSet *mentionSet);\r\n\r\n\t/** Return a float indicating whether the given answer should probably have its order\r\n\t * reversed. If this score is greater than 0, then switch the two realtion args. */\r\n\tfloat shouldBeReversedScore(Symbol answer);\r\n\tbool shouldBeReversed(Symbol answer);\r\n\r\n\tbool tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes);\r\n\t//bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet,\r\n\t//\tconst Mention *possMention,\r\n\t//\tEntityType possibleType);\r\n\r\n\tbool _skip_special_case_answer;\r\n\tSymbol findSpecialCaseRelation(MentionSet *mentionSet);\r\n\tstatic Symbol NO_RELATION_SYM;\r\n\r\n\tbool _allow_mention_set_changes;\r\n\r\n\tdouble calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs);\r\n\r\n\tbool _use_correct_answers;\r\n}", "parent": 0, "children": [59], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 59, "type": "identifier", "text": "EnglishComboRelationFinder", "parent": 58, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 32}}, {"id": 60, "type": "labeled_statement", "text": "public:\r\n\tEnglishComboRelationFinder();", "parent": 58, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 30}}, {"id": 61, "type": "call_expression", "text": "EnglishComboRelationFinder()", "parent": 60, "children": [62, 63], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 29}}, {"id": 62, "type": "identifier", "text": "EnglishComboRelationFinder", "parent": 61, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 27}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 29}}, {"id": 64, "type": "unary_expression", "text": "~EnglishComboRelationFinder()", "parent": 58, "children": [65, 66], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 30}}, {"id": 65, "type": "~", "text": "~", "parent": 64, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 66, "type": "call_expression", "text": "EnglishComboRelationFinder()", "parent": 64, "children": [67, 68], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 30}}, {"id": 67, "type": "identifier", "text": "EnglishComboRelationFinder", "parent": 66, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 28}}, {"id": 68, "type": "argument_list", "text": "()", "parent": 66, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 30}}, {"id": 69, "type": "declaration", "text": "void cleanup();", "parent": 58, "children": [70, 71], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 16}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 71, "type": "function_declarator", "text": "cleanup()", "parent": 69, "children": [72, 73], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 15}}, {"id": 72, "type": "identifier", "text": "cleanup", "parent": 71, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 13}}, {"id": 73, "type": "parameter_list", "text": "()", "parent": 71, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 15}}, {"id": 74, "type": "declaration", "text": "void resetForNewSentence();", "parent": 58, "children": [75, 76], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 28}}, {"id": 75, "type": "primitive_type", "text": "void", "parent": 74, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 76, "type": "function_declarator", "text": "resetForNewSentence()", "parent": 74, "children": [77, 78], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 27}}, {"id": 77, "type": "identifier", "text": "resetForNewSentence", "parent": 76, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 25}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 27}}, {"id": 79, "type": "declaration", "text": "static UTF8OutputStream _debugStream;", "parent": 58, "children": [80, 81], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 38}}, {"id": 80, "type": "type_identifier", "text": "UTF8OutputStream", "parent": 79, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 24}}, {"id": 81, "type": "identifier", "text": "_debugStream", "parent": 79, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 37}}, {"id": 82, "type": "declaration", "text": "static bool DEBUG;", "parent": 58, "children": [83, 84], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 83, "type": "primitive_type", "text": "bool", "parent": 82, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 84, "type": "identifier", "text": "DEBUG", "parent": 82, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 18}}, {"id": 85, "type": "declaration", "text": "RelMentionSet *getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks=0);", "parent": 58, "children": [86, 87], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 49, "column": 43}}, {"id": 86, "type": "type_identifier", "text": "RelMentionSet", "parent": 85, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 14}}, {"id": 87, "type": "init_declarator", "text": "*getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks=0", "parent": 85, "children": [88, 128, 129], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 49, "column": 41}}, {"id": 88, "type": "pointer_declarator", "text": "*getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks", "parent": 87, "children": [89, 90], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 49, "column": 39}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 90, "type": "function_declarator", "text": "getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks", "parent": 88, "children": [91, 92], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 49, "column": 39}}, {"id": 91, "type": "identifier", "text": "getRelationTheory", "parent": 90, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 33}}, {"id": 92, "type": "parameter_list", "text": "(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks", "parent": 90, "children": [93, 98, 103, 108, 113, 118, 123], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 49, "column": 39}}, {"id": 93, "type": "parameter_declaration", "text": "EntitySet *entitySet", "parent": 92, "children": [94, 95], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 54}}, {"id": 94, "type": "type_identifier", "text": "EntitySet", "parent": 93, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 43}}, {"id": 95, "type": "pointer_declarator", "text": "*entitySet", "parent": 93, "children": [96, 97], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 54}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 45}}, {"id": 97, "type": "identifier", "text": "entitySet", "parent": 95, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 54}}, {"id": 98, "type": "parameter_declaration", "text": "SentenceTheory *sentTheory", "parent": 92, "children": [99, 100], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 28}}, {"id": 99, "type": "type_identifier", "text": "SentenceTheory", "parent": 98, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 16}}, {"id": 100, "type": "pointer_declarator", "text": "*sentTheory", "parent": 98, "children": [101, 102], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 28}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 102, "type": "identifier", "text": "sentTheory", "parent": 100, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 28}}, {"id": 103, "type": "parameter_declaration", "text": "const Parse *parse", "parent": 92, "children": [104, 105], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 29}}, {"id": 104, "type": "type_identifier", "text": "Parse", "parent": 103, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 22}}, {"id": 105, "type": "pointer_declarator", "text": "*parse", "parent": 103, "children": [106, 107], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 29}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 24}}, {"id": 107, "type": "identifier", "text": "parse", "parent": 105, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 29}}, {"id": 108, "type": "parameter_declaration", "text": "MentionSet *mentionSet", "parent": 92, "children": [109, 110], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 48}}, {"id": 109, "type": "type_identifier", "text": "MentionSet", "parent": 108, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 36}}, {"id": 110, "type": "pointer_declarator", "text": "*mentionSet", "parent": 108, "children": [111, 112], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 48}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 38}}, {"id": 112, "type": "identifier", "text": "mentionSet", "parent": 110, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 48}}, {"id": 113, "type": "parameter_declaration", "text": "ValueMentionSet *valueMentionSet", "parent": 92, "children": [114, 115], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 43}}, {"id": 114, "type": "type_identifier", "text": "ValueMentionSet", "parent": 113, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 26}}, {"id": 115, "type": "pointer_declarator", "text": "*valueMentionSet", "parent": 113, "children": [116, 117], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 43}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 28}}, {"id": 117, "type": "identifier", "text": "valueMentionSet", "parent": 115, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 43}}, {"id": 118, "type": "parameter_declaration", "text": "PropositionSet *propSet", "parent": 92, "children": [119, 120], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 49}}, {"id": 119, "type": "type_identifier", "text": "PropositionSet", "parent": 118, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 40}}, {"id": 120, "type": "pointer_declarator", "text": "*propSet", "parent": 118, "children": [121, 122], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 49}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 42}}, {"id": 122, "type": "identifier", "text": "propSet", "parent": 120, "children": [], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 49}}, {"id": 123, "type": "parameter_declaration", "text": "const PropTreeLinks* ptLinks", "parent": 92, "children": [124, 125], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 39}}, {"id": 124, "type": "type_identifier", "text": "PropTreeLinks", "parent": 123, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 30}}, {"id": 125, "type": "pointer_declarator", "text": "* ptLinks", "parent": 123, "children": [126, 127], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 39}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 31}}, {"id": 127, "type": "identifier", "text": "ptLinks", "parent": 125, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 39}}, {"id": 128, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 40}}, {"id": 129, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 41}}, {"id": 130, "type": "function_definition", "text": "void allowMentionSetChanges() { _allow_mention_set_changes = true; }", "parent": 58, "children": [131, 132], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 69}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 5}}, {"id": 132, "type": "function_declarator", "text": "allowMentionSetChanges()", "parent": 130, "children": [133, 134], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 30}}, {"id": 133, "type": "identifier", "text": "allowMentionSetChanges", "parent": 132, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 28}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 30}}, {"id": 135, "type": "assignment_expression", "text": "_allow_mention_set_changes = true", "parent": 130, "children": [136, 137, 138], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 66}}, {"id": 136, "type": "identifier", "text": "_allow_mention_set_changes", "parent": 135, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 59}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 51, "column": 60}, "end_point": {"row": 51, "column": 61}}, {"id": 138, "type": "true", "text": "true", "parent": 135, "children": [], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 66}}, {"id": 139, "type": "function_definition", "text": "void disallowMentionSetChanges() { _allow_mention_set_changes = false; }", "parent": 58, "children": [140, 141], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 73}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 141, "type": "function_declarator", "text": "disallowMentionSetChanges()", "parent": 139, "children": [142, 143], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 33}}, {"id": 142, "type": "identifier", "text": "disallowMentionSetChanges", "parent": 141, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 31}}, {"id": 143, "type": "parameter_list", "text": "()", "parent": 141, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 33}}, {"id": 144, "type": "assignment_expression", "text": "_allow_mention_set_changes = false", "parent": 139, "children": [145, 146, 147], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 70}}, {"id": 145, "type": "identifier", "text": "_allow_mention_set_changes", "parent": 144, "children": [], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 62}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 52, "column": 63}, "end_point": {"row": 52, "column": 64}}, {"id": 147, "type": "false", "text": "false", "parent": 144, "children": [], "start_point": {"row": 52, "column": 65}, "end_point": {"row": 52, "column": 70}}, {"id": 148, "type": "labeled_statement", "text": "private:\r\n\r\n\tP1Decoder *_p1Decoder;", "parent": 58, "children": [149], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 56, "column": 23}}, {"id": 149, "type": "declaration", "text": "P1Decoder *_p1Decoder;", "parent": 148, "children": [150, 151], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 23}}, {"id": 150, "type": "type_identifier", "text": "P1Decoder", "parent": 149, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 10}}, {"id": 151, "type": "pointer_declarator", "text": "*_p1Decoder", "parent": 149, "children": [152, 153], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 22}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 153, "type": "identifier", "text": "_p1Decoder", "parent": 151, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 22}}, {"id": 154, "type": "declaration", "text": "P1Decoder *_p1SecondaryDecoder;", "parent": 58, "children": [155, 156], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 32}}, {"id": 155, "type": "type_identifier", "text": "P1Decoder", "parent": 154, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 10}}, {"id": 156, "type": "pointer_declarator", "text": "*_p1SecondaryDecoder", "parent": 154, "children": [157, 158], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 31}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 158, "type": "identifier", "text": "_p1SecondaryDecoder", "parent": 156, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 31}}, {"id": 159, "type": "declaration", "text": "MaxEntModel *_maxentDecoder;", "parent": 58, "children": [160, 161], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 29}}, {"id": 160, "type": "type_identifier", "text": "MaxEntModel", "parent": 159, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 12}}, {"id": 161, "type": "pointer_declarator", "text": "*_maxentDecoder", "parent": 159, "children": [162, 163], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 28}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 163, "type": "identifier", "text": "_maxentDecoder", "parent": 161, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 28}}, {"id": 164, "type": "declaration", "text": "double *_maxentTagScores;", "parent": 58, "children": [165, 166], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 26}}, {"id": 165, "type": "primitive_type", "text": "double", "parent": 164, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 166, "type": "pointer_declarator", "text": "*_maxentTagScores", "parent": 164, "children": [167, 168], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 25}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 168, "type": "identifier", "text": "_maxentTagScores", "parent": 166, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 25}}, {"id": 169, "type": "declaration", "text": "VectorModel *_vectorModel;", "parent": 58, "children": [170, 171], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 27}}, {"id": 170, "type": "type_identifier", "text": "VectorModel", "parent": 169, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 12}}, {"id": 171, "type": "pointer_declarator", "text": "*_vectorModel", "parent": 169, "children": [172, 173], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 26}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 173, "type": "identifier", "text": "_vectorModel", "parent": 171, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 26}}, {"id": 174, "type": "declaration", "text": "TreeModel *_treeModel;", "parent": 58, "children": [175, 176], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 23}}, {"id": 175, "type": "type_identifier", "text": "TreeModel", "parent": 174, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 10}}, {"id": 176, "type": "pointer_declarator", "text": "*_treeModel", "parent": 174, "children": [177, 178], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 22}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}, {"id": 178, "type": "identifier", "text": "_treeModel", "parent": 176, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 22}}, {"id": 179, "type": "declaration", "text": "DTTagSet *_tagSet;", "parent": 58, "children": [180, 181], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 19}}, {"id": 180, "type": "type_identifier", "text": "DTTagSet", "parent": 179, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 9}}, {"id": 181, "type": "pointer_declarator", "text": "*_tagSet", "parent": 179, "children": [182, 183], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 18}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 183, "type": "identifier", "text": "_tagSet", "parent": 181, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 18}}, {"id": 184, "type": "declaration", "text": "DTTagSet *_maxentTagSet;", "parent": 58, "children": [185, 186], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 25}}, {"id": 185, "type": "type_identifier", "text": "DTTagSet", "parent": 184, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 9}}, {"id": 186, "type": "pointer_declarator", "text": "*_maxentTagSet", "parent": 184, "children": [187, 188], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 24}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 11}}, {"id": 188, "type": "identifier", "text": "_maxentTagSet", "parent": 186, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 24}}, {"id": 189, "type": "labeled_statement", "text": "DTFeature::FeatureWeightMap *_p1Weights;", "parent": 58, "children": [190, 191], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 41}}, {"id": 190, "type": "statement_identifier", "text": "DTFeature", "parent": 189, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 191, "type": "declaration", "text": "FeatureWeightMap *_p1Weights;", "parent": 189, "children": [192, 193], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 41}}, {"id": 192, "type": "type_identifier", "text": "FeatureWeightMap", "parent": 191, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 28}}, {"id": 193, "type": "pointer_declarator", "text": "*_p1Weights", "parent": 191, "children": [194, 195], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 40}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 30}}, {"id": 195, "type": "identifier", "text": "_p1Weights", "parent": 193, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 40}}, {"id": 196, "type": "labeled_statement", "text": "DTFeature::FeatureWeightMap *_p1SecondaryWeights;", "parent": 58, "children": [197, 198], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 50}}, {"id": 197, "type": "statement_identifier", "text": "DTFeature", "parent": 196, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 10}}, {"id": 198, "type": "declaration", "text": "FeatureWeightMap *_p1SecondaryWeights;", "parent": 196, "children": [199, 200], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 50}}, {"id": 199, "type": "type_identifier", "text": "FeatureWeightMap", "parent": 198, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 28}}, {"id": 200, "type": "pointer_declarator", "text": "*_p1SecondaryWeights", "parent": 198, "children": [201, 202], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 49}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 202, "type": "identifier", "text": "_p1SecondaryWeights", "parent": 200, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 49}}, {"id": 203, "type": "labeled_statement", "text": "DTFeature::FeatureWeightMap *_maxentWeights;", "parent": 58, "children": [204, 205], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 45}}, {"id": 204, "type": "statement_identifier", "text": "DTFeature", "parent": 203, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 10}}, {"id": 205, "type": "declaration", "text": "FeatureWeightMap *_maxentWeights;", "parent": 203, "children": [206, 207], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 45}}, {"id": 206, "type": "type_identifier", "text": "FeatureWeightMap", "parent": 205, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 28}}, {"id": 207, "type": "pointer_declarator", "text": "*_maxentWeights", "parent": 205, "children": [208, 209], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 44}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 30}}, {"id": 209, "type": "identifier", "text": "_maxentWeights", "parent": 207, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 44}}, {"id": 210, "type": "declaration", "text": "class DTFeatureTypeSet", "parent": 58, "children": [211], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 23}}, {"id": 211, "type": "identifier", "text": "DTFeatureTypeSet", "parent": 210, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 23}}, {"id": 212, "type": "pointer_expression", "text": "*_featureTypes", "parent": 58, "children": [213, 214], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 38}}, {"id": 213, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 25}}, {"id": 214, "type": "identifier", "text": "_featureTypes", "parent": 212, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 38}}, {"id": 215, "type": "declaration", "text": "class DTFeatureTypeSet", "parent": 58, "children": [216], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 23}}, {"id": 216, "type": "identifier", "text": "DTFeatureTypeSet", "parent": 215, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 23}}, {"id": 217, "type": "pointer_expression", "text": "*_p1SecondaryFeatureTypes", "parent": 58, "children": [218, 219], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 49}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 219, "type": "identifier", "text": "_p1SecondaryFeatureTypes", "parent": 217, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 49}}, {"id": 220, "type": "declaration", "text": "RelationObservation *_observation;", "parent": 58, "children": [221, 222], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 35}}, {"id": 221, "type": "type_identifier", "text": "RelationObservation", "parent": 220, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 20}}, {"id": 222, "type": "pointer_declarator", "text": "*_observation", "parent": 220, "children": [223, 224], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 34}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 22}}, {"id": 224, "type": "identifier", "text": "_observation", "parent": 222, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 34}}, {"id": 225, "type": "declaration", "text": "PotentialRelationInstance *_inst;", "parent": 58, "children": [226, 227], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 34}}, {"id": 226, "type": "type_identifier", "text": "PotentialRelationInstance", "parent": 225, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 26}}, {"id": 227, "type": "pointer_declarator", "text": "*_inst", "parent": 225, "children": [228, 229], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 33}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 28}}, {"id": 229, "type": "identifier", "text": "_inst", "parent": 227, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 33}}, {"id": 230, "type": "declaration", "text": "int _currentSentenceIndex;", "parent": 58, "children": [231, 232], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 27}}, {"id": 231, "type": "primitive_type", "text": "int", "parent": 230, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 232, "type": "identifier", "text": "_currentSentenceIndex", "parent": 230, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 26}}, {"id": 233, "type": "declaration", "text": "SymbolHash *_facOrgWords;", "parent": 58, "children": [234, 235], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 26}}, {"id": 234, "type": "type_identifier", "text": "SymbolHash", "parent": 233, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 11}}, {"id": 235, "type": "pointer_declarator", "text": "*_facOrgWords", "parent": 233, "children": [236, 237], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 25}}, {"id": 236, "type": "*", "text": "*", "parent": 235, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 237, "type": "identifier", "text": "_facOrgWords", "parent": 235, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 25}}, {"id": 238, "type": "declaration", "text": "void loadSymbolHash(SymbolHash *hash, const char* file);", "parent": 58, "children": [239, 240], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 57}}, {"id": 239, "type": "primitive_type", "text": "void", "parent": 238, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 5}}, {"id": 240, "type": "function_declarator", "text": "loadSymbolHash(SymbolHash *hash, const char* file)", "parent": 238, "children": [241, 242], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 56}}, {"id": 241, "type": "identifier", "text": "loadSymbolHash", "parent": 240, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 20}}, {"id": 242, "type": "parameter_list", "text": "(SymbolHash *hash, const char* file)", "parent": 240, "children": [243, 248], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 56}}, {"id": 243, "type": "parameter_declaration", "text": "SymbolHash *hash", "parent": 242, "children": [244, 245], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 37}}, {"id": 244, "type": "type_identifier", "text": "SymbolHash", "parent": 243, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 31}}, {"id": 245, "type": "pointer_declarator", "text": "*hash", "parent": 243, "children": [246, 247], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 37}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 33}}, {"id": 247, "type": "identifier", "text": "hash", "parent": 245, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 37}}, {"id": 248, "type": "parameter_declaration", "text": "const char* file", "parent": 242, "children": [249, 250], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 55}}, {"id": 249, "type": "primitive_type", "text": "char", "parent": 248, "children": [], "start_point": {"row": 74, "column": 45}, "end_point": {"row": 74, "column": 49}}, {"id": 250, "type": "pointer_declarator", "text": "* file", "parent": 248, "children": [251, 252], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 55}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 50}}, {"id": 252, "type": "identifier", "text": "file", "parent": 250, "children": [], "start_point": {"row": 74, "column": 51}, "end_point": {"row": 74, "column": 55}}, {"id": 253, "type": "declaration", "text": "Symbol fixEthnicityEtcRelation(const Mention *first, const Mention *second);", "parent": 58, "children": [254, 255], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 77}}, {"id": 254, "type": "type_identifier", "text": "Symbol", "parent": 253, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 7}}, {"id": 255, "type": "function_declarator", "text": "fixEthnicityEtcRelation(const Mention *first, const Mention *second)", "parent": 253, "children": [256, 257], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 76}}, {"id": 256, "type": "identifier", "text": "fixEthnicityEtcRelation", "parent": 255, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 31}}, {"id": 257, "type": "parameter_list", "text": "(const Mention *first, const Mention *second)", "parent": 255, "children": [258, 263], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 76}}, {"id": 258, "type": "parameter_declaration", "text": "const Mention *first", "parent": 257, "children": [259, 260], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 52}}, {"id": 259, "type": "type_identifier", "text": "Mention", "parent": 258, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 45}}, {"id": 260, "type": "pointer_declarator", "text": "*first", "parent": 258, "children": [261, 262], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 52}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 47}}, {"id": 262, "type": "identifier", "text": "first", "parent": 260, "children": [], "start_point": {"row": 75, "column": 47}, "end_point": {"row": 75, "column": 52}}, {"id": 263, "type": "parameter_declaration", "text": "const Mention *second", "parent": 257, "children": [264, 265], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 75}}, {"id": 264, "type": "type_identifier", "text": "Mention", "parent": 263, "children": [], "start_point": {"row": 75, "column": 60}, "end_point": {"row": 75, "column": 67}}, {"id": 265, "type": "pointer_declarator", "text": "*second", "parent": 263, "children": [266, 267], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 75}}, {"id": 266, "type": "*", "text": "*", "parent": 265, "children": [], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 69}}, {"id": 267, "type": "identifier", "text": "second", "parent": 265, "children": [], "start_point": {"row": 75, "column": 69}, "end_point": {"row": 75, "column": 75}}, {"id": 268, "type": "declaration", "text": "RelMention *_relations[MAX_SENTENCE_RELATIONS];", "parent": 58, "children": [269, 270], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 48}}, {"id": 269, "type": "type_identifier", "text": "RelMention", "parent": 268, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 11}}, {"id": 270, "type": "pointer_declarator", "text": "*_relations[MAX_SENTENCE_RELATIONS]", "parent": 268, "children": [271, 272], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 47}}, {"id": 271, "type": "*", "text": "*", "parent": 270, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 272, "type": "array_declarator", "text": "_relations[MAX_SENTENCE_RELATIONS]", "parent": 270, "children": [273, 274], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 47}}, {"id": 273, "type": "identifier", "text": "_relations", "parent": 272, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 23}}, {"id": 274, "type": "identifier", "text": "MAX_SENTENCE_RELATIONS", "parent": 272, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 46}}, {"id": 275, "type": "declaration", "text": "int _n_relations;", "parent": 58, "children": [276, 277], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 18}}, {"id": 276, "type": "primitive_type", "text": "int", "parent": 275, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 277, "type": "identifier", "text": "_n_relations", "parent": 275, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 17}}, {"id": 278, "type": "declaration", "text": "void addRelation(const Mention *first, const Mention *second, Symbol type, float score);", "parent": 58, "children": [279, 280], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 89}}, {"id": 279, "type": "primitive_type", "text": "void", "parent": 278, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 5}}, {"id": 280, "type": "function_declarator", "text": "addRelation(const Mention *first, const Mention *second, Symbol type, float score)", "parent": 278, "children": [281, 282], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 88}}, {"id": 281, "type": "identifier", "text": "addRelation", "parent": 280, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 17}}, {"id": 282, "type": "parameter_list", "text": "(const Mention *first, const Mention *second, Symbol type, float score)", "parent": 280, "children": [283, 288, 293, 296], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 88}}, {"id": 283, "type": "parameter_declaration", "text": "const Mention *first", "parent": 282, "children": [284, 285], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 38}}, {"id": 284, "type": "type_identifier", "text": "Mention", "parent": 283, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 31}}, {"id": 285, "type": "pointer_declarator", "text": "*first", "parent": 283, "children": [286, 287], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 38}}, {"id": 286, "type": "*", "text": "*", "parent": 285, "children": [], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 33}}, {"id": 287, "type": "identifier", "text": "first", "parent": 285, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 38}}, {"id": 288, "type": "parameter_declaration", "text": "const Mention *second", "parent": 282, "children": [289, 290], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 61}}, {"id": 289, "type": "type_identifier", "text": "Mention", "parent": 288, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 53}}, {"id": 290, "type": "pointer_declarator", "text": "*second", "parent": 288, "children": [291, 292], "start_point": {"row": 79, "column": 54}, "end_point": {"row": 79, "column": 61}}, {"id": 291, "type": "*", "text": "*", "parent": 290, "children": [], "start_point": {"row": 79, "column": 54}, "end_point": {"row": 79, "column": 55}}, {"id": 292, "type": "identifier", "text": "second", "parent": 290, "children": [], "start_point": {"row": 79, "column": 55}, "end_point": {"row": 79, "column": 61}}, {"id": 293, "type": "parameter_declaration", "text": "Symbol type", "parent": 282, "children": [294, 295], "start_point": {"row": 79, "column": 63}, "end_point": {"row": 79, "column": 74}}, {"id": 294, "type": "type_identifier", "text": "Symbol", "parent": 293, "children": [], "start_point": {"row": 79, "column": 63}, "end_point": {"row": 79, "column": 69}}, {"id": 295, "type": "identifier", "text": "type", "parent": 293, "children": [], "start_point": {"row": 79, "column": 70}, "end_point": {"row": 79, "column": 74}}, {"id": 296, "type": "parameter_declaration", "text": "float score", "parent": 282, "children": [297, 298], "start_point": {"row": 79, "column": 76}, "end_point": {"row": 79, "column": 87}}, {"id": 297, "type": "primitive_type", "text": "float", "parent": 296, "children": [], "start_point": {"row": 79, "column": 76}, "end_point": {"row": 79, "column": 81}}, {"id": 298, "type": "identifier", "text": "score", "parent": 296, "children": [], "start_point": {"row": 79, "column": 82}, "end_point": {"row": 79, "column": 87}}, {"id": 299, "type": "declaration", "text": "void findMentionSetChanges(MentionSet *mentionSet);", "parent": 58, "children": [300, 301], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 52}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 301, "type": "function_declarator", "text": "findMentionSetChanges(MentionSet *mentionSet)", "parent": 299, "children": [302, 303], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 51}}, {"id": 302, "type": "identifier", "text": "findMentionSetChanges", "parent": 301, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 27}}, {"id": 303, "type": "parameter_list", "text": "(MentionSet *mentionSet)", "parent": 301, "children": [304], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 51}}, {"id": 304, "type": "parameter_declaration", "text": "MentionSet *mentionSet", "parent": 303, "children": [305, 306], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 50}}, {"id": 305, "type": "type_identifier", "text": "MentionSet", "parent": 304, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 38}}, {"id": 306, "type": "pointer_declarator", "text": "*mentionSet", "parent": 304, "children": [307, 308], "start_point": {"row": 80, "column": 39}, "end_point": {"row": 80, "column": 50}}, {"id": 307, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 80, "column": 39}, "end_point": {"row": 80, "column": 40}}, {"id": 308, "type": "identifier", "text": "mentionSet", "parent": 306, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 50}}, {"id": 309, "type": "declaration", "text": "void tryForcingRelations(MentionSet *mentionSet);", "parent": 58, "children": [310, 311], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 50}}, {"id": 310, "type": "primitive_type", "text": "void", "parent": 309, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 311, "type": "function_declarator", "text": "tryForcingRelations(MentionSet *mentionSet)", "parent": 309, "children": [312, 313], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 49}}, {"id": 312, "type": "identifier", "text": "tryForcingRelations", "parent": 311, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 25}}, {"id": 313, "type": "parameter_list", "text": "(MentionSet *mentionSet)", "parent": 311, "children": [314], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 49}}, {"id": 314, "type": "parameter_declaration", "text": "MentionSet *mentionSet", "parent": 313, "children": [315, 316], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 48}}, {"id": 315, "type": "type_identifier", "text": "MentionSet", "parent": 314, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 36}}, {"id": 316, "type": "pointer_declarator", "text": "*mentionSet", "parent": 314, "children": [317, 318], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 48}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 38}}, {"id": 318, "type": "identifier", "text": "mentionSet", "parent": 316, "children": [], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 48}}, {"id": 319, "type": "declaration", "text": "float shouldBeReversedScore(Symbol answer);", "parent": 58, "children": [320, 321], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 44}}, {"id": 320, "type": "primitive_type", "text": "float", "parent": 319, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 6}}, {"id": 321, "type": "function_declarator", "text": "shouldBeReversedScore(Symbol answer)", "parent": 319, "children": [322, 323], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 43}}, {"id": 322, "type": "identifier", "text": "shouldBeReversedScore", "parent": 321, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 28}}, {"id": 323, "type": "parameter_list", "text": "(Symbol answer)", "parent": 321, "children": [324], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 43}}, {"id": 324, "type": "parameter_declaration", "text": "Symbol answer", "parent": 323, "children": [325, 326], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 42}}, {"id": 325, "type": "type_identifier", "text": "Symbol", "parent": 324, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 35}}, {"id": 326, "type": "identifier", "text": "answer", "parent": 324, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 42}}, {"id": 327, "type": "declaration", "text": "bool shouldBeReversed(Symbol answer);", "parent": 58, "children": [328, 329], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 38}}, {"id": 328, "type": "primitive_type", "text": "bool", "parent": 327, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 329, "type": "function_declarator", "text": "shouldBeReversed(Symbol answer)", "parent": 327, "children": [330, 331], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 37}}, {"id": 330, "type": "identifier", "text": "shouldBeReversed", "parent": 329, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 22}}, {"id": 331, "type": "parameter_list", "text": "(Symbol answer)", "parent": 329, "children": [332], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 37}}, {"id": 332, "type": "parameter_declaration", "text": "Symbol answer", "parent": 331, "children": [333, 334], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 36}}, {"id": 333, "type": "type_identifier", "text": "Symbol", "parent": 332, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 29}}, {"id": 334, "type": "identifier", "text": "answer", "parent": 332, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 36}}, {"id": 335, "type": "declaration", "text": "bool tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes);", "parent": 58, "children": [336, 337], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 90, "column": 52}}, {"id": 336, "type": "primitive_type", "text": "bool", "parent": 335, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 5}}, {"id": 337, "type": "function_declarator", "text": "tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes)", "parent": 335, "children": [338, 339], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 90, "column": 51}}, {"id": 338, "type": "identifier", "text": "tryFakeTypeRelation", "parent": 337, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 25}}, {"id": 339, "type": "parameter_list", "text": "(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes)", "parent": 337, "children": [340, 345, 350, 353], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 90, "column": 51}}, {"id": 340, "type": "parameter_declaration", "text": "MentionSet *mentionSet", "parent": 339, "children": [341, 342], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 48}}, {"id": 341, "type": "type_identifier", "text": "MentionSet", "parent": 340, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 36}}, {"id": 342, "type": "pointer_declarator", "text": "*mentionSet", "parent": 340, "children": [343, 344], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 48}}, {"id": 343, "type": "*", "text": "*", "parent": 342, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 38}}, {"id": 344, "type": "identifier", "text": "mentionSet", "parent": 342, "children": [], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 48}}, {"id": 345, "type": "parameter_declaration", "text": "const Mention *possMention", "parent": 339, "children": [346, 347], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 28}}, {"id": 346, "type": "type_identifier", "text": "Mention", "parent": 345, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 15}}, {"id": 347, "type": "pointer_declarator", "text": "*possMention", "parent": 345, "children": [348, 349], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 28}}, {"id": 348, "type": "*", "text": "*", "parent": 347, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 17}}, {"id": 349, "type": "identifier", "text": "possMention", "parent": 347, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 28}}, {"id": 350, "type": "parameter_declaration", "text": "EntityType possibleType", "parent": 339, "children": [351, 352], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 25}}, {"id": 351, "type": "type_identifier", "text": "EntityType", "parent": 350, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 12}}, {"id": 352, "type": "identifier", "text": "possibleType", "parent": 350, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 25}}, {"id": 353, "type": "parameter_declaration", "text": "Symbol *acceptableTypes", "parent": 339, "children": [354, 355], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 50}}, {"id": 354, "type": "type_identifier", "text": "Symbol", "parent": 353, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 33}}, {"id": 355, "type": "pointer_declarator", "text": "*acceptableTypes", "parent": 353, "children": [356, 357], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 50}}, {"id": 356, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 35}}, {"id": 357, "type": "identifier", "text": "acceptableTypes", "parent": 355, "children": [], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 50}}, {"id": 358, "type": "declaration", "text": "bool _skip_special_case_answer;", "parent": 58, "children": [359, 360], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 32}}, {"id": 359, "type": "primitive_type", "text": "bool", "parent": 358, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 5}}, {"id": 360, "type": "identifier", "text": "_skip_special_case_answer", "parent": 358, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 31}}, {"id": 361, "type": "declaration", "text": "Symbol findSpecialCaseRelation(MentionSet *mentionSet);", "parent": 58, "children": [362, 363], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 56}}, {"id": 362, "type": "type_identifier", "text": "Symbol", "parent": 361, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 7}}, {"id": 363, "type": "function_declarator", "text": "findSpecialCaseRelation(MentionSet *mentionSet)", "parent": 361, "children": [364, 365], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 55}}, {"id": 364, "type": "identifier", "text": "findSpecialCaseRelation", "parent": 363, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 31}}, {"id": 365, "type": "parameter_list", "text": "(MentionSet *mentionSet)", "parent": 363, "children": [366], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 96, "column": 55}}, {"id": 366, "type": "parameter_declaration", "text": "MentionSet *mentionSet", "parent": 365, "children": [367, 368], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 54}}, {"id": 367, "type": "type_identifier", "text": "MentionSet", "parent": 366, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 42}}, {"id": 368, "type": "pointer_declarator", "text": "*mentionSet", "parent": 366, "children": [369, 370], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 54}}, {"id": 369, "type": "*", "text": "*", "parent": 368, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 44}}, {"id": 370, "type": "identifier", "text": "mentionSet", "parent": 368, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 54}}, {"id": 371, "type": "declaration", "text": "static Symbol NO_RELATION_SYM;", "parent": 58, "children": [372, 373], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 31}}, {"id": 372, "type": "type_identifier", "text": "Symbol", "parent": 371, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 373, "type": "identifier", "text": "NO_RELATION_SYM", "parent": 371, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 30}}, {"id": 374, "type": "declaration", "text": "bool _allow_mention_set_changes;", "parent": 58, "children": [375, 376], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 33}}, {"id": 375, "type": "primitive_type", "text": "bool", "parent": 374, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 5}}, {"id": 376, "type": "identifier", "text": "_allow_mention_set_changes", "parent": 374, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 32}}, {"id": 377, "type": "declaration", "text": "double calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs);", "parent": 58, "children": [378, 379], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 102, "column": 50}}, {"id": 378, "type": "primitive_type", "text": "double", "parent": 377, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 7}}, {"id": 379, "type": "function_declarator", "text": "calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs)", "parent": 377, "children": [380, 381], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 102, "column": 49}}, {"id": 380, "type": "identifier", "text": "calculateConfidenceScore", "parent": 379, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 32}}, {"id": 381, "type": "parameter_list", "text": "(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs)", "parent": 379, "children": [382, 387, 392, 395, 398], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 102, "column": 49}}, {"id": 382, "type": "parameter_declaration", "text": "const Mention* mention1", "parent": 381, "children": [383, 384], "start_point": {"row": 101, "column": 33}, "end_point": {"row": 101, "column": 56}}, {"id": 383, "type": "type_identifier", "text": "Mention", "parent": 382, "children": [], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 46}}, {"id": 384, "type": "pointer_declarator", "text": "* mention1", "parent": 382, "children": [385, 386], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 56}}, {"id": 385, "type": "*", "text": "*", "parent": 384, "children": [], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 47}}, {"id": 386, "type": "identifier", "text": "mention1", "parent": 384, "children": [], "start_point": {"row": 101, "column": 48}, "end_point": {"row": 101, "column": 56}}, {"id": 387, "type": "parameter_declaration", "text": "const Mention* mention2", "parent": 381, "children": [388, 389], "start_point": {"row": 101, "column": 58}, "end_point": {"row": 101, "column": 81}}, {"id": 388, "type": "type_identifier", "text": "Mention", "parent": 387, "children": [], "start_point": {"row": 101, "column": 64}, "end_point": {"row": 101, "column": 71}}, {"id": 389, "type": "pointer_declarator", "text": "* mention2", "parent": 387, "children": [390, 391], "start_point": {"row": 101, "column": 71}, "end_point": {"row": 101, "column": 81}}, {"id": 390, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 101, "column": 71}, "end_point": {"row": 101, "column": 72}}, {"id": 391, "type": "identifier", "text": "mention2", "parent": 389, "children": [], "start_point": {"row": 101, "column": 73}, "end_point": {"row": 101, "column": 81}}, {"id": 392, "type": "parameter_declaration", "text": "float reversed_score", "parent": 381, "children": [393, 394], "start_point": {"row": 101, "column": 83}, "end_point": {"row": 101, "column": 103}}, {"id": 393, "type": "primitive_type", "text": "float", "parent": 392, "children": [], "start_point": {"row": 101, "column": 83}, "end_point": {"row": 101, "column": 88}}, {"id": 394, "type": "identifier", "text": "reversed_score", "parent": 392, "children": [], "start_point": {"row": 101, "column": 89}, "end_point": {"row": 101, "column": 103}}, {"id": 395, "type": "parameter_declaration", "text": "Symbol answer", "parent": 381, "children": [396, 397], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 22}}, {"id": 396, "type": "type_identifier", "text": "Symbol", "parent": 395, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 15}}, {"id": 397, "type": "identifier", "text": "answer", "parent": 395, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 22}}, {"id": 398, "type": "parameter_declaration", "text": "RelationObservation *obs", "parent": 381, "children": [399, 400], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 48}}, {"id": 399, "type": "type_identifier", "text": "RelationObservation", "parent": 398, "children": [], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 43}}, {"id": 400, "type": "pointer_declarator", "text": "*obs", "parent": 398, "children": [401, 402], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 48}}, {"id": 401, "type": "*", "text": "*", "parent": 400, "children": [], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 45}}, {"id": 402, "type": "identifier", "text": "obs", "parent": 400, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 48}}, {"id": 403, "type": "declaration", "text": "bool _use_correct_answers;", "parent": 58, "children": [404, 405], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 27}}, {"id": 404, "type": "primitive_type", "text": "bool", "parent": 403, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 5}}, {"id": 405, "type": "identifier", "text": "_use_correct_answers", "parent": 403, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 26}}, {"id": 406, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 6}}]}, "node_categories": {"declarations": {"functions": [58, 71, 76, 90, 130, 132, 139, 141, 240, 255, 280, 301, 311, 321, 329, 337, 363, 379], "variables": [15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 69, 74, 79, 82, 85, 93, 98, 103, 108, 113, 118, 123, 149, 154, 159, 164, 169, 174, 179, 184, 191, 198, 205, 210, 215, 220, 225, 230, 233, 238, 243, 248, 253, 258, 263, 268, 275, 278, 283, 288, 293, 296, 299, 304, 309, 314, 319, 324, 327, 332, 335, 340, 345, 350, 353, 358, 361, 366, 371, 374, 377, 382, 387, 392, 395, 398, 403], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 55, 56], "modules": [], "enums": []}, "statements": {"expressions": [61, 64, 66, 212, 217], "assignments": [135, 144], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 59, 62, 67, 72, 77, 80, 81, 84, 86, 91, 94, 97, 99, 102, 104, 107, 109, 112, 114, 117, 119, 122, 124, 127, 133, 136, 142, 145, 150, 153, 155, 158, 160, 163, 168, 170, 173, 175, 178, 180, 183, 185, 188, 190, 192, 195, 197, 199, 202, 204, 206, 209, 211, 214, 216, 219, 221, 224, 226, 229, 232, 234, 237, 241, 244, 247, 252, 254, 256, 259, 262, 264, 267, 269, 273, 274, 277, 281, 284, 287, 289, 292, 294, 295, 298, 302, 305, 308, 312, 315, 318, 322, 325, 326, 330, 333, 334, 338, 341, 344, 346, 349, 351, 352, 354, 357, 360, 362, 364, 367, 370, 372, 373, 376, 380, 383, 386, 388, 391, 394, 396, 397, 399, 402, 405, 406], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 57, 129], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 58, "universal_type": "function", "name": "EnglishComboRelationFinder", "text_snippet": "class EnglishComboRelationFinder {\r\npublic:\r\n\tEnglishComboRelationFinder();\r\n\t~EnglishComboRelationF"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "cleanup()"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "resetForNewSentence()"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *pars"}, {"node_id": 130, "universal_type": "function", "name": "allowMentionSetChanges", "text_snippet": "void allowMentionSetChanges() { _allow_mention_set_changes = true; }"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "allowMentionSetChanges()"}, {"node_id": 139, "universal_type": "function", "name": "disallowMentionSetChanges", "text_snippet": "void disallowMentionSetChanges() { _allow_mention_set_changes = false; }"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "disallowMentionSetChanges()"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "loadSymbolHash(SymbolHash *hash, const char* file)"}, {"node_id": 255, "universal_type": "function", "name": "unknown", "text_snippet": "fixEthnicityEtcRelation(const Mention *first, const Mention *second)"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "addRelation(const Mention *first, const Mention *second, Symbol type, float score)"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "findMentionSetChanges(MentionSet *mentionSet)"}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": "tryForcingRelations(MentionSet *mentionSet)"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": "shouldBeReversedScore(Symbol answer)"}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "shouldBeReversed(Symbol answer)"}, {"node_id": 337, "universal_type": "function", "name": "unknown", "text_snippet": "tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleTy"}, {"node_id": 363, "universal_type": "function", "name": "unknown", "text_snippet": "findSpecialCaseRelation(MentionSet *mentionSet)"}, {"node_id": 379, "universal_type": "function", "name": "unknown", "text_snippet": "calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Generic/common/limits.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Generic/common/Symbol.h\"\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"Generic/common/UTF8OutputStream.h\"\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 55, "text": "#include \"Generic/discTagger/DTFeature.h\"\r\n"}, {"node_id": 56, "text": "#include"}]}, "original_source_code": "#ifndef EN_COMBO_RELATION_FINDER_H\r\n#define EN_COMBO_RELATION_FINDER_H\r\n\r\n// Copyright 2008 by BBN Technologies Corp.\r\n// All Rights Reserved.\r\n\r\n#include \"Generic/common/limits.h\"\r\n#include \"Generic/common/Symbol.h\"\r\n#include \"Generic/common/UTF8OutputStream.h\"\r\n\r\nclass Parse;\r\nclass Mention;\r\nclass MentionSet;\r\nclass ValueMentionSet;\r\nclass EntitySet;\r\nclass EntityType;\r\nclass PropositionSet;\r\nclass P1Decoder;\r\nclass RelationObservation;\r\nclass RelMentionSet;\r\nclass RelMention;\r\nclass DTTagSet;\r\nclass VectorModel;\r\nclass PatternMatcherModel;\r\nclass TreeModel;\r\nclass MaxEntModel;\r\nclass PotentialRelationInstance;\r\nclass SymbolHash;\r\nclass PropTreeLinks;\r\nclass SentenceTheory;\r\n#include \"Generic/discTagger/DTFeature.h\"\r\n\r\nclass EnglishComboRelationFinder {\r\npublic:\r\n\tEnglishComboRelationFinder();\r\n\t~EnglishComboRelationFinder();\r\n\tvoid cleanup();\r\n\r\n\tvoid resetForNewSentence();\r\n\r\n\tstatic UTF8OutputStream _debugStream;\r\n\tstatic bool DEBUG;\r\n\r\n\tRelMentionSet *getRelationTheory(EntitySet *entitySet,\r\n\t\tSentenceTheory *sentTheory,\r\n\t\t\t\t\t\t\t\t const Parse *parse,\r\n\t\t\t MentionSet *mentionSet,\r\n\t\t\t\t\t\t\t\t ValueMentionSet *valueMentionSet,\r\n\t\t\t PropositionSet *propSet,\r\n\t\t\t\t\t\t\t\t const PropTreeLinks* ptLinks=0);\r\n\r\n\tvoid allowMentionSetChanges() { _allow_mention_set_changes = true; }\r\n\tvoid disallowMentionSetChanges() { _allow_mention_set_changes = false; }\r\n\r\nprivate:\r\n\r\n\tP1Decoder *_p1Decoder;\r\n\tP1Decoder *_p1SecondaryDecoder;\r\n\tMaxEntModel *_maxentDecoder;\r\n\tdouble *_maxentTagScores;\r\n\tVectorModel *_vectorModel;\r\n\tTreeModel *_treeModel;\r\n\tDTTagSet *_tagSet;\r\n\tDTTagSet *_maxentTagSet;\r\n\tDTFeature::FeatureWeightMap *_p1Weights;\r\n\tDTFeature::FeatureWeightMap *_p1SecondaryWeights;\r\n\tDTFeature::FeatureWeightMap *_maxentWeights;\r\n\tclass DTFeatureTypeSet *_featureTypes;\r\n\tclass DTFeatureTypeSet *_p1SecondaryFeatureTypes;\r\n\tRelationObservation *_observation;\r\n\tPotentialRelationInstance *_inst;\r\n\tint _currentSentenceIndex;\r\n\r\n\tSymbolHash *_facOrgWords;\r\n\tvoid loadSymbolHash(SymbolHash *hash, const char* file);\r\n\tSymbol fixEthnicityEtcRelation(const Mention *first, const Mention *second);\r\n\r\n\tRelMention *_relations[MAX_SENTENCE_RELATIONS];\r\n\tint _n_relations;\r\n\tvoid addRelation(const Mention *first, const Mention *second, Symbol type, float score);\r\n\tvoid findMentionSetChanges(MentionSet *mentionSet);\r\n\tvoid tryForcingRelations(MentionSet *mentionSet);\r\n\r\n\t/** Return a float indicating whether the given answer should probably have its order\r\n\t * reversed. If this score is greater than 0, then switch the two realtion args. */\r\n\tfloat shouldBeReversedScore(Symbol answer);\r\n\tbool shouldBeReversed(Symbol answer);\r\n\r\n\tbool tryFakeTypeRelation(MentionSet *mentionSet, \r\n\t\tconst Mention *possMention,\r\n\t\tEntityType possibleType, Symbol *acceptableTypes);\r\n\t//bool tryCoercedTypeRelation(MentionSet *mentionSet, EntitySet *entitySet,\r\n\t//\tconst Mention *possMention,\r\n\t//\tEntityType possibleType);\r\n\r\n\tbool _skip_special_case_answer;\r\n\tSymbol findSpecialCaseRelation(MentionSet *mentionSet);\r\n\tstatic Symbol NO_RELATION_SYM;\r\n\r\n\tbool _allow_mention_set_changes;\r\n\r\n\tdouble calculateConfidenceScore(const Mention* mention1, const Mention* mention2, float reversed_score,\r\n\t\t\t\t\t\t\t\t\tSymbol answer, RelationObservation *obs);\r\n\r\n\tbool _use_correct_answers;\r\n};\r\n\r\n\r\n#endif\r\n\r\n"}
197
c
/* * @file PDoba.h * @author <NAME>, xkozub03 * @author <NAME>, xhurta01 * @date 22.11.2014 * @brief Hlidac pracovni doby, projekt do predmetu IMS 2014 */ #ifndef PDOBA_H #define PDOBA_H #include "Defs.h" /** * \brief Hlídač začátku/konce pracovní doby */ class PDoba: public Process { public: int AktualniDen() { return den; } // Vrati aktualniy den bool JeVikend() { return vikend; } // Je víkend? private: void Behavior(); // Hlavní proces int den{PONDELI}; /**< den v simulaci */ bool vikend{false}; /**< indikátor víkendu */ }; #endif /* PDOBA_H */
22.16
25
(translation_unit) "/* \n * @file PDoba.h\n * @author <NAME>, xkozub03\n * @author <NAME>, xhurta01\n * @date 22.11.2014\n * @brief Hlidac pracovni doby, projekt do predmetu IMS 2014\n */\n\n#ifndef PDOBA_H\n#define PDOBA_H\n\n#include "Defs.h"\n\n/**\n * \brief Hlídač začátku/konce pracovní doby\n */\nclass PDoba: public Process {\npublic:\n int AktualniDen() { return den; } // Vrati aktualniy den\n bool JeVikend() { return vikend; } // Je víkend? \n \nprivate:\n void Behavior(); // Hlavní proces\n \n int den{PONDELI}; /**< den v simulaci */\n bool vikend{false}; /**< indikátor víkendu */\n};\n#endif /* PDOBA_H */\n" (comment) "/* \n * @file PDoba.h\n * @author <NAME>, xkozub03\n * @author <NAME>, xhurta01\n * @date 22.11.2014\n * @brief Hlidac pracovni doby, projekt do predmetu IMS 2014\n */" (ERROR) "#ifndef PDOBA_H\n#define PDOBA_H\n\n#include "Defs.h"\n\n/**\n * \brief Hlídač začátku/konce pracovní doby\n */\nclass PDoba: public Process {\npublic:\n int AktualniDen() { return den; } // Vrati aktualniy den\n bool JeVikend() { return vikend; } // Je víkend? \n \nprivate:\n void Behavior(); // Hlavní proces\n \n int den{PONDELI}; /**< den v simulaci */\n bool vikend{false}; /**< indikátor víkendu */\n};\n#endif /* PDOBA_H */\n" (#ifndef) "#ifndef" (identifier) "PDOBA_H" (preproc_def) "#define PDOBA_H\n" (#define) "#define" (identifier) "PDOBA_H" (preproc_include) "#include "Defs.h"\n" (#include) "#include" (string_literal) ""Defs.h"" (") """ (string_content) "Defs.h" (") """ (comment) "/**\n * \brief Hlídač začátku/konce pracovní doby\n */\nclas" (type_identifier) " PDob" (ERROR) ": public Proc" (identifier) ": pub" (:) "l" (identifier) "c Proc" (identifier) "ss {\npu" ({) "l" (labeled_statement) "c:\n int AktualniDen() { return den; } //" (statement_identifier) "c:\n in" (:) "t" (ERROR) "AktualniDen() { re" (primitive_type) "Akt" (function_declarator) "lniDen() { re" (identifier) "lniDen() { " (parameter_list) "re" (() "r" ()) "e" (compound_statement) "urn den; } //" ({) "u" (return_statement) "n den; } " (return) "n den;" (identifier) "} " (;) " " (}) "/" (comment) "ati aktualniy den\n boo" (function_definition) "JeVikend() { return vikend; } // J" (primitive_type) "JeVi" (function_declarator) "end() {" (identifier) "end() " (parameter_list) " {" (() " " ()) "{" (compound_statement) "urn vikend; } // J" ({) "u" (return_statement) "n vikend; } //" (return) "n vike" (identifier) "d; } /" (;) "/" (}) "J" (comment) " víkend? \n \npri" (labeled_statement) "e:\n void Behavior(); // Hl" (statement_identifier) "e:\n voi" (:) "d" (declaration) "ehavior(); // Hl" (primitive_type) "ehav" (function_declarator) "or(); // H" (identifier) "or(); //" (parameter_list) " H" (() " " ()) "H" (;) "l" (comment) "vní proces\n \n int" (primitive_type) "{PO" (identifier) "DEL" ({) "I" (type_identifier) "}; /**<" (ERROR) " " (}) " " (;) "d" (comment) "n v simulaci */\n bool " (function_definition) "kend{false}; /**< indikátor víkendu */\n};\n#endif " (primitive_type) "kend" (identifier) "false}" (compound_statement) "; /**< indikátor víkendu */\n};\n#endif " ({) ";" (expression_statement) " /**< i" (false) " /**<" (ERROR) " " (}) " " (;) "i" (comment) "dikátor víkendu */\n};\n#endi" (}) " " (expression_statement) "/" (;) "/" (preproc_call) " PDOBA_H */\n" (preproc_directive) " PDOBA" (comment) "H */\n"
92
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.16, "nodes": 46, "errors": 0, "source_hash": "398fdd44534108585a5fdf848933b395a390a25b21a246553c7b11323740f10f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PDOBA_H\n#define\tPDOBA_H\n\n#include \"Defs.h\"\n\n/**\n * \\brief Hl\u00edda\u010d za\u010d\u00e1tku/konce pracovn\u00ed doby\n */\nclass PDoba: public Process {\npublic:\n\tint AktualniDen() { return den; }\t // Vrati aktualniy den\n\tbool JeVikend()\t { return vikend; } // Je v\u00edkend? \n\t\nprivate:\n\tvoid Behavior(); // Hlavn\u00ed proces\n\t\n\tint den{PONDELI};\t/**< den v simulaci */\n\tbool vikend{false}; /**< indik\u00e1tor v\u00edkendu */\n};\n#endif\t/* PDOBA_H */\n", "parent": null, "children": [1, 2, 3, 6, 9, 10, 13, 14, 22, 28, 35, 36, 37, 38, 39, 44], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"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": "PDOBA_H", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define\tPDOBA_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "PDOBA_H", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include \"Defs.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Defs.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 9, "type": "type_identifier", "text": " PDob", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 5}}, {"id": 10, "type": "ERROR", "text": ": public Proc", "parent": 0, "children": [11, 12], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 19}}, {"id": 11, "type": "identifier", "text": ": pub", "parent": 10, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 11}}, {"id": 12, "type": "identifier", "text": "c Proc", "parent": 10, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 19}}, {"id": 13, "type": "identifier", "text": "ss {\npu", "parent": 0, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 27}}, {"id": 14, "type": "labeled_statement", "text": "c:\n\tint AktualniDen() { return den; }\t //", "parent": 0, "children": [15, 16], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 35}}, {"id": 15, "type": "statement_identifier", "text": "c:\n\tin", "parent": 14, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 16, "type": "ERROR", "text": "AktualniDen() { re", "parent": 14, "children": [17, 18], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 19}}, {"id": 17, "type": "primitive_type", "text": "Akt", "parent": 16, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}, {"id": 18, "type": "function_declarator", "text": "lniDen() { re", "parent": 16, "children": [19, 20], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 19}}, {"id": 19, "type": "identifier", "text": "lniDen() { ", "parent": 18, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 17}}, {"id": 20, "type": "parameter_list", "text": "re", "parent": 18, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 19}}, {"id": 21, "type": "return_statement", "text": "n den; }\t ", "parent": 14, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 33}}, {"id": 22, "type": "function_definition", "text": "JeVikend()\t { return vikend; } // J", "parent": 0, "children": [23, 24], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 38}}, {"id": 23, "type": "primitive_type", "text": "JeVi", "parent": 22, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 5}}, {"id": 24, "type": "function_declarator", "text": "end()\t {", "parent": 22, "children": [25], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 16}}, {"id": 25, "type": "identifier", "text": "end()\t ", "parent": 24, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 14}}, {"id": 26, "type": "return_statement", "text": "n vikend; } //", "parent": 22, "children": [27], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 36}}, {"id": 27, "type": "identifier", "text": "d; } /", "parent": 26, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 35}}, {"id": 28, "type": "labeled_statement", "text": "e:\n\tvoid Behavior(); // Hl", "parent": 0, "children": [29, 30], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 17}}, {"id": 29, "type": "statement_identifier", "text": "e:\n\tvoi", "parent": 28, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 30, "type": "declaration", "text": "ehavior(); // Hl", "parent": 28, "children": [31, 32], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 17}}, {"id": 31, "type": "primitive_type", "text": "ehav", "parent": 30, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 32, "type": "function_declarator", "text": "or(); // H", "parent": 30, "children": [33, 34], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 16}}, {"id": 33, "type": "identifier", "text": "or(); //", "parent": 32, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 34, "type": "parameter_list", "text": " H", "parent": 32, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 35, "type": "primitive_type", "text": "{PO", "parent": 0, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 4}}, {"id": 36, "type": "identifier", "text": "DEL", "parent": 0, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 8}}, {"id": 37, "type": "type_identifier", "text": "};\t/**<", "parent": 0, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 16}}, {"id": 38, "type": "ERROR", "text": " ", "parent": 0, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 39, "type": "function_definition", "text": "kend{false}; /**< indik\u00e1tor v\u00edkendu */\n};\n#endif\t", "parent": 0, "children": [40, 41], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 26, "column": 1}}, {"id": 40, "type": "primitive_type", "text": "kend", "parent": 39, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 41, "type": "identifier", "text": "false}", "parent": 39, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 42, "type": "false", "text": " /**<", "parent": 39, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 18}}, {"id": 43, "type": "ERROR", "text": " ", "parent": 39, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 44, "type": "preproc_call", "text": " PDOBA_H */\n", "parent": 0, "children": [45], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 45, "type": "preproc_directive", "text": " PDOBA", "parent": 44, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 22, 24, 32, 39], "variables": [30], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 9, 11, 12, 13, 15, 19, 25, 27, 29, 33, 36, 37, 41], "returns": [21, 26], "exceptions": []}, "expressions": {"calls": [44], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "lniDen() { re"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "JeVikend()\t { return vikend; } // J"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "end()\t {"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "or(); // H"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "kend{false}; /**< indik\u00e1tor v\u00edkendu */\n};\n#endif\t"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Defs.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* \n * @file PDoba.h\n * @author <NAME>, xkozub03\n * @author <NAME>, xhurta01\n * @date 22.11.2014\n * @brief Hlidac pracovni doby, projekt do predmetu IMS 2014\n */\n\n#ifndef PDOBA_H\n#define\tPDOBA_H\n\n#include \"Defs.h\"\n\n/**\n * \\brief Hl\u00edda\u010d za\u010d\u00e1tku/konce pracovn\u00ed doby\n */\nclass PDoba: public Process {\npublic:\n\tint AktualniDen() { return den; }\t // Vrati aktualniy den\n\tbool JeVikend()\t { return vikend; } // Je v\u00edkend? \n\t\nprivate:\n\tvoid Behavior(); // Hlavn\u00ed proces\n\t\n\tint den{PONDELI};\t/**< den v simulaci */\n\tbool vikend{false}; /**< indik\u00e1tor v\u00edkendu */\n};\n#endif\t/* PDOBA_H */\n"}
198
c
#define __mirc__ 1 #define __STDC_HOSTED__ 1 //#define __STDC_ISO_10646__ 201103L #define __STDC_NO_ATOMICS__ 1 #define __STDC_NO_COMPLEX__ 1 #define __STDC_NO_THREADS__ 1 #define __STDC_NO_VLA__ 1 #define __STDC_UTF_16__ 1 #define __STDC_UTF_32__ 1 #define __STDC_VERSION__ 201112L #define __STDC__ 1 /* Some GCC alternative keywords used but not defined in standard headers: */ #define __const const #define __const__ const #define __inline__ inline #define __restrict__ restrict #define __signed signed #define __signed__ signed #define __volatile volatile #define __volatile__ volatile
28.55
20
(translation_unit) "#define __mirc__ 1\n#define __STDC_HOSTED__ 1\n//#define __STDC_ISO_10646__ 201103L\n#define __STDC_NO_ATOMICS__ 1\n#define __STDC_NO_COMPLEX__ 1\n#define __STDC_NO_THREADS__ 1\n#define __STDC_NO_VLA__ 1\n#define __STDC_UTF_16__ 1\n#define __STDC_UTF_32__ 1\n#define __STDC_VERSION__ 201112L\n#define __STDC__ 1\n\n/* Some GCC alternative keywords used but not defined in standard headers: */\n#define __const const\n#define __const__ const\n#define __inline__ inline\n#define __restrict__ restrict\n#define __signed signed\n#define __signed__ signed\n#define __volatile volatile\n#define __volatile__ volatile\n" (preproc_def) "#define __mirc__ 1\n" (#define) "#define" (identifier) "__mirc__" (preproc_arg) "1" (preproc_def) "#define __STDC_HOSTED__ 1\n" (#define) "#define" (identifier) "__STDC_HOSTED__" (preproc_arg) "1" (comment) "//#define __STDC_ISO_10646__ 201103L" (preproc_def) "#define __STDC_NO_ATOMICS__ 1\n" (#define) "#define" (identifier) "__STDC_NO_ATOMICS__" (preproc_arg) "1" (preproc_def) "#define __STDC_NO_COMPLEX__ 1\n" (#define) "#define" (identifier) "__STDC_NO_COMPLEX__" (preproc_arg) "1" (preproc_def) "#define __STDC_NO_THREADS__ 1\n" (#define) "#define" (identifier) "__STDC_NO_THREADS__" (preproc_arg) "1" (preproc_def) "#define __STDC_NO_VLA__ 1\n" (#define) "#define" (identifier) "__STDC_NO_VLA__" (preproc_arg) "1" (preproc_def) "#define __STDC_UTF_16__ 1\n" (#define) "#define" (identifier) "__STDC_UTF_16__" (preproc_arg) "1" (preproc_def) "#define __STDC_UTF_32__ 1\n" (#define) "#define" (identifier) "__STDC_UTF_32__" (preproc_arg) "1" (preproc_def) "#define __STDC_VERSION__ 201112L\n" (#define) "#define" (identifier) "__STDC_VERSION__" (preproc_arg) "201112L" (preproc_def) "#define __STDC__ 1\n" (#define) "#define" (identifier) "__STDC__" (preproc_arg) "1" (comment) "/* Some GCC alternative keywords used but not defined in standard headers: */" (preproc_def) "#define __const const\n" (#define) "#define" (identifier) "__const" (preproc_arg) "const" (preproc_def) "#define __const__ const\n" (#define) "#define" (identifier) "__const__" (preproc_arg) "const" (preproc_def) "#define __inline__ inline\n" (#define) "#define" (identifier) "__inline__" (preproc_arg) "inline" (preproc_def) "#define __restrict__ restrict\n" (#define) "#define" (identifier) "__restrict__" (preproc_arg) "restrict" (preproc_def) "#define __signed signed\n" (#define) "#define" (identifier) "__signed" (preproc_arg) "signed" (preproc_def) "#define __signed__ signed\n" (#define) "#define" (identifier) "__signed__" (preproc_arg) "signed" (preproc_def) "#define __volatile volatile\n" (#define) "#define" (identifier) "__volatile" (preproc_arg) "volatile" (preproc_def) "#define __volatile__ volatile\n" (#define) "#define" (identifier) "__volatile__" (preproc_arg) "volatile"
75
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.55, "nodes": 70, "errors": 0, "source_hash": "38826e8f8a457403f10ca168754cfb1a6a95c99ceff3eeb541f2af30e95641d2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define __mirc__ 1\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "__mirc__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_arg", "text": "1", "parent": 0, "children": [], "start_point": {"row": 0, "column": 17}, "end_point": {"row": 0, "column": 18}}, {"id": 4, "type": "preproc_def", "text": "#define __STDC_HOSTED__ 1\n", "parent": null, "children": [5, 6, 7], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 6, "type": "identifier", "text": "__STDC_HOSTED__", "parent": 4, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 23}}, {"id": 7, "type": "preproc_arg", "text": "1", "parent": 4, "children": [], "start_point": {"row": 1, "column": 24}, "end_point": {"row": 1, "column": 25}}, {"id": 8, "type": "preproc_def", "text": "#define __STDC_NO_ATOMICS__ 1\n", "parent": null, "children": [9, 10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 10, "type": "identifier", "text": "__STDC_NO_ATOMICS__", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 27}}, {"id": 11, "type": "preproc_arg", "text": "1", "parent": 8, "children": [], "start_point": {"row": 3, "column": 28}, "end_point": {"row": 3, "column": 29}}, {"id": 12, "type": "preproc_def", "text": "#define __STDC_NO_COMPLEX__ 1\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "identifier", "text": "__STDC_NO_COMPLEX__", "parent": 12, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 27}}, {"id": 15, "type": "preproc_arg", "text": "1", "parent": 12, "children": [], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 29}}, {"id": 16, "type": "preproc_def", "text": "#define __STDC_NO_THREADS__ 1\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 18, "type": "identifier", "text": "__STDC_NO_THREADS__", "parent": 16, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 27}}, {"id": 19, "type": "preproc_arg", "text": "1", "parent": 16, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 29}}, {"id": 20, "type": "preproc_def", "text": "#define __STDC_NO_VLA__ 1\n", "parent": null, "children": [21, 22, 23], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 22, "type": "identifier", "text": "__STDC_NO_VLA__", "parent": 20, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 23}}, {"id": 23, "type": "preproc_arg", "text": "1", "parent": 20, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 25}}, {"id": 24, "type": "preproc_def", "text": "#define __STDC_UTF_16__ 1\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 26, "type": "identifier", "text": "__STDC_UTF_16__", "parent": 24, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 27, "type": "preproc_arg", "text": "1", "parent": 24, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 25}}, {"id": 28, "type": "preproc_def", "text": "#define __STDC_UTF_32__ 1\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 30, "type": "identifier", "text": "__STDC_UTF_32__", "parent": 28, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 31, "type": "preproc_arg", "text": "1", "parent": 28, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 32, "type": "preproc_def", "text": "#define __STDC_VERSION__ 201112L\n", "parent": null, "children": [33, 34, 35], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 34, "type": "identifier", "text": "__STDC_VERSION__", "parent": 32, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 24}}, {"id": 35, "type": "preproc_arg", "text": "201112L", "parent": 32, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 32}}, {"id": 36, "type": "preproc_def", "text": "#define __STDC__ 1\n", "parent": null, "children": [37, 38, 39], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 38, "type": "identifier", "text": "__STDC__", "parent": 36, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 16}}, {"id": 39, "type": "preproc_arg", "text": "1", "parent": 36, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 18}}, {"id": 40, "type": "preproc_def", "text": "#define __const const\n", "parent": null, "children": [41, 42], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 42, "type": "identifier", "text": "__const", "parent": 40, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 15}}, {"id": 43, "type": "preproc_def", "text": "#define __const__ const\n", "parent": null, "children": [44, 45], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 44, "type": "#define", "text": "#define", "parent": 43, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 45, "type": "identifier", "text": "__const__", "parent": 43, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 46, "type": "preproc_def", "text": "#define __inline__ inline\n", "parent": null, "children": [47, 48, 49], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 48, "type": "identifier", "text": "__inline__", "parent": 46, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 18}}, {"id": 49, "type": "preproc_arg", "text": "inline", "parent": 46, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 25}}, {"id": 50, "type": "preproc_def", "text": "#define __restrict__ restrict\n", "parent": null, "children": [51, 52, 53], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 52, "type": "identifier", "text": "__restrict__", "parent": 50, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 20}}, {"id": 53, "type": "preproc_arg", "text": "restrict", "parent": 50, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 29}}, {"id": 54, "type": "preproc_def", "text": "#define __signed signed\n", "parent": null, "children": [55, 56, 57], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 56, "type": "identifier", "text": "__signed", "parent": 54, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 57, "type": "preproc_arg", "text": "signed", "parent": 54, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 23}}, {"id": 58, "type": "preproc_def", "text": "#define __signed__ signed\n", "parent": null, "children": [59, 60, 61], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 60, "type": "identifier", "text": "__signed__", "parent": 58, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 18}}, {"id": 61, "type": "preproc_arg", "text": "signed", "parent": 58, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 25}}, {"id": 62, "type": "preproc_def", "text": "#define __volatile volatile\n", "parent": null, "children": [63, 64, 65], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 64, "type": "identifier", "text": "__volatile", "parent": 62, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 18}}, {"id": 65, "type": "preproc_arg", "text": "volatile", "parent": 62, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 27}}, {"id": 66, "type": "preproc_def", "text": "#define __volatile__ volatile\n", "parent": null, "children": [67, 68, 69], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 68, "type": "identifier", "text": "__volatile__", "parent": 66, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 20}}, {"id": 69, "type": "preproc_arg", "text": "volatile", "parent": 66, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 29}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 45, 48, 52, 56, 60, 64, 68], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#define __mirc__ 1\n#define __STDC_HOSTED__ 1\n//#define __STDC_ISO_10646__ 201103L\n#define __STDC_NO_ATOMICS__ 1\n#define __STDC_NO_COMPLEX__ 1\n#define __STDC_NO_THREADS__ 1\n#define __STDC_NO_VLA__ 1\n#define __STDC_UTF_16__ 1\n#define __STDC_UTF_32__ 1\n#define __STDC_VERSION__ 201112L\n#define __STDC__ 1\n\n/* Some GCC alternative keywords used but not defined in standard headers: */\n#define __const const\n#define __const__ const\n#define __inline__ inline\n#define __restrict__ restrict\n#define __signed signed\n#define __signed__ signed\n#define __volatile volatile\n#define __volatile__ volatile\n"}
199